<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Naveen S Nayak&#039;s Blog</title>
	<atom:link href="http://naveensnayak.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://naveensnayak.wordpress.com</link>
	<description>About life,code and experiences</description>
	<lastBuildDate>Thu, 26 Jan 2012 20:54:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='naveensnayak.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Naveen S Nayak&#039;s Blog</title>
		<link>http://naveensnayak.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://naveensnayak.wordpress.com/osd.xml" title="Naveen S Nayak&#039;s Blog" />
	<atom:link rel='hub' href='http://naveensnayak.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ubuntu recover root password</title>
		<link>http://naveensnayak.wordpress.com/2012/01/18/ubuntu-recover-root-password/</link>
		<comments>http://naveensnayak.wordpress.com/2012/01/18/ubuntu-recover-root-password/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:49:21 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=502</guid>
		<description><![CDATA[Today i locked myself out of Ubuntu 11.10 with a stupid typo The Mistake: Single user mode: i am the only system user and i and the admin Wanted to add myself to the vbox group My supplementary groups were &#8220;admin&#8221; which is the Ubuntu default for superusers typed the command usermod -G vboxsf naveen [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=502&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today i locked myself out of Ubuntu 11.10 with a stupid typo</p>
<p><span style="text-decoration:underline;"><strong>The Mistake:</strong></span></p>
<ol>
<li>Single user mode: i am the only system user and i and the admin</li>
<li>Wanted to add myself to the vbox group</li>
<li>My supplementary groups were &#8220;admin&#8221; which is the Ubuntu default for superusers</li>
<li>typed the command <span style="color:#ff0000;"><strong>usermod -G vboxsf naveen</strong></span> ( missed the -a Flag )</li>
<li>The correct command must have been  <span style="color:#ff0000;"><strong>usermod -aG vboxsf naveen</strong></span> (the -a appends )</li>
<li>Without the -a flag, my supplementary group got overwritten as vboxsf &#8211; and now i dont have admin privileges &#8211; duh!!</li>
</ol>
<p><span style="text-decoration:underline;"><strong>The recovery:</strong></span></p>
<ol>
<li>Reboot into Ubuntu</li>
<li>Press and Hold the &#8220;<span style="color:#ff0000;"><strong>Shift</strong></span>&#8221; button to access the GRUB</li>
<li>From the GRUB select <span style="color:#ff0000;"><strong>Recover Mode</strong></span></li>
<li>You should see a window with 4 options (<strong>resume, fsck, remount, root</strong>)</li>
<li>Select <span style="color:#ff0000;"><strong>remount</strong></span> &#8211; it will remount the file system as read write</li>
<li>The file system during recovery mode will typically be mounted as read-only &#8211; so you cannot modify anything if you dont do the above step</li>
<li>Next select <span style="color:#ff0000;"><strong>root: Drop to root shell prompt</strong></span>, it will drop you into the root command prompt</li>
<li>Now you are root and can do anything</li>
<li>I fixed my error with usermod -aG admin naveen ( no typos this time ! )</li>
<li>Exit-Reboot and you are fine !!</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=502&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2012/01/18/ubuntu-recover-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu Xfce Dual Monitors</title>
		<link>http://naveensnayak.wordpress.com/2011/11/21/ubuntu-xfce-dual-monitors/</link>
		<comments>http://naveensnayak.wordpress.com/2011/11/21/ubuntu-xfce-dual-monitors/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 22:31:40 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=484</guid>
		<description><![CDATA[Frustrated from Ubuntu&#8217;s Unity and unable to get Gnome 3 work properly on Virtualbox ( dual screen monitors display a blue screen when in Gnome 3) &#8211; i finally installed Xfce Its amazingly fast and has a very simple interface To install Xfce on Ubuntu do the following sudo aptitude update &#38;&#38; sudo aptitude install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=484&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Frustrated from Ubuntu&#8217;s Unity and unable to get Gnome 3 work properly on Virtualbox ( dual screen monitors display a blue screen when in Gnome 3) &#8211; i finally installed Xfce</p>
<p>Its amazingly fast and has a very simple interface</p>
<p>To install Xfce on Ubuntu do the following</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install xubuntu-desktop</strong></p>
<p>Log out and select Xubuntu or Xfce</p>
<p>To get dual monitors to work with Xfce you can do the following</p>
<ul>
<li>Go to <strong>Start &gt; Settings &gt; Settings Manger &gt; Display</strong></li>
<li>2 monitors must be displayed there</li>
<li>Click on each monitor and make sure both are in use</li>
<li>&#8220;<strong>Use this Output</strong>&#8221; checkbox must be checked in both</li>
<li>Open a terminal and type <strong>xrandr </strong></li>
<li>Output should be similar to this</li>
</ul>
<p style="padding-left:60px;">Screen 0: minimum 64 x 64, current 1680 x 986, maximum 32000 x 32000<br />
<strong>VBOX0</strong> connected 1680&#215;986+0+0 0mm x 0mm<br />
1680&#215;986 60.0*+<br />
1280&#215;960 60.0<br />
1024&#215;768 60.0<br />
800&#215;600 60.0<br />
640&#215;480 60.0<br />
<strong>VBOX1</strong> connected 1680&#215;986+0+0 0mm x 0mm<br />
1680&#215;986 60.0*+<br />
1280&#215;960 60.0<br />
1024&#215;768 60.0<br />
800&#215;600 60.0<br />
640&#215;480 60.0</p>
<ul>
<li>On the terminal type <strong>xrandr &#8211;output VBOX0 &#8211;left-of VBOX1</strong></li>
<li>change &#8211;left-of to &#8211;right-of for other option</li>
<li>This should show the 2 monitors &#8211; but you will have to do it every time you log in</li>
<li>So make a startup command</li>
<li>Go to <strong>Start &gt; Settings &gt; Settings Manger &gt; Session and Startup</strong></li>
<li><strong>Application Startup Tab &gt; Add </strong></li>
<li>In the command box, enter the exact command you did above ( for me it is <strong>xrandr &#8211;output VBOX0 &#8211;left-of VBOX1 )</strong></li>
<li>See Pic below</li>
</ul>
<div><a href="http://naveensnayak.files.wordpress.com/2011/11/screenshot-11212011-100958-am.png"><img class="aligncenter size-full wp-image-485" title="Screenshot - 11212011 - 10:09:58 AM" src="http://naveensnayak.files.wordpress.com/2011/11/screenshot-11212011-100958-am.png?w=901" alt=""   /></a></div>
<ul>
<li>There is also a graphical interface for doing this called <strong>grandr</strong></li>
<li>You can install it by using <strong>sudo apt-get install grandr</strong></li>
<li>Go to the terminal and type<strong> grandr</strong></li>
<li>A small window must popup and you can do the changes</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/484/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=484&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/11/21/ubuntu-xfce-dual-monitors/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>

		<media:content url="http://naveensnayak.files.wordpress.com/2011/11/screenshot-11212011-100958-am.png" medium="image">
			<media:title type="html">Screenshot - 11212011 - 10:09:58 AM</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing PHPStorm on Ubuntu 11.10 with SUN JDK</title>
		<link>http://naveensnayak.wordpress.com/2011/11/07/installing-phpstorm-on-ubuntu-11-10-with-sun-jdk/</link>
		<comments>http://naveensnayak.wordpress.com/2011/11/07/installing-phpstorm-on-ubuntu-11-10-with-sun-jdk/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 21:29:31 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=475</guid>
		<description><![CDATA[NOTE: The SUN Java Version mentioned here is outdated and has security flaws &#8211; you need to use an updated version of the SUN JDK PHPStorm is a nice ( but not free ) IDE  and we decided to use it in our development environment. Installs nicely in Windows and Mac. However, Ubuntu 11.10 is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=475&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><span style="color:#ff0000;"><strong>NOTE: The SUN Java Version mentioned here is outdated and has security flaws &#8211; you need to use an updated version of the SUN JDK</strong></span></h3>
<p>PHPStorm is a nice ( but not free ) IDE  and we decided to use it in our development environment.<br />
Installs nicely in Windows and Mac.<br />
However, Ubuntu 11.10 is the problem as it does not have SUN JDK by default.</p>
<p><span style="text-decoration:underline;"><strong>Requirements:</strong></span></p>
<ol>
<li>Ubuntu 11.10</li>
<li>PHPStorm 2.1</li>
<li>PHPStorm only runs on SUN JDK ( and not openjdk that comes default with Ubuntu 11.10 )</li>
<li>We need to install SUN JDK and then update java alternatives</li>
</ol>
<div><span style="text-decoration:underline;"><strong>Steps</strong></span></div>
<p><strong>Install SUN JDK with the following commands</strong></p>
<pre>sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin</pre>
<p><strong>We then need to update the java alternatives using this command</strong></p>
<pre>sudo update-alternatives --config java</pre>
<p>It should display choices as shown in the screenshot below ( choose the sun jdk version )</p>
<p>And thats it &#8211; just go to PHPStorm/bin and run the <strong>PhpStorm.sh</strong><br />
<a href="http://naveensnayak.files.wordpress.com/2011/11/p.png"><img class="size-full wp-image-476 alignleft" style="border-color:initial;border-style:initial;" title="p" src="http://naveensnayak.files.wordpress.com/2011/11/p.png?w=901" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/475/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=475&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/11/07/installing-phpstorm-on-ubuntu-11-10-with-sun-jdk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>

		<media:content url="http://naveensnayak.files.wordpress.com/2011/11/p.png" medium="image">
			<media:title type="html">p</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery select lists</title>
		<link>http://naveensnayak.wordpress.com/2011/11/07/jquery-select-lists/</link>
		<comments>http://naveensnayak.wordpress.com/2011/11/07/jquery-select-lists/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 02:53:07 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=472</guid>
		<description><![CDATA[Get the value of the selected item  $("select-list-id").val(); Get the text of the selected item  $("select-list-id :selected").text(); Get multiple selected values ( or loop through all selected values ) $("multi-select-id :selected").each(function(i, selected){      var value = $(selected).val();      var text = $(selected).text(); }); Empty a list  $("select-list-id").empty(); Append Options to a list  for(var [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=472&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong>Get the value of the selected item </strong></span></p>
<pre>$("select-list-id").val();</pre>
<p><span style="text-decoration:underline;"><strong>Get the text of the selected item </strong></span></p>
<pre>$("select-list-id :selected").text();</pre>
<p><span style="text-decoration:underline;"><strong>Get multiple selected values ( or loop through all selected values )</strong></span></p>
<pre>$("multi-select-id :selected").each(function(i, selected){
     var value = $(selected).val();
     var text = $(selected).text();
});</pre>
<p><span style="text-decoration:underline;"><strong>Empty a list </strong></span></p>
<pre>$("select-list-id").empty();</pre>
<p><span style="text-decoration:underline;"><strong>Append Options to a list </strong></span></p>
<pre>for(var i in options_list) {
  $("#edit-move-students-to-students").append(
     $('&lt;option&gt;&lt;/option&gt;').val(i).html(options_list[i])
  );
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/472/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/472/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/472/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/472/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/472/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/472/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/472/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=472&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/11/07/jquery-select-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Excel replace formula with result</title>
		<link>http://naveensnayak.wordpress.com/2011/10/28/microsoft-excel-replace-formula-with-result/</link>
		<comments>http://naveensnayak.wordpress.com/2011/10/28/microsoft-excel-replace-formula-with-result/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 14:36:51 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=461</guid>
		<description><![CDATA[You can replace the formula in a cell with the actual result in MS Excel. Note: Make a backup of the file before you do the following steps ( this will replace the formula with the actual result ) Example 1: Full formula replace Lets say you have 3 columns in the sheet as below [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=461&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can replace the formula in a cell with the actual result in MS Excel.</p>
<p><span style="color:#ff0000;"><strong>Note: Make a backup of the file before you do the following steps ( this will replace the formula with the actual result )</strong></span></p>
<p><span style="text-decoration:underline;"><strong>Example 1: Full formula replace</strong></span></p>
<p>Lets say you have 3 columns in the sheet as below</p>
<p>Column 1: first name<br />
Column 2: last name<br />
Column 3: formula to concatenate first name and last name</p>
<p>Example data:</p>
<p>Column 1: John<br />
Column 2: Doe<br />
Column 3: =CONCATENATE(Column 1, &#8221; &#8220;, Column 2)</p>
<p><strong>Steps (keyboard):</strong></p>
<ol>
<li><span style="color:#3366ff;">Click on Column 3 ( the formula bar will display the formula instead of the actual text )</span></li>
<li><span style="color:#3366ff;">Press F2 ( for edit )</span></li>
<li><span style="color:#3366ff;">Press F9 ( for actually calculating the formula )</span></li>
<li><span style="color:#3366ff;">Hit &#8220;Enter&#8221;</span></li>
<li><span style="color:#3366ff;">The cell will now have the actual value instead of the formula</span></li>
</ol>
<p><strong>Steps (not so keyboard ):</strong></p>
<div>
<ol>
<li><span style="color:#3366ff;">For those who are mouse users do this</span></li>
<li><span style="color:#3366ff;">Select the cell ( or cells ) &#8211; <strong>this works with multiple cells </strong></span></li>
<li><span style="color:#3366ff;">Click the &#8220;Copy&#8221; button</span></li>
<li><span style="color:#3366ff;">Then <strong>expand</strong> the &#8220;Paste&#8221; button &#8211; you will see paste options ( Paste Special )</span></li>
<li><span style="color:#3366ff;">Choose Paste Special and then choose &#8220;Values&#8221;</span></li>
</ol>
<div><span style="text-decoration:underline;"><strong>Example 2: Partial formula replace</strong></span></div>
</div>
<div>Lets say you want to replace only a part of the formula &#8211; Example Columns</div>
<div>Column 1: John</div>
<div>Column 2: Doe</div>
<div>Column 3: New York</div>
<div>Column 4: =CONCATENATE( CONCATENATE(Column 1, &#8221; &#8220;, Column 2), &#8220;: &#8220;, Column 3 )</div>
<div>Column 4 will display John Doe: New York</div>
<div>Lets say you want the name to be constant but the city will dynamically change &#8211; then you can lock a part of the formula</div>
<div><strong><strong>Steps:</strong></strong></div>
<ol>
<li><span style="color:#3366ff;">Click on Column 4 ( the formula bar will display the formula instead of the actual text )</span></li>
<li><span style="color:#3366ff;">Press F2 ( for edit )</span></li>
<li><span style="color:#3366ff;">Select CONCATENATE(Column 1, &#8221; &#8220;, Column 2)</span></li>
<li><span style="color:#3366ff;">Press F9 ( for actually calculating the formula )</span></li>
<li><span style="color:#3366ff;">Hit &#8220;Enter&#8221;</span></li>
<li><span style="color:#3366ff;">The cell will now have part of the formula calculated</span></li>
<li><span style="color:#3366ff;">Try changing the city from New York to Atlanta</span></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/461/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/461/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/461/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/461/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/461/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/461/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/461/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/461/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/461/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/461/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/461/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/461/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/461/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/461/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=461&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/10/28/microsoft-excel-replace-formula-with-result/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux grep</title>
		<link>http://naveensnayak.wordpress.com/2011/10/09/linux-grep/</link>
		<comments>http://naveensnayak.wordpress.com/2011/10/09/linux-grep/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 01:31:14 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=458</guid>
		<description><![CDATA[List of grep commands To find a string in a file inside a directory ( searches all files in the directory ) grep -r &#8216;search-string&#8217; path-to-directory<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=458&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>List of grep commands</p>
<p>To find a string in a file inside a directory ( searches all files in the directory )</p>
<p>grep -r &#8216;search-string&#8217; path-to-directory</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/458/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=458&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/10/09/linux-grep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL CASE statement in SELECT clause</title>
		<link>http://naveensnayak.wordpress.com/2011/09/29/mysql-case-statement-in-select-clause/</link>
		<comments>http://naveensnayak.wordpress.com/2011/09/29/mysql-case-statement-in-select-clause/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 19:14:58 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=454</guid>
		<description><![CDATA[A very trivial example SELECT first_name, last_name, middle_name, CASE middle_name WHEN 'A' THEN 'Your Middle name starts with A' WHEN 'B' THEN 'Your Middle name starts with B' WHEN 'C' THEN 'Your Middle name starts with C' WHEN 'D' THEN 'Your Middle name starts with D' END AS middle_name_starts_with FROM users;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=454&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A very trivial example</p>
<pre>SELECT first_name, last_name, middle_name,
	CASE middle_name
		WHEN 'A' THEN 'Your Middle name starts with A'
		WHEN 'B' THEN 'Your Middle name starts with B'
		WHEN 'C' THEN 'Your Middle name starts with C'
		WHEN 'D' THEN 'Your Middle name starts with D'
	END AS middle_name_starts_with
FROM users;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/454/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=454&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/09/29/mysql-case-statement-in-select-clause/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
		<item>
		<title>Some daily and useful GIT commands</title>
		<link>http://naveensnayak.wordpress.com/2011/08/28/some-daily-and-useful-git-commands/</link>
		<comments>http://naveensnayak.wordpress.com/2011/08/28/some-daily-and-useful-git-commands/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 23:16:17 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[GIT]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=443</guid>
		<description><![CDATA[Initial Steps ( this is for creating a PUBLIC git repository on GitHub : anyone can have access to this ) As suggested this post is for setting up a PUBLIC git repository on GitHub ( and local one on Ubuntu ) Anyone will have access to this repo Please do not put sensitive data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=443&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Initial Steps ( this is for creating a PUBLIC git repository on GitHub : anyone can have access to this )</span></strong></p>
<ol>
<li>As suggested this post is for setting up a PUBLIC git repository on GitHub ( and local one on Ubuntu )</li>
<li>Anyone will have access to this repo</li>
<li><span style="color:#ff0000;"><strong>Please do not put sensitive data ( like passwords etc ) in this project </strong></span></li>
<li>If you need a private repo, you can either &#8220;pay&#8221; at GitHub or host your own Git Server</li>
<li>Go to GitHub ( <a href="https://github.com/">https://github.com/</a> ) and create a regular account</li>
<li>There is a very nice tutorial ( <a href="http://help.github.com/win-set-up-git/">http://help.github.com/win-set-up-git/</a> ) on how to set up a git repo on your local machine &#8211; so i am not repeating it here</li>
<li>If you face problems with SSH keys, then you can try using DSA instead of RSA</li>
<li>In Linux dont forget to do this in case SSH to GitHub is not working <strong>cd ~/.ssh; $ ssh-add id_rsa</strong></li>
<li>There is a post on Stack overflow ( <a href="http://stackoverflow.com/questions/922210/unable-to-git-push-master-to-github">http://stackoverflow.com/questions/922210/unable-to-git-push-master-to-github</a> ) for SSH related problems</li>
<li>Once you install Git on your local system, you can also install a GUI like Smart Git</li>
<li>After copying all the public keys and stuff from your local system to GitHub, you can test to SSH to GitHub from your local system</li>
<li>GitHub dose not allow SSH access, but you can see if you are successful or not</li>
<li>Use the command <strong>ssh -vT git@github.com </strong></li>
<li>The end of the message will say something like &#8220;Hi username! You&#8217;ve successfully authenticated, but GitHub does not provide shell access.&#8221;</li>
<li>If there is a problem, then you can see the verbose log of what SSH was trying to do and refer to Step 9</li>
<li>Use the &#8220;New Repository&#8221; button in you Dashboard to create a new repo ( Lets name it &#8220;test&#8221; and put the description as &#8220;test-repo&#8221;)</li>
<li>When you finish creating a new repo, GitHub will give you some nice instructions to follow on your local machine, follow them -<br />
<strong>Note &#8211; i have a directory called GIT on my desktop and all my projects are located there</strong></li>
</ol>
<div>
<pre>Global setup:
 Set up git
  git config --global user.name "Your Name"
  git config --global user.email your-email@gmail.com

Next steps:
  mkdir test
  cd test
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:username/test.git
  git push -u origin master</pre>
</div>
<p>18. Basically you are creating a README file and pushing it to GitHub ( <strong>my folder structure is /home/naveen/Desktop/GIT/test</strong> )<br />
19. After these steps you should be able to see README in your GitHub account under repo &#8220;test&#8221; with the message &#8220;First Commit&#8221;<br />
20. Now lets add another file to &#8220;test&#8221;</p>
<pre>touch index.php
echo "&lt;?php echo 'Hello World';" &gt; index.php
git add index.php
git push -u origin master</pre>
<p>21. You should now be able to see index.php in your GitHub account<br />
22. Lets make some changes to index.php</p>
<pre>echo "echo 'Hello World - 1';" &gt;&gt; index.php
git diff</pre>
<p>23. git diff will show you the differences</p>
<pre>git add index.php
git commit</pre>
<p>24. When you use <strong>git commit</strong> instead of <strong>git commit -m &#8216;your message&#8217; ,  </strong>a vim editor opens up by default and you can see what all changes have been done<br />
25. You will have to type a commit message and exit<br />
26. Type the message &#8220;added hello world 1&#8243; on the first line , then press escape , then press <img src='http://s2.wp.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' />  and hit enter &#8211; you will see the commit message<br />
27. This is better way to see all files that have changed rather than just commit with a direct message<br />
28. To change your editor from vim to nano use the command <strong>git config &#8211;global core.editor &#8220;nano&#8221;  </strong></p>
<pre>git push -u origin master</pre>
<p>24. Changes should be  reflected on GitHub<br />
25. To remove  an entire git repo, all you need to do is to <strong>delete the .git folder</strong> in your repository then you can do an <strong>init for a fresh start<br />
</strong>26. Next how to clone an existing PUBLIC repository from Github<br />
27. First we will delete our existing &#8220;test &#8221; repo on our local machine, then we will clone the &#8220;test&#8221; repo on GitHub that we just created (<span style="color:#ff0000;"> take care where you execute <strong>rm -rf</strong> and always keep a backup of your old git repos</span> )</p>
<pre>rm -rf .git
rm index.php
rm README
cd ..
rmdir test
git clone git://github.com/username/test.git</pre>
<p>28. You will now get back the test repo on GitHub &#8211; you can make modifications and repeat the cycle if necessary<br />
29. To add some color to your command line interface use the below commands</p>
<pre>git config --global color.status auto
git config --global color.branch auto</pre>
<p>30. Change remote-origin with this command ( github does not allow git protocol &#8211; you might get an error while pushing )</p>
<pre>git remote set-url origin git@github.com:username/project_name.git</pre>
<p>31. To show all files in a branch</p>
<pre><code>git ls-tree -r branch</code></pre>
<p>32. To compare the same file from 2 branches</p>
<pre><code>git diff branch_1..branch_2 file.txt</code></pre>
<p>Good tutorials and references at <a href="http://gitref.org/inspect/#diff">http://gitref.org</a></p>
<p>I will update the post as an when i learn more <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/443/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=443&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/08/28/some-daily-and-useful-git-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows 7 Remote Desktop Connection Save Credentials not working</title>
		<link>http://naveensnayak.wordpress.com/2011/08/17/windows-7-remote-desktop-connection-save-credentials-not-working/</link>
		<comments>http://naveensnayak.wordpress.com/2011/08/17/windows-7-remote-desktop-connection-save-credentials-not-working/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 15:13:31 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=435</guid>
		<description><![CDATA[Trying to connect from Windows 7 to a Remote Windows 2008 Server via Remote Desktop Connection I always used to be asked for credentials during logon &#8211; even though i saved my credentials This error would creep up Your system administrator does not allow the use of saved credentials to logon to the remote computer  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=435&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Trying to connect from Windows 7 to a Remote Windows 2008 Server via Remote Desktop Connection</p>
<p>I always used to be asked for credentials during logon &#8211; even though i saved my credentials</p>
<p>This error would creep up</p>
<pre>Your system administrator does not allow the use of saved credentials to logon to the remote computer 
computername/ipadress because its identity is not fully verified. Please enter new credentials.
The logon attempt failed</pre>
<p>There is no-trust-relationship when connecting 2 computers from different domains. Windows uses NTLM in this case and the default domain machine policy does not allow use of saved credentials.</p>
<p><span style="text-decoration:underline;">To Do:</span></p>
<ul>
<li>On your local machine Open Windows command prompt type: <strong>gpedit.msc</strong> -&gt; Press Enter -&gt; a new window will popout</li>
<li>Go to <strong>Local Computer Policy –&gt; Computer Configuration –&gt; Administrative Templates –&gt; System –&gt; Credentials Delegation</strong></li>
<li>Double Click on “<strong>Allow Delegating Saved Credentials with NTLM-only Server Authentication</strong>”</li>
<li>By default it will be &#8220;not configured&#8221;</li>
<li>You will see radio buttons -&gt; Enable the policy</li>
<li>Click the &#8220;<strong>Show</strong>&#8221; button in the options window below and enter the value “<strong>TERMSRV/*</strong>”  (without quotes) into the list.</li>
<li>Click Apply button</li>
<li>Do the same thing for the following policies:<br />
<strong>      Allow Delegating Saved Credentials</strong><br />
<strong>      Allow Delegating Default Credentials with NTLM-only Server Authentication</strong><br />
<strong>      Allow Delegating Default Credentials </strong></li>
<li>Close all windows</li>
<li>Open a command prompt and use “<strong>gpupdate /force</strong>” command to apply the policy directly</li>
</ul>
<div>You must now be able to log in with the saved credentials</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=435&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/08/17/windows-7-remote-desktop-connection-save-credentials-not-working/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
		<item>
		<title>WKHTMLTOPDF with PHP</title>
		<link>http://naveensnayak.wordpress.com/2011/07/26/wkhtmltopdf-with-php/</link>
		<comments>http://naveensnayak.wordpress.com/2011/07/26/wkhtmltopdf-with-php/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 03:29:01 +0000</pubDate>
		<dc:creator>Naveen  Nayak</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://naveensnayak.wordpress.com/?p=431</guid>
		<description><![CDATA[This is for using wkhtmltopdf command line utility in Ubuntu, Apache and PHP wkhtmltopdf is one of the best html to pdf conversion tools i have come across It is a command line utility It is very fast and converts most html pages &#8211; impressive  css support Integration with php is a breeze ( after [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=431&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is for using wkhtmltopdf command line utility in Ubuntu, Apache and PHP</p>
<ol>
<li><a href="http://code.google.com/p/wkhtmltopdf/" target="_blank">wkhtmltopdf</a> is one of the best html to pdf conversion tools i have come across</li>
<li>It is a command line utility</li>
<li>It is very fast and converts most html pages &#8211; impressive  css support</li>
<li>Integration with php is a breeze ( after struggling for 6 hrs <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )</li>
</ol>
<div>Here is how to generate PDF files</div>
<div>
<ol>
<li>Download the latest wkhtmltopdf STATIC file from the site &#8211; at present it is <a href="http://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltopdf-0.10.0_rc2-static-i386.tar.bz2&amp;can=2&amp;q=">wkhtmltopdf-0.10.0_rc2 Linux Static Binary (i368) </a> for Linux 32 bit</li>
<li>There is also a wkhtmltoimage &#8211; dont download that accidentally and try to get pdf&#8217;s <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><span style="color:#ff0000;">Please read the <a href="http://code.google.com/p/wkhtmltopdf/wiki/static" target="_blank"><span style="color:#ff0000;">SYSTEM requirements</span></a> carefully &#8211; wkhtmltopdf requires X11 libraries &#8211; which are not present on a typical bare-bone web server &#8211; you may need to install them</span></li>
<li>unzip the file ( and rename it to wkhtmltopdf &#8211; optional)</li>
<li>make sure that wkhtmltopdf is in your SYSTEM PATH &#8211; my PATH in UBUNTU is <strong>/usr/local/bin </strong> - you may have a different PATH &#8211; find it out by using the command <strong>env </strong> on the terminal</li>
<li>I copied the wkhtmltopdf to this folder &#8211; so the file path now is <strong>/usr/local/bin/wkhtmltopdf</strong></li>
<li>From  the terminal issue this command <strong>/usr/local/bin/wkhtmltopdf http://www.google.com /home/username/Desktop/google.pdf </strong></li>
<li>Basically we are trying to convert Google&#8217;s home page into a pdf file ( change the username to your username or any other destination folder )</li>
<li>Command syntax is <strong>path-to-wkhtmltopdf path-to-html-file path-to-pdf-file</strong></li>
<li>In step 6, be sure to change the username to what ever username you are using or change the path to save the pdf in a different directory</li>
<li>If a pdf file is generated, then you have successfully installed wkhtmltopdf</li>
<li>To make it work in a web environment, the apache user (www-data on Ubuntu) needs to have execute permissions to this file <strong>/usr/local/bin/wkhtmltopdf </strong></li>
<li>After you have given the correct permissions, its time to create a small php script to test ( lets say at localhost/test.php )</li>
</ol>
<div>
<pre style="padding-left:30px;">&lt;?php
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    $cmd = "/usr/local/bin/wkhtmltopdf http://www.yahoo.com /home/username/Desktop/yahoo.pdf";
    $t = shell_exec($cmd);
    exit();</pre>
<p style="padding-left:30px;">Run this php script on a browser and check if the pdf file was created</p>
<p style="padding-left:30px;">If you have a local html file and want to convert it then just use</p>
<pre style="padding-left:30px;">$cmd = "/usr/local/bin/wkhtmltopdf path-to-html-file path-to-pdf-file";</pre>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naveensnayak.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naveensnayak.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naveensnayak.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naveensnayak.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naveensnayak.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naveensnayak.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naveensnayak.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naveensnayak.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naveensnayak.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naveensnayak.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naveensnayak.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naveensnayak.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naveensnayak.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naveensnayak.wordpress.com/431/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naveensnayak.wordpress.com&amp;blog=9881200&amp;post=431&amp;subd=naveensnayak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naveensnayak.wordpress.com/2011/07/26/wkhtmltopdf-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ab51726bffe2e3bfa98f4f8cfb1d274?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveensnayak</media:title>
		</media:content>
	</item>
	</channel>
</rss>
