<?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>Intelligrape  Groovy &#38; Grails Blogs &#187; System</title>
	<atom:link href="http://www.intelligrape.com/blog/category/system/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.intelligrape.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 07:48:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
			<title>Intelligrape  Groovy &amp; Grails Blogs</title>
			<url>http://www.intelligrape.com/blog/wp-content/uploads/2011/05/favicon2.ico</url>
			<link>http://www.intelligrape.com/blog</link>
			<width></width>
			<height></height>
			<description></description>
		</image>		<item>
		<title>Increasing the connection timeout between browser and the tomcat server</title>
		<link>http://www.intelligrape.com/blog/2011/12/21/increasing-the-connection-timeout-between-browser-and-the-tomcat-server/</link>
		<comments>http://www.intelligrape.com/blog/2011/12/21/increasing-the-connection-timeout-between-browser-and-the-tomcat-server/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 12:38:36 +0000</pubDate>
		<dc:creator>Tarun Pareek</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[server configuration]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=4785</guid>
		<description><![CDATA[Hi,

There is a case stuck recently in my project where i need to increase the connection timeout between browser and the server, because of the reason before the response get completed server leave the connection which result in no response. My colleague Himanshu told me to change the setting in server.xml, which help in my [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
<br />
There is a case stuck recently in my project where i need to increase the connection timeout between browser and the server, because of the reason before the response get completed server leave the connection which result in no response. My colleague <a href="http://www.intelligrape.com/blog/author/himanshu/">Himanshu</a> told me to change the setting in server.xml, which help in my purpose.<br />
<br />
To increase the connection timeout on tomcat server follow the following steps :<br />
<br />
1. Open the file server.xml residing in tomcat6/conf/.<br />
2. You just need to set variable connectionTimeout in it to Value in Milliseconds.(i.e 1000 milliseconds = 1 second)<br />
<br />
For example :<br />
<br />
File : server.xml</p>
<pre class="brush: java;">
&lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot;  connectionTimeout=&quot;20000&quot; URIEncoding=&quot;UTF-8&quot;            redirectPort=&quot;8443&quot; /&gt;</pre>
<p>
I thought it will be useful to share, hope it helps.<br />
&nbsp;<br />
</p>
<p>Thanks,<br />
Tarun Pareek<br />
tarun@intelligrape.com<br />
<a href="http://in.linkedin.com/in/tarunpareek">http://in.linkedin.com/in/tarunpareek</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/12/21/increasing-the-connection-timeout-between-browser-and-the-tomcat-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Speeding up Ubuntu</title>
		<link>http://www.intelligrape.com/blog/2011/12/06/speeding-up-ubuntu/</link>
		<comments>http://www.intelligrape.com/blog/2011/12/06/speeding-up-ubuntu/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 06:37:44 +0000</pubDate>
		<dc:creator>manoj</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Swap]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=4596</guid>
		<description><![CDATA[Of-late my laptop has been highly responsive &#8230;. as responsive as a sloth can be&#8230; 
I mean you wouldn&#8217;t be expecting an Intel i5 Processor with 4GB Ram and 500GB hard disk making you go for a coffee break every time you had to build or compile your code.
I am sure many of you must [...]]]></description>
			<content:encoded><![CDATA[<p>Of-late my laptop has been highly responsive &#8230;. as responsive as a sloth can be&#8230; <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
I mean you wouldn&#8217;t be expecting an Intel i5 Processor with 4GB Ram and 500GB hard disk making you go for a coffee break every time you had to build or compile your code.<br />
I am sure many of you must have experienced some form of lag with your Ubuntu (I am using 11.10&#8230; But I did experience some form of lag with 10x series also).</p>
<p style="padding-bottom: 10px">
<p>So in this blog post I&#8217;ll be discussing some ways that you can follow to speed up your Ubuntu</p>
<p style="padding-bottom: 20px">
<p><strong>1). Disable StartUp Apps the Smarter Way </strong></p>
<p style="padding-bottom: 10px">
<p>Now when I started up StartUp Applications on a my <strong>Ubuntu 11.10</strong> installation, all you can see are a mere 5-6 apps. Mine Actually had a whole lot more that were run at start up but are simply not shown like Yakuake,  Gwibber, Desktop Sharing Sevrer, Bluetooth Manager etc.<strong> Ubuntu 11.04</strong> was somewhat better where you could see most apps but still not all that would be let loose at startup. Using the following commands, I was able to enable all apps running at startup to be shown here.</p>
<pre class="brush: bash;">cd /etc/xdg/autostart</pre>
<pre class="brush: bash;">sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop</pre>
<p>Once that was done, restarting Startup Applications now showed all the apps that were running at startup. Just read the description once and decide whether you want to keep it at startup or not.</p>
<p style="padding-bottom: 10px">
<div id="attachment_4601" class="wp-caption alignleft" style="width: 336px"><a href="http://www.intelligrape.com/blog/wp-content/uploads/2011/12/Screenshot-at-2011-12-01-14_31_08.png"><img class="size-full wp-image-4601 " src="http://www.intelligrape.com/blog/wp-content/uploads/2011/12/Screenshot-at-2011-12-01-14_31_08.png" alt="" width="326" height="263" /></a><p class="wp-caption-text">Startup Applications shown Initially</p></div>
<div id="attachment_4622" class="wp-caption alignright" style="width: 336px"><a href="http://www.intelligrape.com/blog/wp-content/uploads/2011/12/Screenshot-at-2011-12-01-153045.png"><img class="size-full wp-image-4622    " src="http://www.intelligrape.com/blog/wp-content/uploads/2011/12/Screenshot-at-2011-12-01-1530451.png" alt="Startup Applications Now Showing Full List" width="326" height="263" /></a><p class="wp-caption-text">Startup Applications Now Showing Full List</p></div>
<p style="padding-bottom: 20px">
<p style="padding-bottom: 20px">
<p style="padding-bottom: 20px">
<p style="padding-bottom: 20px;text-align: center"><img class="aligncenter size-full wp-image-4623" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/12/Screenshot-at-2011-12-01-1530452.png" alt="" width="37" height="38" /></p>
<p style="padding-bottom: 190px">
<p style="padding-bottom: 20px"><strong><em>rcconf</em></strong> is another tool that can be used but I found this method much more comprehensive and user friendly.</p>
<p style="padding-bottom: 10px"><strong>2). Swappiness is inversely proportional to Happiness <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </strong></p>
<p><a title="Swappiness" href="http://en.wikipedia.org/wiki/Swappiness">Swappiness</a> is a property for the Linux Kernel that decides on how often to use the swap space. Most of the laptops today are equipped with 3-4 GB of Ram. So the principle of having double the swap space w.r.t to your memory size seems a bit outdated to me. Even though there was plenty of Ram available, my OS insisted on using the swap space, which in turn decreased responsiveness.<br />
So I then moved on to change the swappiness value(Range:0-100,  Default: 60)<br />
Since I had a decent amount of RAM that could handle almost anything that was thrown at it, I decreased the swappiness quotient to 20.<br />
To check the current swappiness value just type the following..</p>
<pre class="brush: bash;"> cat /proc/sys/vm/swappiness </pre>
<p>Next to adjust the value swappiness value open</p>
<pre class="brush: bash;"> sudo vim /etc/sysctl.conf </pre>
<p>Search for vm.swappiness and to change it to a desired value.If it is not present just add it to the end of the file. 10 is the figure that is mentioned on many forums, but I decided to play a bit safe and kept it a 20. Simply restart your system for the changes to take effect.</p>
<p style="padding-bottom: 20px">
<p><strong>3). Reload Swap contents to Memory</strong></p>
<p style="padding-bottom: 10px">
<p>Although I felt that decreasing the swappiness quotient did work for my computer,  it is still possible that your computer swaps. This can hurt the multitasking performance of your system.<br />
I found this script that you can use to to get the swap manually back into RAM.</p>
<pre class="brush: bash;">err=&quot;not enough RAM to write swap back, nothing done&quot;
mem=`free|grep Mem:|awk '{print $4}'`
swap=`free|grep Swap:|awk '{print $3}'`
test $mem -lt $swap &amp;&amp; echo -e $err &amp;&amp; exit 1
swapoff -a &amp;&amp; swapon -a &amp;&amp;
exit 0
</pre>
<p>And place it at somwehere like</p>
<pre class="brush: bash;">  /usr/local/sbin/swap2ram.sh </pre>
<p>Once you execute the script, it will transfer all your swap contents back to Memory, and free up your swap space. What it essentially does is turn off  swap space forcing everything back into RAM and turning it back on.</p>
<p style="padding-bottom: 20px">
<p>There are many more things that you can do to tweak up the speed of your computer, though I felt these 3 steps helped me a lot.<br />
Hope this Helps <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="padding-bottom: 20px">
<div>Manoj Mohan</div>
<div>manoj<span style="text-decoration: line-through">(at)</span>intelligrape<span style="text-decoration: line-through">(dot)</span>com</div>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/12/06/speeding-up-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to delete all contents/objects of Amazon S3 bucket</title>
		<link>http://www.intelligrape.com/blog/2011/11/12/how-to-delete-all-contentsobjects-of-amazon-s3-bucket/</link>
		<comments>http://www.intelligrape.com/blog/2011/11/12/how-to-delete-all-contentsobjects-of-amazon-s3-bucket/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 13:46:32 +0000</pubDate>
		<dc:creator>Deepak Mittal</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[s3]]></category>
		<category><![CDATA[s3cmd]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=4480</guid>
		<description><![CDATA[If you have an S3 bucket with a huge number of files, and you want to delete the bucket, you need to empty the bucket first. If the bucket has a handful of files, then it is easy enough from the AWS interface, but if the bucket has a large number of files, then AWS [...]]]></description>
			<content:encoded><![CDATA[<p>If you have an S3 bucket with a huge number of files, and you want to delete the bucket, you need to empty the bucket first. If the bucket has a handful of files, then it is easy enough from the AWS interface, but if the bucket has a large number of files, then <a href="http://aws.amazon.com" target="_blank">AWS interface</a> is not an option; and you must use <a href="http://s3tools.org/s3cmd">s3cmd</a> or may be some other tool which allows this.<br />
</br><br />
s3cmd is a command-line tool for manipulating S3 buckets and objects; and as you would expect, it does have a way to recursively delete all objects in a bucket.<br />
</br></p>
<div id="_mcePaste"><strong><em>s3cmd del &#8211;recursive &#8211;force &lt;bucket_url&gt;</em></strong></div>
<p></br></p>
<div>What&#8217;s annoying is that S3 does not provide this capability natively. The above command probably simply lists all the objects first internally; and then makes a delete call on each object.</div>
<p></br>It took me a while to figure this out, because it does not seem to be documented, I found this in one of the comments on <a href="http://s3tools.org/s3cmd" target="_blank">S3cmd page</a>.<br />
</br>-Deepak</p>
<p></br></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/11/12/how-to-delete-all-contentsobjects-of-amazon-s3-bucket/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing CloneZilla on USB drive using Ubuntu.</title>
		<link>http://www.intelligrape.com/blog/2011/10/22/installing-clonezilla-on-usb-drive-using-ubuntu/</link>
		<comments>http://www.intelligrape.com/blog/2011/10/22/installing-clonezilla-on-usb-drive-using-ubuntu/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 19:29:47 +0000</pubDate>
		<dc:creator>Hitesh Bhatia</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[7zip]]></category>
		<category><![CDATA[Clonezilla]]></category>
		<category><![CDATA[Install from USB]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[installation under 5 minutes]]></category>
		<category><![CDATA[repetitive installations]]></category>
		<category><![CDATA[tuxboot]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=4393</guid>
		<description><![CDATA[Clonezilla is a software that allows you to do bare metal backup and recovery.
To install Clonezilla we would need following Softwares, all of which are available freely.

 7zip ( p7zip-full_9.04~dfsg.1-1_i386.deb)
Tuxboot (tuxboot-linux-8 )
Clonezilla (clonezilla-live-1.2.6-40-i686.iso)

Here are the steps to install CloneZilla

 Install 7zip  required to install Tuxboot

sudo dpkg -i p7zip-full_9.04~dfsg.1-1_i386.deb
It would show something like
(Reading database &#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Clonezilla is a software that allows you to do bare metal backup and recovery.</p>
<p>To install Clonezilla we would need following Softwares, all of which are available freely.</p>
<ol>
<li> 7zip ( p7zip-full_9.04~dfsg.1-1_i386.deb)</li>
<li>Tuxboot (tuxboot-linux-8 )</li>
<li>Clonezilla (clonezilla-live-1.2.6-40-i686.iso)</li>
</ol>
<p>Here are the steps to install CloneZilla</p>
<ol>
<li> Install 7zip  required to install Tuxboot
<ol>
<li>sudo dpkg -i p7zip-full_9.04~dfsg.1-1_i386.deb</li>
<li>It would show something like</li>
<li>(Reading database &#8230; 168886 files and directories currently installed.)</li>
<li>Preparing to replace p7zip-full 9.04~dfsg.1-1 (using p7zip-full_9.04~dfsg.1-1_i386.deb) &#8230;</li>
<li>Unpacking replacement p7zip-full &#8230;</li>
<li>Setting up p7zip-full (9.04~dfsg.1-1) &#8230;</li>
<li>Processing triggers for man-db …</li>
<li>And Step 1 is done. 7Zip is Installed.</li>
</ol>
</li>
</ol>
<p style="padding-left: 30px">2. Run tuxboot</p>
<ol>
<ol>
<li>By default tuxboot is not executable , change it permission to make it.</li>
<li>chmod +x tuxboot-linux-8</li>
<li>Run tuxboot with sudo permission</li>
<li>sudo ./tuxboot-linux-8</li>
<li>Set the values as shown in image</li>
</ol>
</li>
</ol>
<ol>
<p style="padding-left: 90px">
<p><img src="http://www.intelligrape.com/blog/wp-content/uploads/2011/10/image.png" alt="Step 5 - Installing Clonezilla" /></p>
<p style="padding-left: 90px">5.1. Select Diskimage – then in adjacent dropdown select iso<br />
5.2. And then select the clonezilla image ( the one you downloaded)<br />
5.3. Type – usb drive<br />
5.4. Press “OK” . And let it complete. It will ask to reboot afterwards , but you can also reboot later</p>
</ol>
<p style="padding-left: 30px">3. And your clonezilla usb is ready now. You may now use it to clone systems.</p>
<p style="padding-left: 30px">
<div>_________________________________</div>
<div>Hitesh Bhatia<br />
<a href="http://in.linkedin.com/in/bhatiahitesh" target="_blank">Mail,LinkedIn</a>,<a href="http://www.facebook.com/home.php?#%21/profile.php?id=100000114437286" target="_blank">Facebook</a>,<a href="http://twitter.com/d1_ricky" target="_blank">Twitter</a><br />
_________________________________</div>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/10/22/installing-clonezilla-on-usb-drive-using-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing Productivity With The Right Hardware</title>
		<link>http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/</link>
		<comments>http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 13:06:18 +0000</pubDate>
		<dc:creator>Kushal Likhi</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[hardware improvements]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=4143</guid>
		<description><![CDATA[Recently i upgraded my laptop to increase the productivity and to make it butterSmooth to work on even with the most demanding applications.
so here is what i did:
1) New High Speed Solid State Hard Drive
2) Increased RAM.
.
why SSD???
CPUs and GPUs thrive on being fed massive amounts of data in parallel, our hard drives aren’t so [...]]]></description>
			<content:encoded><![CDATA[<p>Recently i upgraded my laptop to increase the productivity and to make it butterSmooth to work on even with the most demanding applications.<br />
so here is what i did:</p>
<p>1) New High Speed Solid State Hard Drive</p>
<p>2) Increased RAM.</p>
<p>.</p>
<p><strong>why SSD???</strong></p>
<p>CPUs and GPUs thrive on being fed massive amounts of data in parallel, our hard drives aren’t so appreciative of our multitasking demands. And this is where SSDs truly shine.</p>
<p>SSD&#8217;s have high Read/Write speeds, which just makes the FILE I/O operations lightning fast.</p>
<p>It also helps in best utilization of your CPU, as it quenches the CPU&#8217;s thirst for data to be processed.</p>
<p><strong>Why RAM??</strong></p>
<p>I used to experience that if you run a grails application and open few instances of IDEA in your 64bit system, it used to go on swap, hence a couple of Gigs of extra RAM will not harm .. <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>.</p>
<p><strong>Hardware Aquired:</strong></p>
<p>1) OCZ Vertex 2 40GB SSD &#8211; Rs.5000/-</p>
<p>2) 4GB DDR-3 Kingston Laptop RAM: Rs.1300/-</p>
<p>3) 2.5&#8243; External SATA Casing: Rs.200/-</p>
<p>.</p>
<p><strong>Installation:</strong></p>
<p>its Petty simple, Just 2 steps procedure.</p>
<p>1) Remove the old Ram and HDD</p>
<p>2) Install the new Ones.. <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>And the Extracted 500GB HDD from my Laptop is converted into an External USB 500GB HDD using the 2.5&#8243; HDD Casing. Hurray&#8230;</strong> <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>.</p>
<p>The Exact Steps are as follows:</p>
<p>1) Open the Laptop Back Cover</p>
<p>2) Remove HDD mounting screws</p>
<p>3) Remove OLD HDD</p>
<p>4) install the new SSD</p>
<p>5) Remove one existing 2GB RAM if no empty RAM slot present</p>
<p>6) Install new 4GB Ram</p>
<p>7) Close the Lid</p>
<p> <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> All Done.. install requires OS/Softwares to your new SSD</p>
<p>Here are the illustrations:</p>

