Monday, 23 December 2013

Pass arguments to build file - Apache Ant

In Apache Ant, we can pass arguments to the build file using the switch -D. We can define a value for a property from the command line using -Dname=value

Eg:

ant build.xml -Dx=5

Sunday, 22 December 2013

Bourne shell (bash) vs Korn shell (ksh)

There are a few notable differences between Bash shell and Korn shell as follows:





DifferenceBashKorn
Redo previous commandArrow Up the letter 'r'
Source fileWe can use the keyword 'source' as well as dot to source a file Eg: source file or .fileWe can just use the dot to source it Eg: .file

System vs Exec vs Backticks - Perl

In Perl, the main difference between system, exec and backtick is what happens during the compile time.

Just to refresh your memory, the backtick symbol ( ` ) is on the button above tab button.

Here's the comparison:



SystemExecBacktick
System returns a value after a command is run, irrespective of whether the command executed successfully or failed. Exec does not return a value. Backtick is used to capture the output of a command.

Ant - read from build.properties

While performing builds using Ant, you must be aware about the build.xml file. The build.xml can read the parameter values from the build.properties file, which usually is one level up.

You have to define a property which mentions the properties file from which the script would read the values.

<property file = "build.properties" />

Saturday, 21 December 2013

Deglet Noor - Algerian Pitted Dates

Check out this box of Deglet Noor dates. Degelt Noor happens to be the type of dates cultivated in Algeria and Tunisia.

A good link on comparison of various types of dates can be found here.

The last time I bought it, the price of a 850gm box was USD 6.99

If you search Amazon, you can find a couple of brands like Hadley, Ziyad, Golden etc


Date, in general is a very nutritional product and is a very good source of Potassium.

Safari 6 for OSX Lion - Buggy, Problematic

Why why why Apple did you "upgrade" Safari to actually downgrade it??

Safari v5.x was so nice previously and worked so smoothly.

Ever since its upgraded to v.6.1.1 on my OSX 10.7.5, its performance has sharply downgraded. It stops responding on certain websites. It eats up big chunks of memory. 

The previous cinematic most-visited Top Sites page was so tasteful than the now-simplified straight lines rectangular crap.

When you toggle between windowed and fullscreen, Safari usually tends to hang or stop working or you see the spinning wheel running forever.

Why have you changed the Bookmarks section? Previously it was so organized and helpful with the screenflow. Damn you apple and your android-y simple designs. 

Safari these days is so irritating, I've switched to Chrome for good.

For simple designs customers should buy cheap chromebooks, why the premium Apple should stoop down to cheapo level? Bring back the zing, the color than using the current stupid simplistic designs... End of rant

Korean Honey Citron Tea

Recently I came across the Korean brand of herbal tea with Honey Citron flavor. On digging further it seems it is knows and Yuja cha. It's also known as a good remedy to cure common cold.

Check out this photo of the tea jar


To prepare the tea mix 1-2 tablespoons of the tea syrup alongwith water and add sugar if needed.
Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker