April 08, 2016

google dmarc report xml explained

understanding google dmarc xml


<<?xml version="1.0" encoding="UTF-8" ?> <feedback> <report_metadata> <org_name>google.com</org_name> <email>noreply-dmarc-support@google.com</email> <extra_contact_info>https://support.google.com/a/answer/2466580</extra_contact_info> <report_id>15635948358825559315</report_id> <date_range> <begin>1459987200</begin> <end>1460073599</end> </date_range> </report_metadata> <policy_published> <domain>example.com</domain> <adkim>r</adkim> <aspf>r</aspf> <p>none</p> <sp>none</sp> <pct>100</pct> </policy_published> <record> <row> <source_ip>74.xx.xxx.xx</source_ip> <count>5</count> <policy_evaluated> <disposition>none</disposition> <dkim>fail</dkim> <spf>pass</spf> </policy_evaluated> </row> <identifiers> <header_from>example.com</header_from> </identifiers> <auth_results> <spf> <domain>example.com</domain> <result>pass</result> </spf> </auth_results> </record> </feedback>

September 26, 2015

couldn't able to start rabbitmq server error description undef

Problem: Could not able to start rabbitmq server 3.5.5 in ubuntu 1404. Shows error description as undef

 BOOT FAILED  
 ===========  
 Error description:  
   undef  
 Log files (may contain more information):  
   ./../var/log/rabbitmq/rabbit@user.log  
   ./../var/log/rabbitmq/rabbit@user-sasl.log  
 Stack trace:  
   [{mnesia,system_info,[directory],[]},  
   {rabbit_mnesia,ensure_mnesia_dir,0,[]},  
   {rabbit_node_monitor,prepare_cluster_status_files,0,[]},  
   {rabbit,'-boot/0-fun-0-',0,[]},  
   {rabbit,start_it,1,[]},  
   {init,start_it,1,[]},  
   {init,start_em,1,[]}]  
 {"init terminating in do_boot",undef}  
 Crash dump was written to: erl_crash.dump  
 init terminating in do_boot (undef)  

./rabbitmq-server: 42: ./rabbitmq-server: cannot create ./../var/lib/rabbitmq/mnesia/rabbit@host-name.pid: Permission denied


This article explains how to install and start rabbitmq server from tar.gz or zip file

Latest rabbitmq binaries will be available in https://www.rabbitmq.com/download.html



 ./rabbitmqctl status  
 Status of node 'rabbit@user' ...  
 Error: unable to connect to node 'rabbit@user': nodedown  
 DIAGNOSTICS  
 ===========  
 attempted to contact: ['rabbit@user']  
 rabbit@user:  
  * connected to epmd (port 4369) on user  
  * epmd reports: node 'rabbit' not running at all  
          no other nodes on user  
  * suggestion: start the node  
 current node details:  
 - node name: 'rabbitmq-cli-4379@user'  
 - home dir: /root  
 - cookie hash: DF1wwqN1m3Yr/KRh3g47gA==  
 root@user:/home/krishna/rabbitmq_server-3.5.5/sbin#   

July 30, 2015

find heap size in hprof file

find heap size in hprof file

find actual heap size from hprof file

How to find the total heap memory consumed by all the instances of classes under a specific package.

Example, would like to know how much heap memory was consumed by `org.apache.log4j.*` This should certainly include the String, HashMap, etc. used by log4j

Tried Eclipse Memory Analyzer MAT but couldn't find the total heap memory used for particular package.

June 23, 2015

find a file or document in mac osx using find command in terminal

Example : find . -name "server.xml"

find - it's the command to search for files recursively in the specified directory

here the "." specifies the find command to search in the current directory and it's sub directories

"server.xml" is the name of the file we need to search for in the current and it's sub directories


Usage: find -name


May 09, 2015

installed directory of dk-filter milter in ubuntu

PID of dk-filter will be saved at /var/run/dk-filter/dk-filter.pid

Unix socket of dk-filter will be available at /var/run/dk-filter/dk-filter.sock

Binary of dk-filter will be saved at /usr/bin

Configuration file of dk-filter will be found under /etc/default/dk-filter



Configuring dk-filter with postfix through unix socket

smtpd_milters = unix:/dk-filter/dk-filter.sock
non_smtpd_milters = unix:/dk-filter/dk-filter.sock



February 23, 2015

Chrome: Shortcut (key combinations to use) to get the closed tab open back without going to history.

Some times by mistake we will be closing the browser tab's page. Use the following key combination to re open.

On Mac Book,

Shift + Command + T

To reopen the closed pages using mouse/ touch pad,

1) Open new tab

2) Right click on the new tab's title bar as like shown below.

3) Choose Reopen Closed Tab


Please feel free to comment if you are frequent with any other key combinations or shortcuts.








January 09, 2015

mysql connect driver text or url

thin driver name: com.mysql.jdbc.Driver

URL : jdbc:mysql://localhost:3306/db_name


January 03, 2015

Can i format my pendrive frequently ?


Can i format my pen drive/ hard disk/ flash drive frequently ? 
Does repeated formatting the disk makes it slow or dead ?


