Search Results: "Matthew Palmer"

9 November 2005

Matthew Palmer: Redhat Considered Harmful

I try hard not to hate Redhat, I really do. I don't visibly grimace when someone says "I'm running $REDHAT_DERIVED_DISTRO", and my first solution to "I can't get this to work on $REDHAT_DERIVED_DISTRO" is almost never "just install Debian,Ubuntu ". But Redhat makes it so hard to not beat them with a stick. For instance, I'm working on building a SOE for a client, and so I've got a bunch of scripts (calling random poorly documented and hard-to-find utilities) to help me do that. Naturally, I'm pruning the package list, which requires me to rebuild the list of packages which are on the CD. No problems, I can handle that. Oh, but the tool that builds the package list can't deal with the correct "ordering" of packages in the list. Why is ordering important? Because, and this will make you laugh, the installer can't actually deal with dependencies. Yes, that's right, anaconda will install your packages in any old order you specify, regardless of what is actually needed. Brain-damaged, certainly, but I've dealt with Windows, so this is ultimately a minor setback. The tools for building the packages lists are in a certain package, which I dutifully install. They then proceed to fail horribly. Why, do you ask? Because the script requires python modules from another package. Gee, wouldn't be handy if there was a mechanism by which a package could specify that it needed another package to operate? OH WAIT, THERE IS -- IT'S CALLED DEPENDENCIES, FOR $DEITY'S SAKE! YOU WROTE THE GODDAMN RPM SPECIFICATION, REDHAT, WHY CAN'T YOU ACTUALLY USE SOME OF IT'S FRIGGING FEATURES! But wait, there's more! Installing the package which contains the module doesn't actually make the module accessable to anything else on the system, because the module is installed in some god-forsaken, out of the way location, where Python fears to tread. You need to specify PYTHONPATH to make it work. Apparently someone was sure that specifying absolute paths in scripts (instead of letting the system search it's environment) was a bad idea, but didn't have problem with not putting modules in standard, well-known locations. Then, of course, the (other) tool segfaults. Why? Because it's reading an empty file. Wow. An empty file causes this thing to fall over in a screaming heap. Not "Sorry bub, but your file's empty" just an unceremonious segfault. Wow. Thanks. And that's even before we get around to actually doing an install...

6 November 2005

Matthew Palmer: The Internet is Not What It Seems

James, while I understand your anger, it would seem as though Hetracil isn't a real product, and is just a (fairly elaborate and subtle) hoax. Resources:

Matthew Palmer: Cleaning The Barbeque

Hi everyone, my name's Matt and I'm a BBQaholic. Seriously, I love to cook on the barbie. It's outdoors, you get the best smells coming off the searing meat and vegetables, and you can quietly put away a cold beer in the name of culinary exploration. So, during a visit to the hardware store today, I was suitably interested when I saw a product called "BBQ cleaner". Curious as to what might be so fantastic as to advertise itself as a cleaning product specifically and exclusively for use on my favourite cooking utensil, I took a look at the back. The first item on the "How To Use" instructions:
  1. Put on rubber gloves.
And there I stopped. Anything that requires rubber gloves to the point of adding an item in the usage instructions specifically to that end (rather than, say, a general blurb saying "wear adequate eye and hand protection whilst using this product" which is standard on everything down to and including toilet paper) is *not* going anywhere near a food preparation surface in my household, Thank You Very Much.

4 November 2005

Matthew Palmer: When Technology Goes Wrong

