<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;DUYCRXw5cCp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901</id><updated>2013-05-15T23:52:44.228-07:00</updated><category term='Polluting environment less'/><category term='significance'/><category term='tools'/><category term='hadoop mapreduce example'/><category term='Image'/><category term='ATM centers'/><category term='symbolic link'/><category term='Startups'/><category term='Raja Rani teaser'/><category term='Corrupted files in Linux'/><category term='polluted land'/><category term='Chetan Bhagat'/><category term='load and performance'/><category term='Conserving nature'/><category term='Downloading videos in Linux'/><category term='Tutorials'/><category term='mapreduce'/><category term='hadoop'/><category term='Robin sharma'/><category term='Testing'/><category term='string'/><category term='Quote'/><category term='Intruments'/><category term='Scripting'/><category term='Shell'/><category term='install dropbox in linux server'/><category term='Jeffrey Archer'/><category term='Good reading'/><category term='Raja Rani'/><category term='configuration'/><category term='python'/><category term='Contribution'/><category term='arya'/><category term='video'/><category term='windows'/><category term='load testing'/><category term='iOS UI Automation'/><category term='toolrunner'/><category term='iOS'/><category term='host file'/><category term='Miscellaneous'/><category term='Apache'/><category term='Spring'/><category term='install in Linux'/><category term='sub lime editor'/><category term='Raja Rani official teaser'/><category term='Automation'/><category term='Reviews'/><category term='reading'/><category term='Quotes'/><category term='Struts'/><category term='UIAutomation'/><category term='commandline'/><category term='Recycle'/><category term='java'/><category term='programming'/><category term='tutorial'/><category term='python video tutorial'/><category term='polythene bags'/><category term='official teaser of raja rani'/><category term='non biodegradable waste'/><category term='Tech'/><category term='teaser'/><category term='Entertainment'/><category term='Authors'/><category term='Linux Files'/><category term='CFL vs Incandescent'/><category term='jmeter'/><category term='Open Source'/><category term='Go Green'/><category term='configure dropbox'/><category term='Readings'/><category term='Build tool'/><category term='Firefox'/><category term='Paul Coelho'/><category term='Linux'/><category term='reference'/><category term='mac'/><category term='performance testing'/><category term='benchmarking'/><category term='Text editor'/><category term='responbility'/><category term='parser'/><category term='Download online videos'/><category term='Clip Grab'/><category term='install dropbox'/><category term='nayanthara'/><category term='Ant'/><category term='sublime'/><category term='Books'/><title>Kaniyarasu's Weblog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;DUYCRXo-eCp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-1944774949181336027</id><published>2013-05-15T07:16:00.000-07:00</published><updated>2013-05-15T23:52:44.450-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.450-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Entertainment'/><title>Yusuf Pathan Obstructing the field</title><content type='html'>Today in KKR Vs PWI, Yusuf pathan obstructs the field by kicking the balls with his legs.&lt;br/&gt;PWI asked for out and wow umpire gave it which gave the victory exactly after a month.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;object width="610" height="370"&gt;&lt;param name="movie" value="http://www.youtube.com/v/ypTfPbDCUpU?theme=dark&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;start=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/ypTfPbDCUpU?theme=dark&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;start=0" type="application/x-shockwave-flash" allowfullscreen="true" width="610" height="370" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/1944774949181336027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/yusuf-pathan-obstructing-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/1944774949181336027?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/1944774949181336027?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/yusuf-pathan-obstructing-field.html' title='Yusuf Pathan Obstructing the field'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo_fip7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-5445714127106932574</id><published>2013-05-15T04:16:00.000-07:00</published><updated>2013-05-15T23:52:44.446-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.446-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='benchmarking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='Startups'/><category scheme='http://www.blogger.com/atom/ns#' term='load testing'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='jmeter'/><category scheme='http://www.blogger.com/atom/ns#' term='performance testing'/><category scheme='http://www.blogger.com/atom/ns#' term='load and performance'/><category scheme='http://www.blogger.com/atom/ns#' term='Readings'/><title>Apache JMeter - First Step</title><content type='html'>Load testing is aimed at putting demand on a system or device and measuring its response. It is performed to determine a system’s behavior under both normal and anticipated peak load conditions. It helps to identify the maximum operating capacity of an application as well as any bottlenecks and determine which element is causing degradation.&lt;br/&gt;&lt;br/&gt;The Apache JMeter desktop application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance.   &lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Setup&lt;/strong&gt;&lt;br/&gt;As simple as this - Download the zip and play with that&lt;br/&gt;JMeter needs JVM 1.5 or Higher to be installed in the system&lt;br/&gt;Download the Zip from Apache JMeter site - jmeter.apache.org/‎&lt;br/&gt;Extract the zip file&lt;br/&gt;To run the GUI goto JMeter_Home/bin&lt;br/&gt;Execute the jmeter file&lt;br/&gt;&lt;br/&gt;                 - For windows machines, Double click on the jmeter.bat file&lt;br/&gt;                 - For Linux/mac machines, In the Bash Shell go to Jmeter_home/bin location, Just type jmeter and execute the command&lt;br/&gt;Sometimes during the test run you may get into a familiar exception  called as  "Out of Memory Exception" for that you may need to run the jmeter with the jar and the possible actions as&lt;br/&gt; $ java -Xms128m -Xmx1028m -jar apacheJMeter.jar&lt;br/&gt;Xms - Specifies the Min heap size&lt;br/&gt;Xmx - Specifies the Max heap size&lt;br/&gt;Integrating JMeter Plugins &lt;br/&gt;JMeter plugins are very useful in several ways, Provides options for making a request with some aditional options, It improves better representation of results and many more&lt;br/&gt;&lt;br/&gt;    Download the Jmeter Plugins from http://code.google.com/p/jmeter-plugins/wiki/JMeterPluginsCMD&lt;br/&gt;    Extract the Zip file&lt;br/&gt;    Copy JMeterPlugins.jar and paste it into JMeter_Home/lib/ext/ Directory&lt;br/&gt;    Copy CMDRunner.jar and paste it into JMeter_Home/lib/ext/ Directory&lt;br/&gt;    This Plugin is to have additional graphs - result representations &lt;br/&gt;    Re-Launch the Jmeter&lt;br/&gt;&lt;br/&gt;OAuth Plugin&lt;br/&gt;    For some of the APIs we need to pass the secret keys to get the response, for that we need to add OAuth plugin to make the request with the secret keys&lt;br/&gt;    Download this oauth-plugin for jmeter - http://code.google.com/p/jmeter-oauth/&lt;br/&gt;    Add the jar file to JMeter_Home/lib/ext Directory&lt;br/&gt;    To add a OAuth Request just Choose Add -&amp;gt; Sampler -&amp;gt; Oauth Request&lt;br/&gt;&lt;br/&gt;L&amp;amp;P Testing - Making it effective and simpler&lt;br/&gt;Here are the some additional and structured ways to make the performance test simpler, easier in effective manner&lt;br/&gt;1. Integrating with Ant&lt;br/&gt;2. Adding the build jobs in hudson/jenkins or any other opensource build tools&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Integrating with Ant&lt;/strong&gt;&lt;br/&gt;Setup&lt;br/&gt;Download apache ant from ant.apache.org/‎&lt;br/&gt;Extract the Zip file&lt;br/&gt;&lt;br/&gt;There is an excellent article on integrating ant with jmeter http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php&lt;br/&gt;&lt;br/&gt;Download the  ant-jmeter.jar mentioned in above article&lt;br/&gt;Add the jar to ANT_HOME/lib to include ant-jmeter.jar in classpath&lt;br/&gt;Add the jar also into the JMeter_Home/lib/ext Directory&lt;br/&gt;&lt;br/&gt;Once done with the ant setup go for integrating the build process in any one of the opensource build management tools&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;br/&gt;Server side monitoring&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Though JMeter has in-built server monitoring tool perfMon, we can go for other better ways to monitor the servers performance&lt;br/&gt;&lt;br/&gt;There are numerous opensource tools available for monitoring the server like dstat, Zenoss, nagios, ganglia&lt;br/&gt;dstat is the one which is easier &amp;amp; simpler to setup, It gives the accurate server metrics&lt;br/&gt;dstat is a real-time server monitoring tool&lt;br/&gt;There are options to capture the real-time resutls in a csv file. We can also upload the csv file in michenux.net to see the results in colorful graphs</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/5445714127106932574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/apache-jmeter-first-step.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/5445714127106932574?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/5445714127106932574?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/apache-jmeter-first-step.html' title='Apache JMeter - First Step'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo_eip7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-3447611317969793485</id><published>2013-05-15T00:31:00.000-07:00</published><updated>2013-05-15T23:52:44.442-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.442-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='install dropbox'/><category scheme='http://www.blogger.com/atom/ns#' term='symbolic link'/><category scheme='http://www.blogger.com/atom/ns#' term='configure dropbox'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='install dropbox in linux server'/><title>Installing and configuring Dropbox on Linux server</title><content type='html'>&lt;h2&gt;Installation&lt;/h2&gt;&lt;br/&gt;The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.&lt;br/&gt;&lt;br/&gt;32-bit:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;blockquote&gt;cd ~ &amp;amp;&amp;amp; wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;64-bit:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;blockquote&gt;cd ~ &amp;amp;&amp;amp; wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Next, run the Dropbox daemon from the newly created .dropbox-dist folder.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;blockquote&gt;~/.dropbox-dist/dropboxd&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;If you're running Dropbox on your server for the first time, you'll be asked to copy and paste a link in a working browser to create a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory.&lt;br/&gt;&lt;h3&gt;Problem I Faced&lt;/h3&gt;&lt;br/&gt;I've got a Linux server running in Amazon AWS and OS is on a 10GB drive and I use a Amazon EBS drive attached for storage.&lt;br/&gt;&lt;br/&gt;Now I wanted to set up Dropbox on this machine. But I haven't synched yet because there won't be enough room in my home dir. My /home is on my 10GB drive since I never use it and all my data is on the 2TB drive mounted in /media/.&lt;br/&gt;&lt;br/&gt;What is the best way to set this up? Dropbox doesn't support moving the folder in Linux yet. I found a script to move the folder but it seems outdated. Perhaps I can use symlinks in some clever way? Or maybe move my /home folder to my SATA drive?&lt;br/&gt;&lt;h3&gt;Solution&lt;/h3&gt;&lt;br/&gt;You gave the answer yourself, Use symlinks. Move your Dropbox folder to your HDD, then create a symlink in your home folder For example: ln -s /media/MyHDD/Dropbox /home/yourname/&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks for visting our blog.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/3447611317969793485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/installing-and-configuring-dropbox-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/3447611317969793485?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/3447611317969793485?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/installing-and-configuring-dropbox-on.html' title='Installing and configuring Dropbox on Linux server'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo4cSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-6702323328999520266</id><published>2013-05-14T07:08:00.000-07:00</published><updated>2013-05-15T23:52:44.439-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.439-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Raja Rani'/><category scheme='http://www.blogger.com/atom/ns#' term='teaser'/><category scheme='http://www.blogger.com/atom/ns#' term='Raja Rani official teaser'/><category scheme='http://www.blogger.com/atom/ns#' term='official teaser of raja rani'/><category scheme='http://www.blogger.com/atom/ns#' term='nayanthara'/><category scheme='http://www.blogger.com/atom/ns#' term='Entertainment'/><category scheme='http://www.blogger.com/atom/ns#' term='Raja Rani teaser'/><category scheme='http://www.blogger.com/atom/ns#' term='arya'/><title>Raja Rani - Official Teaser(Starring Arya and Nayanthara)</title><content type='html'>Raja Rani is a upcoming tamil movie starring arya and nayanthara in the lead roles which is directed by a debutant Atlee kumar who works as assistant in Enthiran with Shankar.&lt;br/&gt;This is the first official teaser released by the team. Hope it will be a entertaining love story.&lt;br/&gt;Watch and Enjoy!&lt;br/&gt;&lt;br/&gt;&lt;object width="610" height="370"&gt;&lt;param name="movie" value="http://www.youtube.com/v/g-m4q-yKTKk?theme=dark&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;start=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/g-m4q-yKTKk?theme=dark&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;start=0" type="application/x-shockwave-flash" allowfullscreen="true" width="610" height="370" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/6702323328999520266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/raja-rani-official-teaserstarring-arya.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/6702323328999520266?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/6702323328999520266?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/raja-rani-official-teaserstarring-arya.html' title='Raja Rani - Official Teaser(Starring Arya and Nayanthara)'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo4fSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-4540994809359386580</id><published>2013-05-13T02:27:00.000-07:00</published><updated>2013-05-15T23:52:44.435-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.435-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><category scheme='http://www.blogger.com/atom/ns#' term='responbility'/><category scheme='http://www.blogger.com/atom/ns#' term='reading'/><category scheme='http://www.blogger.com/atom/ns#' term='Readings'/><title>Want to shop responsibly? Log on to TheResPage</title><content type='html'>The flourishing eCommerce industry in India has something in it for all concerned parties. Competitive prices, multiple choices and convenience for the shoppers, a great market for the retailers, booming investment opportunities for the funds and a good buck for associated service providers. TheResPage, which has recently stepped into this space, has gone out-of-the-box by including a social angle to online shopping.&lt;br/&gt;&lt;br/&gt;Please Visit: therespage.com&lt;br/&gt;Source: http://yourstory.in/2013/05/want-to-shop-responsibly-log-on-to-therespage/</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/4540994809359386580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/want-to-shop-responsibly-log-on-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4540994809359386580?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4540994809359386580?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/05/want-to-shop-responsibly-log-on-to.html' title='Want to shop responsibly? Log on to TheResPage'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo4eSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-6665442806917848036</id><published>2013-04-30T06:48:00.000-07:00</published><updated>2013-05-15T23:52:44.431-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.431-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Entertainment'/><title>Amazing Shots - 360 degree</title><content type='html'>1. Lake Hillier, is a lake on Middle Island, the largest of the islands and islets that make up the Recherche Archipelago, Western Australia. The most notable feature of this lake is its pink color.&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/lake_hillier.jpg"&gt;&lt;img class="size-medium wp-image-739 aligncenter" alt="Lake Hillier" src="http://randomzone.in/wp-content/uploads/2013/04/lake_hillier-241x300.jpg" width="241" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;2. Sagano bamboo forest (located near Kyoto, Japan) is one of the most beautiful bamboo forests in the world.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/sagano_bamboo_forest.jpg"&gt;&lt;img class="size-medium wp-image-740 aligncenter" alt="Sagano Bamboo Forest" src="http://randomzone.in/wp-content/uploads/2013/04/sagano_bamboo_forest-300x239.jpg" width="300" height="239" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;3. This is Hala Fruit from Hawaii.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/hala_fruit_hawaii.jpg"&gt;&lt;img class="size-medium wp-image-741 aligncenter" alt="Hala fruit" src="http://randomzone.in/wp-content/uploads/2013/04/hala_fruit_hawaii-300x225.jpg" width="300" height="225" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;4. If Saturn were as close to Earth as the Moon is, this is how it would look like.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/Saturn_close_to_earth.jpg"&gt;&lt;img class="size-medium wp-image-742 aligncenter" alt="Saturn_close_to_earth" src="http://randomzone.in/wp-content/uploads/2013/04/Saturn_close_to_earth-300x225.jpg" width="300" height="225" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;5. There's a butterfly (Glasswing Butterfly) with transparent wings.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/glasswing_butterfly.jpg"&gt;&lt;img class="size-medium wp-image-743 aligncenter" alt="Glasswing Butterfly" src="http://randomzone.in/wp-content/uploads/2013/04/glasswing_butterfly-300x230.jpg" width="300" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;6. The Tsunami Cloud !!!  This incredible photograph was taken by Gary Brink at the Holland State Park in Michigan, USA. The incredible cloud formation formed on Lake Michigan just off the beach.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/tsunami_cloud.jpg"&gt;&lt;img class="size-medium wp-image-744 aligncenter" alt="Tsunami cloud" src="http://randomzone.in/wp-content/uploads/2013/04/tsunami_cloud-300x200.jpg" width="300" height="200" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;7. Amazing shot of lenticular clouds over Lake Crowley, California.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/amazing_clouds.jpg"&gt;&lt;img class="size-medium wp-image-745 aligncenter" alt="Amazing clouds, CA" src="http://randomzone.in/wp-content/uploads/2013/04/amazing_clouds-300x195.jpg" width="300" height="195" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;8. Mount Roraima one of the oldest geological formations on Earth!&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/mount_roraima.jpg"&gt;&lt;img class="size-medium wp-image-746 aligncenter" alt="Mount Roraima" src="http://randomzone.in/wp-content/uploads/2013/04/mount_roraima-300x221.jpg" width="300" height="221" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;9. Cotton Grass, Iceland.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/cotton_grass.jpg"&gt;&lt;img class="size-medium wp-image-747 aligncenter" alt="Cotton grass, Iceland" src="http://randomzone.in/wp-content/uploads/2013/04/cotton_grass-225x300.jpg" width="225" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: left"&gt;10. "Blue Emperor Scorpion". One of the largest scorpion in the world.&lt;/p&gt;&lt;br/&gt;&lt;p style="text-align: center"&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/blue_scorpion.jpg"&gt;&lt;img class="size-medium wp-image-748 aligncenter" alt="Blue Emperor Scorpion" src="http://randomzone.in/wp-content/uploads/2013/04/blue_scorpion-200x300.jpg" width="200" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/6665442806917848036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/amazing-shots-360-degree.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/6665442806917848036?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/6665442806917848036?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/amazing-shots-360-degree.html' title='Amazing Shots - 360 degree'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo5fyp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-4942490904519741571</id><published>2013-04-29T06:11:00.000-07:00</published><updated>2013-05-15T23:52:44.427-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.427-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Entertainment'/><title>Interesting but weird - Omar Borkan Al Gala : one of the three
irresistibly handsome men who were deported</title><content type='html'>&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/Omar-Borkan-Al-Gala.jpg"&gt;&lt;img class="alignnone size-medium wp-image-735" alt="Omar Borkan Al Gala" src="http://randomzone.in/wp-content/uploads/2013/04/Omar-Borkan-Al-Gala-255x300.jpg" width="255" height="300" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;If you thought that there’s no flip side to being impossibly handsome, think again&lt;br/&gt;&lt;br/&gt;Three men from United Arab Emirates were attending the Jenadrivah Heritage &amp;amp; Culture Festival in Riyadh, the capital of Saudi Arabia. They were forcibly evicted from the festival by Saudi police officers. The grounds for this harsh move? The visitors were too handsome.&lt;br/&gt;&lt;br/&gt;“A festival official said the three Emiratis were taken out on the grounds they are too handsome and that the Commission [for the Promotion of Virtue and Prevention of Vices] members feared female visitors could fall for them,” a Saudi Arabian newspaper Elaph reported.&lt;br/&gt;&lt;br/&gt;After evicting them, the police immediately deported the trio back to Abu Dhabi, lest any Saudi women see them and find them too irresistible to not fall in love.&lt;br/&gt;&lt;br/&gt;Saudi Arabia is extremely conservative and offers little liberty to its women citizens. The female population of the country is not permitted to talk to any men to whom they are not related.&lt;br/&gt;&lt;br/&gt;asaintown.net recently posted some pictures of Omar Borkan Al Gala, saying that he was one of the three irresistibly handsome men who were deported.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/4942490904519741571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/interesting-but-weird-omar-borkan-al.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4942490904519741571?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4942490904519741571?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/interesting-but-weird-omar-borkan-al.html' title='Interesting but weird - Omar Borkan Al Gala : one of the three&#xA;irresistibly handsome men who were deported'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo5fCp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-4762081193471749141</id><published>2013-04-25T04:42:00.000-07:00</published><updated>2013-05-15T23:52:44.424-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.424-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='sublime'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='Text editor'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='install in Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='sub lime editor'/><category scheme='http://www.blogger.com/atom/ns#' term='Shell'/><title>Awesome editor for any Scripting Language - Sub lime Text Editor</title><content type='html'>In Linux and Mac, most people use Vi editor and text editor for editing any scripting languages like shell, Python..etc,&lt;br/&gt;&lt;br/&gt;This editor will be a bit complex and will not be handy to use.&lt;br/&gt;&lt;br/&gt;One of my friend, A Linux enthusiast has introduced me a editor called &lt;strong&gt;"Sub Lime". &lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;/strong&gt;This is an awesome text editor.  I found it very useful and handy. So thought of sharing it with you all.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Advantages of Sublime Text editor:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;1. It gives auto suggestions for keywords and variables.&lt;br/&gt;&lt;br/&gt;2. You can easily manage files and folders.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Steps to install :&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;sudo add-apt-repository ppa:webupd8team/sublime-text-2&lt;br/&gt;sudo apt-get update&lt;br/&gt;sudo apt-get install sublime-text&lt;br/&gt;&lt;br/&gt;After installing you can type the following command to open it.&lt;br/&gt;&lt;br/&gt;sudo sublime-text&lt;br/&gt;&lt;br/&gt;You can also find this in the applications after installing.&lt;br/&gt;&lt;br/&gt;Do easy programming....&lt;br/&gt;&lt;br/&gt;Reference Link : &lt;a href="http://ellislab.com/forums/viewthread/232759/"&gt;http://ellislab.com/forums/viewthread/232759/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Here is the preview ....&lt;br/&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/sublime.png"&gt;&lt;img class="aligncenter size-medium wp-image-722" alt="sublime" src="http://randomzone.in/wp-content/uploads/2013/04/sublime-300x168.png" width="300" height="168" /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/4762081193471749141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/awesome-editor-for-any-scripting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4762081193471749141?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4762081193471749141?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/awesome-editor-for-any-scripting.html' title='Awesome editor for any Scripting Language - Sub lime Text Editor'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo6fSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-4636672587447058582</id><published>2013-04-24T08:01:00.000-07:00</published><updated>2013-05-15T23:52:44.415-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.415-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><title>Python Programming Tutorial 2 - Strings</title><content type='html'>Python has a built-in string class named 'str'(Java - String) with lot of features. Python strings are immutable which means they can't be changed after creation(Java strings are also immutable). String can be enclosed by either single or double quotes.&lt;br/&gt;&lt;br/&gt;Characters in a string can be accessible through [] syntax and python is also zero-based index as Java and C++. Built-in function len(str) returns the length of string(number of characters in input string)&lt;br/&gt;&lt;br/&gt;Note: Don't use "len" as a variable name, it will block the len(str) functionality.&lt;br/&gt;&lt;br/&gt;[code]&amp;gt;&amp;gt;&amp;gt; s='hi'&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; s[1]&lt;br/&gt;'i'&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; len(s)&lt;br/&gt;2[/code]&lt;br/&gt;&lt;br/&gt;Below given video, demonstrates the some of the python String literals.&lt;br/&gt;&lt;br/&gt;Note: Content was Scrapped from youtube.&lt;br/&gt;&lt;object width="610" height="370"&gt;&lt;param name="movie" value="http://www.youtube.com/v/9v1HcKR39qw?theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/9v1HcKR39qw?theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0" type="application/x-shockwave-flash" allowfullscreen="true" width="610" height="370" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;In Java the '+' automatically converts the any types to String while appending with String literal but in Python this is not a case. The function str(data) will convert the input data to String.&lt;br/&gt;&lt;br/&gt;[code]&amp;gt;&amp;gt;&amp;gt; pi=3.14&lt;br/&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; str(pi)&lt;br/&gt;'3.14'&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 'rrr'+pi&lt;br/&gt;Traceback (most recent call last):&lt;br/&gt; File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;&lt;br/&gt;TypeError: cannot concatenate 'str' and 'float' objects&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 'rrr'+str(pi)&lt;br/&gt;'rrr3.14'&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; num=18&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; print &amp;quot;ff&amp;quot; + repr(num)&lt;br/&gt;ff18&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; print &amp;quot;ff&amp;quot; + `num`&lt;br/&gt;ff18[/code]&lt;br/&gt;&lt;br/&gt;Below given video, demonstrates the some of the python String representation.&lt;br/&gt;&lt;br/&gt;Note: Content was Scrapped from youtube.&lt;br/&gt;&lt;object width="610" height="370"&gt;&lt;param name="movie" value="http://www.youtube.com/v/LBJWWjDc7wM?theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/LBJWWjDc7wM?theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0" type="application/x-shockwave-flash" allowfullscreen="true" width="610" height="370" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;If the value to String literal is prefixed with 'r' and interpreter will pass all the chars without special treatment of backslash '\'.&lt;br/&gt;&lt;br/&gt;[code]&amp;gt;&amp;gt;&amp;gt; raw=&amp;quot;test\nraw\t..&amp;quot;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; print raw&lt;br/&gt;test&lt;br/&gt;raw ..&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; raw=r&amp;quot;test\nraw\t..&amp;quot;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; print raw&lt;br/&gt;test\nraw\t..[/code]&lt;br/&gt;&lt;br/&gt;A 'u' prefix allows you to write a unicode string literal (Python has lots of other unicode support features)&lt;br/&gt;&lt;br/&gt;[code]&amp;gt;&amp;gt;&amp;gt; data=u'Hello World !'&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; data&lt;br/&gt;u'Hello World !'&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; data=u'Hello\u0020World !'&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; data&lt;br/&gt;u'Hello World !'[/code]&lt;br/&gt;&lt;br/&gt;The escape sequence \u0020 indicates to insert the Unicode character with the ordinal value 0x0020 (the space character) at the given position.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/4636672587447058582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/python-programming-tutorial-2-strings.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4636672587447058582?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4636672587447058582?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/python-programming-tutorial-2-strings.html' title='Python Programming Tutorial 2 - Strings'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo6eSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-2796869384533202069</id><published>2013-04-24T04:55:00.000-07:00</published><updated>2013-05-15T23:52:44.411-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.411-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='reference'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='python video tutorial'/><title>Python Programming Tutorial 1 - Numbers and Math</title><content type='html'>This tutorials gives overview of the Python numbers and Math functions.&lt;br/&gt;&lt;h3&gt;Using the Python as Calculator&lt;/h3&gt;&lt;br/&gt;Let's try some python command line options.  The python Interpreter act as an Calculator, we can do simple mathematical function in the command line.&lt;br/&gt;&lt;br/&gt;Below given video, demonstrates the some of the python number and mathematical functions.&lt;br/&gt;&lt;br/&gt;Note: Content was Scrapped from youtube.&lt;br/&gt;&lt;br/&gt;&lt;object width="610" height="370"&gt;&lt;param name="movie" value="http://www.youtube.com/v/9v1HcKR39qw?theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/9v1HcKR39qw?theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0" type="application/x-shockwave-flash" allowfullscreen="true" width="610" height="370" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;A values can be assigned to several variable simultaneously.&lt;br/&gt;&lt;br/&gt;[code]&amp;gt;&amp;gt;&amp;gt; x = y = z = 0  # Zero x, y and z&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; x&lt;br/&gt;0&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; y&lt;br/&gt;0&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; z&lt;br/&gt;0[/code]&lt;br/&gt;&lt;br/&gt;Complex numbers are also supported; imaginary numbers are written with a suffix of &lt;tt&gt;j&lt;/tt&gt; or &lt;tt&gt;J&lt;/tt&gt;. Complex numbers with a nonzero real component are written as &lt;tt&gt;(real+imagj)&lt;/tt&gt;, or can be created with the &lt;tt&gt;complex(real, imag)&lt;/tt&gt; function.&lt;br/&gt;&lt;br/&gt;[code]&amp;gt;&amp;gt;&amp;gt; 1j * 1J&lt;br/&gt;(-1+0j)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 1j * complex(0,1)&lt;br/&gt;(-1+0j)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 3+1j*3&lt;br/&gt;(3+3j)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; (3+1j)*3&lt;br/&gt;(9+3j)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; a=(1+2j)/(1+1j)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; a&lt;br/&gt;(1.5+0.5j)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; a.real&lt;br/&gt;1.5&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;a.imag&lt;br/&gt;0.5&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; abs(a)  # sqrt(a.real**2 + a.imag**2)&lt;br/&gt;5.0[/code]&lt;br/&gt;&lt;br/&gt;In interactive mode, the last printed expression is assigned to the variable &lt;tt&gt;_&lt;/tt&gt;. This means that when you are using Python as a desk calculator, it is somewhat easier to continue calculations, for example:&lt;br/&gt;&lt;br/&gt;[code]&amp;gt;&amp;gt;&amp;gt; tax = 12.5 / 100&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; price = 100.50&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; price * tax&lt;br/&gt;12.5625&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; price + _&lt;br/&gt;113.0625&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; round(_, 2)&lt;br/&gt;113.06[/code]&lt;br/&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/?p=701"&gt;Python Programming Tutorial 2 - Strings&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Subscribe for next update. Thanks you.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/2796869384533202069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/python-programming-tutorial-1-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/2796869384533202069?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/2796869384533202069?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/python-programming-tutorial-1-numbers.html' title='Python Programming Tutorial 1 - Numbers and Math'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo7fyp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-249036878691218379</id><published>2013-04-24T03:18:00.000-07:00</published><updated>2013-05-15T23:52:44.407-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.407-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Startups'/><title>Technology Driven Startups</title><content type='html'>&lt;object width="610" height="370"&gt;&lt;param name="movie" value="http://www.youtube.com/v/tSuIBjyajD8?autoplay=1&amp;theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/tSuIBjyajD8?autoplay=1&amp;theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=0&amp;modestbranding=0&amp;hd=1&amp;start=0" type="application/x-shockwave-flash" allowfullscreen="true" width="610" height="370" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/249036878691218379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/technology-driven-startups.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/249036878691218379?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/249036878691218379?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/technology-driven-startups.html' title='Technology Driven Startups'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo7fCp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-6193630393752869573</id><published>2013-04-24T02:33:00.000-07:00</published><updated>2013-05-15T23:52:44.404-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.404-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='Struts'/><title>Struts Video Tutorial</title><content type='html'>http://www.youtube.com/watch?v=f46WEeM8HTA&amp;amp;list=PLB7BB551126EDD5E0</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/6193630393752869573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/struts-video-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/6193630393752869573?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/6193630393752869573?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/struts-video-tutorial.html' title='Struts Video Tutorial'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRXo7eSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-4981099896563207261</id><published>2013-04-24T02:29:00.000-07:00</published><updated>2013-05-15T23:52:44.401-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.401-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title>Spring Video Tutorials</title><content type='html'>&lt;object width="610" height="370"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Fs_IoEGSP-A?autoplay=1&amp;theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=1&amp;modestbranding=0&amp;hd=1&amp;start=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/Fs_IoEGSP-A?autoplay=1&amp;theme=dark&amp;modestbranding=1&amp;autohide=1&amp;loop=1&amp;modestbranding=0&amp;hd=1&amp;start=0" type="application/x-shockwave-flash" allowfullscreen="true" width="610" height="370" allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/4981099896563207261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/spring-video-tutorials.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4981099896563207261?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4981099896563207261?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/spring-video-tutorials.html' title='Spring Video Tutorials'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX0yfyp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-1408365635172250607</id><published>2013-04-23T02:50:00.000-07:00</published><updated>2013-05-15T23:52:44.397-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.397-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Contribution'/><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><title>Ways to Contribute to Open Source</title><content type='html'>Plenty of people want to get involved in the open source and they do not know where to start. Below source will give plenty of tips and ways of contribution.&lt;br/&gt;&lt;br/&gt;Open source software has changed computing and the world, and many of you would love to contribute. Unfortunately, many people are daunted by what they imagine is a high barrier to entry into a project. I commonly hear people say that they'd love to contribute but can't because of three reasons:&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;"I'm not a very good programmer."&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;"I don't have much time to put into it."&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;"I don't know what project to work on.”&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;There are three core principles to remember as you look for opportunities to contribute:&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Projects need contributions from everyone of all skills and levels of expertise.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;The smallest of contributions is still more than none.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;The best project to start working on is one that you use already.&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;h3&gt;&lt;strong&gt;&lt;a title="Source" href="http://blog.smartbear.com/software-quality/bid/167051/14-Ways-to-Contribute-to-Open-Source-without-Being-a-Programming-Genius-or-a-Rock-Star" target="_blank"&gt;Continue Reading.&lt;/a&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/1408365635172250607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/ways-to-contribute-to-open-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/1408365635172250607?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/1408365635172250607?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/ways-to-contribute-to-open-source.html' title='Ways to Contribute to Open Source'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX0yfCp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-3086738196985135447</id><published>2013-04-16T07:31:00.000-07:00</published><updated>2013-05-15T23:52:44.394-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.394-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='host file'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='significance'/><title>Significance of Host File in Windows</title><content type='html'>&lt;strong&gt;What is host file?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Almost every operating system that communicates via TCP/IP, the standard of communication on the Internet, has a file called the HOSTS file. This file allows you to create mappings between domain names and IP addresses.&lt;br/&gt;&lt;br/&gt;You can command your machine to contact the only a particular machine for replies.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;How to set your local machine to contact only a particular machine for the replies with the host file on Windows?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;1.Click on Win+R or Start -&amp;gt; run and type drivers as below:&lt;br/&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/1.png"&gt;&lt;img class="alignnone size-medium wp-image-609" alt="1" src="http://randomzone.in/wp-content/uploads/2013/04/1-300x167.png" width="300" height="167" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;2. Goto the “etc” directory and open the hosts file&lt;br/&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/3.png"&gt;&lt;img class="alignnone size-medium wp-image-610" alt="3" src="http://randomzone.in/wp-content/uploads/2013/04/3-300x168.png" width="300" height="168" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;3. Add the entries in the following format and save it&lt;br/&gt;&lt;br/&gt;{IP}         {Domain Name}&lt;br/&gt;&lt;br/&gt;Example:&lt;br/&gt;&lt;br/&gt;127.0.0.1              localhost&lt;br/&gt;&lt;br/&gt;10.90.112.101     domainname&lt;br/&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/5.png"&gt;&lt;img class="alignnone size-medium wp-image-611" alt="5" src="http://randomzone.in/wp-content/uploads/2013/04/5-300x83.png" width="300" height="83" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;You must have the administrative rights to modify/add the entries in hosts file.&lt;br/&gt;&lt;br/&gt;4. After saved the above host entries, whenever you gave the request the particular domain configured in the hosts file then response will come directly from the ip which we configured(example: 10.90.112.101)&lt;br/&gt;&lt;br/&gt;5. If you need to host entries, just delete the line which you added or insert “#” in front of the line as below&lt;br/&gt;&lt;br/&gt;#10.90.112.101  domainname</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/3086738196985135447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/significance-of-host-file-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/3086738196985135447?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/3086738196985135447?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/significance-of-host-file-in-windows.html' title='Significance of Host File in Windows'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX0zfip7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-380736583630713987</id><published>2013-04-11T04:30:00.000-07:00</published><updated>2013-05-15T23:52:44.386-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.386-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='iOS UI Automation'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='Testing'/><category scheme='http://www.blogger.com/atom/ns#' term='Intruments'/><category scheme='http://www.blogger.com/atom/ns#' term='Automation'/><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='UIAutomation'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='iOS'/><title>iOS UI Automation</title><content type='html'>&lt;div&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div id=":1d3"&gt;&lt;br/&gt;&lt;div id=":1bn"&gt;&lt;br/&gt;&lt;div dir="ltr"&gt;&lt;br/&gt;&lt;div&gt;&lt;strong&gt;Introduction / Overview&lt;/strong&gt;&lt;/div&gt;&lt;br/&gt;iPhone apps are developed using native or native-hybrid bridge.&lt;br/&gt;&lt;br/&gt;native-hybrid : The datas are rendered in HTML and the native actions are performed using js callbacks&lt;br/&gt;&lt;br/&gt;Automation testing framework for these applications is mainly to,&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Reduce the manual testing effort&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Reduce the testing cycles involved for any changes to the application&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Provide maximum test coverage&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;h3&gt;&lt;a href="http://randomzone.in/wp-content/uploads/2013/04/images.jpeg"&gt;&lt;img class="aligncenter size-full wp-image-597" alt="images" src="http://randomzone.in/wp-content/uploads/2013/04/images.jpeg" width="203" height="179" /&gt;&lt;/a&gt;&lt;/h3&gt;&lt;br/&gt;&lt;h3&gt;&lt;/h3&gt;&lt;br/&gt;&lt;h3&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-WhyUIAutomation%3F"&gt;&lt;/a&gt;Why UIAutomation ?&lt;/h3&gt;&lt;br/&gt;&lt;h5&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-SeleniumAutomation%26nbsp%3B"&gt;&lt;/a&gt;Selenium Automation&lt;/h5&gt;&lt;br/&gt;Using selenium the basic level functionalities like tapping, swiping could not be done in the iPhone app. so,selenium could not be an option to automate the iPhone app&lt;br/&gt;&lt;h5&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-Jasmineframework%26nbsp%3B"&gt;&lt;/a&gt;Jasmine framework&lt;/h5&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;    Jasmine is a BDD (Behavior Driven Development) framework.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;    Jasmine is mainly used for Unit testing&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;    More or less jasmine is same as tuneup framework&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;   Jasmine provides good reporting structure&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;   Reports can be in xml or html format&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;h5&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-UIAutomationtuneup.js"&gt;&lt;/a&gt;UI Automation + tuneup.js&lt;/h5&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;    It is the Apple's inbuilt Automation testing framework.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;    It is highly stable and also reliable testing framework.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;    It uses javascript to automate the testcases.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;    Automation can also be performed in the specified devices&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;    It can also be accessible from command line so that we can also integrate this with Hudson&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;    Considering its salient features,simplicity UIAutomation is preferred for automating the test cases over other testing frameworks&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;h3&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-Toolsused"&gt;&lt;/a&gt;Tools used&lt;/h3&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;     Xcode IDE (Version 4.X and above)&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;     Instruments&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;h5&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-InstrumentsTool%26nbsp%3B"&gt;&lt;/a&gt;Instruments Tool&lt;/h5&gt;&lt;br/&gt;Instruments is a tool for UIAutomation provided by Xcode. Instruments provides us the record and playback feature which will be very useful in doing automation&lt;br/&gt;&lt;br/&gt;It can be used to collect data about the performance and behavior of one or more processes on the system and track that data over time.&lt;br/&gt;&lt;h6&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-TestCaseLog"&gt;&lt;/a&gt;&lt;strong&gt;Test Case Log&lt;/strong&gt;&lt;/h6&gt;&lt;br/&gt;The test case when executed on the iOS application target, using Instruments,&lt;br/&gt;&lt;br/&gt;The Instruments console will show the details of,&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Log Message&lt;/b&gt; - What Test case is being executed&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Log Type&lt;/b&gt; - Test case is Pass or Fail.&lt;br/&gt;&lt;br/&gt;If a test case fails, it would display the&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt; Element tree in the failed page meaning, what are the UI elements present in the current page.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;  Also the screen shot of the page in which error occured.&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;h3&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-AutomationFramework"&gt;&lt;/a&gt;Automation Framework&lt;/h3&gt;&lt;br/&gt;&lt;b&gt;Tune-up&lt;/b&gt;  is the framework used for automation&lt;br/&gt;&lt;br/&gt;Tune-up is a collection of JavaScript utilities that builds upon and improves the UIAutomation library provided by Apple for testing iOS applications via Instruments.&lt;br/&gt;You can find more details about the Tune-up framework from here:&lt;a href="https://github.com/alexvollmer/tuneup_js/blob/master/README.md" target="_blank" rel="nofollow"&gt;https://github.com/alexvollmer/tuneup_js/blob/master/README.md&lt;/a&gt;&lt;br/&gt;an also in &lt;a href="http://alexvollmer.com/posts/2010/07/03/working-with-uiautomation/" target="_blank" rel="nofollow"&gt;http://alexvollmer.com/posts/2010/07/03/working-with-uiautomation/&lt;/a&gt;&lt;br/&gt;&lt;h4&gt;&lt;a name="13dd9171c95e3c79_PollRollApp-UIAutomation-Design-TestStructureinTuneup"&gt;&lt;/a&gt;Test Structure in Tune-up&lt;/h4&gt;&lt;br/&gt;To create a test case, use the test() function, which takes the name of the test case as a string, and a function. The function will be given a UIATarget instance and a UIAApplication instance.&lt;br/&gt;&lt;br/&gt;For example:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;test("Sign In to the app", function(target, app) {&lt;br/&gt;&lt;br/&gt;// The target and app arguments are root elements&lt;br/&gt;&lt;br/&gt;/* (i.e) The element structure of every element in the app goes in this way&lt;br/&gt;UIATarget.localTarget().frontMostApp().(position of the particular element in the view)&lt;br/&gt;for reusing UIATarget.localTarget().frontMostApp() we store it in target,app   */&lt;br/&gt;&lt;br/&gt;// The UIATarget is the primary portal into the application running on the device or simulator&lt;br/&gt;&lt;br/&gt;// Steps for Sign-in&lt;br/&gt;&lt;br/&gt;});&lt;br/&gt;&lt;br/&gt;test("Sign out from the app", function(target, app) {&lt;br/&gt;&lt;br/&gt;// Steps for Sign-out&lt;br/&gt;&lt;br/&gt;});&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;strong&gt;Integrating with the Project&lt;/strong&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;h3&gt;MakeFile configuration:&lt;/h3&gt;&lt;br/&gt;Configure the MakeFile which is in the project home , with the command lines which is used to build the project and Launch the instrument.&lt;br/&gt;&lt;br/&gt;Add the following configuration,&lt;br/&gt;&lt;br/&gt;1.TRACE_PATH : Location to store the .trace file, which will create after the execution of test script using instruments.&lt;br/&gt;&lt;br/&gt;2.TEMPLATE_PATH : Location where the test case TemplateTrace files are stored, which is created from the instruments by saving the testSuite script as Template.&lt;br/&gt;&lt;br/&gt;3.uiautomation :&lt;br/&gt;&lt;br/&gt;Shell command which&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Builds the project ,&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Executes the test case script by launching the Instruments tool.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;And this executes the test Suite which has the entire flow.&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;Ex.&lt;br/&gt;&lt;blockquote&gt;/* Specify the Trace path, Template path and App path */&lt;/blockquote&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div id="highlighter_646173"&gt;&lt;br/&gt;&lt;table border="0" cellspacing="0" cellpadding="0"&gt;&lt;br/&gt;&lt;tbody&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;&lt;br/&gt;&lt;div title="Hint: double-click to select code"&gt;&lt;br/&gt;&lt;div&gt;&lt;code&gt;TRACE_PATH = TraceDocument/UIAutomationTrace&lt;/code&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;code&gt;TEMPLATE_PATH = Test/Automation/Resources/TestCaseTemplates&lt;/code&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;code&gt;APP_PATH = /Users/${projectpath}//Products/Debug-iphonesimulator/sample.app&lt;/code&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/tbody&gt;&lt;br/&gt;&lt;/table&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;blockquote&gt;/* Shell commands to Run the Test cases */&lt;/blockquote&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div id="highlighter_524692"&gt;&lt;br/&gt;&lt;table border="0" cellspacing="0" cellpadding="0"&gt;&lt;br/&gt;&lt;tbody&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;&lt;br/&gt;&lt;div title="Hint: double-click to select code"&gt;&lt;br/&gt;&lt;div&gt;&lt;code&gt;uiautomation:&lt;/code&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;code&gt;    &lt;/code&gt;&lt;code&gt;xcodebuild -workspace sample.xcworkspace -scheme Release -sdk iphonesimulator5.&lt;/code&gt;&lt;code&gt;0&lt;/code&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;code&gt;    &lt;/code&gt;&lt;code&gt;instruments -t ${TEMPLATE_PATH}/testSuiteTemplate.tracetemplate -D ${TRACE_PATH} ${APP_PATH}&lt;/code&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/tbody&gt;&lt;br/&gt;&lt;/table&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;h3&gt;&lt;a name="PollRollUIAutomationScript-CommandlineExecution-RunningtheAutomationScript"&gt;&lt;/a&gt;Running the Automation Script&lt;/h3&gt;&lt;br/&gt;Command to run automation from Terminal using the MakeFile ,&lt;br/&gt;&lt;br/&gt;In Terminal ,Move to the directory where the ‘.xcodeproj‘ file resides&lt;br/&gt;&lt;br/&gt;And execute the following Command,&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;div id="highlighter_411015"&gt;&lt;br/&gt;&lt;table border="0" cellspacing="0" cellpadding="0"&gt;&lt;br/&gt;&lt;tbody&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;&lt;br/&gt;&lt;div title="Hint: double-click to select code"&gt;&lt;br/&gt;&lt;div&gt;&lt;code&gt;make uiautomation&lt;/code&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/tbody&gt;&lt;br/&gt;&lt;/table&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;h3&gt;&lt;a name="PollRollUIAutomationScript-CommandlineExecution-AdditionalInfoaboutShellCommands"&gt;&lt;/a&gt;&lt;b&gt;Additional Info about Shell Commands&lt;/b&gt;&lt;/h3&gt;&lt;br/&gt;Write a Shell Script to execute the following commands&lt;br/&gt;&lt;h3&gt;&lt;a name="PollRollUIAutomationScript-CommandlineExecution-1%29BuildingtheProject"&gt;&lt;/a&gt;&lt;b&gt;1) Building the Project&lt;/b&gt;&lt;/h3&gt;&lt;br/&gt;At first the Project should be build through ‘xcodebuild’ command&lt;br/&gt;&lt;br/&gt;&lt;b&gt;xcodebuild:&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;This command is used to build the xcode project.&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Xcodebuild Usage&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: #333399"&gt;&lt;b&gt;Xcodebuild -- workspace [PROJECT-WORKSPACE] --scheme [SCHEME-NAME] --sdk [DEVICE/SIMULATOR NAME]&lt;/b&gt;&lt;/span&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;table&gt;&lt;br/&gt;&lt;tbody&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;th&gt;Option&lt;/th&gt;&lt;br/&gt;&lt;th&gt;&lt;span style="color: #003366"&gt; Description&lt;/span&gt;&lt;/th&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;&lt;span style="color: #333399"&gt;&lt;b&gt;-- workspace&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;br/&gt;&lt;td&gt;PROJECT-WORKSPACE&lt;br/&gt;Name of the Project file(ex sample.xcworkspace)&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;&lt;span style="color: #333399"&gt;&lt;b&gt;--scheme&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;br/&gt;&lt;td&gt;SCHEME-NAME&lt;br/&gt;Name of the Sheme&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;&lt;span style="color: #333399"&gt;&lt;b&gt;--sdk&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Specify the device/simulator name(ex: simulator name – iPhoneSimulator5.0)&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/tbody&gt;&lt;br/&gt;&lt;/table&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;Move to the directory where the ‘.xcodeproj‘ file resides and then the command Should be executed&lt;br/&gt;&lt;br/&gt;Ex:&lt;br/&gt;&lt;br/&gt;Move to the directory where the project resides&lt;br/&gt;&lt;br/&gt;Execute the xcodebuild command&lt;br/&gt;&lt;br/&gt;&lt;b&gt;$bash: xcodebuild -workspace sample.xcworkspace -scheme Release -sdk iphonesimulator5.0&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;This command will build the project with configuration as release and sdk as iphone simulator5.0&lt;br/&gt;&lt;h3&gt;&lt;a name="PollRollUIAutomationScript-CommandlineExecution-2%29LaunchingtheInstrumentstool"&gt;&lt;/a&gt;&lt;b&gt;2) Launching the Instruments tool&lt;/b&gt;&lt;/h3&gt;&lt;br/&gt;Execute a command to launch the Instrument with the latest build&lt;br/&gt;&lt;br/&gt;This command executes the saved ‘.tracetemplate’ file and saves the result in the path specified&lt;br/&gt;&lt;h5&gt;&lt;a name="PollRollUIAutomationScript-CommandlineExecution-InstrumentsCommandUsage"&gt;&lt;/a&gt;Instruments Command Usage&lt;/h5&gt;&lt;br/&gt;&lt;span style="color: #333399"&gt;&lt;b&gt;instruments [-t template] [-d document] [-w device] [-p pid] | [application [-e variable value ]]&lt;/b&gt;&lt;/span&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;table&gt;&lt;br/&gt;&lt;tbody&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;th&gt;Options&lt;/th&gt;&lt;br/&gt;&lt;th&gt;                                                 Description&lt;/th&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-t&lt;/td&gt;&lt;br/&gt;&lt;td&gt;     templateFile name of type ‘ .tracetemplate ‘ with the path of  the file location&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-s&lt;/td&gt;&lt;br/&gt;&lt;td&gt;     Show list of known templates and exit&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-d&lt;/td&gt;&lt;br/&gt;&lt;td&gt;     documentThe path to save the trace document data to (This may already exist, in which case&lt;br/&gt;a new Run will be added)&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-p&lt;/td&gt;&lt;br/&gt;&lt;td&gt;     pidThe ID of the process to attach to&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;application&lt;/td&gt;&lt;br/&gt;&lt;td&gt;     The path to the application or command to launch&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-w&lt;/td&gt;&lt;br/&gt;&lt;td&gt;     hardware deviceThe identifier of the hardware to target&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-e&lt;/td&gt;&lt;br/&gt;&lt;td&gt;     variable valueAn environment variable setting (You may specify more than one)&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/tbody&gt;&lt;br/&gt;&lt;/table&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;Ex :&lt;br/&gt;&lt;br/&gt;&lt;span style="color: #333399"&gt;&lt;b&gt;       instruments -t $TEMPLATE_PATH -D $TRACE_PATH  $APP_PATH&lt;/b&gt;&lt;/span&gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;table&gt;&lt;br/&gt;&lt;tbody&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;th&gt;Option&lt;/th&gt;&lt;br/&gt;&lt;th&gt;Description&lt;/th&gt;&lt;br/&gt;&lt;th&gt;Example&lt;/th&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;TEMPLATE_PATH&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Template path is the path of the saved template file&lt;/td&gt;&lt;br/&gt;&lt;td&gt;$PROJECT_HOME/Test/Automation/Resources/TestCaseTemplates/testSuite.tracetemplate&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;TRACE_PATH&lt;/td&gt;&lt;br/&gt;&lt;td&gt;It is the path where the .trace will be saved after executing the automation&lt;/td&gt;&lt;br/&gt;&lt;td&gt;$PROJECT_HOME/TraceDocument/UIAutomationTrace&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;APP_PATH&lt;/td&gt;&lt;br/&gt;&lt;td&gt;It is the path of the latest build of the APP&lt;/td&gt;&lt;br/&gt;&lt;td&gt;~/Library/Developer/Xcode/DerivedData/sample-gxfepasnjxtmhjcevjkpyunezjca/Build/Products/Debug-iphonesimulator/sample.app&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/tbody&gt;&lt;br/&gt;&lt;/table&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;Note: After the execution of the xcodebuild command the app will be build in a directory; APP_PATH should have that directory path&lt;br/&gt;&lt;br/&gt;The Build path can be customized. To change the app build path, In  the Xcode Choose the Xcode option int the Menu bar choose Preferences – Locations and then give the custom location in the derived data field&lt;br/&gt;&lt;br/&gt;On executing this command, the script loaded in the .tracetemplate file will get executed on the specified simulator/device and stores the .trace file in the specified path&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/380736583630713987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/ios-ui-automation.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/380736583630713987?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/380736583630713987?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/ios-ui-automation.html' title='iOS UI Automation'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;DUYCRX09cCp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-2744753200623103033</id><published>2013-04-05T06:59:00.000-07:00</published><updated>2013-05-15T23:52:44.368-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.368-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Go Green'/><category scheme='http://www.blogger.com/atom/ns#' term='Conserving nature'/><category scheme='http://www.blogger.com/atom/ns#' term='Polluting environment less'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><category scheme='http://www.blogger.com/atom/ns#' term='CFL vs Incandescent'/><title>Light smart by going green</title><content type='html'>I was in dilemma, when I started to write this blog. Because the content that am going to narrate here is a well known fact.  But still, a recent incident has urged me post this blog.&lt;br/&gt;&lt;br/&gt;How many of us have cursed the Tamil Nadu or Indian government for inconsistent power supply. We blame political parties, politicians and even God at times for lack of rain which has a direct influence in power production.  But we fail to think that there is only few that can be done by the government and we as a citizen of this country need to take responsibility and do some possible deed.&lt;br/&gt;&lt;br/&gt;There is a simple step that you can contribute to nature in two ways, one by consuming less energy and another by polluting the environment less.&lt;br/&gt;&lt;br/&gt;Its nothing but replacing incandescent bulbs with CFL bulbs. How this will help us ???.&lt;br/&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/02/dsc_0285-1.jpg"&gt;&lt;img class="aligncenter size-full wp-image-368" alt="DSC_0285-1" src="http://randomzone.in/blog/wp-content/uploads/2013/02/dsc_0285-1.jpg" width="485" height="367" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;A CFL consumes 25% less energy when compared to an incandescent bulb. This saves electricity by 70%. An incandescent bulb glowing for 1 hr consumes 60 watts, whereas a CFL glowing for 1 hour consumes 10 watts only. You will get the same glow from both these bulbs. We save 50 Watts of energy per hour, if we do a simple change.  This is how we consume less energy.&lt;br/&gt;&lt;br/&gt;"We never know the worth of water till the well is dry".  ~Thomas Fuller,&lt;i&gt;Gnomologia. &lt;/i&gt;&lt;i&gt;Same is the case for power we waste most of the time without knowing its value. &lt;/i&gt;&lt;br/&gt;&lt;br/&gt;On the other side of the story, If we light an incandescent lamp for one hour it produces 5 kg of co2, which is an endanger for the environment. This is equal to riding a bike for 8 km. So the first immediate step we need to do is to change all the incandescent bulb with CFL wherever  we could.  So that you can contribute something valuable to the environment and to the nation by saving a decent amount of electricity.&lt;br/&gt;&lt;br/&gt;You may have lot of questions that, who is buying incandescent these days and where will be these kind of bulbs found now a days. Yes, we have many people around who are unaware of it. The reason why am writing this here is, one of my well educated friend has recently bought a incandescent bulb to our home.  That's the time I have decided to post this blog and create awareness about the same.  You can find these kind of bulbs in rural areas mostly than the urban. It is not uncommon to find these kind of bulb in rural areas.&lt;br/&gt;&lt;br/&gt;If we change every such Bulb in our state(Tamil Nadu), we can get an extra 15 mins of power for each day in our state. We can do this instead blaming our government or politicians. If we could make it happen and if we do the same in all states of our country, we could save a lot of power and that can be used for many other industrialization purposes.&lt;br/&gt;&lt;br/&gt;I thought of this blog a long time back and drafted this, But I need to be a "Doer before a Sayer".  It took a months time for me to change all incandescent lamps wherever I could (In my home, My Grandma's home, Our current rented home in Chennai). Totally 5 is what I have changed so far.  Even its a little am happy that I have contributed something to the environment and did a good deed as a citizen to my country.&lt;br/&gt;&lt;br/&gt;Little progress together makes a brighter and greener future. I want my friends to do and Share the same.&lt;br/&gt;&lt;br/&gt;Lets create a better future together.....</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/2744753200623103033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/light-smart-by-going-green.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/2744753200623103033?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/2744753200623103033?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/04/light-smart-by-going-green.html' title='Light smart by going green'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX08fip7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-4324870603039833862</id><published>2013-03-26T21:34:00.000-07:00</published><updated>2013-05-15T23:52:44.376-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.376-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='parser'/><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='toolrunner'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='hadoop'/><title>GenericOptionsParser, Tool, and ToolRunner for running Hadoop Job</title><content type='html'>Hadoop comes with a few helper classes for making it easier to run jobs from the command line. GenericOptionsParser is a class that interprets common Hadoop command-line options and sets them on a Configuration object for your application to use as desired. You don’t usually use GenericOptionsParser directly, as it’s more convenient to implement the Tool interface and run your application with the ToolRunner, which uses GenericOptionsParser internally:&lt;br/&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee; font-size: 12px; border: 1px dashed #999999; line-height: 14px; padding: 5px; overflow: auto; width: 100%;"&gt;&lt;code&gt;public interface Tool extends Configurable {&lt;br/&gt;        int run(String [] args) throws Exception;&lt;br/&gt;    }&lt;br/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;Below example shows a very simple implementation of Tool, for running the Hadoop Map Reduce Job.&lt;br/&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee; font-size: 12px; border: 1px dashed #999999; line-height: 14px; padding: 5px; overflow: auto; width: 100%;"&gt;&lt;code&gt;public class WordCountConfigured extends Configured implements Tool {&lt;br/&gt;        @Override&lt;br/&gt;        public int run(String[] args) throws Exception {&lt;br/&gt;        Configuration conf = getConf();&lt;br/&gt;&lt;br/&gt;        return 0;&lt;br/&gt;        }        &lt;br/&gt;    }&lt;br/&gt;    public static void main(String[] args) throws Exception {&lt;br/&gt;        int exitCode = ToolRunner.run(new WordCountConfigured(), args);&lt;br/&gt;        System.exit(exitCode);&lt;br/&gt;    }&lt;br/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;We make WordCountConfigured a subclass of Configured, which is an implementation of the Configurable interface. All implementations of Tool need to implement Configurable (since Tool extends it), and subclassing Configured is often the easiest way to achieve this. The run() method obtains the Configuration using Configurable’s getConf() method, and then iterates over it, printing each property to standard output.&lt;br/&gt;&lt;br/&gt;WordCountConfigured’s main() method does not invoke its own run() method directly. Instead, we call ToolRunner’s static run() method, which takes care of creating a Configuration object for the Tool, before calling its run() method. ToolRunner also uses a GenericOptionsParser to pick up any standard options specified on the command line, and set them on the Configuration instance. We can see the effect of picking up the properties specified in conf/hadoop-localhost.xml by running the following command:&lt;br/&gt;&lt;blockquote&gt;hadoop WordCountConfigured -conf conf/hadoop-localhost.xml -D mapred.job.tracker=localhost:10011 -D mapred.reduce.tasks=n&lt;/blockquote&gt;&lt;br/&gt;Options specified with -D take priority over properties from the configuration files. This is very useful: you can put defaults into configuration files, and then override them with the -D option as needed. A common example of this is setting the number of reducers for a MapReduce job via -D mapred.reduce.tasks=n. This will override the number of reducers set on the cluster, or if set in any client-side configuration files. The other options that GenericOptionsParser and ToolRunner support are listed in Table.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;GenericOptionsParser and ToolRunner option Description&lt;/strong&gt;&lt;br/&gt;&lt;table border="1"&gt;&lt;br/&gt;&lt;tbody&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;th&gt;Property&amp;gt;&lt;/th&gt;&lt;br/&gt;&lt;th&gt;Description&lt;/th&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-D property=value&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Sets the given Hadoop configuration property to the given value. Overrides any default or site properties in the configuration, and any properties set via the -conf option.&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-conf filename ...&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Adds the given files to the list of resources in the configuration. This is a convenient way to set site properties, or to set a number of properties at once.&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-fs uri&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Sets the default filesystem to the given URI. Shortcut for -D fs.default.name=uri&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-jt host:port&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Sets the jobtracker to the given host and port. Shortcut for -D mapred.job.tracker=host:port&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-files file1,file2,...&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Copies the specified files from the local filesystem (or any filesystem if a scheme is specified) to the shared filesystem used by the jobtracker (usually HDFS) and makes them available to MapReduce programs in the task’s working directory.&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-archives archive1,archive2,...&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Copies the specified archives from the local filesystem (or any filesystem if a scheme is&lt;br/&gt;specified) to the shared filesystem used by the jobtracker (usually HDFS), unarchives them, and makes them available to MapReduce programs in the task’s working directory.&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;tr&gt;&lt;br/&gt;&lt;td&gt;-libjars jar1,jar2,...&lt;/td&gt;&lt;br/&gt;&lt;td&gt;Copies the specified JAR files from the local filesystem (or any filesystem if a scheme is specified) to the shared filesystem used by the jobtracker (usually HDFS), and adds them to the MapReduce task’s classpath. This option is a useful way of shipping JAR files that a job is dependent on&lt;/td&gt;&lt;br/&gt;&lt;/tr&gt;&lt;br/&gt;&lt;/tbody&gt;&lt;br/&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/4324870603039833862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/genericoptionsparser-tool-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4324870603039833862?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4324870603039833862?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/genericoptionsparser-tool-and.html' title='GenericOptionsParser, Tool, and ToolRunner for running Hadoop Job'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX08eip7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-8529021760211255805</id><published>2013-03-25T03:20:00.000-07:00</published><updated>2013-05-15T23:52:44.372-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.372-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Ant'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='Build tool'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title>Apache Ant - Tutorial</title><content type='html'>&lt;p style="text-align: left;"&gt;&lt;strong&gt;1. Build Tools&lt;/strong&gt;&lt;br/&gt;Build tools are used to automate the repetitive task like compiling source code, generating documentation, running tests, uilding the jar and so on. Some of the well known build tools are Apache Ant, Maven.&lt;/p&gt;&lt;br/&gt;&lt;strong&gt;2. Overview of Ant&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Ant(Another Neat Tool) is the java library and mostly used to building and deploying the java application. Ant provides the built-in tools to compile, build, test and packing the java application. Ant builds are based on three blocks.&lt;br/&gt;Tasks: Task is the unit of work. For example compile, packing.&lt;br/&gt;Targets: Targets can be invoked via Ant.&lt;br/&gt;Extension Points: Extension points are same as targets and it won't any operation and just coordinate the targets.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;3. Building the Java Application: Using Apache Ant&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Create the build.xml(not as same) in your project root directory. Given below is the sample build xml(self explanatory - comments inline)&lt;br/&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee; font-size: 12px; border: 1px dashed #999999; line-height: 14px; padding: 5px; overflow: auto; width: 100%;"&gt;&lt;code&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;br/&gt;&amp;lt;project name="nRelate Analytics" &amp;gt;&lt;br/&gt;    &amp;lt;!-- Sets variables which can later be used. --&amp;gt;&lt;br/&gt;    &amp;lt;!-- The value of a property is accessed via ${} --&amp;gt;&lt;br/&gt;    &amp;lt;property name="src.dir" location="src" /&amp;gt;&lt;br/&gt;    &amp;lt;property name="build.dir" location="build" /&amp;gt;&lt;br/&gt;    &amp;lt;property name="dist.dir" location="dist" /&amp;gt;&lt;br/&gt;    &amp;lt;property name="lib.dir" location="lib" /&amp;gt;&lt;br/&gt;&lt;br/&gt;    &amp;lt;!--&lt;br/&gt;      Create a classpath container which can be later used in the ant task&lt;br/&gt;    --&amp;gt;&lt;br/&gt;    &amp;lt;path id="build.classpath"&amp;gt;&lt;br/&gt;        &amp;lt;fileset dir="${lib.dir}"&amp;gt;&lt;br/&gt;            &amp;lt;include name="**/*.jar" /&amp;gt;&lt;br/&gt;        &amp;lt;/fileset&amp;gt;&lt;br/&gt;    &amp;lt;/path&amp;gt;&lt;br/&gt;&lt;br/&gt;    &amp;lt;!-- Deletes the existing build, dist directory--&amp;gt;&lt;br/&gt;    &amp;lt;target name="clean"&amp;gt;&lt;br/&gt;        &amp;lt;delete dir="${build.dir}" /&amp;gt;&lt;br/&gt;        &amp;lt;delete dir="${dist.dir}" /&amp;gt;&lt;br/&gt;    &amp;lt;/target&amp;gt;&lt;br/&gt;&lt;br/&gt;    &amp;lt;!-- Creates the  build, dist directory--&amp;gt;&lt;br/&gt;    &amp;lt;target name="makedir"&amp;gt;&lt;br/&gt;        &amp;lt;mkdir dir="${build.dir}" /&amp;gt;&lt;br/&gt;        &amp;lt;mkdir dir="${dist.dir}" /&amp;gt;&lt;br/&gt;    &amp;lt;/target&amp;gt;&lt;br/&gt;&lt;br/&gt;    &amp;lt;!-- Compiles the java code (including the usage of library --&amp;gt;&lt;br/&gt;    &amp;lt;target name="compile" depends="clean, makedir"&amp;gt;&lt;br/&gt;        &amp;lt;javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath"&amp;gt;&lt;br/&gt;        &amp;lt;/javac&amp;gt;&lt;br/&gt;    &amp;lt;/target&amp;gt;&lt;br/&gt;&lt;br/&gt;    &amp;lt;!--Creates the deployable jar file  --&amp;gt;&lt;br/&gt;    &amp;lt;target name="createjar" depends="compile"&amp;gt;&lt;br/&gt;        &amp;lt;jar destfile="${dist.dir}LogNormalizer.jar" basedir="${build.dir}"&amp;gt;&lt;br/&gt;        &amp;lt;!-- Adding to Manifest file, from which class to start exceution --&amp;gt;&lt;br/&gt;        &amp;lt;manifest&amp;gt;&lt;br/&gt;            &amp;lt;attribute name="Main-Class" value="test.MainClass" /&amp;gt;&lt;br/&gt;        &amp;lt;/manifest&amp;gt;&lt;br/&gt;        &amp;lt;/jar&amp;gt;&lt;br/&gt;    &amp;lt;/target&amp;gt;&lt;br/&gt;&amp;lt;/project&amp;gt;&lt;br/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;strong&gt;4) Run your Ant build from the command line&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Open a command line and switch to your project directory. Type in the following commands.&lt;br/&gt;&lt;blockquote&gt;# Run the build&lt;br/&gt;ant -f build.xml&lt;br/&gt;# build.xml is default you can also use&lt;br/&gt;ant&lt;br/&gt;Specify the target as below.&lt;br/&gt;#Run the build.xml by specifying the target.&lt;br/&gt;ant -f build.xml createjar&lt;/blockquote&gt;&lt;br/&gt;The build should finish successfully and generate the build artifacts under the dist directory.&lt;br/&gt;&lt;br/&gt;Subscribe to get updates on this article.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/8529021760211255805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/apache-ant-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/8529021760211255805?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/8529021760211255805?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/apache-ant-tutorial.html' title='Apache Ant - Tutorial'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX0zeSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-8548919829112132420</id><published>2013-03-22T07:06:00.000-07:00</published><updated>2013-05-15T23:52:44.381-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.381-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='Authors'/><category scheme='http://www.blogger.com/atom/ns#' term='Jeffrey Archer'/><category scheme='http://www.blogger.com/atom/ns#' term='Good reading'/><category scheme='http://www.blogger.com/atom/ns#' term='Chetan Bhagat'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='Paul Coelho'/><category scheme='http://www.blogger.com/atom/ns#' term='Robin sharma'/><category scheme='http://www.blogger.com/atom/ns#' term='Image'/><category scheme='http://www.blogger.com/atom/ns#' term='Readings'/><title>My Personal collections</title><content type='html'>This is my personal collection of books that I wish to read and also books that I have accomplished so far. I firmly believe in  Thomas Jefferson's quote - "A life without a book is meaningless". I want my life to be meaningful and so here comes this blog. I will keep on updating this list and also welcome people who suggest me some good books and give me some feedback.&lt;br/&gt;&lt;h2&gt;&lt;span style="color: #000000;"&gt;&lt;em&gt;&lt;strong&gt;Drowned ...&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;em&gt;&lt;/em&gt;Two States - Chetan bhagat&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/2-states-cover.png"&gt;&lt;img class="alignleft size-medium wp-image-463" alt="2-states-cover" src="http://randomzone.in/blog/wp-content/uploads/2013/03/2-states-cover.png?w=300" width="300" height="225" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;This is beautiful love story between an IIM guy from Delhi and a girl from Tamil nadu. This is how they fall in love and carrying it till their marriage. Over coming their problems of being from different caste, culture, language and family back ground. This is the author's own story. A good one to read.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;One night at the call center - Chetan bhagat&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/img_book_2_cover.jpg"&gt;&lt;img class="alignleft size-medium wp-image-467" alt="one_night_@_the_call_centre" src="http://randomzone.in/blog/wp-content/uploads/2013/03/img_book_2_cover.jpg?w=196" width="196" height="300" /&gt;&lt;/a&gt; Another drama from Chetan, where the entire book is about the story that happens over a night. This explains the life at call center and along with a love drama in between. A kind of interesting, though it doesn't sound as two states.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;Who will cry when you die - Robin Sharma&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/who_will_cry.jpg"&gt;&lt;img class="alignleft size-medium wp-image-470" alt="Who_will_cry_when_you_die" src="http://randomzone.in/blog/wp-content/uploads/2013/03/who_will_cry.jpg?w=219" width="219" height="300" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Author Robin speaks about life's simple things which will make life happier. This will be a collection of different lessons where he touch base all areas from being kind to others, mental and physical fitness, going green, being positive and lot more.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;The Greatness guide - Robin Sharma&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/the-greatness-guide-275x275-imadbgf6abkyhze7.jpeg"&gt;&lt;img class="alignleft size-full wp-image-469" alt="the-greatness-guide" src="http://randomzone.in/blog/wp-content/uploads/2013/03/the-greatness-guide-275x275-imadbgf6abkyhze7.jpeg" width="178" height="275" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Robin explains how one should lead his life both as a leader and a follower. He has embedded great sayings of Legends and  proverbs that will sting to your mind. He simply states that , "the first point of how a world sees you, should begin from you.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;Five point someone - Chetan bhagat&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/cover_highres_fivepointsomeone.jpg"&gt;&lt;img class="alignleft size-medium wp-image-466" alt="5_Point_Someone" src="http://randomzone.in/blog/wp-content/uploads/2013/03/cover_highres_fivepointsomeone.jpg?w=300" width="300" height="221" /&gt;&lt;/a&gt; This another real life incident happened to author in IIT. A mix of fun and love in his college days. Well written in simple language as like his other books. Once you start, you can never close without finishing it.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;What young India Wants - Chetan Bhagat&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/chetanbhagatwhatyoungindiawantsedit.jpg"&gt;&lt;img class="alignleft size-medium wp-image-465" alt="ChetanBhagatWhatYoungIndiaWants" src="http://randomzone.in/blog/wp-content/uploads/2013/03/chetanbhagatwhatyoungindiawantsedit.jpg?w=213" width="213" height="300" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Its the collection of essays and articles written by the author in various newspapers in the north. He has also some good letters written by him to Political leaders. Most of the incidents in this book speaks about things that cling around northern part of India.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;The Alchemist - Paul Coelho&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/alchemist.jpeg"&gt;&lt;img class="alignleft size-medium wp-image-464" alt="The Alchemist" src="http://randomzone.in/blog/wp-content/uploads/2013/03/alchemist.jpeg?w=193" width="193" height="300" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;This is a story where the author speaks about treasure, desert, travel and love. Its about a young boy who risks his life in fulfilling his destiny. He insists that "“If you really desire to achieve something, the whole world conspires in helping you to achieve it”.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;Revolution 2020 - Chetan Bhagat&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/200px-revolution2020_love_corruption_ambition.png"&gt;&lt;img class="alignleft size-full wp-image-491" alt="200px-Revolution2020_Love_Corruption_Ambition" src="http://randomzone.in/blog/wp-content/uploads/2013/03/200px-revolution2020_love_corruption_ambition.png" width="200" height="269" /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;A triangle love story between three. One guy who failed to IIT but becoming a director of an Engineering college. Another guy who cracked the exams to get in to the best college and at last ended up in running his own news paper publication who is willing to correct the corrupted nation with his thoughts and broad mind. The final touch of whom the girl will be married to is an interesting ending.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;Kane and Abel - Jeffrey Archer&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/kane-and-abel.jpg"&gt;&lt;img class="alignleft size-medium wp-image-468" alt="kane-and-abel" src="http://randomzone.in/blog/wp-content/uploads/2013/03/kane-and-abel.jpg?w=197" width="197" height="300" /&gt;&lt;/a&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&lt;br/&gt;This is one of the best books that I have ever read. It explains life of 2 persons from their birth to death. The journey they went through, difficulties in bringing themselves up their life. I highly recommend this book for anyone. The author has kept his nerve through out the story. I have decided to read the few other books of this author. He deserves the title to be one of the best authors in the world.&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;span style="color: #000000;"&gt;&lt;strong&gt;&lt;em&gt;To be drowned....&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;A Thousand Splendid Suns -  Khaled Hosseini&lt;/h2&gt;&lt;br/&gt;&lt;a href="http://randomzone.in/blog/wp-content/uploads/2013/03/splendid-suns.jpg"&gt;&lt;img class="size-medium wp-image-473 alignleft" alt="splendid suns" src="http://randomzone.in/blog/wp-content/uploads/2013/03/splendid-suns.jpg?w=300" width="300" height="300" /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/8548919829112132420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/my-personal-collections.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/8548919829112132420?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/8548919829112132420?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/my-personal-collections.html' title='My Personal collections'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX0_eyp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-8835316426771918590</id><published>2013-03-20T22:13:00.000-07:00</published><updated>2013-05-15T23:52:44.343-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.343-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title>Google Launches Realtime API for Google Drive</title><content type='html'>Google has launched a Realtime API for Google Drive, enabling developers to create apps that can tap into Drive's real-time editing capabilities.&lt;br/&gt;&lt;br/&gt;The API provides developers with collaborative versions of data objects such as maps, lists, strings, and JSON values, which are automatically synchronized, and all modifications to them are stored. Developers can create apps that read from and write to these objects like any local object.&lt;br/&gt;&lt;br/&gt;If the basic set of objects isn't enough, developers can also create custom objects and references, which includes trees and arbitrary graph structures.&lt;br/&gt;&lt;br/&gt;interested developers can check out the Google Drive Realtime API technical documentation &lt;a href="https://developers.google.com/drive/realtime/"&gt;here&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Source: Mashable.com</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/8835316426771918590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/google-launches-realtime-api-for-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/8835316426771918590?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/8835316426771918590?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/03/google-launches-realtime-api-for-google.html' title='Google Launches Realtime API for Google Drive'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX04fSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-4644756338439923867</id><published>2013-02-19T01:54:00.000-08:00</published><updated>2013-05-15T23:52:44.335-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.335-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Readings'/><title>Excellence is a drive from inside</title><content type='html'>Shared in the Cognizant Internal Mail Thread.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Excellence is a drive from inside&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="line-height: 1.6em;"&gt;A tourist once visited a temple under construction where he saw a sculptor making an idol of God. Suddenly he noticed a similar idol lying nearby.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Surprised, he asked the sculptor, "Do you need two statues of the same idol?"&lt;br/&gt;&lt;br/&gt;"No," said the sculptor without looking up, "We need only one, but the first one got damaged at the last stage."&lt;br/&gt;&lt;br/&gt;The gentleman examined the idol and found no apparent damage.&lt;br/&gt;&lt;br/&gt;"Where is the damage?" he asked.&lt;br/&gt;&lt;br/&gt;"There is a scratch on the nose of the idol." said the sculptor, still busy with his work.&lt;br/&gt;&lt;br/&gt;"Where are you going to install the idol?"&lt;br/&gt;&lt;br/&gt;The sculptor replied that it would be installed on a pillar twenty feet high.&lt;br/&gt;&lt;br/&gt;"If the idol is that far, who is going to know that there is a scratch on the nose?" the gentleman asked...&lt;br/&gt;&lt;br/&gt;The sculptor stopped his work, looked up at the gentleman, smiled and said, "I will know it."&lt;br/&gt;&lt;br/&gt;Moral :&lt;br/&gt;&lt;br/&gt;Excellence is not for someone else to notice but for your own satisfaction and efficiency.&lt;br/&gt;&lt;br/&gt;The desire to excel is exclusive of the fact whether someone else appreciates.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/4644756338439923867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/02/excellence-is-drive-from-inside.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4644756338439923867?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/4644756338439923867?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/02/excellence-is-drive-from-inside.html' title='Excellence is a drive from inside'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX05fyp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-5523960570621204209</id><published>2013-02-14T05:46:00.000-08:00</published><updated>2013-05-15T23:52:44.327-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.327-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='mapreduce'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='hadoop mapreduce example'/><category scheme='http://www.blogger.com/atom/ns#' term='hadoop'/><title>Writing MapReduce Program on Hadoop - Context</title><content type='html'>Map and Reduce&lt;br/&gt;&lt;br/&gt;Map Reduce works by breaking the processing into two phases: Map phase and Reduce phase. Each phase has the key-value pair as input and type of key and value can be chosen by the programmer.&lt;br/&gt;&lt;br/&gt;Data flow in the Map and Reduce:&lt;br/&gt;&lt;blockquote&gt;Input ==&amp;gt; Map ==&amp;gt; Mapper Output ==&amp;gt; Sort and shuffle ==&amp;gt; Reduce ==&amp;gt; Final Output&lt;/blockquote&gt;&lt;br/&gt;Steps to Write the Hadoop Map Reduce in Java&lt;br/&gt;&lt;br/&gt;Map Reduce program need three things: Map, Reduce and Some code to run job(Here we will call it as Invoker)&lt;br/&gt;&lt;br/&gt;1). Create the Map(Any Name) class and map function was represented by org.apache.hadoop.mapreduce.Mapper.class which declares an abstract map() method.&lt;br/&gt;[code lang="java"]import org.apache.hadoop.io.IntWritable;&lt;br/&gt;import org.apache.hadoop.io.LongWritable;&lt;br/&gt;import org.apache.hadoop.io.Text;&lt;br/&gt;import org.apache.hadoop.mapreduce.Mapper;&lt;br/&gt;&lt;br/&gt;import java.io.IOException;&lt;br/&gt;&lt;br/&gt;public class Map extends Mapper&amp;amp;lt;;LongWritable, Text, Text,IntWritable&amp;amp;gt; {&lt;br/&gt;    private final static IntWritable one = new IntWritable(1);&lt;br/&gt;    private Text word = new Text();&lt;br/&gt;    public void map(LongWritable key,Text value,Context context) throws IOException, InterruptedException {&lt;br/&gt;        word.set(value.toString());&lt;br/&gt;        context.write(word, one);&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;[/code]&lt;br/&gt;Explanation:&lt;br/&gt;The Mapper class is the generic class with four formal parameters(input key, input value, output key and output value). Here input key is LongWritable(Long representation by hadoop), input value is the Text(String representation by hadoop), output key is text(keyword) and output value is Intwritable(int representation by hadoop). All above hadoop datatypes are same as java datatype expect that are optimized for network serialization.&lt;br/&gt;&lt;br/&gt;2). Create the Reducer(Any Name) class and reduce function was represented by org.apache.hadoop.mapreduce.Reducer.class which declares an abstract reduce() method.&lt;br/&gt;[code lang="java"]import org.apache.hadoop.io.IntWritable;&lt;br/&gt;import org.apache.hadoop.io.Text;&lt;br/&gt;import org.apache.hadoop.mapreduce.Reducer;&lt;br/&gt;&lt;br/&gt;import java.io.IOException;&lt;br/&gt;import java.util.Iterator;&lt;br/&gt;&lt;br/&gt;public class Reduce extends Reducer&amp;amp;lt;Text, IntWritable, Text,IntWritable&amp;amp;gt; {&lt;br/&gt;    @Override&lt;br/&gt;    protected void reduce(Text key, Iterable values, Context context) throws IOException, InterruptedException {&lt;br/&gt;        int sum = 0;&lt;br/&gt;        for(IntWritable intWritable : values){&lt;br/&gt;            sum += intWritable.get();&lt;br/&gt;        }&lt;br/&gt;        context.write(key, new IntWritable(sum));&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;[/code]&lt;br/&gt;Explanation:&lt;br/&gt;The Reducer class is the generic class with four formal parameters(input key, input value, output key and output value). Here input key and input value type must match with Mapper output, output key is text(keyword) and output value is Intwritable(number of occurence).&lt;br/&gt;&lt;br/&gt;3) We are ready with Map and Reduce implementation, then we need to have the invoker for confguring the Hadoop job and invoke the Map Reduce program.&lt;br/&gt;[code lang="java"]import org.apache.hadoop.conf.Configuration;&lt;br/&gt;import org.apache.hadoop.fs.Path;&lt;br/&gt;import org.apache.hadoop.io.Text;&lt;br/&gt;import org.apache.hadoop.mapreduce.Job;&lt;br/&gt;import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;&lt;br/&gt;import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;&lt;br/&gt;&lt;br/&gt;public class WordCount{&lt;br/&gt;    public static void main(String[] args) throws Exception {&lt;br/&gt;        Configuration configuration = new Configuration();&lt;br/&gt;        configuration.set(&amp;quot;fs.default.name&amp;quot;, &amp;quot;hdfs://localhost:10011&amp;quot;);&lt;br/&gt;        configuration.set(&amp;quot;mapred.job.tracker&amp;quot;,&amp;quot;localhost:10012&amp;quot;);&lt;br/&gt;&lt;br/&gt;        Job job = new Job(configuration, &amp;quot;Word Count&amp;quot;);&lt;br/&gt;&lt;br/&gt;        job.setJarByClass(WordCount.class);&lt;br/&gt;        job.setMapperClass(Map.class);&lt;br/&gt;        job.setReducerClass(Reduce.class);&lt;br/&gt;        job.setOutputKeyClass(Text.class);&lt;br/&gt;        job.setOutputValueClass(Text.class);&lt;br/&gt;        job.setInputFormatClass(org.apache.hadoop.mapreduce.lib.input.TextInputFormat.class);&lt;br/&gt;        job.setOutputFormatClass(org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.class);&lt;br/&gt;        FileInputFormat.addInputPath(job, new Path(args[0]));&lt;br/&gt;        FileOutputFormat.setOutputPath(job, new Path(args[1]));&lt;br/&gt;&lt;br/&gt;        //Submit the job to the cluster and wait for it to finish.&lt;br/&gt;        System.exit(job.waitForCompletion(true) ? 0 : 1);&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;[/code]&lt;br/&gt;4). Compile code by using following command&lt;br/&gt;&lt;blockquote&gt;mkdir WordCount&lt;br/&gt;javac -classpath ${HADOOP_HOME}/hadoop-0.20.2+228-core.jar -d WordCount path/*.java&lt;/blockquote&gt;&lt;br/&gt;5). Create the jar by using command&lt;br/&gt;&lt;blockquote&gt;jar -cvf ~/WordCount.jar -C WordCount/ .&lt;/blockquote&gt;&lt;br/&gt;6). Create the input file in the local file system&lt;br/&gt;&lt;br/&gt;Eg : mkdir /home/user1/wordcount/input&lt;br/&gt;&lt;blockquote&gt;cd /wordcount/input&lt;br/&gt;gedit file01&lt;br/&gt;gedit file02&lt;/blockquote&gt;&lt;br/&gt;and so on..&lt;br/&gt;&lt;br/&gt;7). Copy the input file in local file system to HDFS&lt;br/&gt;&lt;blockquote&gt;$HADOOP_HOME/bin/hadoop fs -cp ~/wordcount/input/file01 /home/user1/dfs/input/file01&lt;br/&gt;$HADOOP_HOME/bin/hadoop fs -cp ~/wordcount/input/file02 /home/user1/dfs/input/file02&lt;/blockquote&gt;&lt;br/&gt;8). Execute the jar as follows:&lt;br/&gt;&lt;blockquote&gt;$HADOOP_HOME/bin/hadoop jar WordCount.jar WordCount /home/user1/dfs/input /home/user1/dfs/output&lt;/blockquote&gt;&lt;br/&gt;9). After execution get completed, below set of commands is used to view the reduce file that are generated&lt;br/&gt;&lt;blockquote&gt;$HADOOP_HOME/bin/hadoop fs -ls /home/user1/dfs/output/&lt;/blockquote&gt;&lt;br/&gt;10). To view the output, use this below given command&lt;br/&gt;&lt;blockquote&gt;$HADOOP_HOME/bin/hadoop fs -cat hdfs:///home/user1/dfs/output/part-00000&lt;br/&gt;$HADOOP_HOME/bin/hadoop fs -cat hdfs:///home/user1/dfs/output/part-00001&lt;br/&gt;$HADOOP_HOME/bin/hadoop fs -cat hdfs:///home/user1/dfs/output/part-00002&lt;/blockquote&gt;&lt;br/&gt;and so on...&lt;br/&gt;&lt;br/&gt;Upcoming Post: Using Distributed Cache in Java Hadoop MapReduce.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/5523960570621204209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/02/writing-mapreduce-program-on-hadoop.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/5523960570621204209?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/5523960570621204209?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/02/writing-mapreduce-program-on-hadoop.html' title='Writing MapReduce Program on Hadoop - Context'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;DUYCRX04cSp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-5759711211646410637</id><published>2013-01-24T23:05:00.000-08:00</published><updated>2013-05-15T23:52:44.339-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.339-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux Files'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='Corrupted files in Linux'/><title>Recovering corrupted files in Linux</title><content type='html'>There are many compression technique that you use and compress a file in Linux.&lt;br/&gt;&lt;br/&gt;Few techniques are gzip, tar and lot more.&lt;br/&gt;&lt;br/&gt;At times when you decompress/uncompress a file after a long time you may get few errors like.&lt;br/&gt;&lt;br/&gt;"Unexpected EOF." "Files not in gzip format" or "Files not in gz format" something like this.&lt;br/&gt;&lt;br/&gt;This is because the files may be corrupted.&lt;br/&gt;&lt;br/&gt;There is a recovery tool kit and it is mainly for gzip but this can also be used for tar.gz too.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;STEPS FOR RECOVERY :&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Go to the link http://www.urbanophile.com/arenn/coding/gzrt/&lt;br/&gt;&lt;br/&gt;And click on the gzrt-0.6.tar.gz link, then gzrt-0.6.tar.gz file will be downloaded to your machine.&lt;br/&gt;&lt;br/&gt;Go to the specified location and do the following.&lt;br/&gt;&lt;br/&gt;$ tar -xzvf gzrt-0.6.tar.gz&lt;br/&gt;$ cd gzrt-0.6&lt;br/&gt;$ make&lt;br/&gt;&lt;br/&gt;Then copy the corrupted file to this folder and execute the following command.&lt;br/&gt;&lt;br/&gt;$./gzrecover ABC.gz&lt;br/&gt;&lt;br/&gt;Then the recovered file will be in the name of ABC.recovered&lt;br/&gt;&lt;br/&gt;Hence there is no problem in dealing with corrupted files in Linux any more. :)</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/5759711211646410637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/01/recovering-corrupted-files-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/5759711211646410637?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/5759711211646410637?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/01/recovering-corrupted-files-in-linux.html' title='Recovering corrupted files in Linux'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCRX05eCp7ImA9WhBbFkU.&quot;'><id>tag:blogger.com,1999:blog-6808682861429810901.post-2518694558339272219</id><published>2013-01-22T02:27:00.000-08:00</published><updated>2013-05-15T23:52:44.320-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-05-15T23:52:44.320-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='Download online videos'/><category scheme='http://www.blogger.com/atom/ns#' term='Clip Grab'/><category scheme='http://www.blogger.com/atom/ns#' term='Open source'/><category scheme='http://www.blogger.com/atom/ns#' term='Downloading videos in Linux'/><title>Downloading videos in Linux</title><content type='html'>There is a simple software (clip grab) that allows you to download online videos in Linux.&lt;br/&gt;&lt;br/&gt;Execute the following commands in your terminal.&lt;br/&gt;&lt;br/&gt;############################&lt;br/&gt;&lt;br/&gt;sudo add-apt-repository ppa:clipgrab-team/ppa&lt;br/&gt;&lt;br/&gt;sudo apt-get update&lt;br/&gt;&lt;br/&gt;sudo apt-get install clipgrab&lt;br/&gt;&lt;br/&gt;##########################&lt;br/&gt;&lt;br/&gt;The software is now installed , to run the software execute the following command&lt;br/&gt;&lt;br/&gt;#############&lt;br/&gt;&lt;br/&gt;clipgrab&lt;br/&gt;&lt;br/&gt;################&lt;br/&gt;&lt;br/&gt;Steps to download :&lt;br/&gt;&lt;br/&gt;1. Go to the "SETTINGS" tab in the GUI of Clip grab and mention the destination path where you need to save the video.&lt;br/&gt;&lt;br/&gt;2. Then under downloads tab, Paste the web-link from which u want to download the video.&lt;br/&gt;&lt;br/&gt;3. Click the "grab this clip" button.&lt;br/&gt;&lt;br/&gt;The video will start getting downloaded in the specified destination.</content><link rel='replies' type='application/atom+xml' href='http://kaniyarasu.blogspot.com/feeds/2518694558339272219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kaniyarasu.blogspot.com/2013/01/downloading-videos-in-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/2518694558339272219?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6808682861429810901/posts/default/2518694558339272219?v=2'/><link rel='alternate' type='text/html' href='http://kaniyarasu.blogspot.com/2013/01/downloading-videos-in-linux.html' title='Downloading videos in Linux'/><author><name>Kaniyarasu</name><uri>http://www.blogger.com/profile/09989101843425869023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>