Blog Archive » May 2009

Atheist Zeitgeist

May 14, 2009

The Atheist Zeitgeist is moving. Russel's Teapot seems to be going out of style. The Invisible Pink Unicorn has been seen coming into popularity recently. What a time to live in! Humanity finally ramping up to shed it's religion. Yay!

1 Comment

/dev/69

Updated: May 13, 2009April 29, 2009

Here's a little something for fun: It's a /dev/69 for those bored of /dev/zero: #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int daemon_init ( v...

Rails .html.erb -> .erb

May 6, 2009

You can use this little shell script to rename (svn mv) all your old .html.erb files to just plain old .erb: for x in ` find . - type f - name \ *. html . erb` ; do svn mv $x ` echo $x | sed ' s/\(.*\.\)html\.erb/\1erb/ '`; done And then to get Emacs to make them all pretty: (setq auto-mode-alist (cons '(".erb$" . ...