David's Mumblings

Useful vi feature

category: Computers and Tech
I discovered a few weeks ago, after years of using vi, that you could do:

:b 


and auto-complete it (with tab) to the buffer with the appropriate file name. For the longest time, I'd been using :buffers (which I'd mapped to \b) to get a numbered list of buffers, and then :b to switch to the given buffer. Being able to use the file name is far more convenient!

It makes me wonder how many other neat tricks vi has hidden away that I will eventually learn (or not). Probably very, very many... ^ TOP

Posted on 06/21/10 at 13:23:14 by dchaley (David Haley)
No comments


Importance of database indexing

category: Computers and Tech
I'm working on transitioning a school's attendance records from one system to another. To do so, I created a MySQL database to track the various data sets from the old system, in addition to mapping tables to go from the old system's identifiers to the new system's. After some time I eventually needed to write a query that outputs class attendance history for import into the new system. I already knew that database table indexing was very important (at work we use far larger data sets) but I guess I didn't realize that even for relatively small data sets it still mattered so much. Read More → ^ TOP

Posted on 02/13/10 at 22:48:03 by dchaley (David Haley)
1 comment


Bad Tech Day

category: Computers and Tech
Saturday was one of the worst tech days I've had in a long time. Several things that could have gone wrong went wrong, all at the same time. To start, my laptop died a spectacular and miserable death, overheating up to wazoo and refusing to start. Even when it did start (I propped it up next to an open window giving a roughly freezing temperature breeze onto it) it was running incredibly slowly; apparently something was wrong with the GPU driver. (And then I was getting BSODs.) I took it in on Monday and Systems tells me that indeed something is busted with the GPU and they'll have to replace it (and hence the motherboard).

And if that wasn't enough to ruin my day -- it took me roughly 6 hours to figure out what was happening and try to get files off: I needed those files to get my work done -- I needed to upgrade my file server, and of course that went wrong too. My file server uses two two-disk RAID arrays. One of them decided to drop a disk, for reasons unknown to me. So that took me another hour or two to fix. On the bright side at least I learned more about how the Linux RAID tools work.

Harrumph! In all, I wasted about 8 hours on stupid issues that were completely unrelated to what I actually had to do. Sigh. ^ TOP

Posted on 02/09/10 at 21:19:49 by dchaley (David Haley)
No comments


Don't shout at your disk

category: Computers and Tech
This analysis of disk latency is funny and very interesting at the same time. (Make sure you watch the video below the graphs.) The moral of the story: don't shout at your data center disks! Disks are people too :-) ^ TOP

Posted on 03/24/09 at 10:35:46 by dchaley (David Haley)
No comments


DVDs not recognized by DVD drive

category: Computers and Tech
Tonight I was trying to install Civ4 on my desktop and found that Windows would not recognize the DVD. It's not that the copy protection was being overzealous: it was as if the disk simply wasn't there. Explorer showed the drive as empty, and nothing would spin when I inserted it into the drive. This was the second time I'd encountered a problem like this, and I was pretty ticked off about it.

After poking around on various support sites, most of which were useless to me (as they catered to people trying to break the copy protection -- this is an original darnit!!), I decided to see if the manufacturer (NEC) had released new drivers. Turns out that although they hadn't released any new drivers, they had released new firmware for my drive model (NEC DVD_RW ND-3550A). After installing it, the disk was detected -- finally. Not sure what the problem was exactly, but at least it's fixed now. Sigh. Nice way to waste 40 minutes. :-/ ^ TOP

Posted on 03/02/09 at 20:35:35 by dchaley (David Haley)
5 comments


Amazon recommendations gone wrong

category: Computers and Tech
From Amazon this morning:

We've noticed that customers who have purchased or rated Star Wars: Empire at War or other games in the Strategy > Fantasy category have also purchased Paws & Claws: Pampered Pets.


Uh... seriously? I'm not sure how they're matching Star Wars, strategy and medieval fantasy with "Paws & Claws"...

(The game in question involves bring your virtual pets to a virtual spa and dressing them up in jewelry and whatnot.)

I wasn't sure if I should classify this as "Computers and Tech" or "Humor"... ^ TOP

Posted on 11/19/08 at 08:52:42 by dchaley (David Haley)
No comments


Getting 'trash' to work on NFS mounts

category: Computers and Tech
(Yes, long time no post, 'news' type post coming soon.)

I have my media files -- photos, music, etc. -- on a file server so that Aurelie and I can both access everything. I previously had the share mounted as a normal NFS mount in fstab, like so: basilisk:/shared /shared nfs rw 0 0. Pretty simple: just load the network drive on basilisk/shared onto local directory /shared.

It worked for almost all intents and purposes. I discovered though that I could only permanently delete files: I couldn't send them to Gnome's trash. It got pretty annoying after a while because I like to have an 'undo' easily available via the trash, and it also confused the heck out of a lot of programs that really want to send files to the trash instead of deleting them directly. Read More → ^ TOP

Posted on 09/07/08 at 21:24:52 by dchaley (David Haley)
No comments


Fun with Support

category: Computers and Tech
Me: "I am getting an email message telling me I need to update PC Leland because I am logging in with an old version of Kerberos. This is impossible: (1) I run Linux and so do not have the software installed, (2) I have the version of Kerberos that the email says I need to have."

Support: "You need to update to the new Stanford Desktop Tools version in order to not get the message about Kerberos 4 credentials."

Me: "Uhh. I don't have Kerberos 4. I don't have an old version of the SDT; I run Linux. I only have Kerberos 5."

Support: "Oh. Then, in that case, you need to use the new version of SDT if you are on Windows or Mac."

Me: "I am on Linux. Those tools do not exist on Linux. It is impossible for me to have an old version of tools that don't exist."

Support: "Oh, well Linux isn't compatible, so you need to upgrade the tools."

Me (having realized that resistance is futile and that no progress will be made): "Uh. Ok. I'll go do that then." ^ TOP

Posted on 05/15/08 at 11:23:11 by dchaley (David Haley)
1 comment


Fun with Security

category: Computers and Tech
So I overhear admins at a company talking about entering time sheets and expense reports for the people they assist (i.e. their bosses, high-ranking VPs). One asks the other: "how do you enter the data for other people?" To which the other replies: "oh, I just log in as them using their username and password. I don't know of any other way of doing it."

You would think that there would be a better way of handling this situation than giving the complete identity of one person to another... ^ TOP

Posted on 05/12/08 at 14:59:59 by dchaley (David Haley)
No comments


Cryptic Error Messages

category: Computers and Tech
I was working on the cluster machines, minding my own business in vi and matlab, when the following cryptic message is echoed to my screens:


Message from syslogd@bramble06 at Tue Dec 4 05:03:54 2007 ...
bramble06 kernel: [43308.265745] Uhhuh. NMI received for unknown reason a0.

Message from syslogd@bramble06 at Tue Dec 4 05:03:54 2007 ...
bramble06 kernel: [43308.327237] You have some hardware problem, likely on the PCI bus.

Message from syslogd@bramble06 at Tue Dec 4 05:03:54 2007 ...
bramble06 kernel: [43308.401250] Dazed and confused, but trying to continue


Ooookkkk... thanks, kernel! Values of beta giving rise to dom and all that.

I wonder if the machine is about to blow up or something. ^ TOP

Posted on 12/04/07 at 05:07:02 by dchaley (David Haley)
No comments