<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nobody Listens Anyway &#187; bugs</title>
	<atom:link href="http://www.justinball.com/tag/bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinball.com</link>
	<description>Life is an optimization issue</description>
	<lastBuildDate>Sat, 31 Jul 2010 16:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
		<item>
		<title>ERROR:  While executing gem (ArgumentError)  Illformed requirement</title>
		<link>http://www.justinball.com/2008/10/04/error-while-executing-gem-argumenterror-illformed-requirement/</link>
		<comments>http://www.justinball.com/2008/10/04/error-while-executing-gem-argumenterror-illformed-requirement/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 19:56:54 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[morph]]></category>
		<category><![CDATA[morph exchange]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=784</guid>
		<description><![CDATA[I like to use http://mor.ph to deploy my applications because of its simplicity.  The other nice thing is that they give you free developer space so if you are just getting an application up and running or just need to show it to a client you can do so without having to pay a [...]]]></description>
			<content:encoded><![CDATA[<p>I like to use <a href="http://mor.ph">http://mor.ph</a> to deploy my applications because of its simplicity.  The other nice thing is that they give you free developer space so if you are just getting an application up and running or just need to show it to a client you can do so without having to pay a bunch of money and spend a bunch of time setting up a VPS.</p>
<p>There are a few issues now and then.  Morph has a large number of gems installed by default but occasionally I use one that they don't have.  Today I ran into this problem.  At first I thought no big deal I can just do a <strong>rake gems:unpack</strong> and drop the gems into the project and then deploy again.  </p>
<p>No go.</p>
<p>Instead I get the following error:</p>
<pre><strong>ERROR:  While executing gem ... (ArgumentError)
    Illformed requirement ["\"= 2.2.2\""]</strong></pre>
<p>Turns out there is current a bug in Rails 2.1.0 and 2.2.0 that causes the unpack to barf if you specify a version number.  Here's the link:<br />
<a href="http://rails.lighthouseapp.com/projects/8994/tickets/1003-rake-gemsunpack-version-handling-broken">http://rails.lighthouseapp.com/projects/8994/tickets/1003-rake-gemsunpack-version-handling-broken</a></p>
<p>Since I am using the latest version of all the gems, my solution was to temporarily remove the version numbers from environment.rb. </p>
<p>So this<br />
  <strong>config.gem 'ruby-openid', :lib => 'openid', :version => '2.1.2'</strong><br />
becomes this<br />
  <strong>config.gem 'ruby-openid', :lib => 'openid'</strong></p>
<p>Then I did:<br />
 <strong>rake gems:unpack</strong><br />
and everything worked fine.  </p>
<p>Do remember to put the version numbers back when you are done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2008/10/04/error-while-executing-gem-argumenterror-illformed-requirement/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>acts_as_state_machine &#8211; state is always nil</title>
		<link>http://www.justinball.com/2008/07/26/acts_as_state_machine-state-is-always-nil/</link>
		<comments>http://www.justinball.com/2008/07/26/acts_as_state_machine-state-is-always-nil/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 06:07:32 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[acts_as_state_machine]]></category>
		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=588</guid>
		<description><![CDATA[If you are using the acts_as_state_machine plugin to manage the state of your object keep this in mind:
If you are going to have an object like an order or something similar that likely has a field state_id to relate in a geographic state then you need to be sure to rename the column that acts_as_state_machine [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using the acts_as_state_machine plugin to manage the state of your object keep this in mind:<br />
If you are going to have an object like an order or something similar that likely has a field state_id to relate in a geographic state then you need to be sure to rename the column that acts_as_state_machine plugin uses thus:</p>
<p><code><br />
acts_as_state_machine :initial => :new, :column => :mode<br />
</code></p>
<p>Then you can get your object's state thus:</p>
<p><code><br />
obj.mode<br />
</code></p>
<p>If you don't follow these steps ActiveRecord will override acts_as_state_machine and try to give you the geographic state (Utah, Idaho, etc) instead of the object state (new, edit, tired, etc).  (In my case the value was always nil no matter how many times I tried to obj.next! to transition the states of my object.  You will cry and scream and be in a very bad mood for a long time if you forget this fact.</p>
<p>Here's more info on the <a href="http://rails.aizatto.com/2007/05/24/ruby-on-rails-finite-state-machine-plugin-acts_as_state_machine/">acts_as_state_machine plugin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2008/07/26/acts_as_state_machine-state-is-always-nil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shoulda Doesn&#8217;t like &#8216;Status&#8217;</title>
		<link>http://www.justinball.com/2008/07/25/shoulda-doesnt-like-status/</link>
		<comments>http://www.justinball.com/2008/07/25/shoulda-doesnt-like-status/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 22:41:31 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[shoulda]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=586</guid>
		<description><![CDATA[One of the models in a project I am working on right now ends in 'status'.  Rails handles that just find but in my tests I started noticing an odd error:

test: Lookup should belong_to lookup_status. (LookupTest):
NameError: uninitialized constant LookupStatu

The Shoulda test looks like this:

   should_belong_to :lookup_status

Nothing to complicated there.  Should recognizes [...]]]></description>
			<content:encoded><![CDATA[<p>One of the models in a project I am working on right now ends in 'status'.  Rails handles that just find but in my tests I started noticing an odd error:</p>
<p><code><br />
test: Lookup should belong_to lookup_status. (LookupTest):<br />
NameError: uninitialized constant LookupStatu<br />
</code></p>
<p>The Shoulda test looks like this:<br />
<code><br />
   should_belong_to :lookup_status<br />
</code></p>
<p>Nothing to complicated there.  Should recognizes the relationship just find but when it tries to find a class it goes looking for LookupStatu.  I fixed this by adding the the class name to the relationship thus:</p>
<p><code><br />
belongs_to :lookup_status, :class_name => 'LookupStatus'<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2008/07/25/shoulda-doesnt-like-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActiveSalesforce and Ruby on Rails &gt; 2.1</title>
		<link>http://www.justinball.com/2008/07/09/activesalesforce-and-ruby-on-rails-21/</link>
		<comments>http://www.justinball.com/2008/07/09/activesalesforce-and-ruby-on-rails-21/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 21:58:10 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[activesalesforce]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[helps]]></category>
		<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=572</guid>
		<description><![CDATA[We have to do an integration with Saleforce for a Rails project we are working on.  I keep getting this error:
The :dependent option expects either :destroy or :delete (:nullify)
I posted to the Salesforce forums and didn't get any response so I did some more investigation.  Turns out there is a bug and a [...]]]></description>
			<content:encoded><![CDATA[<p>We have to do an integration with Saleforce for a Rails project we are working on.  I keep getting this error:</p>
<p>The :dependent option expects either :destroy or :delete (:nullify)</p>
<p>I <a href="http://forums.sforce.com/sforce/board/message?board.id=PerlDevelopment&message.id=3279">posted to the Salesforce forums</a> and didn't get any response so I did some more investigation.  Turns out there is a bug and a patch:</p>
<p>http://rubyforge.org/tracker/index.php?func=detail&aid=19960&group_id=1201&atid=4729</p>
<p>Lucky for me the latest version of Rails has a feature that unpacks all of your gems into your vendor directory.  I unpacked activesalesforce, made the code changes by applying the patch (which just removes :dependent => :nullify) and viola.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2008/07/09/activesalesforce-and-ruby-on-rails-21/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Kill Internet Explorer With CSS</title>
		<link>http://www.justinball.com/2008/02/27/kill-internet-explorer-with-css/</link>
		<comments>http://www.justinball.com/2008/02/27/kill-internet-explorer-with-css/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 04:29:15 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[House Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.justinball.com/?p=347</guid>
		<description><![CDATA[We got a call today at The Plan Collection that was interesting.  A guy was trying to print out one of our pages.  Each time he tried his browser would crash.  At first I thought, "that is just nuts.  Html can't crash your browser."  Then Jake tried it and it [...]]]></description>
			<content:encoded><![CDATA[<p>We got a call today at The Plan Collection that was interesting.  A guy was trying to print out one of our pages.  Each time he tried his browser would crash.  At first I thought, "that is just nuts.  Html can't crash your browser."  Then Jake tried it and it crashed Internet Explorer.  Then I tried it and sure enough whenever you try to print a page on <a href="http://www.theplancollection.com">ThePlanCollection.com</a> your browser will crash.  </p>
<p>I decide to investigate and sure enough Google comes through.  <a href="http://meyerweb.com/eric/thoughts/2005/08/26/when-printing-kills/">Specific tags in your html code will cause Internet Explorer to crash when you try to print</a>.</p>
<p>That same website lists a couple of other <a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/">nasty Internet</a> <a href="http://meyerweb.com/eric/thoughts/2004/09/16/when-browsers-attack/">Explorer bugs</a>.  So yes you have to be careful when you write your html code.  I would have never guessed that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2008/02/27/kill-internet-explorer-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
