Jul 04

After hearing me mention that we considered a Subaru Outback as plan B if we couldn’t get a Prius, a Subaru dealer tries to sell me a new car. I don’t seem to be buying it, so he takes me to a special Subaru dealership hidden away in the countryside.

The area is surrounded by trees and grass. The buildings are large and low, like aircraft hangars. We walk past lots filled with SUVs. I explain that I’m really not interested in SUVs.

He points at a sports car. I look at it. It’s a nice design, but it’s only about 2 meters long, so I’d never fit in it. I’m similarly unenthusiastic about the Subaru Clown Car. Then he shows me a car I could actually fit in, but it’s bright pink and looks like it was made by gluing together giant models of male and female genitals.

I start to suspect that these cars are deliberately unsellable, so he can push me towards an SUV. I say that I’m really not interested in buying anything. The salesman says I’ll change my mind once I’ve had The Subaru Experience.

We climb into an SUV and close the doors. Suddenly, a circular-saw-wielding maniac in a hockey mask attempts to cut through the door next to me. The door stands up pretty well to the attack. I’m obviously startled, but the salesman grins at me and says something about the ruggedness of Subaru SUVs. I can’t hear it above the whine of metal against metal. Then the attacker lunges the saw through the window, the blade touches my arm, and I discover it’s fake. The whole thing is fake, like a movie.

It turns out that this Subaru dealership is a converted movie studio where they stage elaborate scenarios intended to convince people to buy vehicles.

The second scenario is to experience how a Subaru Outback stands up to an attack by rabid wolves. The answer is: pretty well. Once the howling stops, we get out and head into a nearby building.

The salesman hands me some protective clothing. I put it on, but when I look in the mirror it turns out to be a waiter’s outfit. We walk through into a long room with tables laden with food along both sides. At the far end is some sort of car. We’re going to be experiencing how well a Subaru stands up to a custard pie fight.

I’ve had enough. I don’t want to get custard and whipped cream all over me. I run back out into the corridor. Alarms start sounding, alerting everyone to an escaping customer. I exit the corridor into a garage filled with assorted special-purpose Subaru vehicles. I’m delighted to find a Subaru customized for ram-raiding. I get in, hotwire it, drive out through the garage doors, and escape.

Jun 12

Yesterday, a server died. Turned out it had bad RAM too.

Today, someone deleted 100MB of files from an important database, and I had to do another restore on the System i.

This afternoon, it was noticed that some config documents were mysteriously not restored by my previous efforts. After investigation, I discovered that someone had helpfully copy-protected a random assortment of configuration documents. I have no idea why.

Jun 09

Friday was definitely the worst Friday ever.

I wandered in to the office with my coffee, and discovered that my main work laptop—an IBM ThinkPad, obviously—had mysteriously powered itself off overnight, instead of merely going to sleep. I booted it, only to get the dreaded Fan error message.

(If you’re falling asleep already, skip down to the moral of the story.)

A fan error is pretty much the kiss of death for a recent laptop. The quest for ever faster and slimmer portable computers means that today’s portables are designed with fans that suck cooling air through their innards. No fan means the machine overheats as soon as you do anything that strains it a bit; and that could be something as trivial as leaving a web browser running on a Flash-heavy web site, especially if you have Eclipse running in the background.

Still, I have a backup laptop, for exactly this eventuality. I keep it mostly synched up with the main one. I started transferring my recent data across. Before long I was logged in to work via the VPN.

I’d just gotten my first batch of e-mail when I discovered that a clever user had found a way to bypass ACL security and replicate an old, shut down database with a new, in production database. This had wiped a chunk of important configuration data.

I found the backup I could get at most quickly, and did a temporary restore. Then I asked a colleague to pull a more recent backup onto a spare partition of the System i server (aka AS/400), which I then used to do a proper restoration.

I had just about finished documenting what had happened and putting new precautions in place to stop it happening again, when my laptop locked up solid. I suspected the ATI video drivers, so I switched back to the open source ones (which are less buggy) and continued.

Overnight, it locked up again. This was very suspicious. To have Linux lock up once, well, that’s not unheard of when proprietary drivers are involved. But to have it lock up twice, the second time with no closed source software running in the kernel—that smelled fishy.

I ran a Memtest86 diagnostic, and sure enough: bad RAM in my backup laptop. Oh joy. I flipped the machine over and swapped the RAM with the DIMM from the machine with a dead fan. The errors continued. So, it looked like an error in the internal RAM. I took the DIMM out of the RAM slot and ran Memtest86 again. Hypothesis confirmed.

I consulted the handy Hardware Maintenance Manual. It turns out the internal RAM can be replaced too, but you have to remove the keyboard to do it. So, I did that and swapped the internal DIMM. This time Memtest86 still looked good after a couple of minutes, so I powered off, put the second stick of RAM back in, screwed everything back together, and now I have it running an exhaustive test.

Monday, I’ll get the dead laptop and bad RAM shipped to the service department.

