Archive for August, 2001

My Love/Hate Relationship With C

Ah, more programming gripes with C. High level languages can really simplify certain design patterns, but in a low or medium level language they can be a real bitch…

What I’m trying to do is build a singleton for a web-based system that holds of hashtable of operations being run - basically a list of which user mailboxes are locked. This would be very straight-forward in a single executable context - just use a static variable. But how am I going to pull this one of across multiple binaries running on a webserver? Shared memory is a possibility, I’m already using a segment of that for fast loading of pre-parsed configuration files.

If anyone is actually interested in this, tune in tomorrow to see if I solve it. Or the next day. Or the next…

(also posted on k5)

Comments

The Case of the Missing Filesystem.

So my laptop has some “issues” with the Linux APM stuff and spontaneously crashes once in a while, which kinda sucks because it just smashes all the files that I’m working with (and with KDE loaded a lot of open files are screwed). So I went looking for ext3 to cut down on the long boot-up times…

…And to my surprise couldn’t find it. Oh I found it at the Redhat site - RPMs only, linked into their version of the kernel with all of their patches on it. But no diffs or anything like that. Hell, even the utilities for managing ext3 filesystems are all in RPM format. What gives? I mean, I’d switch to XFS/JFS but my drive is already ext2 and an easy migration would be sweet.

(also posted to K5)

Comments