<?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>Shaiekh&#039;s Notebook</title>
	<atom:link href="http://shaiekh.com/home/feed/" rel="self" type="application/rss+xml" />
	<link>http://shaiekh.com/home</link>
	<description>Life as it is... Sometimes it rains and sometimes the sun shines brighter than ever. Everyday, learning a new thing...</description>
	<lastBuildDate>Tue, 08 May 2012 10:35:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Undoing and Recovering Git Commit</title>
		<link>http://shaiekh.com/home/git/undoing-and-recovering-git-commit/</link>
		<comments>http://shaiekh.com/home/git/undoing-and-recovering-git-commit/#comments</comments>
		<pubDate>Tue, 08 May 2012 10:32:56 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git reflog]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=594</guid>
		<description><![CDATA[Following best explanation on undoing and recovering git commit is copied from StackOverFlow. Hats off to kyralessa. Undoing a commit is a little scary if you don&#8217;t know how it works. But it&#8217;s actually amazingly easy if you do understand. Say you have this, where C is your HEAD and (F) is the state of [...]]]></description>
			<content:encoded><![CDATA[<p></p><div>
<p><strong>Following best explanation on undoing and recovering git commit is copied from <a href="http://stackoverflow.com/questions/927358/git-undo-last-commit" target="_blank">StackOverFlow</a>. Hats off to <a href="http://stackoverflow.com/users/5486/kyralessa" target="_blank">kyralessa</a>.</strong></p>
<p>Undoing a commit is a little scary if you don&#8217;t know how it works.  But it&#8217;s actually amazingly easy if you do understand.</p>
<p>Say you have this, where C is your HEAD and (F) is the state of your files.</p>
<pre><code>   (F)
A-B-C
    ↑
  master
</code></pre>
<p>You want to <strong>nuke commit C and never see it again</strong>.  You do this:</p>
<pre><code>git reset --hard HEAD~1
</code></pre>
<p>The result is:</p>
<pre><code> (F)
A-B
  ↑
master
</code></pre>
<p>Now B is the HEAD.  Because you used <code>--hard</code>, your files are reset to their state at commit B.</p>
<p>Ah, but suppose commit C wasn&#8217;t a disaster, but just a bit off.  You want to <strong>undo the commit but keep your changes</strong> for a bit of editing before you do a better commit.  Starting again from here, with C as your HEAD:</p>
<pre><code>   (F)
A-B-C
    ↑
  master
</code></pre>
<p>You can do this, leaving off the <code>--hard</code>:</p>
<pre><code>git reset HEAD~1
</code></pre>
<p>In this case the result is:</p>
<pre><code>   (F)
A-B-C
  ↑
master
</code></pre>
<p>In both cases, HEAD is just a pointer to the latest commit.  When you do a <code>git reset HEAD~1</code>, you tell Git to move the HEAD pointer back one commit.  But (unless you use <code>--hard</code>) you leave your files as they were.  So now <code>git status</code> shows the changes you had checked into C.  You haven&#8217;t lost a thing!</p>
<p>For the lightest touch, you can even <strong>undo your commit but leave your files and your index</strong>:</p>
<pre><code>git reset --soft HEAD~1
</code></pre>
<p>This not only leaves your files alone, it even leaves your <em>index</em> alone.  When you do <code>git status</code>, you&#8217;ll see that the same files are in the index as before.  In fact, right after this command, you could do <code>git commit</code> and you&#8217;d be redoing the same commit you just had.</p>
<p>One more thing: <strong>Suppose you destroy a commit</strong> as in the first example, <strong>but then discover you needed it after all</strong>?  Tough luck, right?</p>
<p>Nope, there&#8217;s <em>still</em> a way to get it back.  Type <code>git reflog</code> and you&#8217;ll see a list of (partial) commit shas that you&#8217;ve moved around in.  Find the commit you destroyed, and do this:</p>
<pre><code>git checkout -b someNewBranchName shaYouDestroyed
</code></pre>
<p>You&#8217;ve now resurrected that commit.  Commits don&#8217;t actually get  destroyed in Git for some 90 days, so you can usually go back and rescue  one you didn&#8217;t mean to get rid of.</p>
<p><strong>Another good reference on reflog:</strong></p>
<ul>
<li><a href="http://alblue.bandlem.com/2011/05/git-tip-of-week-reflogs.html" target="_blank">Git tip of week reflogs</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/git/undoing-and-recovering-git-commit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of Cron Expression</title>
		<link>http://shaiekh.com/home/cron/list-of-cron-expression/</link>
		<comments>http://shaiekh.com/home/cron/list-of-cron-expression/#comments</comments>
		<pubDate>Tue, 01 May 2012 10:55:48 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Cron]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=590</guid>
		<description><![CDATA[cron is a UNIX tool that has been around for a long time, so its scheduling capabilities are powerful and proven. The CronTrigger class is based on the scheduling capabilities of cron. Got more details from following sites: CronTrigger Tutorial List of Sample Cron Expressions To Define Simple And Complex Scheduling]]></description>
			<content:encoded><![CDATA[<p></p><p><tt>cron</tt> is a UNIX tool that has been around for a long time, so its scheduling capabilities are powerful and proven. The <tt>CronTrigger</tt> class is based on the scheduling capabilities of cron.</p>
<p id="crontrigger-tutorial"><strong>Got more details from following sites:</strong></p>
<ul>
<li><a title="Permanent Link to List of Sample Cron Expressions To Define Simple And Complex Scheduling" rel="bookmark" href="http://sanjaal.com/java/558/cron-expressions/list-of-sample-cron-expressions-to-define-simple-and-complex-scheduling/">CronTrigger Tutorial</a></li>
<li><a title="Permanent Link to List of Sample Cron Expressions To Define Simple And Complex Scheduling" rel="bookmark" href="http://sanjaal.com/java/558/cron-expressions/list-of-sample-cron-expressions-to-define-simple-and-complex-scheduling/">List of Sample Cron Expressions To Define Simple And Complex Scheduling</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/cron/list-of-cron-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] &#8220;It looks like git-am is in progress. Cannot rebase.&#8221;</title>
		<link>http://shaiekh.com/home/git/solved-it-looks-like-git-am-is-in-progress-cannot-rebase/</link>
		<comments>http://shaiekh.com/home/git/solved-it-looks-like-git-am-is-in-progress-cannot-rebase/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 05:24:28 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=579</guid>
		<description><![CDATA[Problem: Last day, I got stuck on repo sync. I was unable to sync as git gave error &#8211; &#8220;It looks like git-am is in progress. Cannot rebase.&#8221; Solution: I&#8217;ve deleted rebase-apply directory on .git, finally succeed in repo syncing. Following command I&#8217;ve used: rm -rf .git/rebase-apply]]></description>
			<content:encoded><![CDATA[<p></p><p><strong>Problem: </strong>Last day, I got stuck on repo sync. I was unable to sync as git gave error &#8211; &#8220;It looks like git-am is in progress. Cannot rebase.&#8221;</p>
<p><strong>Solution:</strong> I&#8217;ve deleted rebase-apply directory on .git, finally succeed in repo syncing. Following command I&#8217;ve used:</p>
<pre style="padding-left: 30px;">rm -rf .git/rebase-apply</pre>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/git/solved-it-looks-like-git-am-is-in-progress-cannot-rebase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jboss Mail Service Configuration for Spring Apps</title>
		<link>http://shaiekh.com/home/spring/jboss-mail-service-configuration-for-spring-apps/</link>
		<comments>http://shaiekh.com/home/spring/jboss-mail-service-configuration-for-spring-apps/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 16:46:45 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Jboss]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=560</guid>
		<description><![CDATA[Notes About How I configured Jboss mail service to use Gmail as an SMTP server from spring application. Jboss Mail Service Configuration The JBossAS deploy/mail-service.xml configures a JavaMail session binding into JNDI. Configured the file to work with Gmail, as follows: Spring Bean Definition For my spring apps i&#8217;ve used spring mail api and JNDI [...]]]></description>
			<content:encoded><![CDATA[<p></p><h3>Notes About</h3>
<p>How I configured Jboss mail service to use Gmail as an SMTP server from spring application.</p>
<h3>Jboss Mail Service Configuration</h3>
<p>The JBossAS deploy/mail-service.xml configures a JavaMail session binding into JNDI. Configured the file to work with Gmail, as follows:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;server&gt;
    &lt;mbean code=&quot;org.jboss.mail.MailService&quot; name=&quot;jboss:service=GMail&quot;&gt;
        &lt;attribute name=&quot;JNDIName&quot;&gt;java:/GMail&lt;/attribute&gt;
        &lt;attribute name=&quot;User&quot;&gt;someuser@gmail.com&lt;/attribute&gt;
        &lt;attribute name=&quot;Password&quot;&gt;myPassword&lt;/attribute&gt;
        &lt;attribute name=&quot;Configuration&quot;&gt;
        &lt;configuration&gt;
            &lt;property name=&quot;mail.smtp.host&quot; value=&quot;smtp.gmail.com&quot;&gt;
            &lt;property name=&quot;mail.smtp.port&quot; value=&quot;465&quot;&gt;
            &lt;property name=&quot;mail.smtp.auth&quot; value=&quot;true&quot;&gt;
            &lt;property name=&quot;mail.smtp.ssl.enable&quot; value=&quot;true&quot;&gt;
        &lt;/configuration&gt;
        &lt;/attribute&gt;
        &lt;depends&gt;jboss:service=Naming&lt;/depends&gt;
    &lt;/mbean&gt;
&lt;/server&gt;
</pre>
<h3>Spring Bean Definition</h3>
<p>For my spring apps i&#8217;ve used spring mail api and JNDI bound mail session.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;bean id=&quot;mailSender&quot;&gt;
    &lt;property name=&quot;session&quot;&gt;&lt;ref bean=&quot;mailSession&quot;&gt;&lt;/property&gt;
&lt;/bean&gt;

&lt;bean id=&quot;mailSession&quot;&gt;
    &lt;property name=&quot;jndiName&quot;&gt;&lt;value&gt;java:/GMail&lt;/value&gt;&lt;/property&gt;
&lt;/bean&gt;
</pre>
<h3>Helpful References:</h3>
<ul>
<li><a href="https://community.jboss.org/wiki/JavaMail">https://community.jboss.org/wiki/JavaMail</a></li>
<li><a href="http://wheelersoftware.com/articles/spring-javamail.html">http://wheelersoftware.com/articles/spring-javamail.html</a></li>
<li><a href="http://achorniy.wordpress.com/2009/12/15/jboss-mail-service-with-ssl-smtp/">http://achorniy.wordpress.com/2009/12/15/jboss-mail-service-with-ssl-smtp/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/spring/jboss-mail-service-configuration-for-spring-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between TRUNCATE and DELETE</title>
		<link>http://shaiekh.com/home/database/difference-between-truncate-and-delete/</link>
		<comments>http://shaiekh.com/home/database/difference-between-truncate-and-delete/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 15:13:41 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=567</guid>
		<description><![CDATA[What i need to know? Both delete and truncate command can be used to delete all the rows from a table. But significent differences between this two sql statements should have clear understanding. Delete From &#60;Table_name&#62; DELETE command is used to remove rows from a table. A WHERE clause can be used to remove only [...]]]></description>
			<content:encoded><![CDATA[<p></p><h3><strong>What i need to know?</strong></h3>
<p>Both delete and truncate command can be used to delete all the rows from a table. But significent differences between this two sql statements should have clear understanding.</p>
<h3>Delete From &lt;Table_name&gt;</h3>
<p>DELETE command is used to remove rows from a table. A WHERE clause can be used to remove only some rows. If no WHERE condition is specified, all rows will be removed. For example:</p>
<p>To delete a row with id 10 from mytable, the sql delete query would be like,</p>
<p><code>DELETE FROM mytable WHERE id = 10;</code></p>
<p>To delete all the rows from mytable, the query would be like,</p>
<p><code>DELETE FROM mytable;</code></p>
<p>It is a DML command. As why, After performing a DELETE operation you need to COMMIT or ROLLBACK the transaction to make the change permanent or to undo it.</p>
<h3>Truncate Table &lt;Table_name&gt;</h3>
<p>Truncate command is used to delete all the rows from the table and free the storage containing the table. Truncate is DDL coammand. So TRUNCATE operations cannot be rolled back. <strong>For Example:</strong></p>
<p>To delete all the rows from mytable, the query would be like,</p>
<p><code>TRUNCATE TABLE mytable;</code></p>
<h3>TRUNCATE is much faster than DELETE. Why?</h3>
<p>When you type <strong><em>DELETE mytable</em></strong> all the data get copied into the Rollback Tablespace first. Then delete operation get performed. That&#8217;s why when you type ROLLBACK after deleting a table, you can get back the data(The system get it for you from the Rollback Tablespace). All this process take time. But when you type TRUNCATE,it removes data directly without copying it into the Rollback Tablespace. Thatswhy TRUNCATE is faster. Once you Truncate you cann&#8217;t get back the data.</p>
<h3>If there Exist Foreign key Constraints</h3>
<p>You can&#8217;t TRUNCATE a table that is referenced by foreign key constraints. Disabling foreign key constraints won&#8217;t work. You have to drop the foreign key constraint from Child Table that references the Master Table to be truncated, then after only you are able to truncate the Master Table.</p>
<p>On other hand, if you use ON DELETE CASCADE, Delete command remove all the records from master table and child as well.</p>
<h3>TRUNCATE command resets the High Water Mark for the table but DELETE does not.</h3>
<p><em><strong>Don&#8217;t know High Water Mark? </strong></em>HWM is the upper boundary of the storage area of a table. HWM is basically the max space a particular table as occupied till that pt. that doesn&#8217;t mean that one cannot insert records more than a HWM. Once HWM is crossed a new HWM is set for a table.</p>
<p>When TRUNCATE is used on the table, all the rows of that table is deleted and the HWM is decreased to the minimum size-ZERO. But when DELETE is issued on the table, the rows are deleted and nothing is done on the HWM. Thats is, the HWM is never decreased even after the no of rows for the table is less or none. Thats is this keeps some space always with its own.</p>
<p><strong><em>In a statement: The <code>TRUNCATE TABLE mytable</code> statement is logically (though not physically) equivalent to the <code>DELETE FROM mytable</code> statement (without a <code>WHERE</code> clause).</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/database/difference-between-truncate-and-delete/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>English Translated Lyric &#8216;Aye Khuda&#8217; from Murder2</title>
		<link>http://shaiekh.com/home/randomz/english-translated-lyric-aye-khuda-from-murder2/</link>
		<comments>http://shaiekh.com/home/randomz/english-translated-lyric-aye-khuda-from-murder2/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 12:22:50 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Randomz!!!]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=555</guid>
		<description><![CDATA[Engilish translation of a touchy song from hindi movie Murder 2 naming &#8216;Aye khuda&#8230;&#8217; What are these empty spaces in my heart, Now commit sins has become my nature.. I am the one who fell from Thy Mercy Aye khoda&#8230; I fell&#8230; i fell&#8230; Ever since I parted from you&#8230; I lost everything&#8230; The burden [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Engilish translation of a touchy song from hindi movie Murder 2 naming &#8216;Aye khuda&#8230;&#8217;</p>
<p>What are these empty spaces in my heart,<br />
Now commit sins has become my nature..<br />
I am the one who fell from Thy Mercy<br />
Aye khoda&#8230; I fell&#8230; i fell&#8230;<br />
Ever since I parted from you&#8230;<br />
I lost everything&#8230;</p>
<p><em>The burden of many mistakes you carry, It seems as if wealth is your god,<br />
</em><em>You spend every moment like a wind blowing under the shadow of sins<br />
</em><em>like a ocean you were always in motion<br />
</em><em>you always did what you pleased<br />
</em><em>you are guilty to your own self</em></p>
<p><em></em>Aye khoda&#8230; I fell&#8230; i fell&#8230;<br />
Ever since I parted from you&#8230;<br />
I lost everything&#8230;..</p>
<p><em>Why you collect so worldly materials<br />
One day this all will pass away<br />
No matter how much accumulate<br />
One day all this will surely slip away from your hands<br />
Every person is made of dust and finally will be reduced to dust<br />
This is the inevitable truth, you must realize this<br />
Why you turn away from reality?<br />
Fulfill any desire of yours<br />
The destiny will never stop<br />
your existence will be erased<br />
But you heart will never be full (you will never satisfied)</em></p>
<p>Aye khoda&#8230; I fell&#8230; i fell&#8230;<br />
Ever since I parted from you&#8230;<br />
I lost everything&#8230;..</p>
<p><em>If you think you have fallen<br />
Hold my hand and rise<br />
I am standing at your hearts gates<br />
Make me yours&#8230;<br />
You say you are surrounded by shadows,<br />
I am the light of your paths<br />
I take your sins upon myself<br />
In my eyes you are innocent(almighty is the forgiver)</em></p>
<p>Show me such a sight<br />
Make me meet such a person<br />
Let such a heart hear my tale<br />
The heart which is free from all these wounds</p>
<p>Aye khoda&#8230; I fell&#8230; i fell&#8230;<br />
Ever since I parted from you&#8230;<br />
I lost everything&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/randomz/english-translated-lyric-aye-khuda-from-murder2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[CentOs] Limit Yum Download Speed</title>
		<link>http://shaiekh.com/home/linux-2/limit-yum-download-speed/</link>
		<comments>http://shaiekh.com/home/linux-2/limit-yum-download-speed/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 18:59:29 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=527</guid>
		<description><![CDATA[I was desparately needed to update Centos to version 6.2 during my office hour. Usually, yum hammers internet connection consuming maximum bandwidth. To prevent blockage by system admin, I set a speed limit on yum by adding the following line to the file /etc/yum.conf throttle=50k]]></description>
			<content:encoded><![CDATA[<p></p><p>I was desparately needed to update Centos to version 6.2 during my office hour. Usually, yum hammers internet connection consuming maximum bandwidth. To prevent blockage by system admin, I set a speed limit on yum by adding the following line to the file /etc/yum.conf</p>
<div id="post-body-8803743303166043307">
<blockquote><p>throttle=50k</p></blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/linux-2/limit-yum-download-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recalling Elementary Knowledge on Linux File System and Permission</title>
		<link>http://shaiekh.com/home/linux-2/recalling-elementary-knowledge-on-linux-file-system-and-permission/</link>
		<comments>http://shaiekh.com/home/linux-2/recalling-elementary-knowledge-on-linux-file-system-and-permission/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 18:41:44 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=523</guid>
		<description><![CDATA[On this sleepy rainy day, I&#8217;ve recalled some elementary knowledge on linux file system and permission. Following articles help me a lot. Unix and Linux File system Inodes Understanding Linux User Permissions Understanding Linux File Ownership How to change file ownership on a Linux server Granting Users Access to Privileged Files Why and How to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>On this sleepy rainy day, I&#8217;ve recalled some elementary knowledge on linux file system and permission. Following articles help me a lot.</p>
<ul>
<li><a title="Permanent Link: Unix and Linux File system Inodes" rel="bookmark" href="http://www.serverschool.com/operating-systems/unix-and-linux-file-system-inodes/">Unix and Linux File system Inodes</a></li>
<li><a title="Permanent Link: Understanding Linux User Permissions" rel="bookmark" href="http://www.serverschool.com/dedicated-servers/understanding-linux-user-permissions/">Understanding Linux User Permissions</a></li>
<li><a title="Permanent Link: Understanding Linux File Ownership" rel="bookmark" href="http://www.serverschool.com/operating-systems/understanding-linux-file-ownership/">Understanding Linux File Ownership</a></li>
<li><a title="Permanent Link: How to change file ownership on a Linux server" rel="bookmark" href="http://www.serverschool.com/dedicated-servers/how-to-change-file-ownership-on-a-linux-server/">How to change file ownership on a Linux server</a></li>
<li><a href="http://www.thegeekstuff.com/2011/02/sticky-bit-on-directory-file/" target="_blank">Granting Users Access to Privileged Files</a></li>
<li><a href="http://unixfoo.blogspot.com/2008/01/sticky-bit.html">Why and How to Use Sticky Bit on Directory and File</a></li>
<li>Another helpful post to understand <a href="http://unixfoo.blogspot.com/2008/01/sticky-bit.html">Sticky bit</a></li>
<li><a title="Permanent Link: SUDO vs SU: What Really Matters" rel="bookmark" href="http://www.serverschool.com/operating-systems/sudo-vs-su-what-really-matters/">SUDO vs SU: What Really Matters</a></li>
</ul>
<p>I had written a post on <a title="Edit “How to use chmod and chown command”" href="http://shaiekh.com/home/wp-admin/post.php?post=389&amp;action=edit">chmod and chown</a><strong> </strong>before too.</p>
<ul></ul>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/linux-2/recalling-elementary-knowledge-on-linux-file-system-and-permission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How can I initialize a Set on creation?</title>
		<link>http://shaiekh.com/home/java/how-can-i-initialize-a-set-on-creation/</link>
		<comments>http://shaiekh.com/home/java/how-can-i-initialize-a-set-on-creation/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 11:42:27 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=515</guid>
		<description><![CDATA[In java, Array or List can be initialized on creation time. Such as: int[] array = new int[] {1,2,5}; But on create initialization of Set collection needs some kind of hackish way. Following way works fine. Set &#60;String&#62; s = new HashSet&#60;String&#62;(Arrays.asList(new String[]{"1", "2", "5"})); Another way to initialize Set on creation which is more [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In java, Array or List can be initialized on creation time. Such as:</p>
<p><code>int[] array = new int[] {1,2,5};</code></p>
<p>But on create initialization of Set collection needs some kind of hackish way.</p>
<p><em><strong>Following way works fine. </strong></em><br />
<code>Set &lt;String&gt; s = new HashSet&lt;String&gt;(Arrays.asList(new String[]{"1", "2", "5"}));</code></p>
<p><strong><em>Another way to initialize Set on creation which is more readable:</em></strong><br />
<code>Set s = new HashSet() {{<br />
add("1");<br />
add("2");<br />
add("5");<br />
}};</code></p>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/java/how-can-i-initialize-a-set-on-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding colors to git</title>
		<link>http://shaiekh.com/home/git/adding-colors-to-git/</link>
		<comments>http://shaiekh.com/home/git/adding-colors-to-git/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 19:05:49 +0000</pubDate>
		<dc:creator>shaiekh</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://shaiekh.com/home/?p=505</guid>
		<description><![CDATA[What I Want: Adding colors to git hence it displays code modification in different color. How To Add following code to ~/.gitconfig file.]]></description>
			<content:encoded><![CDATA[<p></p><div id="_mcePaste"><strong><em>What I Want:</em></strong> Adding colors to git hence it displays code modification in different color.</div>
<h2>How To</h2>
<div>Add following code to ~/.gitconfig file.</div>
<div><div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://shaiekh.com/home/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://shaiekh.com/home/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://shaiekh.com/home/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://shaiekh.com/home/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="text" style="font-family:monospace;">[user]
name = Jamund Ferguson
email = jamund@gmail.com
[color]
branch = auto
diff = auto
status = auto
[color &quot;branch&quot;]
current = yellow reverse
local = yellow
remote = green
[color &quot;diff&quot;]
meta = yellow bold
frag = magenta bold
old = red
new = cyan
[color &quot;status&quot;]
added = yellow
changed = green
untracked = cyan</pre></div></div></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://shaiekh.com/home/git/adding-colors-to-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

