Erik Hanson's blog



Erik HansonErik Hanson
Standup 2011-03-04: Beter Later Than Neverer
edit Posted by Erik Hanson on Sunday March 06, 2011 at 07:52PM

Ask for Help

"window.onhashchange doesn't work in Android's version of WebKit?"

The event exists, but it doesn't ever get fired. Apparently this also happens in Mobile Safari. Does anyone know how to get it to work?

"What's the latest and greatest replacement for acts_as_list?"

Apparently there's no fabulous replacement for acts_as_list.

Interesting Things

Erik HansonErik Hanson
Standup 2011-03-02: Better Late Than Never
edit Posted by Erik Hanson on Sunday March 06, 2011 at 07:37PM

Ask for Help

"'Teamcity formatter missing' error?"

Any ideas how to work around a "Teamcity formatter error" message when running specs (using RSpec 2) in RubyMine?

" Paperclip breaks when a filename contains a '#' character"

Apparently this has been fixed but not released?

Interesting Things

  • Selenium Conference is taking place in San Francisco on April 4-6.

  • MongoDB apparently stores pre-epoch dates as far-future dates and converts them back from future to past dates automatically. However, it does not convert them when searching or sorting.

Erik HansonErik Hanson
Standup 2011-03-01: Spork! Spork! Spork!
edit Posted by Erik Hanson on Tuesday March 01, 2011 at 05:50PM

Ask for Help

"Has anyone else had their Selenium tests break after upgrading from rails 2.3.8 to 2.3.11?"

One team was using Rack 1.1.0, Mongrel 1.1.5 and Rails 2.3.8. When they upgraded to Rails 2.3.11, their Selenium tests started failing. After some investigation they found this commit which they used to create a monkeypatch for Rack 1.1.0:

# Back-porting this patch: https://github.com/rack/rack/commit/f6f3c60938ea3b08f3292a2480e6753c293584e5
module Rack
  module Utils
    class HeaderHash < Hash
      def [](k)
        super(@names[k]) if @names[k]
        super(@names[k.downcase])
      end
    end
  end
end

Anyone have a better solution?

"Slower test suite with Spork?"

Spork can speed up the start-up time of your test suite, but has anyone seen it slow down the overall test run? One Pivot was seeing a 10% slowdown in overall suite speed.

Interesting Things