gettimeofday() should never be used to measure time

2010-09-05, Categories: coding, bugs

gettimeofday() and time() should only be used to get the current time if the current wall-clock time is actually what you want. They should never be used to measure time or schedule an event X time into the future.

Read the rest of this entry »

Erlang BGP daemon

2008-07-27, Categories: cisco, bgp, erlang, coding, network, bugs

I'm writing a BGP daemon in Erlang. It can connect, parse update packets and announce routes.

Read the rest of this entry »

Solaris installation

2007-12-22, Categories: solaris, unix, bugs

In what top scientists are calling "pretty gay", Solaris can't handle disks that used to have non-solaris stuff on them without being wiped first.

I thought only the windows installer borked if the partition table looked weird, but no! The installer could not see the disk, and I was dropped into a dtterm where I had to do dd if=/dev/zero of=/dev/dsk/c0t0d0 bs=1048576 and reboot.

So... wipe the disk before trying to install Solaris.

Read the rest of this entry »