<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011003/' title='03092011(003)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011003.jpg" class="attachment-thumbnail" alt="The SSD Packing" title="03092011(003)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011009/' title='03092011(009)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011009.jpg" class="attachment-thumbnail" alt="SSD Unboxed/Content" title="03092011(009)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011011/' title='03092011(011)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011011.jpg" class="attachment-thumbnail" alt="The SSD Top View" title="03092011(011)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011012/' title='03092011(012)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011012.jpg" class="attachment-thumbnail" alt="The SSD Bottom View" title="03092011(012)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011013/' title='03092011(013)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011013.jpg" class="attachment-thumbnail" alt="Take Out the Battery before start" title="03092011(013)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011015/' title='03092011(015)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011015.jpg" class="attachment-thumbnail" alt="Back RAM/HDD Cover Opened" title="03092011(015)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011016/' title='03092011(016)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011016.jpg" class="attachment-thumbnail" alt="Unscrew HDD Mount" title="03092011(016)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011018/' title='03092011(018)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011018.jpg" class="attachment-thumbnail" alt="Remove Old HDD" title="03092011(018)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011020/' title='03092011(020)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011020.jpg" class="attachment-thumbnail" alt="Installed New SSD" title="03092011(020)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011021/' title='03092011(021)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011021.jpg" class="attachment-thumbnail" alt="Remove Old Ram to free a Slot" title="03092011(021)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011022/' title='03092011(022)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011022.jpg" class="attachment-thumbnail" alt="RAM Removed" title="03092011(022)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011023/' title='03092011(023)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011023.jpg" class="attachment-thumbnail" alt="New 4GB Ram to be installed" title="03092011(023)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011025/' title='03092011(025)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011025.jpg" class="attachment-thumbnail" alt="RAM Placed in Empty Socket" title="03092011(025)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011027/' title='03092011(027)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011027.jpg" class="attachment-thumbnail" alt="Put the Lid Back.. :)" title="03092011(027)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011029/' title='03092011(029)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011029.jpg" class="attachment-thumbnail" alt="2.5&quot; SATA Casing" title="03092011(029)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011030/' title='03092011(030)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011030.jpg" class="attachment-thumbnail" alt="Contents of SATA Casing Pack" title="03092011(030)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011031/' title='03092011(031)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011031.jpg" class="attachment-thumbnail" alt="Open The Casing Remove SATA-USB Bridge" title="03092011(031)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011032/' title='03092011(032)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011032.jpg" class="attachment-thumbnail" alt="Connect Bridge to Extracted HDD" title="03092011(032)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011033/' title='03092011(033)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011033.jpg" class="attachment-thumbnail" alt="Put HDD and Bridge in Metal Casing" title="03092011(033)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011035/' title='03092011(035)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011035.jpg" class="attachment-thumbnail" alt="close the Casing and Screw It." title="03092011(035)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011036/' title='03092011(036)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011036.jpg" class="attachment-thumbnail" alt="A Leather pouch for the HDD" title="03092011(036)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011038/' title='03092011(038)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011038.jpg" class="attachment-thumbnail" alt="The Old Removed HDD is now Ready as an External HDD ;)" title="03092011(038)" /></a>
<a href='http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/attachment/03092011041/' title='03092011(041)'><img width="150" height="112" src="http://www.intelligrape.com/blog/wp-content/uploads/2011/09/03092011041.jpg" class="attachment-thumbnail" alt="The SSD Sticker On The Laptop. :)" title="03092011(041)" /></a>

