<?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>enerjee &#187; geek out</title>
	<atom:link href="http://www.hindoogle.com/blog/category/geek-out/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hindoogle.com/blog</link>
	<description>A mind that is stretched by a new experience can never go back to its old dimensions.</description>
	<lastBuildDate>Tue, 07 Sep 2010 17:47:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Audi A3 Radiator Problems</title>
		<link>http://www.hindoogle.com/blog/2010/07/audi-a3-radiator-problems/</link>
		<comments>http://www.hindoogle.com/blog/2010/07/audi-a3-radiator-problems/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 17:33:09 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/?p=961</guid>
		<description><![CDATA[My 2006 Audi A3 has been leaking coolant for many months now. Usually it had been a slow leak, and I would need to top off the fluids about once a month. This is not standard &#8211; in most radiators the anti-freeze should stay level indefinitely. My problem was that on long road trips, the [...]]]></description>
			<content:encoded><![CDATA[<p>My 2006 Audi A3 has been leaking coolant for many months now. Usually it had been a slow leak, and I would need to top off the fluids about once a month. This is not standard &#8211; in most radiators the anti-freeze should stay level indefinitely. </p>
<p>My problem was that on long road trips, the coolant would disappear at a much higher rate. If I left from Boston at 10am, by the time I hit New Jersey around 3pm, the coolant indicator would be on and the coolant reservoir would be totally empty. This could be very dangerous and cause the engine to overheat, causing permanent damage and more importantly stranding me on the road. That would be a huge pain in the ass.</p>
<p>I&#8217;ve been reading around the interwebs and heard nightmare stories &#8211; A3&#8242;s apparently have a tendency to have leaky head gaskets and / or cracked cylinder heads. It is less than thrilling to have the engine of your 4-year old auto, just off warranty, dismantled and reassembled. The mechanic&#8217;s bill would make anyone cry. I was scared for my car.</p>
<p>Well, the resolution was a good one. This radiator was another casualty of I-93 and the shitty job the road crews did to clean up rock chips and asphalt while they resurfaced it last summer. While I worked at LogMeIn, I&#8217;d drive up 93, way too fast, on my way to work. For 2-3 months, the road was milled and shaved down, but not repaved. There was an unbelievable amount of debris on the road and my windshield was cracked in 3 places by flying rocks.</p>
<p>Turns out one of the flying rocks destroyed my radiator too.</p>
<p><a href="http://picasaweb.google.com/lh/photo/hcd9iT3lJrNyk7FOuSH_EQ?feat=embedwebsite"><img src="http://lh3.ggpht.com/_jDv6fzWm7Vc/TC0QHcJUAwI/AAAAAAAAJl8/odcWFbdG9SQ/s400/IMG_1819.JPG" /></a></p>
<p>The radiator. Obvious marks from dried / burnt coolant leaking for a long period of time. It was necessary to remove the radiator to see this damage. Two mechanics looked at it for estimates and couldn&#8217;t see the source of the leak.</p>
<p><a href="http://picasaweb.google.com/lh/photo/GN1QQ3kRqsatYAsNmD3mig?feat=embedwebsite"><img src="http://lh4.ggpht.com/_jDv6fzWm7Vc/TC0MSWUtZaI/AAAAAAAAJl8/_cZMQqGoQ5o/s400/IMG_1817.JPG" /></a></p>
<p>Point of Impact. Probably a stone chip or bit of flying asphalt.</p>
<p><a href="http://picasaweb.google.com/lh/photo/FyQR_ozxEIrHbVN-2ErNOQ?feat=embedwebsite"><img src="http://lh4.ggpht.com/_jDv6fzWm7Vc/TC0QS6TTabI/AAAAAAAAJl8/r_-lD9QRmxk/s400/IMG_1821.JPG" /></a></p>
<p>Wide open for easy access. The radiator is right behind the grille without any protection.</p>
<p><a href="http://picasaweb.google.com/lh/photo/GYw5Ie1R_tsf4iYb2g75Tg?feat=embedwebsite"><img src="http://lh3.ggpht.com/_jDv6fzWm7Vc/TC0Qh766INI/AAAAAAAAJl8/iL35UEHTVzM/s400/IMG_1824.JPG" /></a></p>
<p>Another casualty of I-93 rocks. I&#8217;m going to need a new windshield soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2010/07/audi-a3-radiator-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netflix Streaming Error 8156-6003, Silverlight Update</title>
		<link>http://www.hindoogle.com/blog/2010/06/netflix-streaming-error-8156-6003-silverlight-update/</link>
		<comments>http://www.hindoogle.com/blog/2010/06/netflix-streaming-error-8156-6003-silverlight-update/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 14:32:32 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/2010/06/netflix-streaming-error-8156-6003-silverlight-update/</guid>
		<description><![CDATA[I&#8217;m getting a streaming error &#8220;DRM Error&#8221; while trying to stream netflix. I watched an episode of Lost when I got home last night, soon after midnight, and it worked fine. What could be causing this error today? Since everyone knows that Microsoft Silverlight is a piece of crap, it is the immediate culprit. I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting a streaming error &#8220;DRM Error&#8221; while trying to stream netflix. I watched an episode of Lost when I got home last night, soon after midnight, and it worked fine. What could be causing this error today?</p>
<p><a href="http://www.hindoogle.com/blog/wp-content/uploads/2010/06/drm-error.png"><img class="aligncenter size-medium wp-image-940" title="drm-error" src="http://www.hindoogle.com/blog/wp-content/uploads/2010/06/drm-error-300x73.png" alt="" width="300" height="73" /></a></p>
<p>Since everyone knows that Microsoft Silverlight is a piece of crap, it is the immediate culprit. I noticed that a Silverlight update was installed by Microsoft today or last night.</p>
<p><a href="http://www.hindoogle.com/blog/wp-content/uploads/2010/06/silverlight-update.png"><img class="aligncenter size-medium wp-image-938" title="silverlight-update" src="http://www.hindoogle.com/blog/wp-content/uploads/2010/06/silverlight-update-300x53.png" alt="" width="300" height="53" /></a></p>
<p>The Update number is KB982926 and it seems to have broken Netflix&#8217;s Streaming capabilities. It contained <span style="color: #ff6600;">Silverlight Version 4</span>.</p>
<p>FIX:<br />
1. Go to Windows Update Settings and change it from &#8220;Automatically install updates&#8221; to &#8220;Download updates and ask me when to install&#8221; (otherwise silverlight will reinstall itself again)<br />
2. Close your web browser<br />
3. Go to Control Panel -&gt; Uninstall a program -&gt; Remove Silverlight<br />
4. Go to netflix.com and start streaming a movie. It will prompt you to go to microsoft&#8217;s site and install <span style="color: #00ff00;"><strong>Silverlight Version 3</strong></span>.<br />
5. Restart your browser and it should work. Just worked for me on Windows 7.</p>
<p><span style="color: #ffff00;"><strong>I use ad revenue to pay for my hosting. So if you found my tip useful please &#8230;</strong><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "pub-6080046302320343"; /* netflix */ google_ad_slot = "6243719041"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></span><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2010/06/netflix-streaming-error-8156-6003-silverlight-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Concept Map in Processing Library</title>
		<link>http://www.hindoogle.com/blog/2010/05/concept-map-in-processing-library/</link>
		<comments>http://www.hindoogle.com/blog/2010/05/concept-map-in-processing-library/#comments</comments>
		<pubDate>Wed, 05 May 2010 17:40:04 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/2010/05/concept-map-in-processing-library/</guid>
		<description><![CDATA[This code makes a Concept Map with the Processing library / Java. Processing library makes it easy and quick to make graphical representations and animations, among its many features.     /**      * setup is called implicitly by the library when rdraw is called      * it sets the size, drawing method, then in this [...]]]></description>
			<content:encoded><![CDATA[<p>This code makes a Concept Map with the Processing library / Java. <a href="http://www.processing.org">Processing library</a> makes it easy and quick to make graphical representations and animations, among its many features.</p>
<p><a href="http://www.hindoogle.com/blog/wp-content/uploads/2010/05/concept-map.png"><img class="aligncenter size-medium wp-image-918" title="concept-map" src="http://www.hindoogle.com/blog/wp-content/uploads/2010/05/concept-map-290x300.png" alt="" width="290" height="300" /></a></p>
<pre>    /**
     * setup is called implicitly by the library when rdraw is called
     * it sets the size, drawing method, then in this case draws the graph
     */
    public void setup() {
      size(boxSize,boxSize);
      smooth();
      drawGraph();
     }
    /**
     * Draws the graph. req and neighbors must have been
     * previously set through the construtor or the setters
     */
    public void drawGraph()
    {     
        int halfBox= 150;
        //processing uses radians, not degrees
        float angle = 2*PI / neighbors.size();
        for(int i = 0; i &lt; neighbors.size(); i++)
        {
            float cur_angle = i*angle;
            String s = neighbors.get(i);
   
            //calculate an even dispersal around the central objet
            //it depends on how many objects are in your list
            float xpos = halfBox*cos(cur_angle)+center;
            float ypos = halfBox*sin(cur_angle)+center;
       
            //color=black, draw a line to new item
            stroke(0);
            line(center,center, xpos,ypos);
            //put the item last, on top of the lines
            drawCircle(xpos, ypos, s);
        }
        //put the item last, on top of the lines
        drawCircle(center,center,result);
    }

    /**
     * draws a circle with specified text at (x,y)
     * @param x the x position of where the circle will go
     * @param y the y position of where the circle will go
     * @param word the word that will go in the middle of the circle
     */
    public void drawCircle(float x, float y, String word)
    {
        fill(255);
        ellipse(x,y,word.length()*10, 40);
        fill(0, 102, 153);
        textAlign(CENTER);
        text(word,x,y);
    }
</pre>
<pre>/**
     * Makes a graph with req in the middle, surrounded
     * by neighbors n. calls the library's super, Papplet.main
     */
    public void rdraw(String req, ArrayList&lt;String&gt; n)
    {
        result = req;
        neighbors = n;
     
        PApplet.main(new String[] { "--bgcolor=#ECE9D8", "BrainH.client.ConceptMap" });
    }
</pre>
<p>Compete Source here [<a href="http://www.hindoogle.com/blog/wp-content/uploads/2010/05/ConceptMap.java">ConceptMap.java</a>].</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 153px; width: 1px; height: 1px; overflow: hidden;">public class ConceptMap extends PApplet {</p>
<p>/**<br />
*<br />
*/<br />
private static final long serialVersionUID = 690002409249816629L;<br />
private int boxSize = 500;<br />
private int center = boxSize / 2;<br />
private static String result = &#8220;&#8221;;<br />
private static ArrayList&lt;String&gt; neighbors = null;</p>
<p>public ConceptMap() {};<br />
public ConceptMap(String req, ArrayList&lt;String&gt; n)<br />
{<br />
result = req;<br />
neighbors = n;<br />
}</p>
<p>/**<br />
* setup is called implicitly by the library when rdraw is called<br />
* it sets the size, drawing method, then in this case draws the graph<br />
*/<br />
public void setup() {<br />
size(boxSize,boxSize);<br />
smooth();<br />
drawGraph();<br />
}</p>
<p>public void setNeighbors(ArrayList&lt;String&gt; arg)<br />
{<br />
neighbors = arg;<br />
}</p>
<p>public void setObject(String req)<br />
{<br />
result = req;<br />
}</p>
<p>/**<br />
* Draws the graph. req and neighbors must have been<br />
* previously set through the construtor or the setters<br />
*/<br />
public void drawGraph()<br />
{<br />
int halfBox= 150;<br />
//processing uses radians, not degrees<br />
float angle = 2*PI / neighbors.size();<br />
for(int i = 0; i &lt; neighbors.size(); i++)<br />
{<br />
float cur_angle = i*angle;<br />
String s = neighbors.get(i);</p>
<p>//calculate an even dispersal around the central objet<br />
//it depends on how many objects are in your list<br />
float xpos = halfBox*cos(cur_angle)+center;<br />
float ypos = halfBox*sin(cur_angle)+center;</p>
<p>//color=black, draw a line to new item<br />
stroke(0);<br />
line(center,center, xpos,ypos);<br />
//put the item last, on top of the lines<br />
drawCircle(xpos, ypos, s);<br />
}<br />
//put the item last, on top of the lines<br />
drawCircle(center,center,result);<br />
}</p>
<p>/**<br />
* draws a circle with specified text at (x,y)<br />
* @param x the x position of where the circle will go<br />
* @param y the y position of where the circle will go<br />
* @param word the word that will go in the middle of the circle<br />
*/<br />
public void drawCircle(float x, float y, String word)<br />
{<br />
fill(255);<br />
ellipse(x,y,word.length()*10, 40);<br />
fill(0, 102, 153);<br />
textAlign(CENTER);<br />
text(word,x,y);<br />
}</p>
<p>/**<br />
* Makes a graph with req in the middle, surrounded<br />
* by neighbors n. calls the library&#8217;s super, Papplet.main<br />
*/<br />
public void rdraw(String req, ArrayList&lt;String&gt; n)<br />
{<br />
result = req;<br />
neighbors = n;</p>
<p>PApplet.main(new String[] { &#8220;&#8211;bgcolor=#ECE9D8&#8243;, &#8220;BrainH.client.ConceptMap&#8221; });<br />
}<br />
}</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2010/05/concept-map-in-processing-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Amazing feat of Engineering</title>
		<link>http://www.hindoogle.com/blog/2010/04/an-amazing-feat-of-engineering/</link>
		<comments>http://www.hindoogle.com/blog/2010/04/an-amazing-feat-of-engineering/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 18:21:41 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/2010/04/an-amazing-feat-of-engineering/</guid>
		<description><![CDATA[Who says geekiness can&#8217;t be cool? Even the biggest Luddite should appreciate this. A Japanese company, Daishin, made this video to commemorate their 50th anniversary. Their milling machine spins on 5 axis. I can&#8217;t get over the way the platform and drill head move in synchrony in this video. Machining Aluminum: How a large block [...]]]></description>
			<content:encoded><![CDATA[<p>Who says geekiness can&#8217;t be cool? Even the biggest Luddite should appreciate this.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/RnIvhlKT7SY&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/RnIvhlKT7SY&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>A Japanese company, Daishin, made this video to commemorate their 50th anniversary. Their milling machine spins on 5 axis. I can&#8217;t get over the way the platform and drill head move in synchrony in this video.</p>
<p>Machining Aluminum: How a large block of aluminum is &#8220;milled&#8221; or sculpted into a finely detailed part. Usually for a mechanical part. You wouldn&#8217;t machine a fork or tin can, but there is no other way to make a part for an aircraft or automobile engine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2010/04/an-amazing-feat-of-engineering/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Ruby and Rails 1.9.1 on Ubuntu 9.x</title>
		<link>http://www.hindoogle.com/blog/2010/02/installing-ruby-and-rails-1-9-1-on-ubuntu-9-x/</link>
		<comments>http://www.hindoogle.com/blog/2010/02/installing-ruby-and-rails-1-9-1-on-ubuntu-9-x/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 23:53:18 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/?p=857</guid>
		<description><![CDATA[One would think that installing Ruby &#38; Rails on Ubuntu 9.X would be cake, right? WRONG. It is a lot of unexpected work and package additions. It no longer works &#8220;out of the box&#8221;. Important Note: Install as many packages as you can before trying to run your Rails project. Once you type &#8220;ruby script/server&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>One would think that installing Ruby &amp; Rails on Ubuntu 9.X would be cake, right? WRONG. It is a lot of unexpected work and package additions. It no longer works &#8220;out of the box&#8221;.</p>
<p><em><strong>Important Note:</strong></em> Install as many packages as you can before trying to run your Rails project. Once you type &#8220;ruby script/server&#8221; , the weaknesses of your configuration will be exposed, and who knows how the system will behave. Fill in the missing packages before this happens.</p>
<h1><strong>From the beginning</strong></h1>
<p>Your best bet for getting started is to use Synaptics Package Manager to install this package that supposedly contains everything you need:<br />
<strong>ruby1.9.1-full</strong><br />
While you are at it, get the following dependencies that WILL come back to haunt you later:<br />
rubygems1.9.1<br />
libopenssl-ruby1.9.1<br />
libruby1.9.1<br />
sqlite3 (omit if you&#8217;re using MySQL)<br />
libsqlite3-dev (omit if you&#8217;re using MySQL)</p>
<p>Accept all of the dependencies that Synaptics asks you for. More is better!</p>
<h2>Symbolic Links</h2>
<p>Do you want to type &#8220;ruby1.9.1&#8243; each time? Nah i don&#8217;t think so. Make some symbolic links to help you out.</p>
<pre>sudo ln -s /usr/bin/ruby1.9.1 /usr/bin/ruby
sudo ln -s /usr/bin/gem1.9.1 /usr/bin/gem
sudo ln -s /usr/bin/rake1.9.1 /usr/bin/rake</pre>
<p>ln makes symbolic links. Check out the <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?ln">man page</a> on it. You can delete the symbolic links when Ruby1.9.2 or whatever comes out.</p>
<h2>Rails</h2>
<p>Why doesn&#8217;t this come standard? Boggles my mind.</p>
<pre>sudo gem install rails</pre>
<h2>Sqlite3</h2>
<pre>Status: 500 Internal Server Error
no such file to load -- sqlite3</pre>
<p>Use Synaptics and install : libsqlite3-dev to get sqlite3.h header file</p>
<p>Then:</p>
<pre>sudo gem install sqlite3-ruby</pre>
<h2>Scrapers</h2>
<p>If you use hpricot or any kind of scraper, use Synaptics package manager to get:</p>
<pre>libxml2
libxml2-dev
libxslt1-dev

sudo gem install hpricot
sudo gem install mechanize</pre>
<h2>Random Stuff</h2>
<pre>Problem: NameError (uninitialized constant ApplicationController)
Fix: sudo rake rails:update

Problem: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' when "rated" : @movies = Movie.paginate(:al...
Fix: In Ruby 1.9, colons in a case statement are disallowed. Replace them with a "then" statement.</pre>
<p>Turns out that the new rails renames app/controllers/application.rb to application_controller.rb. This cute rake task will take care of it for you.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 632px; width: 1px; height: 1px;">
<pre>sudo gem install hpricot</pre>
</div>
<p>
<script type="text/javascript"><!--
google_ad_client = "pub-6080046302320343";
/* ruby */
google_ad_slot = "5588307521";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2010/02/installing-ruby-and-rails-1-9-1-on-ubuntu-9-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t compile the example WordCount.java (Hadoop)</title>
		<link>http://www.hindoogle.com/blog/2009/12/cant-compile-the-example-wordcount-java-hadoop/</link>
		<comments>http://www.hindoogle.com/blog/2009/12/cant-compile-the-example-wordcount-java-hadoop/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 05:34:41 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[from the road]]></category>
		<category><![CDATA[geek out]]></category>
		<category><![CDATA[popular]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/2009/12/cant-compile-the-example-wordcount-java-hadoop/</guid>
		<description><![CDATA[http://mail-archives.apache.org/mod_mbox/hadoop-common-user/200907.mbox/%3Cd6d7c4410907201717t672e4caet3f369d7e4327ff7b@mail.gmail.com%3E Seen this? Rajat@rtde ~/java $ javac -classpath /home/Rajat/hadoop-0.20.1/hadoop-0.20.1-core.jar -d wordcount_classes WordCount.java WordCount.java:5: package org.apache.hadoop.fs does not exist import org.apache.hadoop.fs.Path; WordCount.java:6: package org.apache.hadoop.conf does not exist import org.apache.hadoop.conf.*; ^ WordCount.java:7: package org.apache.hadoop.io does not exist import org.apache.hadoop.io.*; ^ WordCount.java:8: package org.apache.hadoop.mapred does not exist import org.apache.hadoop.mapred.*; ^ WordCount.java:9: package org.apache.hadoop.util does not exist import org.apache.hadoop.util.*; [...]]]></description>
			<content:encoded><![CDATA[<p>http://mail-archives.apache.org/mod_mbox/hadoop-common-user/200907.mbox/%3Cd6d7c4410907201717t672e4caet3f369d7e4327ff7b@mail.gmail.com%3E</p>
<p>Seen this?</p>
<blockquote><p>Rajat@rtde ~/java<br />
$ javac -classpath /home/Rajat/hadoop-0.20.1/hadoop-0.20.1-core.jar -d<br />
wordcount_classes WordCount.java</p>
<p>WordCount.java:5: package org.apache.hadoop.fs does not exist<br />
import org.apache.hadoop.fs.Path;</p>
<p>WordCount.java:6: package org.apache.hadoop.conf does not exist<br />
import org.apache.hadoop.conf.*;<br />
^<br />
WordCount.java:7: package org.apache.hadoop.io does not exist<br />
import org.apache.hadoop.io.*;<br />
^<br />
WordCount.java:8: package org.apache.hadoop.mapred does not exist<br />
import org.apache.hadoop.mapred.*;<br />
^<br />
WordCount.java:9: package org.apache.hadoop.util does not exist<br />
import org.apache.hadoop.util.*;</p></blockquote>
<h3></h3>
<h3>And running CygWin on Windows? Tried everything for your classpath<br />
huh? Try this:</h3>
<p>$ javac -verbose -classpath C:\\cygwin\\home\\Rajat\\hadoop-0.20.1\\hadoop-0.20.1-core.jar -d wordcount_classes WordCount.java</p>
<p>(Change your cygwin path, obviously)</p>
<p>Use the -verbose flag to show the entire class search path.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6080046302320343";
/* java 300x250, created 2/22/10 */
google_ad_slot = "4685335865";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2009/12/cant-compile-the-example-wordcount-java-hadoop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aircrack NG on iwl3945</title>
		<link>http://www.hindoogle.com/blog/2009/11/aircrack-ng-on-iwl3945/</link>
		<comments>http://www.hindoogle.com/blog/2009/11/aircrack-ng-on-iwl3945/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 15:34:32 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[from the road]]></category>
		<category><![CDATA[geek out]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/2009/11/airocrack-ng-on-iwl3945/</guid>
		<description><![CDATA[The iwl3945 would not go into monitor mode as easily as some of the documentation says. To get this to work, I had to go through a peculiar set of steps. Notice the changing argument, wlan0 or wifi0. 1. airmon-ng stop wlan0 ( will say &#8220;monitor mode disabled) 2. airmon-ng stop wifi0 (will say nothing [...]]]></description>
			<content:encoded><![CDATA[<p>The iwl3945 would not go into monitor mode as easily as some of the<br />
documentation says.</p>
<p>To get this to work, I had to go through a peculiar set of steps.<br />
Notice the changing argument, wlan0 or wifi0.</p>
<p>1. airmon-ng stop wlan0<br />
( will say &#8220;monitor mode disabled)</p>
<p>2. airmon-ng stop wifi0<br />
(will say nothing much)</p>
<p>3. airmon-ng start wlan0<br />
(now it agrees to go into monitor mode:<br />
(Monitor mode enabled on mon0)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2009/11/aircrack-ng-on-iwl3945/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keep Spiders and Bots from clicking links &amp; pushing buttons (Ruby)</title>
		<link>http://www.hindoogle.com/blog/2009/11/keep-spiders-and-bots-from-clicking-links-pushing-buttons-ruby/</link>
		<comments>http://www.hindoogle.com/blog/2009/11/keep-spiders-and-bots-from-clicking-links-pushing-buttons-ruby/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 03:38:50 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/?p=793</guid>
		<description><![CDATA[Here is a useful function to detect, in your controller, when a bot or web spider is clicking your links and pushing your buttons.Place this in helpers/my_helper.rb (use your own controller name obviously). def MyHelper.is_bot?(request) request.user_agent.downcase =~ /bot&#124;slurp&#124;spider&#124;crawl/ end Simple enough, but useful. In my case, on a site i&#8217;ve been building, www.movie-cat.tv, the googlebot [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a useful function to detect, in your controller, when a bot or web spider is clicking your links and pushing your buttons.Place this in helpers/my_helper.rb (use your own controller name obviously).</p>
<h3>def MyHelper.is_bot?(request)<br />
request.user_agent.downcase =~ /bot|slurp|spider|crawl/<br />
end</h3>
<p>Simple enough, but useful.</p>
<p>In my case, on a site i&#8217;ve been building, <a href="http://www.movie-cat.tv">www.movie-cat.tv</a>, the googlebot was coming through and marking all movies as &#8220;unavailable&#8221; through a simple crawl. If the bot is detected, the controller should not mark the movie unavailable, instead return before performing some action. This solved it.</p>
<p>GoogleBot, MSNBot, Yahoo Slurp, BaiduSpider. Modify the regex by adding any other bots you want to exclude, and separating them with a pipe &#8220;|&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2009/11/keep-spiders-and-bots-from-clicking-links-pushing-buttons-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ScrubyT traverse_for_match: undefined method each for nil:NilClass</title>
		<link>http://www.hindoogle.com/blog/2009/09/scrubyt-traverse_for_match-nilclass/</link>
		<comments>http://www.hindoogle.com/blog/2009/09/scrubyt-traverse_for_match-nilclass/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 21:43:56 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>
		<category><![CDATA[popular]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/?p=736</guid>
		<description><![CDATA[Using ScrubyT, a Ruby on Rails plugin, on a Linux system such as my CentOS 5 VPS, you can get an error message and stack trace like this: /usr/lib/ruby/gems/1.8/gems/scrubyt-0.4.06/lib/scrubyt/utils/shared_utils.rb:43:in `traverse_for_match&#8217;: undefined method `each&#8217; for nil:NilClass (NoMethodError) If you see this, go to shared_utils.rb in the path above, and change this block: node.children.each { &#124;child&#124; traverse_for_m&#8230;. [...]]]></description>
			<content:encoded><![CDATA[<p>Using <a href="http://scrubyt.org/">ScrubyT</a>, a Ruby on Rails plugin, on a Linux system such as my CentOS 5 VPS, you can get an error message and stack trace like this:</p>
<blockquote><p>/usr/lib/ruby/gems/1.8/gems/scrubyt-0.4.06/lib/scrubyt/utils/shared_utils.rb:43:in `traverse_for_match&#8217;: undefined method `each&#8217; for nil:NilClass (NoMethodError)</p></blockquote>
<p>If you see this, go to shared_utils.rb in the path above, and change this block:</p>
<blockquote><p>node.children.each { |child| traverse_for_m&#8230;.</p></blockquote>
<p>into this:</p>
<blockquote><p>if node.children<br />
node.children.each { |child| traverse_for_m&#8230;.<br />
end</p></blockquote>
<p>Thanks to <a href="http://deginzabi163.wordpress.com/2009/08/">Deginzabi who wrote about it</a> in Japanese. This article is a translation of what he said. <em>Hope this makes the next ScrubyT release!</em> It is a great project.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6080046302320343";
/* ruby */
google_ad_slot = "5588307521";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2009/09/scrubyt-traverse_for_match-nilclass/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Talk &#8211; Invisible Mode</title>
		<link>http://www.hindoogle.com/blog/2009/08/google-talk-invisible-mode/</link>
		<comments>http://www.hindoogle.com/blog/2009/08/google-talk-invisible-mode/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 16:52:47 +0000</pubDate>
		<dc:creator>rajat</dc:creator>
				<category><![CDATA[geek out]]></category>
		<category><![CDATA[popular]]></category>

		<guid isPermaLink="false">http://www.hindoogle.com/blog/?p=695</guid>
		<description><![CDATA[Did you know that you can use &#8220;Invisible Mode&#8221; in the Google Talk app? This is not the web application, but the genuine standalone Google Talk app. You don&#8217;t have to use the GTalk applet that is embedded in Gmail any longer, and can avoid cyberstalkers with class and sophistication! Here is the link to [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that you can use &#8220;Invisible Mode&#8221; in the Google Talk app? This is not the web application, but the genuine standalone Google Talk app. You don&#8217;t have to use the GTalk applet that is embedded in Gmail any longer, and can avoid cyberstalkers with class and sophistication!</p>
<p>Here is the link to the version of GTalk you&#8217;re interested in &#8211; Google Talk Labs Edition:</p>
<p><a href="http://www.google.com/talk/labsedition/index.html">http://www.google.com/talk/labsedition/index.html</a></p>
<p>I would recommend uninstalling the ordinary version of Gtalk first, otherwise the two will be installed side by side and become an annoyance.</p>
<p><img class="aligncenter size-full wp-image-703" title="gtalk-invisible" src="http://www.hindoogle.com/blog/wp-content/uploads/2009/08/gtalk-invisible.jpg" alt="gtalk-invisible" width="266" height="782" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hindoogle.com/blog/2009/08/google-talk-invisible-mode/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
