Went to go see sleater kinney last night. They rule.
The first thing was that no one knew exactly where the
project lived. OK, no
problem. I looked through the cgi-bin dir, hey look,
survey.cgi. Looks like
it calls a survey.py script that does all the work. Uhoh.
I've never looked
at python before in my life. Ok, let's run the cgi and
start tracking errors.
First error is a syntax error in the script. Hrm, better hit
google. Tracked it down
to a change in
python since we seem to be running a newer version of
python than the
script was written for. Evidently, python made the way args
to functions
are defined a bit stricter--no problem.
The script wants to make a connection to a
MySQL database. Oops, python can't find the MySQL
module. OK, this is
a debian box, no problem. apt-cache search mysql | grep
python shows
python-mysqldb - A Python interface for MySQL. Neat.
apt-get install. Hrm,
the script still can't seem to find the module. Oh, it's
MySQLdb, not MySQL.
Hmm, i wonder what is different...
OK, pretty much everything is different. Different syntax
on how to make
a db connection. Different syntax on executing SQL
commands. I did some
nasty ad hackery (think ad hoc) and voila! It seems to work.
Yay me!
Sometimes I don't feel like such a moron...
blah, real life sucks. My father-in-law died a few weeks
ago, the memorial service is this weekend. I had to call my
wife while she was on vacation and tell her that her father
had died. that was ...unpleasant. I haven't had the energy
at home to even touch my home computers at all.
sigh
books
I finally read cryptonomicron, i liked snow crash more but
it was definitely entertaining. I read A Game of Thrones by
George R. R. Martin, which was pretty good. I was into it
enough that I got annoyed at characters for doing stupid
stuff. Hrm, i also read The Last Continent and reread Feet
of Clay, both discworld books, and reread Retro Hell by the
Ben Is Dead editors. Hrm, doesn't seem as if i've been
doing much reading over the past couple of weeks, must be
forgetting something.
New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!