The moral of the story: Always buy the extended warranty on a laptop. Even the best ones are significantly less reliable than desktop systems; they are more prone to overheating, and their tiny fans tend to get clogged easily or simply burn out. When something does go wrong, laptop parts are significantly more expensive than desktop parts. Repairs frequently involve motherboard or display module replacement, and can easily cost as much as the machine is worth.

Jan 08

How to convert RealAudio streams into WAV (which you can then encode to MP3):

  1. Install mplayer. It’s available for OS X and Linux.

  2. Put the following definitions in your .bashrc file:

    function radownload {   if [ "$1" = "--help" ]; then     echo radownload [url or .ram file] file.ra   else     mplayer -dumpstream -dumpfile $2 $1   fi } function ra2wav {   if [ "$1" = "--help" ]; then     echo ra2wav file.ra file.wav   else     mplayer -ao pcm:file=$2 -vc dummy -vo null $1   fi } 
  3. Start up a new shell and convert away:

    % radownload rtsp://www.suckysite.com/media/foo.rm audio.ra
    % ra2wav audio.ra audio.wav

Adapting the instructions for Windows is left as an exercise for the reader.

Jul 05

User: I can’t do anything right now, my laptop’s broken.

Me: Don’t you still have that spare I set up for you?

User: That one’s broken as well.

Me: Maybe I can get it running again. I know it’s old and the IT people won’t fix it, but it’s better than nothing.

User: Well, it’s not really a problem with the software.

Me: I’ve got spare RAM and hard drives.

User: Well, it’s a bit embarrassing really. Don’t tell anyone, but…I backed my car over it.

Me: Accidentally?

User: Of course accidentally!

Me: But…how?

User: I was in the parking lot, and I put it on the ground while I put some stuff in the trunk. Then I forgot it was there.

† I feel that ethically speaking, an anonymized story like this doesn’t constitute telling anyone.

Jun 11

I’ve been happily running Debian on my ThinkPad for over a year, probably the longest time I’ve ever kept a single OS on the thing. Or rather, I had been until Saturday. Saturday is when I decided to update my X.org.

I’d had some problems with X.org before. Debian Testing upgraded to X.org 7.0, and it turned out the ATI FireGL T2 drivers in that were broken. So, no fancy new X.org 7 for me until 7.1, I thought, which was a shame because the new ATI drivers in 7.x provide full hardware acceleration, including 3D.

Still, updates were to be had, so I went ahead with what I expected to be a routine point release upgrade of 6.9. However, it turned out that the packaging of X.org has been rearranged, along with the system directories.

Result: no X.

I tried running the autoconfig, which has always worked in the past. It didn’t work, couldn’t find the perfectly ordinary USB mouse either. I upgraded everything else via apt-get upgrade and rebooted, and discovered a ton of errors now appeared during boot. I spent an hour or so dicking around before coming to the conclusion that the system was hosed in a way which would probably require some kind of reinstallation.

This isn’t my first moment of dissatisfaction with Debian. PAM was broken for months, I’m not sure if it has even been fixed yet. Sound stopped working a couple of months ago. It seems as if somehow along the way ‘testing’ has become ‘unstable’. Perhaps it’s because of the pressure to speed up the release cycle–but then, I don’t see any new stable releases on the horizon.

So, it was time to weigh options. Debian Testing had just burned me badly, so that was out. I could stick with Debian, reinstall Sarge, and live with no accelerated graphics until the next Debian release, which could be years away. I could try the IBM Linux image, which is based on a well-known commercial Linux distribution that I’m not a big fan of. Or, I could try something else.

The new distribution all the cool kids are running is Ubuntu, so I downloaded and burned a CD and booted it. All the ThinkPad hardware worked first time, including Bluetooth, ATI graphics with 3D acceleration, sound, and ACPI power control. So, it looked as though Ubuntu would give me the Debian base I liked, with the advantage of a release schedule measured in months rather than years, and accelerated graphics.

However, Ubuntu is based on GNOME, and I’ve been a KDE user in recent years. There’s a KDE-based Ubuntu variant (Kubuntu), and also one that runs the XFce windowing environment (Xubuntu). I tried all three.

GNOME is nice and simple in appearance, but it’s a terrible RAM hog. KDE has chronic optionitis, but has lots of handy programs; but I thought about the programs I run all the time, and realized that only one is actually built for KDE–the others are all GTK-based.

Then I tried XFce, which is GTK-based, and noted that I could run XFce and Firefox together and use less RAM than just the KDE desktop. So, XFce was ahead. When I noticed that XFce showed file sizes correctly but GNOME didn’t, the deal was sealed.

Next problem was to back up all my user data. I went on a cleaning out spree, burnt a DVD of old stuff I hope never to need again, and shrunk everything down to under 30GB. I used rsync to back it all up to our MP3 and e-mail server temporarily.

Then, I decided to be daring, and used resize_reiserfs and GNOME partition editor to make space for a new root partition, turning the old partition into /home. This allowed me to install Xubuntu without wiping my home directory.

I just finished confirming that I can get the VPN working, so I don’t have to go into the office in the morning. I’ll get Eclipse and all the other work stuff going again tomorrow.

Jan 08

