<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/home/spsneo/blog &#187; Uncategorized</title>
	<atom:link href="http://spsneo.com/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://spsneo.com/blog</link>
	<description>Trying to move every bit to cloud.</description>
	<lastBuildDate>Fri, 19 Aug 2011 16:43:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Extract all Archive File Format With Just One Command in Linux</title>
		<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/</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[bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></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 &#8230; <a href="http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<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>
		</item>
		<item>
		<title>Dual Monitor with Nvidia in Ubuntu Hardy : A PhotoBlog</title>
		<link>http://spsneo.com/blog/2008/08/01/dual-monitor-with-nvidia-in-ubuntu-hardy-a-photoblog/</link>
		<comments>http://spsneo.com/blog/2008/08/01/dual-monitor-with-nvidia-in-ubuntu-hardy-a-photoblog/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 16:02:28 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=23</guid>
		<description><![CDATA[Yesterday I bought my new 21.6&#8243; LG LCD. Now, I have two LCDs one 20.1&#8243; and the other one 21.6&#8243;. Here are few snaps and a screenshot. Enjoy  watching Here&#8217;s the screenshot. Click to see the full size image. Cool &#8230; <a href="http://spsneo.com/blog/2008/08/01/dual-monitor-with-nvidia-in-ubuntu-hardy-a-photoblog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday I bought my new 21.6&#8243; LG LCD. Now, I have two LCDs one 20.1&#8243; and the other one 21.6&#8243;. Here are few snaps and a screenshot. Enjoy  watching <img src='http://spsneo.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.spsneo.com/images/dual1.jpg"><img src="http://www.spsneo.com/images/dual1.jpg" alt="" width="750" height="470" /></a></p>
<p><a href="http://www.spsneo.com/images/dual2.jpg"><img src="http://www.spsneo.com/images/dual2.jpg" alt="" width="750" height="470" /></a></p>
<p><a href="http://www.spsneo.com/images/dual3.jpg"><img src="http://www.spsneo.com/images/dual3.jpg" alt="" width="750" height="470" /></a></p>
<p><a href="http://www.spsneo.com/images/dual4.jpg"><img src="http://www.spsneo.com/images/dual4.jpg" alt="" width="750" height="470" /></a></p>
<p>Here&#8217;s the screenshot. Click to see the full size image.</p>
<p><a href="http://www.spsneo.com/images/dual5.png"><img src="http://www.spsneo.com/images/dual5_clip.jpg" alt="" width="803" height="349" /></a><br />
Cool Workspace !! Ain&#8217;t it ?</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/08/01/dual-monitor-with-nvidia-in-ubuntu-hardy-a-photoblog/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Gedit : A Powerful Light-Weight IDE</title>
		<link>http://spsneo.com/blog/2008/07/15/gedit-a-powerful-light-weight-ide/</link>
		<comments>http://spsneo.com/blog/2008/07/15/gedit-a-powerful-light-weight-ide/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 05:25:38 +0000</pubDate>
		<dc:creator>spsneo</dc:creator>
				<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gedit]]></category>

		<guid isPermaLink="false">http://spsneo.com/blog/?p=9</guid>
		<description><![CDATA[Gedit can be transformed into a powerful light-weight IDE. Before I tell you the steps take a look at the screenshot of my gedit: Now, if you are convinced that you also want to customize gedit read on &#8230;.. Step &#8230; <a href="http://spsneo.com/blog/2008/07/15/gedit-a-powerful-light-weight-ide/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Gedit can be transformed into a powerful light-weight IDE.</p>
<p>Before I tell you the steps take a look at the screenshot of my gedit:</p>
<p><a href="http://spsneo.com/blog/wp-content/uploads/2008/07/screenshot11.png"><img class="alignnone size-medium wp-image-10" title="gedit IDE" src="http://spsneo.com/blog/wp-content/uploads/2008/07/screenshot11-300x229.png" alt="gedit IDE" width="300" height="229" /></a></p>
<p>Now, if you are convinced that you also want to customize gedit read on &#8230;..</p>
<p><strong>Step 1</strong>: Go to edit-&gt;Preferences and tick the options :</p>
<ul>
<li>Display line numbers</li>
<li>Highlight current line</li>
<li>Highlight matching bracket</li>
</ul>
<p><strong>Step 2</strong>:  Click the &#8216;Editor&#8217; tab in the preferences dialog box. Tick the option :</p>
<ul>
<li>Enable Automatic indentation</li>
<li>[optional] change tab width to 4 or whatever width you think is appropriate for you.</li>
</ul>
<p><strong>Step 3</strong>: Download the darkmate theme : <a title="gedit darkmate theme" href="http://grigio.org/files/darkmate.xml">http://grigio.org/files/darkmate.xml</a> Save the xml file on your desktop. Click the &#8216;Font &amp; Colors&#8217; tab in the Preferences dialog box. Click the Add button and then add the xml file downloaded just now. Darkmate theme should now be in the list of Color Scheme. Select the Darkmate theme. Or you can select any Color Scheme you like. You can get more themes from <a href="http://live.gnome.org/GtkSourceView/StyleSchemes">http://live.gnome.org/GtkSourceView/StyleSchemes</a></p>
<p><strong>Step 4</strong>: Now install the package gedit-plugins . This can be accomplished by</p>
<p>$ sudo aptitude install gedit-plugins</p>
<p>(in Debian based system)</p>
<p>or</p>
<p>$ su</p>
<p># yum install gedit-plugins</p>
<p>(in rpm based system)</p>
<p>After installing the gedit-plugins package open the tab &#8216;Plugins&#8217; in the Preferences dialog box.</p>
<p>Tick the following plugins:</p>
<ul>
<li>Bracket Completion &#8211; This will automatically print right brackt/parantheses for every left counterpart.</li>
<li>Code Comment &#8211; This plugin helps you in commenting a block of code</li>
<li>[optional] Color Picker &#8211; This is helpful for web designers to get the color code.</li>
<li>Draw Spaces &#8211; This plugin will draw an arrow for every tab and one dot for every space. You can configure the color of the space or tab by clicking the &#8220;Configure Plugin&#8221;</li>
<li>Embedded Terminal &#8211; This will embed a gnome-terminal at the bottom of your gedit window.</li>
<li>Execute Tools</li>
<li>File Browser Pane</li>
<li>Indent Lines &#8211; This plugin helps you in indenting a block of code.</li>
<li>Session Saver &#8211; This plugin helps you save different sessions.</li>
</ul>
<p>You can check out other plugins according to your need.</p>
<p><strong>Step 5</strong> : You can get more gedit plugins like &#8220;Word Completion&#8221; and many more useful 3rd party plugins on this page &#8211; <a href="http://live.gnome.org/Gedit/Plugins">http://live.gnome.org/Gedit/Plugins</a></p>
<p>Download whatever plugin you wish and just place the extracted files in ~/.gnome2/gedit/plugins</p>
<p>You are done !</p>
<p>P.S: Please let me know if you find a useful plugin for gedit.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsneo.com/blog/2008/07/15/gedit-a-powerful-light-weight-ide/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

