<?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>Rocker &#187; Shishir Sharma &#8216;criss&#8217;</title>
	<atom:link href="http://www.shishirsharma.com/author/criss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shishirsharma.com</link>
	<description>Everything bloggable around Shishir Sharma.</description>
	<lastBuildDate>Fri, 06 Jan 2012 09:47:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Grab the net with Arduino</title>
		<link>http://www.shishirsharma.com/2011/12/29/grab-the-net-with-arduino/</link>
		<comments>http://www.shishirsharma.com/2011/12/29/grab-the-net-with-arduino/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 12:53:24 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino Ethernet Shield]]></category>
		<category><![CDATA[Arduino Html Client]]></category>

		<guid isPermaLink="false">http://www.shishirsharma.com/?p=1114</guid>
		<description><![CDATA[How to access a website with multiple virtual hots from Arduino Ethernet Shield. The problem is if you have used Arduino Ethernet Shield, then you know that you can connect a IP, But if the IP has multiple virtual hosts, &#8230; <a href="http://www.shishirsharma.com/2011/12/29/grab-the-net-with-arduino/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>How to access a website with multiple virtual hots from Arduino Ethernet Shield. The problem is if you have used Arduino Ethernet Shield, then you know that you can connect a IP, But if the IP has multiple virtual hosts, it will only connect to default virtual host. If it is commercial shared VPS, You wont be able to make your site default.</p>
<p>Gist is use of HTTP protocol which allows you to define host in your request on virtual host server. Here are the possible headers.</p>
<p><a href="http://en.wikipedia.org/wiki/List_of_HTTP_headers">http://en.wikipedia.org/wiki/List_of_HTTP_headers</a></p>
<p>You should also provide basic debugging info like &#8220;User-Agent&#8221; etc.</p>
<pre>#include &lt;SPI.h&gt;
#include &lt;Ethernet.h&gt;

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[]            = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[]             = { 192, 168,   6,  30 };

byte server[]         = { ***, ***, 168,  16 }; // Your VPS

// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
Client client(server, 80);

String response = "";

void setup() {
  Ethernet.begin(mac, ip);
  Serial.begin(9600);
  // Give the Ethernet shield a second to initialize
  delay(1000);
  Serial.println("Connecting...");
}

void loop() {
  if (!client.available() &amp;&amp; client.connect()) {
    Serial.println("-- Connected");
    // Make a HTTP request:
    client.println("GET /bot HTTP/1.0");
    client.println("Host: example.com");
    client.println("User-Agent: Arduino/Shishir (mail.mastermind [at] gmail.com)");
    client.println();
  }
  if (client.available()) {
    char c = client.read();
    response.concat(c);
  }
  if(!client.connected()){
    process(response);
    //Serial.print(response);
  }
  if (!client.connected() &amp;&amp; reset == 1) {
    Serial.println("disconnecting.");
    client.stop();
    response = "";
    delay(1000*10);
  }
}
void process(String response) {
  Serial.println(response);
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/12/29/grab-the-net-with-arduino/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IRB Console with history and logging</title>
		<link>http://www.shishirsharma.com/2011/12/28/irb-console-with-history-and-logging/</link>
		<comments>http://www.shishirsharma.com/2011/12/28/irb-console-with-history-and-logging/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 06:58:52 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[IRB]]></category>
		<category><![CDATA[Rails Console]]></category>

		<guid isPermaLink="false">http://www.shishirsharma.com/?p=1098</guid>
		<description><![CDATA[I spend most time with IRB or Rails/console. These are good settings on which I have settled with over the time. These will allow you to have basic logging and IRB history. Just put these in the ~/.irbrc file (If &#8230; <a href="http://www.shishirsharma.com/2011/12/28/irb-console-with-history-and-logging/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I spend most time with IRB or Rails/console. These are good settings on which I have settled with over the time. These will allow you to have basic logging and IRB history. Just put these in the ~/.irbrc file (If file doesn&#8217;t exist then create one).</p>
<pre># -*- Ruby-*-
require 'irb/completion'
require 'irb/ext/save-history'

ARGV.concat [ "--readline",
              "--prompt-mode",
              "simple" ]

# 25 entries in the list
IRB.conf[:SAVE_HISTORY] = 100

# Store results in home directory with specified file name
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"

script_console_running = ENV.include?('RAILS_ENV') &amp;&amp; IRB.conf[:LOAD_MODULES] &amp;&amp; IRB.conf[:LOAD_MODULES].include?('console_with_helpers')
rails_running = ENV.include?('RAILS_ENV') &amp;&amp; !(IRB.conf[:LOAD_MODULES] &amp;&amp; IRB.conf[:LOAD_MODULES].include?('console_with_helpers'))
irb_standalone_running = !script_console_running &amp;&amp; !rails_running

if script_console_running
  require 'logger'
  Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT))
end</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/12/28/irb-console-with-history-and-logging/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>सागर से मोती छीनु,</title>
		<link>http://www.shishirsharma.com/2011/09/11/aaaa-aay-aayaa/</link>
		<comments>http://www.shishirsharma.com/2011/09/11/aaaa-aay-aayaa/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 16:38:49 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Status]]></category>
		<category><![CDATA[latest]]></category>
		<category><![CDATA[tweets]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[whats new]]></category>

		<guid isPermaLink="false">http://www.shishirsharma.com/2011/09/11/aaaa-aay-aayaa/</guid>
		<description><![CDATA[सागर से मोती छीनु, दीपक से ज्योति छीनु पत्थर से आग लगा लू, सिने से राज़ चुरा लू हाँ चुरा लूँ, चुरा लूँ, हाँ हाँ चुरा लूँ Hawa Hawai -Saitaan]]></description>
			<content:encoded><![CDATA[<p>सागर से मोती छीनु, दीपक से ज्योति छीनु<br />
पत्थर से आग लगा लू, सिने से राज़ चुरा लू<br />
हाँ चुरा लूँ, चुरा लूँ, हाँ हाँ चुरा लूँ<br />
Hawa Hawai -Saitaan</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/09/11/aaaa-aay-aayaa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Ethernet Shield and Webclient</title>
		<link>http://www.shishirsharma.com/2011/09/11/arduino-ethernet-shield-and-webclient/</link>
		<comments>http://www.shishirsharma.com/2011/09/11/arduino-ethernet-shield-and-webclient/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 16:21:55 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Ardoino]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Platform]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.shishirsharma.com/?p=1066</guid>
		<description><![CDATA[First thing you do when you get a Ethernet Shield for Arduino (in my case Duemilanove). You will be uploading various example sketches. I was doing the same Ardoino was working flawlessly and then I got stuck in WebClient sketch. I &#8230; <a href="http://www.shishirsharma.com/2011/09/11/arduino-ethernet-shield-and-webclient/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First thing you do when you get a Ethernet Shield for Arduino (in my case Duemilanove). You will be uploading various example sketches. I was doing the same Ardoino was working flawlessly and then I got stuck in WebClient sketch.</p>
<p>I did all the things I could do.</p>
<ul>
<li>Reset Arduino.</li>
<li>Reset Ethernet Shield.</li>
<li>Change Ethernet cat5 cable to shorter one.</li>
<li>Change Router setting.</li>
<li>Change MAC address in program.</li>
<li>Change last 2 octets of IP 192,168,6,xxx to 192,168,1,xxx.</li>
<li>At last Google about this issue.</li>
</ul>
<p>Point to be noted I was able to run WebServer sketch and it was flawless. So I was sure shield is good.</p>
<p>With a quick google found <a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1293894412">this</a> thread on http://www.arduino.cc.</p>
<p>Some one said that don&#8217;t connect google <img src='http://www.shishirsharma.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Bingo. Its Google.</p>
<p>Fcuk that.  But WebClient too works flawlessly.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/09/11/arduino-ethernet-shield-and-webclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You go</title>
		<link>http://www.shishirsharma.com/2011/09/08/you-go/</link>
		<comments>http://www.shishirsharma.com/2011/09/08/you-go/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 05:24:06 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Toonz]]></category>

		<guid isPermaLink="false">http://www.shishirsharma.com/?p=1058</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.shishirsharma.com/wp/wp-content/uploads/2011/09/momma3.gif" rel="lightbox[1058]" title="momma3"><img class="alignleft size-full wp-image-1059" title="momma3" src="http://www.shishirsharma.com/wp/wp-content/uploads/2011/09/momma3.gif" alt="momma" width="600" height="202" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/09/08/you-go/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Let the mac sleep</title>
		<link>http://www.shishirsharma.com/2011/08/30/let-the-mac-sleep/</link>
		<comments>http://www.shishirsharma.com/2011/08/30/let-the-mac-sleep/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 18:58:59 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.shishirsharma.com/?p=1034</guid>
		<description><![CDATA[Mac sleep/Screen Sleep immediately (no confirmation): Cmd-Opt-Eject Put display to sleep: Ctrl-Shift-Eject]]></description>
			<content:encoded><![CDATA[<p>Mac sleep/Screen</p>
<p>Sleep immediately (no confirmation): Cmd-Opt-Eject<br />
Put display to sleep: Ctrl-Shift-Eject</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/08/30/let-the-mac-sleep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slideshare&#8217;s Best Team</title>
		<link>http://www.shishirsharma.com/2011/08/25/slideshares-best-team/</link>
		<comments>http://www.shishirsharma.com/2011/08/25/slideshares-best-team/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 19:51:53 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shishirsharma.com/?p=1028</guid>
		<description><![CDATA[Well I am member of slideshare&#8217;s best team. Don&#8217;t believe it? Just checkout this week&#8217;s points. https://plus.google.com/116855355321151618242/posts/Ry8DxPKm33x?hl=en]]></description>
			<content:encoded><![CDATA[<p>Well I am member of slideshare&#8217;s best team. Don&#8217;t believe it? Just checkout this week&#8217;s points.</p>
<p>https://plus.google.com/116855355321151618242/posts/Ry8DxPKm33x?hl=en</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/08/25/slideshares-best-team/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Power Programming with Tags</title>
		<link>http://www.shishirsharma.com/2011/08/24/power-programming-with-tags/</link>
		<comments>http://www.shishirsharma.com/2011/08/24/power-programming-with-tags/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 12:10:10 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[CTags]]></category>
		<category><![CDATA[Source navigation]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://shishirsharma.com/?p=1024</guid>
		<description><![CDATA[Source tagging is very powerful source code navigation system, it beats any state of the art IDE. If you are using Emacs, Vim and TextMate then you can use source tagging for navigation. Here are the few simple steps to &#8230; <a href="http://www.shishirsharma.com/2011/08/24/power-programming-with-tags/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Source tagging is very powerful source code navigation system, it beats any state of the art IDE. If you are using Emacs, Vim and TextMate then you can use source tagging for navigation. Here are the few simple steps to do it.</p>
<p>Step 1. Install ctags in your system. For mac</p>
<pre>$ sudo port install ctags</pre>
<p>Step 2. Create A tag file</p>
<pre>$ cd /Users/username/Workspace/rails-project
$ ctags -e -a --Ruby-kinds=+f -o TAGS -R app/ lib/ config/</pre>
<p>It is best to add this in crontab for this around 11:30am</p>
<p>Step 3.1 emacs</p>
<pre>M-. Follow a tag
M-* Jump back to source.</pre>
<p>Step 3.2 vim<br />
just add this in your ~/.vimrc</p>
<pre>set tags=TAGS;/</pre>
<p>Once this is done you can navigate to source of tag by using.</p>
<pre>C-] - go to definition
C-T - Jump back from the definition.
C-W C-] - Open the definition in a horizontal split</pre>
<p>Hope you will be able to use this awesome feature.<br />
<cite>C is ctrl<br />
M is Meta/Alt/Ecs</cite></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/08/24/power-programming-with-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent Googlebot following links in Gmail</title>
		<link>http://www.shishirsharma.com/2011/08/03/prevent-googlebot-following-links-in-gmail/</link>
		<comments>http://www.shishirsharma.com/2011/08/03/prevent-googlebot-following-links-in-gmail/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 21:27:58 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Crawler]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Googlebot]]></category>

		<guid isPermaLink="false">http://shishirsharma.com/?p=1000</guid>
		<description><![CDATA[How to prevent googlebot following links in gmail messages? Well bad news is &#8220;Googlebot is following links sent to subscribers of a mailing list by email and it is causing those subscribers to receive an unsubscribe meesage or a added &#8230; <a href="http://www.shishirsharma.com/2011/08/03/prevent-googlebot-following-links-in-gmail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>How to prevent googlebot following links in gmail messages? Well bad news is &#8220;Googlebot is following links sent to subscribers of a mailing list by email and it is causing those subscribers to receive an unsubscribe meesage or a added download from the list or server&#8221;.</p>
<p>Bigger Bad news is that age old trick will <strong>NOT </strong>work here, we can not solve this simply by adding</p>
<pre>&lt;a href="signin.php" rel="nofollow"&gt;sign in&lt;/a&gt;</pre>
<p>Best way in my opinion is to reject download count based on the user agent. Which is <em>Googlebot </em>in case of Google Crawler.</p>
<p>find long answer <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=96569">here</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/08/03/prevent-googlebot-following-links-in-gmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Clan War &#8211; Let it begin</title>
		<link>http://www.shishirsharma.com/2011/08/01/clan-war-let-it-begin/</link>
		<comments>http://www.shishirsharma.com/2011/08/01/clan-war-let-it-begin/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 17:44:58 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Friends]]></category>
		<category><![CDATA[slideshare]]></category>

		<guid isPermaLink="false">http://shishirsharma.com/?p=895</guid>
		<description><![CDATA[slideshare is famous as a presentation and document sharing platform. But very few people around know about slideshare&#8216;s love for first persone shooters. It&#8217;s a daily evening trend now. If slideshare is not down then there must be a UrT match going on &#8230; <a href="http://www.shishirsharma.com/2011/08/01/clan-war-let-it-begin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #339999;">slide<strong>share</strong></span> is famous as a presentation and document sharing platform. But very few people around know about <span style="color: #339999;">slide<strong>share</strong></span>&#8216;s love for first persone shooters. It&#8217;s a daily evening trend now. If <span style="color: #339999;">slide<strong>share</strong></span> is not down then there must be a UrT match going on in delhi office. It has reached to the extent that now we have two in-house clans, each consisting of five players. It has opened possibility of five verses five clan matches.</p>
<p>Jeba(graydot), Pranav(silent_horror), Jai(*thunder), Tushar(zombi), Kanav(Ka_boom) and I(cpt) are in one team and Prafulla(Element), Sahil(Engassa), Arpit(cctv), Shirsendu(Toy_da_virus) and Ankur(danger) are in the other one. Kapil(anachronox) will use auto join. <img src='http://www.shishirsharma.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Suggest me names guys.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2011/08/01/clan-war-let-it-begin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

