iTunes Meme

Seen on somebody else’s (friends only, so I can’t link it) LiveJournal.

How many total songs?
18474 songs, 48:15:38:51

Sort by song title – first and last?
“? (Modern Industry)” by Fishbone
“遠き時代を求めて” by 久石譲
(No, I have no idea what that means, I’m just a cut and paste machine)

Sort by time – first and last?
“Jim Bachus” by 3rd Bass 0:04
“Terrors of Pleasure” by Spaulding Grey 1:11:32

Sort by Album – first and last?
“�Jonathan, Te Vas A Emocionar!” by Jonathan Richman.
“紅の豚 飛ばねぇ豚は、ただのブタだ!” by 久石譲

Top five played songs?
This is probably meaningless because 90% of the time I just use iTunes to load my iPod.

Find ‘sex’, how many songs show up?
89

Find ‘death’, how many songs show up?
92

Find ‘love’, how many songs show up?
990.

I don’t know what they’re up to, but I don’t like it.

Watching my logs scroll by (doesn’t everybody?) I see an awful lot of hits on obscure parts of my web site from the IP 68.7.32.213. Grep back, and see that they’re evidently crawling my blog, and every link from my blog. And even weirder, every URL they grab they use the same URL in the referrer string – an obvious attempt to defeat one of those redirections that shows you a different page if you deep link something instead of going to it from the place you saw it referenced. – although wouldn’t it be simpler to use the page you found the link on instead? Further grepping shows that they did NOT get my robots.txt file. They’re also downloading the pages as fast as they can with no pause before getting the next one – it’s possible that they’re doing several simultaneous ones. Ok, three strikes, you’re out.

Into the /etc/http/conf/httpd.conf file, and a few well-placed
Deny 68.7.32.213
restart the server, and now Mister Badly Behaved (and probably Badly Intentioned) Crawler is getting a lot of 403s instead of pages.

Cool toy OTD

The new Google Maps service is very nicely interactive. You can drag maps around with the mouse instead of clicking and waiting for a refresh. Plus the directions search works extremely well, as does the “nearby business” search. Unfortunately it only supports Firefox and other Mozilla-based browsers and IE, but then again why would anybody want a browser other than Firefox?

One interesting quirk – if you ask for directions to ROC (it takes airport identifiers as well as addresses), it gives you directions to the general aviation area at the south end of the field off Scottsville Rd, instead of to the passenger terminal at the north end off Brooks Ave. I’m not sure why that would happen, since a web search for the airport’s name finds my flying club’s web page ranked well below the airport’s own web page, and the airport’s official address is on Brooks Ave, not on Scottsville Rd.

In other news, GMail must be about to come out of beta, because I suddenly have 50 invites to give out, instead of the usual 4-5. If you want a gmail invite, email ptomblin at gmail.com.

Side effects matter

One of my cow-orkers used his new fancy GUI IDE that showed him that a variable wasn’t being used in my code, so he commented it out. Only one problem: the variable was one of a list of variables being retrieved from a SQL select statement, and like is common with these things, I was retrieving them with:


int a = rs.getInt(p++);
int b = rs.getInt(p++);
String c = rs.getString(p++);

Notice the problem there? If you comment out one of the getInts without removing the field from the select statement, you also lose the “p++”, so everything after it gets the wrong field stored. Which causes a pretty nasty little bug.

Thanks, guy. That’s a few hours of my life I’ll never get back.

This is getting ridiculous

In the last 24 hours, MT-Blacklist has stopped 168 comment spam attempts, and let one through.

Keep in mind that I close comments on any blog entry over 100 days old, so this is probably fewer than 100 blog entries that were the lucky recipients of those 169 comment spam attempts. Neither MT-Blacklist nor I see the attempts to comment spam the older ones unless I look for POST commands in my web log.

One thing I’ve noticed recently is that comment spammers are GET-ing pages on my web site with the referrer string set to the site they’re trying to spam for. I guess they’re hoping that people are running webalizer (which I note is enabled by default in Fedora Core 3) or some similar log analyser that puts up a log of referrer strings somewhere where Google can find it. So a warning to everybody reading this: if you’ve got a web log analyser, make sure it’s not somewhere were Google or any other search engine can find it.