<?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>/home/spsneo/blog &#187; Google</title>
	<atom:link href="http://spsneo.com/blog/category/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://spsneo.com/blog</link>
	<description>Trying to move every bit to cloud.</description>
	<lastBuildDate>Fri, 19 Aug 2011 16:43:37 +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>What&#8217;s wrong with binary search!</title>
		<link>http://spsneo.com/blog/2011/01/11/whats-wrong-with-binary-search/</link>
		<comments>http://spsneo.com/blog/2011/01/11/whats-wrong-with-binary-search/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 19:47:19 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Algorithm]]></category>
		<category><![CDATA[Binary Search]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Google Research]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=138</guid>
		<description><![CDATA[There&#8217;s a bug in the code of &#8220;Binary Search&#8221; as most of us write it. When asked most of us code binary search as - int binary_search(int *a, int len, int key) { int low = 0; int high = &#8230; <a href="http://spsneo.com/blog/2011/01/11/whats-wrong-with-binary-search/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a bug in the code of &#8220;Binary Search&#8221; as most of us write it. When asked most of us code binary search as -</p>
<pre class="brush: c">
int binary_search(int *a, int len, int key)
{
int low = 0;
int high = len-1;

while (low &lt;= high)
{
int mid = (low+high)/2;
int val = a[mid];

if (val &lt; key)
{
low = mid + 1;
} else if (val &gt; key)
{
high = mid - 1;
} else
{
return mid;
}
}
return -1;
}
</pre>
<p>Now, try to find the bug in the above code. The bug surfaces if the array is too large. If the length of the array is too large, line number 8 in the above code would cause the variable &#8220;mid&#8221; to overflow and hence will have a negative number and the code breaks. A very simple solution would be to replace line 8 in the above code with -</p>
<pre class="brush: php">
mid = low + (high-low)/2;
</pre>
<p>So, you see how bugs could creep in your code. To see more detailed discussion on how the bug was discovered and a couple of more elegant, efficient solutions check out this Google Research blog &#8211; <a href="http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html">http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2011/01/11/whats-wrong-with-binary-search/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Google Search Now With Wiki Features</title>
		<link>http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/</link>
		<comments>http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 07:47:42 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Search Feature]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=73</guid>
		<description><![CDATA[Today, I suddenly saw a new feature of Google search. One can now promote a search result, comment on a search result or remove a search result. Take a look below :   I am sure this feature will help &#8230; <a href="http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today, I suddenly saw a new feature of Google search. One can now promote a search result, comment on a search result or remove a search result. Take a look below :</p>
<p> </p>
<p><img class="alignnone size-full wp-image-74" title="google" src="http://spsneo.com/blog/wp-content/uploads/2008/12/google.jpg" alt="google" width="627" height="670" /></p>
<p>I am sure this feature will help Google provide better and more personalized results !</p>
<p>Happy Googling !</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Launching a New Browser : Chrome</title>
		<link>http://spsneo.com/blog/2008/09/02/google-launching-a-new-browser-chrome/</link>
		<comments>http://spsneo.com/blog/2008/09/02/google-launching-a-new-browser-chrome/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 12:20:54 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=54</guid>
		<description><![CDATA[Google today confirmed that they are going to launch a new browser : chrome tomorrow. Check out the Google&#8217;s official blog here. The web browser will compete with Internet Explorer and Mozilla Firefox. Google has also launched a comic which &#8230; <a href="http://spsneo.com/blog/2008/09/02/google-launching-a-new-browser-chrome/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Google today confirmed that they are going to launch a new browser : <strong>chrome</strong> tomorrow. Check out the Google&#8217;s official blog <a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html">here</a>.<br />
The web browser will compete with Internet Explorer and Mozilla Firefox.<br />
Google has also launched a comic which describes the need and feature of the new browses.<br />
<a href="http://www.google.com/googlebooks/chrome"><img title="chrome" src="http://www.spsneo.com/images/chrome.jpg" alt="" width="277" height="400" /></a></p>
<p><a href="http://www.google.com/chrome/"><img class="alignnone" title="Google Chrome" src="http://www.spsneo.com/images/chrome2.jpg" alt="" width="440" height="359" /></a></p>
<p>Here&#8217;s the link to the comic <a href="http://www.google.com/googlebooks/chrome">http://www.google.com/googlebooks/chrome</a></p>
<p>Well, Google has already released the &#8220;Chrome&#8221; Browser for Windows Vista and XP</p>
<p>Download it <a href="http://www.google.com/chrome">here</a></p>
<p>I don&#8217;t know why Google doesn&#8217;t release products for Linux <img src='http://spsneo.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Waiting for Chrome (Linux Version)</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/09/02/google-launching-a-new-browser-chrome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s Advice to Students</title>
		<link>http://spsneo.com/blog/2008/07/16/googles-advice-to-students/</link>
		<comments>http://spsneo.com/blog/2008/07/16/googles-advice-to-students/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 03:40:44 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Employee]]></category>
		<category><![CDATA[Skills]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=11</guid>
		<description><![CDATA[I was just going through the Google Official Blog and saw this latest post labeled : Our Googley advice to students: Major in learning Check out the link. I am sure you will get to know what Google expects from &#8230; <a href="http://spsneo.com/blog/2008/07/16/googles-advice-to-students/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was just going through the Google Official Blog and saw this latest post labeled :</p>
<h2 class="post-title"><a href="http://googleblog.blogspot.com/2008/07/our-googley-advice-to-students-major-in.html">Our Googley advice to students: Major in learning</a></h2>
<p>Check out the link.</p>
<p>I am sure you will get to know what Google expects from you as an employer.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/07/16/googles-advice-to-students/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Trend Manipulation</title>
		<link>http://spsneo.com/blog/2008/07/14/google-trend-manipulation/</link>
		<comments>http://spsneo.com/blog/2008/07/14/google-trend-manipulation/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 13:28:22 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Trend]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=7</guid>
		<description><![CDATA[Google Trend Abuse/Manipulation/&#8230; whatever : Link to this page : http://www.google.com/trends/hottrends?sa=X&#38;date=2008-7-13 P.S: Last week it was swastika on google trends.]]></description>
			<content:encoded><![CDATA[<p>Google Trend Abuse/Manipulation/&#8230; whatever :</p>
<p><a href="http://spsneo.com/blog/wp-content/uploads/2008/07/screenshot2.png"><img class="alignnone size-medium wp-image-8" title="Google trend abuse" src="http://spsneo.com/blog/wp-content/uploads/2008/07/screenshot2.png" alt="Google Trend Abuse" width="290" height="297" /></a></p>
<p>Link to this page : <a href="http://www.google.com/trends/hottrends?sa=X&amp;date=2008-7-13">http://www.google.com/trends/hottrends?sa=X&amp;date=2008-7-13</a></p>
<p>P.S: Last week it was swastika on google trends.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/07/14/google-trend-manipulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail Server Error</title>
		<link>http://spsneo.com/blog/2008/07/14/gmail-server-error/</link>
		<comments>http://spsneo.com/blog/2008/07/14/gmail-server-error/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 09:37:01 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[server error]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=5</guid>
		<description><![CDATA[After Orkut Gmail is also facing server errors !]]></description>
			<content:encoded><![CDATA[<p>After Orkut Gmail is also facing server errors !</p>
<p><a href="http://spsneo.com/blog/wp-content/uploads/2008/07/screenshot1.png"><img class="alignleft size-medium wp-image-6" title="gmail server error" src="http://spsneo.com/blog/wp-content/uploads/2008/07/screenshot1-300x228.png" alt="gmail server error" width="300" height="228" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/07/14/gmail-server-error/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

