<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments for I like stuff.</title>
	<atom:link href="http://bmorearty.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://bmorearty.wordpress.com</link>
	<description>Brian Morearty's Blog</description>
	<lastBuildDate>Tue, 01 Dec 2009 15:55:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on How to Distinguish a User-Aborted AJAX Call from an Error by Tom</title>
		<link>http://bmorearty.wordpress.com/2009/11/30/how-to-distinguish-a-user-aborted-ajax-call-from-an-error/#comment-528</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=255#comment-528</guid>
		<description>d00d! That is dope, gotsta have...</description>
		<content:encoded><![CDATA[<p>d00d! That is dope, gotsta have&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Javafication of Ruby on Rails by Brian Candler</title>
		<link>http://bmorearty.wordpress.com/2009/05/21/the-javafication-of-ruby-on-rails/#comment-507</link>
		<dc:creator>Brian Candler</dc:creator>
		<pubDate>Thu, 12 Nov 2009 13:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=201#comment-507</guid>
		<description>The JSON gem already has an API like this, but unfortunately loading active_support 2.3.4 breaks it :-(

&gt;&gt; require &#039;rubygems&#039;
=&gt; true
&gt;&gt; require &#039;json&#039;
=&gt; true
&gt;&gt; JSON.unparse({&quot;a&quot;=&gt;&quot;b&quot;})
=&gt; &quot;{\&quot;a\&quot;:\&quot;b\&quot;}&quot;
&gt;&gt; require &#039;active_support&#039;
=&gt; true
&gt;&gt; JSON.unparse({&quot;a&quot;=&gt;&quot;b&quot;})
NoMethodError: undefined method `[]&#039; for #
	from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/json/encoders/hash.rb:45:in `as_json&#039;
	from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/json/encoders/hash.rb:34:in `to_json&#039;
	from /var/lib/gems/1.8/gems/json-1.1.9/lib/json/common.rb:183:in `unparse&#039;
	from (irb):5
&gt;&gt;</description>
		<content:encoded><![CDATA[<p>The JSON gem already has an API like this, but unfortunately loading active_support 2.3.4 breaks it :-(</p>
<p>&gt;&gt; require &#8216;rubygems&#8217;<br />
=&gt; true<br />
&gt;&gt; require &#8216;json&#8217;<br />
=&gt; true<br />
&gt;&gt; JSON.unparse({&#8220;a&#8221;=&gt;&#8221;b&#8221;})<br />
=&gt; &#8220;{\&#8221;a\&#8221;:\&#8221;b\&#8221;}&#8221;<br />
&gt;&gt; require &#8216;active_support&#8217;<br />
=&gt; true<br />
&gt;&gt; JSON.unparse({&#8220;a&#8221;=&gt;&#8221;b&#8221;})<br />
NoMethodError: undefined method `[]&#8216; for #<br />
	from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/json/encoders/hash.rb:45:in `as_json&#8217;<br />
	from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/json/encoders/hash.rb:34:in `to_json&#8217;<br />
	from /var/lib/gems/1.8/gems/json-1.1.9/lib/json/common.rb:183:in `unparse&#8217;<br />
	from (irb):5<br />
&gt;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Put Rewrite Rules in Your Ruby Code, Not Your Web Server by josh susser</title>
		<link>http://bmorearty.wordpress.com/2009/11/04/put-mod_rewrite-in-your-ruby-code-not-your-web-server/#comment-504</link>
		<dc:creator>josh susser</dc:creator>
		<pubDate>Fri, 06 Nov 2009 03:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=228#comment-504</guid>
		<description>Hey there, thanks for the mention.  I think the biggest difference between Rack::Rewrite (well, the one you mentioned, there are two of them) and Refraction is how they scale. Rack::Rewrite has a very limiting API, but Refraction can scale up to dealing with very complicated domain logic.  All the stuff you have to do with :if procs and whatnot seem quite complicated to me, and Refraction handles them much better in plain old Ruby syntax. Rack::Rewrite is probably a little bit simpler for simple cases, but Refraction will be a lot simpler for complicated ones.</description>
		<content:encoded><![CDATA[<p>Hey there, thanks for the mention.  I think the biggest difference between Rack::Rewrite (well, the one you mentioned, there are two of them) and Refraction is how they scale. Rack::Rewrite has a very limiting API, but Refraction can scale up to dealing with very complicated domain logic.  All the stuff you have to do with :if procs and whatnot seem quite complicated to me, and Refraction handles them much better in plain old Ruby syntax. Rack::Rewrite is probably a little bit simpler for simple cases, but Refraction will be a lot simpler for complicated ones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Put Rewrite Rules in Your Ruby Code, Not Your Web Server by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/11/04/put-mod_rewrite-in-your-ruby-code-not-your-web-server/#comment-503</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Thu, 05 Nov 2009 16:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=228#comment-503</guid>
		<description>Hi John,

That looks nice. You&#039;re right, it is more succinct.

And thanks for making me think more about it--I noticed a bug in my code when I read your post, and I think my bug made its way to your reply too. I&#039;ve corrected it in the post above. I was originally using /@(.+)/ as the regular expression but that rewrites URLs that have an @ sign in the middle. I changed it to %r{/@(.+)} (inserted a slash at the front and used %r to avoid having to escape the slash).

I&#039;m guessing the same thing would work in Rack::Rewrite.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>That looks nice. You&#8217;re right, it is more succinct.</p>
<p>And thanks for making me think more about it&#8211;I noticed a bug in my code when I read your post, and I think my bug made its way to your reply too. I&#8217;ve corrected it in the post above. I was originally using /@(.+)/ as the regular expression but that rewrites URLs that have an @ sign in the middle. I changed it to %r{/@(.+)} (inserted a slash at the front and used %r to avoid having to escape the slash).</p>
<p>I&#8217;m guessing the same thing would work in Rack::Rewrite.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Put Rewrite Rules in Your Ruby Code, Not Your Web Server by John Trupiano</title>
		<link>http://bmorearty.wordpress.com/2009/11/04/put-mod_rewrite-in-your-ruby-code-not-your-web-server/#comment-502</link>
		<dc:creator>John Trupiano</dc:creator>
		<pubDate>Thu, 05 Nov 2009 14:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=228#comment-502</guid>
		<description>Hey Brian,

Brian, Rack::Rewrite has a development branch that will allow you to do everything that Refraction does more succinctly.  

As far as your example above, it&#039;s actually simpler with Rack::Rewrite (http://github.com/jtrupiano/rack-rewrite ):

&lt;pre&gt;
    config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do
      rewrite /@(.+)/, &quot;/users/$1&quot;
    end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hey Brian,</p>
<p>Brian, Rack::Rewrite has a development branch that will allow you to do everything that Refraction does more succinctly.  </p>
<p>As far as your example above, it&#8217;s actually simpler with Rack::Rewrite (<a href="http://github.com/jtrupiano/rack-rewrite" rel="nofollow">http://github.com/jtrupiano/rack-rewrite</a> ):</p>
<pre>
    config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do
      rewrite /@(.+)/, "/users/$1"
    end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Russ Kuhn</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-499</link>
		<dc:creator>Russ Kuhn</dc:creator>
		<pubDate>Tue, 27 Oct 2009 16:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-499</guid>
		<description>As of Rails 2.3.4, if not earlier, @method_name is not supported and should be replaced with just name, as in

Rails::logger.info &quot;\n\nStarting #{name}\n#{&#039;-&#039; * (9 + @name.length)}\n&quot;</description>
		<content:encoded><![CDATA[<p>As of Rails 2.3.4, if not earlier, @method_name is not supported and should be replaced with just name, as in</p>
<p>Rails::logger.info &#8220;\n\nStarting #{name}\n#{&#8216;-&#8217; * (9 + @name.length)}\n&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by cassie</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-496</link>
		<dc:creator>cassie</dc:creator>
		<pubDate>Wed, 21 Oct 2009 22:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-496</guid>
		<description>i would go to the wlmart store, block the enterences and go back to the gun dep. and shoot the zombies or anyone trying to let zombies in. that way i would have food, internet, and a seat :) lol.....</description>
		<content:encoded><![CDATA[<p>i would go to the wlmart store, block the enterences and go back to the gun dep. and shoot the zombies or anyone trying to let zombies in. that way i would have food, internet, and a seat :) lol&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by john knudsen</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-494</link>
		<dc:creator>john knudsen</dc:creator>
		<pubDate>Tue, 13 Oct 2009 22:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-494</guid>
		<description>well i havent made one yet but im starting a zombie club at my school and for our first meeting we are discussing our best zombie escape plans :P</description>
		<content:encoded><![CDATA[<p>well i havent made one yet but im starting a zombie club at my school and for our first meeting we are discussing our best zombie escape plans :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fun with Ruby&#8217;s instance_eval and class_eval by David</title>
		<link>http://bmorearty.wordpress.com/2009/01/09/fun-with-rubys-instance_eval-and-class_eval/#comment-492</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 09 Sep 2009 21:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=79#comment-492</guid>
		<description>Well now then how do these things compare to define_method? :)</description>
		<content:encoded><![CDATA[<p>Well now then how do these things compare to define_method? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by GetA</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-491</link>
		<dc:creator>GetA</dc:creator>
		<pubDate>Wed, 09 Sep 2009 21:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-491</guid>
		<description>this is awesome!</description>
		<content:encoded><![CDATA[<p>this is awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Intuit Community makes Business Week by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/07/21/intuit-community-makes-business-week/#comment-489</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Fri, 28 Aug 2009 17:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=213#comment-489</guid>
		<description>Hey, good to see you here Zach!</description>
		<content:encoded><![CDATA[<p>Hey, good to see you here Zach!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Intuit Community makes Business Week by Moneypenny</title>
		<link>http://bmorearty.wordpress.com/2009/07/21/intuit-community-makes-business-week/#comment-488</link>
		<dc:creator>Moneypenny</dc:creator>
		<pubDate>Fri, 28 Aug 2009 16:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=213#comment-488</guid>
		<description>Hey man! I can&#039;t believe I didn&#039;t know (a) you had a dev blog and (b) that you&#039;re a ruby/rails fan! Nirvana!  This is going right on my RSS reader :)</description>
		<content:encoded><![CDATA[<p>Hey man! I can&#8217;t believe I didn&#8217;t know (a) you had a dev blog and (b) that you&#8217;re a ruby/rails fan! Nirvana!  This is going right on my RSS reader :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fun with Ruby&#8217;s instance_eval and class_eval by rakesh</title>
		<link>http://bmorearty.wordpress.com/2009/01/09/fun-with-rubys-instance_eval-and-class_eval/#comment-487</link>
		<dc:creator>rakesh</dc:creator>
		<pubDate>Sat, 22 Aug 2009 15:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=79#comment-487</guid>
		<description>Very beautifully explained. thanks. i was pretty confused before reading ur post</description>
		<content:encoded><![CDATA[<p>Very beautifully explained. thanks. i was pretty confused before reading ur post</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Add Optional SEO-Friendliness to link_to_remote by Tom</title>
		<link>http://bmorearty.wordpress.com/2009/04/02/link-to-remote-with-seo/#comment-486</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 18 Aug 2009 22:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=141#comment-486</guid>
		<description>Hey Brian,

Good stuff. Here is the RESTful syntax:

[sourcecode language=&#039;python&#039;]
 link_to_seo_remote(event.name, { :update =&gt; &quot;#{dom_id(event)}_detail&quot;, :url =&gt; event_path(event), :method=&gt;:get, :complete =&gt; visual_effect(:slide_down, &quot;#{dom_id(event)}_detail&quot;) } )
[/sourcecode]</description>
		<content:encoded><![CDATA[<p>Hey Brian,</p>
<p>Good stuff. Here is the RESTful syntax:</p>
<pre class="brush: python;">
 link_to_seo_remote(event.name, { :update =&gt; &quot;#{dom_id(event)}_detail&quot;, :url =&gt; event_path(event), :method=&gt;:get, :complete =&gt; visual_effect(:slide_down, &quot;#{dom_id(event)}_detail&quot;) } )
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fun with Ruby&#8217;s instance_eval and class_eval by Shamika</title>
		<link>http://bmorearty.wordpress.com/2009/01/09/fun-with-rubys-instance_eval-and-class_eval/#comment-480</link>
		<dc:creator>Shamika</dc:creator>
		<pubDate>Wed, 12 Aug 2009 18:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=79#comment-480</guid>
		<description>Thanx  thanx wonderful explanation..... Short and clean</description>
		<content:encoded><![CDATA[<p>Thanx  thanx wonderful explanation&#8230;.. Short and clean</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by Joe</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-479</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 11 Aug 2009 13:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-479</guid>
		<description>ahh, thank goodness for this post. The pickaxe was entirely opaque on this subject and I now know how to do if-else&#039;s neatly AND switches all with one structure.

Many thanks.</description>
		<content:encoded><![CDATA[<p>ahh, thank goodness for this post. The pickaxe was entirely opaque on this subject and I now know how to do if-else&#8217;s neatly AND switches all with one structure.</p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-469</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Fri, 24 Jul 2009 14:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-469</guid>
		<description>That&#039;s awesome. (Previous comment). Should be a big help.</description>
		<content:encoded><![CDATA[<p>That&#8217;s awesome. (Previous comment). Should be a big help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by Guido</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-468</link>
		<dc:creator>Guido</dc:creator>
		<pubDate>Fri, 24 Jul 2009 13:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-468</guid>
		<description>Thanks, this is awesome :)

Did I mention that I love Rails?</description>
		<content:encoded><![CDATA[<p>Thanks, this is awesome :)</p>
<p>Did I mention that I love Rails?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by larrytheliquid</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-467</link>
		<dc:creator>larrytheliquid</dc:creator>
		<pubDate>Fri, 24 Jul 2009 06:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-467</guid>
		<description>As of Dataflow 0.2.0 unbound dataflow variables can be #inspect&#039;d without causing a thread sleep, which should ease debugging.</description>
		<content:encoded><![CDATA[<p>As of Dataflow 0.2.0 unbound dataflow variables can be #inspect&#8217;d without causing a thread sleep, which should ease debugging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Javafication of Ruby on Rails by to_json =&#62; as_json? &#171; I like stuff.</title>
		<link>http://bmorearty.wordpress.com/2009/05/21/the-javafication-of-ruby-on-rails/#comment-464</link>
		<dc:creator>to_json =&#62; as_json? &#171; I like stuff.</dc:creator>
		<pubDate>Tue, 21 Jul 2009 00:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=201#comment-464</guid>
		<description>[...] I like stuff. Brian Morearty&#8217;s Blog      &#171; The Javafication of Ruby on&#160;Rails [...]</description>
		<content:encoded><![CDATA[<p>[...] I like stuff. Brian Morearty&#8217;s Blog      &laquo; The Javafication of Ruby on&nbsp;Rails [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My Favorite Quotes from the Yellowpages.com Ruby on Rails Talk by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/03/22/my-favorite-quotes-from-the-yellowpagescom-ruby-on-rails-talk/#comment-460</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Thu, 16 Jul 2009 00:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=128#comment-460</guid>
		<description>Thanks for the correction, spiralofhope. I have updated the link in the post.</description>
		<content:encoded><![CDATA[<p>Thanks for the correction, spiralofhope. I have updated the link in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My Favorite Quotes from the Yellowpages.com Ruby on Rails Talk by spiralofhope</title>
		<link>http://bmorearty.wordpress.com/2009/03/22/my-favorite-quotes-from-the-yellowpagescom-ruby-on-rails-talk/#comment-459</link>
		<dc:creator>spiralofhope</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=128#comment-459</guid>
		<description>This has a broken link:

http://http//www.infoq.com/presentations/straw-yellowpages
=&gt;
http://www.infoq.com/presentations/straw-yellowpages</description>
		<content:encoded><![CDATA[<p>This has a broken link:</p>
<p><a href="http://http//www.infoq.com/presentations/straw-yellowpages" rel="nofollow">http://http//www.infoq.com/presentations/straw-yellowpages</a><br />
=&gt;<br />
<a href="http://www.infoq.com/presentations/straw-yellowpages" rel="nofollow">http://www.infoq.com/presentations/straw-yellowpages</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by spiralofhope</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-458</link>
		<dc:creator>spiralofhope</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-458</guid>
		<description>Thanks for the help with the array example.  It helped simplify my code.</description>
		<content:encoded><![CDATA[<p>Thanks for the help with the array example.  It helped simplify my code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Javafication of Ruby on Rails by Suraj R</title>
		<link>http://bmorearty.wordpress.com/2009/05/21/the-javafication-of-ruby-on-rails/#comment-454</link>
		<dc:creator>Suraj R</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=201#comment-454</guid>
		<description>I agree - &quot;keep it simple stupid&quot;? :P</description>
		<content:encoded><![CDATA[<p>I agree &#8211; &#8220;keep it simple stupid&#8221;? :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by links for 2009-06-15 &#171; Bloggitation</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-452</link>
		<dc:creator>links for 2009-06-15 &#171; Bloggitation</dc:creator>
		<pubDate>Mon, 15 Jun 2009 07:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-452</guid>
		<description>[...] How to write case (switch) statements in Ruby (tags: ruby programming) [...]</description>
		<content:encoded><![CDATA[<p>[...] How to write case (switch) statements in Ruby (tags: ruby programming) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Volkstrom</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-450</link>
		<dc:creator>Volkstrom</dc:creator>
		<pubDate>Thu, 11 Jun 2009 21:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-450</guid>
		<description>I have a Zombie Escape plan, it also serves me as a nuclear war escape plan, communism escape plan, global epidemic and meteor escape plan. The key is to avoid places with a lot of people, as even if you live through the crisis, there will be food and water shortages, outbreaks of violence, cannibalism etc. So get the heck away from everyone else. Bu you also need to go somewhere that is survivable year round. for example, stealing a boat and going to Greenland is not going to help you, once the winter set in, how will you eat? How will you stay warm? You need to answer these two questions first. Then you need to look at whether everyone else is going there, if you decide to go somewhere because it is close and isolated, so might everyone else in your area, bringing the problems you try to avoid with them (zombies, plague, asteroids etc.) Next, get yourself a gun and learn to fight, someone, somewhere on your journey of survival will try and take what you have. It happens right now, the difference in a disaster is there will be no police. So arm yourself and take no prisoners, anyone messes around, its better to feel guilty and wonder if you should have shot them, than get eaten or raped and eaten, or turned into a zombie. Last but not least, take a few friends or family members you can rely on, living on a deserted mountain top by yourself for decades is probably not going to be a very satisfying life, even if you are a survivor. 

I would suggest learning to sail a boat. If you can sail a boat you can travel the seven seas indifinately, avoiding zombies and raiding coastal towns like a pirate for supplies! Yuo dont even need to own a boat, just steal it from a marina like in Dawn of the Dead.</description>
		<content:encoded><![CDATA[<p>I have a Zombie Escape plan, it also serves me as a nuclear war escape plan, communism escape plan, global epidemic and meteor escape plan. The key is to avoid places with a lot of people, as even if you live through the crisis, there will be food and water shortages, outbreaks of violence, cannibalism etc. So get the heck away from everyone else. Bu you also need to go somewhere that is survivable year round. for example, stealing a boat and going to Greenland is not going to help you, once the winter set in, how will you eat? How will you stay warm? You need to answer these two questions first. Then you need to look at whether everyone else is going there, if you decide to go somewhere because it is close and isolated, so might everyone else in your area, bringing the problems you try to avoid with them (zombies, plague, asteroids etc.) Next, get yourself a gun and learn to fight, someone, somewhere on your journey of survival will try and take what you have. It happens right now, the difference in a disaster is there will be no police. So arm yourself and take no prisoners, anyone messes around, its better to feel guilty and wonder if you should have shot them, than get eaten or raped and eaten, or turned into a zombie. Last but not least, take a few friends or family members you can rely on, living on a deserted mountain top by yourself for decades is probably not going to be a very satisfying life, even if you are a survivor. </p>
<p>I would suggest learning to sail a boat. If you can sail a boat you can travel the seven seas indifinately, avoiding zombies and raiding coastal towns like a pirate for supplies! Yuo dont even need to own a boat, just steal it from a marina like in Dawn of the Dead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Bryan Ryan</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-420</link>
		<dc:creator>Bryan Ryan</dc:creator>
		<pubDate>Tue, 26 May 2009 11:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-420</guid>
		<description>Countless scenarios for different situations. Though walmarts and target sound like great zombie defense locations both lack the high ceilings needed for hiding from zombies. Every plan needs a back up plan. 

First: where ever you go, you will need transportation, food, and a good hiding location. Last time I checked there was 6.5 billion people on earth so 2 weeks of food or hiding of roofs ain&#039;t gonna cut it. My plan is to get to the  SAMS club near my house. If you ever been in one it&#039;s a fotress. Food and supplies surrounded by concrete. Once your in find the manager on duty and explain the situation. Ask for the keys and codes to everything. Tell them to grab their families and you will basicly protect the fort. Once in you have to block off all entrances with the tires in the tire section. Stack until you fill the glass doorway area. Several walls of tower will keep them out along with &quot;food travelers&quot; (the unprepared traveling looking for new food spots ) make sure the vechicles you brought are in the garage area. Leave an emergency car in the trucking area in the back (backup backup plan). Once you&#039;ve checked all doors and all weak points in your fortress. Begin the second phase which is creating a system of smaller areas within your compound. Try to create more block offs around the store. Using the pallets of products make walls and &quot;zones&quot;. Also SAMS has rows and rows of product. Create a &quot;treehouse system between each row. In emergency 
situations the floor is no longer safe. The treehouse should have food for living and ways to the outside car need to be possible from the roof. If you aren&#039;t compromised live your walls with couches,food, tv, secruity, batteries, generators. Use the perishable foods or frozen foods first. Use a grill or the microwaves to cook. Everyone should sleep in the treehouse assuming you were able to save your friends and family. If the zombies aren&#039;t elimated or die of starvation. Plan to spend the next 6 years there. So create democracy or a leader. Also plan for &quot;food travelers&quot;. Because there is no government anarchy is everywhere. People will use survival of the fittest alot. People will come for your fortress so be prepared to defend it from zombies and other people.

 Of course if you wake up and it&#039;s too late to do any of this. Your already in the stage where it&#039;s outside right now. Stay in your homes and block off your doors. If you live on the second floor of the apartment destroy the stairs. Your gonna be here until you die. Which will be in 6 months because there is no food.</description>
		<content:encoded><![CDATA[<p>Countless scenarios for different situations. Though walmarts and target sound like great zombie defense locations both lack the high ceilings needed for hiding from zombies. Every plan needs a back up plan. </p>
<p>First: where ever you go, you will need transportation, food, and a good hiding location. Last time I checked there was 6.5 billion people on earth so 2 weeks of food or hiding of roofs ain&#8217;t gonna cut it. My plan is to get to the  SAMS club near my house. If you ever been in one it&#8217;s a fotress. Food and supplies surrounded by concrete. Once your in find the manager on duty and explain the situation. Ask for the keys and codes to everything. Tell them to grab their families and you will basicly protect the fort. Once in you have to block off all entrances with the tires in the tire section. Stack until you fill the glass doorway area. Several walls of tower will keep them out along with &#8220;food travelers&#8221; (the unprepared traveling looking for new food spots ) make sure the vechicles you brought are in the garage area. Leave an emergency car in the trucking area in the back (backup backup plan). Once you&#8217;ve checked all doors and all weak points in your fortress. Begin the second phase which is creating a system of smaller areas within your compound. Try to create more block offs around the store. Using the pallets of products make walls and &#8220;zones&#8221;. Also SAMS has rows and rows of product. Create a &#8220;treehouse system between each row. In emergency<br />
situations the floor is no longer safe. The treehouse should have food for living and ways to the outside car need to be possible from the roof. If you aren&#8217;t compromised live your walls with couches,food, tv, secruity, batteries, generators. Use the perishable foods or frozen foods first. Use a grill or the microwaves to cook. Everyone should sleep in the treehouse assuming you were able to save your friends and family. If the zombies aren&#8217;t elimated or die of starvation. Plan to spend the next 6 years there. So create democracy or a leader. Also plan for &#8220;food travelers&#8221;. Because there is no government anarchy is everywhere. People will use survival of the fittest alot. People will come for your fortress so be prepared to defend it from zombies and other people.</p>
<p> Of course if you wake up and it&#8217;s too late to do any of this. Your already in the stage where it&#8217;s outside right now. Stay in your homes and block off your doors. If you live on the second floor of the apartment destroy the stairs. Your gonna be here until you die. Which will be in 6 months because there is no food.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by David-Sarah Hopwood</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-236</link>
		<dc:creator>David-Sarah Hopwood</dc:creator>
		<pubDate>Fri, 01 May 2009 21:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-236</guid>
		<description>&quot;... using a method called unify for assignment takes a little getting used to ...&quot;

Unification is more general than assignment. Assignment requires the left hand side to be a single variable. Unification, at least in most languages that support it, allows both sides to be arbitrary patterns, where any unbound dataflow variable in one pattern can be bound to a corresponding value in the other. This is explained well in the book &#039;Concepts, Techniques and Models of Computer Programming&#039;. (I don&#039;t know whether this particular implementation supports patterns on both sides.)

&quot;Speaking of debugging, if the debugger tries to show you the value of a Dataflow variable that hasn’t yet been assigned, the debugger thread itself will be put to sleep.&quot;

That&#039;s unfortunate. Ideally the debugger would just show that the variable is unbound (as it does in Mozart/Oz, and most other systems that support dataflow variables).</description>
		<content:encoded><![CDATA[<p>&#8220;&#8230; using a method called unify for assignment takes a little getting used to &#8230;&#8221;</p>
<p>Unification is more general than assignment. Assignment requires the left hand side to be a single variable. Unification, at least in most languages that support it, allows both sides to be arbitrary patterns, where any unbound dataflow variable in one pattern can be bound to a corresponding value in the other. This is explained well in the book &#8216;Concepts, Techniques and Models of Computer Programming&#8217;. (I don&#8217;t know whether this particular implementation supports patterns on both sides.)</p>
<p>&#8220;Speaking of debugging, if the debugger tries to show you the value of a Dataflow variable that hasn’t yet been assigned, the debugger thread itself will be put to sleep.&#8221;</p>
<p>That&#8217;s unfortunate. Ideally the debugger would just show that the variable is unbound (as it does in Mozart/Oz, and most other systems that support dataflow variables).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-221</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Wed, 29 Apr 2009 21:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-221</guid>
		<description>Thanks for the corrections, Ilan. You&#039;re right about Erlang using lightweight processes rather than threads. I was aware of that and probably should have mentioned it in the article. But I didn&#039;t know about your other points--the ones about bound and unbound variables and about Erlang being stackless.</description>
		<content:encoded><![CDATA[<p>Thanks for the corrections, Ilan. You&#8217;re right about Erlang using lightweight processes rather than threads. I was aware of that and probably should have mentioned it in the article. But I didn&#8217;t know about your other points&#8211;the ones about bound and unbound variables and about Erlang being stackless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by ilan berci</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-220</link>
		<dc:creator>ilan berci</dc:creator>
		<pubDate>Wed, 29 Apr 2009 19:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-220</guid>
		<description>Thanks for the great article!  I believe however that you have to make some small corrections on the Erlang comparisons/explanations.

[...] if you can only assign a value when you declare a variable, obviously it will only be assigned once. [...]  

In Erlang, there is no variable assignment, it&#039;s actually a pattern match that&#039;s going on and as a result of the match, the variable gets &quot;bounded&quot; to the result which is fundamentally different from assignment.  Secondly, Variables can be declared and not bounded, these are termed &quot;unbounded variables&quot;

[...] Erlang handles it by heavy use of the stack and threads, so whenever you need a new value you call a function (which spawns a thread) and the function declares a new variable, assigning the new value to it. So there’s a lot of copying of values. [...]

Erlang is stack-less (which makes their tco easier to implement).. Secondly, Erlang doesn&#039;t create a thread when you spawn/1, it&#039;s a lightweight process and fundamentally different from a thread.  I know what you are trying to say but care must be taken since you are trying to validate a point based on false statements.

Thanks for the info on this gem!  I will definitely check it out as I feel that the only way to go forward from here on in is to make the switch to immutable state.

Please note that I am not an Erlang expert, I just want to make sure that your article is not dismissed because of the errors.


ilan</description>
		<content:encoded><![CDATA[<p>Thanks for the great article!  I believe however that you have to make some small corrections on the Erlang comparisons/explanations.</p>
<p>[...] if you can only assign a value when you declare a variable, obviously it will only be assigned once. [...]  </p>
<p>In Erlang, there is no variable assignment, it&#8217;s actually a pattern match that&#8217;s going on and as a result of the match, the variable gets &#8220;bounded&#8221; to the result which is fundamentally different from assignment.  Secondly, Variables can be declared and not bounded, these are termed &#8220;unbounded variables&#8221;</p>
<p>[...] Erlang handles it by heavy use of the stack and threads, so whenever you need a new value you call a function (which spawns a thread) and the function declares a new variable, assigning the new value to it. So there’s a lot of copying of values. [...]</p>
<p>Erlang is stack-less (which makes their tco easier to implement).. Secondly, Erlang doesn&#8217;t create a thread when you spawn/1, it&#8217;s a lightweight process and fundamentally different from a thread.  I know what you are trying to say but care must be taken since you are trying to validate a point based on false statements.</p>
<p>Thanks for the info on this gem!  I will definitely check it out as I feel that the only way to go forward from here on in is to make the switch to immutable state.</p>
<p>Please note that I am not an Erlang expert, I just want to make sure that your article is not dismissed because of the errors.</p>
<p>ilan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by kenny</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-219</link>
		<dc:creator>kenny</dc:creator>
		<pubDate>Wed, 29 Apr 2009 17:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-219</guid>
		<description>my plan is simple save all my freinds go to woodbridge center mall and kill zombies till i die by suicide</description>
		<content:encoded><![CDATA[<p>my plan is simple save all my freinds go to woodbridge center mall and kill zombies till i die by suicide</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Charles Oliver Nutter</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-206</link>
		<dc:creator>Charles Oliver Nutter</dc:creator>
		<pubDate>Tue, 28 Apr 2009 20:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-206</guid>
		<description>Just to add to oldmoe&#039;s comment:

Yes, JRuby&#039;s threads are always native, but you can specify that the native thread constructed gets pooled behind the scenes. This helps reduce the cost of spinning up a lot of threads. We have other plans to try to reduce the cost of spinning many small threads as well.

Ultimately, however, with or without the pool and non-trivial threaded application should see a lot better performance on JRuby, since the threads will *actually* run at the same time. Just don&#039;t spin up a million tiny threads that add 1+1 and you&#039;ll probably do fine.</description>
		<content:encoded><![CDATA[<p>Just to add to oldmoe&#8217;s comment:</p>
<p>Yes, JRuby&#8217;s threads are always native, but you can specify that the native thread constructed gets pooled behind the scenes. This helps reduce the cost of spinning up a lot of threads. We have other plans to try to reduce the cost of spinning many small threads as well.</p>
<p>Ultimately, however, with or without the pool and non-trivial threaded application should see a lot better performance on JRuby, since the threads will *actually* run at the same time. Just don&#8217;t spin up a million tiny threads that add 1+1 and you&#8217;ll probably do fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Top Posts &#171; WordPress.com</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-195</link>
		<dc:creator>Top Posts &#171; WordPress.com</dc:creator>
		<pubDate>Tue, 28 Apr 2009 00:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-195</guid>
		<description>[...]  Dataflow: Erlang-Style Thread Safety in Ruby Larry Diehl, a.k.a. larrytheliquid, has just released Dataflow: a tiny and remarkable gem that helps Ruby programmers [...] [...]</description>
		<content:encoded><![CDATA[<p>[...]  Dataflow: Erlang-Style Thread Safety in Ruby Larry Diehl, a.k.a. larrytheliquid, has just released Dataflow: a tiny and remarkable gem that helps Ruby programmers [...] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by oldmoe</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-193</link>
		<dc:creator>oldmoe</dc:creator>
		<pubDate>Mon, 27 Apr 2009 20:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-193</guid>
		<description>Correction, JRuby does not implement green threads. It just implements a pool of native threads to overcome the high overhead of thread creation specially for short lived jobs.</description>
		<content:encoded><![CDATA[<p>Correction, JRuby does not implement green threads. It just implements a pool of native threads to overcome the high overhead of thread creation specially for short lived jobs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Andrew Miller</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-192</link>
		<dc:creator>Andrew Miller</dc:creator>
		<pubDate>Mon, 27 Apr 2009 18:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-192</guid>
		<description>The most exciting property of dataflow variables is that they are deterministic, even though they are concurrent. They will only produce one result, regardless of the order of execution. (It is possible for them not to complete at all, or to raise an exception, but this also happens deterministically). This is the magic of unify. (I think this is true even when there&#039;s nondeterministic input, but I have to check).

If you want to model actual asynchronous behavior where the result depends on the order of execution, like with a client-server model, then you can use Ports in the style of the Oz language - or Actors in the style of erlang, which in this case are built on top of Ports!

But introducing state changes makes Ruby seem more like Ruby to begin with. It &#039;undoes&#039; the determinism of dataflow variables. You would typically implement an identical Actor using a Ruby Queue.</description>
		<content:encoded><![CDATA[<p>The most exciting property of dataflow variables is that they are deterministic, even though they are concurrent. They will only produce one result, regardless of the order of execution. (It is possible for them not to complete at all, or to raise an exception, but this also happens deterministically). This is the magic of unify. (I think this is true even when there&#8217;s nondeterministic input, but I have to check).</p>
<p>If you want to model actual asynchronous behavior where the result depends on the order of execution, like with a client-server model, then you can use Ports in the style of the Oz language &#8211; or Actors in the style of erlang, which in this case are built on top of Ports!</p>
<p>But introducing state changes makes Ruby seem more like Ruby to begin with. It &#8216;undoes&#8217; the determinism of dataflow variables. You would typically implement an identical Actor using a Ruby Queue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by larrytheliquid</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-187</link>
		<dc:creator>larrytheliquid</dc:creator>
		<pubDate>Mon, 27 Apr 2009 04:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-187</guid>
		<description>See the JRuby wiki for enabling thread pooling and setting various parameters like min/max threads:
http://wiki.jruby.org/wiki/Performance_Tuning</description>
		<content:encoded><![CDATA[<p>See the JRuby wiki for enabling thread pooling and setting various parameters like min/max threads:<br />
<a href="http://wiki.jruby.org/wiki/Performance_Tuning" rel="nofollow">http://wiki.jruby.org/wiki/Performance_Tuning</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-186</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Mon, 27 Apr 2009 04:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-186</guid>
		<description>Thanks for the quick update to support nil values, Larry. And it&#039;s interesting to hear about JRuby&#039;s implementation of green threads + native pool. I didn&#039;t know about that but it certainly seems ideal for a library like Dataflow, compared to all native threads.

I&#039;ve updated the blog post to reflect your changes and your note about JRuby.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick update to support nil values, Larry. And it&#8217;s interesting to hear about JRuby&#8217;s implementation of green threads + native pool. I didn&#8217;t know about that but it certainly seems ideal for a library like Dataflow, compared to all native threads.</p>
<p>I&#8217;ve updated the blog post to reflect your changes and your note about JRuby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Andrew Miller</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-184</link>
		<dc:creator>Andrew Miller</dc:creator>
		<pubDate>Mon, 27 Apr 2009 02:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-184</guid>
		<description>I contributed a module to Dataflow that provides Erlang style actors as well. It works by extending a Thread with a mailbox of dataflow variables. It includes a canonical Ping/Pong example!
http://github.com/larrytheliquid/dataflow/tree/master</description>
		<content:encoded><![CDATA[<p>I contributed a module to Dataflow that provides Erlang style actors as well. It works by extending a Thread with a mailbox of dataflow variables. It includes a canonical Ping/Pong example!<br />
<a href="http://github.com/larrytheliquid/dataflow/tree/master" rel="nofollow">http://github.com/larrytheliquid/dataflow/tree/master</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by larrytheliquid</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-183</link>
		<dc:creator>larrytheliquid</dc:creator>
		<pubDate>Mon, 27 Apr 2009 01:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-183</guid>
		<description>Thanks for the article! I updated the library to be able to handle using nil. I also changed the internals to use monitors and condition variables to eliminate a tiny race condition that I was putting off. 

One thing to note is that this library makes JRuby shine over MRI due to its green threads + native thread pool implementation.

Another big advantage that I&#039;d like to point out is that the specs in the library are using threads! Normally one mocks out threads for testing, but because this model is deterministic you can keep them in.</description>
		<content:encoded><![CDATA[<p>Thanks for the article! I updated the library to be able to handle using nil. I also changed the internals to use monitors and condition variables to eliminate a tiny race condition that I was putting off. </p>
<p>One thing to note is that this library makes JRuby shine over MRI due to its green threads + native thread pool implementation.</p>
<p>Another big advantage that I&#8217;d like to point out is that the specs in the library are using threads! Normally one mocks out threads for testing, but because this model is deterministic you can keep them in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dataflow: Erlang-Style Thread Safety in Ruby by Derek Neighbors</title>
		<link>http://bmorearty.wordpress.com/2009/04/26/dataflow-erlang-style-thread-safety-in-ruby/#comment-181</link>
		<dc:creator>Derek Neighbors</dc:creator>
		<pubDate>Mon, 27 Apr 2009 00:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=182#comment-181</guid>
		<description>It&#039;s nice to see some alternative choices for dealing with threading in Ruby.</description>
		<content:encoded><![CDATA[<p>It&#8217;s nice to see some alternative choices for dealing with threading in Ruby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My Favorite Quotes from the Yellowpages.com Ruby on Rails Talk by Dataflow: Erlang-Style Thread Safety in Ruby &#171; I like stuff.</title>
		<link>http://bmorearty.wordpress.com/2009/03/22/my-favorite-quotes-from-the-yellowpagescom-ruby-on-rails-talk/#comment-179</link>
		<dc:creator>Dataflow: Erlang-Style Thread Safety in Ruby &#171; I like stuff.</dc:creator>
		<pubDate>Sun, 26 Apr 2009 20:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=128#comment-179</guid>
		<description>[...] we continue, a word of caution: I&#8217;ve mentioned in this blog and in the Ruby on Rails Podcast that even though multithreading is really fun to think about and [...]</description>
		<content:encoded><![CDATA[<p>[...] we continue, a word of caution: I&#8217;ve mentioned in this blog and in the Ruby on Rails Podcast that even though multithreading is really fun to think about and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by Samuel L.</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-166</link>
		<dc:creator>Samuel L.</dc:creator>
		<pubDate>Fri, 24 Apr 2009 11:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-166</guid>
		<description>Hey, cool tips. Perhaps I&#039;ll buy a glass of beer to that person from that chat who told me to visit your site :)</description>
		<content:encoded><![CDATA[<p>Hey, cool tips. Perhaps I&#8217;ll buy a glass of beer to that person from that chat who told me to visit your site :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by raji</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-157</link>
		<dc:creator>raji</dc:creator>
		<pubDate>Tue, 21 Apr 2009 16:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-157</guid>
		<description>it worked. thank u sir</description>
		<content:encoded><![CDATA[<p>it worked. thank u sir</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-152</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Mon, 20 Apr 2009 16:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-152</guid>
		<description>Hi Raji,

I believe the problem is your case statement is comparing a string with an integer. Type &quot;value=gets&quot; into IRB and then type the number 1. You&#039;ll see that IRB tells you the result is the string &quot;1\n&quot;. 

To fix this, convert the value to an integer before comparing it to 1, 2, or 3:
  case value.to_i

Hope that helps!</description>
		<content:encoded><![CDATA[<p>Hi Raji,</p>
<p>I believe the problem is your case statement is comparing a string with an integer. Type &#8220;value=gets&#8221; into IRB and then type the number 1. You&#8217;ll see that IRB tells you the result is the string &#8220;1\n&#8221;. </p>
<p>To fix this, convert the value to an integer before comparing it to 1, 2, or 3:<br />
  case value.to_i</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by raji</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-151</link>
		<dc:creator>raji</dc:creator>
		<pubDate>Mon, 20 Apr 2009 16:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-151</guid>
		<description>im going to create a adressbook in Ruby using XML.
My options are
1.List -  List the  XML file.
2.Add - Add an element into the XML file
3.Delete - Delete an element from the XML file
i want to put these three options in case statements and select one based on the user input.
                     value = gets  (receive input from the user)
                     case value
                         when 1: list (invoke list)
                         when 2: add (invoke add)
                         when 3: delete (invoke delete)
                     else    puts &quot;exit&quot;
  When i give input as 1,2,or 3 only else statement is  executed.
  Is the syntax is right?what corrections i have to do ?</description>
		<content:encoded><![CDATA[<p>im going to create a adressbook in Ruby using XML.<br />
My options are<br />
1.List &#8211;  List the  XML file.<br />
2.Add &#8211; Add an element into the XML file<br />
3.Delete &#8211; Delete an element from the XML file<br />
i want to put these three options in case statements and select one based on the user input.<br />
                     value = gets  (receive input from the user)<br />
                     case value<br />
                         when 1: list (invoke list)<br />
                         when 2: add (invoke add)<br />
                         when 3: delete (invoke delete)<br />
                     else    puts &#8220;exit&#8221;<br />
  When i give input as 1,2,or 3 only else statement is  executed.<br />
  Is the syntax is right?what corrections i have to do ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by raji</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-142</link>
		<dc:creator>raji</dc:creator>
		<pubDate>Sun, 19 Apr 2009 04:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-142</guid>
		<description>hi how to use case statement when the input is from the user (i.e.)using gets.i tried  but it executes the default statement.</description>
		<content:encoded><![CDATA[<p>hi how to use case statement when the input is from the user (i.e.)using gets.i tried  but it executes the default statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Listen to my interview on the Ruby on Rails Podcast by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/04/15/listen-to-my-interview-on-the-ruby-on-rails-podcast/#comment-116</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Wed, 15 Apr 2009 00:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=178#comment-116</guid>
		<description>Listen to the part where we try to figure out what version of Rails we used to use. What a crackup. Hey, Hollywood, maybe we could be in the next Dumb and Dumber sequel.</description>
		<content:encoded><![CDATA[<p>Listen to the part where we try to figure out what version of Rails we used to use. What a crackup. Hey, Hollywood, maybe we could be in the next Dumb and Dumber sequel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by James</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-96</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 06 Apr 2009 13:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-96</guid>
		<description>my plan is to go to kmart cuz everyone goes to walmart so the zombies would follow them then id barricade the door and go to the hunting section and take all the guns and ammo id need id also grab bats and other things then the other ppl with me would make a four level barricks that elevates 7 feet each level its a perfect plan</description>
		<content:encoded><![CDATA[<p>my plan is to go to kmart cuz everyone goes to walmart so the zombies would follow them then id barricade the door and go to the hunting section and take all the guns and ammo id need id also grab bats and other things then the other ppl with me would make a four level barricks that elevates 7 feet each level its a perfect plan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by enjoydiversity</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-93</link>
		<dc:creator>enjoydiversity</dc:creator>
		<pubDate>Mon, 23 Mar 2009 11:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-93</guid>
		<description>wow! nice. thanks.</description>
		<content:encoded><![CDATA[<p>wow! nice. thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My Favorite Quotes from the Yellowpages.com Ruby on Rails Talk by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/03/22/my-favorite-quotes-from-the-yellowpagescom-ruby-on-rails-talk/#comment-92</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Mon, 23 Mar 2009 05:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=128#comment-92</guid>
		<description>Excellent question, my bro. You&#039;re right, typically a language either supports threads or not, and a piece of code can be thread-safe or not. Ruby has always supported threads (or at least it has for a long time), but the speaker was talking about the &quot;thread-unsafety&quot; of the Rails framework, not of the Ruby language. Until very recently, the Rails code was not thread-safe. When he gave this talk it was still not thread-safe.</description>
		<content:encoded><![CDATA[<p>Excellent question, my bro. You&#8217;re right, typically a language either supports threads or not, and a piece of code can be thread-safe or not. Ruby has always supported threads (or at least it has for a long time), but the speaker was talking about the &#8220;thread-unsafety&#8221; of the Rails framework, not of the Ruby language. Until very recently, the Rails code was not thread-safe. When he gave this talk it was still not thread-safe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My Favorite Quotes from the Yellowpages.com Ruby on Rails Talk by Your bro</title>
		<link>http://bmorearty.wordpress.com/2009/03/22/my-favorite-quotes-from-the-yellowpagescom-ruby-on-rails-talk/#comment-90</link>
		<dc:creator>Your bro</dc:creator>
		<pubDate>Sun, 22 Mar 2009 23:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=128#comment-90</guid>
		<description>Can you explain what you (and he) mean by Ruby&#039;s &quot;thread-unsafety&quot;?  I don&#039;t know Ruby, and in my mind languages fall into two categories: Those that have threads, and those that don&#039;t.  I&#039;m not sure what it means for a language to be thread-unsafe -- that is a phrase that is usually applied to a piece of code, not a whole language, e.g. &quot;this code isn&#039;t thread-safe&quot; means the caller had better be careful to wrap their calls in synchronization objects or else make sure it&#039;s only called from one thread; but what do you mean in this case?</description>
		<content:encoded><![CDATA[<p>Can you explain what you (and he) mean by Ruby&#8217;s &#8220;thread-unsafety&#8221;?  I don&#8217;t know Ruby, and in my mind languages fall into two categories: Those that have threads, and those that don&#8217;t.  I&#8217;m not sure what it means for a language to be thread-unsafe &#8212; that is a phrase that is usually applied to a piece of code, not a whole language, e.g. &#8220;this code isn&#8217;t thread-safe&#8221; means the caller had better be careful to wrap their calls in synchronization objects or else make sure it&#8217;s only called from one thread; but what do you mean in this case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Put HTML tags and apostrophes in fixtures and tests or a meanie will hack you. by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2009/01/15/put-html-tags-and-apostrophes-in-fixtures-and-tests-or-a-meanie-will-hack-you/#comment-87</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Mon, 09 Mar 2009 18:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=67#comment-87</guid>
		<description>True anon, but my point was in this case it&#039;s *good* to not have schema changes run in a transaction. And I&#039;m sure it&#039;s easy enough in postgresql to have your schema changes not run in a transaction.</description>
		<content:encoded><![CDATA[<p>True anon, but my point was in this case it&#8217;s *good* to not have schema changes run in a transaction. And I&#8217;m sure it&#8217;s easy enough in postgresql to have your schema changes not run in a transaction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Put HTML tags and apostrophes in fixtures and tests or a meanie will hack you. by anon</title>
		<link>http://bmorearty.wordpress.com/2009/01/15/put-html-tags-and-apostrophes-in-fixtures-and-tests-or-a-meanie-will-hack-you/#comment-86</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Mon, 09 Mar 2009 18:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=67#comment-86</guid>
		<description>&quot;schema change does not happen in a transaction&quot;

True except when dealing with postgresql which supports DDL transactions</description>
		<content:encoded><![CDATA[<p>&#8220;schema change does not happen in a transaction&#8221;</p>
<p>True except when dealing with postgresql which supports DDL transactions</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by phillu</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-84</link>
		<dc:creator>phillu</dc:creator>
		<pubDate>Tue, 03 Mar 2009 08:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-84</guid>
		<description>I&#039;ve always wondered how they recognize the living.
They never seem to attack each other.
I would try to walk like them. Maybe they go by smell. What could I do to smell like a Zombie?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve always wondered how they recognize the living.<br />
They never seem to attack each other.<br />
I would try to walk like them. Maybe they go by smell. What could I do to smell like a Zombie?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Put HTML tags and apostrophes in fixtures and tests or a meanie will hack you. by Jared</title>
		<link>http://bmorearty.wordpress.com/2009/01/15/put-html-tags-and-apostrophes-in-fixtures-and-tests-or-a-meanie-will-hack-you/#comment-81</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Wed, 25 Feb 2009 16:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=67#comment-81</guid>
		<description>@Will: You no longer need to use the WhiteList plugin as it&#039;s functionality has been integrated into Rails&#039; own sanitize method. The days of avoiding sanitize are over if you are on Rails 2.2+</description>
		<content:encoded><![CDATA[<p>@Will: You no longer need to use the WhiteList plugin as it&#8217;s functionality has been integrated into Rails&#8217; own sanitize method. The days of avoiding sanitize are over if you are on Rails 2.2+</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Put HTML tags and apostrophes in fixtures and tests or a meanie will hack you. by Will Sargent</title>
		<link>http://bmorearty.wordpress.com/2009/01/15/put-html-tags-and-apostrophes-in-fixtures-and-tests-or-a-meanie-will-hack-you/#comment-80</link>
		<dc:creator>Will Sargent</dc:creator>
		<pubDate>Tue, 24 Feb 2009 19:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=67#comment-80</guid>
		<description>If you put several layers of protection in, you&#039;re less likely to suffer from XSS attacks.  Use the whitelist plugin, and use Erubis with the default escape text.  There&#039;s also a couple of plugins that validate models for HTML.</description>
		<content:encoded><![CDATA[<p>If you put several layers of protection in, you&#8217;re less likely to suffer from XSS attacks.  Use the whitelist plugin, and use Erubis with the default escape text.  There&#8217;s also a couple of plugins that validate models for HTML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by Hans-Gunther Schmidt</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-78</link>
		<dc:creator>Hans-Gunther Schmidt</dc:creator>
		<pubDate>Wed, 11 Feb 2009 18:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-78</guid>
		<description>Great! I use this post quite often as reference because I always keep forgetting how to write that :-)</description>
		<content:encoded><![CDATA[<p>Great! I use this post quite often as reference because I always keep forgetting how to write that :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by dusty</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-77</link>
		<dc:creator>dusty</dc:creator>
		<pubDate>Wed, 11 Feb 2009 06:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-77</guid>
		<description>and by the way its ellegel to have any assult wepon so if you have one at the time use it but after all that you might get thrown in jail so i wuld still do it hopefully you get bail tell the judg i saved the naborhood unless the whole naborhood is zombies lol.</description>
		<content:encoded><![CDATA[<p>and by the way its ellegel to have any assult wepon so if you have one at the time use it but after all that you might get thrown in jail so i wuld still do it hopefully you get bail tell the judg i saved the naborhood unless the whole naborhood is zombies lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by dusty</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-76</link>
		<dc:creator>dusty</dc:creator>
		<pubDate>Wed, 11 Feb 2009 06:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-76</guid>
		<description>i heard that zombies can run after you so i think it wuld be best to get all of the amunition you have and food you have and supplyies you have and put them into a basment or safe room or house and if youy live near a army base to see if there alive just listin and you wiull hear gernades and mashin guns so that is your best shot but dont get shot use a signale of some so they will know to keep the zombies away frome you unless the presedent orders a full extermabnation of all zombie infected areas then you have no chance you shulde stay at home get a gun anden dit right theere thats what i wulde do if i wasnt going to be rescued.</description>
		<content:encoded><![CDATA[<p>i heard that zombies can run after you so i think it wuld be best to get all of the amunition you have and food you have and supplyies you have and put them into a basment or safe room or house and if youy live near a army base to see if there alive just listin and you wiull hear gernades and mashin guns so that is your best shot but dont get shot use a signale of some so they will know to keep the zombies away frome you unless the presedent orders a full extermabnation of all zombie infected areas then you have no chance you shulde stay at home get a gun anden dit right theere thats what i wulde do if i wasnt going to be rescued.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fun with Ruby&#8217;s instance_eval and class_eval by Fredrik W</title>
		<link>http://bmorearty.wordpress.com/2009/01/09/fun-with-rubys-instance_eval-and-class_eval/#comment-57</link>
		<dc:creator>Fredrik W</dc:creator>
		<pubDate>Mon, 12 Jan 2009 17:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=79#comment-57</guid>
		<description>That&#039;s the same way I think of it. It&#039;s a real gotcha when you start doing these kinds of things though :)</description>
		<content:encoded><![CDATA[<p>That&#8217;s the same way I think of it. It&#8217;s a real gotcha when you start doing these kinds of things though :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fun with Ruby&#8217;s instance_eval and class_eval by Ed Ruder</title>
		<link>http://bmorearty.wordpress.com/2009/01/09/fun-with-rubys-instance_eval-and-class_eval/#comment-56</link>
		<dc:creator>Ed Ruder</dc:creator>
		<pubDate>Mon, 12 Jan 2009 16:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=79#comment-56</guid>
		<description>The Pragmatic Programmers have a &quot;Ruby Metaprogramming&quot; screencast series ($$) that delves deeply into these and many more Ruby &quot;mysteries&quot;--I recommend them!</description>
		<content:encoded><![CDATA[<p>The Pragmatic Programmers have a &#8220;Ruby Metaprogramming&#8221; screencast series ($$) that delves deeply into these and many more Ruby &#8220;mysteries&#8221;&#8211;I recommend them!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fun with Ruby&#8217;s instance_eval and class_eval by Justin George</title>
		<link>http://bmorearty.wordpress.com/2009/01/09/fun-with-rubys-instance_eval-and-class_eval/#comment-55</link>
		<dc:creator>Justin George</dc:creator>
		<pubDate>Sat, 10 Jan 2009 20:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=79#comment-55</guid>
		<description>But what about module_eval? Oh god, won&#039;t someone think of the modules!</description>
		<content:encoded><![CDATA[<p>But what about module_eval? Oh god, won&#8217;t someone think of the modules!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fun with Ruby&#8217;s instance_eval and class_eval by khellls</title>
		<link>http://bmorearty.wordpress.com/2009/01/09/fun-with-rubys-instance_eval-and-class_eval/#comment-54</link>
		<dc:creator>khellls</dc:creator>
		<pubDate>Fri, 09 Jan 2009 18:17:33 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=79#comment-54</guid>
		<description>A very nice explanation :)</description>
		<content:encoded><![CDATA[<p>A very nice explanation :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate guid ids 2100x faster for ActiveRecord models (but only if you use MySQL) by Ed Ruder</title>
		<link>http://bmorearty.wordpress.com/2009/01/03/generate-guid-ids-2100x-faster-for-activerecord-models-but-only-if-you-use-mysql/#comment-53</link>
		<dc:creator>Ed Ruder</dc:creator>
		<pubDate>Mon, 05 Jan 2009 16:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=31#comment-53</guid>
		<description>Cool! You da man!</description>
		<content:encoded><![CDATA[<p>Cool! You da man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Brian</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-51</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sun, 26 Oct 2008 13:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-51</guid>
		<description>I have this working (Rails 2.0.2, ruby 1.8.4), but it’s not DRY and there are better ways.  Fernando Blat Talks about how to add special actions before and after each test via an alias_method_chain for the run method:
 
http://www.inwebwetrust.net/post/2008/08/19/redefine-the-run-method-of-test-unit-testcase

Anyway, this is what I did before finding Fernando’s approach:

For Unit Tests, add the setup method below in each test .rb file (you can also add a teardown method to log the end of the test, but having the start logged between each test was a good enough of delimiter for me).  If you already have a setup method, of course just add the logger code line.

def setup
  RAILS_DEFAULT_LOGGER.info &quot;\n\nStarting #{@method_name}\n#{&#039;-&#039; * (9 + @method_name.length)}\n&quot;  
end

For Functional tests (because mine still use Test::Unit::TestCase), simply add the logger code line to the existing setup method.

Sorry for the previous posts and confusion.  There is a better approach to keep this DRY, but until I figure that out, this is what I’ve done, it worked, so I thought I’d share -- but I encourage you to learn the proper approach.

b</description>
		<content:encoded><![CDATA[<p>I have this working (Rails 2.0.2, ruby 1.8.4), but it’s not DRY and there are better ways.  Fernando Blat Talks about how to add special actions before and after each test via an alias_method_chain for the run method:</p>
<p><a href="http://www.inwebwetrust.net/post/2008/08/19/redefine-the-run-method-of-test-unit-testcase" rel="nofollow">http://www.inwebwetrust.net/post/2008/08/19/redefine-the-run-method-of-test-unit-testcase</a></p>
<p>Anyway, this is what I did before finding Fernando’s approach:</p>
<p>For Unit Tests, add the setup method below in each test .rb file (you can also add a teardown method to log the end of the test, but having the start logged between each test was a good enough of delimiter for me).  If you already have a setup method, of course just add the logger code line.</p>
<p>def setup<br />
  RAILS_DEFAULT_LOGGER.info &#8220;\n\nStarting #{@method_name}\n#{&#8216;-&#8217; * (9 + @method_name.length)}\n&#8221;<br />
end</p>
<p>For Functional tests (because mine still use Test::Unit::TestCase), simply add the logger code line to the existing setup method.</p>
<p>Sorry for the previous posts and confusion.  There is a better approach to keep this DRY, but until I figure that out, this is what I’ve done, it worked, so I thought I’d share &#8212; but I encourage you to learn the proper approach.</p>
<p>b</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Brian</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-50</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 25 Oct 2008 17:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-50</guid>
		<description>Ah, didn&#039;t break unit tests, but broke functional tests (I should have checked before posting).  How can this be overridden properly in test_helper.rb?  Or, should I place the method in each unit test rb file like functional tests?

b</description>
		<content:encoded><![CDATA[<p>Ah, didn&#8217;t break unit tests, but broke functional tests (I should have checked before posting).  How can this be overridden properly in test_helper.rb?  Or, should I place the method in each unit test rb file like functional tests?</p>
<p>b</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Brian</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-49</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 25 Oct 2008 16:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-49</guid>
		<description>In an attempt to better understand monkey patching, I added a setup method to my test_helper.rb, as I understand it&#039;s called for each test.  It  worked, but I don&#039;t know how I didn&#039;t break the actual setup method.

def setup
  RAILS_DEFAULT_LOGGER.info &quot;\n\nStarting #{@method_name}\n#{&#039;-&#039; * (9 + @method_name.length)}\n&quot;  
end</description>
		<content:encoded><![CDATA[<p>In an attempt to better understand monkey patching, I added a setup method to my test_helper.rb, as I understand it&#8217;s called for each test.  It  worked, but I don&#8217;t know how I didn&#8217;t break the actual setup method.</p>
<p>def setup<br />
  RAILS_DEFAULT_LOGGER.info &#8220;\n\nStarting #{@method_name}\n#{&#8216;-&#8217; * (9 + @method_name.length)}\n&#8221;<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Erick</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-47</link>
		<dc:creator>Erick</dc:creator>
		<pubDate>Fri, 10 Oct 2008 04:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-47</guid>
		<description>oh, and my rucksack is currently packed with all my old military gear.... it&#039;d be a good back up...LOL... if I still fit in the clothes.</description>
		<content:encoded><![CDATA[<p>oh, and my rucksack is currently packed with all my old military gear&#8230;. it&#8217;d be a good back up&#8230;LOL&#8230; if I still fit in the clothes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Erick</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-46</link>
		<dc:creator>Erick</dc:creator>
		<pubDate>Fri, 10 Oct 2008 04:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-46</guid>
		<description>I&#039;d make sure that I had a machette or a bolo as a third back up. well noted that getting in a tree would hinder the zombies from reaching you, but if you had run out of ammo, you&#039;d have to have some other way of defending yourself, a shovel would work good... or an axe... but that is all third hand... I&#039;m glad that zombies aren&#039;t fast.... but they usually move in groups... that could prove a challange if you didn&#039;t have a battle buddy.... glad I was in the infantry.... and my friends have their own zombie plans.
*It&#039;s good to think of this stuff... it adds to the monotany of a desk job*</description>
		<content:encoded><![CDATA[<p>I&#8217;d make sure that I had a machette or a bolo as a third back up. well noted that getting in a tree would hinder the zombies from reaching you, but if you had run out of ammo, you&#8217;d have to have some other way of defending yourself, a shovel would work good&#8230; or an axe&#8230; but that is all third hand&#8230; I&#8217;m glad that zombies aren&#8217;t fast&#8230;. but they usually move in groups&#8230; that could prove a challange if you didn&#8217;t have a battle buddy&#8230;. glad I was in the infantry&#8230;. and my friends have their own zombie plans.<br />
*It&#8217;s good to think of this stuff&#8230; it adds to the monotany of a desk job*</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-45</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Thu, 02 Oct 2008 04:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-45</guid>
		<description>Hum, that&#039;s interesting, John. The call to setup is supposed to call a class method, not an instance method. (The doc page you referenced is referring to the instance method.) You might double-check to see if you entered it the way I wrote it.

Or perhaps things have changed in a newer version of Rails. (Or an older one.)

The code above works in Rails 2.0.2. There&#039;s a file called setup_and_teardown.rb that has these lines:

        base.send :include, ActiveSupport::Callbacks
        base.define_callbacks :setup, :teardown

define_callbacks creates a &quot;setup&quot; method and a &quot;teardown&quot; method as class methods. These methods are very much like the before_save, after_save, etc. methods, in that they take a parameter which is the name of a function to call before setup and after teardown. So my code that says &quot;setup :log_test&quot; tells the test framework to call the :log_test function before calling the &quot;setup&quot; instance method. 

Perhaps things work differently in other versions of Rails.</description>
		<content:encoded><![CDATA[<p>Hum, that&#8217;s interesting, John. The call to setup is supposed to call a class method, not an instance method. (The doc page you referenced is referring to the instance method.) You might double-check to see if you entered it the way I wrote it.</p>
<p>Or perhaps things have changed in a newer version of Rails. (Or an older one.)</p>
<p>The code above works in Rails 2.0.2. There&#8217;s a file called setup_and_teardown.rb that has these lines:</p>
<p>        base.send :include, ActiveSupport::Callbacks<br />
        base.define_callbacks :setup, :teardown</p>
<p>define_callbacks creates a &#8220;setup&#8221; method and a &#8220;teardown&#8221; method as class methods. These methods are very much like the before_save, after_save, etc. methods, in that they take a parameter which is the name of a function to call before setup and after teardown. So my code that says &#8220;setup :log_test&#8221; tells the test framework to call the :log_test function before calling the &#8220;setup&#8221; instance method. </p>
<p>Perhaps things work differently in other versions of Rails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by John</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-44</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 01 Oct 2008 13:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-44</guid>
		<description>I tried this out but am getting an error, wrong number of arguments (1 for 0) for method setup.  Looking at the rdoc for the testcase class (http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/TestCase.html#M004534) and setup doesn&#039;t take any parameters.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I tried this out but am getting an error, wrong number of arguments (1 for 0) for method setup.  Looking at the rdoc for the testcase class (<a href="http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/TestCase.html#M004534" rel="nofollow">http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/TestCase.html#M004534</a>) and setup doesn&#8217;t take any parameters.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Escape Ladder Marc</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-43</link>
		<dc:creator>Escape Ladder Marc</dc:creator>
		<pubDate>Tue, 30 Sep 2008 15:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-43</guid>
		<description>I would use an escape ladder to get out of the second floor condo I live in with my backpack containing an emergency flashlight, fire extinguisher to blind zombies with and a sleeping bag.  Then I would head out to the cleveland national forest and hide behind the waterfalls.  No zombie is getting past the crazy indians at the reservation out there.</description>
		<content:encoded><![CDATA[<p>I would use an escape ladder to get out of the second floor condo I live in with my backpack containing an emergency flashlight, fire extinguisher to blind zombies with and a sleeping bag.  Then I would head out to the cleveland national forest and hide behind the waterfalls.  No zombie is getting past the crazy indians at the reservation out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Jessica</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-42</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Wed, 24 Sep 2008 22:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-42</guid>
		<description>My zombie escape plan is that I would grab  a gun, a 22, shot gun(with bird shot), and a pellet rifle.  Along with a backpack full of about 2 weeks worth of food.  Then I would head up into my neigbors huge pine tree, and wait it out and snipe out the zombies that come down my sreet, because zombies can&#039;t climb trees.
I have another escape plan for if I was not alone.  I would obtain a vehicle and head out to my grandma&#039;s farm, head back into the woods with the guns and food, and hide out in our 16ft off the ground blind.  Zombies stay in heavily populated areas so I know the woods is a safe bet.</description>
		<content:encoded><![CDATA[<p>My zombie escape plan is that I would grab  a gun, a 22, shot gun(with bird shot), and a pellet rifle.  Along with a backpack full of about 2 weeks worth of food.  Then I would head up into my neigbors huge pine tree, and wait it out and snipe out the zombies that come down my sreet, because zombies can&#8217;t climb trees.<br />
I have another escape plan for if I was not alone.  I would obtain a vehicle and head out to my grandma&#8217;s farm, head back into the woods with the guns and food, and hide out in our 16ft off the ground blind.  Zombies stay in heavily populated areas so I know the woods is a safe bet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-33</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Sat, 12 Jul 2008 04:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-33</guid>
		<description>Hmm. Mike, I haven&#039;t heard from anyone else who said they had that problem with an undefined method &#039;setup&#039;. Please drop another note here if you find a solution.</description>
		<content:encoded><![CDATA[<p>Hmm. Mike, I haven&#8217;t heard from anyone else who said they had that problem with an undefined method &#8217;setup&#8217;. Please drop another note here if you find a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Mike Boone</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-32</link>
		<dc:creator>Mike Boone</dc:creator>
		<pubDate>Fri, 11 Jul 2008 20:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-32</guid>
		<description>Great idea.

I dropped the code into my Rails 2.0.2 app&#039;s test_helper.rb and got this error trying to run a unit test:

./test/unit/../test_helper.rb:42: undefined method `setup&#039; for Test::Unit::TestCase:Class (NoMethodError)

Anyone else seeing this?</description>
		<content:encoded><![CDATA[<p>Great idea.</p>
<p>I dropped the code into my Rails 2.0.2 app&#8217;s test_helper.rb and got this error trying to run a unit test:</p>
<p>./test/unit/../test_helper.rb:42: undefined method `setup&#8217; for Test::Unit::TestCase:Class (NoMethodError)</p>
<p>Anyone else seeing this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-31</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Fri, 04 Jul 2008 15:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-31</guid>
		<description>Thanks to Ben Mabey for that follow-up on how to do this in RSpec and to Gregg Pollack of RailsEnvy fame for pointing it out. I haven&#039;t used RSpec yet (although I&#039;m about to learn it since the team I just switched to at Intuit is using it), so I wasn&#039;t sure yet how to do my logging trick in RSpec.</description>
		<content:encoded><![CDATA[<p>Thanks to Ben Mabey for that follow-up on how to do this in RSpec and to Gregg Pollack of RailsEnvy fame for pointing it out. I haven&#8217;t used RSpec yet (although I&#8217;m about to learn it since the team I just switched to at Intuit is using it), so I wasn&#8217;t sure yet how to do my logging trick in RSpec.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Gregg Pollack</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-30</link>
		<dc:creator>Gregg Pollack</dc:creator>
		<pubDate>Fri, 04 Jul 2008 13:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-30</guid>
		<description>Ben Mabey wrote a follow up post showing how to do this in RSpec:

http://www.benmabey.com/2008/07/04/global-setup-in-rspec-or-how-to-add-logging-for-specs/

Happy July 4th!</description>
		<content:encoded><![CDATA[<p>Ben Mabey wrote a follow up post showing how to do this in RSpec:</p>
<p><a href="http://www.benmabey.com/2008/07/04/global-setup-in-rspec-or-how-to-add-logging-for-specs/" rel="nofollow">http://www.benmabey.com/2008/07/04/global-setup-in-rspec-or-how-to-add-logging-for-specs/</a></p>
<p>Happy July 4th!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by ben.send :blog &#187; Blog Archive &#187; Global Setup In RSpec or How To Add Logging For Specs</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-29</link>
		<dc:creator>ben.send :blog &#187; Blog Archive &#187; Global Setup In RSpec or How To Add Logging For Specs</dc:creator>
		<pubDate>Fri, 04 Jul 2008 08:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-29</guid>
		<description>[...] Morearty had an interesting post on how to add additional information to a rails testing log when using Test::Unit. The benefit of this is that you can quickly scan your log file when a test [...]</description>
		<content:encoded><![CDATA[<p>[...] Morearty had an interesting post on how to add additional information to a rails testing log when using Test::Unit. The benefit of this is that you can quickly scan your log file when a test [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-28</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Tue, 01 Jul 2008 05:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-28</guid>
		<description>Thanks for the tip on the webrat gem, Jason. Looks good.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip on the webrat gem, Jason. Looks good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Find tests more easily in your Rails test.log by Jason Boxman</title>
		<link>http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/#comment-27</link>
		<dc:creator>Jason Boxman</dc:creator>
		<pubDate>Tue, 01 Jul 2008 02:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=19#comment-27</guid>
		<description>Excellent.  I was just about to dig into that myself.  I am using shoulda and webrat and running through a bunch of controllers to verify they all status 200.  Now I can more easily spot which one failed and how.  Check out the webrat gem if you haven&#039;t yet -- it&#039;s great!</description>
		<content:encoded><![CDATA[<p>Excellent.  I was just about to dig into that myself.  I am using shoulda and webrat and running through a bunch of controllers to verify they all status 200.  Now I can more easily spot which one failed and how.  Check out the webrat gem if you haven&#8217;t yet &#8212; it&#8217;s great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by phx</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-21</link>
		<dc:creator>phx</dc:creator>
		<pubDate>Mon, 02 Jun 2008 07:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-21</guid>
		<description>Hey Brian,

i come to the same conclusion as you. Seems not to be working right now with NetBeans 6.1.

Perhaps somebody else figure out an soloution.

I keep watching the comments :)</description>
		<content:encoded><![CDATA[<p>Hey Brian,</p>
<p>i come to the same conclusion as you. Seems not to be working right now with NetBeans 6.1.</p>
<p>Perhaps somebody else figure out an soloution.</p>
<p>I keep watching the comments :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-20</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Wed, 28 May 2008 17:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-20</guid>
		<description>phx, I just realized that when you said &quot;I&#039;m using NetBeans&quot; you meant you are trying to get the response time to show when running Mongrel from within NetBeans. I have not yet tried doing that, although I agree it would be nice to do. 

What I&#039;ve gotten working is running mongrel_rails from the command line.

When I run from within NetBeans I don&#039;t get to see the response time on my pages. If you do figure out how to do that, it would be nice if you could post the solution as a comment here for others to see. From what I&#039;ve seen so far of NetBeans&#039; Rails integration, it looks like it doesn&#039;t currently have the flexibility to override how it runs the server.</description>
		<content:encoded><![CDATA[<p>phx, I just realized that when you said &#8220;I&#8217;m using NetBeans&#8221; you meant you are trying to get the response time to show when running Mongrel from within NetBeans. I have not yet tried doing that, although I agree it would be nice to do. </p>
<p>What I&#8217;ve gotten working is running mongrel_rails from the command line.</p>
<p>When I run from within NetBeans I don&#8217;t get to see the response time on my pages. If you do figure out how to do that, it would be nice if you could post the solution as a comment here for others to see. From what I&#8217;ve seen so far of NetBeans&#8217; Rails integration, it looks like it doesn&#8217;t currently have the flexibility to override how it runs the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by hemanth</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-19</link>
		<dc:creator>hemanth</dc:creator>
		<pubDate>Wed, 28 May 2008 06:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-19</guid>
		<description>Brian,

  thanks a lot Brian.</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>  thanks a lot Brian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by phx</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-18</link>
		<dc:creator>phx</dc:creator>
		<pubDate>Wed, 28 May 2008 06:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-18</guid>
		<description>Thanks for your reply!

I just created the http_handlers folder and drop the benchmark_filter.rb into it, without success :)

But i suppose that my parameters: &quot;-S lib/http_handlers/benchmark_filter.rb&quot; are not at the right place for the NetBeans build-in Mongrel Server.

I googled this wiki entry: http://wiki.netbeans.org/FaqRailsMongrel and write ARGV+=%w(mongrel_rails start -S lib/http_handlers/benchmark_filter.rb) at the end of scripts/server File, but still not working.</description>
		<content:encoded><![CDATA[<p>Thanks for your reply!</p>
<p>I just created the http_handlers folder and drop the benchmark_filter.rb into it, without success :)</p>
<p>But i suppose that my parameters: &#8220;-S lib/http_handlers/benchmark_filter.rb&#8221; are not at the right place for the NetBeans build-in Mongrel Server.</p>
<p>I googled this wiki entry: <a href="http://wiki.netbeans.org/FaqRailsMongrel" rel="nofollow">http://wiki.netbeans.org/FaqRailsMongrel</a> and write ARGV+=%w(mongrel_rails start -S lib/http_handlers/benchmark_filter.rb) at the end of scripts/server File, but still not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-17</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Wed, 28 May 2008 06:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-17</guid>
		<description>Good question, phx. I&#039;m not sure if there&#039;s an &quot;approved&quot; place to put Mongrel filters. I placed it in a subfolder I called http_handlers in my Rails lib folder. Not in the Mongrel lib folder.</description>
		<content:encoded><![CDATA[<p>Good question, phx. I&#8217;m not sure if there&#8217;s an &#8220;approved&#8221; place to put Mongrel filters. I placed it in a subfolder I called http_handlers in my Rails lib folder. Not in the Mongrel lib folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by phx</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-16</link>
		<dc:creator>phx</dc:creator>
		<pubDate>Wed, 28 May 2008 06:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-16</guid>
		<description>Hey Brian, thanks for your post, im looking for this feature for a while, but have a few questions.

Where should i put the benchmark_filter.rb?
(In the Rails App Lib Folder or in the Mongrel Lib Folder?)
Im using NetBeans 6.1.


Sorry,  but im really new to the whole rails stuff.</description>
		<content:encoded><![CDATA[<p>Hey Brian, thanks for your post, im looking for this feature for a while, but have a few questions.</p>
<p>Where should i put the benchmark_filter.rb?<br />
(In the Rails App Lib Folder or in the Mongrel Lib Folder?)<br />
Im using NetBeans 6.1.</p>
<p>Sorry,  but im really new to the whole rails stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-15</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Tue, 27 May 2008 15:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-15</guid>
		<description>Hemanth,

I don&#039;t know of a way to access the Rails ROOT_PATH from inside the BenchmarkFilter class because BenchmarkFilter is a Mongrel filter so it&#039;s one level above Rails. It&#039;s not running inside Rails so it doesn&#039;t have access to the Rails environment.

The RailsHandler class, which is part of Mongrel, is what passes requests on to Rails. Maybe if you take a close look at that class you&#039;ll find an answer to your question.</description>
		<content:encoded><![CDATA[<p>Hemanth,</p>
<p>I don&#8217;t know of a way to access the Rails ROOT_PATH from inside the BenchmarkFilter class because BenchmarkFilter is a Mongrel filter so it&#8217;s one level above Rails. It&#8217;s not running inside Rails so it doesn&#8217;t have access to the Rails environment.</p>
<p>The RailsHandler class, which is part of Mongrel, is what passes requests on to Rails. Maybe if you take a close look at that class you&#8217;ll find an answer to your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Show Response Time in a Rails Page with Mongrel by hemanth</title>
		<link>http://bmorearty.wordpress.com/2008/05/21/how-to-show-response-time-in-a-rails-page-with-mongrel/#comment-14</link>
		<dc:creator>hemanth</dc:creator>
		<pubDate>Tue, 27 May 2008 12:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=9#comment-14</guid>
		<description>hi Brian,

  i tried to access the rails ROOT_PATH from inside the BenchmarkFilter class
  but its returning the handler.rb&#039;s path.

  how should i get the rails ROOT_PATH.


HEMANTH</description>
		<content:encoded><![CDATA[<p>hi Brian,</p>
<p>  i tried to access the rails ROOT_PATH from inside the BenchmarkFilter class<br />
  but its returning the handler.rb&#8217;s path.</p>
<p>  how should i get the rails ROOT_PATH.</p>
<p>HEMANTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-8</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Tue, 06 May 2008 14:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-8</guid>
		<description>Great question, Rashantha. I assume you mean in a Rails View. The trick is to use %=, not %. Here&#039;s an example:

&lt;code&gt;&lt;%=
&#160;&#160;case @results
&#160;&#160;when nil then &quot;No results&quot;
&#160;&#160;else @results.join &quot;, &quot;
&#160;&#160;end
%&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Great question, Rashantha. I assume you mean in a Rails View. The trick is to use %=, not %. Here&#8217;s an example:</p>
<p><code>&lt;%=<br />
&nbsp;&nbsp;case @results<br />
&nbsp;&nbsp;when nil then "No results"<br />
&nbsp;&nbsp;else @results.join ", "<br />
&nbsp;&nbsp;end<br />
%&gt;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by rashantha</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-7</link>
		<dc:creator>rashantha</dc:creator>
		<pubDate>Mon, 05 May 2008 19:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-7</guid>
		<description>can you use a case in a view? if so how?</description>
		<content:encoded><![CDATA[<p>can you use a case in a view? if so how?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to write case (switch) statements in Ruby by Anton</title>
		<link>http://bmorearty.wordpress.com/2008/04/15/how-to-write-case-switch-statements-in-ruby/#comment-6</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Sat, 19 Apr 2008 03:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=5#comment-6</guid>
		<description>Super! I just find this info yesterday. Very useful, thank you!</description>
		<content:encoded><![CDATA[<p>Super! I just find this info yesterday. Very useful, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Lee</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-5</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Fri, 18 Apr 2008 10:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-5</guid>
		<description>Hide in the shopping mail with a helipad on top? :)</description>
		<content:encoded><![CDATA[<p>Hide in the shopping mail with a helipad on top? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Brian Morearty</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-3</link>
		<dc:creator>Brian Morearty</dc:creator>
		<pubDate>Wed, 16 Apr 2008 21:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-3</guid>
		<description>Oh yeah. I forgot. I always get Michael Jackson mixed up with RiverDance.

The rest of us appreciate the WHOO HOOOs so we&#039;ll know it&#039;s time to grab our flame throwers.</description>
		<content:encoded><![CDATA[<p>Oh yeah. I forgot. I always get Michael Jackson mixed up with RiverDance.</p>
<p>The rest of us appreciate the WHOO HOOOs so we&#8217;ll know it&#8217;s time to grab our flame throwers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is your Zombie Escape Plan? by Dan</title>
		<link>http://bmorearty.wordpress.com/2008/04/16/what-is-your-zombie-escape-plan/#comment-2</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 16 Apr 2008 15:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://bmorearty.wordpress.com/?p=8#comment-2</guid>
		<description>Actually I think it was &quot;I would dance Michael Jackson&#039;s Thriller&quot; not a jig, but close enough.  And well placed WHOO HOOOs to alert others of the pending Zombie Invasion. ;-D</description>
		<content:encoded><![CDATA[<p>Actually I think it was &#8220;I would dance Michael Jackson&#8217;s Thriller&#8221; not a jig, but close enough.  And well placed WHOO HOOOs to alert others of the pending Zombie Invasion. ;-D</p>
]]></content:encoded>
	</item>
</channel>
</rss>
