<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Abhinay&#039;s Blog</title>
	<atom:link href="http://abhinay.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://abhinay.wordpress.com</link>
	<description>&#34; This blog has been moved to blog.abhiomkar.in &#34; &#124; Open Source, Programming, Python, Linux, Mac &#38; No-nonsense</description>
	<lastBuildDate>Tue, 16 Aug 2011 03:10:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='abhinay.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/b5c1e91bc8e14e5bbf8635f5ee6bf323?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Abhinay&#039;s Blog</title>
		<link>http://abhinay.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://abhinay.wordpress.com/osd.xml" title="Abhinay&#039;s Blog" />
	<atom:link rel='hub' href='http://abhinay.wordpress.com/?pushpress=hub'/>
		<item>
		<title>I’m Moved There!</title>
		<link>http://abhinay.wordpress.com/2010/07/10/i%e2%80%99m-moved-there/</link>
		<comments>http://abhinay.wordpress.com/2010/07/10/i%e2%80%99m-moved-there/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 11:32:52 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[migrated]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[webfaction]]></category>
		<category><![CDATA[webfactional]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=208</guid>
		<description><![CDATA[Hey, finally I&#8217;ve moved my blog from wordpress.com free service to self-hosted wordpress.org blog. This is being hosted at Webfaction. I&#8217;m pretty much happy with the Webfaction service, we can host multiple websites and we can map multiple domains. Webfaction &#8230; <a href="http://abhinay.wordpress.com/2010/07/10/i%e2%80%99m-moved-there/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=208&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey, finally I&#8217;ve moved my blog from <a title="Abhinay's Blog - WordPress" href="http://abhinay.wordpress.com" target="_blank">wordpress.com</a> free service to <a href="http://blog.abhiomkar.in">self-hosted</a> wordpress.org blog. This is being hosted at <a href="http://webfaction.com" target="_blank">Webfaction</a>. I&#8217;m pretty much happy with the Webfaction service, we can host multiple websites and we can map multiple domains. Webfaction has one-click access to it&#8217;s services, it has smart and easy use user-interface and it&#8217;s pretty fast. Unlimited Websites, Unlimited Email addresses, Unlimited databases, Shell access, Backups and more. <strong>Old-style web hosting is dead!</strong></p>
<p>I bought abhiomkar.in domain about 2 years back at Godaddy. And mapped it to Webfaction servers.</p>
<p>My new sub-domain for my blog: <a href="http://blog.abhiomkar.in">http://blog.abhiomkar.in</a></p>
<p>I will keep my new blog as active as possible. Please subscribe to my blog if you haven&#8217;t via <a title="Subscribe to my feed" rel="alternate" href="http://feeds.feedburner.com/AbhinayCodeBlog"><img style="border:0 none;" src="http://www.feedburner.com/fb/images/pub/feed-icon32x32.png" alt="" width="14" height="14" /></a><a title="Subscribe to my feed" rel="alternate" href="http://feeds.feedburner.com/AbhinayCodeBlog"> Feedburner</a></p>
<p>See you there,<br />
Abhinay Omkar<br />
@abhiomkar</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=208&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2010/07/10/i%e2%80%99m-moved-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>

		<media:content url="http://www.feedburner.com/fb/images/pub/feed-icon32x32.png" medium="image" />
	</item>
		<item>
		<title>Javascript code challenge by Dropbox Team</title>
		<link>http://abhinay.wordpress.com/2010/07/03/javascript-code-challenge-by-dropbox-team/</link>
		<comments>http://abhinay.wordpress.com/2010/07/03/javascript-code-challenge-by-dropbox-team/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 19:42:46 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[setTimeout]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=188</guid>
		<description><![CDATA[I&#8217;ve found the below code challenge in the Dropbox&#8217;s Web Engineer Job post. Thanks to HN. It was not that difficult, here is my solution to the first code challenge (Javascript) with complete explanation. Question: Given the following javascript code: &#8230; <a href="http://abhinay.wordpress.com/2010/07/03/javascript-code-challenge-by-dropbox-team/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=188&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found the below code challenge in the Dropbox&#8217;s Web Engineer Job post. Thanks to HN.<br />
It was not that difficult, here is my solution to the first code challenge (Javascript) with complete explanation.</p>
<p><b>Question:</b><br />
Given the following javascript code:<br />
<code>
<pre>
function countdown (num) {
        for (var i = 0; i &lt;= num; i += 1) {
            setTimeout(function () {
                alert(num - i);
            }, i * 1000);
        }
    }

    countdown(5);
</pre>
<p></code></p>
<p>The desired result is a countdown from 5 to 0 using alert messages. Explain why the code only alerts -1, then fix the code so it works as expected.</p>
<p><b>Answer:</b><br />
Let&#8217;s debug the code:<br />
<b>Debugging:</b><br />
<code>
<pre>
function countdown (num) {
    for (var i = 0; i &lt;= num; i += 1) {
            setTimeout(function () {
                console.log(&quot;\nnum = &quot; + num);
                console.log(&quot;\ni = &quot; + i);
                alert(num - i);

            }, i * 1000);
        }
    }

countdown(5);

<b>Output:</b>
num = 5
i = 6
num = 5
i = 6
num = 5
i = 6
num = 5
i = 6
num = 5
i = 6
</pre>
<p></code><br />
Hence, the code in question always alerts &#8216;-1&#8242;.</p>
<p>My fix for the above problem is:</p>
<p><code>
<pre>
function countdown (num) {
        for (var i = 0; i &lt;= num; i += 1) {
            setTimeout(function () {
                if(i &gt; num){
                    i = 0;
                }else{
                    i += 1;
                }
                alert(num - i);

            }, i * 1000);
        }
    }

countdown(5);</pre>
<p></code></p>
<p><u>Explanation:</u><br />
The alert box gives -1 every time (6 times), because the in-line function which has the alert() statement gets executed only after the loop is completed. By the time the loop is completely executed the value of &#8216;i&#8217; will be 6. The program continues to execute and loop until the i&lt;=num condition is satisfied. The in-line function which has alert() statement gets executed only after the specified time (i*1000) (that is, 0, 1000, 2000, 3000, 4000, 5000 in milliseconds) for six times with 1 sec delay for each alert box. So, The execution of loop gets&#039;ll be executed already before the first trigger of setTimeout().</p>
<p>So, the code is modified to reset the &#039;i&#039; value to 0 when it is &#039;6&#039; and then keep increasing the &#039;i&#039; value before alert() statement.</p>
<p>It was fun! :D</p>
<p>Note:<br />
Note that, most of the browsers have a minimum delay set for setTimeout() call. Such as, 4ms to 10ms of minimum delay is set (depending on the browser) even though the timeout value (second parameter) is mentioned as &#8217;0&#8242; (zero). Check this out for more details &#8211; https://developer.mozilla.org/en/DOM/window.setTimeout</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=188&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2010/07/03/javascript-code-challenge-by-dropbox-team/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>
	</item>
		<item>
		<title>Advice from an Old Programmer</title>
		<link>http://abhinay.wordpress.com/2010/06/19/advice-from-an-old-programmer/</link>
		<comments>http://abhinay.wordpress.com/2010/06/19/advice-from-an-old-programmer/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 21:30:00 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[career]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[advice]]></category>
		<category><![CDATA[inspire]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/2010/05/12/advice-from-an-old-programmer/</guid>
		<description><![CDATA[I was inspired by the write up in the book called  &#8217;Learn Python The Hard Way&#8217;, I didn&#8217;t read the whole book but, this page caught up my attention. It&#8217;s inspiring for programmers, so thought I would share with you &#8230; <a href="http://abhinay.wordpress.com/2010/06/19/advice-from-an-old-programmer/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=169&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:arial;font-size:small;"><span style="font-size:12px;"> </span></span></p>
<p><span style="font-family:arial;font-size:small;">I was inspired by the write up in the book called  &#8217;Learn Python The Hard Way&#8217;, I didn&#8217;t read the whole book but, this page caught up my attention. It&#8217;s inspiring for programmers, so thought I would share with you all. Please drop me a comment if you do like it :)</span></p>
<div>(from the book <a href="http://learnpythonthehardway.org/static/LearnPythonTheHardWay.pdf">&#8216;Learn Python The Hard Way&#8217;</a>, CHAPTER TWENTY, PAGE 43)</div>
<div>by Zed A. Shaw:</div>
<div style="padding-left:30px;">You’ve finished this book and now you have decided to continue on with programming. Maybe it will be a career for you, or maybe you’ll just do it as a hobby. For whatever reason you’ll need some advice to make sure you continue on the right path and get the most enjoyment out of your newly chosen hobby.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">I have been programming for a very long time. So long that it is incredibly boring to me. At the time that I wrote this book I knew about 20 programming languages and could learn new ones in about a day to a week depending on how weird they were. Eventually though this just became boring and couldn’t hold my interest.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">What I discovered after this journey of learning was that the languages didn’t matter, it was what you did with them. Actually, I always knew that, but I’d get distracted by the languages and forget it periodically. Now I never forget it, and neither should you.</div>
<div style="padding-left:30px;">The programming language you learn and use does not matter. Do not get sucked into the religion surrounding programing languages as that will only blind you to their true purpose of being your tool for doing interesting things.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">Programming as an intellectual activity is the only art form that allows you to create interactive art. You can create projects that other people can play with and you can talk to them indirectly. No other art form is quite this interactive. Movies go out to the audience. Paintings don’t move. Code goes both ways.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">Programming as a profession is only moderately interesting. It can be a good job, but if you want to make about the same money and be happier you could actually just go run a fast food joint. You are much better off using code as your secret weapon in another profession.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">People who can code in the world of technology companies are a dime a dozen and get no respect. People who can code in biology, medicine, government, sociology, physics, history, and mathematics are respected and can do amazing things to advance those disciplines.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">Of course, all of this advice is pointless. If you liked learning to write software with this book then you should try to use it to improve your life anyway you can. You should go out and explore this weird wonderful new intellectual pursuit that barely anyone in the last 50 years has been able to explore. Might as well enjoy it while you can.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">Finally, I will say that learning to create software changes you and makes you different. Not better or worse, just different. You may find that people treat you harshly because you can create software, maybe using words like “nerd”. Maybe you’ll find that because you can dissect their logic that they hate arguing with you. You may even find that simply knowing how a computer works makes you annoying and weird to them.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">To this I only have one piece of advice: they can go to hell. The world needs more weird people who know how things work and who love to figure it all out. When they treat you like this, just remember that this is your journey, not theirs. Being different is not a crime, and people who tell you it is are just jealous that you’ve picked up a skill they never in their wildest dreams could acquire.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;">You can code. They cannot. That is pretty damn cool.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=169&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2010/06/19/advice-from-an-old-programmer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>
	</item>
		<item>
		<title>Downloading Youtube Videos using Python (One-liner)</title>
		<link>http://abhinay.wordpress.com/2010/05/12/downloading-youtube-videos-using-python-one-liner/</link>
		<comments>http://abhinay.wordpress.com/2010/05/12/downloading-youtube-videos-using-python-one-liner/#comments</comments>
		<pubDate>Wed, 12 May 2010 15:02:56 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=156</guid>
		<description><![CDATA[If you just want to get or look into the code, here it is - gist: 398604 &#8211; GitHub Explanation: I&#8217;ll walk through the code to explain how it works. We need urllib and urlparse python modules so we import &#8230; <a href="http://abhinay.wordpress.com/2010/05/12/downloading-youtube-videos-using-python-one-liner/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=156&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you just want to get or look into the code, here it is -</p>
<p><a href="http://gist.github.com/398604">gist: 398604 &#8211; GitHub</a></p>
<p><strong>Explanation:</strong></p>
<p>I&#8217;ll walk through the code to explain how it works.</p>
<p>We need urllib and urlparse python modules so we import them -</p>
<p>from urllib import urlopen, unquote; from urlparse import parse_qs, urlparse;</p>
<p>youtube_watchurl is a self explanatory, we store the Youtube Watch URL here -</p>
<pre>youtube_watchurl="http://www.youtube.com/watch?v=NeSuirvA6UE&amp;playnext_from=TL&amp;videos=MS3Hq4oBj08"</pre>
<p>We need the v parameter value from the above Youtube Watch URL (Example: v=<span style="text-decoration:underline;">NeSuirvA6UE</span> )</p>
<p>urlparse(youtube_watchurl).query returns the query part of the above URL i.e., &#8220;v=NeSuirvA6UE&amp;playnext_from=TL&amp;videos=MS3Hq4oBj08&#8243;. We need the value of &#8216;v&#8217; parameter from this query string. parse_qs() function returns parameter name and value in dictionary format. parse_qs(&#8230;)['v'][0] returns the value of &#8216;v&#8217; parameter.</p>
<pre>video_id = parse_qs(urlparse(youtube_watchurl).query)['v'][0];</pre>
<p>The below GET request will retrieve all video response like video title, description, tag, view count, rating etc and most importantly it also includes <strong>token</strong> string.</p>
<p>Just try</p>
<pre>curl "http://www.youtube.com/get_video_info?&amp;video_id=NeSuirvA6UE"</pre>
<p>to see the response from youtube. We need to parse the token string from the above response.<br />
 </p>
<pre>urlopen('http://www.youtube.com/get_video_info?&amp;video_id=' + video_id).read().decode('utf-8')</pre>
<p>Similarly, as we have retrieve &#8216;v&#8217; parameter value we retrieve the &#8216;token&#8217; parameter value using below piece of code.</p>
<p><code>
<pre>parse_qs(unquote(urlopen('http://www.youtube.com/get_video_info?&amp;video_id=' + video_id).read().decode('utf-8')))['token'][0])</pre>
<p></code></p>
<p>example token value:</p>
<pre>vjVQa1PpcFNWkxk6GpwXYrIxVZ-1iDcF_E9emDZ4UKA%3D</pre>
<p>Now we have video id and token string, let&#8217;s put these value into the direct url to download the video. The format of the Direct URL:</p>
<pre>http://www.youtube.com/get_video?video_id=<strong><em>video_id</em></strong>&amp;t=<strong><em>token</em></strong>&amp;fmt=18
</pre>
<p>Example Direct URL:</p>
<pre>http://www.youtube.com/get_video?video_id=NeSuirvA6UE&amp;t=vjVQa1PpcFNWkxk6GpwXYrIxVZ-1iDcF_E9emDZ4UKA%3D&amp;fmt=18</pre>
<p>The above URL redirected me to below URL</p>
<pre>http://v12.lscache4.c.youtube.com/videoplayback?ip=0.0.0.0&amp;sparams=id,expire,ip,ipbits,itag,algorithm,burst,factor,oc:U0dWSFZUVl9FSkNNNl9OTlpB&amp;fexp=903801,903206&amp;algorithm=throttle-factor&amp;itag=18&amp;ipbits=0&amp;burst=40&amp;sver=3&amp;expire=1273698000&amp;key=yt1&amp;signature=5F8E3C3EABC00FE77AB5699811B13957CA95CFFD.14D37482C6E22D91D08770C6630EE3BE3BF9732D&amp;factor=1.25&amp;id=35e4ae8abbc0e941
</pre>
<div>The Direct URL may not work for more time after generating the token.</div>
<p>And that&#8217;s it we use the above direct link to download and write it to a file</p>
<pre>open(video_id+'.mp4', 'wb').write(urlopen("http://www.youtube.com/get_video?video_id=%s&amp;t=%s&amp;fmt=18"%(video_id, parse_qs(unquote(urlopen('http://www.youtube.com/get_video_info?&amp;video_id=' + video_id).read().decode('utf-8')))['token'][0])).read())</pre>
<p>Here is the complete code:</p>
<p><a href="http://gist.github.com/398604">gist: 398604 &#8211; GitHub</a></p>
<p>Inspired from <strong><em>Downloading YouTube Videos with a Perl One-Liner - <span style="font-style:normal;font-weight:normal;">http://www.catonmat.net/blog/downloading-youtube-videos-with-a-perl-one-liner/</span></em></strong></p>
<p><strong><em><span style="font-style:normal;font-weight:normal;">and</span></em></strong></p>
<p><strong><em><span style="font-style:normal;font-weight:normal;">Stackoverflow: http://stackoverflow.com/questions/2678051/cant-download-youtube-video/2679042#2679042   <strong><em><span style="font-style:normal;font-weight:normal;">(Coded in Python 3)</span></em></strong></span></em></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=156&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2010/05/12/downloading-youtube-videos-using-python-one-liner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>
	</item>
		<item>
		<title>Backup any Flickr Photostream with FlickrBird</title>
		<link>http://abhinay.wordpress.com/2010/03/28/backup-any-flickr-photostream-with-my-flickrbird/</link>
		<comments>http://abhinay.wordpress.com/2010/03/28/backup-any-flickr-photostream-with-my-flickrbird/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 08:16:11 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=145</guid>
		<description><![CDATA[I named it FlickrBird! It was a one night hack written in Python. I wrote it to Backup any Flickr Photostream. As of now It doesn&#8217;t require any non-builtin python modules to run this script except flickrapi for python (Get &#8230; <a href="http://abhinay.wordpress.com/2010/03/28/backup-any-flickr-photostream-with-my-flickrbird/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=145&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I named it <strong>FlickrBird</strong>! It was a one night hack written in Python. I wrote it to Backup any Flickr Photostream.</p>
<p>As of now It doesn&#8217;t require any non-builtin python modules to run this script except <code>flickrapi</code> for python (Get it from here &#8211; <a href="http://stuvel.eu/projects/flickrapi">http://stuvel.eu/projects/flickrapi</a>). You just need a Python. You can suspend the download in-between &amp; resume download later. I code it later for EXIF data.</p>
<p>Give a try and let me know your suggestions :)<br />
Code is at <strong>Github</strong> &#8211; <a href="http://github.com/abhiomkar/FlickrBird">http://github.com/abhiomkar/FlickrBird</a></p>
<p>Run <a href="http://github.com/abhiomkar/FlickrBird/raw/master/flickrbird.py"><code>flickrbird.py</code></a></p>
<div id="attachment_149" class="wp-caption alignleft" style="width: 510px"><a href="http://abhinay.files.wordpress.com/2010/03/screen-shot-2010-03-28-at-3-53-57-pm.png"><img class="size-full wp-image-149" title="FlickrBird - Flickr Backup Tool (Python)" src="http://abhinay.files.wordpress.com/2010/03/screen-shot-2010-03-28-at-3-53-57-pm.png?w=520" alt=""   /></a><p class="wp-caption-text">Screenshot running FlickrBird on Mac OS X - Flickr Backup Tool</p></div>
<p><em>How to use on Mac OS X / Linux?</em></p>
<p>Open Terminal and enter below commands</p>
<pre>mkdir MyFlickrBackup
cd MyFlickrBackup
<span style="color:#999999;">#Download FlickrBird Script
</span>wget http://github.com/abhiomkar/FlickrBird/raw/master/flickrbird.py
<span style="color:#999999;">#Give execute permissions to run it
</span>chmod +x flickrbird.py
<span style="color:#999999;">#Yah! run it...
</span>./flickrbird.py</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=145&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2010/03/28/backup-any-flickr-photostream-with-my-flickrbird/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>

		<media:content url="http://abhinay.files.wordpress.com/2010/03/screen-shot-2010-03-28-at-3-53-57-pm.png" medium="image">
			<media:title type="html">FlickrBird - Flickr Backup Tool (Python)</media:title>
		</media:content>
	</item>
		<item>
		<title>MacPorts to Homebrew : New Packaging system for Mac OS X</title>
		<link>http://abhinay.wordpress.com/2010/01/02/macports-to-homebrew-new-packaging-system-for-mac-os-x/</link>
		<comments>http://abhinay.wordpress.com/2010/01/02/macports-to-homebrew-new-packaging-system-for-mac-os-x/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 06:59:41 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=121</guid>
		<description><![CDATA[EDIT: This blog and blog post is moved to blog.abhiomkar.in I just wanted to post a blog on Homebrew because, I started loving it already. Homebrew is the new modern package management system for Mac OS X wich beats MacPorts. &#8230; <a href="http://abhinay.wordpress.com/2010/01/02/macports-to-homebrew-new-packaging-system-for-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=121&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>EDIT:</b> This blog and blog post is moved to <a href="http://blog.abhiomkar.in/2010/01/02/macports-to-homebrew-new-packaging-system-for-mac-os-x/">blog.abhiomkar.in</a> </p>
<p>I just wanted to post a blog on <a href="http://github.com/mxcl/homebrew">Homebrew</a> because, I started loving it already. <strong>Homebrew</strong> is the new modern package management system for Mac OS X wich beats MacPorts. Yah! Homebrew is faster.</p>
<p style="padding-left:30px;"><em>Homebrew is a Packaging system for Mac OS X 10.5 and above; heavy optimisations, no redundant packages and a bonus beer theme.</em></p>
<p>Here how you can install Homebrew on your Mac:</p>
<p>I prefer installing homebrew in /usr/local directory.</p>
<p><code>sudo curl -L http://github.com/mxcl/homebrew/tarball/master | sudo tar xz --strip 1 -C /usr/local<br />
</code></p>
<p>to avoid using sudo when installing packages, change the owner recursively on /usr/local directory</p>
<p><code>sudo chown -R `whoami` /usr/local<br />
</code></p>
<p>That&#8217;s it. Homebrew installed.</p>
<p>Now, Let&#8217;s install <strong>wget</strong> using <strong>homebrew</strong></p>
<p><code>MacBook:~ abhinay$ brew install wget<br />
==&gt; Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2<br />
File already downloaded and cached to /Users/abhinay/Library/Caches/Homebrew<br />
==&gt; ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.12<br />
==&gt; make install<br />
/usr/local/Cellar/wget/1.12: 9 files, 784K, built in 37 seconds<br />
</code></p>
<p>Really easy! isn&#8217;t it?</p>
<p>Have fun!</p>
<p>Note:<br />
If you are facing problem because of MacPorts, try to uninstall it &#8211; <a href="http://guide.macports.org/chunked/installing.macports.uninstalling.html">Uninstall Instructions</a></p>
<p>and Do check out homebrew homepage on github: <a href="http://github.com/mxcl/homebrew">http://github.com/mxcl/homebrew</a></p>
<p>And one more thing, You should have xcode installed on your Mac &#8211; if already don&#8217;t have xcode, you can download from here &#8211; http://developer.apple.com/technology/xcode.html (Or you can install xcode from your second installation CD of Mac OS X)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=121&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2010/01/02/macports-to-homebrew-new-packaging-system-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>
	</item>
		<item>
		<title>2010: Wish You Happy New Year! (52000+ blog views)</title>
		<link>http://abhinay.wordpress.com/2010/01/02/2010-wish-you-happy-new-year-52000-blog-views/</link>
		<comments>http://abhinay.wordpress.com/2010/01/02/2010-wish-you-happy-new-year-52000-blog-views/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 06:46:19 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=119</guid>
		<description><![CDATA[I wish you all happy new year, have fun! WoW! My blog crossed 50,000 Views. Thanks to all of you! Here is my new year greetings to you! :)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=119&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wish you all happy new year, have fun!</p>
<p>WoW! My blog crossed <strong>50,000</strong> Views. Thanks to all of you! Here is my new year greetings to you! :)</p>
<p><a title="Happy New Year! :) by abhiomkar, on Flickr" href="http://www.flickr.com/photos/abhiomkar/4233599804/"><img src="http://farm5.static.flickr.com/4066/4233599804_f8f513f4b9.jpg" alt="Happy New Year! :)" width="500" height="460" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=119&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2010/01/02/2010-wish-you-happy-new-year-52000-blog-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4066/4233599804_f8f513f4b9.jpg" medium="image">
			<media:title type="html">Happy New Year! :)</media:title>
		</media:content>
	</item>
		<item>
		<title>My Firefox now completely looks like Chrome browser</title>
		<link>http://abhinay.wordpress.com/2009/11/23/my-firefox-now-completely-looks-like-chrome-browser/</link>
		<comments>http://abhinay.wordpress.com/2009/11/23/my-firefox-now-completely-looks-like-chrome-browser/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 17:30:20 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[chromium]]></category>
		<category><![CDATA[collection]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Screenshot]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=112</guid>
		<description><![CDATA[&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Yah, that&#8217;s my Firefox looking just like Google Chrome Browser! Running on Ubuntu 9.10 Karmic. Simple &#8211; I used, Chromixfox, Total ReChrome to customize my Firefox to look like Chrome browser. &#8230; <a href="http://abhinay.wordpress.com/2009/11/23/my-firefox-now-completely-looks-like-chrome-browser/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=112&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://abhinay.files.wordpress.com/2009/11/chromifox.png"><img class="size-large wp-image-111 alignleft" title="chromifox" src="http://abhinay.files.wordpress.com/2009/11/chromifox.png?w=485&#038;h=303" alt="&quot;Firefox Theme just looks as Chrome Browser&quot;" width="485" height="303" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><em>Yah, that&#8217;s my Firefox looking just like Google Chrome Browser!</em> <em>Running on Ubuntu 9.10 Karmic</em>.</p>
<p>Simple &#8211; I used,<strong> Chromixfox, Total ReChrome</strong> to customize my Firefox to look like Chrome browser.</p>
<p>And also, changed the <strong>tabMaxWidth</strong> value in about:config to 175</p>
<p>Checkout my Firefox Addon Collection &#8211; Firefox Addons that I use -</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/collection/e2a5c8ad-c048-eb04-05de-586ce207f773" target="_blank">https://addons.mozilla.org/en-US/firefox/collection/e2a5c8ad-c048-eb04-05de-586ce207f773<br />
</a></p>
<p>^ Must have Firefox Add-ons according to me ;)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=112&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2009/11/23/my-firefox-now-completely-looks-like-chrome-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>

		<media:content url="http://abhinay.files.wordpress.com/2009/11/chromifox.png?w=1024" medium="image">
			<media:title type="html">chromifox</media:title>
		</media:content>
	</item>
		<item>
		<title>Repair / Fix Mac HFS+ partition using Ubuntu CD</title>
		<link>http://abhinay.wordpress.com/2009/04/12/repair-fix-mac-hfs-partition-using-ubuntu-cd/</link>
		<comments>http://abhinay.wordpress.com/2009/04/12/repair-fix-mac-hfs-partition-using-ubuntu-cd/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 12:41:20 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[HFS+]]></category>
		<category><![CDATA[hfsplus]]></category>
		<category><![CDATA[hfsprogs]]></category>
		<category><![CDATA[journaling]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Live CD]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Repair]]></category>
		<category><![CDATA[rescue]]></category>
		<category><![CDATA[Startup Disk Full]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Ubuntu CD]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=100</guid>
		<description><![CDATA[This post will tell you how to repair / fix Mac HFS+ partition using Ubuntu CD (Live CD or Install CD). What do you need to do this? Ubuntu CD (I used Ubuntu 8.10 Desktop Edition Install/Live CD) Mac Internet &#8230; <a href="http://abhinay.wordpress.com/2009/04/12/repair-fix-mac-hfs-partition-using-ubuntu-cd/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=100&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post will tell you how to repair / fix Mac HFS+ partition using Ubuntu CD (Live CD or Install CD).</p>
<p><strong>What do you need to do this?</strong><br />
Ubuntu CD (I used Ubuntu 8.10 Desktop Edition Install/Live CD)<br />
Mac<br />
Internet Connection (Wired)</p>
<p><em>Few days back I had installed Debian 5.0 lenny on my MacBook. Because, I don&#8217;t have much hard disk capacity (only 80 GB), I had to delete the Linux partition (waiting for Ubuntu 9.04).  I used BootCamp Utility (in Mac) to delete the Linux partition. It wipes off all the linux data &amp; restores Mac partition (ex: I had 60GB Mac + 20GB Linux, After restore 80GB* Mac).<br />
I was happy that it was restored. But, the partition had errors after restores. I was not able to copy/store the any data if it exceeds 60GB on Mac, it says the Mac startup disk is full. Then I realized that the Mac file system (i.e., HFS+) had errors. Yes, the Ubuntu CD is there to rescue me. Enough story&#8230; follow this to proceed&#8230;<br />
</em></p>
<p><strong>1. Disable journaling on Mac parition before booting into Ubuntu CD</strong><br />
Use this command on your Mac terminal</p>
<blockquote>
<ul>
<li>sudo diskutil disableJournal /dev/disk0s2</li>
</ul>
</blockquote>
<p>where disk0s2 is your Mac partition (use &#8216;df&#8217; command to find out the root disk name, it should be mounted on &#8216;/&#8217;)</p>
<p><strong>2. Boot from Ubuntu CD</strong><br />
Insert the Ubuntu CD, press &#8216;C&#8217; on startup to boot from CD.</p>
<p><strong>3. Connect to Internet &amp; Install HFSprogs</strong><br />
After Boot connect to Internet, Yeah! I know the wireless won&#8217;t work now. I suggest you to connect from Wired.<br />
I assume that you are connected to Internet now.<br />
Then enable Universe packages using &#8216;Software Sources&#8217;.<br />
Then, Install hfsprogs package</p>
<blockquote><ul>
<li>
sudo apt-get install hfsprogs</li>
<ul></blockquote>
<p>This will enable you to check &amp; repair the HFS+ paritions.</p>
<p><strong>4. Check &amp; Repair</strong></p>
<p>You need to do fsck check on your Mac partition. Use fdisk command to find the Mac device.</p>
<blockquote><p>
abhinay@ubuntu:~$ fdisk -l<br />
WARNING: GPT (GUID Partition Table) detected on &#8216;/dev/sda&#8217;! The util fdisk doesn&#8217;t support GPT. Use GNU Parted.</p>
<p>Disk /dev/sda: 80.0 GB, 80026361856 bytes<br />
255 heads, 63 sectors/track, 9729 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0&#215;00000000<br />
Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1               1        9730    78150743+  ee  GPT
</p></blockquote>
<p>using fdisk didn&#8217;t show the Main Partition of mac, It shows only one partition. The above partition sda1 is the EFI partition (boot partition).<br />
That means, /dev/sda2 is your Mac partition.</p>
<p>Perform fsck on sda2</p>
<blockquote><p>abhinay@ubuntu:~$ sudo fsck.hfsplus /dev/sda2<br />
** /dev/sda2<br />
** Checking HFS Plus volume.<br />
** Checking Extents Overflow file.<br />
** Checking Catalog file.<br />
** Checking multi-linked files.<br />
** Checking Catalog hierarchy.<br />
** Checking Extended Attributes file.<br />
** Checking volume bitmap.<br />
Volume Bit Map needs minor repair<br />
** Checking volume information.<br />
** Repairing volume.<br />
** Rechecking volume.<br />
** Checking HFS Plus volume.<br />
** Checking Extents Overflow file.<br />
** Checking Catalog file.<br />
** Checking multi-linked files.<br />
** Checking Catalog hierarchy.<br />
** Checking Extended Attributes file.<br />
** Checking volume bitmap.<br />
** Checking volume information.<br />
** The volume Macintosh HD was repaired successfully.</p></blockquote>
<p>Hurray! It is repaired now&#8230;!</p>
<p>One more last thing you &#8216;ll have to do.</p>
<p><strong>5. Enable the journaling on Mac Partition</strong><br />
use this command on Mac to enable the journal back.</p>
<blockquote><p>sudo diskutil enableJournal /dev/disk0s2</p></blockquote>
<p>You are done! :)</p>
<p>**This worked for me!</p>
<p>Comment me if you have any troubles or suggestions. Thanks for reading my blog!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=100&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2009/04/12/repair-fix-mac-hfs-partition-using-ubuntu-cd/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>
	</item>
		<item>
		<title>Scrolling in Gmail is slow?</title>
		<link>http://abhinay.wordpress.com/2009/02/06/scrolling-in-gmail-is-slow/</link>
		<comments>http://abhinay.wordpress.com/2009/02/06/scrolling-in-gmail-is-slow/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 18:17:03 +0000</pubDate>
		<dc:creator>Abhinay</dc:creator>
				<category><![CDATA[gmail]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA["Older Version"]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[scrolling]]></category>
		<category><![CDATA[slow]]></category>

		<guid isPermaLink="false">http://abhinay.wordpress.com/?p=59</guid>
		<description><![CDATA[scrolling up-down in Gmail is so choppy and slow in Linux (Ubuntu?) with Firefox. Looks like this is because of excessive use of Javascript in Gmail. The only alternative that I know is changing the Gmail to Older Version, you &#8230; <a href="http://abhinay.wordpress.com/2009/02/06/scrolling-in-gmail-is-slow/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=59&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>scrolling up-down in Gmail is so choppy and slow in Linux (Ubuntu?) with Firefox. Looks like this is because of excessive use of Javascript in Gmail. The only alternative that I know is changing the Gmail to Older Version, you can do that so by clicking on the <a title="Gmail - Older Version" href="http://mail.google.com/mail/?ui=1" target="_self">&lt;link&gt;</a> (you can also find this link in your Gmail, at the very bottom line, you&#8217;ll find the link to <span style="text-decoration:underline;">Older Version</span>). I know this is some crappy Idea! :P</p>
<p>But, I hope that this helps!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhinay.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhinay.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhinay.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhinay.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhinay.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhinay.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhinay.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhinay.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhinay.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhinay.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhinay.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhinay.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhinay.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhinay.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhinay.wordpress.com&amp;blog=328606&amp;post=59&amp;subd=abhinay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhinay.wordpress.com/2009/02/06/scrolling-in-gmail-is-slow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b0b23dd6628665cfc9f40b5804b7608?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abhi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
