kivikakk.ee

German efficiency

DHL turned up just now (before 2pm) for a pick-up. I’m hereby assuming it was for me.

It was quick, but man, what an attitude.

Me: Are you from Lenovo?
DHL: I’m from DHL.
Me: O…kay… who does it say the pick up’s for?
DHL: Byte. (or something that sounds like that)
Me: Byte?
DHL: Byte.
Me: Alright..

I hand over the laptop, without battery and AC adapter as requested on the phone earlier today.

DHL: You’re lucky I’ve got a box, otherwise that’d be bouncing around in there!
Me: …… (they said on the phone he’d have a box??)

That’s it. Fast but unfortunate courier.

Den mänskliga hjärnan

I learned a funny thing about the human mind this morning.

Last night I was trying to lodge a service request with IBM for my ThinkPad Edge—very, very poor quality, if I do say so myself. From a few days ago, the screen started blanking (with the laptop going into suspend) at random, though it seemed to happen most often while Misty and I were watching a DVD. It’d happen when I was using the keyboard, when I wasn’t, DVD or no DVD, eventually becoming more and more common.

This started to really frustrate me, coupled with the fact that Linux 2.6.32 seems to have a 1 in 3 chance of failing to resume from suspend on it. “Preferences -> Power Management” lets you stop it from suspending (it only locks the screen), but that was still really annoying. It turns out gnome-power-management has keys in gconf where you can actually disable any behaviour at all—I discovered that yesterday. That was ideal, but the word “ideal” is laughable when it meant that, by this stage, the LCD backlight would turn off after a few seconds of use (and with it the external monitor also turns off—the computer seemingly under the belief that I’m closing the lid?), and it would take a lot of moving the laptop’s lid back and forth before I’d just strike an angle that would leave it on for a few seconds more.

I had a go at taking it apart, but I couldn’t find the mechanism that signals whether or not the lid is closed (nothing obviously magnetic, either). I hadn’t seen any of this behaviour while using Windows on the machine, so I tried rebooting into Windows, but the symptoms were steadily getting worse.

I decided it high time to get IBM onto the scene (as they provide support for Lenovo’s machines, the two being mostly one and the same, now). I discovered that applying a strong pressure to the part of the laptop just to the right of the keyboard (near the return key and so on) actually caused the LCD to work. I had to keep it there though. This was frustrating.

So, there I am, frustratingly trying to navigate Lenovo’s support website (to lead me to IBM’s “Electronic Service Call+” website), trying to login, all with my right hand applying a firm pressure to this area right next to the keyboard. No fun.

I imagine that, when I signed up to Lenovo’s website back when I purchased the laptop, that ID may extend to IBM’s website, so I try logging in with that email address. No deal! I can’t find any password configuration that works. I choose “Forgot my password”. And here’s where the whole point of this entry comes in.

My secret question comes up, and it looks nothing like a secret question I’d ever set:

(3 * 2) * (3 * 1.5 * 2) =

That’s it. I look at it and think—surely this isn’t mine. The email address sure is, though. It annoys me that they have no recourse of “send password reset link to email”. Working from the left, I get 3×2=6, 6×3=18, 18×1.5=27, 27×2=54. I enter “54″. No dice. “fiftyfour”. Nope. “fifty four”. Nuh-uh. “fifty-four”. Nothing works.

Annoyed, I give up and register for a new account with my work address (this is all with my hand on the right side of my laptop). It takes an agonisingly long time to do that, and then even longer to lodge an “electronic service call”, the form for which seems designed more for companies with thousands of IBM assets than anything else. They even asked me for a “priority”. Sure, I’ll pick “highest”.

This morning, I wake up after some really, really strange dreams, and as I slowly manage to come to reality, Misty and I start chatting. Half-way through a sentence, I realise my brain has been working out the equation as it was written; by this stage I couldn’t remember the right hand side, but I remember that it was 6x=54 and—of course, 6 × 9! Though I’ve not heard the radio play in years, nor read the books, The Hitchhiker’s Guide to the Galaxy came to me at once, and I knew the answer must be 42.

