Any Unix gurus care to help me with mod_rewrite?

I’ve watched my search engine traffic decrease steadily for the past few months since I changed blogging software. It seems most engines don’t care much for the super-long arguments this software passes in its URLs.

The solution is mod_rewrite, and I think my syntax looks correct, but it’s not working for me.The goal is to fake out search engines to make them think they’re looking at static files. Search engines are reluctant to index database-driven sites for fear of overloading the site. Since I can’t tell them not to worry about it, I have to make the site look like a static site.

To that end, I created a section at the end of my httpd.conf file:

# rewrites for GL

RewriteEngine on
RewriteRule ^/article/([0-9]+)$ /article.php?id=$1 [NC,L]

This line should make the software respond to Thursday’s entry (https://dfarq.homeip.net/article.php?story=20040902200759738) if it’s addressed as https://dfarq.homeip.net/article/20040902200759738.

Once mod_rewrite is working, in theory I can modify the software to generate its links using that format and watch the search engines take more of a liking to me again. But I’ve got to get mod_rewrite going first, and I’m stumped.

Any expert advice out there?

Thanks in advance.

I\’ll try to check in later this weekend.

It’s a long weekend, and it’s going to be a busy one.

In the meantime, for those of you who like old trains, here’s a link: Standard Gauge Blog. Primarily it’s dedicated to the old Lionel 2 1/8-inch “Standard Gauge” (there wasn’t anything standard about it, in reality). But if you want to talk about showstopper trains, the biggest showstoppers were this style.

I like this guy because he acknowledges there’s more to the world than MTH (and MTH isn’t even the center of the universe!), he talks to experts, and once he even showed how these things were/are made. Worth checking out.

The big question: PC or Mac?

I haven’t stirred the pot in a while, so to prove that I am a professional writer after all, I’ll go tackle the most inflammatory question I can imagine, something that makes Bush vs. Kerry look like a game of paddy-cake.

What’s the better computer, a PC or a Macintosh?OS X closely follows the history of the first Macintosh in that the first version showed lots of promise, but had lots of problems, probably shipped too soon, and lacked some important capabilities. But Apple, to its credit, washed its dirty laundry in public, fixing the problems and adding capabilities. And now, OS X has a reputation as something that “just works.” And it has something to back it up with.

Windows XP, well, that joke about 32-bit extensions to a 16-bit graphical interface on top of an 8-bit operating system originally written for 4-bit computers by a 2-bit corporation that can’t stand 1 bit of competition is almost true. Microsoft bought the 8-bit OS from a company that may have stolen it. And while Gary Kildall‘s first operating system was 4-bit, he may have written CP/M from scratch. But I digress.

Unlike Apple, Windows XP tries really hard for backward compatibility. And for all the stink about the things SP2 breaks, I’ll bet you a dollar you can go download the 1981 edition of VisiCalc for MS-DOS and it’ll run just as well on your three-point-whatever gig Pentium 4 running XP as it did on the first IBM PC. And if you can find old copies of WordStar and dBASE II and Turbo Pascal, chances are they’ll run too. Old programs that break are at least as likely to break because of timing problems with CPUs that are almost a thousand times faster than they expect as they are because of Windows. Probably more.

Sure, you’ll find programs that break, but you’ll probably find a thousand that work for every one that breaks. Especially if you limit yourself to titles that aren’t games.

This is a blessing and a curse. The blessing is that software you bought almost a quarter century ago still runs if you need it. If you think that isn’t important, I’ll introduce you to one of my clients who’s still using dBASE II. It sure is important to him. The curse is all that spaghetti code you need to keep those billions and billions of old programs running.

I have a little bit more sympathy for Microsoft when I remember that Windows XP is really OS/2 1.3 with DOS bolted on, and Windows 3.1 and 98 bolted on next door.

Just a little.

When you look at it that way, is it any wonder that sometimes when you plug in your digital camera it acts goofy?

But truth be told, more often than not, your mouse and your digital camera and all your other stuff works, whether you plug it into a Windows box or a Mac. And when it doesn’t work, it’s every bit as infuriating on a Mac as it is on a Windows PC. When Windows has an error code, it spits one out in hexadecimal. The Mac spits out an error code in decimal. I guess that makes the Mac friendlier.

But I guess it doesn’t matter whether I say “deleterious” in English or in Pig Latin. It’s still not going to be a word you’re likely to have heard today, either way. And there’s a decent chance it’ll send you reaching for a dictionary (or Google).

I’ll be frank: I hated OS 9 and OS 8 and everything else that came before it. I tried to get the Mac Toss turned into an official olympic sport. If there are any old Macintoshes in the pond in front of the office building where I used to fix Macintoshes, I know nothing about them.

But Apple knew it was b0rken and threw it away and bought something better. I still think they bought the wrong something better and would have gotten here a lot sooner if they’d bought BeOS, but they bought NeXT and got Steve Jobs back, so here they are.

All things being equal, I’d go with a Mac, if only because it’s got a Unix layer underneath it.

But all things aren’t equal. Macintoshes cost a lot of money. And when you’re 2 percent of the market, you don’t have a lot of software to choose from. I know. I had long love affairs with Amiga and with OS/2 before I threw in the towel and installed Windows. And it wasn’t until 1997 that I actually used Windows as my everyday OS.

When someone hands me a disk, I can read it. When someone tells me I’ve gotta try out this new program, it runs.

On the other hand, there’s virtually no problem with viruses and spyware on the Macintosh. If I want to spy on people or cause enough damage to make the front page of USA Today, I’m going to set my sights on 90+% of the market instead of the Macintosh’s 2%. Being a minority can have its advantages.

But, after living for years with good computers and operating systems that were years or even decades ahead of their time but had no software availability, I run Windows most of the time and exercise caution to keep my system clean. I don’t use Internet Explorer, I keep my virus definitions up to date, I don’t read e-mail from strangers and don’t open unexpected attachments, and I don’t install freeware software unless it’s open source.

And guess what? I don’t have any problems with my computer either.

I know and respect other people who’ve gone the other way. For me, there never was much choice other than PC hardware. I can afford a Macintosh, but that’s money I really need to be putting towards paying off my car and my house sooner, or saving for retirement. Or any number of other things. I’m a legendary tightwad.

Other people may have had their own other reasons for making the same decision.

Getting rid of some rust on old toy trains

I’ve seen some old tin 6-inch Marx cars in nice condition, but I sure seem to have a talent for finding Marx rustbuckets too. I also have a set of very nice Lionel tinplate–nice except for their rusty couplers.

Professional restorers remove rust by bead blasting. How do you deal with rust if you don’t happen to have a sandblaster laying around?A number of products exist catering to auto restorers. They claim not even to damage paint in some cases. I’m told that Oxisolv works safely on toy trains, or at least on Marx trains. Finding the stuff is another story. Every place I’ve looked wants as much to ship it as they want for the liquid.

As I was poking around under my kitchen sink this evening, I came across a household cleaner intended for removing rust stains from bathtubs. But the label also said it would remove rust stains from tools. Not seeing any difference, chemically speaking, between soaking a pair of pliers in the stuff and soaking a Marx train wheel, I broke out my rustbucket Marx 553, removed its wheels, put them in a plastic container, and dribbled on enough cleaner to cover it.

An hour or so later, there was visibly less rust on the wheels and axles.

Most of these products use a mild acid that readily eats away iron oxide, but has little effect on plain old iron. If you’ve heard the legends about Coca-Cola dissolving rusty nails or freeing rusted bolts, it’s the same principle.

I’m not quite brave enough to try it on the painted surfaces, and different brands will almost certainly vary, but this is a cheap way to at least improve a car’s wheels, especially if you happen to already have the stuff on hand.

Is this Apple a surprise to anyone?

So, Apple unveiled its new Imac today. (I’m sick of improper capitalization. We speak English, not C++.) To no one’s surprise, I’m sure, it has a bigger screen. And I’m sure it’s not too surprising that they crammed everything into the unit next to the screen. It’s the next logical step, after the lamp-shaped Imac.

So how’s it gonna do?I think it has potential. Do people really want laptops because they can carry them everywhere they go, or do they want laptops because they can move them about the house freely and don’t have to have a dedicated “computer room”?

I suspect to most people, the latter is more important. Most people have better things to do with their lives than surf the ‘net at Starbucks or Panera Bread.

This new Imac can go on a small desk in a study or spare bedroom and not take over an entire wall the way computers have been doing since the late 1970s. As long as there’s a way to add some memory, and there are ports for people to plug in their digital cameras and their portable MP3 players and a printer, they’ll be happy.

Who knows, maybe demand for wireless printers will increase too.

Some analysts have said they don’t think all-in-one is the slam dunk it was in 1998. I agree it isn’t, but small is a slam dunk. Witness the explosive popularity of cube PCs. Yes, it flopped for Apple, but Apple’s cubes lacked the flexibility, there was too much confusion about their expandability and what exactly they were compatibile with–I designed a Mac network for a client right around the time the Cube was released, but the rumor was it would only work with Apple monitors. That alone killed the deal. They bought G4 towers instead, which would work with NEC and Viewsonic monitors.

But the other problem with the Cube was the price. Yes, it was cheaper than a G4 tower. But the price difference wasn’t enough to make people willing to take a chance on it. And besides, if it was cheapness you wanted, there were at least four companies willing to sell you a PC for half the price of a Cube. Emachines would even sell you a PC for half the price of an Imac.

And that’s the biggest problem I see with this new Imac: price. $1299 gets you in the game. Ten years ago, that was cheap. But this isn’t 1994. Emachines didn’t exist in 1994, and while a Mac would cost you more than a Packard Bell, there wasn’t much price difference between a Mac and a Compaq or an IBM. Compaq or IBM usually had one model that sold for a hundred or two less than the cheapest Apple, and Apple usually wouldn’t give you quite as much CPU speed or quite as much disk space, but if you walked into the store with $1500 in your pocket, which was pretty much the selling price of an average PC, you could walk out with a Mac just as easily as you could walk out with something that ran Windows.

What will Dell give you today for $800? 2.8 GHz, 256 MB RAM, 40 GB hard drive, CD burner, printer, 17-inch monitor, and some software.

For the same money, Apple gives you 1.25 GHz, 256 MB RAM, 40 GB HD, CD burner, and a 17-inch display. No printer.

For $1,299, the price of the new Imac, Dell gives you twice the CPU power and twice the memory. Just not as much wow factor.

Yes, I know the Pentium 4 is a horribly inefficient processor but the design does scale surprisingly well, and efficiency alone won’t make up a 1.6 GHz speed deficit. Besides, if you’re willing to spend four figures, you can get an AMD Opteron. Just not from Dell.

Will this Imac sell? Yes. Will it do much to increase Apple’s 2.2 percent market share? I doubt it. The main audience is going to be people with aging CRT-based Imacs who’ve been holding out for something with a G5 in it. They’ll buy it, find it’s a lot faster than their old one and takes up less space. Of course they’ll like it. But it’s still the Amiga problem. The Amiga didn’t take over the market because it it only sold 6 million units. The Amiga was a commercial failure because those 6 million units sold to 1.5 million people.

People will ooh and ah over how little space this new Imac takes and how convenient its wireless keyboards are. But most of them will buy a Dell because it’s faster. Or cheaper. Or both. Maybe they’ll complain about how much less convenient it is, but it’s just as likely they’ll forget about it.

It happened with the first Imac and it happened with the Cube and it happened with the dual G4 and it happened with the G5. Who are we kidding? To some extent, it’s been happening since 1983 when the Lisa came out. People see the machine and it knocks their socks off until they see the price tag. The classes buy it anyway, while the masses figure out how to get by with something cheaper.

History is going to repeat itself one other way too. Somewhere in the Far East, I guarantee you a no-name maker of whitebox PCs is designing a box that puts the brains of the outfit behind the LCD, just like this Imac. Maybe the thought didn’t occur to the designer until this week. Maybe the designer has been working on it for months already.

It will look a lot like this new Imac, only it will have an AMD or Intel processor in it, and it will run Windows. It might be three months before we see it. It might even be six. But it will appear, and it will be priced under $1,000.

It will sell. And within another six months, everyone will be doing it. This new form factor may not come to dominate the market, but it won’t take much for it to outsell this new Imac. A small percentage of 97.8 percent is likely to be a lot bigger than even a large percentage of 2.2 percent. Compared to the new Imac, these clones will look like a runaway success.

And Mac fanatics will be screaming about another Apple innovation stolen by someone else.

How did I miss Symantec buying out PowerQuest?

PowerQuest, best known as the makers of PartitionMagic, got bought out by the monolith Symantec–soon to be the only large maker of utility software in the universe–back in December.

This eliminates DriveImage as a competitor to Ghost, gives Symantec a killer consumer app in PartitionMagic, and also gives Symantec the enterprise-class PartitionMagic-like apps.PartitionMagic was a good product. I hope Symantec doesn’t dummy it down too much. But for the past year or so, I’ve been booting Knoppix and running qtparted whenever I need to resize partitions. Long ago I made a boot CD containing the DOS version of a semi-recent copy of PartitionMagic (whatever the last version I bought was), but qtparted handles filesystem types that PartitionMagic won’t touch, so the free alternative is more useful to me. Besides, it’s legal for me to use qtparted on any of my computers or anyone else’s. I don’t think PartitionMagic can be used on more than one PC without additional expense.

If the secret ever gets out about Knoppix and qtparted, PartitionMagic stands to lose a big chunk of its market.

What day is it again?

Passing a few minutes before a movie started tonight, my girlfriend and I went into a nearby store to look around. And what did we find?

Christmas stuff.

Am I smoking crack, or is it still August?I probably shouldn’t encourage them, but I bought some stuff. Many of those collectible holiday village sets happen to be sized about right for O scale Lionel trains. Those that aren’t are usually sized about right for HO scale. I doubt it’s an accident. Around 100 years ago, J. Lionel Cowen convinced everyone that a train belonged around the Christmas tree. These days, ceramic villages and figures are more popular than the trains, and the big brands are every bit as overpriced as anything Lionel or MTH have made in the past decade, but they’re still sized so they’ll look right if a Lionel train escapes from the attic and ventures into the neighborhood. New traditions have a better chance of usurping older traditions if they fit in with them first.

These weren’t Lemax or Department 56. They were cheap knockoffs. This particular series of knockoffs pairs up O scale-sized figures with HO scale-sized buildings. Not my thang. I’m anything but a scale bigot but half-sized buildings get on my nerves.

But I bought a few figures. They came four to a package for a dollar. You’re lucky to pay less than $4 per figure at a hobby shop. For my four bucks, I got 16 figures.

Yes, the figures are dressed in heavy coats and there’s snow on the bases they stand on. So I won’t have them on the train layout at the same time as my open-top convertible 1:43-scale cars. But the availability of the figures makes it just as cheap and easy to make winter scenes, just like the 50-cent Homies figures make it cheap and easy to make summertime scenes.

Useless trivia answer: If you’ve ever wondered where 1:43 scale toy cars come from, they come from trains as well. The British decided that O scale should be 1:43, and Hornby decided it would be nice to be able to sell cars with which boys could populate their cities. The cars became popular toys in their own right, and the 1:43 scale was copied by other companies, so 1:43 scale cars lived on long after Hornby stopped selling O scale trains.

End useless trivia.

Where was I? Oh yeah. Useless Christmas merchandising in August. I decided I wanted 16 vaguely O scale figures in winter dress more than I wanted $4.24.

But I passed on the wreaths and the holly. I can’t think of any good use for those in my basement.

VMWare’s P2V is mildly disappointing but can still save the day

The order came from higher up: Migrate these seven servers to VMWare. That would be easy if you were running Linux, FreeBSD, OS/2, or basically any operating system not made by Microsoft. Give me an OS/2 hard drive out of a 386 with Microchannel, and I can have it booting on a P4 in a matter of minutes and probably have it operational in half an hour.

But Windows ties itself to the hardware too tightly. So you need a $10,000 software package to migrate it. That package is P2V, which stands for "PC to VMWare." I assume.Actually it’s a $2,000 software package with $8,000 worth of training. Whether you need that training, well, that’s another story.

P2V advertises that it’ll take an image of a server, replace all of its hardware drivers with drivers for the hardware VMWare emulates, and off you go.

It does the most critical part of it just fine. It doesn’t matter if the original server was SCSI, IDE, or something nasty like RLL or ESDI–unlikely, but I’ve seen what desperate times sometimes cause to be put into a production server–and it’ll get it booting on VMWare’s emulated LSI Logic SCSI card.

The biggest thing it doesn’t do is migrate your TCP/IP settings to the new network card. If you happen to have an AMD PCNet-based NIC in the server you’re migrating, you’ll have no problems, but the chances of that are slightly better than my chances of finding an 1897 Carlisle & Finch train set at that estate sale on Itaska Street this weekend. More likely, you’ll have a 3Com or an Intel card in your source server.

That may not be a problem for you. But if you’re migrating a web server that’s hosting twelve dozen sites, each with its own IP address, you’ll be stringing together some curses after paying that kind of money.

Worth it? It is in the sense that a telephone saves you thousands of dollars in travel costs, so you could justify paying $600 for it. If you’ve got a fleet of aging NT4 servers and an expensive maintenance contract to match, and it’s over someone’s dead body that the applications they host will go away, you can save that 10 grand in a fiscal year, get those servers moved to newer, better hardware that’s cheaper and easier to maintain, and get them moved in less than a week. It could take you nearly that long to get NT4 running on brand-new hardware. Once.

So, yes, you can justify it to your accounting department.

As far as the time involved, there’s the time it takes to image and re-image the server. That depends on how fast your network is. There’s the time it takes to build a helper VM that P2V runs on. It’ll take you about 5 minutes per server to set up the VMWare instance. If you’ve got new hardware, it’ll only take a few minutes for P2V to run. Then you have to boot the VM, reconfigure anything that needs reconfiguring, boot it again, and repeat until you fix everything that’s broken. Sometimes that’ll be nothing, and sometimes it might be a lot.

I budgeted 4 hours per server. A couple of them took less than an hour. A couple took 8.

Do I wish it were a better product? You bet your boots I do. Was I glad to have it at my disposal this week? You bet that Carlisle & Finch train set I’m not gonna find this weekend I am.

Thanks to P2V, I get to do something fun this weekend instead of building servers.

Hey, score one for copyRIGHTS!

If you haven’t heard of the hilarious JibJab parody of “This Land is Your Land,” starring George W. Bush and John Kerry, click on that link, then come back here when you’re done laughing. I’ll see you in an hour or two.

Well, the supposed owners of the copyright on the original song weren’t amused, so they threatened a lawsuit. But the good guys struck back. Not only is parody permissible (are they gonna sue Weird Al Yankovic next?), but the good guys made a convincing case that “This Land is Your Land” is public domain!This was a case of a publisher trying to stack the deck in its favor to eke out a few extra years of copyright, trying to save 20 bucks, or both. The song was first published in 1945, but the publisher prefers to stick with a 1956 copyright, renewed in 1984.

JibJab’s goal was to protect its own skin, so the publisher is sticking by its 1956 copyright. Someone else will probably have to fight that battle.

Sadly, the way copyright law is now, it’s almost impossible for something to fall into the public domain except by accident, as in this case. But at least we have a demonstrable case of it happening once.

A political announcement from R. Collins

R. Collins Farquhar IV, aristocrat and scientist, would like to take this opportunity to remind you that declaring war on France is one of his campaign promises.

Vote early. Vote often.I understand that in some parts of the country it is customary for one to take three dead friends with you to vote. I appreciate any and all of your votes. Even those who are not aristocrats.

Now if you will excuse me, I must go play with my new aristocratic toys.