<?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>i R pranav</title>
	
	<link>http://pranavashok.com/blog</link>
	<description>Randomly timed doeses of boringness</description>
	<lastBuildDate>Sat, 30 Jan 2010 17:23:16 +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/iRpranav" /><feedburner:info uri="irpranav" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><feedburner:emailServiceId>iRpranav</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Script to Download TED Videos in Bulk</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/cTfWTov01Fk/</link>
		<comments>http://pranavashok.com/blog/2009/12/script-to-download-ted-videos-in-bulk/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 20:39:36 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[TED]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=86</guid>
		<description><![CDATA[I recently became addicted to TED Videos. This inspired me to create a simple python script which helps one download TED Talks in bulk. Here is the main part of the script. Scroll down for download link and usage instructions.

#! /usr/bin/python
&#160;
# Name: TED Video Downloader
# Version: 0.4
# Summary: A bulk TED Talks download tool
# License: [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/4Zu1YVUIcmna8TD347sqDV2r8tw/0/da"><img src="http://feedads.g.doubleclick.net/~a/4Zu1YVUIcmna8TD347sqDV2r8tw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4Zu1YVUIcmna8TD347sqDV2r8tw/1/da"><img src="http://feedads.g.doubleclick.net/~a/4Zu1YVUIcmna8TD347sqDV2r8tw/1/di" border="0" ismap="true"></img></a></p><p>I recently became addicted to <a href="http://www.ted.com/">TED Videos</a>. This inspired me to create a simple python script which helps one download <a href="http://www.ted.com/talks">TED Talks</a> in bulk. Here is the main part of the script. <em>Scroll down for download link and usage instructions.</em></p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#! /usr/bin/python</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Name: TED Video Downloader</span>
<span style="color: #808080; font-style: italic;"># Version: 0.4</span>
<span style="color: #808080; font-style: italic;"># Summary: A bulk TED Talks download tool</span>
<span style="color: #808080; font-style: italic;"># License: BSD</span>
<span style="color: #808080; font-style: italic;"># Author: Pranav Ashok</span>
<span style="color: #808080; font-style: italic;"># Author-email: iam@pranavashok.com</span>
<span style="color: #808080; font-style: italic;"># Author-homepage: http://pranavashok.com/blog</span>
<span style="color: #808080; font-style: italic;"># Support: http://pranavashok.com/blog/2009/12/script-to-download-ted-videos-in-bulk/</span>
<span style="color: #808080; font-style: italic;"># Support: Twitter (@pranavashok)</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">from</span> BeautifulSoup <span style="color: #ff7700;font-weight:bold;">import</span> BeautifulSoup
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">urllib2</span> <span style="color: #ff7700;font-weight:bold;">import</span> urlopen
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">re</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
&nbsp;
f = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>, <span style="color: #483d8b;">'r'</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">for</span> link <span style="color: #ff7700;font-weight:bold;">in</span> f:
	web = urlopen<span style="color: black;">&#40;</span>link<span style="color: black;">&#41;</span>
	soup = BeautifulSoup<span style="color: black;">&#40;</span>web.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
	wholeTag = soup.<span style="color: black;">find</span><span style="color: black;">&#40;</span>href=<span style="color: #dc143c;">re</span>.<span style="color: #008000;">compile</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;/talks/download/video/.+&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
	name = <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">basename</span><span style="color: black;">&#40;</span>link<span style="color: black;">&#41;</span>
	fileName, fileExt = <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">splitext</span><span style="color: black;">&#40;</span>name<span style="color: black;">&#41;</span>
	outputFile = fileName+<span style="color: #483d8b;">&quot;.mp4&quot;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;"># wholeTag['href'] gives the value of the href attribute</span>
	downloadUrl = <span style="color: #483d8b;">&quot;http://www.ted.com&quot;</span>+wholeTag<span style="color: black;">&#91;</span><span style="color: #483d8b;">'href'</span><span style="color: black;">&#93;</span>
&nbsp;
	w = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'downloader.sh'</span>, <span style="color: #483d8b;">'a'</span><span style="color: black;">&#41;</span>
	w.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'wget -c -O <span style="color: #000099; font-weight: bold;">\&quot;</span>%s<span style="color: #000099; font-weight: bold;">\&quot;</span> <span style="color: #000099; font-weight: bold;">\&quot;</span>%s<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\n</span>'</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>outputFile, downloadUrl<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
	w.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
exit<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p><span id="more-86"></span><br />
<strong>Dependencies</strong><br />
This script has used python library called <a href="http://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a> for parsing HTML. If you are a developer, I&#8217;d recommend you to try BeautifulSoup. It&#8217;s got a nice documentation and it&#8217;s easy to use.<br />
(<em>Note: You don&#8217;t need to download this, I&#8217;ve included it along with my script</em>)</p>
<p><strong>Instructions</strong><br />
1. Download the <a href="http://pranavashok.com/blog/wp-content/uploads/2009/12/TED-Downloader.tar.bz2">TED Video Downloader</a><br />
2. Extract the files to the directory where you want the videos to be downloaded.<br />
3. Edit the <strong>toDownload.txt</strong> file and add the links of each <a href="http://www.ted.com/talks">TED Video</a> in a new line (example links are already present).<br />
4. Open a terminal and change to the directory where you extracted the files.<br />
5. Execute &#8216;<strong>sh run-first.sh</strong>&#8216;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sh</span> run-first.sh</pre></div></div>

<p>6. The python script will be executed automatically and download will start soon (depending on the length of your list)<br />
7. If you want to stop the downloads, press Ctrl+C.<br />
8. To resume a stopped/interrupted download, execute the following command in terminal &#8211; &#8216;<strong>sh downloader.sh</strong>&#8216;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sh</span> downloader.sh</pre></div></div>

<p>9. Enjoy the videos!<br />
<strong></strong></p>
<p><strong>Limitations</strong><br />
I haven&#8217;t implemented any sort of error handling. If the <a href="http://www.ted.com/">TED.com</a> decides to change the format of their video page, this script might stop working. In that case, please drop a comment here and I&#8217;ll fix it as soon as possible.</p>
<p>Hope you liked this script. Suggestions on optimization of the script are welcome.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=cTfWTov01Fk:xoFlJKbnjio:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=cTfWTov01Fk:xoFlJKbnjio:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=cTfWTov01Fk:xoFlJKbnjio:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=cTfWTov01Fk:xoFlJKbnjio:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=cTfWTov01Fk:xoFlJKbnjio:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=cTfWTov01Fk:xoFlJKbnjio:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=cTfWTov01Fk:xoFlJKbnjio:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=cTfWTov01Fk:xoFlJKbnjio:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/cTfWTov01Fk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/12/script-to-download-ted-videos-in-bulk/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/12/script-to-download-ted-videos-in-bulk/</feedburner:origLink></item>
		<item>
		<title>Start Using Linux – Basic Terminal Commands</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/44H6-wKee1s/</link>
		<comments>http://pranavashok.com/blog/2009/12/start-using-linux-basic-terminal-commands/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 04:43:39 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=66</guid>
		<description><![CDATA[This is a compilation of some terminal commands I&#8217;ve found useful.
Before starting, I&#8217;d like to emphasize on a few things:
- You might want to understand the filesystem hierarchy in linux before you start.
- When you start terminal, your default working directory is /home/user-name
- If you want to get more info on any command, just type [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/11ehIx6HJfgtHEywwJjayP5-8_I/0/da"><img src="http://feedads.g.doubleclick.net/~a/11ehIx6HJfgtHEywwJjayP5-8_I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/11ehIx6HJfgtHEywwJjayP5-8_I/1/da"><img src="http://feedads.g.doubleclick.net/~a/11ehIx6HJfgtHEywwJjayP5-8_I/1/di" border="0" ismap="true"></img></a></p><p>This is a compilation of some terminal commands I&#8217;ve found useful.</p>
<p>Before starting, I&#8217;d like to emphasize on a few things:<br />
<em>- You might want to understand the filesystem hierarchy in linux before you start.<br />
- When you start terminal, your default working directory is /home/user-name<br />
- If you want to get more info on any command, just type &#8216;</em>command-name &#8211;help<em>&#8216; without the quotes in terminal.<br />
- In this post, when I say &#8216;type&#8217; something in terminal, it means &#8216;execute it&#8217; by typing it and pressing enter.<br />
- Whenever you want to end a looping command, for example, ping in terminal &#8211; press Ctrl + C.<br />
</em><br />
<span id="more-66"></span></p>
<p>These are the list of commands explained in this post:</p>
<ul>
<li><a href="#cat"> cat &#8211; view contents of a file</a></li>
<li><a href="#cd"> cd &#8211; change directory</a></li>
<li><a href="#clear"> clear &#8211; clear the terminal windows</a></li>
<li><a href="#cp"> cp &#8211; copy</a></li>
<li><a href="#df"> df &#8211; view free space in disks</a></li>
<li><a href="#exit"> exit &#8211; exit terminal</a></li>
<li><a href="#ls"> ls &#8211; list contents of current folder</a></li>
<li><a href="#mkdir"> mkdir &#8211; create a new folder</a></li>
<li><a href="#mv"> mv &#8211; move</a></li>
<li><a href="#ping"> ping &#8211; ping a remote server</a></li>
<li><a href="#rm"> rm &#8211; remove files/folders</a></li>
<li><a href="#rmdir"> rmdir &#8211; remove empty folders</a></li>
<li><a href="#sudo"> sudo &#8211; access as another user</a></li>
<li><a href="#tar"> tar &#8211; operations with compressed archives</a></li>
</ul>
<p><strong><a name="cat">cat</a></strong> &#8211; Used to display contents of a file</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> cat Desktop/Hello.ext<br />
Hello, World!<br />
This is a file with a random extension.<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span><br />
</code></p>
<p><em>Tip: Try executing the following command</em><br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> cat --help</code></p>
<p><strong><a name="cd">cd</a></strong> &#8211; Used to change the working directory</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> cd Desktop/<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/Desktop $</span> cd ..<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> cd /<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">/ $</span> cd ~<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span><br />
</code></p>
<p>Explanation of the above code: Change directory to Desktop (<strong>cd Desktop/</strong>) -&gt; Go back one level (<strong>cd ..</strong>) -&gt; Change directory to the root directory (<strong>cd /</strong>) -&gt; Change directory to the home directory (<strong>cd ~</strong>)</p>
<p><strong><a name="clear">clear</a></strong> &#8211; Used to clear the terminal screen</p>
<p>Basically, what it does is shift everything above the viewable area. Just scroll up to see the history.</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> clear</code></p>
<p><strong><a name="cp">cp</a></strong> &#8211; Used to copy files/folders</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/Desktop $</span> cp [options] source destination</code><br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/Desktop $</span> cp -dpR twython/ /home/pranav/twython<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/Desktop $</span><br />
</code></p>
<p>The option <strong>-dpR</strong> is used to create a replica of the twython folder (located in the /home/pranav/desktop) in /home/pranav.</p>
<p>Here is a small list of options for the cp command:</p>
<blockquote><p>-a, &#8211;archive                same as -dpR<br />
-d, &#8211;no-dereference         preserve links<br />
-f, &#8211;force                  remove existing destinations, never prompt<br />
-i, &#8211;interactive            prompt before overwrite<br />
-p, &#8211;preserve               preserve file attributes if possible<br />
-r                           copy recursively, non-directories as files<br />
-R, &#8211;recursive              copy directories recursively<br />
-u, &#8211;update                 copy only when the SOURCE file is newer than the destination file or when the destination file is missing<br />
-v, &#8211;verbose                explain what is being done</p></blockquote>
<p><em>For the full list, run <strong>cp &#8211;help</strong> in terminal.</em></p>
<p><strong><a name="df">df</a></strong> &#8211; Used to check the free space on your disks</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> df<br />
Filesystem           1K-blocks      Used Available Use% Mounted on<br />
/dev/sda1             34677256   4375624  28540108  14% /<br />
udev                    383740       256    383484   1% /dev<br />
none                    383740       524    383216   1% /dev/shm<br />
none                    383740       292    383448   1% /var/run<br />
none                    383740         0    383740   0% /var/lock<br />
none                    383740         0    383740   0% /lib/init/rw<br />
/dev/sda10            80883520  74598944   6284576  93% /media/9465-C776<br />
/dev/sda5             47182872  44720900   2461972  95% /media/Local Disk<br />
/dev/sda6             80895272  59800852  21094420  74% /media/22B86022B85FF2B1<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> </code></p>
<p><em>Tip: Use the <strong>-h</strong> switch to make it human readable.</em></p>
<p><strong><a name="exit">exit</a></strong> &#8211; Used to exit the terminal</p>
<p><strong><a name="ls">ls</a></strong> (with a lowercase L, not and uppercase i) &#8211; Used to list files/folders in the current directory</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> ls<br />
bin      Documents     Music     Projects  Videos<br />
Desktop  hplip-3.9.10  Pictures  twython   works<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span><br />
</code></p>
<p><strong><a name="mkdir">mkdir</a></strong> &#8211; Used to create new folders</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works $</span> ls<br />
app.yaml  index.py  index.yaml<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works $</span> mkdir py-projects<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works $</span> ls<br />
app.yaml  index.py  index.yaml  py-projects<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works $</span><br />
</code></p>
<p><strong><a name="mv">mv</a></strong> &#8211; Used to move files/folders</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> mv hplip-3.9.10/ works/py-projects/<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> ls works/py-projects/<br />
hplip-3.9.10<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span><br />
</code></p>
<p><strong><a name="ping">ping</a></strong> &#8211; Used to test a network connection</p>
<p>Usage: (<em>To stop the pinging, press <strong>Ctrl + C</strong></em>)<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> ping google.com<br />
PING google.com (209.85.231.104) 56(84) bytes of data.<br />
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_seq=1 ttl=53 time=121 ms<br />
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_seq=2 ttl=53 time=121 ms<br />
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_seq=3 ttl=53 time=121 ms<br />
^C64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_seq=4 ttl=53 time=121 ms<br />
--- google.com ping statistics ---<br />
4 packets transmitted, 4 received, 0% packet loss, time 3003ms<br />
rtt min/avg/max/mdev = 121.100/121.298/121.685/0.483 ms<br />
</code></p>
<p><strong><a name="rm">rm</a></strong> &#8211; Used to remove/delete files</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works/py-projects/hplip-3.9.10 $</span> rm *.*<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works/py-projects/hplip-3.9.10 $</span></code></p>
<p>The above command removes all files with an extension from the working directory, hplip-3.9.10 in this case. <em>Please note that it doesn&#8217;t delete files without an extension</em>.</p>
<p>To delete everything inside a directory, the option <strong>-r</strong> can be used.<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works/py-projects/hplip-3.9.10 $</span> rm -r *<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works/py-projects/hplip-3.9.10 $</span> </code></p>
<p><strong><a name="rmdir">rmdir</a></strong> &#8211; Used to remove empty directories</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span><span style="color: #99ccff;"> ~/works/py-projects $</span> rmdir hplip-3.9.10/<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/works/py-projects $</span> </code></p>
<p><strong><a name="sudo">sudo</a></strong> &#8211; Used to execute commands as other users</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> sudo su pranav<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $ </span></code></p>
<p><code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~ $</span> sudo su<br />
[sudo] password for pranav:</code></p>
<p><code><span style="color: #800000;">pranav-desktop <span style="color: #99ccff;">pranav</span></span><span style="color: #99ccff;">#</span> </code></p>
<p>Here, the user is changed to <strong>root</strong>.</p>
<p><em>Note: When no argument is given to the su command, the default argument, root, is used.</em></p>
<p><strong><a name="tar">tar</a></strong> &#8211; Used to do operations like store, list or extract files in an archive.</p>
<p>Usage:<br />
<code><span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/Desktop $</span> tar -xvzf wordpress-2.8.6.tar.gz<br />
.<br />
.<br />
.<br />
wordpress/wp-content/themes/default/archives.php<br />
wordpress/wp-content/themes/default/search.php<br />
wordpress/wp-content/themes/default/screenshot.png<br />
wordpress/wp-content/themes/default/archive.php<br />
wordpress/wp-content/themes/default/comments-popup.php<br />
wordpress/wp-content/themes/default/footer.php<br />
wordpress/wp-content/themes/default/page.php<br />
wordpress/wp-content/themes/default/sidebar.php<br />
wordpress/wp-content/themes/default/style.css<br />
wordpress/wp-content/themes/default/functions.php<br />
wordpress/wp-content/themes/default/links.php<br />
wordpress/wp-content/themes/default/rtl.css<br />
wordpress/wp-cron.php<br />
wordpress/wp-load.php<br />
wordpress/wp-feed.php<br />
wordpress/wp-mail.php<br />
<span style="color: #339966;">pranav@pranav-desktop</span> <span style="color: #99ccff;">~/Desktop $</span> </code></p>
<p>For more information on any of the commands or to get the full list of commands, visit <a href="http://ss64.com/bash/">bash commands</a>. Alternatively, you can use <em>&#8211;help</em> <img src='http://pranavashok.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Have fun with terminal!</p>
<p><em>Edited on 17 Dec 2009</em><br />
<strong>I came across <a href="http://lindesk.com/2009/04/customizing-the-terminal-6-command-line-tips-and-tricks/">this post (at lindesk.com)</a> today. It contains some really cool tips! Check it out.</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=44H6-wKee1s:XGiFbg-hOjs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=44H6-wKee1s:XGiFbg-hOjs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=44H6-wKee1s:XGiFbg-hOjs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=44H6-wKee1s:XGiFbg-hOjs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=44H6-wKee1s:XGiFbg-hOjs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=44H6-wKee1s:XGiFbg-hOjs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=44H6-wKee1s:XGiFbg-hOjs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=44H6-wKee1s:XGiFbg-hOjs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/44H6-wKee1s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/12/start-using-linux-basic-terminal-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/12/start-using-linux-basic-terminal-commands/</feedburner:origLink></item>
		<item>
		<title>Creating a WordPress Sandbox – Installing WordPress Locally</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/CO61_yZEiBs/</link>
		<comments>http://pranavashok.com/blog/2009/12/creating-a-wordpress-sandbox-installing-wordpress-locally/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 20:32:23 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[WAMP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=64</guid>
		<description><![CDATA[Here&#8217;s a video I created an hour ago. Basically, it guides you in creating a wordpress sandbox to test your themes/plugins and other features of wordpress.
You&#8217;ll need to download:
1. WAMPServer 2 from http://www.wampserver.com/dl.php) and;
2. Wordpress from http://wordpress.org/latest.zip)

I&#8217;m planning to create more tutorial videos. Please give your suggestions, if any.
]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/VbVFAwZUSUA6BDofH9QTxXB1Wbc/0/da"><img src="http://feedads.g.doubleclick.net/~a/VbVFAwZUSUA6BDofH9QTxXB1Wbc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VbVFAwZUSUA6BDofH9QTxXB1Wbc/1/da"><img src="http://feedads.g.doubleclick.net/~a/VbVFAwZUSUA6BDofH9QTxXB1Wbc/1/di" border="0" ismap="true"></img></a></p><p>Here&#8217;s a video I created an hour ago. Basically, it guides you in creating a wordpress sandbox to test your themes/plugins and other features of wordpress.</p>
<p>You&#8217;ll need to download:<br />
1. <strong>WAMPServer 2</strong> from <a style="outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; color: #0033cc; text-decoration: none; background-position: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" title="http://www.wampserver.com/dl.php)" dir="ltr" rel="nofollow" href="http://www.wampserver.com/dl.php)" target="_blank">http://www.wampserver.com/dl.php)</a> and;<br />
2. <strong>Wordpress</strong> from <a style="outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; color: #0033cc; text-decoration: none; background-position: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" title="http://wordpress.org/latest.zip)" dir="ltr" rel="nofollow" href="http://wordpress.org/latest.zip)" target="_blank">http://wordpress.org/latest.zip)</a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/RIEBEvzjblI" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/RIEBEvzjblI"></embed></object></p>
<p>I&#8217;m planning to create more tutorial videos. Please give your suggestions, if any.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=CO61_yZEiBs:iBBS6yYKn_4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=CO61_yZEiBs:iBBS6yYKn_4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=CO61_yZEiBs:iBBS6yYKn_4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=CO61_yZEiBs:iBBS6yYKn_4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=CO61_yZEiBs:iBBS6yYKn_4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=CO61_yZEiBs:iBBS6yYKn_4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=CO61_yZEiBs:iBBS6yYKn_4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=CO61_yZEiBs:iBBS6yYKn_4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/CO61_yZEiBs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/12/creating-a-wordpress-sandbox-installing-wordpress-locally/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/12/creating-a-wordpress-sandbox-installing-wordpress-locally/</feedburner:origLink></item>
		<item>
		<title>Batch Script to Generate File/Folder Listing</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/LFNfG6TeBS0/</link>
		<comments>http://pranavashok.com/blog/2009/07/batch-script-to-generate-file-folder-listing/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 15:00:10 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[Indexing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=59</guid>
		<description><![CDATA[I was chatting with a friend who had a huge music collection and I wanted to know what all he had. This provoked me to make a batch script which would do the job. I did some research online and found out some basics of batch scripts. This is the final thing which I ended [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/KimC5p8kV9GczCxkC8EVg1mSx-M/0/da"><img src="http://feedads.g.doubleclick.net/~a/KimC5p8kV9GczCxkC8EVg1mSx-M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KimC5p8kV9GczCxkC8EVg1mSx-M/1/da"><img src="http://feedads.g.doubleclick.net/~a/KimC5p8kV9GczCxkC8EVg1mSx-M/1/di" border="0" ismap="true"></img></a></p><p>I was chatting with a friend who had a huge music collection and I wanted to know what all he had. This provoked me to make a batch script which would do the job. I did some research online and found out some basics of batch scripts. This is the final thing which I ended up with.</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Directory listing will be created at c:\dirList.txt
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">dir</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">1</span> /S &amp;gt; c:\dirList.txt
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Opening c:\dirList.txt <span style="color: #00b100; font-weight: bold;">in</span> Notepad
<span style="color: #33cc33;">@</span>notepad c:\dirList.txt
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span></pre></div></div>

<p>I think it’s self explanatory. But still, I’ll go ahead and explain.</p>
<p>1. Prints “Directory listing will be created at c:\dirList.txt”</p>
<p>2. <strong>dir</strong> is a command which will print the list of directories and files. <strong>%1</strong> is a variable which will contain the location from where you run this script. <strong>/s</strong> is a switch for<span id="more-59"></span> showing all sub-directories. <strong>&gt; c:\dirList.txt</strong> will save the output of the operation <strong>dir %1 /s</strong> to a text file called <em>dirList.txt</em> in C Drive.</p>
<p>In short, the second line means this:<br />
Run the directory listing command for the location <strong>%1</strong> and store it’s output in <strong>c:\dirList.txt</strong>.</p>
<p>3. Prints “Opening c:\dirList.txt in Notepad”</p>
<p>4. Opens c:\dirList.txt in notepad.</p>
<p>5. Wait for the user to respond by pressing any key before terminating the program.</p>
<p>Now I’ll tell you how to make the whole thing work. <em>Create</em> a <strong>New Text Document</strong> on your desktop and <em>rename</em> it to <strong>Create DirList.bat</strong>. Right-click on it and press <em>Edit</em>. Copy the following code segment into it and save.</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Directory listing will be created at c:\dirList.txt
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">dir</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">1</span> /S &amp;gt; c:\dirList.txt
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> Opening c:\dirList.txt <span style="color: #00b100; font-weight: bold;">in</span> Notepad
<span style="color: #33cc33;">@</span>notepad c:\dirList.txt
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span></pre></div></div>

<p>Now move it to <strong>C:\Documents and Settings\{username}\SendTo</strong></p>
<p>Since you&#8217;d be giving this to your friends and some of them will have difficulty doing this, to make things simpler, I created another script to perform this move.</p>
<p>Create a <strong>New Text Document</strong> again and this time, call it <strong>install.bat</strong>.</p>
<p>Copy the following into it and save it.</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">move</span> &quot;Create DirList.bat&quot; &quot;C:\Documents and Settings\<span style="color: #33cc33;">%</span><span style="color: #448888;">username</span><span style="color: #33cc33;">%</span>\SendTo\Create DirList.bat&quot;
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #b1b100; font-weight: bold;">Move</span> Complete
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">pause</span></pre></div></div>

<p>Remember that both <strong>install.bat</strong> and <strong>Create DirList.bat</strong> must be located in the same place.</p>
<p>Now, run <strong>install.bat</strong> to move <strong>Create DirList.bat</strong> to the SendTo folder. The reason why we do this is simple. Whenever we right-click on a folder and Send To -&gt; <strong>Create DirList.bat</strong>, it will send the location of the folder we right-clicked as <strong>%1</strong>.</p>
<p>Therefore, if you right-click on a folder called <em>Songs</em> in F Drive, <strong>%1</strong> will contain the location <strong>F:\Songs</strong>. Therefore, the main command executed will be this:</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">dir</span> F:\Songs /s &amp;gt; c:\dirList.txt</pre></div></div>

<p>Now whenever you want the listing of a directory, just <strong>Right-click -&gt; Send To -&gt; Create DirList.txt</strong>.</p>
<p>Simple isn’t it?</p>
<p>Please keep all the suggestions pouring in.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=LFNfG6TeBS0:yhCStcUdads:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=LFNfG6TeBS0:yhCStcUdads:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=LFNfG6TeBS0:yhCStcUdads:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=LFNfG6TeBS0:yhCStcUdads:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=LFNfG6TeBS0:yhCStcUdads:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=LFNfG6TeBS0:yhCStcUdads:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=LFNfG6TeBS0:yhCStcUdads:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=LFNfG6TeBS0:yhCStcUdads:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/LFNfG6TeBS0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/07/batch-script-to-generate-file-folder-listing/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/07/batch-script-to-generate-file-folder-listing/</feedburner:origLink></item>
		<item>
		<title>Saving YouTube Videos from Firefox Cache</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/pdjtbll2ntM/</link>
		<comments>http://pranavashok.com/blog/2009/07/saving-youtube-videos-from-firefox-cache/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 03:14:25 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Jazzed Up!]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=38</guid>
		<description><![CDATA[This was first posted in my old, dead blog Jazzed Up! on Mar 24, 2008 1:44 PM
This article tells your how to download videos, not only from YouTube, but also from other video sharing sites using Firefox. I’ll be considering only YouTube here. The procedure will be the same for any streaming media.
Note (07 Jul, [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/rJ7zshPLm3P03WjlDAq6pZJlK1g/0/da"><img src="http://feedads.g.doubleclick.net/~a/rJ7zshPLm3P03WjlDAq6pZJlK1g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rJ7zshPLm3P03WjlDAq6pZJlK1g/1/da"><img src="http://feedads.g.doubleclick.net/~a/rJ7zshPLm3P03WjlDAq6pZJlK1g/1/di" border="0" ismap="true"></img></a></p><p><em>This was first posted in my old, dead blog <strong>Jazzed Up!</strong> on Mar 24, 2008 1:44 PM</em></p>
<p>This article tells your how to download videos, not only from <a href="http://www.youtube.com/" target="_blank">YouTube</a>, but also from other video sharing sites using Firefox. I’ll be considering only YouTube here. The procedure will be the same for any streaming media.</p>
<p><strong><em>Note (07 Jul, 2009): Though this is a very cool trick, right now, I personally use <a href="http://www.internetdownloadmanager.com/">Internet Download Manager</a> with it&#8217;s integrated browser add-ons for downloading embedded stuff (including flash, videos and audio).</em></strong></p>
<p><em><strong>Note for linux users</strong>: <a href="http://pranavashok.com/blog/2009/07/saving-youtube-videos-from-firefox-cache/comment-page-1/#comment-10">See this comment by Binny V A</a></em></p>
<p><strong>Step 1</strong>: Go to YouTube and play the video you want to download.</p>
<p><strong>Step 2</strong>: After the video has loaded, open a new tab (Ctrl + T) or a new Firefox window and type</p>
<blockquote><p>about:cache</p></blockquote>
<p>in the address bar.</p>
<p>Copy the location of the <em><span id="more-38"></span>Cache Directory</em>. (It’s different for everyone)</p>
<p>Screenshot:<br />
<img src="http://img167.imageshack.us/img167/1204/aboutcachevi1.gif" alt="about:cache" /></p>
<p><strong>Step 3</strong>: Open the <em>Run</em> dialog box (Start -&gt; Run), paste the path of the Cache Directory (Ctrl + V), and press enter. You’ll now see a list of files with weird names <img src='http://pranavashok.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Step 4</strong>: Sort the files according to their size. The biggest file is most probably your video. Usually, the size of a 4-5 minute long video is around 10 MB.</p>
<p><strong>Step 5</strong>: After you locate the largest file, copy it to some folder on your computer and give it an extension &#8211; .flv</p>
<p>You can play this using any player which supports FLV format. A good player is the <strong><a href="http://www.free-codecs.com/download/Media_Player_Classic.htm" target="_blank">Media Player Classic</a></strong> which is available with the K-Lite Codec Pack. You can also try <a href="http://www.download.com/FLV-Player/3000-2139_4-10467081.html" target="_blank">FLV Player</a>.</p>
<p>If you want to convert the flv to an avi file, you can download <a href="http://www.onlyfreewares.com/Audio-Video/Video-Converters/Free-FLV-to-AVI-Converter.php" target="_blank">Free Flv to Avi Converter</a>.</p>
<p>This trick can be applied to any video sharing site. The only thing is that you have to give the correct extension (In youtube, it’s .flv) to the file.</p>
<p>Cheers!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=pdjtbll2ntM:07r09zT-c1E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=pdjtbll2ntM:07r09zT-c1E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=pdjtbll2ntM:07r09zT-c1E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=pdjtbll2ntM:07r09zT-c1E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=pdjtbll2ntM:07r09zT-c1E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=pdjtbll2ntM:07r09zT-c1E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=pdjtbll2ntM:07r09zT-c1E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=pdjtbll2ntM:07r09zT-c1E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/pdjtbll2ntM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/07/saving-youtube-videos-from-firefox-cache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/07/saving-youtube-videos-from-firefox-cache/</feedburner:origLink></item>
		<item>
		<title>Setting a Background Image for your Pen Drive in 3 Simple Steps</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/SiohjLfloRI/</link>
		<comments>http://pranavashok.com/blog/2009/07/setting-a-background-image-for-your-pen-drive-in-3-simple-steps/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:45:43 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Jazzed Up!]]></category>
		<category><![CDATA[Background]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Pen Drive]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=36</guid>
		<description><![CDATA[This was first posted in my old, dead blog Jazzed Up! on Mar 13, 2008 9:15 AM
Won’t a background image look great for your Pen Drive? This is a brief tutorial on setting a background image for your USB Drive (Note that this is also applicable to folders). This is for Windows XP (it might [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/2RoJNbw3XWu1aFVOOd8eQZO9tWs/0/da"><img src="http://feedads.g.doubleclick.net/~a/2RoJNbw3XWu1aFVOOd8eQZO9tWs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2RoJNbw3XWu1aFVOOd8eQZO9tWs/1/da"><img src="http://feedads.g.doubleclick.net/~a/2RoJNbw3XWu1aFVOOd8eQZO9tWs/1/di" border="0" ismap="true"></img></a></p><p><em>This was first posted in my old, dead blog <strong>Jazzed Up!</strong> on Mar 13, 2008 9:15 AM</em></p>
<p>Won’t a background image look great for your Pen Drive? This is a brief tutorial on setting a background image for your USB Drive (Note that this is also applicable to folders). This is for Windows XP (it might work for Vista too, tell me if it does). Let’s begin.</p>
<p><a title="ImageShack - Image And Video Hosting" href="http://img142.imageshack.us/i/pendrivewpza6.jpg/" target="_blank"><img src="http://img142.imageshack.us/img142/2841/pendrivewpza6.jpg" border="0" alt="" /></a></p>
<p>1. If you want to use this trick for a folder (say, C:\Games), then first open command prompt (Run -&gt; cmd). Then type</p>
<p><code>attrib +s C:\Games</code></p>
<p>and then do the following.<span id="more-36"></span></p>
<p>Create a desktop.ini file in your Pen Drive (folder) and copy the following into it.</p>
<blockquote><p>[{BE098140-A513-11D0-A3A4-00C04FD706EC}]<br />
IconArea_Image=bg.jpg<br />
IconArea_Text=0×00000000</p></blockquote>
<p>2. Put your background picture into your drive (folder) and modify <em>IconArea_Image</em> suitably.<br />
For example, if the name of your image is, say, <em>wallpaper.jpg</em>, then you need to replace</p>
<p><code>IconArea_Image=bg.jpg</code></p>
<p>by</p>
<p><code>IconArea_Image=wallpaper.jpg</code></p>
<p>It’s not necessary that your image should be a JPEG. You can apply this for most of the popular image formats. For example, if you want a <em>gradient.png</em> as your background, then</p>
<p>Replace</p>
<p><code>IconArea_Image=bg.jpg</code></p>
<p>with this</p>
<p><code>IconArea_Image=gradient.png</code></p>
<p>You can also modify the Icon’s font color by giving the hex code corresponding to the color you want.</p>
<p>To give a white color to the icon text, replace</p>
<p><code>IconArea_Text=0x00000000</code></p>
<p>with</p>
<p><code>IconArea_Text=0x00FFFFFF</code></p>
<p>You can also use any other color by replacing the last 6 zeroes by the corresponding color codes (<a href="http://www.immigration-usa.com/html_colors.html" target="_blank">refer this for color codes</a>).</p>
<p>3. Change the attributes of desktop.ini and the image to hidden. You can do this by selecting the files (desktop.ini and the image file), Right-click -&gt; Properties, and under the <em>Attributes</em> section, enable Hidden. This is not necessary, but it’ll help you impress your friends more <img src='http://pranavashok.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Refresh your folder to see the result.</p>
<p>Here is my screenshot<br />
<a href="http://img142.imageshack.us/my.php?image=pendrivewpza6.jpg" target="_blank" rel="lightbox"><img src="http://img142.imageshack.us/img142/2841/pendrivewpza6.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a></p>
<p><em><br />
UPDATE (3/15/08): Code shortened.<br />
UPDATE (3/16/08): Tip for using this trick for other folders added.<br />
UPDATE (3/20/08): Code shortened even more. Thanks to Mechwarrior5.</em></p>
<p>Cheers</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=SiohjLfloRI:3YJyPUj0aEI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=SiohjLfloRI:3YJyPUj0aEI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=SiohjLfloRI:3YJyPUj0aEI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=SiohjLfloRI:3YJyPUj0aEI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=SiohjLfloRI:3YJyPUj0aEI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=SiohjLfloRI:3YJyPUj0aEI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=SiohjLfloRI:3YJyPUj0aEI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=SiohjLfloRI:3YJyPUj0aEI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/SiohjLfloRI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/07/setting-a-background-image-for-your-pen-drive-in-3-simple-steps/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/07/setting-a-background-image-for-your-pen-drive-in-3-simple-steps/</feedburner:origLink></item>
		<item>
		<title>Scheduling Your BSNL Broadband Connection During Night Unlimited</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/jbafurlyHug/</link>
		<comments>http://pranavashok.com/blog/2009/07/scheduling-your-bsnl-broadband-connection-during-night-unlimited/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 06:35:58 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Jazzed Up!]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[Broadband]]></category>
		<category><![CDATA[BSNL]]></category>
		<category><![CDATA[Night UL]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=32</guid>
		<description><![CDATA[This was first posted in my old, dead blog Jazzed Up! on Dec 31, 2007 6:05 PM
Note: This trick is not specifically for BSNL Broadband, It applies for anyone who uses a broadband connection which requires you to connect using your username and password.
Wanted to schedule your BSNL Broadband Night Unlimited Connection to dial up [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/HS8JwZ5KxPR1RmLW6QHqwhGkfSY/0/da"><img src="http://feedads.g.doubleclick.net/~a/HS8JwZ5KxPR1RmLW6QHqwhGkfSY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/HS8JwZ5KxPR1RmLW6QHqwhGkfSY/1/da"><img src="http://feedads.g.doubleclick.net/~a/HS8JwZ5KxPR1RmLW6QHqwhGkfSY/1/di" border="0" ismap="true"></img></a></p><p><em>This was first posted in my old, dead blog <strong>Jazzed Up!</strong> on Dec 31, 2007 6:05 PM</em></p>
<p>Note: This trick is not specifically for BSNL Broadband, It applies for anyone who uses a broadband connection which requires you to <strong>connect using your username and password</strong>.</p>
<p>Wanted to schedule your <strong>BSNL Broadband Night Unlimited Connection</strong> to dial up automatically to the internet when the “happy hours” start because you wanted to download a huge file/use uTorrent? Well, here is a simple method. Now you don’t have to wake up every morning at 2:00 AM to connect or again at 8:00 AM to disconnect your connection.</p>
<p>Well, lets begin assuming that you have already finished setting up your connection, port forwarding etc. (see <a href="http://pranavashok.com/blog/2009/07/bsnl-broadband-port-forwarding-alternative/" target="_blank">this</a> for more information if you haven’t). This trick is very short and simple.<span id="more-32"></span></p>
<p>Open notepad and type:</p>
<blockquote><p>rasdial [connection name] [username] [password]</p></blockquote>
<p>without the square brackets.</p>
<p>For example, If I have named my connection <strong>Dataone</strong>, my username is <strong>pranav</strong> and my password is <strong>iwonttellyoumypass</strong>, I’ll type</p>
<blockquote><p>rasdial Dataone pranav iwonttellyoumypass</p></blockquote>
<p>Got it? Now click on <strong>File</strong> -&gt; <strong>Save As… </strong></p>
<p>Type in <strong>Connect.bat</strong> as the file name, select the location.</p>
<p>Note: You need to select a place where you will keep it permanently, If you move this file later on, then it won’t connect automatically.</p>
<p>For making a batch file which disconnects, open notepad again, copy and paste the following:</p>
<blockquote><p>rasdial /disconnect</p></blockquote>
<p>Save this as <strong>Disconnect.bat</strong> in the same location as before(not necessary).</p>
<p>But we need to schedule the connection. So what we do is open the <strong>Scheduled Tasks</strong> program(Thought it was waste when you saw it somewhere in the start menu, did you? Well now that is coming to your rescue!!!)</p>
<p>Go to <strong>Start</strong> -&gt; <strong>All Programs</strong> -&gt; <strong>Accessories</strong> -&gt; <strong>System Tools</strong> -&gt; <strong>Scheduled  Tasks</strong></p>
<p>Double click <strong>Add Scheduled Task</strong> to open a wizard. Click Next &gt; Then click <strong>Browse</strong>, go to the location where you saved the <strong>Connect.bat</strong> file, click on it and then press open. Now select <strong>Daily</strong> and click next. Set the start time to 2:05 AM(This is the time when the night unlimited time starts. Since there can be uncertainty about when It becomes 2:00 AM for BSNL, we set a safe 2:05 AM or 2:10 AM) and press Next. Enter your Windows XP account password, if any, or else leave blank.</p>
<p>For those who didn’t enter a password:<br />
Press next, check <strong>Open advanced properties for this task when I click on Finish</strong> and press finish. In the advanced properties dialog box which pops up, check <strong>Run only if logged on</strong> option at the bottom of the box. Click apply and then ok.</p>
<p>For those who entered a password, click next and then click finish.</p>
<p>Now, your computer will automatically connect to the internet at 2:05 AM.</p>
<p>If you also want to schedule disconnecting, then repeat the above steps selecting <strong>Disconnect.bat</strong> and setting the start time to 7:55 AM.</p>
<p>Now you can keep your computer running and sleep peacefully. Sweet dreams!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=jbafurlyHug:2c7QUys2iH4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=jbafurlyHug:2c7QUys2iH4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=jbafurlyHug:2c7QUys2iH4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=jbafurlyHug:2c7QUys2iH4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=jbafurlyHug:2c7QUys2iH4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=jbafurlyHug:2c7QUys2iH4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=jbafurlyHug:2c7QUys2iH4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=jbafurlyHug:2c7QUys2iH4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/jbafurlyHug" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/07/scheduling-your-bsnl-broadband-connection-during-night-unlimited/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/07/scheduling-your-bsnl-broadband-connection-during-night-unlimited/</feedburner:origLink></item>
		<item>
		<title>Beginning Programming with Java: Installing JDK (for Windows)</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/oMg8xnxxCms/</link>
		<comments>http://pranavashok.com/blog/2009/07/beginning-programming-with-java-installing-jdk-for-windows/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 06:53:40 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Jazzed Up!]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Classpath]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JDK]]></category>
		<category><![CDATA[Path]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=34</guid>
		<description><![CDATA[This was first posted in my old, dead blog &#8220;Jazzed Up!&#8221; on Jan 28, 2008 11:17 AM
Wanted to learn java but never knew where to start? Well, if you have ever tried downloading the Java SE Development Kit (JDK), you might have found out that just installing it does not let you start programming right [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/vxFRHNqYVky2ZUXfEHuOhcmUUTI/0/da"><img src="http://feedads.g.doubleclick.net/~a/vxFRHNqYVky2ZUXfEHuOhcmUUTI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vxFRHNqYVky2ZUXfEHuOhcmUUTI/1/da"><img src="http://feedads.g.doubleclick.net/~a/vxFRHNqYVky2ZUXfEHuOhcmUUTI/1/di" border="0" ismap="true"></img></a></p><p><em>This was first posted in my old, dead blog &#8220;<strong>Jazzed Up!</strong>&#8221; on Jan 28, 2008 11:17 AM</em></p>
<p>Wanted to learn java but never knew where to start? Well, if you have ever tried downloading the Java SE Development Kit (JDK), you might have found out that just installing it does not let you start programming right away! There are a few things to be taken care of. For people who came here looking for instructions <em>after</em> downloading the JDK, skip to the <a href="http://pranavashok.com/#installation" target="_blank">installation part</a>.</p>
<p><strong>Step 1: Downloading the Java Development Kit</strong></p>
<p>For any programming language, you need to get some necessities in order to begin. For beginning programming in java, you’ll need the <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">Java Development Kit</a>. When I’m writing this, the latest version seems to be <strong><em>JDK 6 Update 4</em></strong>. So <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">download it</a>. If you are having problems downloading, I’ll outline the steps quickly.</p>
<p>Select platform: Windows, check <em>I agree to the Java SE Development Kit 6 License Agreement</em> (I doubt if anyone’s going to read this!?) and click <em>Continue</em>. Check the <strong>Windows Offline Installation</strong> and press <strong>Download Selected with Sun Download Manager</strong>. You’ll get a downlaod prompt for a .jnlp file. Either<span id="more-34"></span> open it on the fly or download it and open it. Now the Sun Download Manager will open. Cool, isn’t it? Enter your download destination and then finish off with the settings. Your download of the JDK will now start. In case it doesn’t start, press the <em>Start</em> button.</p>
<p><a title="installation" name="installation" target="_blank"></a><strong>Step 2: Installing the Java Development Kit</strong></p>
<p>To install the JDK, browse to the location where you had downloaded the JDK(most probably a file called <em>jdk-6u4-windows-i586-p.exe</em>) and double click on the it. Go through the normal installation process and then reboot(only if the installer asks you to).</p>
<p>You have installed all the files necessary for compiling and running your first java program, but it will be a bit tedious now. You will have to provide the full path to the java compiler (C:\Program Files\Java\jdk1.6.0_04\Bin) each time you compile a program. Do you want to do that? I don’t think so. So now, lets make the process easier by setting the PATH and the CLASSPATH. Don’t worry about what they are right now.</p>
<p><strong>Step 3: Setting the PATH and CLASSPATH</strong></p>
<p><span style="text-decoration: line-through;">1. Right click on the <strong>My Computer</strong> icon and click on <strong>Properties</strong>.</span></p>
<p><span style="text-decoration: line-through;">2. Open the <strong>Advanced</strong> tab and click on <strong>Environment Variables</strong>(wow! this is something new isn’t it?)</span></p>
<p><span style="text-decoration: line-through;">3. Click the <strong>New</strong> button for <strong>System Variables</strong>. Type the Variable name as</span></p>
<p><span style="text-decoration: line-through;"><em>JAVA_HOME</em></span></p>
<p><span style="text-decoration: line-through;">and the Variable value as</span></p>
<p><span style="text-decoration: line-through;"><em>C:\Program Files\Java\jdk1.6.0_04</em></span></p>
<p><span style="text-decoration: line-through;"><em>Please note that you need to type the location of your installation directory. It may vary on where you installed the JDK. So make sure you are typing the correct path.</em></span></p>
<p><span style="text-decoration: line-through;">Click OK to finish the process.</span></p>
<p><span style="text-decoration: line-through;">4. Now scroll down in System Variables itself to find <em>PATH</em>. Select it and click the edit button. <em>Warning! Do not delete the existing value</em></span></p>
<p><span style="text-decoration: line-through;">Add this to the beginning of Variable value</span></p>
<p><span style="text-decoration: line-through;"><em>.;%JAVA_HOME%\bin;</em></span></p>
<p><span style="text-decoration: line-through;">5. Click the <strong>New</strong> button again</span></p>
<p><span style="text-decoration: line-through;">Enter the Variable name as<br />
<em>CLASSPATH</em></span></p>
<p><span style="text-decoration: line-through;">And the Variable value<br />
<em>.;%JAVA_HOME%\lib\tools.jar</em></span></p>
<p><span style="text-decoration: line-through;">and finally click the OK button.</span></p>
<p><span style="text-decoration: line-through;">6. Apply the effect (Press OK for the Environment Variables windows, APPLY and the OK for the Advanced tab)</span></p>
<p><span style="text-decoration: line-through;">Finally, exit all windows (close all command prompt windows, if any) for the change to take place.</span></p>
<p>I just found a much better way to set the path. Here is what you have to do:</p>
<p>1. Open the Run dialog box by pressing <strong>Win</strong> + <strong>R</strong> or by clicking on <strong>Run</strong> from the start menu.</p>
<p>2. Type <strong>notepad C:\autoexec.bat </strong>and press enter.</p>
<p>3. Most probably, a blank notepad file would open. Type the following</p>
<blockquote><p><strong>set path = C:\Program Files\Java\jdk1.6.0_04\bin</strong></p></blockquote>
<p>and then save it.</p>
<p>4. Reboot your computer to start off writing your first program <img src='http://pranavashok.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong>Step 4: Testing a Program</strong></p>
<p>If you are new to java, you can test the your first java program by following the <a href="http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html#win32-2" target="_blank">instructions given here</a></p>
<p>In any case, here is a sample program if you’re to lazy to click on the link above</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> HelloApp <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> Args<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>”Hello World<span style="color: #339933;">!</span>”<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>I hope this tutorial could help you. If you like this, then be sure to <em>Stumble it</em>.</p>
<p>Cheers</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=oMg8xnxxCms:663Qd-4DXwk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=oMg8xnxxCms:663Qd-4DXwk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=oMg8xnxxCms:663Qd-4DXwk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=oMg8xnxxCms:663Qd-4DXwk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=oMg8xnxxCms:663Qd-4DXwk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=oMg8xnxxCms:663Qd-4DXwk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=oMg8xnxxCms:663Qd-4DXwk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=oMg8xnxxCms:663Qd-4DXwk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/oMg8xnxxCms" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/07/beginning-programming-with-java-installing-jdk-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/07/beginning-programming-with-java-installing-jdk-for-windows/</feedburner:origLink></item>
		<item>
		<title>BSNL Broadband: Port Forwarding Alternative</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/R25ngHpeo8s/</link>
		<comments>http://pranavashok.com/blog/2009/07/bsnl-broadband-port-forwarding-alternative/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 21:00:02 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Jazzed Up!]]></category>
		<category><![CDATA[Bridging]]></category>
		<category><![CDATA[Broadband]]></category>
		<category><![CDATA[BSNL]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Ports]]></category>
		<category><![CDATA[Torrents]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[uTorrent]]></category>
		<category><![CDATA[UTStarcom]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=30</guid>
		<description><![CDATA[This was posted on my old dead blog, Jazzed Up! on Oct 10, 2007 6:06 AM
Does your torrent downloads work properly? Is your µTorrent client downloading stuff at its maximum speed? Have people told you to “forward ports” and you never understand what they mean? Then this is the right article for you! In this [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/C0NjQ6fnIGnRF0snwUSv2INyJ64/0/da"><img src="http://feedads.g.doubleclick.net/~a/C0NjQ6fnIGnRF0snwUSv2INyJ64/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/C0NjQ6fnIGnRF0snwUSv2INyJ64/1/da"><img src="http://feedads.g.doubleclick.net/~a/C0NjQ6fnIGnRF0snwUSv2INyJ64/1/di" border="0" ismap="true"></img></a></p><p><em>This was posted on my old dead blog, <strong>Jazzed Up! </strong>on Oct 10, 2007 6:06 AM</em></p>
<p>Does your torrent downloads work properly? Is your µTorrent client downloading stuff at its maximum speed? Have people told you to “forward ports” and you never understand what they mean? Then this is the right article for you! In this post, I’ll explain how to remove the <img title="No incoming connections" src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/faq/yellownetwork.png" border="0" alt="No incoming connections" /> or the <img title="Unable to bind a listening socket" src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/faq/rednetwork.png" border="0" alt="Unable to bind a listening socket" /> signs in the status bar of µTorrent and get the <img title="All connection are OK!" src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/faq/greennetwork.png" border="0" alt="All connection are OK!" /> sign.</p>
<p><em>This guide is mainly for BSNL Broadband (formerly Dataone) users with the <strong>UTStarcom UT3000R2U</strong> router. The instructions given in this guide may/may not work for other routers. So think before you experiment. </em></p>
<p>When I entered the world of BSNL Broadband (around 2 months ago on plan 500, 2mbit), I was quite satisfied with the connection speeds. But within a day, I spotted that my µTorrent download speeds were lower than the speeds I used to get on my previous 256k connection. I was sad. Immediately, I began searching for a solution. I came across many discussion posts where people suggested <a href="http://portforward.com/" target="_blank">PortForward.com</a>.</p>
<p>I tried it out, but I never even found the page described in the screenshot. It took quite many days, but finally, I came across 2 methods to fix the problem <span id="more-30"></span>for those on the UTStarcom routers. So in this post, I’ll explain step by step, both the methods and help you fix the “port not forwarded” problem in µTorrent.</p>
<p><strong>Method I:<br />
</strong></p>
<p>1. Point your browser to http://192.168.1.1 (Note: Preferably use another browser, not the one that you are reading this post from)<br />
<a href="http://img530.imageshack.us/my.php?image=firstpagemp8.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img530/6379/firstpagemp8.th.png" border="0" alt="" /></a></p>
<p>2. Enter the both User Name and Password as <strong>admin</strong> and press OK.<br />
You will see something similar to this:<br />
<a href="http://img521.imageshack.us/my.php?image=loginyj4.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img521/6069/loginyj4.th.png" border="0" alt="" /></a></p>
<p>3. Click on Advanced Options in the sidebar and select <strong>NAT</strong> under it.<br />
<a href="http://img507.imageshack.us/my.php?image=beforenatlk6.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img507/160/beforenatlk6.th.png" border="0" alt="" /></a></p>
<p>4. You will see a field called <strong>DMZ Host IP Address:</strong></p>
<p>5. Open <strong>Start Menu -&gt; Run</strong>. Type <strong>cmd</strong> and press enter.<br />
<a href="http://img527.imageshack.us/my.php?image=runcmdam5.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img527/300/runcmdam5.th.png" border="0" alt="" /></a></p>
<p>6. Type  <strong>ipconfig /all</strong>. You will get something similar to this:<br />
<a href="http://img513.imageshack.us/my.php?image=ipconfigallch5.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img513/4046/ipconfigallch5.th.png" border="0" alt="" /></a></p>
<p>7. Search for your connection in this list and note down its IP Address. In my case, it was <strong>192.168.1.2</strong>. Most probably, you will also get the same.<br />
<a href="http://img507.imageshack.us/my.php?image=ipmarkednn8.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img507/9569/ipmarkednn8.th.png" border="0" alt="" /></a></p>
<p>8. Enter this IP Address into the <strong>DMZ Host IP Address: </strong> field and press Save/Apply.<br />
<a href="http://img530.imageshack.us/my.php?image=natoy6.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img530/1993/natoy6.th.png" border="0" alt="" /></a></p>
<p>9. Click on Advanced Setup (Sidebar) and press Save/Reboot. Wait for a minute and connect again.</p>
<p>10. Open µTorrent and try downloading something. If it didn’t work, redo your steps. If still it doesn’t work (very low chances), try Method II.</p>
<p><strong>Method II:</strong></p>
<p>This is a fast and easy method.</p>
<p>1. Repeat first two steps from Method I</p>
<p>2. Click on Advanced Options in the sidebar and press the edit button for your connection. Most probably the first one in the table.<br />
<a href="http://img522.imageshack.us/my.php?image=methodiifw4.png" target="_blank" rel="lightbox"><img src="http://www.jazzedup.info/wp-content/uploads/download.utorrent.com/img522/1220/methodiifw4.th.png" border="0" alt="" /></a></p>
<p>3. Click next for the <strong>ATM PVC Configuration</strong>.</p>
<p>4. Set the <strong>Connection Type</strong> to Bridging, leave <strong>Encapsulation Mode</strong> as <strong>LLC/SNAP-BRIDGING</strong> and press next.</p>
<p>5. Check <strong>Enable Bridge Service:</strong> (If unchecked) and press next.</p>
<p>6. Click on <strong>Save</strong>. Press <strong>Save/Reboot</strong>. Wait for a minute and connect again.</p>
<p>Congarts! Now their is nothing to prevent µTorrent from getting poor connections!</p>
<p>Hope this guide helped and please give some feedback.</p>
<p>Cheers!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=R25ngHpeo8s:0uY0WDqSefM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=R25ngHpeo8s:0uY0WDqSefM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=R25ngHpeo8s:0uY0WDqSefM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=R25ngHpeo8s:0uY0WDqSefM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=R25ngHpeo8s:0uY0WDqSefM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=R25ngHpeo8s:0uY0WDqSefM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=R25ngHpeo8s:0uY0WDqSefM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=R25ngHpeo8s:0uY0WDqSefM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/R25ngHpeo8s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/07/bsnl-broadband-port-forwarding-alternative/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/07/bsnl-broadband-port-forwarding-alternative/</feedburner:origLink></item>
		<item>
		<title>So Happy Today!</title>
		<link>http://feedproxy.google.com/~r/iRpranav/~3/6RjdI3jQrkI/</link>
		<comments>http://pranavashok.com/blog/2009/07/so-happy-today/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 20:10:09 +0000</pubDate>
		<dc:creator>Pranav</dc:creator>
				<category><![CDATA[Jazzed Up!]]></category>
		<category><![CDATA[Feeds]]></category>
		<category><![CDATA[Happy]]></category>

		<guid isPermaLink="false">http://pranavashok.com/blog/?p=28</guid>
		<description><![CDATA[I&#8217;m really really happy now. Basically because I discovered the feed of my old, dead blog (jazzedup.info) in Google Reader. And I&#8217;m able to see every post fully, since the time I began that blog. In the coming few days, I&#8217;ll be re-posting those articles which were great hits in Jazzed Up!. For easy reference, [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/dolsUXnpc17fsBwp5BUOSgSXKE0/0/da"><img src="http://feedads.g.doubleclick.net/~a/dolsUXnpc17fsBwp5BUOSgSXKE0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/dolsUXnpc17fsBwp5BUOSgSXKE0/1/da"><img src="http://feedads.g.doubleclick.net/~a/dolsUXnpc17fsBwp5BUOSgSXKE0/1/di" border="0" ismap="true"></img></a></p><p>I&#8217;m really really happy now. Basically because I discovered the <strong>feed</strong> of my old, dead blog (<strong>jazzedup.info</strong>) in <a href="http://www.google.com/reader/view/">Google Reader</a>. And I&#8217;m able to see every post <em>fully</em>, since the time I began that blog. In the coming few days, I&#8217;ll be re-posting those articles which were great hits in <strong>Jazzed Up!</strong>. For easy reference, the posts will be categorized to &#8220;<strong>Jazzed Up!</strong>&#8220;.</p>
<p>Have fun!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/iRpranav?a=6RjdI3jQrkI:IQ328a21MhA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=6RjdI3jQrkI:IQ328a21MhA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=6RjdI3jQrkI:IQ328a21MhA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=6RjdI3jQrkI:IQ328a21MhA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=6RjdI3jQrkI:IQ328a21MhA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=6RjdI3jQrkI:IQ328a21MhA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/iRpranav?i=6RjdI3jQrkI:IQ328a21MhA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/iRpranav?a=6RjdI3jQrkI:IQ328a21MhA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/iRpranav?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/iRpranav/~4/6RjdI3jQrkI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pranavashok.com/blog/2009/07/so-happy-today/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://pranavashok.com/blog/2009/07/so-happy-today/</feedburner:origLink></item>
	</channel>
</rss>
