Evolution · Things I've Learned

Natural Selection in the Fossil Record

table.figure { background-color: #f0f0f0; } table.figure caption { caption-side: bottom; font-size: 90%; padding: 1em; background-color: #f0f0f0; } For quite some time now, I’ve had a question: We can see evolution in the present. And we can see natural selection in the present. And we can see lots of evolution in the fossil record. But can… Continue reading Natural Selection in the Fossil Record

Hacking · Things I've Learned

Bourne Shell Introspection

So I was thinking about how to refactor our custom Linux and Solaris init scripts at work. The way FreeBSD does it is to have the scripts in /etc/rc.d define variables with the commands to execute, e.g., start_cmd=’/usr/sbin/foobard’ stop_cmd=’kill `cat /var/run/foobar.pid`’ run_rc_command “$1″ where $1 is “start”, “stop”, or whatever, and run_rc_command is a function… Continue reading Bourne Shell Introspection