Monthly Archives: May 2007

warning: already initialized constant OPTIONS

Posted by dansketcher on May 07, 2007
Rails / 11 Comments

Setting up my new computer now that I am settled in in London was turning out to be a right pain. I had ruby, rails, and postgresql installed, but my application was not starting.

I was getting the following error:

=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at
** Starting Rails with development environment...
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:15: warning: already initialized constant OPTIONS
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:18: undefined method `options' for []:Array (NoMethodError)
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
        from script/server:3

and lots more similar ones. I tried uninstalling Mongrel, reactivating old versions of rails, and so on. Nothing worked. A fresh rails application started ok though Searching online revealed nothing either, until I came upon a post about a gem not working on win32, and the solution was to remove that gem.


I was missing gems. I installed every one that I had on my lappy, and everthing was cheerful again. Strange that the error message (even under webrick) did not report the problem clearly. In any case, problem resolved.

London tea, disgusting me

Posted by dansketcher on May 03, 2007
Uncategorized / 2 Comments

Ever since I arrived in London, I’ve been wondering why the black tea I have made here has a horrible oily film on it.

Like the good noodle I am, I googled it, and it turns out that it’s because the water over here is so hard. When you boil water, it excites the calcium and magnesium salts in the water, which the tannins in the tea bind to as it brews. The oxygen in the air makes larger groups form that can no longer stay in solution and then separate from the water.

Why black tea and not green tea or coffee? It’s still there in green tea, but because there is less tannin in the green tea it’s pretty much invisible. Coffee beans have about half the tannin in them as tea leaves, so once again it’s still there but less visible. I think especially instant coffee would mask this effect because it 1. is soluble so may contain agents to assist this, and 2. is weaker in raw content then espresso. Also, I add milk to coffee so that probably masks it as well.

It has no flavour, and is not harmful, but it’s a bit gross and sticks to the inside of the cup. Thus, I have not made it far into the 100 bags I bought. Now, it seems I have to either boil the crap out of the water so that the salts become lime scale in the kettle, or filter the water first.

I’ll buy a filter.