Formatting the disk frequently will have no impact. It's is just a read and write operation performed.
Make sure you format it correctly. i.e Interruptions while formatting and make the drive to go "not recognized" by many operating systems.

is pen drive ssd



January 02, 2015

is protobuf file based

No, "Protobuf" is not file based.

Proof:
Look at the "Parsing and Serialization" section in the following link.

https://developers.google.com/protocol-buffers/docs/javatutorial

December 28, 2014

How to connect to tcp listening port

This blog explains how we can connect to a TCP4 listening port.

In this example, port 3711 TCP port is listening for any connection requests.

tcp4       0      0  *.3711                 *.*                    LISTEN  


Similar:
Steps to establish / test a connection to TCP ports
configure ethernet PPPoE in DLink DSL 2730U Modem

December 24, 2014

tracking routers / hosts travelled by a http request

Way to find the routers or hosts the HTTP requests travels before it reaches the web server / application server.

This is very similar to "traceroute" command

Similar queries:

HTTP protocol routing path detection

HTTP url trace route



December 22, 2014

google analystics shows "/b/app-preview" in pages visited. what does this mean ?

You could see urls like "/b/app-preview?token=xx", "/b/app-mobile/preview" in google analytics pages visited column. What does these URLs mean ?

Actually these are the URLs executed by the blogger (one who blogs) itself.
When he/she clicks on "Preview" option to see their blog post preview before publishing, these URLs are executed !!!

These URLs are NOT EXECUTED by any bots, or any other crawlers..

December 21, 2014

Install new printer HP LaserJet network shared(with safecom) in Mac OS X 10.8.5

Installing new printer HP LaserJet network shared printer (with safecom) in Mac OS X 10.8.5

1) Go to "System Preferences" using Spotlight (Spotlight can be accessed by "Command" and "Space bar" key combination" 



2) Click on "Print & Scan" found in "Hardware" section

3)  Click on the "+" button below the list of available printers and click on "Add Printer or Scanner"
4) Click on the "Advanced" tab in the pop up window.

5) Here you can find the advanced configurations of adding a network printer.
Choose "Type" as "Windows Printer via spoolss"
Device as "Another Device"
URL as "smb:///"
Since you have selected as "Windows printer" the protocol we use here is smb 
Name your printer under the Name text box and click on "Add"




How to configure HP printer to print on both side of pages in Mac OS X 10.8.5

How to enable HP Laser Jet 500 MFP printer (configured with SafeCom) to print on both the side of pages in Mac OS X ?

Some times we may need to get our sheets printed on both of its sides. Do the below mentioned configuration to enable it.

1) Go to "System Preferences" using Spot light  and click on "Print & Scan" icon.

2) On the left side of the "Print & Scan" Window you could see the list of installed printers. 

3) Choose the printer of your choice and click on "Options & Supplies" button

4) In the pop up window choose "Driver" tab

5) check/enable the option "Duplex Printing Unit" and click on "Ok"

Screenshot:


Now your installed printer is equipped to print on both side of pages.

However, keep in mind that, printing on both sides will only work if you choose "Two-Sided" option in the Print Dialog!! 

December 20, 2014

is facebook using whatsapp contacts for friend suggestions

is facebook using whatsapp contacts for friend suggestions

Might be yes.

Based on my user experience I feel "Yes".

I personally have few contacts only in what's app account contact list and it wonders me how facebook shows them in my friend suggestions list !!!

December 14, 2014

Auto align or group or arrange all the app icons in iphone home screen. How to make iphone app icons "align to grid"

You might find "align to grid" "auto arrange icon by name, kind, etc" handy if being an windows OS user.

By default, in iphone all the app icons are set "aligned to grid"

However there is no direct options to auto arrange the app icons so your home screen pages looks with no spaces left unoccupied.

https://discussions.apple.com/thread/4183949

Caution: 

Following the mentioned steps will delete your folder structure and aligns all your app icons page by page wise.

Similar: how to reset my app listing screen

iOS : 8.1.12

move facebook post from timeline to specific group

How to move facebook post from timeline to specific group without deleting ?

Clicking on the settings icon just near the right corner of your facebook post/status will guide you.

December 12, 2014

will c sharp httpwebrequest handle http 302 moved temporarily

Does the class HttpWebRequest in C sharp handle the HTTP 302 (moved temporarily) requests effectively ..?

Checking with the following source code ..

play2 controller get input parameters using implicit objects

play2 controller get input parameters using implicit objects or functions ?

If you are using play1.X framework you can use "params" implicit object to get the input parameters.

December 08, 2014

List of implicit objects and methods in Play framework Controller class and it's subclasses

List of implicit objects in Play framework Controller class and it's subclasses

1) params (Wonder how we can use a member variable inside the static action methods ?)
Example:
String id =  params.get("id");
String[] names = params.get("names");

2) response
3) request


Note: All these implicit objects is not available from Play2.0
You need to use alternative methods.

request and response implicit objects should be replaced with a call to request() and response() static methods in Controller class.

List of implicit methods in Play framework Controller class and it's subclasses

1) Render methods like render(), renderText(String), renderJSON(..), renderXml(..), etc