Text

ZSH and Rake Parameters

I wanted to pass a parameter into a rake task which uses a format like this:

task :name, :first do  |t, args|
  puts "Hello #{args[:first]}"
end

To execute the task:

rake name[Scott]

However, I kept getting an error that ZSH could not find the command. It turns out, I was tripping over ZSH’s globbing feature.

Thankfully, adding a simple alias resolved the issue for me:

alias rake='noglob rake'

I probably wasted an hour trying to figure out why ZSH didn’t like my rake task. Hopefully this post saves you from doing the same.

Link

If you’re having scalability problems and blaming it on a single technology, chances are, you’re doing it wrong.

Link

Flexibility is the ability to change how software works; power is the ability to do more with less effort.

Text

Scarcity in Design

Great interview of Fred Brooks in the August 2010 Wired magazine (sorry, no link at this time).

The critical thing about the design process is to identify your scarcest resource. Despite what you think that very often is not money. For example, in a NASA moon shot, money is abundant but lightness is scare; every ounce of weight requires tons of material below. On the design of a beach vacation home, the limitation may be your ocean-front footage. You have to make sure your whole team understands what the scarce resource you’re optimizing.

Tags: design
Quote
"Your #1 competitor starting out will always be the BACK button, nothing else."

— Gary Tan

Tags: Business
Link

The most dangerous way to lose time is not to spend it having fun, but to spend it doing fake work.

Tags: life
Link

We all underestimate our ability to massively change our life when it’s gone off track.

Tags: life
Text

Reading PDF eBooks on an iPad

The recent update to iBooks added PDF support. Unfortunately, the reading experience is no where near as good as the epub experience.

This was a bummer for me since I own quite a few eBooks in PDF format (and converting them to epub does not yield better results).

Thankfully, a tweet from John Grubber lead me to SimplyPDF which makes the PDF experience much more tolerable by allowing you to focus on a particular area of the page.

Here are too screen shots to compare:

The Default View in SimplyPDF

Default PDF View

The Focused View in SimplyPDF

Focused PDF View

While it is no way near as good as a epub in iBooks or mobi in the Kindle app, it does get the job done for now.

Video

A really interesting look at the design decisions in FireFox 4 for moving tabs to the top of the main window.

Tags: ux design firefox
Text

You are as Dumb as You Ever Will Be

A great line from Design Patterns in Ruby by Russ Olsen in talking about You Ain’t Gonna Need It (YAGNI):

Barring a sharp blow to the head, as you stand here today you are as dumb as you ever will be.

You get smarter every day. Your users (generally) understand your app and their needs better every day. Unnecessarily trying to solve future problems is really just guessing, so why do it if you do not have to?

Tags: ruby software