A dramatic title for a not so dramatic post. The Sydney suburban train network runs several sorts of rolling stock. The newest of these are the much-maligned "Millenium Trains", which bring local train users (all 18 of them) into the 20th century. One of the features of these technological masterpieces is an irritatingly obsequious voice which announces the current and next stations on the train's journey, and an LED board displaying the same info. So far, so good. Of course, I was a little curious as to how the boards and little-miss-noisy were kept in-sync with where they were. I was thinking transponders, maybe something that the train guard did. Then, last week, I found my explanation. This train announced each station as being the preceding one. So, we'd stop at Central, l-m-n would announce "This train will stop at Museum". We stop at Green Square, l-m-n says "This train will stop at Central". And so on. At least the voice and the board were in sync, even if the voice and reality were eyeing each other off at quite some considerable distance... My goal now is to find a train which is announcing stations for the wrong line completely, rather than just one station behind on the current line -- but considering I only get these new-fandangled millenium trains a couple of times a week (they spend the rest of their time in the sheds being fixed, apparently) it may be a while.

26 October 2005

Matthew Palmer: A Licence to Use Your Genes?

Science magazine (by way of Boing Boing) reports that "20 percent of human genes have been patented in the United States". As the Boing Boing article's title says, "20% of your genes are belong to them". So, it seems to me, that there are two reasonable courses of action:
  1. Attempt to get the USPTO to accept a claim of prior art, since you've been doing this gene thing for quite a bit longer than whoever filed the patent. This is probably doomed to failure, since the USPTO appears to be collectively sticking it's fingers in it's ears and singing "Mary had a little (cloned) lamb" any time anyone mentions such inconveniences as "prior art", "obviousness", or any of those other pesky impediments to granting a patent.
  2. Apply for a licence from the rightful (hah!) holder of the patent, to duplicate, use, and distribute (well, for some of us) the patented "technology". To be helpful, when you send your letter requesting a patent licence, you should also include a list of the names, addresses, and home telephone numbers of people in your local area who you honestly believe to also be infringing on the patent.
I wonder what the effect of a patent holder not responding to your request for a patent licence would be? In a fair world, I would expect the patent holder's ability to later enforce the patent (at least against you) would be diminished -- but in a fair world, this particular blog post wouldn't be written. So, what happens if the patent holder denies you a licence to use their patent? Well, I would imagine you must cease and desist from any use, reproduction, or distribution of the patented technology. I can see the headlines now: "$PHARMECEUTICAL_COMPANY demanded that I kill myself". Maybe a few people who would prefer the eternal sleep could do it, just to make the point. But even without that, the effect of a few thousand licence requests (received with local phone books attached) should be appropriately entertaining to watch. This whole "patenting the human genome" thing almost makes me want the whole "Intelligent Design" thing to come out in favour of the Christian Fundies. If courts were to rule that there is a reasonable belief that God (or some other convenient Deity) did in fact design us noisy bipeds, then that would, surely, count as a fairly obvious prior art claim. For that matter, what if these drug companies are infringing on a celestial patent on the human genome? An omnipotent being capable of changing the heavens and the earth isn't someone whose patents I'd want to infringe.

24 October 2005

Matthew Palmer: Could *you* pass 8th grade math?

Apparently, I could: You Passed 8th Grade Math Congratulations, you got 10/10 correct! Could You Pass 8th Grade Math? I'd kind of hope I could pass 8th grade math, though -- I'd be quite ashamed if all of those hours sleeping through MATH187 lectures were wasted... I'll tell you one thing the people who wrote the quiz didn't pass, though -- standards-based Web Design 101. It's some downright hideous HTML they generated for the results page. I've tidied it up a lot, but it's still not particularly satisfying. Ugh.

23 October 2005

Matthew Palmer: Parents Can Be So Cruel

SWMBO got a letter recently regarding her car insurance. It was, quite impressively, signed by the MD of the insurance company. His name? Terry Towell.

16 October 2005

Matthew Palmer: Why Ubuntu Loves dpatch

Joey, I strongly suspect that the reason that Ubuntu loves converting packages to use dpatch is because the version control tools that are being built in their secret workshops will be aimed around keeping patches separate, and it's reasonable to assume that Ubuntu will be heavily supporting the Wig-and-Pen dpkg source format, considering the originators of the format (and the fact that it looks like pretty decent technology).

Matthew Palmer: Debian Patch Management Smackdown

