<?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/"
		>
<channel>
	<title>Comments for Jtanium's Notebook</title>
	<atom:link href="http://www.jtanium.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jtanium.com</link>
	<description>I jot things down, in hopes of finding them later...</description>
	<lastBuildDate>Thu, 24 Jun 2010 15:56:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>Comment on Rails Migrations: Decimal, Precision, and Scale by skiz</title>
		<link>http://www.jtanium.com/2009/10/06/rails-migrations-decimal-precision-and-scale/comment-page-1/#comment-650</link>
		<dc:creator>skiz</dc:creator>
		<pubDate>Thu, 24 Jun 2010 15:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/2009/10/06/rails-migrations-decimal-precision-and-scale/#comment-650</guid>
		<description>I have a hard time remembering these options, and I always end up here.  Thanks :)</description>
		<content:encoded><![CDATA[<p>I have a hard time remembering these options, and I always end up here.  Thanks <img src='https://www.jtanium.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Queue Wait Spikes with Passenger and NewRelic by jtanium</title>
		<link>http://www.jtanium.com/2010/05/17/queue-wait-spikes-with-passenger-and-newrelic/comment-page-1/#comment-625</link>
		<dc:creator>jtanium</dc:creator>
		<pubDate>Wed, 09 Jun 2010 20:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/?p=206#comment-625</guid>
		<description>No I haven&#039;t. If there was a &quot;minimum pool size&quot; directive for Passenger, then you could crank it up so there would always be X number of threads running and you wouldn&#039;t get the spikes very often.

I suppose if you don&#039;t care about resources, you could up the PassengerPoolIdleTime and PassengerMaxRequests directives so your threads run longer, that would decrease the need for Passenger to spawn a new thread.  I might actually give that a try.</description>
		<content:encoded><![CDATA[<p>No I haven&#8217;t. If there was a &#8220;minimum pool size&#8221; directive for Passenger, then you could crank it up so there would always be X number of threads running and you wouldn&#8217;t get the spikes very often.</p>
<p>I suppose if you don&#8217;t care about resources, you could up the PassengerPoolIdleTime and PassengerMaxRequests directives so your threads run longer, that would decrease the need for Passenger to spawn a new thread.  I might actually give that a try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Queue Wait Spikes with Passenger and NewRelic by Nicolás Mery</title>
		<link>http://www.jtanium.com/2010/05/17/queue-wait-spikes-with-passenger-and-newrelic/comment-page-1/#comment-624</link>
		<dc:creator>Nicolás Mery</dc:creator>
		<pubDate>Wed, 09 Jun 2010 19:46:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/?p=206#comment-624</guid>
		<description>Hi, have you resolved this issue? I too have this &quot;queue spikes&quot; on my newrelic logs

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, have you resolved this issue? I too have this &#8220;queue spikes&#8221; on my newrelic logs</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Native Bindings with Ruby Enterprise Edition by Roy</title>
		<link>http://www.jtanium.com/2008/10/13/using-native-bindings-with-ruby-enterprise-edition/comment-page-1/#comment-602</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Sun, 16 May 2010 08:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/blog/?p=63#comment-602</guid>
		<description>I had the exact same problem and this helped me out a lot. Thanks!</description>
		<content:encoded><![CDATA[<p>I had the exact same problem and this helped me out a lot. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ActiveMerchant to Process Credit Cards with LinkPoint by scott</title>
		<link>http://www.jtanium.com/2007/02/18/using-activemerchant-to-process-credit-cards-with-linkpoint/comment-page-1/#comment-581</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Thu, 22 Apr 2010 23:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://jtanium.dsl.xmission.com/blog/?p=27#comment-581</guid>
		<description>thanks for this. very handy!</description>
		<content:encoded><![CDATA[<p>thanks for this. very handy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Firefox Gotcha: innerHTML Strips td Tags by Andreas</title>
		<link>http://www.jtanium.com/2009/10/28/firefox-gotcha-innerhtml-strips-td-tags/comment-page-1/#comment-541</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 12 Mar 2010 20:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/?p=166#comment-541</guid>
		<description>Firefox 3.6 has the same behavoir... still!
I struggle for that problem for about 6 hours until I found your post ;)</description>
		<content:encoded><![CDATA[<p>Firefox 3.6 has the same behavoir&#8230; still!<br />
I struggle for that problem for about 6 hours until I found your post <img src='https://www.jtanium.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Expected response to be a &lt;:redirect&gt;, but was &lt;0&gt; by Doug</title>
		<link>http://www.jtanium.com/2009/11/20/expected-response-to-be-a-redirect-but-was-0/comment-page-1/#comment-532</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Thu, 04 Mar 2010 15:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/2009/11/20/expected-response-to-be-a-but-was/#comment-532</guid>
		<description>My error was much simpler than this. My editor does auto completion. I typed &quot;p&quot;, hit ESCAPE (for the autocompletion), and got &quot;puts&quot; instead of &quot;put&quot;. So where I wanted:

put :update, :id =&gt; some_id, :some_object =&gt; { }

I had in my code:

puts :update, :id =&gt; some_id, :some_object =&gt; { }

&quot;puts&quot; of course returns no redirect.</description>
		<content:encoded><![CDATA[<p>My error was much simpler than this. My editor does auto completion. I typed &#8220;p&#8221;, hit ESCAPE (for the autocompletion), and got &#8220;puts&#8221; instead of &#8220;put&#8221;. So where I wanted:</p>
<p>put :update, :id =&gt; some_id, :some_object =&gt; { }</p>
<p>I had in my code:</p>
<p>puts :update, :id =&gt; some_id, :some_object =&gt; { }</p>
<p>&#8220;puts&#8221; of course returns no redirect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails/ActiveRecord: belongs_to :polymorphic =&gt; true by jtanium</title>
		<link>http://www.jtanium.com/2009/10/22/railsactiverecord-belongs_to-polymorphic-true/comment-page-1/#comment-421</link>
		<dc:creator>jtanium</dc:creator>
		<pubDate>Mon, 07 Dec 2009 01:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/?p=161#comment-421</guid>
		<description>Yes, in this respect has_one and has_many function similarly.  I was just trying to come up with an example to demonstrate it&#039;s use.

Now, as far as belongs_to :book, belongs_to :album, and belongs_to :movie, sure you could do that, but then when you try to use the item associated with the artwork you&#039;re going to have to do something ugly like:

if artwork.book
# do book stuff here
elsif artwork.movie
# do movie stuff here
elsif artwork.album
# do album stuff here
else
# uh oh!
end

This makes your code brittle, not to mention tedious. This polymorphic association provides you with a layer of indirection (a.k.a. abstraction) that would protect you from something such as adding another &quot;belongs_to :&quot; (e.g. :video_game).</description>
		<content:encoded><![CDATA[<p>Yes, in this respect has_one and has_many function similarly.  I was just trying to come up with an example to demonstrate it&#8217;s use.</p>
<p>Now, as far as belongs_to :book, belongs_to :album, and belongs_to :movie, sure you could do that, but then when you try to use the item associated with the artwork you&#8217;re going to have to do something ugly like:</p>
<p>if artwork.book<br />
# do book stuff here<br />
elsif artwork.movie<br />
# do movie stuff here<br />
elsif artwork.album<br />
# do album stuff here<br />
else<br />
# uh oh!<br />
end</p>
<p>This makes your code brittle, not to mention tedious. This polymorphic association provides you with a layer of indirection (a.k.a. abstraction) that would protect you from something such as adding another &#8220;belongs_to :&#8221; (e.g. :video_game).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails/ActiveRecord: belongs_to :polymorphic =&gt; true by about2flip</title>
		<link>http://www.jtanium.com/2009/10/22/railsactiverecord-belongs_to-polymorphic-true/comment-page-1/#comment-420</link>
		<dc:creator>about2flip</dc:creator>
		<pubDate>Sun, 06 Dec 2009 18:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/?p=161#comment-420</guid>
		<description>Couldn&#039;t book, album and movie has_many instead of has_one?
Also, why couldn&#039;t Artwork model belongs_to :book, belongs_to :album, belongs_to :movie

Thanks</description>
		<content:encoded><![CDATA[<p>Couldn&#8217;t book, album and movie has_many instead of has_one?<br />
Also, why couldn&#8217;t Artwork model belongs_to :book, belongs_to :album, belongs_to :movie</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Firefox Gotcha: innerHTML Strips td Tags by jtanium</title>
		<link>http://www.jtanium.com/2009/10/28/firefox-gotcha-innerhtml-strips-td-tags/comment-page-1/#comment-412</link>
		<dc:creator>jtanium</dc:creator>
		<pubDate>Thu, 29 Oct 2009 13:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtanium.com/?p=166#comment-412</guid>
		<description>Well it was my JavaScript in the first place...</description>
		<content:encoded><![CDATA[<p>Well it was my JavaScript in the first place&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