I sprang out of bed and found the log-in form, filled out all the information, and voilà—success.

The human mind sure is strange.

På Debian

It took me all night and all morning, but I’ve finally got Debian working on my laptop. I wish in a way that it didn’t have to be this difficult, but it turned out to be the case.

I burnt a netinst disc of 5.06 amd64, inserted it and expected it to work. Instead, I was informed that my CD drive couldn’t be detected (!) (this is while already proceeding through the installation process). A bit disheartened, I looked at the other options; TFTP, getting a full CD image (but that wouldn’t help), and realised I could try using GRUB to bootstrap the process from the local disk.

Bootstrapped the netinst with GRUB, only to be told that the harddisk couldn’t be located! Ay carumba. Looking into it more carefully, I eventually decided to modprobe ide-* (core, generic, cd_rom, etc.)—and my harddisk appeared (this also caused my CD drive to be findable again, too). So I went through, and got to the process of partitioning the disk, where I decided to format the new root partition with ext3—not an unreasonable request, I thought. The netinst (bootstrapped from harddisk) is supposed to work even when the disk it was bootstrapped from is changed. Instead, it simply hung on mkfs.ext3. I gave it a reasonable amount of time to run (30 minutes?), but no luck—the process wouldn’t even respond to SIGKILL, so I figured something had gone badly wrong.

Now that my disk to bootstrap from was clobbered, I had no choice but to rely on the netinst CD. Again, inserting the IDE modules made the CD and harddrive appear again, and I got up to partitioning the disk. I figured it might’ve been booting from the disk itself that killed the ext3 format, so I tried again. Same result! Tried again with reiserfs. And it worked (after a harrowing 3 or 4 minutes).

Having formatted / with reiserfs, it then attempted to format hda5 as a swap partition. It then errored out, telling me that hda5 was in use (“Resource in use” appeared in dmesg), and I got the “Ignore”/”Cancel” options from partman. You can try to ignore, but then it tells you that partioning failed, and you can’t proceed without that step succeeding. In the end, my only option was to tell it to have no swap partition at all (and to manually add the swap partition once the system was all working).

After that, installation proceeded more-or-less straightforwardly. Of course, wireless didn’t work in the installer, so I had to be physically connected, and the entire process slowed to a crawl about two-thirds through configuring packages (maybe because there was no swap!).

Once installation finished, I rebooted my machine. And I got about three lines of output from GRUB as it loaded the kernel, and then nothing. Woo.

Booted it in single-user mode. I get the full kernel output on the console, which stops after it loaded the SD card reader drivers. Paging up, I found it was waiting for the root device to come up. Presumably it didn’t know about the harddrive here, either, and I had no console to go modprobing in.

A few months back, I set the SATA mode to “Compatibility” (instead of AHCI) to allow a Windows XP installation (as it couldn’t find my harddrive in AHCI mode). I set it back to AHCI. And everything worked.

Well, not everything. Wireless didn’t work, graphics didn’t work properly, sound didn’t work.. I upgraded to testing, did a full dist-upgrade, then installed the latest kernel, and installed a binary driver from RealTek for the 8191SE.. and everything’s.. finally.. working.

I note that Ubuntu literally works “out of the box”, as does the installation, so this was more effort than I’m used to. Maybe I’m getting old. ;-) But anyway, hopefully going forward I’ll be able to help out with Debian in more ways, particularly with OCaml.

Gravitational experiments in OCaml

The theory of gravity has always fascinated me, and I’ve made simulations of this quite a few times. Here’s another one!

You can pick up the code for evo on GitHub.

Two videos of it in action: one, two.

screenshot of a yellow circle with a yellow line trailing behind it, and then several other coloured lines swinging about the yellow circle, twirling

Lucy

a photograph of a tortoiseshell cat asleep on a chair

Our newest family member!