What I did on my vacation from reality

Home About RTL8187B Laptop Cam Quotes Login

March 28, 2007

PSP error 80410209: confused DHCP server

1:51 pm — Geek

After playing with ISC DHCP3 a bit, I’ve found that things go psycho if you have a known host declaration on one subnet, and try to assign it a lease on another subnet.

E.g., I have two networks, 10.0.0.0/8 and 192.168.0.0/24 (I split it up on purpose). There was a host declaration for “widget” (00:1a:73:04:96:03) in the 192 net, but I was putting it on the 10 net. It got the IP address in the 10 net, and the options from the 192 net. In other words, I’ve successfully confused ISC DHCPD.

Interestingly enough, this also turned out to be the cause of the 80410209 error code my PSP was throwing at me; the gateway was on a network it didn’t have a route to. Dooh! So, there you go.




March 26, 2007

Boooooooooze.

I wrote this a while back. I should start updating it again.




March 23, 2007

Hi, Google!

2:06 am — Main

I realized that my default theme, a heavily modified version of Back in Black 2, is a little unfriendly towards search engines since it’s so heavy on the Javascript. I’ve written a plugin to automatically override the theme back to “default” when a search engine hits it.

Note that I’m hardcoding the bot domains. What I’ve done elsewhere is an Apache rewrite from robots.txt to robots.cgi, which then logs the bot in a MySQL database and spits out the real robots.txt. isengine() just checks the MySQL database to see if $REMOTE_HOST has snarfed robots.txt lately. It works pretty well. I chose to hardcode here just for simplicity.

Code follows.
(more…)