<?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>Stok Footage &#187; Ruby on Rails</title>
	<atom:link href="http://www.stok.ca/blog/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stok.ca/blog</link>
	<description>Memory Lingers On</description>
	<lastBuildDate>Sun, 22 Jan 2012 15:25:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Chuck Noris on Rails</title>
		<link>http://www.stok.ca/blog/2011/06/08/chuck-noris-on-rails/</link>
		<comments>http://www.stok.ca/blog/2011/06/08/chuck-noris-on-rails/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 02:10:46 +0000</pubDate>
		<dc:creator>MikeStok</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Food & Drink]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://www.stok.ca/blog/?p=818</guid>
		<description><![CDATA[This evening I got together with a couple of people from work to get some more than trivial experience with Ruby on Rails with them, and try not to come across like a Perl zealot, Ruby weenie, or PyHole &#8211; those types of people whose single minded narrow minded zeal and certitude pretty much turn [...]]]></description>
			<content:encoded><![CDATA[<p>This evening I got together with a couple of people from work to get some more than trivial experience with <a href="http://www.rubyonrails.org">Ruby on Rails</a> with them, and try not to come across like a <a href="http://use.perl.org">Perl</a> zealot, <a href="http://www.ruby-lang.org">Ruby</a> weenie, or PyHole &#8211; those types of people whose single minded narrow minded zeal and certitude pretty much turn me off any technology regardless of its virtues.</p>
<p><a href="http://www.stok.ca/blog/wp-content/uploads/2011/06/IMG_0064.jpg"><img src="http://www.stok.ca/blog/wp-content/uploads/2011/06/IMG_0064-225x300.jpg" alt="" title="Chuck Noris [sic] Roundhouse IPA" width="225" height="300" class="alignleft size-medium wp-image-819" /></a>Someone suggested that we change the venue of our Rails experience from an office at work to a patio at a watering hole.  As Dave and I had planned to sample some <a href="http://tapsbeer.ca/taps-on-queen-beer-selection/">Chuck Noris IPA</a> after the session, we did the agile thing and headed out laptop at the ready.  The three of us made it to Stout on Carlton street in spite of the tropical heat and humidity, the delays on the TTC, and much to my relief there were still <a href="http://beeradvocate.com/articles/384">growlers</a> of Chuck Noris to be had.  Once we arrived we made another quick decision to remain in the air conditioned lounge rather than swelter on the patio.</p>
<p>If there&#8217;s one thing I have learned from <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Walker%2C_Texas_Ranger">Walker Texas Ranger</a> it is that no matter how desperate the situation it can all be resolved in the ten minutes before everyone has to go, so once I was hooked up to the WiFi and the first pint of IPA and some food had been consumed I was able to try a half hour of &#8220;trio programming&#8221; (agile + 50%!) getting a couple of screens going.</p>
<p>Some of the things we learned:</p>
<ul>
<li>rvm is great.</li>
<li>bundler makes it really easy to switch rails versions, particularly when it&#8217;s easier to suspect the new 3.0.8 rather than anyhting we did!</li>
<li>Overconfidence is dangerous &#8211; we made several models, one of which was called Action.  Not a good idea in rails.  <a href="http://oldwiki.rubyonrails.org/rails/pages/ReservedWords">http://oldwiki.rubyonrails.org/rails/pages/ReservedWords</a></li>
<li>rails gives you a lot of functionality for a small investment in code.</li>
<li>Three heads are better than one.</li>
<li>We should try a place called Granite up near Yonge and Eglinton</li>
</ul>
<p>This week is turning out pretty Ruby heavy, yesterday&#8217;s Toronto Ruby Brigade meetup, Chuck on Rails tonight, and a Ruby hacking meetup tomorrow&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stok.ca/blog/2011/06/08/chuck-noris-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring</title>
		<link>http://www.stok.ca/blog/2010/09/11/exploring/</link>
		<comments>http://www.stok.ca/blog/2010/09/11/exploring/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 16:13:53 +0000</pubDate>
		<dc:creator>MikeStok</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Canada]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.stok.ca/blog/?p=468</guid>
		<description><![CDATA[I have been doing some exploring recently, and it has been quite invigorating. In the real world I took a trip with my mother to Virden, Manitoba to find where my grandmother was born and baptized. It&#8217;s good to get out of the greater Toronto area and see some more rural Canada. It took many [...]]]></description>
			<content:encoded><![CDATA[<p>I have been doing some exploring recently, and it has been quite invigorating.  </p>
<p>In the real world I took a trip with my mother to <a href="http://www.virden.ca/">Virden, Manitoba</a> to find where my grandmother was born and baptized.  It&#8217;s good to get out of the greater Toronto area and see some more rural Canada.  It took many miles of travel on unpaved roads to reach the place my grandmother was born; the drive challenged and muddied the rental car.  All in all a delightful Labour Day weekend out of town, albeit a little tiring.</p>
<p><a href="http://www.stok.ca/blog/wp-content/uploads/2010/09/IMG_0444.jpg"><img src="http://www.stok.ca/blog/wp-content/uploads/2010/09/IMG_0444-300x200.jpg" alt="" title="Into south-west Manitoba" width="300" height="200" class="aligncenter size-medium wp-image-473" /></a></p>
<p>In the software world I&#8217;m playing with <a href="http://heroku.com/">Heroku</a> as a place to see if the <a href="http://rubyonrails.org/">Rails</a> application I&#8217;m writing really works. It&#8217;s amazing how much of an ecosystem has build up around Rails &#8211; not just Heroku and the tools it provides, but also things like <a href="http://tpo.pe/">Tim Pope</a>&#8216;s amazing collection of <a href="http://www.vim.org/account/profile.php?user_id=9012">vim add-ons</a>.  One day web applications will seem natural to me, I&#8217;m sure.  For now I have a few ideas from the long weekend I want to put into place, and a stack of personal email I have to sift through.</p>
<p>These have invigorated me because they have popped me out of my usual rut and given me a new perspective on a couple of things.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stok.ca/blog/2010/09/11/exploring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cider, rvm, and homebrew</title>
		<link>http://www.stok.ca/blog/2010/07/24/cider-rvm-and-homebrew/</link>
		<comments>http://www.stok.ca/blog/2010/07/24/cider-rvm-and-homebrew/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 23:58:23 +0000</pubDate>
		<dc:creator>MikeStok</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[cider]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://www.stok.ca/blog/?p=423</guid>
		<description><![CDATA[The rails installed by cider is a rails 3 beta. As I want to play with some of the examples for rails 2 I thought I should get the most recent ruby 1.8.7 and try to use rvm&#8217;s gem sets to get myself a rails 2 world set up brew install `brew outdated` rvm install [...]]]></description>
			<content:encoded><![CDATA[<p>The rails installed by cider is a rails 3 beta.  As I want to play with some of the examples for rails 2 I thought I should get the most recent ruby 1.8.7 and try to use rvm&#8217;s gem sets to get myself a rails 2 world set up</p>
<pre>brew install `brew outdated`
rvm install ruby-1.8.7-p299
rvm --default ruby-1.8.7-p299</pre>
<p>Was my first step to this, but when I tried irb this is what I saw:</p>
<pre>ratdog:~ mike$ irb
no such file to load -- map_by_method
ruby-1.8.7-p299 > q</pre>
<p>The cause of this was my <tt>~/.irbrc</tt> which had been set up, and which has a whole bundle of useful gems added into it.  Most of these are worth a post by themselves, but the suspects were:</p>
<ul>
<li>map_by_method</li>
<li>what_methods</li>
<li>awesome_print</li>
<li>net-http-spy</li>
<li>hirb</li>
<li>looksee</li>
<li>wirble</li>
<li>sketches</li>
</ul>
<p>I set up an rvm gemset and started installing gems:</p>
<pre>rvm gemset create rails238
rvm ruby-1.8.7-p299@rails238
gem install map_by_method what_methods awesome_print net-http-spy hirb looksee wirble sketches
gem install rails -v 2.3.8
rvm --default ruby-1.8.7-p299@rails238</pre>
<p>All appeared to go well, until I tried navigating to a demo appliction and look at the environment on the default splash screen, which complained about a missing sqlite3 gem.  The sqlite3 gem wanted at least ruby-1.9.1 installed, so it was time to install another Ruby.</p>
<p>The ruby-1.9.1-p429 had a problem with gems, but a quick trip to Yahoo! revealed this <a href="http://www.pubbs.net/201007/ruby/32029-ruby-core31342-bug-3584-error-loading-gem-paths-on-load-path-in-gemprelude-cant-modify-frozen-string.html">message</a>, so it was time to install another ruby!</p>
<pre>rvm install ruby-1.9.1-p378
rvm use ruby-1.9.1-p378 --default
rvm gemset create rails238
rvm use ruby-1.9.1-p378@rails238 --default
gem install map_by_method what_methods awesome_print net-http-spy hirb looksee wirble sketches
gem install rails -v 2.3.8
gem install sqlite3</pre>
<p>Now I can get to work playing with rails!  The great thing is that I haven&#8217;t compromised my system Ruby, thanks to cider, rvm, and homebrew.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stok.ca/blog/2010/07/24/cider-rvm-and-homebrew/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Week in Review</title>
		<link>http://www.stok.ca/blog/2009/10/25/the-week-in-review/</link>
		<comments>http://www.stok.ca/blog/2009/10/25/the-week-in-review/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 14:04:31 +0000</pubDate>
		<dc:creator>MikeStok</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Toronto]]></category>
		<category><![CDATA[User Groups]]></category>

		<guid isPermaLink="false">http://www.stok.ca/blog/?p=241</guid>
		<description><![CDATA[&#8220;Don&#8217;t believe what you read&#8221; seems to be this week&#8217;s theme. On Monday I went to my first Rails Pub Nite for a few months, and there were a good forty or fifty people there. Most of them seemed to be doing some fun and interesting stuff with Rails, and there seemed to be lots [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Don&#8217;t believe what you read&#8221; seems to be this week&#8217;s theme.</p>
<p>On Monday I went to my first <a href="http://unspace.ca/innovation/pubnite">Rails Pub Nite</a> for a few months, and there were a good forty or fifty people there.  Most of them seemed to be doing some fun and interesting stuff with Rails, and there seemed to be lots of activity.  Sometimes when I&#8217;m looking around various technology sites or blogs it would seem that the bloom is off the Rails rose, bit the Toronto Rails Pub Nites would offer a different perspective.</p>
<p>On Tuesday it was off to <a href="http://www.roythomson.com/">Roy Thomson Hall</a> to hear the <a href="http://www.clevelandorchestra.com/">Cleveland Orchestra</a>.  I was pleasantly surprised that my listening to King Crimson for many years had prepared me to enjoy Shostakovich&#8217;s Symphony No. 5.  The thing not to believe here is the Toronto Star&#8217;s review which seemed to focus on the reviewer&#8217;s expectations and not so much on what the Orchestra did.</p>
<p>Nest week it&#8217;s the <a href="http://to.pm.org">Toronto Perl Mongers</a>, and we&#8217;ll see what&#8217;s shaking in the local Perl world.  There are so many opinions of Perl&#8217;s state out there that most of them can&#8217;t be true!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stok.ca/blog/2009/10/25/the-week-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding the Fun Again</title>
		<link>http://www.stok.ca/blog/2009/03/04/finding-the-fun-again/</link>
		<comments>http://www.stok.ca/blog/2009/03/04/finding-the-fun-again/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 12:27:14 +0000</pubDate>
		<dc:creator>MikeStok</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.stok.ca/blog/?p=105</guid>
		<description><![CDATA[Another few evenings playing with Rails (and paralleling the depot application from Agile Web Development with Rails (v3)) and I&#8217;m rediscovering the fun to be had with programming! I have picked a project which is similar to something I&#8217;m doing at work to see what new perspectives using a different language and toolkit give me. [...]]]></description>
			<content:encoded><![CDATA[<p>Another few evenings playing with Rails (and paralleling the depot application from <em>Agile Web Development with Rails (v3)</em>) and I&#8217;m rediscovering the fun to be had with programming!</p>
<p>I have picked a project which is similar to something I&#8217;m doing at work to see what new perspectives using a different language and toolkit give me.</p>
<p>The biggest thing I noticed was that PostgreSQL and pgadmin3 is a delight to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stok.ca/blog/2009/03/04/finding-the-fun-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Progress (slow but sure)</title>
		<link>http://www.stok.ca/blog/2009/02/25/rails-progress-slow-but-sure/</link>
		<comments>http://www.stok.ca/blog/2009/02/25/rails-progress-slow-but-sure/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 03:00:13 +0000</pubDate>
		<dc:creator>MikeStok</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Getting Things Done]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.stok.ca/blog/?p=100</guid>
		<description><![CDATA[Each day when I have an hour or so to spare I am picking another aspect of my &#8220;toy&#8221; Rails application to work on. My strategy is to set small achievable goals, in the understanding that I will need to do some research and make some mistakes. Many problems I come across seem to be [...]]]></description>
			<content:encoded><![CDATA[<p>Each day when I have an hour or so to spare I am picking another aspect of my &#8220;toy&#8221; Rails application to work on.  My strategy is to set small achievable goals, in the understanding that I will need to do some research and make some mistakes.</p>
<p>Many problems I come across seem to be due to poor scaling &#8211; a developer with a database with a few tens of rows sometimes never gets a taste of a the system with millions of rows under heavy load until users are out for blood.</p>
<p>Thanks to Jason Frankovitz I started looking at <a href="http://railscasts.com">Railscasts</a>, and this turned me on to the will_paginate plugin for pagination.</p>
<p>So now I have a migration which cooks up 10,000 user rows, and then I notice the difference in the naive &#8220;list all the users&#8221; and the paginated &#8220;list all the users, a page at a time&#8221;</p>
<p>One feature done today&#8230; now for the household chores: cat litter changing and putting out the garbage and recycling.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stok.ca/blog/2009/02/25/rails-progress-slow-but-sure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping going with Rails</title>
		<link>http://www.stok.ca/blog/2009/02/21/keeping-going-with-rails/</link>
		<comments>http://www.stok.ca/blog/2009/02/21/keeping-going-with-rails/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 19:05:00 +0000</pubDate>
		<dc:creator>MikeStok</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Getting Things Done]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.stok.ca/blog/?p=93</guid>
		<description><![CDATA[My experiments with Rails are moving along slowly, and I&#8217;m happy with that. One of the things I have learned that I sometimes sabotage myself by expecting to do too much too quickly and then becoming despondent when things don&#8217;t move as quickly as I had expected. If I step back then I see how [...]]]></description>
			<content:encoded><![CDATA[<p>My experiments with Rails are moving along slowly, and I&#8217;m happy with that.  One of the things I have learned that I sometimes sabotage myself by expecting to do too much too quickly and then becoming despondent when things don&#8217;t move as quickly as I had expected.   If I step back then I see how many things I&#8217;m doing:</p>
<ul>
<li>Learning about <a href="http://www.virtualbox.org/">VirtualBox</a>.</li>
<li>Learning how to use <a href="http://git-scm.com/">Git</a>.</li>
<li>Trying to learn <a href="http://rubyonrails.org/">Rails</a> 2.2 using Rails 1.2 tutorials (D&#8217;oh!)</li>
<li>Setting up <a href="http://www.vim.org/">vim</a> to be a productive &#8220;IDE&#8221; for Rails.</li>
<li>Taking another look at what <a href="http://www.postgresql.org/">PostgreSQL</a> has to offer.</li>
</ul>
<p>With Git and Rails I&#8217;m not just trying to use the tools well, I&#8217;m also internalising their way of looking at the world.  That comes in its own good time.  As for using vim (or vi)  effectively, I have limped along with my limited repertoire for more than 20 years, so I should not have unrealistic expectations there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stok.ca/blog/2009/02/21/keeping-going-with-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

