<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Matthew Bass</title>
	
	<link>http://matthewbass.com</link>
	<description>Musings on software and life...</description>
	<pubDate>Thu, 02 Jul 2009 18:23:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/pelargir" type="application/rss+xml" /><item>
		<title>Ignite Raleigh</title>
		<link>http://matthewbass.com/2009/07/02/ignite-raleigh/</link>
		<comments>http://matthewbass.com/2009/07/02/ignite-raleigh/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 18:23:10 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Conferences]]></category>

		<category><![CDATA[General Interest]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=383</guid>
		<description>Ignite Raleigh looks quite interesting. It&amp;#8217;s essentilly a conference made up entirely of lightning talks. Voting is now taking place on submitted talks. The top 10 will be given on August 5th.
I submitted a talk titled 3 Secrets to Effective Nomading. Check out the description and, if you feel it&amp;#8217;s compelling and would want to [...]</description>
			<content:encoded><![CDATA[<p><a href="http://igniteraleigh.com" onclick="javascript:urchinTracker ('/outbound/article/igniteraleigh.com');">Ignite Raleigh</a> looks quite interesting. It&#8217;s essentilly a conference made up entirely of lightning talks. Voting is now taking place on submitted talks. The top 10 will be given on August 5th.</p>
<p>I submitted a talk titled <a href="http://voting.igniteraleigh.com/pages/22050-speaker-application/suggestions/246387-3-secrets-of-effective-nomading" onclick="javascript:urchinTracker ('/outbound/article/voting.igniteraleigh.com');">3 Secrets to Effective Nomading</a>. Check out the description and, if you feel it&#8217;s compelling and would want to hear it, please consider voting for it.</p>
<p>And by all means, if you have an idea for a talk, submit it!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=57WNRvcaSpY:t7-ElNzxYsI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=57WNRvcaSpY:t7-ElNzxYsI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=57WNRvcaSpY:t7-ElNzxYsI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=57WNRvcaSpY:t7-ElNzxYsI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=57WNRvcaSpY:t7-ElNzxYsI:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/07/02/ignite-raleigh/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Audio interview for RubyRX 2009</title>
		<link>http://matthewbass.com/2009/06/29/audio-interview-for-rubyrx-2009/</link>
		<comments>http://matthewbass.com/2009/06/29/audio-interview-for-rubyrx-2009/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 02:15:45 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Conferences]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=372</guid>
		<description>Jared Richardson just posted a series of interviews in anticipation of the upcoming RubyRX/AgileRX conference taking place in Reston, Virginia in September. In my interview we discuss iPhone development, MacRuby, Git, and testing frameworks.
I&amp;#8217;m really looking forward to presenting again at RubyRX. I&amp;#8217;ll be giving two talks this year. Git with Ruby will explore the [...]</description>
			<content:encoded><![CDATA[<p><a href="http://nfjsone.com/conference/washington_dc/2009/09/rubyrx/event_about" onclick="javascript:urchinTracker ('/outbound/article/nfjsone.com');"><img src="http://matthewbass.com/wp-content/uploads/2009/06/rrx210x85rc.jpg" alt="RubyRX" title="RubyRX" width="210" height="85" align="right" border="0" /></a>Jared Richardson just posted a <a href="http://nfjsone.com/conference/washington_dc/2009/09/podcast" onclick="javascript:urchinTracker ('/outbound/article/nfjsone.com');">series of interview</a>s in anticipation of the upcoming <a href="http://nfjsone.com/conference/washington_dc/2009/09/rubyrx/event_about" onclick="javascript:urchinTracker ('/outbound/article/nfjsone.com');">RubyRX/AgileRX conference</a> taking place in Reston, Virginia in September. In <a href="http://nfjsone.com/s/podcast/x/matt_bass.mp3" onclick="javascript:urchinTracker ('/outbound/article/nfjsone.com');">my interview</a> we discuss iPhone development, MacRuby, Git, and testing frameworks.</p>
<p>I&#8217;m really looking forward to presenting again at RubyRX. I&#8217;ll be giving two talks this year. <a href="http://nfjsone.com/conference/washington_dc/2009/09/session?id=15129" onclick="javascript:urchinTracker ('/outbound/article/nfjsone.com');">Git with Ruby</a> will explore the Git source control system and how Ruby can take advantage of it. In <a href="http://nfjsone.com/conference/washington_dc/2009/09/session?id=15030" onclick="javascript:urchinTracker ('/outbound/article/nfjsone.com');">Which Ruby Testing Framework Should I Use?</a> we&#8217;ll briefly examine several leading testing frameworks and study the pros and cons of each. You&#8217;ll leave fully prepared to pick the best framework for your next project.</p>
<p><a href="mailto:matthew@adeptware.com">Let me know</a> if you&#8217;re coming to the conference this year and we can link up in Reston. If you haven&#8217;t <a href="http://nfjsone.com/conference/washington_dc/2009/09/register" onclick="javascript:urchinTracker ('/outbound/article/nfjsone.com');">registered</a> yet, what are you waiting for? RubyRX is a chance to network with the best and brightest developers in the area, and hear from thought leaders like Andy Hunt, Rich Kilmer, Joe O&#8217;Brien, and Chad Fowler. It&#8217;s a great way to keep your skills sharp in a down year.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=w5hG_wMr3w4:VmAIldEn3fE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=w5hG_wMr3w4:VmAIldEn3fE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=w5hG_wMr3w4:VmAIldEn3fE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=w5hG_wMr3w4:VmAIldEn3fE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=w5hG_wMr3w4:VmAIldEn3fE:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/06/29/audio-interview-for-rubyrx-2009/feed/</wfw:commentRss>
<enclosure url="http://nfjsone.com/s/podcast/x/matt_bass.mp3" length="5511650" type="audio/mpeg" />
		</item>
		<item>
		<title>Lindo testing helper gets some love</title>
		<link>http://matthewbass.com/2009/06/29/lindo-testing-helper-gets-some-love/</link>
		<comments>http://matthewbass.com/2009/06/29/lindo-testing-helper-gets-some-love/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 20:00:38 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=369</guid>
		<description>Lindo helps you write and verify Rails functional and integration tests by opening the HTTP response body in the default browser for inspection. This can be a real time-saver when you&amp;#8217;re trying to figure out why your assert_select or have_tag calls aren&amp;#8217;t passing.
In its initial version, Lindo assumed that your app was running at localhost:3000 [...]</description>
			<content:encoded><![CDATA[<p><a href="http://www.adeptware.com/blog/2009/06/29/lindo-makes-rails-testing-easier/" onclick="javascript:urchinTracker ('/outbound/article/www.adeptware.com');">Lindo</a> helps you write and verify Rails functional and integration tests by opening the HTTP response body in the default browser for inspection. This can be a real time-saver when you&#8217;re trying to figure out why your <code>assert_select</code> or <code>have_tag</code> calls aren&#8217;t passing.</p>
<p>In its initial version, Lindo assumed that your app was running at localhost:3000 (a fair assumption given the prevalence of Mongrel last year). Now that <a href="http://www.modrails.com/" onclick="javascript:urchinTracker ('/outbound/article/www.modrails.com');">Passenger</a> is on the scene, something better needed to be done. The reliance on a running app server was a disadvantage to begin with. Now Lindo doesn&#8217;t require anything to be running. It dumps the HTML to disk, fixes any relative asset URLs, and opens the file using your default browser.</p>
<p>Once you&#8217;ve written your first test with the assistance of Lindo, you won&#8217;t want to go back!</p>
<p>Lindo was developed by my company, <a href="http://adeptware.com" onclick="javascript:urchinTracker ('/outbound/article/adeptware.com');">Adeptware</a>, and can be pulled from <a href="http://github.com/adeptware/lindo/" onclick="javascript:urchinTracker ('/outbound/article/github.com');">GitHub</a>. I&#8217;ve also posted a brief <a href="http://www.adeptware.com/blog/2009/06/29/lindo-makes-rails-testing-easier/" onclick="javascript:urchinTracker ('/outbound/article/www.adeptware.com');">introduction to Lindo</a> and some basic installation instructions.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=GKAvflHcO34:oX0aXl4GYeY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=GKAvflHcO34:oX0aXl4GYeY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=GKAvflHcO34:oX0aXl4GYeY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=GKAvflHcO34:oX0aXl4GYeY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=GKAvflHcO34:oX0aXl4GYeY:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/06/29/lindo-testing-helper-gets-some-love/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Radiant hack night</title>
		<link>http://matthewbass.com/2009/06/17/radiant-hack-night/</link>
		<comments>http://matthewbass.com/2009/06/17/radiant-hack-night/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 20:36:03 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=356</guid>
		<description>I attended my first Radiant hack night last week. We met at John&amp;#8217;s apartment and spent several hours coding up new features for Radiant, which is an awesome Content Management System (CMS) built on Rails. Rick and John worked on a redesign of the admin backend, while Michael and I began adding support for using [...]</description>
			<content:encoded><![CDATA[<p>I attended my first Radiant <a href="http://www.meetup.com/raleighrb/calendar/10486834/" onclick="javascript:urchinTracker ('/outbound/article/www.meetup.com');">hack night</a> last week. We met at John&#8217;s apartment and spent several hours coding up new features for <a href="http://radiantcms.org" onclick="javascript:urchinTracker ('/outbound/article/radiantcms.org');">Radiant</a>, which is an awesome Content Management System (CMS) built on Rails. Rick and John worked on a redesign of the admin backend, while Michael and I began adding support for using gems as Radiant extensions. There is still some work left to do, but we made decent progress.</p>
<p>I really enjoyed the experience. If you&#8217;re at all interested in learning more about Radiant, or helping to contribute, I encourage you to consider attending the next hack night. Make sure you&#8217;re on the <a href="http://raleighrb.com" onclick="javascript:urchinTracker ('/outbound/article/raleighrb.com');">raleigh.rb</a> mailing list to receive notification when it gets scheduled.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5206574&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5206574&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=Od6g-Uov27Q:PL0Z5aDPYP0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=Od6g-Uov27Q:PL0Z5aDPYP0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=Od6g-Uov27Q:PL0Z5aDPYP0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=Od6g-Uov27Q:PL0Z5aDPYP0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=Od6g-Uov27Q:PL0Z5aDPYP0:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/06/17/radiant-hack-night/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Career 2.0 book mention</title>
		<link>http://matthewbass.com/2009/06/08/career-20-book-mention/</link>
		<comments>http://matthewbass.com/2009/06/08/career-20-book-mention/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 19:04:25 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[General Interest]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=352</guid>
		<description>Mark Mzyk gave a brief review of Career 2.0, the book by Jared Richardson that I contributed to, over on his blog. He also recommends The Passionate Programmer by Chad Fowler, another excellent career-boosting read. (If you&amp;#8217;ve posted a review of Career 2.0 on your own blog, let me know.)</description>
			<content:encoded><![CDATA[<p>Mark Mzyk gave a <a href="http://www.programmersparadox.com/2009/06/07/career-20/" onclick="javascript:urchinTracker ('/outbound/article/www.programmersparadox.com');">brief review</a> of <a href="http://www.amazon.com/gp/product/B00262MTOA?ie=UTF8&#038;tag=thetolkienarchiv&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B00262MTOA/" onclick="javascript:urchinTracker ('/outbound/article/www.amazon.com');">Career 2.0</a>, the book by Jared Richardson that I contributed to, over on his blog. He also recommends <a href="http://www.amazon.com/gp/product/1934356344?ie=UTF8&#038;tag=thetolkienarchiv&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1934356344" onclick="javascript:urchinTracker ('/outbound/article/www.amazon.com');">The Passionate Programmer</a> by Chad Fowler, another excellent career-boosting read. (If you&#8217;ve posted a review of Career 2.0 on your own blog, <a href="mailto:matthew@adeptware.com">let me know</a>.)</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=Jo9I7qvxLoM:FeNVz0JW_9E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=Jo9I7qvxLoM:FeNVz0JW_9E:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=Jo9I7qvxLoM:FeNVz0JW_9E:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=Jo9I7qvxLoM:FeNVz0JW_9E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=Jo9I7qvxLoM:FeNVz0JW_9E:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/06/08/career-20-book-mention/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Auto timeout sessions in Rails</title>
		<link>http://matthewbass.com/2009/06/03/auto-timeout-sessions-in-rails/</link>
		<comments>http://matthewbass.com/2009/06/03/auto-timeout-sessions-in-rails/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 00:23:52 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=336</guid>
		<description>I released the initial version of my auto-session-timeout plugin for Rails at West End Ruby tonight.
Have you ever wanted to force your users off your app if they go idle for a certain period of time? Many online banking sites use this technique. If your app is used on any kind of public computer system, [...]</description>
			<content:encoded><![CDATA[<p><img src="http://matthewbass.com/wp-content/uploads/2009/06/20090604-e41yj7h4jw8iwqr21maw1pnhg6.jpg" alt="Time Out!" title="Time Out!" width="130" height="186" align="right" style="padding-left:20px" />I released the initial version of my <a href="http://github.com/pelargir/auto-session-timeout/" onclick="javascript:urchinTracker ('/outbound/article/github.com');">auto-session-timeout</a> plugin for Rails at <a href="http://www.meetup.com/raleighrb/calendar/10543524/" onclick="javascript:urchinTracker ('/outbound/article/www.meetup.com');">West End Ruby</a> tonight.</p>
<p>Have you ever wanted to force your users off your app if they go idle for a certain period of time? Many online banking sites use this technique. If your app is used on any kind of public computer system, this type of functionality is essential for maintaining the privacy of your data.</p>
<p>After installing the plugin, a small snippet of JavaScript is placed on each page. The JS polls the server every minute to see if the session is still active. If the user has been idle for at least an hour, they are immediately redirected to a timeout page. The session will not timeout as long as the user keeps clicking around. The timeout and polling intervals are both configurable.</p>
<p>The plugin is dead simple to install and configure. To get started:</p>
<pre>
script/plugin install git://github.com/pelargir/auto-session-timeout.git
</pre>
<p>Then hit the <a href="http://github.com/pelargir/auto-session-timeout" onclick="javascript:urchinTracker ('/outbound/article/github.com');">README</a> for step-by-step instructions.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=petVdwzTZu4:D2obTvI7uTQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=petVdwzTZu4:D2obTvI7uTQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=petVdwzTZu4:D2obTvI7uTQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=petVdwzTZu4:D2obTvI7uTQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=petVdwzTZu4:D2obTvI7uTQ:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/06/03/auto-timeout-sessions-in-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Introducing my latest Rails app: Fuelinator</title>
		<link>http://matthewbass.com/2009/05/08/introducing-my-latest-app-fuelinator/</link>
		<comments>http://matthewbass.com/2009/05/08/introducing-my-latest-app-fuelinator/#comments</comments>
		<pubDate>Fri, 08 May 2009 12:00:12 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Products]]></category>

		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=324</guid>
		<description>I started building Fuelinator at the last West End Ruby meetup. The motivation behind the project was the lack of a decent system for tracking my business mileage. Existing apps like Fuelly and My Mile Marker make it unnecessarily difficult to enter mileage, and the statistics they produce just aren&amp;#8217;t that useful to me.
My initial [...]</description>
			<content:encoded><![CDATA[<p><a href="http://fuelinator.com" onclick="javascript:urchinTracker ('/outbound/article/fuelinator.com');"><img src="http://matthewbass.com/wp-content/uploads/2009/05/20090507-endk26gcxtw1tw2ppth2xbe9ac.jpg" alt="Gas Can" title="Gas Can" width="155" height="175" style="padding-left:20px" align="right" class="alignright size-full wp-image-325" /></a>I started building <a href="http://fuelinator.com" onclick="javascript:urchinTracker ('/outbound/article/fuelinator.com');">Fuelinator</a> at the last <a href="https://twitter.com/westendruby" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');">West End Ruby</a> meetup. The motivation behind the project was the lack of a decent system for tracking my business mileage. Existing apps like <a href="http://fuelly.com" onclick="javascript:urchinTracker ('/outbound/article/fuelly.com');">Fuelly</a> and <a href="http://mymilemarker.com" onclick="javascript:urchinTracker ('/outbound/article/mymilemarker.com');">My Mile Marker</a> make it unnecessarily difficult to enter mileage, and the statistics they produce just aren&#8217;t that useful to me.</p>
<p>My initial goal with Fuelinator is to make mileage entry dead simple and to provide some compelling new features&#8230; for example, alerts via email or SMS when my vehicle&#8217;s mileage changes suddenly. This helps me track down maintenance problems early and gives me valuable information about what does and doesn&#8217;t improve my gas mileage. For example, I changed my air filter and inflated my tires last week. If my mileage changes drastically this week, I want to know. Now, Fuelinator will tell me.</p>
<p>The ultimate goal is for Fuelinator to save its users gobs of money on their gas bills. I haven&#8217;t made Fuelinator public yet, but if you&#8217;d like to participate in the beta program make sure you <a href="http://fuelinator.com" onclick="javascript:urchinTracker ('/outbound/article/fuelinator.com');">sign up</a>. It&#8217;s going to be a fun ride!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=oKYz3akE6Ok:H_A_e-CUDDA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=oKYz3akE6Ok:H_A_e-CUDDA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=oKYz3akE6Ok:H_A_e-CUDDA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=oKYz3akE6Ok:H_A_e-CUDDA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=oKYz3akE6Ok:H_A_e-CUDDA:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/05/08/introducing-my-latest-app-fuelinator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to safely transpose Ruby arrays</title>
		<link>http://matthewbass.com/2009/05/02/how-to-safely-transpose-ruby-arrays/</link>
		<comments>http://matthewbass.com/2009/05/02/how-to-safely-transpose-ruby-arrays/#comments</comments>
		<pubDate>Sat, 02 May 2009 04:09:53 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=309</guid>
		<description>Ruby arrays have this handy method called transpose which takes an existing 2-dimensional array (i.e. a matrix) and flips it on its side:

&amp;#62;&amp;#62; a = [[1,2], [3,4], [5,6]]
&amp;#62;&amp;#62; puts a.transpose.inspect
[[1, 3, 5], [2, 4, 6]]

Each row becomes a column, essentially. This is fine and dandy for polite arrays. If one of the rows in the [...]</description>
			<content:encoded><![CDATA[<p>Ruby arrays have this handy method called <code>transpose</code> which takes an existing 2-dimensional array (i.e. a matrix) and flips it on its side:</p>
<pre>
&gt;&gt; a = [[1,2], [3,4], [5,6]]
&gt;&gt; puts a.transpose.inspect
[[1, 3, 5], [2, 4, 6]]
</pre>
<p>Each row becomes a column, essentially. This is fine and dandy for polite arrays. If one of the rows in the original array is not as long as the others, though, Ruby <a href="http://dictionary.reference.com/dic?q=chunder" onclick="javascript:urchinTracker ('/outbound/article/dictionary.reference.com');">chunders</a> thusly:</p>
<pre>
&gt;&gt; a = [[1,2], [3,4], [5]]
&gt;&gt; a.transpose 
IndexError: element size differs (1 should be 2)
&nbsp;&nbsp;from (irb):3:in `transpose&#039;
&nbsp;&nbsp;from (irb):3
</pre>
<p>That ain&#8217;t pretty, especially if the intent behind using <class>transpose</class> is to render data in a nice columnar fashion. For example, what if we wanted to render a list of high school courses in columns, one column per semester? Grouping the courses by semester and then transposing would do the trick, <em>but only if there were exactly the same number of courses taken each semester</em>. If even <em>one</em> semester differs, Ruby will blow up. What we really want is for Ruby to just ignore the fact that each grouping may have differently sized arrays and transpose anyway, filling in the empty spaces with nils.</p>
<p>Here&#8217;s how to do just that:</p>
<pre>
class Array
&nbsp;&nbsp;def safe_transpose
&nbsp;&nbsp;&nbsp;&nbsp;result = []
&nbsp;&nbsp;&nbsp;&nbsp;max_size = self.max { |a,b| a.size &lt;=&gt; b.size }.size
&nbsp;&nbsp;&nbsp;&nbsp;max_size.times do |i|
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result[i] = Array.new(self.first.size)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.each_with_index { |r,j| result[i][j] = r[i] }
&nbsp;&nbsp;&nbsp;&nbsp;end
&nbsp;&nbsp;&nbsp;&nbsp;result
&nbsp;&nbsp;end
end
</pre>
<p>Now we call <code>safe_transpose</code> on our matrix of courses and Ruby does the right thing. It calculates the length of the longest row and uses that as the baseline to perform the transposition. So our original example becomes:</p>
<pre>
&gt;&gt; a = [[1,2], [3,4], [5]]
&gt;&gt; puts a.transpose.inspect
[[1, 3, 5], [2, 4, nil]]
</pre>
<p>Nice and neat. <strong>Caveats</strong>: the code above hasn&#8217;t been refactored or tested. Your mileage may vary. If you see a better way to do this, <a href="mailto:pelargir@gmail.com">let me know</a> and I&#8217;ll post an update.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=x-jqKe6krU8:R0ChTMX5qkI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=x-jqKe6krU8:R0ChTMX5qkI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=x-jqKe6krU8:R0ChTMX5qkI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=x-jqKe6krU8:R0ChTMX5qkI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=x-jqKe6krU8:R0ChTMX5qkI:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/05/02/how-to-safely-transpose-ruby-arrays/feed/</wfw:commentRss>
		</item>
		<item>
		<title>BarCampRDU 2009 registration now open</title>
		<link>http://matthewbass.com/2009/04/28/barcamprdu-2009-registration-now-open/</link>
		<comments>http://matthewbass.com/2009/04/28/barcamprdu-2009-registration-now-open/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 19:33:32 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Conferences]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=306</guid>
		<description>The date and venue for BarCamp RDU 2009 have been decided upon and registration is now open. Register early to ensure you have a seat. This is the fourth year of BarCamp and it just keeps getting better every year. The variety and quality of presentations last year was incredible. The price of admission (free) [...]</description>
			<content:encoded><![CDATA[<p>The date and venue for BarCamp RDU 2009 have been decided upon and registration is now open. <a href="http://barcamp.org/BarCampRDU" onclick="javascript:urchinTracker ('/outbound/article/barcamp.org');">Register early</a> to ensure you have a seat. This is the fourth year of BarCamp and it just keeps getting better every year. The variety and quality of presentations last year was incredible. The price of admission (free) is certainly nothing to balk at. I&#8217;ve really enjoyed attending in past years. This is a great learning and networking opportunity so <strong>be sure to mark your calendars for August 8th.</strong> See you there!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=nv7uRtmkWsc:Xz4pZxhpY2s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=nv7uRtmkWsc:Xz4pZxhpY2s:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=nv7uRtmkWsc:Xz4pZxhpY2s:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=nv7uRtmkWsc:Xz4pZxhpY2s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=nv7uRtmkWsc:Xz4pZxhpY2s:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/04/28/barcamprdu-2009-registration-now-open/feed/</wfw:commentRss>
		</item>
		<item>
		<title>rspec’s route_for breaks when upgrading Rails</title>
		<link>http://matthewbass.com/2009/04/13/rspecs-route_for-breaks-when-upgrading-rails/</link>
		<comments>http://matthewbass.com/2009/04/13/rspecs-route_for-breaks-when-upgrading-rails/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 01:32:35 +0000</pubDate>
		<dc:creator>Matthew Bass</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://matthewbass.com/?p=301</guid>
		<description>Came across this interesting test failure after upgrading a project to Rails 2.2.2 earlier today:

should route users&amp;#039;s &amp;#039;destroy&amp;#039; action correctly
&amp;#160;
The recognized options &amp;#60;{&amp;#34;action&amp;#34;=&amp;#62;&amp;#34;show&amp;#34;, &amp;#34;id&amp;#34;=&amp;#62;&amp;#34;1&amp;#34;,
&amp;#34;controller&amp;#34;=&amp;#62;&amp;#34;users&amp;#34;}&amp;#62; did not match &amp;#60;{&amp;#34;action&amp;#34;=&amp;#62;&amp;#34;destroy&amp;#34;, &amp;#34;id&amp;#34;=&amp;#62;&amp;#34;1&amp;#34;,
&amp;#34;controller&amp;#34;=&amp;#62;&amp;#34;users&amp;#34;}&amp;#62;, difference: &amp;#60;{&amp;#34;action&amp;#34;=&amp;#62;&amp;#34;destroy&amp;#34;}&amp;#62;

Turns out that rspec&amp;#8217;s route_for method behaves differently when run against Rails 2.2+ due to the routing changes. The controller in question is setup as [...]</description>
			<content:encoded><![CDATA[<p>Came across this interesting test failure after upgrading a project to Rails 2.2.2 earlier today:</p>
<pre>
should route users&#039;s &#039;destroy&#039; action correctly
&nbsp;
The recognized options &lt;{&quot;action&quot;=&gt;&quot;show&quot;, &quot;id&quot;=&gt;&quot;1&quot;,
&quot;controller&quot;=&gt;&quot;users&quot;}&gt; did not match &lt;{&quot;action&quot;=&gt;&quot;destroy&quot;, &quot;id&quot;=&gt;&quot;1&quot;,
&quot;controller&quot;=&gt;&quot;users&quot;}&gt;, difference: &lt;{&quot;action&quot;=&gt;&quot;destroy&quot;}&gt;
</pre>
<p>Turns out that rspec&#8217;s <code>route_for</code> method behaves differently when run against Rails 2.2+ due to the routing changes. The controller in question is setup as a resource, so the &#8220;destroy&#8221; action must be called via an HTTP DELETE, not a GET.</p>
<p>The failing line in the test looked like this:</p>
<pre>
route_for(:controller =&gt; &#039;users&#039;, :action =&gt; &#039;destroy&#039;, :id =&gt; 1).should == &#039;/users/1&#039;
</pre>
<p>The fix was simple enough:</p>
<pre>
route_for(:controller =&gt; &#039;users&#039;, :action =&gt; &#039;destroy&#039;, :id =&gt; 1).should == {:path =&gt; &#039;/users/1&#039;, :method =&gt; :delete}
</pre>
<p>Hope this helps anyone who is experiencing the same problem.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/pelargir?a=ua-cCjXkX90:sTyPXRt4YI8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/pelargir?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=ua-cCjXkX90:sTyPXRt4YI8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/pelargir?i=ua-cCjXkX90:sTyPXRt4YI8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/pelargir?a=ua-cCjXkX90:sTyPXRt4YI8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/pelargir?i=ua-cCjXkX90:sTyPXRt4YI8:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://matthewbass.com/2009/04/13/rspecs-route_for-breaks-when-upgrading-rails/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
