<?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>Programming</title>
	<atom:link href="http://sparklerubies.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sparklerubies.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 28 Feb 2010 13:20:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sparklerubies.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Programming</title>
		<link>http://sparklerubies.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sparklerubies.wordpress.com/osd.xml" title="Programming" />
	<atom:link rel='hub' href='http://sparklerubies.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Change the default OS in grub using Ubuntu 9.10</title>
		<link>http://sparklerubies.wordpress.com/2010/02/28/change-the-default-os-in-grub-using-ubuntu-9-10/</link>
		<comments>http://sparklerubies.wordpress.com/2010/02/28/change-the-default-os-in-grub-using-ubuntu-9-10/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 13:20:35 +0000</pubDate>
		<dc:creator>harshsingal</dc:creator>
				<category><![CDATA[Ubuntu9.10]]></category>
		<category><![CDATA[default OS]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[operating system change]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://sparklerubies.wordpress.com/?p=8</guid>
		<description><![CDATA[Note: The good old /boot/grub/menu.lst do not exist anymore in Ubuntu 9.10 as it uses a new GRUB. So, you are one of the many people who have freshly installed Ubuntu 9.10 on your system, yet not completely fallen in love with it as at some corner of the hard disk, you have still windows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sparklerubies.wordpress.com&amp;blog=12148169&amp;post=8&amp;subd=sparklerubies&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;"><strong>Note: The good old /boot/grub/menu.lst do not exist anymore in Ubuntu 9.10 as it uses a new GRUB.</strong></span></p>
<p>So, you are one of the many people who have freshly installed Ubuntu 9.10 on your system, yet not completely fallen in love with it as at some corner of the hard disk, you have still windows installed. Now you have a dual boot menu, GRUB and wondering how to change the default OS to windows.(Whenever a new version of Ubuntu is installed, the bootloader will always point to Ubuntu itself.<br />
You switch on the computer and come across with number of weird options in GRUB starting with Ubuntu, memtest, something else and last option is reserved for windows..(Is it a race or something?)<br />
Here is how you can change the default OS to windows:<br />
1. Login to Ubuntu<br />
2. open the terminal =&gt; Alt+F2 =&gt; type gnome-terminal<br />
3. at the prompt,type<br />
<span style="color:#339966;">sudo gedit /etc/default/grub</span><br />
4. The system will ask for an admin password as you are trying to make changes to one of the important files<br />
5. in the editor, search for the parameter GRUB_DEFAULT, It will be set to 0(for Ubuntu) by default<br />
6. change the value to 2,3,4 (wherever the option of windows is indexed at in the GRUB). Typically, it is 4 in a dual boot.<br />
7. save the file<br />
8. you will return back to the terminal</p>
<p>9. type in<br />
<span style="color:#339966;">sudo update-grub</span><br />
This will regenerate the file /boot/grub/grub.cfg</p>
<p>You are done. The next time you see the GRUB, the default pointer will be at windows OS.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sparklerubies.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sparklerubies.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sparklerubies.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sparklerubies.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sparklerubies.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sparklerubies.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sparklerubies.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sparklerubies.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sparklerubies.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sparklerubies.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sparklerubies.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sparklerubies.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sparklerubies.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sparklerubies.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sparklerubies.wordpress.com&amp;blog=12148169&amp;post=8&amp;subd=sparklerubies&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sparklerubies.wordpress.com/2010/02/28/change-the-default-os-in-grub-using-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9cf945d03b962913f9d4b85c03353287?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">harshsingal</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8216; and &#8221; &#8211; Ruby</title>
		<link>http://sparklerubies.wordpress.com/2010/02/20/and-ruby/</link>
		<comments>http://sparklerubies.wordpress.com/2010/02/20/and-ruby/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 18:44:00 +0000</pubDate>
		<dc:creator>harshsingal</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Escape]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Quotes]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Variable Substitution]]></category>

		<guid isPermaLink="false">http://sparklerubies.wordpress.com/?p=3</guid>
		<description><![CDATA[While going through one of the initial topics of Ruby is when do we use the single quotes and double quotes in Ruby to print a string. Here are my some pennies on the same. 1. Performance: Usage of single-quotes is more performance friendly than using double quotes (will be more clear in the following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sparklerubies.wordpress.com&amp;blog=12148169&amp;post=3&amp;subd=sparklerubies&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While going through one of the initial topics of Ruby is when do we use the single quotes and double quotes in Ruby to print a string. Here are my some pennies on the same.</p>
<p>1. Performance: Usage of single-quotes is more performance friendly than using double quotes (<em>will be more clear in the following points</em>)</p>
<p>2. Expression intrapolation: It simply means if you want to process any of the expression or want to print a value of the variable, the double quotes should be used. Single quotes never parses any expression enclosed in them. You can even insert a full fledged code in double quotes. The interpreter will simply process the code in double quotes first and print the resultant</p>
<p><em><strong>In Single quotes:</strong></em></p>
<p>name = <span style="color:#ff6600;">&#8220;Some String&#8221;</span><br />
puts<span style="color:#ff6600;"> &#8216;#{if name==&#8221;Some String&#8221;<br />
puts &#8220;Hello, Some String&#8221;<br />
else<br />
puts &#8220;Hello, Specific String&#8221;<br />
end<br />
}&#8217;        <span style="color:#999999;"># will print the code as it is without any processing</span><br />
</span></p>
<p><span style="color:#ff6600;"><span style="color:#000000;"><em><strong>In Double Quotes</strong></em></span></span></p>
<p>name = <span style="color:#ff6600;">&#8220;Some String&#8221;</span><br />
puts <span style="color:#ff6600;">&#8220;#{</span><span style="color:#3366ff;">if</span> name==<span style="color:#ff6600;">&#8220;Some String&#8221;</span><br />
puts <span style="color:#ff6600;">&#8220;Hello, Some String&#8221;</span><br />
<span style="color:#3366ff;">else</span><br />
puts<span style="color:#ff6600;"> &#8220;Hello, Specific String&#8221;</span><br />
<span style="color:#3366ff;">end</span><br />
<span style="color:#ff6600;">}&#8221;                      <span style="color:#999999;"> # will print &#8220;Hello, Some String&#8221;</span><br />
</span></p>
<p>3. Variable Substitution: If any value needs to be printed using puts and you must use a double quote</p>
<p>name = <span style="color:#ff6600;">&#8220;Some String&#8221;</span><br />
puts<span style="color:#ff6600;"> &#8220;#{</span>name<span style="color:#ff6600;">}</span><span style="color:#ff6600;">&#8220;</span> <span style="color:#999999;"># will print Some String as a result</span><br />
puts<span style="color:#ff6600;"> &#8216;#{</span>name<span style="color:#ff6600;">}&#8217;</span> <span style="color:#999999;"># will print #{name} as a result</span></p>
<p>4. Escape Sequence: The scope of usage of escape sequences broadens when you use double quotes. There are many options with double quotes to include escape sequences as compared to the ones in single quotes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sparklerubies.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sparklerubies.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sparklerubies.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sparklerubies.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sparklerubies.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sparklerubies.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sparklerubies.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sparklerubies.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sparklerubies.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sparklerubies.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sparklerubies.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sparklerubies.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sparklerubies.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sparklerubies.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sparklerubies.wordpress.com&amp;blog=12148169&amp;post=3&amp;subd=sparklerubies&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sparklerubies.wordpress.com/2010/02/20/and-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9cf945d03b962913f9d4b85c03353287?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">harshsingal</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://sparklerubies.wordpress.com/2010/02/20/hello-world/</link>
		<comments>http://sparklerubies.wordpress.com/2010/02/20/hello-world/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 18:23:19 +0000</pubDate>
		<dc:creator>harshsingal</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sparklerubies.wordpress.com&amp;blog=12148169&amp;post=1&amp;subd=sparklerubies&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sparklerubies.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sparklerubies.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sparklerubies.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sparklerubies.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sparklerubies.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sparklerubies.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sparklerubies.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sparklerubies.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sparklerubies.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sparklerubies.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sparklerubies.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sparklerubies.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sparklerubies.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sparklerubies.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sparklerubies.wordpress.com&amp;blog=12148169&amp;post=1&amp;subd=sparklerubies&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sparklerubies.wordpress.com/2010/02/20/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9cf945d03b962913f9d4b85c03353287?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">harshsingal</media:title>
		</media:content>
	</item>
	</channel>
</rss>
