October 2010 Archives

Make Me a Sandwich

You may be familiar with xkcd's comic #149, and the ensuing tee-shirt. This has been a bit of a running joke in the Butter office, often coming up when teaching someone the basics of linux commands. As it's one of our developer/project manager's, Eve's, last day today, I decided to put together a little parting gift in the form of a bash script.

sudo makemeasandwich

For anyone that's interested here's the code:

#!/bin/bash
if [ "$UID" -ne  0 ]; then
 echo "make your own damn sandwich.";
 exit $E_NOT_ROOT;
else
 echo '

                   _.---._
               _.-~       ~-._
           _.-~               ~-._
       _.-~                       ~---.
   _.-~                                 ~\
.-~                                    _.;
:-._                               _.-~ ./
`-._~-._                   _..__.-~ _.-~|
 /  ~-._~-._              / .__..--~----.
\_____(_;-._\.        _.-~_/       ~).. . \ 
   /(_____  \`--...--~_.-~______..-+_______)
 .(_________/`--...--~/    _/           /\
/-._     \_     (___./_..-~__.....__..-~./
`-._~-._   ~\--------~  .-~_..__.-~ _.-~
    ~-._~-._ ~---------   / .__..--~
        ~-._\.        _.-~_/
            \`--...--~_.-~
             `--...--~
'
fi

On a side note, I'll take this opportunity to wish Eve the best of luck for the future. Eve was Digital Butter's first employee, and our office is definitely not going to be the same without her. I know she will be missed by both our team and our clients.

Tags: bash

Joss Crowcoft's jQuery AppMenu

One of the most interesting people we've come across so far during our developer hunt is the extremely talented developer Joss Crowcoft. Joss was passing through Hong Kong last week, and we were lucky enough to meet up with him for lunch. After lunch, Joss demonstrated his upcoming jQuery plugin - jQuery AppMenu and I'm happy to tell you that he has since released it. The plugin creates an Apple flavoured alt+tab menu for websites. Although it currently doesn't work on Windows (due to keyboard constraints) we think it's awesome, and will certainly be making use of it on a few of our upcoming projects. Check out the screenshots below, and then head over to Joss' website to download it!

Tags: jQuery, jQuery AppMenu

North American Steak pt III

I'm in Solvang getting very drunk - and of course, along the way punishing more steak. This is what North America is for right?

Tags: Steak, ThisIsWhyWe'reFat