Monthly Archives: March 2015

Command to exit git log screen

Whenever you are giving a git log, you might not be able to figure out how to exit the log Type q to exit to log.

Posted in Uncategorized | Tagged | Leave a comment

smtp relayhost in OS X Yosemite

In order to send mail from a localhost, you would need to enable the smtp server as a host. First you would have to edit the main.cf file to add in the relayhost sudo vim /etc/postfix/main.cf //Add the below code … Continue reading

Posted in Web Development | Tagged , , | Leave a comment

JUnit with System.out.println

System.out.println and System.out.print will usually print the output String to the screen, however with the below code, you could actually redirect the print out to a Stream and thereafter use it for JUnit testing. //Prepare to redirect output OutputStream os … Continue reading

Posted in Java | Tagged , | 2 Comments