Terror attacks in Madrid

At least 186 people were killed and more than 1,000 wounded today when a wave of blasts ripped through Madrid’s railway network at the height of the morning rush hour. There has been no claim of responsibility in the attacks, but Spanish officials are blaming terrorists from the Basque separatist group ETA.

Full story at CNN

IMAP on OSX Server

I never liked Apple’s mail server, since it stores mail in a proprietary database rather than standard MBOX files, so I built and installed UW IMAPD.

It’s very easy: just download the source (currently at ftp://ftp.cac.washington.edu/imap/imap-2004.RC.tar.Z), unzip it, and build. I built it without SSL since it’s only accessible on my local network. If you want to do that, edit Makefile, look for the line ‘SSLTYPE=nopwd’ and change it to ‘SSLTYPE=unix’. It will warn you that it doesn’t meet the security standard, but you can tell it to go ahead. To build it, just type ‘make osx’.

After I moved the binaries to /usr/local/libexec, I went to server settings and disabled AppleMail, and then enabled imapd in /etc/inetd.conf.

I’m using it to archive all of my email on a local server instead of on my powerbook, as I was doing previously. I have it configured to use a Mail folder in my home directory, which I can back up easily.

Server crashed

The server which hosts this site, as well as worldbeatplanet & shareyourmusic.com crashed and was down most of today. The problem has been fixed.

UPDATE: here’s the explanation from PEHosting:

The downtime was caused by a simple CGI script taking up all the system resources and causing the server to crash. We had a company to monitor the new servers that we got about a month ago and this was the first time something like this has happened. We will not be hiring these guys to monitor our servers any more. To prevent such a thing form happening in the future we have decided not to use a 3rd party server monitoring company. From now on we will monitor and manage these new servers.

Some PHP fun

Since shareyourmusic.com and worldbeatplanet.com now point to the same host and share the same installation of Drupal, the stand-alone script “feedback.php” on both hosts is the same. Since it isn’t part of Drupal, it didn’t know about the two different sites.

I just added a test (eregi("worldbeatplanet.com",$_SERVER["HTTP_HOST"])) to set some display variables according to the host name, so it will look completely different (and send the feedback to a different address) depending on which hostname it’s run from.

I’m also using a variation of that same script (which I partially ripped off from PHP-Nuke’s feedback module) for the contact form at this site.

I'm back

I was away for a few days due to an emergency. I have the greatest neighbors in the world. They took care of my cats and even cleaned my apartment while I was gone.

My Last Two Hours Enduring Mac OS 9

My Last Two Hours Enduring Mac OS 9 (Apple-X.net)

I’ve been spending a lot of time in Mac OS 9 for the last few weeks, since I’m now porting a product backwards from Mac OS X to 9. My PowerBook G4 won’t boot 9, but my G4 minitower still does. I haven’t used Mac OS 9 since 10.1 was released a few years ago, so when I go back now it feels so alien. Developing software under 9 is not pleasant – I spend most of my time crashing & rebooting.

A Cat post

I haven’t written a cat post for a while, so I guess it’s time for one.

Midnight has gone through a remarkable transformation from wild stray to affectionate lap cat. When I saw him for the first time last May, he seemed completely wild. He would run away if anyone approached him. Most likely he was an abandoned pet rather than a wild cat.

I started feeding him and eventually he would come over to me, but he still wouldn’t let me pet him. After a while he started rubbing against my leg & following me around. He still wouldn’t let me pet him & he scratched me a few times. He finally came into my home once but he ran out after he ate.

In late July, he finally moved in. I took him to the vet and had him neutered and got him all of his shots. He became very attached to me and now seems to be the dominant cat around here, which Cody isn’t too happy about.

As soon as I sit down, Midnight jumps on my lap and starts purring very loudly. He’s never scratched me, although he occasionally gives me a little nip when he wants attention if I keep ignoring him. He even lets me cut his nails without any fuss.

Howard Stern yanked off six Clear Channel radio stations

Via Metafilter:

Howard Stern yanked off six Clear Channel radio stations The kingdom of the self proclaimed king of all media has been trimmed after Clear Channel dropped the Stern show on Tuesday after he allegedly aired sexually obscene and racist material.

The offensive exchange reportedly occured when a caller asked ex-Paris Hilton boyfriend (and sex-tape co-star) Rick Salomon if he had ever had oral sex on a black woman. The caller used the N-word to describe the black woman. Then the caller asked Salomon if it tasted like watermellon.

Is this grounds to fire the talk show host, or is it more politically motivated and the beginning of the end of free speech… of highly rated powerful talk show hosts who blast the FCC and aren’t Republican.

entire stern show here. (BitTorrent rq’d)

I personally don’t care for Howard Stern, but I’m outraged by Clear Channel’s actions. We have a media monopoly dictating taste and telling us what we should be listening to. It’s time to break up Clear Channel and bring back local ownership of radio stations.

Prebinding makes OSX less secure

Rosyna points out this issue with OSX’s prebinding at unsanity.org:
Prebinding could be a security risk. Not in of itself, but indirectly. You cannot use the checksum of an executable to determine if it has been modified by another or not on OS X. Incidental, yes. Not very important, indeed. But it is one wall that is not there.

Try it:

md5 /bin/mv
MD5 (/bin/mv) = efeb7727e40c597fa33953e551c9979d

Looks fine, no? Well, let us redo the prebinding:

sudo redo_prebinding /bin/mv
md5 /bin/mv
MD5 (/bin/mv) = fe7369c88c3a9220ad803ba3e56bbe06

The checksum has changed. While I am sure that there are better ways to get a checksum none are the answer. And AFAIK, dyld doesn’t store the executable’s actual checksum anywehere.

Going back in time

I’m now changing my Mac OS 9 code to use pre-Carbon APIs since some features I need to use aren’t available in Carbon.