<p>.</p>
<p><strong>P.S: My Laptop runs Like its been blessed with the alien technology..</strong> <img src='http://www.intelligrape.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards</p>
<p>Kushal Likhi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/09/05/increasing-productivity-with-the-right-hardware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting System property from command line in grails</title>
		<link>http://www.intelligrape.com/blog/2011/08/24/setting-system-property-from-command-line-in-grails/</link>
		<comments>http://www.intelligrape.com/blog/2011/08/24/setting-system-property-from-command-line-in-grails/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 10:26:14 +0000</pubDate>
		<dc:creator>Vishal Sahu</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Java tools]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=4093</guid>
		<description><![CDATA[Hi,
In one of my recent grails project, i needed to set System property from command line while running the grails application.
I looked for it and found a simple solution to do so and found it worth sharing.

Suppose we want to set any property, say app.property=&#8221;propertyValue&#8221;, then the command to set the property in grails application [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>In one of my recent grails project, i needed to set System property from command line while running the grails application.<br />
I looked for it and found a simple solution to do so and found it worth sharing.<br />
</br><br />
Suppose we want to set any property, say app.property=&#8221;propertyValue&#8221;, then the command to set the property in grails application would be:</p>
<pre class="brush: java;">
  grails  -Dapp.property=&quot;propertyValue&quot; run-app
</pre>
<p>Similarly to retrieve the value of System property, we use</p>
<pre class="brush: java;">
String myPropertyValue= System.getProperty(&quot;app.property&quot;)
</pre>
<p>It helped me a lot..<br />
Hope it helps<br />
</br><br />
Vishal Sahu<br />
vishal@intelligrape.com<br />
<a href="http://www.intelligrape.com">www.intelligrape.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/08/24/setting-system-property-from-command-line-in-grails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using git diff feature on Github</title>
		<link>http://www.intelligrape.com/blog/2011/06/07/using-git-diff-feature-on-github/</link>
		<comments>http://www.intelligrape.com/blog/2011/06/07/using-git-diff-feature-on-github/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 11:49:54 +0000</pubDate>
		<dc:creator>Abhishek Tejpaul</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git diff]]></category>
		<category><![CDATA[git hub]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=3829</guid>
		<description><![CDATA[Hi Folks,
Recently I came across a cool way to compare differences between two branches, two tags, or between two commits on Github. Many a times in our project we have to thoroughly see what has been a specific change in the code base before we push it on our production branch.
Here is how you can [...]]]></description>
			<content:encoded><![CDATA[<p style="padding-bottom: 10px">Hi Folks,</p>
<p style="padding-bottom: 10px">Recently I came across a cool way to compare differences between two branches, two tags, or between two commits on Github. Many a times in our project we have to thoroughly see what has been a specific change in the code base before we push it on our production branch.</p>
<p style="padding-bottom: 10px">Here is how you can view the differences in commits:</p>
<p style="padding-bottom: 10px">On the Github, go to the <strong>Source</strong> view of your project. You will see a link named <strong>&#8216;Branch List&#8217;</strong>. Once the page opens you can see a list of all the remote branches. Hit on the Compare button in front of any of the available branches to see the difference between two branches.</p>
<p style="padding-bottom: 10px">Now note the URL in the address bar. It should end with something like &#8216;&#8230;/compare/&lt;x&gt;&#8230;&lt;y&gt;&#8217;  where <strong><em>x</em></strong> and <strong><em>y</em></strong> are separated by three dots(&#8230;) and their values could be project&#8217;s branch names</p>
<p style="padding-bottom: 10px">Isn&#8217;t it good?</p>
<p style="padding-bottom: 10px">Well, Git&#8217;s (read about <a href="http://book.git-scm.com/3_comparing_commits_-_git_diff.html" target="_blank">git diff</a>) and Github&#8217;s goodness does not stop just here. Instead of branch names as the values of <strong><em>x</em></strong> and <strong><em>y</em></strong>, you can also put two different commit hashes or tag names to view the differences in the code-base. More so, the commit hashes <strong><em>do not</em></strong> have to belong to the same branch. So you can pretty much compare your code&#8217;s current snap-shot with any of its past snap-shot irrespective of <strong>branch</strong> or a <strong>tag</strong> or a <strong>commit hash</strong>.</p>
<p style="padding-bottom: 10px">Hope this helps someone.</p>
<p style="padding-bottom: 10px">Abhishek Tejpaul<br />
abhishek@intelligrape.com<br />
[IntelliGrape Software Pvt. Ltd.]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/06/07/using-git-diff-feature-on-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting an EBS Volume to an Instance and Soft Linking a Growing Directory to it</title>
		<link>http://www.intelligrape.com/blog/2011/05/05/mounting-an-ebs-volume-to-an-instance-and-soft-linking-a-growing-directory-to-it/</link>
		<comments>http://www.intelligrape.com/blog/2011/05/05/mounting-an-ebs-volume-to-an-instance-and-soft-linking-a-growing-directory-to-it/#comments</comments>
		<pubDate>Thu, 05 May 2011 05:44:56 +0000</pubDate>
		<dc:creator>Vivek Krishna</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[Mounting]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=3781</guid>
		<description><![CDATA[We were having a crisis on our project the other day. The VPS on which we were running our application had some issues with kernel and Tomcat, for that matter, any java process was running unpredictably. Tomcat would explode the WAR file once in a while and even if it did, it would just pause [...]]]></description>
			<content:encoded><![CDATA[<p>We were having a crisis on our project the other day. The VPS on which we were running our application had some issues with kernel and Tomcat, for that matter, any java process was running unpredictably. Tomcat would explode the WAR file once in a while and even if it did, it would just pause at &#8220;Deploying app.war&#8221; forever. After spending some time troubleshooting (we didn&#8217;t know that it was an issue with the kernel), we decided to move our infrastructure to Amazon EC2. We picked up an EBS based large instance, running Ubuntu and copied the setup from our production server to this new machine. The setup was a breeze, thanks to the scripts we already had in place for migrating our production setup to our QA machines for testing purposes.</p>
<p>However, we realized that Image Magick, which was being used from our application was not working as expected. In fact, it wasn&#8217;t working at all. We noticed that we were able to perform it as root, but not as any other user. The error which showed up was that there was lack of disk space. Static documents generated by our application were stored on the file system and it was meant to be an ever expanding directory. The EBS instance we had chosen had a capacity of just 8GB and about 6 GB of that was being occupied by the OS and the rest of our infrastructure. We decided to move this particular directory to a new EBS volume.</p>
<p>This could be accomplished smoothly, thanks to the ease of attaching a new EBS volume to an instance. We added a new volume and then, performed the following steps to move this particular expanding directory.</p>
<pre class="brush: java;">

mke2fs -F -j /dev/sdh #This is to create an ext3 file system for the device attached at /dev/sdh

mkdir /path_to_new_file_system

mount /dev/sdh /path_to_new_file_system #mount the new file system at this directory

cp -r static_documents_location /path_to_new_file_system #Copy the files from the existing directory to the new directory

mv static_documents_location static_documents_location_backup #Backup the existing documents, just in case anything goes wrong

ln -s /path_to_new_file_system/static_documents_location static_documents_location #Create a soft link to refer to the new file location with the same name as the previous one
</pre>
<p>With these steps, we were good to go on the Amazon machine without even requiring a Server restart. We were expecting a downtime of at least 10 minutes but this happened so flawlessly.</p>
<p>Hope this helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/05/05/mounting-an-ebs-volume-to-an-instance-and-soft-linking-a-growing-directory-to-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Generating EAN-8 standard barcode using Barcode4J</title>
		<link>http://www.intelligrape.com/blog/2011/04/14/generating-ean-8-standard-barcode-using-barcode4j/</link>
		<comments>http://www.intelligrape.com/blog/2011/04/14/generating-ean-8-standard-barcode-using-barcode4j/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 15:25:56 +0000</pubDate>
		<dc:creator>Vishal Sahu</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Java tools]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[barcode]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=3606</guid>
		<description><![CDATA[Hi,
In one of my project i needed to generate EAN-8 standard bar-code for identifying the various products. I searched for various libraries available for generating bar-code and found a library to do so. The library i used for generating the bar-code is Barcode4J.
You can download it from here

Barcode4J is a flexible generator for barcodes written [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>In one of my project i needed to generate EAN-8 standard bar-code for identifying the various products. I searched for various libraries available for generating bar-code and found a library to do so. The library i used for generating the bar-code is Barcode4J.<br />
You can download it from <a href="http://barcode4j.sourceforge.net/">here</a></p>
<p>
Barcode4J is a flexible generator for barcodes written in Java. It&#8217;s free, available under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, version 2.0</a>.<br />
The bar-code generated with the help of of this library uses eight digit number hence EAN-8.</p>
<p>To generate bar-code image from this library is quite simple. Just put the <strong>barcode4j.jar</strong> in the lib folder of the application.</p>
<pre>
</pre>
<p>Code to generate image is:-</p>
<pre class="brush: java;">
public File generateBarcode(Long codeDigits){
try {
      //'codeDigits' is the code for which we want to generate bar-code image
     EAN8Bean bean = new EAN8Bean();
     final int dpi = 150;
     bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi));
     bean.setFontSize(2.0)
     bean.doQuietZone(true)
     File outputFile = new File(filepath) // existing file in the file system
     OutputStream out = new FileOutputStream(outputFile)

     // class to convert provided image into barcode image
     BitmapCanvasProvider canvas = new BitmapCanvasProvider(out, &quot;image/jpeg&quot;, dpi,   BufferedImage.TYPE_BYTE_BINARY, false, 0)
     bean.generateBarcode(canvas, codeDigits)
     canvas.finish()
     return outputFile
}
</pre>
<p>So, here it takes a file from the file system and convert it into the required barcode image. Now, the user can simply display this image on the items.<br />
<br />
In my case, i needed to generate a bar-code image for each product, so i create new file for every item, and stored it on the file system with unique name.</p>
<p>
This works in my case.<br />
Hope it helps</p>
<pre>
</pre>
<p>Cheers..!!!<br />
Vishal Sahu<br />
vishal@intelligrape.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/04/14/generating-ean-8-standard-barcode-using-barcode4j/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>byobu: screen sessions in Linux</title>
		<link>http://www.intelligrape.com/blog/2011/04/13/byobu-screen-sessions-in-linux/</link>
		<comments>http://www.intelligrape.com/blog/2011/04/13/byobu-screen-sessions-in-linux/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 11:06:02 +0000</pubDate>
		<dc:creator>Salil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=3550</guid>
		<description><![CDATA[This post is just to talk about Screen Sessions in Linux (esp. ubuntu) using command &#8220;byobu&#8221;.
&#160;
What is Byobu?
Byobu is a Japanese term for decorative, multi-panel screens. As an open source project, Byobu is an elegant enhancement of plain GNU Screen.
&#160;
Where can it be used?
You SSH to some remote machine and Run some commands (application, service, [...]]]></description>
			<content:encoded><![CDATA[<p>This post is just to talk about Screen Sessions in Linux (esp. ubuntu) using command &#8220;byobu&#8221;.</p>
<p>&nbsp;</p>
<p><strong>What is Byobu?</strong><br />
Byobu is a Japanese term for decorative, multi-panel screens. As an open source project, Byobu is an elegant enhancement of plain GNU Screen.</p>
<p>&nbsp;</p>
<p><strong>Where can it be used?</strong><br />
You SSH to some remote machine and Run some commands (application, service, etc). Now you want to logout of ssh session. But want your screen turned-on, so that you just resume it, the next time you access the machine.</p>
<p>&nbsp;</p>
<p><strong>How to use it?</strong><br />
It&#8217;s as simple as 2 steps process.</p>
<pre class="brush: groovy;">
Step 1: Enter command &quot;byobu&quot;
Step 2: Press F2 (to create a new screen)
</pre>
<p>here you go!</p>
<p>&nbsp;</p>
<p>Now you are in a detachable screen session. Enter your commands. And once you done &#8211;</p>
<pre class="brush: groovy;">
Press F6 (to detach the screen)
</pre>
<p>If you are already logged-into some remote machine (using ssh), now you can logout. And your screen will remain there.<br />
Then, when you come back &#8212; you can resume your screen back by following commmand</p>
<pre class="brush: groovy;">
$ screen -r
</pre>
<p>It&#8217;s good to read about other options (like, screen -x)</p>
<p>&nbsp;</p>
<p>Your comments are always Welcome. Please post if you have any!</p>
<p>&nbsp;</p>
<p>Cheers!<br />
Salil Kalia<br />
Salil [at] IntelliGrape [dot] com<br />
<a href="http://twitter.com/salil_kalia" target="_blank">Twitter</a> <a href="http://in.linkedin.com/in/salilkalia" target="_blank">LinkedIn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/04/13/byobu-screen-sessions-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

