Pivotal Labs

Alex Chaffee's blog



Bush Violates Standup Rules

edit Posted by Alex Chaffee on Sunday November 04, 2007 at 08:29PM

Courtesy of Steve C and Alex Tabarrok

There is no "W" in "team"

There is no "W" in "team"

Rails Conference Links

edit Posted by Alex Chaffee on Monday May 21, 2007 at 08:30PM

(Blabbers who were at the conference, feel free to add your links to this post.)

Beer Night PDX

edit Posted by Alex Chaffee on Saturday May 19, 2007 at 10:59PM

front back

Extra Action

edit Posted by Alex Chaffee on Saturday May 19, 2007 at 10:32PM

It was fate. A crew of Pivots in Portland on the same weekend as the Extra Action Marching Band We just had to seize the opportunity...

Will they be making an appearance at our Beer Night tonight? You never know...

Ruby Puzzler

edit Posted by Alex Chaffee on Saturday March 24, 2007 at 05:58PM

puzzler I was just sitting around my living room listening to NPR, and heard the following Car Talk puzzler:

I want you to get a pencil and write down the numbers, 1 - 9, inclusive, and leave enough space between them. At your disposal you have one plus sign and two minus signs. You can insert those plus and minus signs wherever you want, to make the total come out to 100.

Naturally, I thought, "Gee, that would be tedious to solve it by hand. But it would be fun to write a Ruby program to solve it!" 9 minutes later I was sending the result (and the source code) to Car Talk Plaza.

So here's your challenge: can you write a program to solve this puzzle? And can you beat my time?

My solution is below the fold... don't click "more" until you've taken a stab at it yourself.