<?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>Silence is Foo &#187; ruby</title>
	<atom:link href="http://raflabs.com/blogs/silence-is-foo/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://raflabs.com/blogs/silence-is-foo</link>
	<description>Mental notes on Ruby, Git, Rails and whatever geeky thing</description>
	<lastBuildDate>Thu, 07 Apr 2011 19:11:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[Today&#039;s Frustration] &#8220;The Invalid Gem Format&#8221; message</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/11/07/todays-frustration-invalid-gem-format-message/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/11/07/todays-frustration-invalid-gem-format-message/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 22:04:19 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=864</guid>
		<description><![CDATA[I was installing a gem when suddenly:

ERROR: Error installing the_gem:
invalid gem format for /Library/Ruby/Gems/1.8/cache/the_gem-0.0.0.gem

I got frustrated because the error message doesn't tells much about the real error, which I still don't know what is, the only thing we can figure out reading the message is that rubygems is trying to install the gem from a [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/11/07/todays-frustration-invalid-gem-format-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MUSh, a multi-service URL shortener in Ruby</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/08/27/mush-multiservice-url-shortener-ruby/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/08/27/mush-multiservice-url-shortener-ruby/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 05:53:37 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bitly]]></category>
		<category><![CDATA[isgd]]></category>
		<category><![CDATA[mush]]></category>
		<category><![CDATA[owly]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[shorten]]></category>
		<category><![CDATA[shortener]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=882</guid>
		<description><![CDATA[I have to tell the truth, I'm really lazy, if there is a way to avoid to do something I will do so. 
What about avoiding to open a browser or create a new tab and click a bookmark or type the address of a URL shortener service when I want to shorten a URL? [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/08/27/mush-multiservice-url-shortener-ruby/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>nil, nil?, true and false in Ruby</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/08/12/nil-true-false-ruby/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/08/12/nil-true-false-ruby/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 19:41:10 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[boolean]]></category>
		<category><![CDATA[nil]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=665</guid>
		<description><![CDATA[A friend of mine I'm teaching Ruby to asked me just a few days ago about the difference between nil and false and nil and nil? in Ruby. I gave him a very short answer:
&#160;&#160;&#160;&#160;nil = null
&#160;&#160;&#160;&#160;false = boolean value
&#160;&#160;&#160;&#160;nil? is a method
yes, I kinda lied to him about the null and false, but here [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/08/12/nil-true-false-ruby/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>[Ruby Idioms] What is the splat/unary/asterisk operator useful for?</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/08/07/ruby-idioms-what-is-the-splatunary-operator-useful-for/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/08/07/ruby-idioms-what-is-the-splatunary-operator-useful-for/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 20:24:28 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[idioms]]></category>
		<category><![CDATA[ruybisms]]></category>
		<category><![CDATA[splat]]></category>
		<category><![CDATA[unary]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=535</guid>
		<description><![CDATA[Long story short: the splat operator is useful to explode and flatten arrays and hashes (enumerables).
Doesn't sound like something powerful, does it?
Code is worth a thousand words.
1. Passing a variable number of arguments to a method

Let's get started with an hypothetical method called ActiveRecord::Base#find. Please, don't care about the functionality but the method signature.


def find(*args)
 [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/08/07/ruby-idioms-what-is-the-splatunary-operator-useful-for/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Setting your terminal title to include your current ruby version</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 06:47:30 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[rvm]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[xterm]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=536</guid>
		<description><![CDATA[Using RVM to switch ruby versions is really awesome, but I've found myself issuing ruby -v a lot of times because sometimes I have terminals with 1.8 and others with 1.9 and I need to know which version a given terminal is running , so I ended putting the current ruby version in the terminal title.
In [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/07/25/setting-your-terminal-title-to-include-your-current-ruby-version/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My friend the Rails console &#8211; Part II</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/07/21/my-friend-the-rails-console-part-ii/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/07/21/my-friend-the-rails-console-part-ii/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 17:45:47 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[pasteboaRb]]></category>
		<category><![CDATA[pasteboard]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=500</guid>
		<description><![CDATA[You can find the first part clicking here.
Despite all this Rails 3 thingy, we have to face it, we won't ditch Rails 2.3.x anytime soon, so I'm still in the mood to post things about Rails 2.3.x. This time I'll try to provide you guys with some Rails 3 version of the tricks or tips [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/07/21/my-friend-the-rails-console-part-ii/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Dumping and restoring data with the YamlDB gem in Rails</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/07/19/dumping-and-restoring-data-with-the-yamldb-gem-in-rails/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/07/19/dumping-and-restoring-data-with-the-yamldb-gem-in-rails/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 20:41:32 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=488</guid>
		<description><![CDATA[What is YamlDB (yaml_db)?
YamlDb is a Rails plugin and a gem for dumping and restoring data in YAML format. It complements the database-independent schema format found in db/schema.rb. The data is saved into db/data.yml.
Some Real-world usages

Backup data in YAML format (database-independent)
Restore YAML data to virtually any database
Switching from say SQLite to mySQL, or other databases
Replicate [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/07/19/dumping-and-restoring-data-with-the-yamldb-gem-in-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Prowly, a Ruby API wrapper for Prowl (the Growl client for the iPhone)</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/06/30/prowly-a-ruby-api-wrapper-for-prowl-the-growl-client-for-the-iphone/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/06/30/prowly-a-ruby-api-wrapper-for-prowl-the-growl-client-for-the-iphone/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 17:45:56 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[prowl]]></category>
		<category><![CDATA[prowly]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=427</guid>
		<description><![CDATA[What is Growl?
Growl lets Mac OS X applications unintrusively tell you when things happen.
What is Prowl?
Prowl is the Growl client for the iPhone OS. Prowl was made to send the Growl notifications to your iPhone when you are not in front of your computer, but since it has an API you can send notifications to [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/06/30/prowly-a-ruby-api-wrapper-for-prowl-the-growl-client-for-the-iphone/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding a :noselect option to ActiveRecord (Rails 2.3.x)</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/02/20/adding-a-noselect-option-to-activerecord-rails-2-3-x/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/02/20/adding-a-noselect-option-to-activerecord-rails-2-3-x/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 21:12:28 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=327</guid>
		<description><![CDATA[Let's say you have an users table with the following columns
firstname, lastname, email, crypted_password and salt
so you get all the records with:


User.find(:all)
User.all #it calls find internally

well, you should know that ActiveRecord creates one instance of the User model for every record it founds and that every column of such records is stored in a instance [...]]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/02/20/adding-a-noselect-option-to-activerecord-rails-2-3-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Checking existence of tables, columns and indexes in Rails Migrations</title>
		<link>http://raflabs.com/blogs/silence-is-foo/2010/02/11/checking-existence-of-tables-columns-and-indexes-in-rails-migrations/</link>
		<comments>http://raflabs.com/blogs/silence-is-foo/2010/02/11/checking-existence-of-tables-columns-and-indexes-in-rails-migrations/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 23:18:40 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[migrations]]></category>

		<guid isPermaLink="false">http://raflabs.com/blogs/silence-is-foo/?p=316</guid>
		<description><![CDATA[Tired of running migrations which doesn't work because a migration was trying to create an existent table I created 3 very very simple methods to check the existence of tables, columns and indexes in migrations or wherever.
You can see the code here: http://github.com/rafmagana/database_utils
reddit_url = http://raflabs.com/blogs/silence-is-foo/2010/02/11/checking-existence-of-tables-columns-and-indexes-in-rails-migrations/;reddit_title = Checking+existence+of+tables%2C+columns+and+indexes+in+Rails+Migrations;reddit_newwindow='1';]]></description>
		<wfw:commentRss>http://raflabs.com/blogs/silence-is-foo/2010/02/11/checking-existence-of-tables-columns-and-indexes-in-rails-migrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

