Not in code

Software is about people

Archive for the ‘Uncategorized’ Category

Installing Ruby 1.8.6 using MacPorts

without comments

Do this:
sudo port install ruby186

Because this:
sudo port install ruby

… will install Ruby 1.8.7

And don’t forget:
sudo port install rb-rubygems

And if you’re trying to get Ruby with MySQL going read this.

Written by hiremaga

June 19, 2009 at 12:16 pm

Posted in Uncategorized

Tagged with , ,

I’ve moved to San Francisco

with 2 comments

I moved here 2 weeks ago, on the 1st of November, to work for the awesome Pivotal Labs and it’s been a really good start.

I’ve found a nice apartment in SOMA with a really cool roommate. The apartment even has a view of sorts of the Bay Bridge and is about a 20 minute walk to work. This means I’m easily getting my 10000 steps a day.

My first week at Pivotal was spent in the Tracker team, the electronic backbone of Pivotal’s XP flavored methodology (you can also use Tracker for free).

The team has been really great – they’re all really strong developers, quietly confident but balanced, focused and pragmatic. This seems to consistent with everyone I’ve met at Pivotal. Everyone has been very warm and welcoming, and they all seem like well adjusted individuals – a good sign.

Good times.

Written by hiremaga

November 17, 2008 at 8:06 am

Testing instance methods in a Module with Object.extend()

without comments

A common type of mixin I’ve encountered involves a Module with instance methods which is included into a Class.

Writing an orthogonal test for a target Class is easy enough, you simply mock/stub any methods the Module provides.

Testing the Module elegantly however is less obvious, atleast it wasn’t obvious to me.

One approach I’ve used is to create a fake class for the test, include the Module and finally instantiate this for the test. But there’s the issue of testing the Module’s interaction with the including Class. For this you could partially mock/stub the test class instance, but there’s a simpler approach that avoids the test class altogether: create an ordinary rSpec mock instance and extend it with the Module.

Written by hiremaga

June 7, 2008 at 4:15 am

Posted in Uncategorized

Tagged with ,

Use before reuse

without comments

Please.

Written by hiremaga

April 12, 2008 at 10:17 pm

Posted in Uncategorized

Tagged with

Bored?

without comments

Enjoy watching a nerd talk about software. (Thanks for the link Mat K)

Hooked? The video not enough? Need more now? Why not join the coolest group on Facebook.

Written by hiremaga

October 30, 2007 at 9:00 pm

Posted in Uncategorized

Tagged with ,

She’s finally home

without comments

My cryptic post might finally make some sense now, well atleast to a few.

Written by hiremaga

October 12, 2007 at 9:11 pm

Posted in Uncategorized

Tagged with

675 => 3 > 4

without comments

’nuff said.

Written by hiremaga

October 9, 2007 at 8:11 pm

Posted in Uncategorized

Tagged with

147

without comments

A perfect combination – a lot of skill and a little luck. Enjoy.

Written by hiremaga

September 15, 2007 at 3:10 pm

Posted in Uncategorized

Tagged with , ,

What he said

without comments

Written by hiremaga

July 16, 2007 at 9:30 pm

Posted in Uncategorized

Tagged with

Embrace life, like a Mayfly

without comments

I love this ad, despite its obvious corniness. And hey, I even remembered that it was for Vodafone!

Aussies, you could skip this video since you’ve probably see this on TV already.

Wikipedia has a less flattering description of Mayflies but I’m not going to let this ruin the ad for me :)

Written by hiremaga

July 10, 2007 at 8:00 pm

Posted in Uncategorized

Tagged with , ,