Joe Moore's blog
Standup 07/19/2008
Interesting Things

Watch out for Firebug 1.1.0b12 for Firefox 2! It is The Evil. Several hours have been wasted as teams try to figure out what they are doing wrong ("Why are all of the fonts twice as big?!?!") only to find out that this version of Firebug was the culprit.
To fix:
- Uninstall Firebug from the Tools - Add-ons menu
- Restart Firefox. Do not skip this step!
- Install Firebug 1.0.5
Standup Free Slurpee! 07/11/2008
Standup fun-stuff edition!
Interesting Things
- Free Slurpee Day! Head to 711 Market Street (oh yeah) for a brain freeze.
- Where are all of the Pivots? Hmmm...
- Pie and brownies for breakfast!
- Pivot Jonathan's wife is having an art opening. Check it out the Glass Cafe at Public Glass, Saturday, July 12, 6-9pm.

- Pivot David band Gosta Berling is playing at Mr. Smith's at 7th. and Market St. on 07/17.
Ask for Help
"Sometimes
find(:first, :order => 'id DESC')returns the records in the wrong order!"
Rails 2.0.2. Roughly 1 out of every 15 times, the first id is not the first one returned. Very very strange.
Standup 07/10/2008
Update 07/11/2008: A fix has been committed for the :named_scope_-column-collision issue.
Interesting Things
- In Rails 2.0.2, we have seen a strange behavior when you have a
belongs_toassociation declared on an ActiveRecord class, but the table does not have a foreign key for that relationship. Within a session, everything appears normal. The child object will still be saved, the parent object can even be reloaded. But by the next session, the child object is in the database, but cannot be retrieved. - When using
named_scope, adding a:joinsoption will "mix-in" all of the attributes from that join table into your retrieved object, potentially overwriting any colliding attributes (includingid... ouch!). There was consensus that this was a valuable feature, when used "properly". Adding:selectoption can avoid this, or use:include. - We ran into an issue when using the JS Routes plugin in combination with Rails' asset packaging. When asset packaging is invoked using
<%= javascript_include_tag 'named_routes', 'xxx', :cache => true %>thenamed_routes.jsfile usually has not been generated, and application crashes at startup. Solution: we created a rake task to generate thenamed_routes.jsfile and run that as part of our deploy process.
Ask for Help
"Why did my JS
respond_toblock suddenly start rendering the HTML template instead of the RJS template?"
Rails 2.0.2; controller, action, respond_to block all work as expected. Just wrong file gets rendered. They fixed the problem by adding an explicit call to render but this should not be necessary. Suggestion is to move from the template.rhtml naming scheme to template.mime-type.render-engine scheme and see if it is fixed.
Standup 07/09/2008
Interesting Things
- This weeks brown-bag discussion is on Haml.
- Several of our projects will update Rails 2.1 Time Zone support. Reports coming soon.
Ask for Help
"When monit kills our Mongrels, our in-progress transactions are committed, not rolled-back!"
This is with Rails 1.99. Has anyone heard of this?
Standup 07/08/2008
Interesting Things
- Are you a OS X guru? Pivotal Labs is looking for a OS X Desktop Support tech. If you are interested, contact us!
Ask for Help
"Does anyone have suggestions for debugging Safari-specific JavaScript problems?"
Suggestion: download the nightly build of Safari/WebKit, which has a real JavaScript debugging tool.
"After switching from Selenium RC Fu to Polonium, our Selenium tests run extremely slow."
The affect is similar to Selenium's slow-mode.










