Cowsay as much as possible


CowsayIfPossible()
{
  if [ -z "${1}" ]; then
    CowsayIfPossible "Supply some text!";
    return;
  fi
  if which cowsay >> /dev/null; then
    cowsay "${1}"
    echo =======================================
  else
    echo "${1}"
  fi
}

Cowsay is win.  EEEPPIIIICCC  WIIIIN.

This BASH script snippet allows the unashamed use of cowsay within bash scripts without fear that it isn’t installed.  World peace?  That’d be nice, but for now cowsay moooooo!

sudo aptitude install cowsay

A Lesson in Human-Computer Interaction: Spoons

I lost my Tablet PC’s pen, so I used a spoon instead. When I realized that this was really weird, I asked a friend to snap a picture.  If only a tour group came by and saw how crazy the people at Tech are…  My only hope is that a Google Image search of my name will one day bring up me spooning a computer.
Interacting with a Tablet PC via spoon

Continue reading