Christopher Meiklejohn

Software Developer in Boston, Massachusetts

"Doctor Who" Doctor Who Ride in Dalek at BBC Shop

http://media.venda.com/bbcshop/ebiz/bbc/images/video_samples/kap_daleks_treai..." />

Could this be the best thing ever; I think so.

In the Spotlight with Corey Haines on Vimeo

Inspiring and really truthful talk on testing by Corey Haines.

SpacialDB

Up and comer; integrates with Heroku, lots of promise.

Yammer on Linux; with Wine, it works!

If you are a Yammer user, you probably already know that Gwibber doesn't have support quite yet for it, and the Linux version of Yammer hangs, or crashes, when you login or attempt to post.

Since I need Yammer on a daily basis for communication with co-workers about deployments and such, I needed to find a way to get this working under Linux.

The solution, wine.  

To get this going, first download the Windows 32-bit Adobe AIR installer and install.  Once that's complete, download the Yammer AIR client (Yammer.air), and navigate to C:\Program Files\Common Files\Adobe Air\VERSIONNUMBER\ and run Adobe AIR Application Installer.  Select the Yammer.air file, install, and you are good to go.  Works flawlessly.

 

T-Mobile G2

Got my HTC G2 yesterday from Radio Shack (3 days early!) It's been
great so far! I'll keep you posted.

Mongo, Mongo_Mapper and Mongo_Session_Store in Rails 3

In getting this to work, I had to figure out just the right sequence and requirements in my Gemfile. Here it is for everyone:

# Rails
gem 'rails', "3.0.0"

# Mongo
gem 'mongo'
gem 'bson_ext'
gem 'mongo_mapper', :require => 'mongo_mapper'
gem 'mongo_session_store', :git => 'git://github.com/nmerouze/mongo_session_store.git'

Then just change your session_store to :mongo_session_store.

rails 3 is out...forms broken?

I was just on master a few hours ago and now I've pinned to rails
3.0.0 and form_for is broken? Anyone else see this?

Authlogic in Rails 3

In the process of hacking authlogic to work with rails 3, I discovered a little gem that I thought I’d pass along:

It appears that the activerecord key method, which returns a primary key for a specific object, has been renamed to to_key, so the code needs to be adjusted accordingly:

http://github.com/cmeiklejohn/authlogic/commit/749c46c

def to_key
  new_record? ? nil : [self.send(self.class.primary_key)]
end

Here’s my mostly working port — authentication works, but the generators are broken. Should be sufficient for getting authlogic running on an existing rails 2 app you are porting to rails 3, just not a new app.

http://github.com/cmeiklejohn/authlogic

Filed under  //   rails   rails3