<?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>elsif</title>
	<atom:link href="http://elsif.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://elsif.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sat, 13 Jun 2009 16:40:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='elsif.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/446eee906de08f99a16191596e717510?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>elsif</title>
		<link>http://elsif.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://elsif.wordpress.com/osd.xml" title="elsif" />
		<item>
		<title>Returning values from a function, Ruby style</title>
		<link>http://elsif.wordpress.com/2009/06/13/returning-values-from-a-function-ruby-style/</link>
		<comments>http://elsif.wordpress.com/2009/06/13/returning-values-from-a-function-ruby-style/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 16:34:19 +0000</pubDate>
		<dc:creator>vijay</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://elsif.wordpress.com/?p=15</guid>
		<description><![CDATA[A Ruby function automatically returns the value of the last expression in that function.  It takes a little time to get used to this, if you are from PHP/Java background, like me.  You&#8217;ll have to return values explicitly in those languages. Take this simple example.  
def get_full_name(first_name, last_name)
&#160;&#160;first_name + " " + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=elsif.wordpress.com&blog=8104258&post=15&subd=elsif&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A Ruby function automatically returns the value of the last expression in that function.  It takes a little time to get used to this, if you are from PHP/Java background, like me.  You&#8217;ll have to return values explicitly in those languages. Take this simple example.  </p>
<p><code>def get_full_name(first_name, last_name)<br />
&nbsp;&nbsp;first_name + " " + last_name<br />
end</code></p>
<p>It is equivalent to the following, but more elegant.</p>
<p><code>def get_full_name(first_name, last_name)<br />
 &nbsp;&nbsp;full_name =  first_name + " " + last_name<br />
 &nbsp;&nbsp;return full_name<br />
end</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/elsif.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/elsif.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/elsif.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/elsif.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/elsif.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/elsif.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/elsif.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/elsif.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/elsif.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/elsif.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=elsif.wordpress.com&blog=8104258&post=15&subd=elsif&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://elsif.wordpress.com/2009/06/13/returning-values-from-a-function-ruby-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6af72fdcab8729261fbe39bf6e51d631?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vijay</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Rails and mysql on ubuntu 9.04 (Jaunty Jackalope)</title>
		<link>http://elsif.wordpress.com/2009/06/13/installing-rails-and-mysql-on-ubuntu-9-04-jaunty-jackalope/</link>
		<comments>http://elsif.wordpress.com/2009/06/13/installing-rails-and-mysql-on-ubuntu-9-04-jaunty-jackalope/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 16:10:33 +0000</pubDate>
		<dc:creator>vijay</dc:creator>
				<category><![CDATA[installation]]></category>

		<guid isPermaLink="false">http://elsif.wordpress.com/?p=3</guid>
		<description><![CDATA[First, tools of the trade  
I used to think that installing software on windows was easy, until I started using Ubuntu.  Trust me, it could never be easier.  Just run these commands, and you are done.
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install ruby-full build-essential
sudo gem install rails
Thats all we need to start [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=elsif.wordpress.com&blog=8104258&post=3&subd=elsif&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>First, tools of the trade <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I used to think that installing software on windows was easy, until I started using Ubuntu.  Trust me, it could never be easier.  Just run these commands, and you are done.</p>
<p>sudo apt-get install apache2<br />
sudo apt-get install mysql-server<br />
sudo apt-get install ruby-full build-essential<br />
sudo gem install rails</p>
<p>Thats all we need to start working with rails.  You can verify if mysql is installed by logging into mysql.  The default password is root.  Try</p>
<p>mysql -uroot -proot</p>
<p>you should be able to log into mysql.   You can check the version of mysql, using mysql &#8211;&#8211;version  (remember, two dashes)</p>
<p>For ruby, run</p>
<p>ruby -v</p>
<p>The latest version as of this writing is 1.8.7.  The output should be similar to this</p>
<p>ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]</p>
<p>For rails, run</p>
<p>rails -v</p>
<p>The latest version of rails as of this writing is 2.3.2. The output should be similar to this</p>
<p>Rails 2.3.2</p>
<p>Wondering why use gem to install rails instead of apt-get?  gem is what we&#8217;ll be using to install all the ruby gems, so why not use it to install rails itself?</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/elsif.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/elsif.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/elsif.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/elsif.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/elsif.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/elsif.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/elsif.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/elsif.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/elsif.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/elsif.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=elsif.wordpress.com&blog=8104258&post=3&subd=elsif&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://elsif.wordpress.com/2009/06/13/installing-rails-and-mysql-on-ubuntu-9-04-jaunty-jackalope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6af72fdcab8729261fbe39bf6e51d631?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vijay</media:title>
		</media:content>
	</item>
	</channel>
</rss>