I think it needs to be more widely publicised that you need to do something
like:
apollock@icarus:~$ GET http://ftp-master.debian.org/ziyi_key_2006.asc sudo apt-key add -
gpg: no ultimately trusted keys found
OK
to get APT to continue to be able to verify packages.
I think tomorrow I'll reconfigure Blosxom's
idea of what
timezone my posts are in from Australia/Canberra to US/Pacific. Carnage
and mayhem will undoubtedly follow on the
odd few Planet's that I am aware of being
aggregated by.
This blog has been semi-offline for at least a few hours. Sorry about that.
Through an interesting (at least to me) series of events, I discovered that my custom “popularity” hack/plugin was out of control.
It started earlier today when one of the the RAID discs on this server gave a SMART error. I’ve never been able to really judge whether SMART errors are “for real” or not—sometimes I’ve had a disc with a serious SMART error that, after another test, will run fine for another year or two without incident.
In any case, I wasn’t so worried, since this system is running RAID-5, so a single disc failing, even catastrophically, doesn’t result in any data loss or downtime.
I decided to take the disc out of the RAID and run some SMART tests on it. I marked it with mdadm as FAILed (mdadm —fail) and then removed it. Strangely, the disc first passed a short test with no problems, but then ceased to be recognized as having SMART capabilities at all.
I’ve had that problem before and never figured it out—the SMART capabilities seem to come back eventually. Not knowing what best to do, I just put the drive back into the RAID to see what would happen.
Since the disc had already been marked as FAILed, the reconstruction started from scratch. Although I’ve got a pretty good (2Ghz) CPU and plenty (2G) of RAM, kblockd and md0_raid5 are using up most CPU cycles and everything has slowed down significantly. Reconstruction seems to be proceeding fine, just slowly—it will take 24-36 hours at the current rate. Presumably it would be much faster in single user mode, but I can’t take this server offline.
In the meantime, I noticed that my blog had stopped responding entirely, while other blosxom blogs served from this same server were fine (maybe a little more latency than usual). So I started parsing through the differences in my blosxom installation and everyone else’s to see what could possibly be slowing things down so much as to time out the blog.
Eventually I identified the culprit: my custom-made “popularity” plugin, which reports the most popular entries on this blog and the number of hits they have received. I hacked it together several years ago. I think at the time I just wanted to see if it would work, with the plan to come back later and fix it. I guess I forgot the “fix it” part.
My popularity plugin creates a log file that it reads in each time the blog is accessed, and then appends to that file. Over the years, that file has grown to 17 megabytes. Although this is a huge waste of system resources, I didn’t notice it when the system was running at full speed. With the reduced performance from the RAID reconstruction, however, this meant that my blog never finished loading at all.
If you made it this far, you certainly deserve some sort of geek admin award. Congratulations. I deserve some sort of stupid admin award, myself.
P.S. Apparently I must have forgotten to check my horoscope today. The laundry machine flooded the basement when I didn’t check the sink into which the laundry machines empties. I should probably avoid sharp objects for the rest of the day.
No structured article ready to go today, so here's a random round-up of links from the last month: (links are on my page...)
Why is it that people use PHP?! Why do people entrust data to this nasty language? Why run mediawiki, for example? MoinMoin is much nicer. PHP is a nasty language, it's non-thread-safe, it's got awful syntax, it's OO design is awful, and debugging it is a small nightmare.
I suggest to the world that python is a much nicer language.
People that claim things in blog posts because they *think* they are right, when even the *SIMPLEST* visit to the softwares website tells you otherwise... As an example to this...
Sionide says that XMMS is a port of WinAmp, you can *clearly* see from the
XMMS Website that this is *not* the case, the
about page clearly states """It was modeled after winamp from the Windows operating system. XMMS is not a port of Winamp but was written from scratch by Mikael and Peter Alm."""
/me slaps Sionide about the face a bit. PLEASE DO AT LEAST A TINY BIT OF RESEARCH, DAMMIT.
*sigh*
Last night I attempted to get a few more of my packages up to date, specifically, misdn-kernel was my target.
This package builds, as good kernel module packages should do, a -patch and a -source package, the former being useful for patching a tree if you absolutely want to have the drivers inside a monolithic kernel, and the second for out-of-tree building.
What is puzzling to me is the amount of magic and Makefile hackery required to get a -source package to build correctly. The biggest problem I have is that the Debian standard kernels all have ABI versions and "flavours" (mostly subarchitectures) that get passed along as an EXTRAVERSION (first thing I'm not really sure of) by make-kpkg (or rather indirectly, by defining a variable that contains a variable definition for EXTRAVERSION). Problem is, people are not using make-kpkg to build modules, but rather use m-a or even invoke debian/rules binary-modules manually.
The latest release of
gnome-control-center contains an updated version of
gnome-keyboard-properties which is even more hostile to a customised keyboard configuration.
The fundamental problem has not changed: I need to customise the standard keyboard layout configured in
x.org (so far I have been using
xmodmap), but GNOME will override any change done in
~/.xsession.
With the precedent version I was able to remove all configured layouts from the dialog (at the price of an annoying warning dialog at every login:
#245460), but the new one helpfully forces me to have at least one valid layout.
So, what can I do to make my keyboard configuration GNOME-compatible? Bonus points if you know how to do this without root privileges (editing the
xkb database is not a valid answer).
Rar. Beware. I've now got the M&S USB missile launcher working under Linux.
I hate
libusb, it's very badly documented and
seems to assume you know the USB spec inside out. Anyway,
usblauncher-0.0.1.tar.gz
does the appropriate magic (if crudely) and includes a basic GTK2 Perl program
to control it.
Ian Jeffrey has also produced some code
that works in much the same way, but it's only a command line example and I
couldn't see a license that allowed redistribution attached to it. It looks
like he went about things in much the same way as I did though.
Somehow we've managed to accumulate a variety of Vegemite bottles. So many,
that we should have enough to last us until next time we get a chance to
restock.
I've uploaded new versions of whizzytex, binfmtc, cowdancer, pbuilder.I started using pbuilder-testsuite for my own packages.My scripts are set up such that unless testsuites pass, they won't be queued for upload.It took a bit of time until all those testsuites passed, but has a fuzzy warm feeling that I've tested those packages.Nice.
After
my last Drupal article in the German + international Linux Magazin(e) from early 2005, my new
Drupal-related article has been published in
PHP Solutions's
issue 1/2006 (13).
After I was back from a short vacation without Internet access, I was surprised to see a post by
Robert Douglass titled "
Uwe Hermann's Drupal article in PHP Solutions is out" on the
drupal.org main page. At that point I didn't even know that the article had been published ;-)
Robert wrote
a short review of the article which outlines the main content. In contrast to my last article which was a general introduction to Drupal, this one concentrated on some specific (probably more advanced) topics instead: multi-site install, l10n+i18n, search engine optimization, and AJAX(-like) user interfaces of the upcoming Drupal 4.7 release.
The printed article should be available in multiple languages (German, French, Polish and Italian, at least). There
might be a free online version as soon as the next issue of PHP Solutions is published, but I'm not entirely sure.
Thanks a lot to Robert Douglass for the review and to Drupal's Benevolent Dictator for Life
Dries Buytaert who reviewed an early draft of my article and provided helpful suggestions!
fEnIo learnt an important lesson about the kernel firmware loader: it (usually) does not work as expected for non-modular drivers.
The reason is that the
request_firmware() interface is synchronous. Since it's usually called in the initialisation section of drivers, the userspace firmware loader is not available yet if the calling driver is built-in in the kernel. The
request_firmware_nowait() asynchronous interface was designed to replace it, but most drivers have not been ported yet.
When a driver calls
request_firmware(), a
uevent is sent by the kernel to udev over a netlink(7) socket, requesting that a specific file is uploaded.
udevd runs
/lib/udev/firmware.agent, a simple shell script which will look for the
$FIRMWARE file in a few directories and then copy it to the designated place in the driver
$DEVPATH in sysfs.
If the driver is initialised before userspace is started then the loader will not be available, and the request will fail. A possible solution is to run udev in the early userspace environment (initramfs), but just compiling the driver as a module is usually simpler.
Gunnar,
I'm pleased to inform you that I stayed up until 11 am this morning (and slept
till 2 pm), and that the day before I was up until about 8 am (and again, slept
till 2:30). This is the first really bad sleep schedule I've had since
Oldenburg.
I'm glad that this makes someone happy.
New year, new colleagues:
Iain
Holmes and
Tomas
Frydrych joined
Opened Hand this
week. It's been great to watch Opened Hand expand over the months as when
I joined I was the second employee. I think we're a pretty great team
now,
Matthew has done well!
Day zero was a miserable failure (actually that is the reason I call it "day zero"). Again I slept in and accomplished only little (well, I packaged and uploaded ussp-push). But day one is tomorrow, I lie to myself. :-/ But as this is day zero, tomorrow must be day one, obviously.