<?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>/home/spsneo/blog</title>
	
	<link>http://spsneo.com/blog</link>
	<description>Tale of a linux addict!</description>
	<lastBuildDate>Tue, 02 Mar 2010 20:03:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</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/spsneo" /><feedburner:info uri="spsneo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>spsneo</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>IITG Webmail Extension – Auto Login Feature</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/M_AoEsL2qn4/</link>
		<comments>http://spsneo.com/blog/2010/03/03/iitg-webmail-extension-auto-login-feature/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 20:03:33 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Chrome]]></category>
		<category><![CDATA[IITG]]></category>
		<category><![CDATA[IITG webmail]]></category>
		<category><![CDATA[extension]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=115</guid>
		<description><![CDATA[
		
		
		
		Note: This post is only for currently enrolled IITG students.
Today I added a new feature to the &#8220;IITG webmail chrome extension&#8221; &#8211; Auto Login feature. Now you can save your username and password in the options page of the extension and enable auto-login. After enabling auto-login feature, whenever you open http://webmail.iitg.ernet.in, the extension will automatically [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2010/03/03/iitg-webmail-extension-auto-login-feature/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "IITG+Webmail+Extension+%26%238211%3B+Auto+Login+Feature";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><strong>Note: This post is only for currently enrolled IITG students.</strong></p>
<p>Today I added a new feature to the &#8220;<a href="https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob?hl=en-us">IITG webmail chrome extension</a>&#8221; &#8211; Auto Login feature. Now you can save your username and password in the options page of the extension and enable auto-login. After enabling auto-login feature, whenever you open <a href="http://webmail.iitg.ernet.in">http://webmail.iitg.ernet.in</a>, the extension will automatically redirect you to your inbox.</p>
<p>Check out the screenshots at the extension page: <a href="https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob?hl=en-us">https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob?hl=en-us</a></p>
<p>All those who are already using this extension can update it by clicking &#8220;Update extensions now&#8221; button in chrome://extensions page. New users can directly install the extension at: https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob?hl=en-us</p>
<p>Keep pouring in your feedback by posting comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2010/03/03/iitg-webmail-extension-auto-login-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2010/03/03/iitg-webmail-extension-auto-login-feature/</feedburner:origLink></item>
		<item>
		<title>Updated IITG Webmail Extension</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/jsQs6t8Uybs/</link>
		<comments>http://spsneo.com/blog/2010/02/28/updated-iitg-webmail-extension/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 08:39:34 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Chrome]]></category>
		<category><![CDATA[IITG]]></category>
		<category><![CDATA[IITG webmail]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[google chrome]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=112</guid>
		<description><![CDATA[
		
		
		
		Note: This post is for currently enrolled IITG students
I wrote about a chrome extension in my yesterday&#8217;s post. 1st and 2nd year students of IITG have different mail servers than Disang. They won&#8217;t be able to use the extension. So, I updated the extension. Now one can set the default mail server and save the [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2010/02/28/updated-iitg-webmail-extension/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Updated+IITG+Webmail+Extension";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><strong>Note: This post is for currently enrolled IITG students</strong></p>
<p>I wrote about a chrome extension in my <a title="IITG Webmail Chrome Extension" href="http://spsneo.com/blog/2010/02/27/google-chrome-extension-for-iitg-webmail/">yesterday&#8217;s post</a>. 1st and 2nd year students of IITG have different mail servers than Disang. They won&#8217;t be able to use the <a href="https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob?hl=en">extension</a>. So, I updated the extension. Now one can set the default mail server and save the option. Now, the extension works for all the mail servers.</p>
<p>Those who have already installed the extension can update it by clicking on the button &#8220;Update Extensions Now&#8221; button in the <a href="chrome://extensions" target="_blank">Chrome Extension page</a>. And those who have not yet installed the extension can install the updated version directly from : <a href="https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob?hl=en">https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob?hl=en</a></p>
<p>Keep pouring in your feedbacks in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2010/02/28/updated-iitg-webmail-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2010/02/28/updated-iitg-webmail-extension/</feedburner:origLink></item>
		<item>
		<title>Google Chrome Extension for IITG Webmail</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/0v2yEuKdn3c/</link>
		<comments>http://spsneo.com/blog/2010/02/27/google-chrome-extension-for-iitg-webmail/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 13:48:12 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Chrome]]></category>
		<category><![CDATA[IITG]]></category>
		<category><![CDATA[IITG webmail]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=108</guid>
		<description><![CDATA[
		
		
		
		NOTE: This post is for IITG students.
IITG webmail accounts are hosted on different servers for students, staff and faculty. So every time I open the page &#8211; http://webmail.iitg.ernet.in, I have to change the server to Disang. I wrote a simple chrome plugin to do this automatically, every time I visit this page.
It is simple to [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2010/02/27/google-chrome-extension-for-iitg-webmail/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Google+Chrome+Extension+for+IITG+Webmail";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>NOTE: This post is for IITG students.</p>
<p>IITG webmail accounts are hosted on different servers for students, staff and faculty. So every time I open the page &#8211; http://webmail.iitg.ernet.in, I have to change the server to Disang. I wrote a simple chrome plugin to do this automatically, every time I visit this page.</p>
<p>It is simple to use. You need to have the latest version of Google chrome installed. Once you have it, just click on this link: <a href="https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob">https://chrome.google.com/extensions/detail/ljfkohgffehmmfnmghdlbceidmddgdob</a> and then press &#8220;Install&#8221; button. And you are done. Now open the webmail page &#8211; <a href="http://webmail.iitg.ernet.in">http://webmail.iitg.ernet.in</a> and check out the selected server.</p>
<p>Send me feedback by commenting to this blog or at the plugin page.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2010/02/27/google-chrome-extension-for-iitg-webmail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2010/02/27/google-chrome-extension-for-iitg-webmail/</feedburner:origLink></item>
		<item>
		<title>Post Pidgin and Twitter status from command line</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/ZRleg7L7TSk/</link>
		<comments>http://spsneo.com/blog/2010/01/20/post-pidgin-and-twitter-status-from-command-line/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:52:16 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pidgin]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[microblogging]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[status message]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=104</guid>
		<description><![CDATA[
		
		
		
		I often want to post the same status message in Pidgin and Twitter. I wrote  simple bash script to accomplish this.
One can download the script from here: http://www.spsneo.com/scripts/poststatus.tar.gz
How to use it -
1) Change the permission of the file to make it executable:  chmod +x poststatus
2) Then execute the file with the status message as [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2010/01/20/post-pidgin-and-twitter-status-from-command-line/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Post+Pidgin+and+Twitter+status+from+command+line";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>I often want to post the same status message in Pidgin and Twitter. I wrote  simple bash script to accomplish this.</p>
<p>One can download the script from here: <a title="poststatus script" href="http://www.spsneo.com/scripts/poststatus.tar.gz">http://www.spsneo.com/scripts/poststatus.tar.gz</a></p>
<p>How to use it -</p>
<p>1) Change the permission of the file to make it executable: <code> chmod +x poststatus</code></p>
<p>2) Then execute the file with the status message as the argument: <code> ./poststatus "Status Message goes here in quotes"</code></p>
<p>3) The script will first post the status message in your pidgin and will then ask whether you want to post it on twitter.  If you say yes, the script asks you for your twitter username and password.</p>
<p>Start using the script and send me feedback to improve it.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2010/01/20/post-pidgin-and-twitter-status-from-command-line/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2010/01/20/post-pidgin-and-twitter-status-from-command-line/</feedburner:origLink></item>
		<item>
		<title>Bash History Tips and Tricks</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/h6IwlI2q4ak/</link>
		<comments>http://spsneo.com/blog/2009/09/19/bash-history-tips-and-tricks/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 18:48:35 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Man pages]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[History]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=96</guid>
		<description><![CDATA[
		
		
		
		Bash supports history expansion feature which can be very useful for powerful command-line users.
According to bash manual page -
History  expansions introduce words from the history list into the input stream, making it easy to repeat commands, insert the arguments to a previous command into the current input line, or fix errors in previous commands quickly.
History [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2009/09/19/bash-history-tips-and-tricks/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Bash+History+Tips+and+Tricks";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Bash supports history expansion feature which can be very useful for powerful command-line users.</p>
<p>According to bash manual page -</p>
<blockquote><p>History  expansions introduce words from the history list into the input stream, making it easy to repeat commands, insert the arguments to a previous command into the current input line, or fix errors in previous commands quickly.</p></blockquote>
<p>History expansion is composed of three parts -</p>
<ul>
<li><strong>Event Designators:</strong> It is a reference to an entry in the history list.</li>
<li><strong>Word Designators:</strong> It is used to select a word from the event.</li>
<li><strong>Modifiers:</strong> Modifies the word selected by the word designator or the action of the command.</li>
</ul>
<p>All the three parts are optional and are separated from each other by a : (colon). There can be multiple modifiers each separated by a : (colon).</p>
<p>Now I will explain each part one by one.</p>
<p><strong>Event Designators:</strong></p>
<ol>
<li><strong>! </strong>Start a history substitution, except when followed by a <strong>blank, </strong>newline, carriage return,  = or (</li>
<li><strong>!n </strong>It refers to n&#8217;th command in the history. So if you just type in<br />
<code>!68</code> at the command prompt, 68th command in your history list will be executed.</li>
<li><strong>!-n</strong> It refers to n&#8217;th command in the history from last. So if you just type in !-1 at the command prompt, last command will be executed.<strong> </strong></li>
<li><strong>!!</strong> is an alias for !-1.  Example:<br />
<code>$apt-get install gnome-ppp    //Permission Denied. You need to be sudo to do this!<br />
$sudo !!                      // This is equivalent to sudo apt-get install gnome-ppp</code><strong> </strong></li>
<li><strong>!<span style="text-decoration: underline;">string</span> </strong>It refers to the most recent command in the history starting with <span style="text-decoration: underline;">string</span>. It is again an useful expansion when you don&#8217;t remember the arguments to a command which you have executed earlier.</li>
<li><strong>!?<span style="text-decoration: underline;">string</span>[?] </strong>It refers to the most recent command containing <span style="text-decoration: underline;">string</span>. The trailing <strong>? </strong>may be omitted if <span style="text-decoration: underline;">string</span> is immediately followed by a newline.</li>
</ol>
<p><strong>Word Designators:</strong></p>
<ol>
<li><strong><span style="text-decoration: underline;">n</span> </strong>The <span style="text-decoration: underline;">n</span>th word, count starting from 0. 0th word normally refers to the command. Example:<br />
<code>$sudo cat /etc/resolv.conf     //Instead you want to edit the resolv.conf file<br />
$sudo vi !!:2                       //This is equivalent to sudo vi /etc/resolv.conf</code><strong> </strong></li>
<li><strong> ^ </strong>This refers to 1st word. This is equivalent to <strong>:1 </strong>as refered above. The only .advantage is that you can omit : (colon) when you use ^. Example:<br />
<code> $cat ~/.bashrc<br />
$vi !!^        //This is equivalent to "vi !!:1" that is vi ~/.bashrc<br />
</code></li>
<li>$ This refers to the last word.</li>
<li><span style="text-decoration: underline;"><strong>x</strong></span><strong>-<span style="text-decoration: underline;">y</span> </strong>This refers to a range of words; &#8216;<strong>-<span style="text-decoration: underline;">y</span></strong>&#8216; is equivalent to &#8216;0-y&#8217;.</li>
<li><strong>* </strong>This refers to all the words except the 0th one. This is helpful when you have to execute a command with all the arguments passed to the last command.</li>
<li><span style="text-decoration: underline;"><strong>x</strong></span><strong>* </strong>This is an alias for <span style="text-decoration: underline;">x</span>-$ .</li>
</ol>
<p>Note: If a word designator is used without an event specification, the last command in the history is used as the event. Example -<br />
<code>$cat ~/.bashrc<br />
$vi !:1</code> // This is equivalent to vi !!:1 or vi ~/.bashrc</p>
<p><strong>Modifiers:</strong></p>
<ol>
<li><strong>h</strong> This removes the trailing file name component, leaving the head. Example:<br />
<code>$cat /home/spsneo/.bashrc<br />
$ls !!:1:h </code>//This expands to <code>ls /home/spsneo</code>Explanation: !! refers to the last command and then :1 refers to the 1st word of the last command and then :h removes the trailing file name component i.e., .bashrc . Hence the expansion.</li>
<li><strong>t</strong> This removes all leading file name components, leaving the tail.</li>
<li><strong>r </strong>This removes the trailing suffix of the form <span style="text-decoration: underline;"><strong>.xxx</strong></span> , leaving the basename.</li>
<li><strong>p </strong>Print the new command but do not execute it.</li>
<li><strong>s/<span style="text-decoration: underline;">old</span>/<span style="text-decoration: underline;">new</span></strong> This substitutes the first occurrence of <span style="text-decoration: underline;">old</span> with <span style="text-decoration: underline;">new</span>. Example:<br />
<code>$cat /etc/resolv.conf<br />
$!!:s/resolv/yum</code> //This expands to <code>cat /etc/yum.conf</code><strong><code><br />
</code></strong></li>
<li><strong>g </strong>This is used in conjunction with &#8220;<strong>:s</strong>&#8221; modifier. This causes changes to be applied over the entire event line rather than just the first occurrence. Example:<br />
<code>$cat test.cpp test.h<br />
$!!:gs/test/source/ </code> //This expands to <code>cat source.cpp source.hh</code></li>
</ol>
<p>This is all I have to share about bash history expansion.</p>
<p>Do post comments if you find any mistake or if you want any further clarifications. One can also go through the bash manual pages for more options.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2009/09/19/bash-history-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2009/09/19/bash-history-tips-and-tricks/</feedburner:origLink></item>
		<item>
		<title>Set BING Background as your Desktop Wallpaper in GNOME</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/AzfJip0vpJc/</link>
		<comments>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 20:15:01 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[BING]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wallpaper]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=86</guid>
		<description><![CDATA[
		
		
		
		BING comes up with a beautiful background everyday. I thought why not set this background as my desktop wallpaper. But it would be a cumbersome task to set it manually. So I searched (Googled, BINGed) for some script which will do this for me. I found BING Downloader which does this task on Windows. I [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Set+BING+Background+as+your+Desktop+Wallpaper+in+GNOME";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><a title="BING " href="http://www.bing.com" target="_blank">BING</a> comes up with a beautiful background everyday. I thought why not set this background as my desktop wallpaper. But it would be a cumbersome task to set it manually. So I searched (Googled, BINGed) for some script which will do this for me. I found <a title="Bing Downloader" href="http://bing.codeplex.com/" target="_blank">BING Downloader</a> which does this task on Windows. I could not find any such script for GNOME. So, I thought of writing one.</p>
<p>I wrote a script which when executed automatically sets the GNOME wallpaper as BING background of the day. This is a PHP script. To execute this script you need to have php installed on your system. You can install php in Ubuntu as<br />
<code><br />
sudo apt-get install php5 php5-cli</code></p>
<p>Now you are all set to download this script. Download Link: <a title="Set BING background as GNOME Desktop wallpaper" href="http://www.spsneo.com/scripts/bing_wallpaper.tar.gz" target="_self">http://www.spsneo.com/scripts/bing_wallpaper.tar.gz</a></p>
<p>Download this file, extract the script file. Now you can run the script from terminal :<br />
<code> php bing_wallpaper.php </code></p>
<p>And your wallpaper is set. You can run this script daily from your terminal or you can set a cron job for the same or you can set up an icon in your gnome panel for this script.</p>
<p>I will keep updating this script. And I am also planning to write the same script in python. So check back again if you dont want to install php on your system.</p>
<p>Send your feedbacks and suggestions.</p>
<p><strong>Update 1:</strong> I have modified the script to work with http proxy. Just assure that the environment variable http_proxy is properly set.</p>
<p><strong>Update 2:</strong> Modified the script to keep the image centered on the desktop with black background. Try it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2009/07/18/set-bing-background-as-your-desktop-wallpaper-in-gnome/</feedburner:origLink></item>
		<item>
		<title>Open any file from terminal in Gnome</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/fRgmMt1B54U/</link>
		<comments>http://spsneo.com/blog/2009/04/05/open-any-file-from-terminal-in-gnome/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 05:34:15 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=83</guid>
		<description><![CDATA[
		
		
		
		I normally use terminals to navigate through directories in my computer. I often have to remember the executable filename of different applications to open files. Like to open a pdf file I have to remember evince, for an audio or video file &#8211; vlc. But its really difficult to remember executable filenames for all types [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2009/04/05/open-any-file-from-terminal-in-gnome/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Open+any+file+from+terminal+in+Gnome";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>I normally use terminals to navigate through directories in my computer. I often have to remember the executable filename of different applications to open files. Like to open a pdf file I have to remember evince, for an audio or video file &#8211; vlc. But its really difficult to remember executable filenames for all types of files. For example I don&#8217;t remember how to open a .xls file from command line.</p>
<p>There&#8217;s a command which open files using GNOME file handlers &#8211; &#8220;gnome-open&#8221;. Now, when I have to open any file I just type in &#8220;gnome-open &lt;filename&gt;&#8221;. Simple !</p>
<p>To make things more simple I have made an alias &#8216;go&#8217; for &#8216;gnome-open&#8217;. Now opening a file from terminal is as easy as typing &#8220;go &lt;filename&gt;&#8221; in terminal.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2009/04/05/open-any-file-from-terminal-in-gnome/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2009/04/05/open-any-file-from-terminal-in-gnome/</feedburner:origLink></item>
		<item>
		<title>Extract all Archive File Format With Just One Command in Linux</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/3lPMzTy4akA/</link>
		<comments>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 18:50:15 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[archive file]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=79</guid>
		<description><![CDATA[
		
		
		
		There are large number of archive file formats &#8211; .zip, .tar.gz, .tar, .gz, .7zip, .rar, etc etc..
I find it difficult to remember the command line options for extracting different archive file formats. So, I wrote a bash function which given a archive filename as an input extracts it.
Here&#8217;s the function :

extract () {
if [ -f [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Extract+all+Archive+File+Format+With+Just+One+Command+in+Linux";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>There are large number of archive file formats &#8211; .zip, .tar.gz, .tar, .gz, .7zip, .rar, etc etc..</p>
<p>I find it difficult to remember the command line options for extracting different archive file formats. So, I wrote a bash function which given a archive filename as an input extracts it.</p>
<p>Here&#8217;s the function :<br />
<code><br />
extract () {<br />
if [ -f $1 ] ; then<br />
case $1 in<br />
*.tar.bz2)      tar xjf $1      ;;<br />
*.tar.gz)        tar xzf $1      ;;<br />
*.bz2)           bunzip2 $1      ;;<br />
*.rar)             rar x $1          ;;<br />
*.gz)             gunzip $1               ;;<br />
*.tar)            tar xf $1               ;;<br />
*.tbz2)          tar xjf $1      ;;<br />
*.tgz)            tar xzf $1      ;;<br />
*.zip)             unzip $1                ;;<br />
*.z)               uncompress $1   ;;<br />
*)                  echo "'$1' cannot be extracted via extract ()"          ;;<br />
esac<br />
else<br />
echo "'$1' is not a valid file"<br />
fi<br />
}</code></p>
<p>This function is pretty self explanatory. But as it is not powerful. It becomes the ultimate tool for extractive archive files if you copy this function in you bashrc file (~/.bashrc).</p>
<p>Now you can simply extract any file like this:</p>
<p><code><br />
$extract test.tar.gz</code></p>
<p>Hope you like this function.</p>
<p>Note: This function doesn&#8217;t work with files have space in its name. I didn&#8217;t waste time in solving this issue as I normally don&#8217;t use such filenames. If any of you solve this issue, please do let me know. I would include it with your name in this post. <img src='http://spsneo.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/</feedburner:origLink></item>
		<item>
		<title>Google Search Now With Wiki Features</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/6N7h8TMZFvA/</link>
		<comments>http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 07:47:42 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Search Feature]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=73</guid>
		<description><![CDATA[
		
		
		
		Today, I suddenly saw a new feature of Google search. One can now promote a search result, comment on a search result or remove a search result. Take a look below :
 

I am sure this feature will help Google provide better and more personalized results !
Happy Googling !
]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Google+Search+Now+With+Wiki+Features";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Today, I suddenly saw a new feature of Google search. One can now promote a search result, comment on a search result or remove a search result. Take a look below :</p>
<p> </p>
<p><img class="alignnone size-full wp-image-74" title="google" src="http://spsneo.com/blog/wp-content/uploads/2008/12/google.jpg" alt="google" width="627" height="670" /></p>
<p>I am sure this feature will help Google provide better and more personalized results !</p>
<p>Happy Googling !</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2008/12/15/google-search-now-with-wiki-features/</feedburner:origLink></item>
		<item>
		<title>Windows Live Writer !</title>
		<link>http://feedproxy.google.com/~r/spsneo/~3/9yvogcWBStM/</link>
		<comments>http://spsneo.com/blog/2008/12/07/windows-live-writer/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 14:17:50 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[blogging]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/2008/12/07/windows-live-writer/</guid>
		<description><![CDATA[
		
		
		
		 
Yeah I am using Windows vista for the first time today. I am loving some cool tools. I am posting from Windows Live writer !
Windows is also not that bad !
Technorati Tags: Windows,Blogging
]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://spsneo.com/blog/2008/12/07/windows-live-writer/";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Windows+Live+Writer+%21";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p> </p>
<p>Yeah I am using Windows vista for the first time today. I am loving some cool tools. I am posting from Windows Live writer !</p>
<p>Windows is also not that bad !</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c37c269a-a5ac-483f-a9e2-9742fa444964" class="wlWriterSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Windows">Windows</a>,<a rel="tag" href="http://technorati.com/tags/Blogging">Blogging</a></div>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/12/07/windows-live-writer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://spsneo.com/blog/2008/12/07/windows-live-writer/</feedburner:origLink></item>
	</channel>
</rss>
