<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>Shashank's Blog (beta)</title>
	<link>http://neothebrute.awardspace.com/blog</link>
	<description>Ramblings of a dusty mind</description>
	<pubDate>Wed, 04 Jun 2008 17:29:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Blog shifted</title>
		<link>http://neothebrute.awardspace.com/blog/2008/05/18/blog-shifted/</link>
		<comments>http://neothebrute.awardspace.com/blog/2008/05/18/blog-shifted/#comments</comments>
		<pubDate>Sun, 18 May 2008 08:14:20 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[General chatter]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2008/05/18/blog-shifted/</guid>
		<description><![CDATA[My blog has shifted to 
http://neothebrute.blogspot.com
 which the old-timers would remember was my first blog. Yeah so I&#8217;m returning to that finally, and this blog is to be shut-down. There are a lot of irritating problems with this awardspace domain, and I simply don&#8217;t have the time to run around testing other hosts and dealing [...]]]></description>
			<content:encoded><![CDATA[<p>My blog has shifted to </p>
<p><a href="http://neothebrute.blogspot.com" style="font-weight:bold;font-size:15px"><strong>http://neothebrute.blogspot.com</strong></a></p>
<p> which the old-timers would remember was my first blog. Yeah so I&#8217;m returning to that finally, and this blog is to be shut-down. There are a lot of irritating problems with this awardspace domain, and I simply don&#8217;t have the time to run around testing other hosts and dealing with hosting problems anymore. Let blogger maintain it for me.</p>
<p>The current blog in blogger is pretty primitive-looking. Don&#8217;t worry, I&#8217;m in the process of re-designing it and giving it a pretty new look. Keep checking it if you have no other work.</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2008/05/18/blog-shifted/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Mystery of the Number 7</title>
		<link>http://neothebrute.awardspace.com/blog/2008/04/22/the-mystery-of-the-number-7/</link>
		<comments>http://neothebrute.awardspace.com/blog/2008/04/22/the-mystery-of-the-number-7/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 20:20:29 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2008/04/22/the-mystery-of-the-number-7/</guid>
		<description><![CDATA[Note: This is an old post on an old blog. View the current version of this page on: http://neothebrute.blogspot.com/2008/04/mystery-of-number-7.html
One fine day I had simply no work in life, so I decided to calculate PI (22/7 = 3.142857…) to the millionth decimal place. Needless to say, I didn’t reach that mark, but I was astounded to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: This is an old post on an old blog. View the current version of this page on: <a href="http://neothebrute.blogspot.com/2008/04/mystery-of-number-7.html">http://neothebrute.blogspot.com/2008/04/mystery-of-number-7.html</a></strong></p>
<p>One fine day I had simply no work in life, so I decided to calculate PI (22/7 = 3.142857…) to the millionth decimal place. Needless to say, I didn’t reach that mark, but I was astounded to see that not only did PI follow the sequence of 142857 after the decimal place; EVERY number possible did the same (except obviously multiples of 7, which don’t need the decimal point). Every number that I divided with 7 followed the circular chain of 142857 after the decimal place, some starting with 4 immediately after the decimal place and going through the following 2857 before restarting the 142857 sequence etc. But essentially everyone had the same chain, starting at different points in the circular chain. Observe:</p>
<p>22 / 7 = 3.{142857,142857,142857,142857,142857…}<br />
227 / 7 = 32.{42857}{142857,142857,142857,142857…}<br />
890 / 7 = 127.{142857,142857,142857,142857,142857…}<br />
22792279 / 7 = 3256039.{857}{142857,142857,142857,14287…}</p>
<p>So I set myself an objective: Find out why numbers when divided by 7 present the same pattern of 142857. There is no conspiracy theory or ‘number of God 7′ in this. Maybe people have already figured out the solution to this problem, which proves that I’m not the only one with no work and loads of time to kill. <img src='http://neothebrute.awardspace.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>My explanation:<br />
When any number is divided by 7, at each step of the long division method the remainder will be from the following sequence, maybe in a circularly, rotated way: 1, 3, 2, 6, 4, 5. Observe:</p>
<p>(By Long Division method)<br />
22 / 7 = 3, and remainder = 1<br />
put decimal point and bring down a ‘zero’ => 1 is now 10<br />
10 / 7 = 1, and remainder = 3<br />
bring down another ‘zero’ => 3 is now 30<br />
30 / 7 = 4, and remainder = 2<br />
bring down another ‘zero’ => 2 is now 20<br />
20 / 7 = 2, and remainder = 6<br />
bring down another ‘zero’ => 6 is now 60<br />
60 / 7 = 8, and remainder = 4<br />
bring down another ‘zero’ => 4 is now 40<br />
40 / 7 = 5, and remainder = 5<br />
bring down another ‘zero’ => 5 is now 50<br />
50 / 7 = 7, and remainder = 1<br />
bring down another ‘zero’ => 1 is now 10<br />
… and the cycle begins again. Remainders thus cycle in the sequence 1, 3, 4, 6, 4, 5.</p>
<p>Also observe that this remainder sequence includes all the numbers less than 7, which means that whatever be the dividend, the remainder at each step of division HAS to be one of these (as 7 or greater can’t be a remainder while dividing with 7!), and therefore the answer will start at some point inside this quotient chain. Since these are all the possible numbers less than 7, this means that any number when divided by 7 WILL produce the remainders chain of 1,3,2,6,4,5 and thus produce the quotient chain of 142857. Hence this mystery has been explained.</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2008/04/22/the-mystery-of-the-number-7/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google Product Prodigy Contest - The Saga</title>
		<link>http://neothebrute.awardspace.com/blog/2008/04/09/30/</link>
		<comments>http://neothebrute.awardspace.com/blog/2008/04/09/30/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 14:21:08 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Humor]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2008/04/09/30/</guid>
		<description><![CDATA[Lots of folks have been asking me to put up a post regarding my &#8220;Google Experience&#8221;, lol. After several days of staring at the empty notepad screen (writers&#8217; block strikes again!), I finally have managed to sit down, determined to finish this blog post. Okay, so here it is:
Chapter 1: What is our hotshot &#8220;Google [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of folks have been asking me to put up a post regarding my &#8220;Google Experience&#8221;, lol. After several days of staring at the empty notepad screen (writers&#8217; block strikes again!), I finally have managed to sit down, determined to finish this blog post. Okay, so here it is:</p>
<p><a href="http://neothebrute.awardspace.com/blog/2008/04/09/chapter-2-googleplex-bangalore-india-wow/">Chapter 1: What is our hotshot &#8220;Google Product Prodigy Project&#8221;</a> (try reading that phrase in quick succession!)<br />
<a href="http://neothebrute.awardspace.com/blog/2008/04/09/chapter-2-googleplex-bangalore-india-wow/">Chapter 2: GooglePlex Bangalore, India - Wow!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2008/04/09/30/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Chapter 2: GooglePlex Bangalore, India - Wow!</title>
		<link>http://neothebrute.awardspace.com/blog/2008/04/09/chapter-2-googleplex-bangalore-india-wow/</link>
		<comments>http://neothebrute.awardspace.com/blog/2008/04/09/chapter-2-googleplex-bangalore-india-wow/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 14:19:30 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Humor]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2008/04/09/chapter-2-googleplex-bangalore-india-wow/</guid>
		<description><![CDATA[&#8220;Finally, our code is working.&#8221;
 - Famous Last Words.
Note: I&#8217;m under a strict Non-Disclosure Agreement signed at the Google Bangalore office, so anything I might say in the following paragraphs may be a figment of my deranged imagination and entirely fictitious bearing no resemblence to any person or event occuring in the real world. Sorry. [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#8220;Finally, our code is working.&#8221;</p></blockquote>
<p> - Famous Last Words.</p>
<p><strong>Note:</strong> I&#8217;m under a strict Non-Disclosure Agreement signed at the Google Bangalore office, so anything I might say in the following paragraphs may be a figment of my deranged imagination and entirely fictitious bearing no resemblence to any person or event occuring in the real world. Sorry. <img src='http://neothebrute.awardspace.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Google India announced its Google Product Prodigy Conclave, 2008 and scheduled it for March 26th, 2008. Google graciously provided us (and the other finalists, along with its new recruits and some representatives from universities across the nation) with Air-tickets to Bangalore, a Cab to drive us around in Bangalore, and an ultimate 5-star hotel to stay in with cool luxury. I&#8217;m seriously glad those guys paid my food bills during the stay in the hotel as my frugal dinner consisting of two rotis and two vegetable items got billed to Rs. 715, and our later proper team-dinner got billed to Rs. 5000+, and I was close to heart-failure when the restaurant manager refused to acknowledge the existence of Google. Thankfully a quick call to the reception desk at the hotel (called Chancery Pavillion, by the way. Nice hotel, give it a try sometime if you&#8217;ve got the money) solved the crisis. The rooms were great, double bedded, and with a refrigerated mini-bar, complimentary chocolates, food and tea/coffee along with an electric kettle. There was a nice bath-tub, and finally I managed to try one out (believe it our not, never been inside one before!). Floating inside a bath-tub is definately on my &#8220;hobbies&#8221; list from now onwards.</p>
<p>We had WiFi Internet connectivity in our room, and we worked all night finishing up the project. I didn&#8217;t sleep at all, which is another story. The breakfast was nice, a buffet actually - pick up whatever you want, and was with best compliments from the hotel. A bus picked us all up at 8.30 am sharp and we landed at GooglePlex Bangalore. However, the surprising bit about the Google Campus is that there is no mention of Google anywhere around the building or the grounds it occupies. It is based on three floors and shares the building with other companies (maybe that&#8217;s &#8216;coz its just recently set up here). But they could provide a simple &#8220;Google Inside&#8221; board somewhere outside the building, so that people wouldn&#8217;t pass by the building a million times looking for the Google India Headquarters. Here is where we signed the famous Non-Disclosure Agreement, so beware of the factual accuracy of the following paragraphs!</p>
<p>At Sparta, their conference hall, we got initiated to the idea of Product Prodigy by a nice guy who gave the stage to another cool guy who talked about the Indian relevance of Google India. That cool guy happens to be the Engineering &#038; Site Director of Google India, and the initiating &#8216;nice guy&#8217; is the Head of Staffing I think. This was followed by a complicated seminar on a problem of cloud computing, that had something to do with &#8220;How to decide who the new master of the cloud would be if the current master was to be shot dead.&#8221; Wierd discussion ensued, and I got to eat a chocolate for being one of the three people to ask certain doubts and for making &#8216;beep&#8217; noises amidst the general shocked silence.</p>
<p>Following this was a neat coffee-break where we could pick up anything from their refrigerators (Sodas, Cold Drinks, Juices, etc etc) or get awesome coffee from the Cafe Coffee Day outlet free of charge. And the fun part is that it wasn&#8217;t free just for us. The Googlers working there get to do that everyday and they can do it at any time of the day, as many times as they want! Free food! That apart, the Googlers had set up an exhibition of sorts of their latest innovations; the Translingua team, the Orkut team, the On-screen keyboard team along with others were there explaining their products, and we were free to eat their brain! How cool is that?!</p>
<p>Then we had our presentation, explained our stuff well. People thronged our kiosk, and people liked our idea, but the critical part of our code- the interface where the latest traffic feed is fed failed to work right that morning, and I was just too tired to think of any way to fix it. And therefore I had to shrug and explain to the judges that the proof that the traffic feed code did infact work was that we had used it to feed information for over 130 roads, which wouldn&#8217;t be possible manually. But I&#8217;m really lame at shrugging, and we lost a lot of points because of that I think. We made our own Google Maps-like draggable map with sections of the map loading as we dragged along, and the search box working like a Google Suggest, that suggested hot locations around the city as one typed the keyword in. I think people liked these nifty things. I for one really loved it, at being able to make stuff like that. I will release the code of my Google Maps-clone soon on this blog. Its not sophisticated, doesn&#8217;t have any API. Its the interface. People haven&#8217;t really shared any code of that kind anywhere I looked, so I think I&#8217;ll do it for the benefit of anyone else interested in making a GMaps-clone.</p>
<p>Then in the evening, we were blindfolded and taken to an unknown destination for the closing ceremony. We were told that we would be taken to Taj, but I thought we were lost in the wilderness. Oh wait, I think I&#8217;d slept off during the bus journey. Anyway, the important thing is that the ballroom was opulent, and we kept getting fed all through with cranberry juice and veg kebabs and other appetizers. There was a panel discussion between big-shot people - the Chief Scientist at IBM India (Mr. C. Mohan), the Head of Google Asia-Pacific (Mr. Deep Nishar), the CEO of Yahoo! India (Mr. Sharad Sharma), the MD of Helion (Mr. Ashish Gupta), an IISc Professor (Mr. Jayan Harista) and a Google Engineer (Mr. Lalitesh Katragadda) on various topics. Hey wait a minute, what was the CEO of Yahoo! doing at a Google Conclave? Anyway, the discussion was interesting, but quite stretched and we were quite hungry at the end of it, and that is what the Food people at the Taj (was it Taj?) were more than happy to satisfy. The Food was good. The food was good throughout this &#8220;Google Experience&#8221;, which led to my stomach refusing to digest the amounts of junk and non-stop trash I was sending in. Spent the following few days recovering from indigesion. Too bad, but the food was worth the trouble. <img src='http://neothebrute.awardspace.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> That&#8217;s all I really care about. And people would be wonderstruck at that declaration of eternal love for food, looking at my relatively skinny frame.</p>
<p>Can&#8217;t write anything more. I&#8217;ve squeezed out most of my brain, and I think that&#8217;s all there is to say about the Google Experience. Loved it. 42.</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2008/04/09/chapter-2-googleplex-bangalore-india-wow/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Chapter 1: What is our hotshot &#8220;Google Product Prodigy Project&#8221;</title>
		<link>http://neothebrute.awardspace.com/blog/2008/04/09/chapter-1-what-is-our-hotshot-google-product-prodigy-project/</link>
		<comments>http://neothebrute.awardspace.com/blog/2008/04/09/chapter-1-what-is-our-hotshot-google-product-prodigy-project/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 14:19:22 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Humor]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2008/04/09/chapter-1-what-is-our-hotshot-google-product-prodigy-project/</guid>
		<description><![CDATA[&#8220;I love deadlines. I particularly love the sound of them whooshing by!&#8221;
- Douglas Adams
I (and my team) was one of the 12 finalists of the first Google India Product Prodigy Contest, which required us to submit a proposal for an awesome new product on an open-ended theme i.e. based on Google&#8217;s motto of making the [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#8220;I love deadlines. I particularly love the sound of them whooshing by!&#8221;</p></blockquote>
<p>- Douglas Adams</p>
<p>I (and my team) was one of the 12 finalists of the first Google India Product Prodigy Contest, which required us to submit a proposal for an awesome new product on an open-ended theme i.e. based on Google&#8217;s motto of making the world&#8217;s information universally accessible and searchable. I think out of them, only 8 teams (including us) managed to actually finish something and display it at the Google Conclave.</p>
<p>A friend of mine (and later my teammate) had convinced me to join up for one IBM&#8217;s &#8220;Great Minds&#8221; competition, and had more or less caught me at a particularly vulnerable point of time when I was dissatisfied with life in general and my not participating in any competitions in particular. So with great zest, we began to waste a lot of time in meetings that finally ended &#8216;coz everyone had slept off. Me being an ardent admirer of Douglas Adams (of The Hitchhiker&#8217;s Guide to the Galaxy fame) follow the quote mentioned at the start of this post to the bone. That quote more or less summarizes how we worked for this Google Project. Everything basically got done a day or two before (often, after) the deadline.</p>
<p>The idea for our project: &#8220;Intelligent traffic routing&#8221;, later &#8220;iTraffic&#8221;, later &#8220;Smart Path-finder&#8221;, was decided after much deliberation, and then the proposal got prepared the night before the submission. Later as it turned out, life being heavy and hectic as it is usually for me, I got little time to actually do any substantial coding for this IBM project, and we ended up with a cartload of design ideas, and an awesome new path-finding algorithm which I believe could be much faster at giving an effective shortest-path than most of (or any) current path-finding algorithms (Side note: thereby suitable for AI in game development). To cut a long story short, we never really did submit our IBM project. Then the &#8220;Google India Conclave&#8221; was announced that changed everything. We submitted some dummy code that I concocted up in a few nights, and then we were told that we were supposed to actually present it in the GooglePlex Bangalore! That got me working finally, and I took a long 10-day break and went home (I stay in a hostel.. I&#8217;m in college remember?) and shut myself from the rest of the world and worked 18 hours a day like a maniac and generated work I&#8217;m really proud of with slick AJAX work and a neat 3-tier architecture etc.</p>
<p>Our project aspired to let the user select two points in on a city map, and provide the &#8220;smartest&#8221; path between those two points based on live traffic conditions. Its like Google Maps with the &#8220;live&#8221; element built in. Its NOT a mash-up as the GMaps API doesn&#8217;t provide sufficient node information required for any customized algorithm. The project basically has my sigmaServer whose sole purpose in life is to deal with traffic details, and using 13 commands it exposes through the HTTP protocol anyone can build traffic-based applications, websites, portals etc using ANY language and on ANY platform. I spent four frenzied days working on one example web portal that would graphically display the paths generated and also allow people to view important locations in the city, write reviews about places in the city, give ratings, read the latest City Buzz etc. The beauty of the sigmaServer technique is that I could have written a simple SMS based program in less than half an hour which would take two locations as an input SMS from the user, query the sigmaServer which would return the path in an XML or JSON format depending on the requirement, and send back a formatted list to the user through another SMS. Or millions of other such applications using just those 13 commands.</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2008/04/09/chapter-1-what-is-our-hotshot-google-product-prodigy-project/feed/</wfw:commentRss>
		</item>
		<item>
		<title>All I wish is &#8220;A Nice Cup of Tea and a Sit Down&#8221;&#8230;</title>
		<link>http://neothebrute.awardspace.com/blog/2007/12/07/all-i-wish-is-a-nice-cup-of-tea-and-a-sit-down/</link>
		<comments>http://neothebrute.awardspace.com/blog/2007/12/07/all-i-wish-is-a-nice-cup-of-tea-and-a-sit-down/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 17:04:11 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[General chatter]]></category>

		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2007/12/07/all-i-wish-is-a-nice-cup-of-tea-and-a-sit-down/</guid>
		<description><![CDATA[Note: This is an old post on an old blog. View the current version of this page on: http://neothebrute.blogspot.com/2007/12/all-i-wish-is-nice-cup-of-tea-and-sit.html
Ahh.. what a wish, I really wish I could do that for a couple of days more, like I&#8217;ve been doing for the past 12 days of my vacation.

I just hit upon this site (nicecupofteaandasitdown.com). I really [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: This is an old post on an old blog. View the current version of this page on: <a href="http://neothebrute.blogspot.com/2007/12/all-i-wish-is-nice-cup-of-tea-and-sit.html">http://neothebrute.blogspot.com/2007/12/all-i-wish-is-nice-cup-of-tea-and-sit.html</a></strong></p>
<p>Ahh.. what a wish, I really wish I could do that for a couple of days more, like I&#8217;ve been doing for the past 12 days of my vacation.<br />
<br/><br />
I just hit upon this site (nicecupofteaandasitdown.com). I really like their mission statement, really can relate <i>spiritually</i> to them:<br />
<br/><br />
<em><strong>Our Mission Statement</strong>:</p>
<p>Well I think we should all sit down and have a nice cup of tea, and some biscuits, nice ones mind you. Oh and some cake would be nice as well. Lovely.</em></p>
<p>What a beautiful concept! This is the reason why the Internet still remains sane today&#8230;</p>
<p>Take a look at the site: <a href="http://www.nicecupofteaandasitdown.com">OPEN SESAME!</a></p>
<p>Shashank</p>
<p>PS: This might make you hungry.</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2007/12/07/all-i-wish-is-a-nice-cup-of-tea-and-a-sit-down/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Basic &#8220;Google Suggest&#8221;-like script</title>
		<link>http://neothebrute.awardspace.com/blog/2007/12/06/basic-google-suggest-like-script/</link>
		<comments>http://neothebrute.awardspace.com/blog/2007/12/06/basic-google-suggest-like-script/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 13:24:48 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2007/12/06/basic-google-suggest-like-script/</guid>
		<description><![CDATA[Note: This is an old post on an old blog. View the current version of this page on: http://neothebrute.blogspot.com/2008/01/basic-google-suggest-like-script.html
Recently while working on the Google Project, I was messing around with AJAX and figuring out how JSON works etc, so I decided to implement the much talked-about &#8220;Google Suggest&#8221; thing myself just to test my JSON [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: This is an old post on an old blog. View the current version of this page on: <a href="http://neothebrute.blogspot.com/2008/01/basic-google-suggest-like-script.html">http://neothebrute.blogspot.com/2008/01/basic-google-suggest-like-script.html</a></strong></p>
<p>Recently while working on the Google Project, I was messing around with AJAX and figuring out how JSON works etc, so I decided to implement the much talked-about &#8220;Google Suggest&#8221; thing myself just to test my JSON and AJAX techniques. Turns out it indeed is really simple in concept and implementation, except that the amount of &#8220;bells &#8216;n whistles&#8221; you can add is endless.</p>
<p><b>&#8220;Google Suggest&#8221; in 5 easy steps:</b><br />
1. Capture the <em>onkeydown</em> events of the text-box where the person is typing<br />
2. Send the text typed to a server-side script (in ASP, PHP, Perl or any language you prefer). This you could do by passing the server script URL with the typed text to inline frames or XMLHttpRequest suiting your taste and requirements.<br />
3. The server side script will search the database table for entries whose text starts with the text presently in the front-end textbox.<br />
4. This list can be converted to a JSON object, or an XML feed or plain inline-frame javascript etc and will be received back by the client<br />
5. The client will display the received list in a floating DIV or container below the textbox and permit the user to select an entry from that list by either arrow keys or mouse clicks.</p>
<p>So in my script, I wrote this Google Suggest-like tool that would read names from a database and display them as we type.</p>
<p>This code is really elementary with loads of features missing, and lots of optimizations possible. I wrote this script in like 2 hours in the dead of night so wasn&#8217;t thinking about lots of goodies and optimizations.</p>
<p>Download the ZIP file: <a href='http://neothebrute.awardspace.com/blog/wp-content/uploads/2007/12/names.zip' title='Auto-suggest names'>Auto-suggest names</a></p>
<p><b>Minimum Requirements: </b>ASP 6.0+ support, Microsoft Access 2000, IE 5.5+, FF 1.5+. </p>
<p>I&#8217;ll list out some things that can be added to this code of mine:</p>
<p> 1. Add mouse handlers to the drop-down menu to enable mouse clicks on suggestions<br />
 2. Improve the elementary keyboard support it gives to include responses to several other keys<br />
 3. Optimize the feedback process to the server by inserting a &#8220;delay&#8221; before sending the typed value to the server-side script. That is, instead of sending the text &#8220;immediately&#8221; on &#8220;every&#8221; key-press, wait after a keypress for a second or two and see if the person stops typing. If the person hasn&#8217;t entered anything for, say, two seconds <b>then</b> send the text over to the server for searching. This will reduce the load on the server as its obviously wiser to wait for the user to atleast tell the client what he/she has to say before jumping off to suggestions. This is done by Google too.</p>
<p>I&#8217;ll add some more suggestions as I think of some more.</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2007/12/06/basic-google-suggest-like-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I love keyboards&#8230; I hate people</title>
		<link>http://neothebrute.awardspace.com/blog/2007/12/06/i-love-keyboards-i-hate-people/</link>
		<comments>http://neothebrute.awardspace.com/blog/2007/12/06/i-love-keyboards-i-hate-people/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 19:19:06 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[General chatter]]></category>

		<category><![CDATA[Humor]]></category>

		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2007/12/06/i-love-keyboards-i-hate-people/</guid>
		<description><![CDATA[Note: This is an old post on an old blog. View the current version of this page on: http://neothebrute.blogspot.com/2007/12/i-love-keyboards-i-hate-people.html
God bless keyboards, especially at times when the mice decide to go on a hunger strike. I&#8217;m sick and tired of wireless mice, and am half inclined to walk right tomorrow and purchase an ordinary optical mouse. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: This is an old post on an old blog. View the current version of this page on: <a href="http://neothebrute.blogspot.com/2007/12/i-love-keyboards-i-hate-people.html">http://neothebrute.blogspot.com/2007/12/i-love-keyboards-i-hate-people.html</a></strong></p>
<p>God bless keyboards, especially at times when the mice decide to go on a hunger strike. I&#8217;m sick and tired of wireless mice, and am half inclined to walk right tomorrow and purchase an ordinary optical mouse. The problem is that its far and I&#8217;m too lazy to do that as such. :-/</p>
<p>Its been exactly just a week since I replaced the old mouse batteries with brand new ones, and bam! they&#8217;re already dead! My mouse has stopped working right in the middle of the night at 12:29 am, when there is no chance that I can go around the house and humbly beg someone to lend me a battery, nor run out of the house and purchase some. And I was just beginning to get cosy with my work.</p>
<p>Damn! Today&#8217;s been a miserable day, loads of work planned, and almost none achieved. Overslept as usual.. had planned to wake up at atleast 10am for a change, woke up at 12:30pm. So then I thought, &#8220;Such is life&#8221;, and started up my system and began designing the new website of my college&#8217;s IEEE chapter (I&#8217;m its Secretary BTW), and Bang! at 1pm the power fails. With no signs of it returning anytime soon, I grumbled at the interruption of my once-in-a-lifetime, finally-sat-down-to-do-it, just-when-I-was-getting-warmed-into-the-subject initiative of my website, and decided to sit down and paint something instead! Yeah, as in real paint and paintbrush etc, which is something I managed to do atleast for a while, before I dropped off to sleep right there holding the paintbrush.</p>
<p>When I woke up a few hours later, I discovered that the power had returned, and therefore sat down to work again (after removing those wierd paint daubs on my clothes from that paintbrush I took to sleep with), when that stupid UPS repair fellow came. Another 2 hours wasted on that. Clock struck 8pm, and I desperately sat down to do <em>some</em> work atleast, when my sis called up and asked me to help her fix her system via phone and Yahoo chat. Grrr.. it was 9.30 before both of us ran out of patience and went off our own respective ways. Next, dinner and the usual running around the house insanely, before I finally managed to sit peacefully at 11pm (while that UPS fellow, and my sister, and the rest of humanity slept cosily in their respective homes) and worked for an hour or so, before my MOUSE IN A SUPREME BURST OF IRRITATING GAS&#8230;&#8230;. DIED! Bah!</p>
<p>I&#8217;m going off to sleep like the rest of the the irritating world.<br />
Good night.</p>
<p>Later edit: I didn&#8217;t sleep, sorry.</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2007/12/06/i-love-keyboards-i-hate-people/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Looking back&#8230;</title>
		<link>http://neothebrute.awardspace.com/blog/2007/12/04/looking-back/</link>
		<comments>http://neothebrute.awardspace.com/blog/2007/12/04/looking-back/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 11:38:23 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Fests]]></category>

		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2007/12/04/looking-back/</guid>
		<description><![CDATA[Note: This is an old post on an old blog. View the current version of this page on: http://neothebrute.blogspot.com/2007/12/looking-back.html
DynamiX Clan (Dec 2006)
There was one time when I was at school you know.. and I met two interesting guys called Roshan Shariff &#038; Rahul Seth (in different ways.. Roshan because of an Intel project we did [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: This is an old post on an old blog. View the current version of this page on: <a href="http://neothebrute.blogspot.com/2007/12/looking-back.html">http://neothebrute.blogspot.com/2007/12/looking-back.html</a></strong></p>
<p><a href='http://neothebrute.awardspace.com/blog/2007/12/04/looking-back/dynamix-clan-december-2006/' rel='attachment wp-att-19' title='DynamiX Clan (December 2006)'><img src='http://neothebrute.awardspace.com/blog/wp-content/uploads/2007/12/dx.thumbnail.JPG' alt='DynamiX Clan (December 2006)' /></a><b>DynamiX Clan (Dec 2006)</b><br/></p>
<p>There was one time when I was at school you know.. and I met two interesting guys called Roshan Shariff &#038; Rahul Seth (in different ways.. Roshan because of an Intel project we did together, and Rahul &#8216;coz of one SchoolNet Website competition.. then me and Rahul jointly started and ran an online media portal called Big-Anda.com for a while). And before long we all met up and one thing led to the other and we setup up a Computer &#038; IT Club/Klan called &#8220;DynamiX&#8221;! We were basically fed up with the lack of anything being done at school for identifying and encouraging talented students in the field of computers. The teachers had this attitude that our school wasn&#8217;t any good in computers, and that we didn&#8217;t have students here good at computers. We thought differently. My reasoning was that it physically wasn&#8217;t possible for them to know each and every student in the school and also know whether they&#8217;re any good at computers, or any particular field. So we decided to go deep among the students, of almost all classes and spot people with talent, and people with an aptitude for computers and a desire to grow and do things differently!</p>
<p>We had immense support from our Principal, Mrs. Meera Balachandran, and basically were permitted to do whatever it takes to get it running. We started off with Mr. Umakant Pandey as our chief mentor, who was the faculty in-charge of the Intel Lab, soon re-christened &#8220;The DynamiX Labs&#8221;. The rest was quite a rush, recruiting students, getting them to work, getting ourselves to work, competiting at the tech fests of many other schools (and winning several of them! <img src='http://neothebrute.awardspace.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ) and holding our own events &#038; fests.</p>
<p>My point is that even though our fests never really played up to our expectations and planning, personally I have grown a lot as an organizer, manager as well as team-player, and the experience I gained due to DynamiX has been invaluable in my college life, &#8216;coz when we read about managing events, managing people, working in teams, division of labor.. for most of the folks here its just theory, whereas I can actually relate to it from my personal experiences and be better at organizing and working in teams.</p>
<p>Anyway, this post was just a bit of remiscence of my time at school and my &#8220;DynamiX Days&#8221;, and was sparked by the recently concluded (and very successful) &#8220;DynamiX 2007&#8243;, one that was almost entirely organized by the young talents (that the school believed didn&#8217;t exist before DynamiX started) with help from Rahul &#038; Anshu. Kudos to the new DynamiX team! Don&#8217;t let DX  die.</p>
<p>Shashank</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2007/12/04/looking-back/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Don&#8217;t panic!</title>
		<link>http://neothebrute.awardspace.com/blog/2007/12/04/dont-panic/</link>
		<comments>http://neothebrute.awardspace.com/blog/2007/12/04/dont-panic/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 20:47:29 +0000</pubDate>
		<dc:creator>Shashank</dc:creator>
		
		<category><![CDATA[General chatter]]></category>

		<guid isPermaLink="false">http://neothebrute.awardspace.com/blog/2007/12/04/dont-panic/</guid>
		<description><![CDATA[Well, this blog is new, and often I&#8217;m tinkering around &#8220;under the hood&#8221;, i.e. messing around with the blog code, so if you see a red &#8220;Under maintainance&#8221; sign, and wierd stuff happening to your window, and Vogons announcing the demolition of this miserable little planet, please don&#8217;t panic: This means that I&#8217;m alive and [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this blog is new, and often I&#8217;m tinkering around &#8220;under the hood&#8221;, i.e. messing around with the blog code, so if you see a red &#8220;Under maintainance&#8221; sign, and wierd stuff happening to your window, and Vogons announcing the demolition of this miserable little planet, please don&#8217;t panic: This means that I&#8217;m alive and healthy and am adding some changes to the code and the wierd Jumanji-antics will stop in a few minutes. Browse through the blog if you manage to, the problems will be fixed in a few mins.</p>
<p>Just felt that I should announce this.</p>
<p>Shashank</p>
]]></content:encoded>
			<wfw:commentRss>http://neothebrute.awardspace.com/blog/2007/12/04/dont-panic/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