So, Joey Hess managed to stir up a bit of a discussion on the relative merits of patch management systems used in Debian packages. I guess it's a bit of a change from having this discussion on debian-mentors, at least... So I was thinking that it's time to really have a head-to-head of all of the methods that people have to manage their patches -- from the purpose-built systems, like dpatch and cdbs, to revision control systems and the scripts layered on top, to whatever personal processes various Developers may have. To assist in working out what to write, and to make comparisons a little more structured, I've jotted down a few ideas about what areas we might like to compare different systems against. So, tell us all your systems and why they work. Feel free to wax lyrical. Describe how your system works (even for the established programs, for people who aren't already familiar with the way they work), and describe how they match the areas above. I'd also be interested in hearing about systems you've tried and decided they weren't up to snuff. I'll be attempting to at least aggregate, if not summarise and combine, the opinions of everyone who contributes. If your blog is syndicated on Planet Debian, Just Blog It. Otherwise, either e-mail your ideas to me or send me a link to your blog or other page where your brainwaves are saved for posterity, and I'll include them in my "analysis".

Matthew Palmer: Nokia 3120 with Gnokii

Holy $DEITY! A technical post! So, I've finally broken down and gotten a USB data cable for my Nokia 3120, after a brief scare where I thought I'd lost the phone (along with the voluminous phonebook therein), and a desire to see if I could get a bit of GPRS narrowband data love happening. Not wanting to boot the 4GB virus, I turned to gnokii for help. I got it working, but it was a bit of a trial. The first thing to consider is the cable. As far as I can tell, a lot of phones aren't really capable of talking USB directly to the PC -- they're wired for (presumably) RS-232 (or some other primitive serial protocol). So, the USB cable that you get will quite possibly have a USB-to-serial chip built in to it. The popular DKU-5 cable supposedly has a pl2303 chip in it (supported by the module of the same name), but the "current model" cable is the CA-42, which has a chip supported instead by the cdc_acm module in Linux 2.6 (2.6.10, at least, which is what I'm running). I've got the CA-42 cable, so these instructions are based on that, but I'm led to believe that the DKU-5 is somewhat similar. A side-effect of having hardware in the cable itself is that the cable is detected as soon as you plug it in to the computer, even if there's no phone connected. This weirded me out for a bit, but is nothing to worry about. So, you plug in the cable, and it should be autodetected. The dmesg command will tell you exactly what went on. The cdc_acm module should create a ttyACM0 (or ttyACMN, anyway) device node for you in /dev. Remember this -- you'll be seeing this material again. So now the time comes to play with Gnokii. I installed the version from Ubuntu Hoary, which I'm running on my desktop, but quickly gave that away as Google told me that much better support was to be had in newer versions (0.6.8 being the latest and greatest). I was persuaded, and whipped up a quick backport from the current Debian sid package. Next, we configure Gnokii. Despite having plenty of comments, the example config file is a little short on useful tips for a complete ph0ne n00b like me, but after a fair bit of trial and error, I got things sorted out. Relevant settings in my ~/.gnokiirc:
port = /dev/ttyACM0
model = 3120
connection = dlr3p
That's pretty short configuration-wise, but let me tell you it was a trial to get those two settings sorted out. To take the third setting first, the connection setting is more than a bit weird. The default is serial, which I suspect is only for rooly trooly 9-pin D-connector serial ports -- not pseudo-serial USB cables. There is a huge comment block above this setting in the config file, and none of it made the slightest sense to me, so I just played until I got it right. I suspect that dlr3p is the setting to use for all USB cables, but I can't be sure. The second setting (model = 3120) won't actually work unless you patch your Gnokii with the patch I just submitted to Debian. (Presumably this patch will end up in Gnokii upstream at some stage). It's a fairly trivial patch. Practically, I think you could put another compatible model number (like 5140) in the config file and it'd work OK, but I'm a neat sort of person. The port setting is a simple derivation from the device file created when the USB cable was plugged in. If you're using a DKU-5 cable, I think you'll need /dev/ttyUSB0 instead.

Next.

Previous.