<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gaurish Sharma Live</title>
	<atom:link href="http://www.gaurishsharma.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gaurishsharma.com</link>
	<description>Gaurish Sharma&#039;s blog foccused on Technology,Broadband,Latest Offers. He seldomly writes about his life experiances</description>
	<lastBuildDate>Sun, 22 Apr 2012 20:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>New Ruby 1.9 hash syntax</title>
		<link>http://www.gaurishsharma.com/2012/04/new-ruby-1-9-hash-syntax.html</link>
		<comments>http://www.gaurishsharma.com/2012/04/new-ruby-1-9-hash-syntax.html#comments</comments>
		<pubDate>Sun, 22 Apr 2012 19:48:23 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=678</guid>
		<description><![CDATA[Ruby 1.9 has a cool hash syntax which is quite similar to javascript, so the following hash can be written as now, what if both key &#38; values are symbols, in ruby 1.8 &#38; before you would write but now, this could be written in short form as And this both new &#38; old syntax <a href='http://www.gaurishsharma.com/2012/04/new-ruby-1-9-hash-syntax.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Ruby 1.9 has a cool hash syntax which is quite similar to javascript, so the following hash</p>
<pre class="brush: ruby; title: ; notranslate">
hash = {:symbol =&gt; &quot;value&quot;}
</pre>
<p>can be written as</p>
<pre class="brush: ruby; title: ; notranslate">hash = {symbol: &quot;value&quot;}</pre>
<p>now, what if both key &amp; values are symbols, in ruby 1.8 &amp; before you would write</p>
<pre class="brush: ruby; title: ; notranslate">
:pick =&gt; :any
</pre>
<p>but now, this could be written in short form as</p>
<pre class="brush: ruby; title: ; notranslate">
pick: :any
</pre>
<p>And this both new &amp; old syntax for hash are supported in ruby 1.9, you can use whatever syntax you are comfortable the most but it helps to know both forms of syntax specially when reading the code that other might have written. personally, I like the new one &#8212; fewer characters to type <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>PS: this new has syntax is applicable only if the<em> key is a :symbol. </em>In case when key is not a symbol. you have to still stick with old array syntax(<em>=&gt;)</em></p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=678&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.gaurishsharma.com/2012/04/enable-gzip-compression-for-rails-3-2-on-heroku-cedar.html' rel='bookmark' title='Enable gzip compression for Rails 3.2 on heroku Cedar'>Enable gzip compression for Rails 3.2 on heroku Cedar</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2012/04/new-ruby-1-9-hash-syntax.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable gzip compression for Rails 3.2 on heroku Cedar</title>
		<link>http://www.gaurishsharma.com/2012/04/enable-gzip-compression-for-rails-3-2-on-heroku-cedar.html</link>
		<comments>http://www.gaurishsharma.com/2012/04/enable-gzip-compression-for-rails-3-2-on-heroku-cedar.html#comments</comments>
		<pubDate>Sat, 14 Apr 2012 12:39:10 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=679</guid>
		<description><![CDATA[Heroku is the popular ruby on rails PAAS hosting platform. With the earlier versions, if you were hosting a rails web application on it.&#160;All apps deployed to Heroku used to automatically compress pages they serve, by passing through Nginx’s gzip filter on the way out. But with their newest Cedar Stack, things have changed In <a href='http://www.gaurishsharma.com/2012/04/enable-gzip-compression-for-rails-3-2-on-heroku-cedar.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Heroku is the popular ruby on rails PAAS hosting platform. With the earlier versions, if you were hosting a rails web application on it.&nbsp;All apps deployed to Heroku used to automatically compress pages they serve, by passing through Nginx’s gzip filter on the way out. But with their newest <a href="https://devcenter.heroku.com/articles/cedar">Cedar Stack</a>, things have changed</p>
<p>In Cedar, the HTTP requests terminates directly at your app server &amp; no longer goes through a proxy server(Nginx), hence there can&#8217;t be&nbsp;automatic gzip compression. More information about this can be found in <a href="https://devcenter.heroku.com/articles/http-routing">HTTP routing dev center article</a> So we have to manage gzip compression on our own.&nbsp;fortunately, this is trivial as adding just one line to your config. basically, you will need to use&nbsp;<strong>Rack::Deflater </strong>&amp; make sure that it get loaded before&nbsp;ActionDispatch::Static. The simplest way to enable gzip compression in Rails 3.2 is by adding &#8220;use&nbsp;<strong>Rack::Deflater</strong>&#8221; in <em>config.ru</em> file.</p>
<p>After the change, this how your config.ru file should look like:</p>
<pre class="brush: ruby; title: ; notranslate">
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
use Rack::Deflater
run Improvingoutcomes::Application
</pre>
<p>I spending sometime gather information about this. So Hope this post help you save some time.</p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=679&type=feed" alt="" /><p>&nbsp</p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2012/04/enable-gzip-compression-for-rails-3-2-on-heroku-cedar.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I got featured in Times of India</title>
		<link>http://www.gaurishsharma.com/2012/04/i-got-featured-in-times-of-india.html</link>
		<comments>http://www.gaurishsharma.com/2012/04/i-got-featured-in-times-of-india.html#comments</comments>
		<pubDate>Sun, 08 Apr 2012 15:16:26 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Me Myself and My Life]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=670</guid>
		<description><![CDATA[I shared my views on GPS technology by a journalist. As everyone knows, I love to share my views on technology. Like little did I knew that it would end up in Major National Newspaper of Country &#8211; Times of India. This article made into Times of India on march 11 2012, I got little delayed in posting <a href='http://www.gaurishsharma.com/2012/04/i-got-featured-in-times-of-india.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I shared my views on GPS technology by a journalist. As everyone knows, I love to share my views on technology. Like little did I knew that it would end up in Major National Newspaper of Country &#8211; <a href="http://timesofindia.indiatimes.com/" target="_blank">Times of India</a>.</p>
<p>This article made into Times of India on march 11 2012, I got little delayed in posting it here. Not something big but it feels nice to read your name in paper upon waking up <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.gaurishsharma.com/wp-content/uploads/2012/04/462950_10150717259889750_711669749_11222529_1106610778_o.jpg"><img class="aligncenter size-medium wp-image-671" title="My name in TOI" src="http://www.gaurishsharma.com/wp-content/uploads/2012/04/462950_10150717259889750_711669749_11222529_1106610778_o-300x225.jpg" alt="" width="300" height="225" /></a></p>
<h3>you read the article Online at:<br />
<a title="How your phone can be your compass" href="http://timesofindia.indiatimes.com/tech/personal-tech/computing/How-your-phone-can-be-your-compass/articleshow/12162881.cms" target="_blank">How your phone can be your compass &#8211; Times of India</a></h3>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=670&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.gaurishsharma.com/2008/06/top-8-online-photo-printing-sites-in.html' rel='bookmark' title='Top 8: Online Photo Printing Sites in INDIA'>Top 8: Online Photo Printing Sites in INDIA</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2012/04/i-got-featured-in-times-of-india.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To Fully Disable Caching in Drupal 7</title>
		<link>http://www.gaurishsharma.com/2012/02/how-to-fully-disable-caching-in-drupal-7.html</link>
		<comments>http://www.gaurishsharma.com/2012/02/how-to-fully-disable-caching-in-drupal-7.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:04:33 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=667</guid>
		<description><![CDATA[Caching helps to cut the load on server &#38; increase server speed. Hence, Drupal comes with caching build-in at various levels. there will be situations where,  you may want to disable *ALL* caching like I was doing some module development and without clearing out the caches the changes were not visible. So, I had to disable <a href='http://www.gaurishsharma.com/2012/02/how-to-fully-disable-caching-in-drupal-7.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Caching helps to cut the load on server &amp; increase server speed. Hence, Drupal comes with caching build-in at various levels. there will be situations where,  you may want to disable *ALL* caching like I was doing some module development and without clearing out the caches the changes were not visible. So, I had to disable caches.  Incase, you too want to disable Caching for say for development &#8211; here below</p>
<ol>
<li>Go to <em>Site Configuration</em> -&gt; <em>Performance</em>:
<ul>
<li>Set the following options, and click <em>Save configuration</em>:
<ul>
<li><strong>Caching mode:</strong> Disabled</li>
<li><strong>Minimum cache lifetime:</strong> none</li>
<li><strong>Page compression:</strong> Disabled</li>
<li><strong>Block cache:</strong> Disabled</li>
<li><strong>Optimize CSS files:</strong> Disabled</li>
<li><strong>Optimize JavaScript files:</strong> Disabled</li>
</ul>
</li>
<li>Click <em>Clear cached data</em>.</li>
</ul>
</li>
<li>Go to <em>Site building</em> -&gt; <em>Views</em> -&gt; <em>Tools</em>:
<ul>
<li>Check <em>Disable views data caching</em> and click <em>Save configuration</em>.</li>
<li>Click <em>Clear Views&#8217; cache</em>.</li>
</ul>
</li>
<li>Install the <a href="http://drupal.org/project/devel" rel="nofollow">Devel module</a>, and go to <em>Site Configuration</em> -&gt; <em>Devel settings</em>:
<ul>
<li>Check <em>Rebuild the theme registry on every page load</em> and click <em>Save configuration</em>.</li>
</ul>
</li>
<li>Add the following to your .module file to disable menu caching</li>
</ol>
<pre class="brush: php; title: ; notranslate">

function hook_init(){
   //FIXME: remove before going into production
   menu_rebuild();
}</pre>
<p>With this, now ALL caching in drupal will disabled. Enjoy quicker development &amp; don&#8217;t forget to undo these changes once your site goes into production!</p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=667&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.gaurishsharma.com/2012/01/getting-started-with-drupal-module-development.html' rel='bookmark' title='Getting Started with Drupal Module Development'>Getting Started with Drupal Module Development</a></li>
<li><a href='http://www.gaurishsharma.com/2011/12/enable-right-click-on-pages-where-its-been-disabled.html' rel='bookmark' title='Enable right-click on pages where its been disabled'>Enable right-click on pages where its been disabled</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2012/02/how-to-fully-disable-caching-in-drupal-7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started with Drupal Module Development</title>
		<link>http://www.gaurishsharma.com/2012/01/getting-started-with-drupal-module-development.html</link>
		<comments>http://www.gaurishsharma.com/2012/01/getting-started-with-drupal-module-development.html#comments</comments>
		<pubDate>Mon, 30 Jan 2012 17:36:45 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Web - Drupal]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=658</guid>
		<description><![CDATA[I am building a new site &#38; I have chosen to create that with Drupal. as you may know, Drupal is a popular open-source, free to use Content Management System but you may not know that Drupal also has a powerful framework which can be used to be built just about anything. This is done by <a href='http://www.gaurishsharma.com/2012/01/getting-started-with-drupal-module-development.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I am building a new site &amp; I have chosen to create that with <a href="http://drupal.org/">Drupal</a>. as you may know, Drupal is a popular open-source, free to use Content Management System but you may not know that Drupal also has a powerful framework which can be used to be built just about anything. This is done by creating custom modules. Now, as with other things the hardest part is to get started. so this post will deal on how to get started with Drupal development</p>
<h3>Learning Drupal Module Development</h3>
<p>In Drupal, Whatever you want to do. There is a modules for that! If not, then you have to write a custom module that accomplishes that.</p>
<p><strong>Introduction</strong></p>
<p>A Drupal module mainly consists of bunch of loosely coupled functions  written in procedural style(you can use some OO features though). some might ask why it&#8217;s not object-oriented, that because Drupal was written in the time when PHP didn&#8217;t support OOP &amp; lacked namespaces. Sadly, that hasn&#8217;t changed even when even now PHP does support full OOP including namespaces(PHP 5.3+).<br />
However, it is commendable on Drupal&#8217;s part that it managed to work around PHP&#8217;s limitations by adopting design such architecture.</p>
<p><strong>Hook System</strong></p>
<p>Hook System is nothing but a glorified naming convention adopted universally by Drupal Community. Infact, entire architecture of Drupal is build around this naming convention. According to this naming convention, the module name you choose must be unique, and should be all lowercase, containing only letters &amp; numbers, always starting with a letter. Within the module itself, all functions must then be prefixed with the module filename, followed by an underscore, and then action(called hook in drupal land) in following way</p>
<p>function ModuleName_action()</p>
<p>here,<br />
ModuleName = name of your module<br />
action = pre-defined hook</p>
<p>These hooks are pre-defined and are called automatically by Drupal when specific event occurs, so you just have to define an appropriate hook/action &amp; Drupal will take care of the rest. for example, your module was called &#8220;mymodule&#8221; &amp; want to add some help text. so, in custom module, you will add function named &#8220;<em>mymodule_help</em>&#8220;.</p>
<pre class="brush: php; title: ; notranslate">
/**
* This Implements hook_help()
*/
function mymodule_help($path, $arg){
    if($path=='admin/structure'){
        return t('This is the sample help text');
    }
}</pre>
<p>This function gets called automatically by Drupal when a page is displayed, then we check if <em>$path</em> is<em> admin/structure,</em> if yes. then the help text is displayed. Simple!</p>
<p>So, this was a 20,000 feet view to Drupal Modules. I hope now you have at least basic idea about Drupal&#8217;s hook system, how it works,why its build that way &amp; how go about writing custom modules. To end, I am leaving you with some resources that would guide you further on this journey of writing Drupal modules.</p>
<ul>
<li><a href="http://api.drupal.org/api/drupal">Drupal API reference site</a></li>
<li><strong>Books</strong>: I am reading &#8220;<a href="http://www.amazon.com/Definitive-Guide-Drupal-Apress/dp/1430231351">The Definitive Guide to Drupal 7</a>&#8220;, however there are <a href="http://drupal.org/books">lot of other options to chose from</a>.</li>
<li><a href="http://drupal.org/developing/modules">Building Drupal Module &#8211; Drupal.org Docs</a></li>
<li><a href="http://drupal.org/project/examples">Examples Project</a> &#8211; Standard repository of sample modules that can be used to learn module development,</li>
</ul>
<p>Good Luck &amp; have fun Drupalizing the web!</p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=658&type=feed" alt="" /><p>&nbsp</p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2012/01/getting-started-with-drupal-module-development.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[JavaScript] Difference between eval() vs new Function()</title>
		<link>http://www.gaurishsharma.com/2012/01/javascript-difference-between-eval-vs-new-function.html</link>
		<comments>http://www.gaurishsharma.com/2012/01/javascript-difference-between-eval-vs-new-function.html#comments</comments>
		<pubDate>Sat, 28 Jan 2012 07:04:20 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Web - JavaScript]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=654</guid>
		<description><![CDATA[Many JavaScript programmers treat eval &#38; new Function construct as the same. But new Function &#38; eval are NOT the same. the important difference is:- eval() works within the current execution scope and can affect local variables. new Function() cannot affect local variables because the code runs in a separate scope So both are evil <a href='http://www.gaurishsharma.com/2012/01/javascript-difference-between-eval-vs-new-function.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Many JavaScript programmers treat eval &amp; new Function construct as the same. But new Function &amp; eval are NOT the same. the important difference is:-</p>
<ul>
<li><strong>eval()</strong> works within the current execution scope and can affect local variables.</li>
<li><strong>new Function() </strong>cannot affect local variables because the code runs in a separate scope</li>
</ul>
<p>So both are evil &amp; should only be used when there is no other way but as you may notice new Function is slightly less evil</p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=654&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.gaurishsharma.com/2010/12/javascript-5-things-love-hate.html' rel='bookmark' title='JavaScript: I hate you but I Love you, too'>JavaScript: I hate you but I Love you, too</a></li>
<li><a href='http://www.gaurishsharma.com/2011/04/javascript-bookmarklet-convert-all-text-on-page-into-lower-case.html' rel='bookmark' title='[JavaScript Bookmarklet] Convert All text on page into Lower Case'>[JavaScript Bookmarklet] Convert All text on page into Lower Case</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2012/01/javascript-difference-between-eval-vs-new-function.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Last day of 2011, I met  Dr A P J Abdul Kalam</title>
		<link>http://www.gaurishsharma.com/2011/12/on-last-day-of-2011-i-met-dr-a-p-j-abdul-kalam.html</link>
		<comments>http://www.gaurishsharma.com/2011/12/on-last-day-of-2011-i-met-dr-a-p-j-abdul-kalam.html#comments</comments>
		<pubDate>Sat, 31 Dec 2011 11:25:56 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Me Myself and My Life]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=641</guid>
		<description><![CDATA[2011 is coming to an end and 2012 is about to start. Like all new years I was thinking what special thing can I do &#8211;&#160;usually&#160;it means going to &#8220;cool&#8221; parties &#38; hanging out with my friends. But this year, I didn&#8217;t have anything planned as I didn&#8217;t want to do anything. &#160;As nothing ever <a href='http://www.gaurishsharma.com/2011/12/on-last-day-of-2011-i-met-dr-a-p-j-abdul-kalam.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>2011 is coming to an end and 2012 is about to start. Like all new years I was thinking what special thing can I do &#8211;&nbsp;usually&nbsp;it means going to &#8220;cool&#8221; parties &amp; hanging out with my friends. But this year, I didn&#8217;t have anything planned as I didn&#8217;t want to do anything. &nbsp;As nothing ever goes according to plans; so my &#8220;plan&#8221; of &#8220;no plan&#8221; flopped. Instead, on last day 2011 &#8211; 31 December, I met &nbsp;<a href="http://en.wikipedia.org/wiki/A._P._J._Abdul_Kalam">A. P. J. Abdul Kalam</a> who was 11th&nbsp;president&nbsp;of india.</p>
<p>Long story short, he came to our college and addressed us, so I saw &amp; hear him speak right in front of me. first thing I noticed he just another human being like us who gets annoyed when his hair get&nbsp;messed &amp; starts combing them right on stage in front of everyone! <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>But there is few things I noticed though&nbsp;observing his actions,body language &amp; works, I want to share</p>
<ul>
<li><strong>Dreamer:</strong>&nbsp; He likes to dream BIG &amp; says &#8220;<em>Dream BIG, Aim High.&nbsp;Aiming small is a crime</em>.&#8221;.His final dream is to&nbsp;see India as a <em>Developed Nation</em>. Hence the reason that even after writing multiple books about India&#8217;s development, he still is coming out with a new Book &#8212; <a href="http://www.flipkart.com/books/0143417304?affid=INGAURISH">&nbsp;Target 3 Billion</a>. I don&#8217;t know if India will become a&nbsp;developed country but I suspect Kalam will&nbsp;&nbsp;keep coming out with more such books. I guess he enjoys writing</li>
<li><strong>On a Mission: </strong>While addressing the crowd, he told that last week he was in a village near&nbsp;Cochin, Kerala. before that he was in Delhi &amp; looking at this last year&#8217;s&nbsp;schedule. It seems he travels a lot. &nbsp;keep in mind that these are voluntary as his current job is of a professor/dean. the question is &#8212; a) Does he travel this much because he likes to meet people? or b) He is on a self initiated mission &amp; that mission requires him to travel so much &amp; meet all kinds of people? Don&#8217;t know what case it is but seems there is a bigger motive.</li>
<li><strong>Frank:</strong>&nbsp;He was the&nbsp;president of our country, one might expect him to be bit reserved &amp; not speak freely but he is frank &amp; to the point. Kalam says whatever he has in mind. for example, when a question when stretched&nbsp;too long &#8212; he simply said &#8220;woman, you are giving a lecture!&#8221; which shows that he is frank even with people that he hasn&#8217;t met before; <em>seedhi baat no bakwas</em>!</li>
<li><strong>Less&nbsp;Religion&nbsp;&amp; More Spirituality: </strong>During the interaction session, a question was asked related to <a href="http://en.wikipedia.org/wiki/Shi'a%E2%80%93Sunni_relations">shia vs sunni</a>&nbsp; sects(not sure exactly what it was, as the ascent of the girl asking the difficult to gasp). Anyways, the muslim girl belonging to the some gulf country who asked the question did mention in her question that&nbsp;kalam is a muslin.&nbsp;&nbsp;Unlike other questions where he took keen interest &amp; in this case his facial expression were that of a &nbsp;&#8221;disinterested&#8221; person &amp; stated that his name is arabic. And while he always interested in talking about spirituality in his books, talk etc. It seems that he is not interested in the whole Caste System or&nbsp;religion&nbsp;thing which is a good thing if you ask me! btw, do remember I said he looked&nbsp;disinterested. But any of his actions it didn&#8217;t seem that he hated any religion or loved another. I got an impression that he was more interested in other&nbsp;topics.</li>
<li><strong>More abstractions, less&nbsp;practicability: </strong>Dr&nbsp;Kalam talks meta &#8211; instead of giving straightforward answers, he likes to go deep. For example, when a boy asks him a simple questions &#8212; How to be confident? instead of providing him a straight answer, he recites him some&nbsp;poem. &nbsp;And during our interaction, he talked so deep that many of my friends were bored to death which is something he should consider improving on. However, I being a deep thinker myself like going deep &#8211; so I enjoyed his talk &amp; was able to understand gist of what he said.</li>
<li><strong>Likes Poetry:</strong>&nbsp; Kalam likes&nbsp;Poetry&nbsp;so much that he even made us recite few lines along with him. It was bit silly but was fun <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
<li><strong>Political system is broken: </strong>Like everyone, he too knows that indian politicians are all corrupt, care about their personnel wealth than nations progress. Basically,the whole system is broken. That&#8217;s why he even encouraged all the students to join politics. But Mr Kalam, Thanks but no thanks <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>Further, I will share &nbsp;4 thing&nbsp;that he said are needed&nbsp;if someone wants to achieve success:</p>
<ol>
<li>Aim High</li>
<li>Do Hard work</li>
<li>Continuously&nbsp;gaining&nbsp;knowledge&nbsp;throughout your life by books or teachers.</li>
<li>Perseverance: Steady&nbsp;persistence&nbsp;in&nbsp;a&nbsp;course&nbsp;of&nbsp;action,&nbsp;apurpose,&nbsp;a&nbsp;state</li>
</ol>
<p>lastly, I am not too sure about accuracy &amp; there may be errors in my observations, mostly because I little distracted &amp; did lot of bird-watching&#8230;lol!&nbsp;But In all seriousness, I do&nbsp;appreciate&nbsp;the work kalam has done &amp; is still doing for the country. He seemed quite&nbsp;patriotic. It was a nice&nbsp;experience&nbsp;to the 11th&nbsp;president&nbsp;of&nbsp;India on last day of 2011!</p>
<p>Hopefully, people will draw&nbsp;inspiration&nbsp;from him/his work &amp; embark on struggle to make&nbsp;India&nbsp;a developed country!</p>
<h3 style="text-align: center;">Wish you Happy New Year 2012!</h3>
<p><em>[Update]<br />
Corrected 4 mantras for success, Thanks <strong>Preeti</strong></em></p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=641&type=feed" alt="" /><p>&nbsp</p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2011/12/on-last-day-of-2011-i-met-dr-a-p-j-abdul-kalam.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enable right-click on pages where its been disabled</title>
		<link>http://www.gaurishsharma.com/2011/12/enable-right-click-on-pages-where-its-been-disabled.html</link>
		<comments>http://www.gaurishsharma.com/2011/12/enable-right-click-on-pages-where-its-been-disabled.html#comments</comments>
		<pubDate>Thu, 29 Dec 2011 10:46:03 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Web - JavaScript]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=637</guid>
		<description><![CDATA[My bank has a stupidly disabled right-click on its website which I don&#8217;t like. So I created clever JavaScript bookmarket to disable this restriction Remove disable right-click restriction Drag the above link to bookmarks bar &#38; click on this when you want to enable right-click on pages where its been disabled! here is the code: <a href='http://www.gaurishsharma.com/2011/12/enable-right-click-on-pages-where-its-been-disabled.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>My bank has a stupidly disabled right-click on its website which I don&#8217;t like.</p>
<div id="attachment_638" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.gaurishsharma.com/wp-content/uploads/2011/12/Capture.png"><img class="size-thumbnail wp-image-638" title="No Right-Click Allowed" src="http://www.gaurishsharma.com/wp-content/uploads/2011/12/Capture-150x150.png" alt="No Right-Click Allowed" width="150" height="150" /></a><p class="wp-caption-text">No Right-Click Allowed</p></div>
<p>So I created clever JavaScript bookmarket to disable this restriction</p>
<h2><a href="javascript:void(document.oncontextmenu=null)">Remove disable right-click restriction</a></h2>
<p>Drag the above link to bookmarks bar &amp; click on this when you want to enable right-click on pages where its been disabled!</p>
<p>here is the code:</p>
<pre class="brush: jscript; title: ; notranslate">
javascript:void(document.oncontextmenu=null)
</pre>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=637&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.gaurishsharma.com/2011/04/javascript-bookmarklet-convert-all-text-on-page-into-lower-case.html' rel='bookmark' title='[JavaScript Bookmarklet] Convert All text on page into Lower Case'>[JavaScript Bookmarklet] Convert All text on page into Lower Case</a></li>
<li><a href='http://www.gaurishsharma.com/2011/03/workaround-for-youtube-flash-bug-video-displayed-in-weird-colors.html' rel='bookmark' title='Workaround for Youtube Flash Bug | Video displayed in weird colors'>Workaround for Youtube Flash Bug | Video displayed in weird colors</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2011/12/enable-right-click-on-pages-where-its-been-disabled.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Truth behind Petrol price in India</title>
		<link>http://www.gaurishsharma.com/2011/11/truth-behind-petrol-price-in-india.html</link>
		<comments>http://www.gaurishsharma.com/2011/11/truth-behind-petrol-price-in-india.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 18:04:31 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[Editorial]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=620</guid>
		<description><![CDATA[Media has been constantly talking about rising crude oil prices and how the Govt is facing losses. Take a look this simple maths to check if they are right or wrong: 1) Currently, International crude oil prices are around US$ 109 per barrel or Rs.5,360/- INR. $1 = Rs49.17 current exchange rate 2) Each barrel <a href='http://www.gaurishsharma.com/2011/11/truth-behind-petrol-price-in-india.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Media has been constantly talking about rising crude oil prices and how the Govt is facing losses.</p>
<p>Take a look this simple maths to check if they are right or wrong:</p>
<p>1) Currently, International crude oil prices are around US$ <em>109</em> per barrel or Rs.5,360/- INR. $1 = Rs49.17 current exchange rate<br />
2) Each barrel contains about <em>158.76 litres</em> of oil.<br />
3) crude oil costs R<em>s33.76</em> per lite(<em>5360/158.76</em>) + add the cost of refining it to petrol which is <em>6.52 paise per litre</em> + cost of transportation (Rs 6) + petrol pump&#8217;s commission (Rs 1.05) = <strong>47.33(Total cost)</strong></p>
<p>so, <strong>price should Rs47.33/L</strong> but Govt charged price is Rs73/L&#8230;how? well, rest all are Taxes imposed by our own Govt!!</p>
<p>Bhai, It seems you have fallen victim of this media created propaganda! Govt is NOT losing money, instead the earn thousands of crores in taxes on petrol!!!</p>
<p>Wake UP India, Don&#8217;t get confused!</p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=620&type=feed" alt="" /><p>&nbsp</p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2011/11/truth-behind-petrol-price-in-india.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[php] Calculate Age in Days</title>
		<link>http://www.gaurishsharma.com/2011/10/php-calculate-age-in-days.html</link>
		<comments>http://www.gaurishsharma.com/2011/10/php-calculate-age-in-days.html#comments</comments>
		<pubDate>Sat, 01 Oct 2011 16:48:36 +0000</pubDate>
		<dc:creator>gaurish</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.gaurishsharma.com/?p=622</guid>
		<description><![CDATA[Just today while driving back home, a random question came across my mind, What is my age in number days? Now, I am not good at maths to figure it out manually but since I am decent php programmer, I wrote this small code snippet which helps calculate my age counting in terms days. And its just <a href='http://www.gaurishsharma.com/2011/10/php-calculate-age-in-days.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Just today while driving back home, a random question came across my mind,</p>
<h2>What is my age in number days?</h2>
<p>Now, I am not good at maths to figure it out manually but since I am decent php programmer, I wrote this small code snippet which helps calculate my age counting in terms days. And its just one line!</p>
<pre class="brush: php; title: ; notranslate">
$birthday = '1989-03-06';
$now = date(&quot;Y-m-d&quot;);
echo 'You are '. date_diff(date_create($birthday), date_create($now))-&gt;format('%a days old');
</pre>
<p>So according to this,<br />
<strong>Today is the 8,244th day of my life</strong>. Cheers! <img src='http://www.gaurishsharma.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<img src="http://www.gaurishsharma.com/?ak_action=api_record_view&id=622&type=feed" alt="" /><p>&nbsp</p>]]></content:encoded>
			<wfw:commentRss>http://www.gaurishsharma.com/2011/10/php-calculate-age-in-days.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

