A Culinary Analogy

Posted by Mike on Jun 29th, 2010

We used to build software like a crappy banana split stand. Grab the banana off the shelf (which probably is about to expire), throw on ice cream, cover it in chocolate, add some cherries, whip cream, nuts, stir it up, put a spoon in it, hand it to the customer, take their money, and [...]


Python decorators, SRP, and testability

Posted by Mike on Jun 4th, 2010

On the SRP:
For those unfamiliar with the Single Responsibility Principle (SRP), it states that there should never be more than one reason for a class to change.
That is to say: do one thing, do it well.
Decorators (not to be confused with the decorator pattern) can add behaviors or side-effects to a method, and this can [...]


Rally pairing

Posted by Mike on May 10th, 2010

Iwein Fuld posted a great article about different styles of pair programming. It’s a great post, and I encourage you to read it if you’ve tried pairing but haven’t bought in yet. His rally car analogy is spot-on.
My favorite driver is an outspoken dutch guy. He’s quick on the wheel and if he doesn’t [...]


Installing Aventail VPN (and Sun Java6) on Ubuntu 10.04

Posted by Mike on May 1st, 2010

The Aventail VPN client requires Sun Java to correctly function on Ubuntu. For whatever reason, the OpenJDK is not sufficient, and the client exhibits numerous bugs. Unfortunately, for Ubuntu 10.04 LTS, Canonical decided to move Sun Java to the partner repository. It’s no-longer apt-get-able by default.
No worries, we can easily add the [...]


Agile Auto Restoration?

Posted by Mike on May 1st, 2010

I was over at my buddy Chad’s garage again tonight tinkering with his 1958 Chevy pickup. Chad bought the truck when he turned 16 and planned to restore it and drive it all through college. Ten years later, the truck still doesn’t run. To an untrained eye, there’s little different from when he [...]


Animal pictures for baby room

Posted by Mike on Apr 20th, 2010

The wife and I are trying to pick out some pictures for the baby’s room. We can’t decide whether to go realistic or whimsical.
What works best in a nursery?


Show me the $80 million dollar Blue (#0044cc)

Posted by Mike on Mar 18th, 2010

So what’s this fancy shade of blue that made Bing so much money look like?

 

Eh. Doesn’t really do it for me as a blob of color.
How about on a link? Well, that is actually quite pleasant against a white background.
Regardless, the takeaway from the whole story isn’t that you should switch all your [...]


Baby boy gear round-up

Posted by Mike on Jan 24th, 2010

With a baby boy on the way (due in early June 2010), I decided to start looking for fun stuff for my lil dude. I thought that maybe I’d have to wait a few years to unleash him on the world, but lo and behold there’s some seriously badass gear for infants and toddlers! [...]


Browser history sniffing with Dojo

Posted by Mike on Jan 14th, 2010

Niall Kennedy posted a now-famous article about using some browser trickery to determine what websites a user on your site has visited. I’ve taken that concept and created a module that can be used with the Dojo Toolkit javascript framework.
It provides two methods that you can use in your code, isVisited and isAnyVisited.
One important [...]


Batch convert images to sepia tone with python

Posted by Mike on Jan 13th, 2010

The Python Imaging Library (PIL) offers easy photo manipulation from python scripts. There’s some handy sample code on effbot.org that demonstrates how to alter an image’s palette to generate a sepia tone effect. It first desaturates the image, then applies a new palette based on a linear ramp.
I’ve cleanup up that sample code [...]


Next »

Categories