Recently when I’ve searched on Google, I’ve noticed increasing numbers of ads that end with “aff.”

For example:

RAM Memory Upgrades
100% Compatible Memory for Desktops
Laptops & Printers. Free Ship! Aff

Gerbil for sale. aff.
Check out the deals now!

Disturbing Ghost Footage
warning: very freaky -aff.

All real examples, and the last was the result of searching for “Korean”, believe it or not.

Anyway, at first I thought “aff.” was some kind of neologistic abbreviation for “affordable”, but now I’m starting to have my doubts. It shows up in places where it just makes no sense.

So, what have I missed? What is “aff”? Is it the new “bling bling” or something?

Update:
Gareth Rees provides me with the answer: “aff” is a Google abbreviation for “affiliate”. It means that the person placing the ad doesn’t actually own the site they’re advertising; instead, they get paid by the site owner to drive traffic there. Google feels that it’s necessary to disclose this fact.

In other words, clicking “aff” ads is rewarding the same kinds of people who build all those incredibly irritating spam pages that look like useful information to search engines, but consist of nothing but keywords and links to other sites they want to promote.

So, that’s the last time I click on anything with “aff” in it…

Nov 03

People often wonder if they should turn their computer off, or leave it on but put it into “sleep mode”. I decided to do some analysis a while back, here are the results.

If you look up the specs, a Sawtooth Power Mac G4 in deep sleep uses about 4 watts of electricity. In MA you pay $0.04823 per kWh, so it costs 4 / 1000 kW * 24 hours * 365 days * $0.04823 = $1.68 per year to leave a Mac sleeping instead of turning it off. So, it’s not going to break the bank.

Heat-wise, conservation of energy tells us that no more than 4W of heat is being emitted by the machine. Compare that to the average human body, which radiates 50-100W (estimates vary, Google if you feel the need to check). So, the G4 isn’t going to heat up the room significantly when it’s asleep either.

What about the environment? Well, let’s assume the worst possible case, that your electricity is all coal-generated. That means emissions are around 0.43kg per kWh of electricity used by the consumer. So in a year of sleep, your Mac would cause the emission of 15kg of CO2. Sounds pretty bad, doesn’t it? Well, according to space research you produce 1kg of CO2 per day by breathing, or a massive 365kg per year. So the Mac is 20x better for the environment when asleep than you are.

What about the hardware? Well, in deep sleep almost all the hardware is powered down exactly as if the machine was turned off. The hard drive, which is the piece most likely to wear out, is powered down. The CPU and RAM are incredibly unlikely to wear out even if you run them 24×7 for the next ten years, at which point the machine will be so obsolete it’s worthless. So turning the Mac off won’t make it last any longer or protect your ‘investment’.

So, I conclude that there is absolutely no economic or environmental need to turn your Mac off. If you have a UPS, you may as well leave the Mac asleep when you’re not using it.

Of course, if your computer is a PC which doesn’t have an Energy Star “deep sleep” mode, the above calculation may be off by a factor of 10 or more. However, most PCs are now Energy Star.

Mar 27

I got flagged for having failed an automated security scan at work. I explained that the scanner program was wrong, and that I was running anti-virus software. The next month I got flagged again, explained again. This time they said the problem was that I wasn’t running the exact version on the internal download site.

I said yes, of course I wasn’t. The version on the download site was over three years old, and caused Windows 2000 instability resulting in BSODs. So I’d purchased a supported version, legally, and installed that. I pointed out that the security standards didn’t require that I run an outdated version; they just required that I run a version with up-to-date virus definitions.

I was told I would continue to show up as a security hazard, because they had no intention of fixing the scanner software. At this point, I said “Fuck it” and wiped Windows off the hard drive entirely, replacing it with Linux. I replied telling them what I’d done and asked them to remove me from their junk mail list and stop bothering me.

On the plus side, I am now 100% Microsoft free, both at home and at work.

I also got a new ThinkPad. Or rather, a less old ThinkPad. All previous attempts to get an upgrade had been refused but the auditors are coming in a week or two, and my 600X was out of warranty and would have been flagged as a problem, so basically the local Mordac was embarrassed into having to find me a replacement. So I now have a T23 with 768MiB of RAM, which is a major improvement. I’ll be giving back the 600X as soon as I take out my own RAM which I had to buy because Mordac wouldn’t give me any more than the 128MiB it came with.

The T23 definitely isn’t as sturdy as a 600, and the keyboard is a bit crap, but it’s a lot faster. It might even be fast enough to make GNOME usable, not that I’m going to try. (I read that Havoc Pennington might be pushing to move GNOME over to .NET, which strikes me as an excellent idea—it would keep the developers busy for ages while simultaneously dooming GNOME.)

Jun 20

Yes! The Shuttle system is working. Mark gets a new computer. The secret turned out to be holding down the Insert key on power up, which is a secret handshake that makes Shuttle systems auto-reconfigure themselves to the installed hardware.

So, a nice little Athlon XP 1700+ with 512MB of high-speed DDR Corsair RAM. Should be quite an upgrade from a 600MHz Compaq.