<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Diovo</title>
	
	<link>http://www.diovo.com</link>
	<description />
	<lastBuildDate>Fri, 25 Dec 2009 15:41:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Diovo" /><feedburner:emailServiceId>Diovo</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Elegant logic puzzles</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/bJy0ksMCLcY/</link>
		<comments>http://www.diovo.com/2009/12/elegant-logic-puzzles/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 15:41:18 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Puzzles]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=1284</guid>
		<description><![CDATA[Nick Yee on elegant logic puzzles:
&#8230;an elegant logic puzzle is one that can be told to anyone age 10 and up and doesn&#8217;t rely on gimmicks, but always seems impossible to anyone when first told. In other words, the problem is tough but the solution is satisfactorily simple once explained. The solution doesn&#8217;t involve a [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F12%2Felegant-logic-puzzles%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F12%2Felegant-logic-puzzles%2F" height="61" width="51" /></a></div><p>Nick Yee on elegant logic puzzles:</p>
<blockquote><p>&#8230;an elegant logic puzzle is one that can be told to anyone age 10 and up and doesn&#8217;t rely on gimmicks, but always seems impossible to anyone when first told. In other words, the problem is tough but the solution is satisfactorily simple once explained. The solution doesn&#8217;t involve a person or tool that wasn&#8217;t explicitly stated in the problem itself&#8230;</p></blockquote>
<p>Then he goes on and asks you two elegant logic puzzles. For a curious mind, both of them are extremely rewarding to muse over and the solutions are clean and elegant too. <a href="http://www.nickyee.com/index-puzzles.html">Go solve them</a> if you haven&#8217;t already.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=bJy0ksMCLcY:2ggZPhsq08s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=bJy0ksMCLcY:2ggZPhsq08s:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=bJy0ksMCLcY:2ggZPhsq08s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=bJy0ksMCLcY:2ggZPhsq08s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=bJy0ksMCLcY:2ggZPhsq08s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=bJy0ksMCLcY:2ggZPhsq08s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=bJy0ksMCLcY:2ggZPhsq08s:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=bJy0ksMCLcY:2ggZPhsq08s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=bJy0ksMCLcY:2ggZPhsq08s:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/bJy0ksMCLcY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/12/elegant-logic-puzzles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/12/elegant-logic-puzzles/</feedburner:origLink></item>
		<item>
		<title>Get cached images from your visitors</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/KYtYMeumU-Y/</link>
		<comments>http://www.diovo.com/2009/12/getting-cached-images-in-your-website-from-the-visitors/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 07:44:17 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[HTML Canvas]]></category>
		<category><![CDATA[Images]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=1208</guid>
		<description><![CDATA[Jeff Atwood (Coding Horror fame) was in for a horror when he realized that his server crashed and his data was gone and due to some reason, the backup mechanism was not working. The complete data in Coding Horror and the StackOverflow blog disappeared.
Since his blog is very popular, many archiving systems including the Google cache have [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F12%2Fgetting-cached-images-in-your-website-from-the-visitors%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F12%2Fgetting-cached-images-in-your-website-from-the-visitors%2F" height="61" width="51" /></a></div><p>Jeff Atwood (<a href="http://www.codinghorror.com/">Coding Horror</a> fame) was in for a horror when he realized that his server crashed and his data was gone and due to some reason, the backup mechanism was not working. The complete data in Coding Horror and the <a href="http://blog.StackOverflow.com/">StackOverflow blog</a> disappeared.</p>
<p>Since his blog is very popular, many archiving systems including the Google cache have copies of the pages and I hope that they have by now recovered the complete textual data. The biggest problem in this case is getting back the images. There are not many archiving services that may have the complete backup of the images in the website.</p>
<p>So what should Jeff do now?</p>
<p>Since Coding horror is a high traffic blog, I think there is a way to get back at least some of the images. (The probability of this working depends a lot on the traffic to the website and a bit of luck)</p>
<p><strong>Here are the steps:</strong></p>
<p>1. Configure the web server to return 304 for every image request. The HTTP status code 304 means that the file is not modified and this means that the browser will fetch the file from its cache if it is present there. (credit: this <a href="http://superuser.com/questions/82036/recovering-a-lost-website-with-no-backup/82060#82060">SuperUser</a> answer)</p>
<p>2. In every page in the website, add a small script to capture the image data and send it to the server.</p>
<p>3. Save the image data in the server.</p>
<p>4. Convert the pixel data to get the original images.Voila!</p>
<p><strong>Capturing the image data</strong></p>
<p>We are going to use the Canvas functionality in HTML 5 to get back the image data.</p>
<p><a href="http://www.diovo.com/wp-content/uploads/2009/12/saveimages.js"><strong>Here is the code</strong></a> you should insert into the pages of the website. It gets all the images in the current page, loads it to the HTML Canvas, gets the pixel data for the image and sends it to the server through an Ajax post.</p>
<p><a href="http://www.diovo.com/wp-content/uploads/2009/12/index.php.txt"><strong>This PHP script</strong></a> (Can PHP rescue Jeff? <img src='http://www.diovo.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  To be fair, the server side code is trivial) saves the data to files in the server. Note that the files themselves will not be images, they will just contain the pixel data of the images. In addition to this, we are also saving the original file name and the image dimensions. This means that we can easily reconstruct the original images from this data. Data from every visitor is saved in a different file to just to make sure that you have enough redundancy (Watch out for his redundancy filling up your server disks)</p>
<p>Remember that this is a proof of concept code. You will have to modify it to use it in regular production environments and to get some real use from it. There are many limitations to this code. It goes without saying that you will get the image data back from the users only if they have the images cached in their browsers. This script will work only in the latest versions of Chrome, Firefox, Safari, Opera etc. (Don&#8217;t ever expect it to work in IE for the next decade). In addition to this, remember that the pixel data will be many times bigger than the original file size and you may have to carefully analyze the disk space usage of this script. (I guess in an emergency, none of these really matters).</p>
<p>You should edit the post URL in the script to match your domain name.</p>
<p>Finally, I have tested the code and it seems to be working (for me, at least). You need to include JQuery in the pages using this script and remember that due to security restrictions in the browsers, you will have to place all these files under the same domain name. Please tell me if there are any other flaws in the code.</p>
<p><span style="color: #888888;">[Updated: code changes to reduce the file size by 50%. The decimal numbers were converted to hex and the spaces in between the numbers removed. The file sizes can be further reduced by using the full character set.]</span></p>
<p>PS: I have some serious trouble with my eyes. (Astigmatism it seems). I am advised to stay away from computers for a couple of weeks, but could not resist writing this. Don&#8217;t expect new posts from me any time soon. I <em>will </em>check my email once in a while. Thanks for reading.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=KYtYMeumU-Y:GBc4g5I_u0c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=KYtYMeumU-Y:GBc4g5I_u0c:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=KYtYMeumU-Y:GBc4g5I_u0c:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=KYtYMeumU-Y:GBc4g5I_u0c:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=KYtYMeumU-Y:GBc4g5I_u0c:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=KYtYMeumU-Y:GBc4g5I_u0c:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=KYtYMeumU-Y:GBc4g5I_u0c:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=KYtYMeumU-Y:GBc4g5I_u0c:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=KYtYMeumU-Y:GBc4g5I_u0c:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/KYtYMeumU-Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/12/getting-cached-images-in-your-website-from-the-visitors/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/12/getting-cached-images-in-your-website-from-the-visitors/</feedburner:origLink></item>
		<item>
		<title>The General Pirate License</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/Ys_gBj1Bel0/</link>
		<comments>http://www.diovo.com/2009/11/the-general-pirate-license/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 09:18:20 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[Idea]]></category>
		<category><![CDATA[License]]></category>
		<category><![CDATA[Piracy]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=1082</guid>
		<description><![CDATA[I have come across many situations where I wanted to share an idea but never wanted the idea to be attributed to me, mainly because the original idea never came from me and also because I did not know who the original idea came from.
There are some other instances where I want to share some source code [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Fthe-general-pirate-license%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Fthe-general-pirate-license%2F" height="61" width="51" /></a></div><p>I have come across many situations where I wanted to share an idea but never wanted the idea to be attributed to <em>me</em>, mainly because the original idea never came from me and also because I did not know who the original idea came from.</p>
<p>There are some other instances where I want to share some source code which is <em>almost </em>working, but may contain bugs and untested edge conditions that can produce undocumented results (if at all there is any documentation). I want people to use the source code for solving their problems, but in most of the cases they may have to modify the code to fit their particular problem. I don&#8217;t want to take the blame if anything goes wrong, and I don&#8217;t ever want to support the source code, other than in the cases where I really want to.</p>
<p>I hereby propose a new license to help you in cases like these to promote sharing of your content in the best possible way &#8211; by allowing others to pirate it. This license should be used if you want your ideas or work to be shared and modified freely, but you don&#8217;t want to maintain or support the original ideas unless you really wish to do so.</p>
<p>(Edited to remove unwanted clauses. Thanks <a href="http://www.diovo.com/2009/11/the-general-pirate-license/#comment-2020">Scott</a>)</p>
<blockquote><p><strong>The General Pirate license (GPiL)</strong></p>
<p>1. This work may be copied as many times as you wish, modified in any way you want and published in any medium you like, provided you adhere to all the seven rules in this license.</p>
<p>2. You will <em>not</em> attribute the modified version of the work/product to the original author.</p>
<p><del datetime="2009-11-16T06:32:30+00:00">3. Once you modify the work, you should clearly mention the work as yours and you will be responsible for supporting and maintaining the work (if required).</del></p>
<p><del datetime="2009-11-16T06:32:30+00:00">4. You will not disclose the identity of the original author (i.e. your source) without the written permission from that person.</del></p>
<p>5. You will publish your modified version of this work under this same license (i.e. the General Pirate License).</p>
<p>6. All uses of this work will be at your own risk. The original author is liable to give you support for this work unless (a) You modified any part of this work/product (b) They do not wish to do so.</p>
<p><del datetime="2009-11-16T06:33:18+00:00">7. The source where you obtained this work from may or may not be the <em>real </em>original author of this work, but that is not the point here. The real point is the work itself, not the author.</del></p></blockquote>
<p>There is a reason why all works under GPiL (General Pirate License) should continue to be under GPiL (clause 5). Any project under GPiL is supposed to be free to be modified and copied at will. According to the above rules, it is perfectly legal even to sell any intellectual property guarded by the GPiL. In essence GPiL allows you to do whatever you want with the IP &#8211; copy, modify, share, sell etc. The only restrictions that apply are the seven rules of GPiL. Clause 5 ensures that even if somebody is making profit from an IP, they have to share their version under GPiL. This is how the basic spirit of GPiL is carried forward.</p>
<p>That&#8217;s all. Let me know if any amendments can be made to this license to make it more <em>piratical</em>.</p>
<p>Now spread the word mate, and get sailin&#8217;. Arrrr!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=Ys_gBj1Bel0:150e24PjTLE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Ys_gBj1Bel0:150e24PjTLE:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Ys_gBj1Bel0:150e24PjTLE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Ys_gBj1Bel0:150e24PjTLE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=Ys_gBj1Bel0:150e24PjTLE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Ys_gBj1Bel0:150e24PjTLE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Ys_gBj1Bel0:150e24PjTLE:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Ys_gBj1Bel0:150e24PjTLE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=Ys_gBj1Bel0:150e24PjTLE:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/Ys_gBj1Bel0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/11/the-general-pirate-license/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/11/the-general-pirate-license/</feedburner:origLink></item>
		<item>
		<title>Geocities won’t be missed</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/Whys26-7jDE/</link>
		<comments>http://www.diovo.com/2009/11/geocities-wont-be-missed/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 19:33:53 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=1057</guid>
		<description><![CDATA[Yahoo!&#8217;s shutting down of geocities made news for the past couple of months. Even thought the sweet memories of starting our very first pages in geocities will be lurking around for a long time, I think we are not going to miss geocities much. Yahoo! may have their own reasons# to close geocities, but I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Fgeocities-wont-be-missed%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Fgeocities-wont-be-missed%2F" height="61" width="51" /></a></div><p>Yahoo!&#8217;s shutting down of geocities made news for the past couple of months. Even thought the sweet memories of starting our very first pages in geocities will be lurking around for a long time, I think we are not going to miss geocities much. Yahoo! may have their own reasons<sup>#</sup> to close geocities, but I think all in all it was good that geocities got shut down.</p>
<p>If you think about it, geocities did not matter any more.</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-1060" title="Yahoo!_Geocities" src="http://www.diovo.com/wp-content/uploads/2009/11/Yahoo_Geocities.png" alt="Yahoo!_Geocities" width="259" height="33" /></p>
<p style="text-align: left; "><span style="background-color: #ffffff;">The traffic to geocities was declining very rapidly in the last few years. Very rarely did the old geocities pages get featured in the search engine results. I don&#8217;t remember getting a geocities page as a result for any of my google searches (May be my queries are too much specialized and are biased).</span></p>
<p style="text-align: left; ">I would argue that geocites did not have much quality content. Most of the pages in geocities were personal pages which were &#8220;under construction&#8221; for eternity. Newer users never signed up for geocities. Social networking was in and creating personal pages was out and users flocked to Facebook and the like. If anyone wanted to create pages so badly, they usually started a blog in Blogger or WordPress. After Yahoo!&#8217;s announcement of a probable closure of geocities, much of the quality data was moved by the users to other sites. All this meant that the pages in geocities no longer mattered. It was just the junk of the internet that ought to be cleaned out.</p>
<p style="text-align: left; ">The biggest impact the closure of geocities will have on the web is on the search engine results. Even though the pages from geocities were not prominently featured in the search results, they always polluted the long tail results. (38 million pages do carry a very long tail with it). Most biggies in the search engine business have removed geocities from their index. There is another big aftereffect to this. The search engine rankings of other websites will be affected. You see, this 38 million web pages of geocities had lots and lots of outbound links. Remember that these links are old  and do carry significant weight. If these links are removed from the PageRank calculations, the search results will not be the same. I hope that the search results will improve at least a  little bit.</p>
<p style="text-align: left; ">By the way if you were sleeping for the past few months and missed the party, and if you really want to get some of your pages back from geocities, you can try to get the data back from the <a href="http://reocities.com/">Reocities</a> project or from the <a href="http://www.archive.org/">Internet Archive</a>.</p>
<p><span style="color: #808080;"><sup>#</sup>Every reason is economic. Isn&#8217;t it?</span></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=Whys26-7jDE:DuaHw40tCqY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Whys26-7jDE:DuaHw40tCqY:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Whys26-7jDE:DuaHw40tCqY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Whys26-7jDE:DuaHw40tCqY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=Whys26-7jDE:DuaHw40tCqY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Whys26-7jDE:DuaHw40tCqY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Whys26-7jDE:DuaHw40tCqY:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=Whys26-7jDE:DuaHw40tCqY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=Whys26-7jDE:DuaHw40tCqY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/Whys26-7jDE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/11/geocities-wont-be-missed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/11/geocities-wont-be-missed/</feedburner:origLink></item>
		<item>
		<title>Why do we Startup?</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/d4psW6Pn4UM/</link>
		<comments>http://www.diovo.com/2009/11/why-do-we-startup/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 13:05:08 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[Startup]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Motivation]]></category>
		<category><![CDATA[Startups]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=1034</guid>
		<description><![CDATA[Did you know that 9 out of 10 startups fail?  We are talking about the serious startups. In the not-so-serious type, almost all of them fail. So still why do I want to start a startup?
In the grand scheme of things, it does not matter whether I succeed or not. What matters is that 1 out [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Fwhy-do-we-startup%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Fwhy-do-we-startup%2F" height="61" width="51" /></a></div><p>Did you know that 9 out of 10 startups fail?  We are talking about the serious startups. In the <em>not-so-serious</em> type, almost all of them fail. So still why do I want to start a startup?</p>
<p>In the grand scheme of things, it does not matter whether I succeed or not. What matters is that 1 out of 10 startups do succeed. Here we mean success in the <em>changing-life-of-others-for-good</em> sense, not in the absolute economic sense. When you stand for a vision as ambitious as changing the life of others, you want to maximize the chances of humanity getting better and changing for good.</p>
<p>We cannot improve the ratio of startups succeeding. It will always be 1:10. So how do we increase the number of successful startups? By increasing the number of startups.</p>
<p>After a few years we will not be here in this world, but the changes we bring and the ideas we spread will remain. We have the responsibility to become the enablers of a newer and better world. I believe startups are perfect pathways to a better future.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=d4psW6Pn4UM:2hUuAEiJE6I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=d4psW6Pn4UM:2hUuAEiJE6I:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=d4psW6Pn4UM:2hUuAEiJE6I:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=d4psW6Pn4UM:2hUuAEiJE6I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=d4psW6Pn4UM:2hUuAEiJE6I:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=d4psW6Pn4UM:2hUuAEiJE6I:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=d4psW6Pn4UM:2hUuAEiJE6I:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=d4psW6Pn4UM:2hUuAEiJE6I:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=d4psW6Pn4UM:2hUuAEiJE6I:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/d4psW6Pn4UM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/11/why-do-we-startup/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/11/why-do-we-startup/</feedburner:origLink></item>
		<item>
		<title>Recursion &amp; bad examples</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/jibN6JCxwSU/</link>
		<comments>http://www.diovo.com/2009/11/recursion-bad-examples/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 07:28:36 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[India]]></category>
		<category><![CDATA[Kerala]]></category>
		<category><![CDATA[Recursion]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=978</guid>
		<description><![CDATA[If you ask a typical computer science graduate from Kerala to write a program to print the nth Fibonacci number, most of them* will invariably give you the following function:

int fibonacci (int n){
    if(n&#60;2){
        return n;
    }else{
      [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Frecursion-bad-examples%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Frecursion-bad-examples%2F" height="61" width="51" /></a></div><p>If you ask a typical computer science graduate from Kerala to write a program to print the n<sup>th</sup> Fibonacci number, most of them* will invariably give you the following function:</p>
<blockquote>
<pre class="c">int fibonacci (int n){
    if(n&lt;2){
        return n;
    }else{
        return fibonacci(n-1) + fibonacci(n-2);
    }
}</pre>
</blockquote>
<p>So far so good, except that the answer is wrong.</p>
<p>Recursion is the worst way to find a Fibonacci number. The last time I checked it was impossible to use recursion to compute even the 50<sup>th</sup> Fibonacci number in a personal computer!</p>
<p>If it is impossible to calculate even the 50<sup>th</sup> Fibonacci number using this function, how could you possibly teach something like this in a computer science course? The only way Fibonacci numbers should be calculated is by linearly adding the numbers in a loop or by using any <a href="http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibFormula.html">direct formula</a> you have. Of course for some applications you can <a href="http://stackoverflow.com/questions/23962/is-there-some-way-to-speed-up-recursion-by-remembering-child-nodes">speed up recursion by remembering the child nodes</a> in the tree and thereby avoiding doing the same calculations again in some other branch.</p>
<p>The scariest part is yet to come. In many colleges they use finding the n<sup>th</sup> Fibonacci number as the <em>primary example</em> for teaching recursion!</p>
<p>Why not teach students the best possible way to find the n<sup>th</sup> Fibonacci number? Why not teach a real world example for recursion? Is it necessary to teach the concepts in computer science using lousy examples?</p>
<p>*<span style="color: #808080;">Take blanket statements with a grain of salt.</span></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=jibN6JCxwSU:R9_B6aCpWi8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=jibN6JCxwSU:R9_B6aCpWi8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=jibN6JCxwSU:R9_B6aCpWi8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=jibN6JCxwSU:R9_B6aCpWi8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=jibN6JCxwSU:R9_B6aCpWi8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=jibN6JCxwSU:R9_B6aCpWi8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=jibN6JCxwSU:R9_B6aCpWi8:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=jibN6JCxwSU:R9_B6aCpWi8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=jibN6JCxwSU:R9_B6aCpWi8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/jibN6JCxwSU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/11/recursion-bad-examples/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/11/recursion-bad-examples/</feedburner:origLink></item>
		<item>
		<title>Fine-tuning the StackOverflow theme</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/xfzkZkbW32Q/</link>
		<comments>http://www.diovo.com/2009/11/fine-tuning-the-stackoverflow-theme/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 09:40:51 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[StackOverflow]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=963</guid>
		<description><![CDATA[Being a regular user of StackOverflow, I was constantly being haunted by some of the small design issues in the website. Look at the screenshot below (click to enlarge):

I have this problem that I get really confused when visiting websites with a lot of stuff. Even though I have been to StackOverflow a zillion times, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Ffine-tuning-the-stackoverflow-theme%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F11%2Ffine-tuning-the-stackoverflow-theme%2F" height="61" width="51" /></a></div><p>Being a regular user of <a href="http://stackoverflow.com/">StackOverflow</a>, I was constantly being haunted by some of the small design issues in the website. Look at the screenshot below (click to enlarge):</p>
<p style="text-align: center;"><a href="http://www.diovo.com/wp-content/uploads/2009/11/stackoverflow-old.png"><img class="size-medium wp-image-965    aligncenter" title="stackoverflow-old" src="http://www.diovo.com/wp-content/uploads/2009/11/stackoverflow-old-300x178.png" alt="stackoverflow-old" width="300" height="178" /></a></p>
<p>I have this problem that I get really confused when visiting websites with a lot of stuff. Even though I have been to StackOverflow a zillion times, I still get distracted by the colors used in the website. (Of course these things are really subjective). I downloaded the style sheet and edited it. Here is how the site looks now (for me):</p>
<p style="text-align: center;"><a href="http://www.diovo.com/wp-content/uploads/2009/11/stackoverflow-new.png"><img class="size-medium wp-image-964  aligncenter" title="stackoverflow-new" src="http://www.diovo.com/wp-content/uploads/2009/11/stackoverflow-new-300x189.png" alt="stackoverflow-new" width="300" height="189" /></a></p>
<p>Here are some of the changes:</p>
<ul>
<li><span style="background-color: #ffffff;">Removed the background colors for the <span style="background-color: #ffffff;">statistics (view count, points etc)</span></span></li>
<li><span style="background-color: #ffffff;">Reduced the font size of the stats thereby making them less noticeable.</span></li>
<li><span style="background-color: #ffffff;">Round cornered some tabs, tags etc.</span></li>
<li><span style="background-color: #ffffff;">Removed the points displayed near the users name. This is not very useful and removing it cleaned up lot of clutter.</span></li>
</ul>
<p><span style="background-color: #ffffff;">I am thinking of making some more modifications including stacking up the stats one over the other and making the tags for each question less intrusive. We can do away with a lot of stats in the page since most of the users are not very much interested in those minute details.</span></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=xfzkZkbW32Q:OMfhn_vtE6U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=xfzkZkbW32Q:OMfhn_vtE6U:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=xfzkZkbW32Q:OMfhn_vtE6U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=xfzkZkbW32Q:OMfhn_vtE6U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=xfzkZkbW32Q:OMfhn_vtE6U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=xfzkZkbW32Q:OMfhn_vtE6U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=xfzkZkbW32Q:OMfhn_vtE6U:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=xfzkZkbW32Q:OMfhn_vtE6U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=xfzkZkbW32Q:OMfhn_vtE6U:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/xfzkZkbW32Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/11/fine-tuning-the-stackoverflow-theme/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/11/fine-tuning-the-stackoverflow-theme/</feedburner:origLink></item>
		<item>
		<title>Using sessions in WordPress</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/mlB9dKwGh1A/</link>
		<comments>http://www.diovo.com/2009/10/using-sessions-in-wordpress/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 16:27:52 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=950</guid>
		<description><![CDATA[WordPress does not use sessions to hold data. It is a stateless application. This means that if you want to use sessions in your plugins or custom modifications of WordPress, you may need to do a little hack to enable sessions.
Edit your wp-config.php file (located at the root of your blog) and add the following line at [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F10%2Fusing-sessions-in-wordpress%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F10%2Fusing-sessions-in-wordpress%2F" height="61" width="51" /></a></div><p>WordPress does not use sessions to hold data. It is a stateless application. This means that if you want to use sessions in your plugins or custom modifications of WordPress, you may need to do a little hack to enable sessions.</p>
<p>Edit your <em>wp-config.php</em> file (located at the root of your blog) and add the following line at the beginning of the file:</p>
<blockquote><p>session_start();</p></blockquote>
<p>Now you can use sessions in WordPress. Remember that for most plugins, instead of using sessions to store data you can pass variables in URLs and hidden fields or use cookies, and that is what WordPress encourages.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=mlB9dKwGh1A:saJsR-CPLf4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=mlB9dKwGh1A:saJsR-CPLf4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=mlB9dKwGh1A:saJsR-CPLf4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=mlB9dKwGh1A:saJsR-CPLf4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=mlB9dKwGh1A:saJsR-CPLf4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=mlB9dKwGh1A:saJsR-CPLf4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=mlB9dKwGh1A:saJsR-CPLf4:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=mlB9dKwGh1A:saJsR-CPLf4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=mlB9dKwGh1A:saJsR-CPLf4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/mlB9dKwGh1A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/10/using-sessions-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/10/using-sessions-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>How to defend against Yahoo! Slurp</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/-jt7__qF8XA/</link>
		<comments>http://www.diovo.com/2009/10/how-to-defend-against-yahoo-slurp/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 18:12:08 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Crawler]]></category>
		<category><![CDATA[robots.txt]]></category>
		<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[Slurp]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=901</guid>
		<description><![CDATA[I was going through the logs of my web server for the last month and was shocked to see that a whopping 22.93% of the total bandwidth of a particular website of mine was used by the Yahoo crawler called Slurp (I should have known better, given the revealing name).
This is just ridiculous particularly when taking into account [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F10%2Fhow-to-defend-against-yahoo-slurp%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F10%2Fhow-to-defend-against-yahoo-slurp%2F" height="61" width="51" /></a></div><p>I was going through the logs of my web server for the last month and was shocked to see that a whopping 22.93% of the total bandwidth of a particular website of mine was used by the Yahoo crawler called <a href="http://help.yahoo.com/l/uk/yahoo/search/webcrawler/">Slurp</a> (I should have known better, given the revealing name).</p>
<p>This is just ridiculous particularly when taking into account the fact that Yahoo sends negligible number of visitors to the website.</p>
<p><a href="http://marketshare.hitslink.com/search-engine-market-share.aspx?qprid=5">Search Engine market share</a> for Yahoo is coming down anyway - it is at 6.84% currently. For most of my sites Yahoo never send more than 4% of the total traffic. This means that I have to pull the plug on Yahoo! Slurp&#8217;s free run for the time being.</p>
<p><strong>So how do I stop the Yahoo! crawler?</strong></p>
<p>Create a file named <em>robots.txt</em> in the root folder of the website with the following lines of text in it:</p>
<blockquote><p>User-Agent: Slurp</p>
<p>Disallow: /</p>
<p>User-Agent: *</p>
<p>Disallow:</p></blockquote>
<p>If you don&#8217;t want to completely block the Yahoo crawler, you can just reduce the amount of requests Slurp sends to your server. To do this use the following lines in your robot.txt file:</p>
<blockquote><p>User-agent: Slurp</p>
<p>Crawl-delay: 1</p></blockquote>
<p>This &#8220;delay value&#8221; increases the time between successive Yahoo! crawler activities, and lowers the access rate of Slurp to your server. In the <a href="http://help.yahoo.com/l/uk/yahoo/search/webcrawler/">official FAQ</a> you can see the details about Yahoo! Slurp and several ways to reduce the number of requests it makes to your site. For me though, supporting the Crawler is not worth the cost.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=-jt7__qF8XA:6c9O7l9kJE4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=-jt7__qF8XA:6c9O7l9kJE4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=-jt7__qF8XA:6c9O7l9kJE4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=-jt7__qF8XA:6c9O7l9kJE4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=-jt7__qF8XA:6c9O7l9kJE4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=-jt7__qF8XA:6c9O7l9kJE4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=-jt7__qF8XA:6c9O7l9kJE4:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=-jt7__qF8XA:6c9O7l9kJE4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=-jt7__qF8XA:6c9O7l9kJE4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/-jt7__qF8XA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/10/how-to-defend-against-yahoo-slurp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/10/how-to-defend-against-yahoo-slurp/</feedburner:origLink></item>
		<item>
		<title>Done with faux columns</title>
		<link>http://feedproxy.google.com/~r/Diovo/~3/vExZ1M7m58M/</link>
		<comments>http://www.diovo.com/2009/08/done-with-faux-columns/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 13:49:14 +0000</pubDate>
		<dc:creator>Niyaz PK</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[faux columns]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.diovo.com/?p=870</guid>
		<description><![CDATA[When you start implementing the layout of a website using CSS and HTML DIVs, you will inevitably come across the following problem:
How do I force two columns to be of the same height?
You want to get something like this:

But whatever you do, you are not able to extend the sidebar till the footer. You end up with something like [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-top: 15px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F08%2Fdone-with-faux-columns%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.diovo.com%2F2009%2F08%2Fdone-with-faux-columns%2F" height="61" width="51" /></a></div><p>When you start implementing the layout of a website using CSS and HTML DIVs, you will inevitably come across the following problem:</p>
<blockquote><p><strong>How do I force two columns to be of the same height?</strong></p></blockquote>
<p>You want to get something like this:</p>
<p style="text-align: center;"><img class="size-full wp-image-878  aligncenter" title="Expected two column behavior" src="http://www.diovo.com/wp-content/uploads/2009/08/two-column-layout.png" alt="Expected two column behavior" width="387" height="320" /></p>
<p>But whatever you do, you are not able to extend the sidebar till the footer. You end up with something like this:</p>
<p style="text-align: center;"><img class="size-full wp-image-879  aligncenter" title="Actual two column behavior" src="http://www.diovo.com/wp-content/uploads/2009/08/two-column-layout-wrong.png" alt="Actual two column behavior" width="387" height="320" /></p>
<p>Many have suggested using some <a href="http://www.ejeliot.com/blog/61">tricky CSS techniques</a> to get around the problem, while in fact none of the techniques work perfectly in all cases. It is tedious to make these methods work in many situations.</p>
<p>Some have suggested techniques such as tiling a background image to give a false impression of long columns. This technique is called <a href="http://www.alistapart.com/articles/fauxcolumns/">faux columns</a>. This hack almost works, but you know &#8211;  it is a dirty hack too.</p>
<p>People always despise using a JavaScript based solution for this problem. I don&#8217;t know why, but let me tell you the truth &#8211; a JavaScript based solution for this problem is not worse than any other solution. In fact if you are using JavaScript, you may save a few hours of frustration of trying to get things working. People will warn you against this by saying &#8220;<em>What will happen if the user turned off JavaScript?</em>&#8220;. Believe me, if the user has turned off JavaScript, most of the web is broken for him anyway. Your sidebar does not matter to him. Don&#8217;t pretend like it does.</p>
<p>Here is how you can get around the problem using JQuery:</p>
<p>Put something like this in your <em>ready </em>event handler:</p>
<blockquote>
<pre><strong>$(".sidebar").height(Math.max($(".content").height(), $(".sidebar").height()));</strong></pre>
</blockquote>
<p>That&#8217;s it. Now start getting things done instead of tinkering with all these small details; and quit trying to use CSS to to solve every crazy problem.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Diovo?a=vExZ1M7m58M:0EANkCvnB9U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=vExZ1M7m58M:0EANkCvnB9U:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=vExZ1M7m58M:0EANkCvnB9U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Diovo?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=vExZ1M7m58M:0EANkCvnB9U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Diovo?i=vExZ1M7m58M:0EANkCvnB9U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=vExZ1M7m58M:0EANkCvnB9U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Diovo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=vExZ1M7m58M:0EANkCvnB9U:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/Diovo?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Diovo?a=vExZ1M7m58M:0EANkCvnB9U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Diovo?i=vExZ1M7m58M:0EANkCvnB9U:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Diovo/~4/vExZ1M7m58M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.diovo.com/2009/08/done-with-faux-columns/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.diovo.com/2009/08/done-with-faux-columns/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.397 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-12-29 20:26:34 -->
