XCode podcasts

At Kris Johnson’s suggestion, I downloaded and watched the two Pragmatic Programmer’s screencasts about XCode. Well, they didn’t make me love XCode as much as I like Eclipse, but they’re very helpful, especially the first one. Well worth the $10 I had in my Paypal account.

I don’t know if it’s just me, but when I tried to use the shortcut (command-shift-j) to turn some highlighted code into another method, XCode threw up a horrible message and wouldn’t proceed until I choose “Quit”. Very annoying.
picture-1

By all means, Paul, fuck with the hard drives…

I’ve spent the last two nights trying to get Vicki’s laptop working again. Back in August I bought her a new hard drive for it – a 250Gb one to replace her 80Gb one. The 250Gb one is the same model number as the one that came stock in my MacBook Pro, so I figured it was safe to put it in her slightly older MacBook Pro.

That’s great in theory, but back in December she was complaining about very slow response, and she ended up formatting and re-installing. And again this week, it started happening again. Console.log showed that once again, the disk was full of errors. We tried repairing things with Disk Utility and booting into single user mode and running fsck. Both repaired things, but the disk quickly started acting up. I installed TechTools from a AppleCare disk and did a surface scan, and it found lots of errors.

Ok, now it’s time to get serious. We burned a copy of the DFT (Drive Function(?) Test) ISO from Hitachi, but when you boot it in the MBP it asks for “Floppy B” and refuses to continue. Oh oh. So today I got *really* serious – I opened up the MBP (a tedious process) and took the drive out and put it in my Linux box so I could run DFT there. So my home Linux box is off-line for the rest of the evening as well. (Normally I would use my old Windows box for stuff like this, but the Windows box is IDE and the Linux box is SATA.)

While I was waiting for DFT to find the inevitable errors, I decided to start filling out an RMA request on the Hitachi web site. And I had a real feeling of deja-vu. And then I remembered – I’ve only returned two other drives in my life, and both of them were IBM/HItachi DeathStars. It’s nice that they make it so easy, but I think I’d rather they made the drives so they didn’t fail.

Relatively painless upgrade

I upgrade to Debian Lenny on my colo box today. It was relatively painless. I had to upgrade php to php5 manually, because the php4-mysql refused to upgrade and refused to re-install. I had to mess around a bit with my Apache config. The biggest pain was dealing with the “4gb seg fixup” errors. In the past, every time libc upgraded I had to remove /lib/tls and then it was done. But this time I had to install libc6-xen, and then edit /etc/ld.so.conf.d/libc-xen.conf to change “hwcap 1 nosegneg” to “hwcap 0 nosegneg” and then run ldconfig and reboot.

Everything appears to be working except the munin plugin for apt is acting a little weird, so I’ll call this done.

Scared to death

Update: Turns out I wasn’t in much danger. According to this link, it goes away in a minute or two. Thanks to Lara for the information.

Thirty minutes or so ago, I thought I was going to die. I was drifting off to sleep, when suddenly I couldn’t breathe. It felt like mucus had completely plugged my airway, just as I’d fully exhaled. Because my lungs were almost empty, I didn’t have enough breath in me to cough it out. In retrospect, a full-on rib-breaking Heimlich might have dislodged it, but I wouldn’t have been able to make Vicki understand what I wanted even if I’d thought of it. Instead, I was sort of vaguely gesticulating and she was asking if I needed an ambulance, but I couldn’t answer. I guess we were both a little panicy at that point.

After what seemed like minutes but was probably only a few seconds, I was able to start wheezing in small breaths, but nowhere near a lung full. I felt like I was rapidly falling into oxygen debt as the massive effort it took to get in a small breath of air seemed to take more oxygen than I was taking in. But each breath was opening up the airway a tiny bit more than the last, and after a few I had enough in my lungs to cough, and that really opened the airway to where I wasn’t worried about passing out.

Like I said, it’s about half an hour later, and I’m still clearing my throat almost constantly, and I’m scared to lie down. If you don’t hear from me again, the root passwords and life insurance policy numbers are in a file called “AdministrationStuff” on my home directory on the Linux box.

So cold

It’s freezing here at work. I’m not sure if it’s everywhere or just at my desk – there is a bit of a cold breeze here. My feet have been freezing since I got here and my fingers are clumsy. I actually warmed up a bit when I went to Wegmans for lunch. People are looking at me funny because I’m wearing a toque, but at least my fingers are working again. Still no joy with my feet though. I wonder what they’d think if I put on my moon boots?