I am Paul Wilson; Mere Complexities Limited, sells my consulting, coaching, and coding services. I am passionate about Agile, particularly Test Driven Development.


Web apps on the desktop

First Joyent's Slingshot puts Rails on the desktop. Now we get DjangoKit (via Gruber / Daring Fireball). I'm sceptical: I'm thinking special adapter kits for using hammers as screwdrivers.


Aspirated Fa

Andy's much missed Unicode Character of the Day postings are back. Hooray!


Campfire chat

Paul W.
Do you read the 37 Signals blog?
Paul W.
They post bits from their chats
Paul W.
they sound cool, witty, and exciting
Paul W.
wish I was them
Ian E.
I do
Ian E.
I think they only post the good bits
Ian E.
and I suspect they're heavily edited
Ian E.
or maybe I'm just bitter
Ian E.
that I'm not them
Ian E.
Maybe you should try editing this chat and putting it on your blog
Paul W.
The poor man's 37 Signals
Paul W.
2/3 of a Signal
Ian E.
something to aim for
Ian E.
ha
Ian E.
see if you can get a whole signal out for April
Paul W.
Maybe I'll just put that bit up :-)
Mar 15
6:20 PM
Ian E.
arf
Ian E.
right, I'll try and think of cool and witty things to say on Campfire tomorrow
Ian E.
and you can spend all weekend
Ian E.
editing
Ian E.
thme
Ian E.
them into something postable
Ian E.
which might not be long enough

37 signals blog

Campfire


Visual Studio – on the MacBook

visual studio running 'within OS X'

Isn’t Parallels lovely!


Edgy Rails Circular Silliness

I’ve been using Rails Edge on a project for no particular reason. Today I did an svn update and things stopped working.

A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :secret => “some secret phrase” } in config/environment.rb

No problem – I followed those instructions and added the option to config/environment.rb. Then I got another problem.

ArgumentError (`name’ required): /vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb:44:in `initialize’ /vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:129:in `write_cookie’

All I could find was this post. The resolution was to update everything, create a new project, and copy code in. I couldn’t be bothered with this, so I unfroze and went to gem rails (1.2.2). Now neither Mongrel or Webrick will start.

/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:328:in `send’: undefined method `session=’ for ActionController::Base:Class (NoMethodError)

Aaargh! I googled for the exception and found nothing. Eventually I check out initializer.rb and realise what’s happening. From config/environment.rb I remove

config.action_controller.session = { :secret => “some secret phrase” }

Problem gone.

Lessons? When I give up on one way of fixing a problem, completely back out of that fix before trying another.


String === “hello” => true

My first OO language was Eiffel – taught on my MSc conversion course. It is so statically typed that it squeaks. I also remember it described as a Reduced Instruction Set Language: for instance, there was only one loop construct.

Ruby ain’t Eiffel; it’s a lot more fun, though.


Jings, crivvens!

Oor Wullie

There's a Scots Language Wikipedia. Help me Boab!!

BTW, in case you've ever wondered about the Scottish Parliament, "ye are walcome tae visit the Pairlament tae hae a keek roon or find oot aboot whit wey the Pairlament warks".


subscribe here subscribe

About me

picture

Conference

Scotland on Rails Organiser

Previous blog posts

Blog archive

Other links: