<?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"
	>

<channel>
	<title>randomba</title>
	<atom:link href="http://randomba.org/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://randomba.org</link>
	<description>Programming, Ruby, Rails, and other random things.</description>
	<pubDate>Mon, 12 May 2008 23:17:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>friendly_id works with Rails 2.1</title>
		<link>http://randomba.org/index.php/2008/05/12/friendly_id-works-with-rails-21/</link>
		<comments>http://randomba.org/index.php/2008/05/12/friendly_id-works-with-rails-21/#comments</comments>
		<pubDate>Mon, 12 May 2008 23:17:36 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[friendly_id]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://randomba.org/index.php/2008/05/12/friendly_id-works-with-rails-21/</guid>
		<description><![CDATA[With the first release candidate of Rails 2.1 now out, I&#8217;ve tested friendly_id against it today. Yeah, I&#8217;m not really a big &#8220;edge&#8221; guy. In case anyone was worried, it appears to work fine. Let me know if you discover otherwise.
]]></description>
			<content:encoded><![CDATA[<p>With the first release candidate of <a href="http://twitter.com/d2h/statuses/808936705" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');">Rails 2.1 now out</a>, I&#8217;ve tested <a href="http://github.com/norman/friendly_id/tree/master" onclick="javascript:urchinTracker ('/outbound/article/github.com');">friendly_id</a> against it today. Yeah, I&#8217;m not really a big &#8220;edge&#8221; guy. In case anyone was worried, it appears to work fine. Let me know if you discover otherwise.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/05/12/friendly_id-works-with-rails-21/feed/</wfw:commentRss>
		</item>
		<item>
		<title>friendly_id moving to Github</title>
		<link>http://randomba.org/index.php/2008/04/18/friendly_id-moving-to-github/</link>
		<comments>http://randomba.org/index.php/2008/04/18/friendly_id-moving-to-github/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 13:35:59 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[friendly_id]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[git]]></category>

		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://randomba.org/index.php/2008/04/18/friendly_id-moving-to-github/</guid>
		<description><![CDATA[I&#8217;ve been working with Git for the last few weeks and have decided to move friendly_id over to Github. The svn repository will remain live for at least a month of so after Rails 2.1 is released, since the support for git-hosted plugins is currently only available in Edge Rails.
For now, all development is being [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with Git for the last few weeks and have decided to <a href="http://github.com/norman/friendly_id/tree/master" onclick="javascript:urchinTracker ('/outbound/article/github.com');">move friendly_id over to Github</a>. The svn repository will remain live for at least a month of so after Rails 2.1 is released, since the support for git-hosted plugins is currently only available in Edge Rails.</p>
<p>For now, all development is being committed to Git, and then patched into the svn repository. So, if you&#8217;re using the svn repository don&#8217;t worry, it will remain current for a while.</p>
<p>I remember first hearing about Git during the Linux/Bitkeeper contoversy, and recall thinking Linus Torvalds was odd for not using CVS or Subversion over Bitkeeper, and then thinking he was certifiably insane for deciding to roll his own version tracking system once Bitkeeper didn&#8217;t work out.</p>
<p>Of course, Linus Torvalds is (a) a better programmer than me and (b) smarter than me, so there you go. Git has evolved into a very nice tracking system; for me everything that was slow and annoying in SVN (namely, comparing revisions and branching) is fast and easy using Git. If you haven&#8217;t yet taken a look at it, you should.</p>
<p>You can take a peek at the shiny new friendly_id repository <a href="http://github.com/norman/friendly_id/tree/master" onclick="javascript:urchinTracker ('/outbound/article/github.com');">here</a>.</p>
<p>If you&#8217;d like to see a quick introduction to Git, take a peek at Sebastian Delmont&#8217;s presentation below.</p>
<p><object type="application/x-shockwave-flash" width="400" height="291" data="http://www.vimeo.com/moogaloop.swf?clip_id=777977&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color="><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=777977&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=" /></object><br /><a href="http://www.vimeo.com/777977/l:embed_777977" onclick="javascript:urchinTracker ('/outbound/article/www.vimeo.com');">GIT Talk (nyc.rb)</a> from <a href="http://www.vimeo.com/user371744/l:embed_777977" onclick="javascript:urchinTracker ('/outbound/article/www.vimeo.com');">Sebastian Delmont</a> on <a href="http://vimeo.com/l:embed_777977" onclick="javascript:urchinTracker ('/outbound/article/vimeo.com');">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/04/18/friendly_id-moving-to-github/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to test flash.now in Rails</title>
		<link>http://randomba.org/index.php/2008/04/17/how-to-test-flashnow-in-rails/</link>
		<comments>http://randomba.org/index.php/2008/04/17/how-to-test-flashnow-in-rails/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 15:38:48 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[code]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://randomba.org/index.php/2008/04/17/how-to-test-flashnow-in-rails/</guid>
		<description><![CDATA[I got stuck for a few minutes trying to figure out how to write a unit test to check if a value was being set in the flash using flash.now. In Rails&#8217; Test::Unit you can&#8217;t just do something like assert_not_nil flash[:notice] because the flash value is discarded at the end of the request, and so [...]]]></description>
			<content:encoded><![CDATA[<p>I got stuck for a few minutes trying to figure out how to write a unit test to check if a value was being set in the flash using flash.now. In Rails&#8217; Test::Unit you can&#8217;t just do something like assert_not_nil flash[:notice] because the flash value is discarded at the end of the request, and so the flash is always nil.</p>
<p>The solution is to use Mocha to mock an instance of ActionController::Flash::FlashHash and capture the value being set. Here was my solution:</p>
<p><code></p>
<pre>
def test_create_with_empty_email_sets_error_in_flash
  hash = {}
  ActionController::Flash::FlashHash.any_instance.expects(:now).returns(
    hash
  )
  post :create
  assert_not_nil hash[:error]
end
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/04/17/how-to-test-flashnow-in-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting Postfix to use SASL on Debian Etch</title>
		<link>http://randomba.org/index.php/2008/04/10/getting-postfix-to-use-sasl-on-debian-etch/</link>
		<comments>http://randomba.org/index.php/2008/04/10/getting-postfix-to-use-sasl-on-debian-etch/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 21:40:59 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[debian]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://randomba.org/index.php/2008/04/10/getting-postfix-to-use-sasl-on-debian-etch/</guid>
		<description><![CDATA[I have been tripping over this for days and finally, though the miracle of this thing called Google, found a mailing list post describing exactly how to do it. Here it is, relinked so that others may find it.
Don&#8217;t you ever feel really dumb when you realize that what you&#8217;ve been trying to do for [...]]]></description>
			<content:encoded><![CDATA[<p>I have been tripping over this for days and finally, though the miracle of this thing called Google, found a mailing list post describing exactly how to do it. <a href="http://www.irbs.net/internet/postfix/0705/1301.html" onclick="javascript:urchinTracker ('/outbound/article/www.irbs.net');">Here it is</a>, relinked so that others may find it.</p>
<p>Don&#8217;t you ever feel really dumb when you realize that what you&#8217;ve been trying to do for days is actually so easy? I haven&#8217;t worked as a sysadmin for 4 years now and find my skills have really atrophied&#8230; but anyway&#8230; thanks to the Google gods I have managed once more to get away with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/04/10/getting-postfix-to-use-sasl-on-debian-etch/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Moved blog to WordPress</title>
		<link>http://randomba.org/index.php/2008/02/07/moved-blog-to-wordpress/</link>
		<comments>http://randomba.org/index.php/2008/02/07/moved-blog-to-wordpress/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 15:02:56 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[randomba]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.randomba.org/index.php/2008/02/07/moved-blog-to-wordpress/</guid>
		<description><![CDATA[
I decided to move the blog over to WordPress rather than Typo. I really wanted to like Typo, because I like Rails. But the fact of the matter is that WordPress is just much better software and so I decided to move things over to it.


Just because Rails is good is not an excuse to [...]]]></description>
			<content:encoded><![CDATA[<p>
I decided to move the blog over to WordPress rather than Typo. I really <span style="font-weight: bold" class="Apple-style-span">wanted</span> to like Typo, because I like Rails. But the fact of the matter is that WordPress is just much better software and so I decided to move things over to it.
</p>
<p>
Just because Rails is good is not an excuse to avoid using quality software written in another programming language. I know a lot of Rails developers dislike PHP but I&#8217;m happy to work with good software - especially free software - no matter what language it&#8217;s written our in. And this blog was never meant to be a &#8220;Rails blog,&#8221; we here at Randomba also work with C++, Java, PHP, Perl, Objective C, Cocoa and a lot of other languages/frameworks. Yes, we CAN all get along. <img src='http://randomba.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> We just happen to be doing a lot of Rails stuff lately.
</p>
<p>
Anyway&#8230; this means that I need to apologize to the <span style="text-decoration: line-through; -webkit-text-decorations-in-effect: line-through" class="Apple-style-span">thousands</span> <span style="text-decoration: line-through; -webkit-text-decorations-in-effect: line-through" class="Apple-style-span">hundreds</span> several people that left comments on the previous blog; it was a little complicated to port them over, and I got lazy and decided to leave them. This should be the last time it happens, I promise.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/02/07/moved-blog-to-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Ruby 1.8.6 on Debian Etch (stable)</title>
		<link>http://randomba.org/index.php/2008/01/29/installing-ruby-186-on-debian-etch-stable/</link>
		<comments>http://randomba.org/index.php/2008/01/29/installing-ruby-186-on-debian-etch-stable/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 02:06:00 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[debian]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://randomba.com/?p=22</guid>
		<description><![CDATA[I recently had to set up Ruby 1.8.6 on a server running Debian Etch stable. Debian is famous for its slow release cycle - Debian stable often lags far behind other Linux releases in terms of software package versions, though it provides an amazingly comprehensive set of well-tested packages and great stability, making it a [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to set up Ruby 1.8.6 on a server running Debian Etch stable. Debian is famous for its slow release cycle - Debian stable often lags far behind other Linux releases in terms of software package versions, though it provides an amazingly comprehensive set of well-tested packages and great stability, making it a great choice as a server platform.</p>
<p>However the current release, Etch, comes with Ruby 1.8.5, which is a bit old and has some problems running Mongrel. It&#8217;s very easy to download and compile Ruby, installing it in /usr/local, but this bypasses Debian&#8217;s packaging system. But it&#8217;s easy to do better; using Ruby&#8217;s package manager to install Ruby and maintaining all the benefits of having your installed software under package management.</p>
<p>Note that you&#8217;ll need to be root to run these commands.</p>
<p>
<strong>Make sure you haven&#8217;t installed ruby in your package manager yet.</strong>
</p>
<p>
Or, if you have, uninstall it before proceeding to avoid package conflicts. Read the comments on the post below for more details.
</p>
<p>1) Update your /etc/apt/sources.list, to use Debian&#8217;s &#8220;unstable&#8221; source packages:</p>
<p>deb-src ftp://debian.mirrors.tds.net/debian/ unstable main non-free contrib</p>
<p>2) Update your list of available packages:</p>
<p>apt-get update</p>
<p>3) Install Ruby&#8217;s build dependencies:</p>
<p>apt-get build-dep ruby1.8</p>
<p>4) Install Debian&#8217;s package management development programs:</p>
<p>apt-get install dpkg-dev</p>
<p>5) Download the Ruby source package and build it:</p>
<p>apt-get source -b ruby1.8</p>
<p>This took about 5 minutes on my system with SATA disks and a 2 gig P4. It creates the following packages:</p>
<ul>
<li>irb1.8<em>1.8.6.111-4</em>all.deb</li>
<li>libdbm-ruby1.8<em>1.8.6.111-4</em>i386.deb</li>
<li>libgdbm-ruby1.8<em>1.8.6.111-4</em>i386.deb</li>
<li>libopenssl-ruby1.8<em>1.8.6.111-4</em>i386.deb</li>
<li>libreadline-ruby1.8<em>1.8.6.111-4</em>i386.deb</li>
<li>libruby1.8<em>1.8.6.111-4</em>i386.deb</li>
<li>libruby1.8-dbg<em>1.8.6.111-4</em>i386.deb</li>
<li>libtcltk-ruby1.8<em>1.8.6.111-4</em>i386.deb</li>
<li>rdoc1.8<em>1.8.6.111-4</em>all.deb</li>
<li>ri1.8<em>1.8.6.111-4</em>all.deb</li>
<li>ruby1.8<em>1.8.6.111-4</em>i386.deb</li>
<li>ruby1.8-dev<em>1.8.6.111-4</em>i386.deb</li>
<li>ruby1.8-elisp<em>1.8.6.111-4</em>all.deb</li>
<li>ruby1.8-examples<em>1.8.6.111-4</em>all.deb</li>
</ul>
<p>6) Install the packages:</p>
<p>dpkg -i *.deb</p>
<p>You can also just install the ones you think you&#8217;ll need; at very least you&#8217;ll want ruby1.8<em>1.8.6.111-4</em>i386.deb, and the ri, rdoc and irb packages.</p>
<p>7) Bask in the Ruby 1.8.6 goodness:</p>
<p>norman@randomba:$ ruby -v</p>
<p>ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]</p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/01/29/installing-ruby-186-on-debian-etch-stable/feed/</wfw:commentRss>
		</item>
		<item>
		<title>friendly_id - Ruby on Rails plugin for human-readable id&#8217;s</title>
		<link>http://randomba.org/index.php/2008/01/18/friendly_id-ruby-on-rails-plugin-for-human-readable-ids/</link>
		<comments>http://randomba.org/index.php/2008/01/18/friendly_id-ruby-on-rails-plugin-for-human-readable-ids/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 20:19:00 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[friendly_id]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://randomba.com/?p=23</guid>
		<description><![CDATA[
Friendly_id is a plugin for Ruby on Rails which allows you to work with human-friendly strings as well as numeric ids for ActiveRecords, so that you can have urls like “/members/joe” rather than “/members/123” or “/members/123-joe”.


This provides your application with better search engine optimization (SEO), better data security, and more human-friendly URL’s.It can optionally keep [...]]]></description>
			<content:encoded><![CDATA[<p>
Friendly_id is a plugin for Ruby on Rails which allows you to work with human-friendly strings as well as numeric ids for ActiveRecords, so that you can have urls like “/members/joe” rather than “/members/123” or “/members/123-joe”.
</p>
<p>
This provides your application with better search engine optimization (SEO), better data security, and more human-friendly URL’s.It can optionally keep track of modified ids, so that you can do 301 redirects the current URL’s of updated resources.
</p>
<p>
Read more in the <a href="http://svn.randomba.org/rdoc/friendly_id/" >RDoc</a>, or download it directly from <a href="http://svn.randomba.org/friendly_id/" >its subversion repository</a>.
</p>
<p>
EDIT: now available in two flavors: <a href="http://svn.randomba.org/friendly_id" >svn</a> and <a href="http://github.com/norman/friendly_id/tree/master" onclick="javascript:urchinTracker ('/outbound/article/github.com');">git</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/01/18/friendly_id-ruby-on-rails-plugin-for-human-readable-ids/feed/</wfw:commentRss>
		</item>
		<item>
		<title>application config generator for Rails</title>
		<link>http://randomba.org/index.php/2008/01/03/application-config-generator-for-rails/</link>
		<comments>http://randomba.org/index.php/2008/01/03/application-config-generator-for-rails/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 19:17:00 +0000</pubDate>
		<dc:creator>Norman</dc:creator>
		
		<category><![CDATA[code]]></category>

		<category><![CDATA[generators]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://randomba.com/?p=24</guid>
		<description><![CDATA[
app_config is a small generator for Ruby on Rails that generates an application.yml file in your config director, and an initializer script to load it. You can then use the application.yml file to store API keys, mail server settings, or any other kind of configuration data that your application needs. The code was inspired by [...]]]></description>
			<content:encoded><![CDATA[<p>
app_config is a small generator for Ruby on Rails that generates an application.yml file in your config director, and an initializer script to load it. You can then use the application.yml file to store API keys, mail server settings, or any other kind of configuration data that your application needs. The code was inspired by Geoffrey Grossenbach&#8217;s <a href="http://peepcode.com/products/draft-rails-code-review-pdf" onclick="javascript:urchinTracker ('/outbound/article/peepcode.com');">Ruby on Rails Code Review pdf</a>.
</p>
<p>
You can get it using <a href="http://svn.randomba.org/app_config_generator/" >svn</a> or <a href="http://github.com/norman/app-config-generator/tree" onclick="javascript:urchinTracker ('/outbound/article/github.com');">git</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomba.org/index.php/2008/01/03/application-config-generator-for-rails/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
