In the post “Welcome to goer.org 3.0”, I mentioned a number of reasons for the redesign. Better permalinks. Better comments. Upgraded feeds. Not hideously green. All sorts of good stuff.
I also upgraded from Movable Type 2 to Movable Type 3. MT3 offers a number of improvements, such as a better web interface and a more sophisticated plug-in system. However, the truth is that I could have done the whole redesign in MT2. And I was reluctant to upgrade, because:
- I had already paid for MT2, and MT3 would have cost more money.
- MT2 could operate using flat files, but MT3 requires a database, which would have required me to upgrade my web hosting plan.
- MT2 was working Just Fine, Thanks.
But eventually all of these became not-true. First, MT3 became free for personal use. Second, my web host made MySQL available for all their plans, even the El Cheapo ones like mine. Third, Jacques alerted me that MT2 was not, in fact, working Just Fine, Thanks. The unpatched security hole was enough to convince me.
So it wasn’t enough to just start creating new posts using a new template — I also had to import all the old posts so I could shut down MT2 permanently. Unfortunately, technology has (surprise!) gotten in the way.
Importing the posts themselves wasn’t too bad. As long as you remember the simple rule of Movable Type upgrades:
- uploading your posts by FTPing them to the
import/
directory: GOOD
- uploading your posts via the “web upload” feature: BAD
then everything works out alright, mostly. I was pleasantly surprised to discover that even though most of the old posts use raw HTML, and all of the new posts use Markdown, MT correctly formatted them all. Unfortunately this cleverness doesn’t apply to comments, but I’ll take what I can get.
What’s more annoying is permalinks. The old site just had monthly archive pages, not individual entry archives, so it had permalinks that looked like this:
https://www.goer.org/2003/Apr/index.html#29
By contrast, the new site has permalinks that look like this:
https://www.goer.org/2003/04/the_xhtml_100.html
This is pretty yucky for a couple of reasons. First, unless I am reading the documentation incorrectly, MT3 changed its archive formatting syntax so that you have to represent months using numbers. Strings such as “Apr” are right out.
Ok, fine, I can use numbers for months, and I can even fix everything up with mod_alias.
But then there’s the second problem: all my old posts used anchors (the #29
part) in the permalink. What I didn’t know back in 2001 is that the anchor never gets sent to the web server, which mean I can’t use that information to redirect the old posts to its new location. (Oh, you could always try to do the redirect on an individual basis using JavaScript, but the search engines wouldn’t be able to follow, so screw that.)
So I’m doing the next best thing, which is to redirect each old-style link to the appropriate monthly archive page. Straightforward enough, although I am wondering whether I should put in some special cases for the two or three posts that had wider than usual linkage. For example, if someone links to the aforementioned:
https://www.goer.org/2003/Apr/index.html#29
then my poor webserver only sees this:
https://www.goer.org/2003/Apr/index.html
but I know that the person actually meant to go here:
https://www.goer.org/2003/04/the_xhtml_100.html
and not to some other post made in April 2003. I’m not sure what the proper thing to do is here, but I’m tempted to go with the ugly hack that will help most people and annoy the remainder, rather than the cleaner solution that will annoy everybody.
Anyway, this little tale of woe is all just a roundabout way of getting to my Laws of Computational Metaphysics. I used to have one, now I have two. I’m sure someone has stated these laws before, but here’s my formulation:
-
Information that resides only on a single hard drive doesn’t exist.
This one is the most important, since this one bites both geeks and non-computer geeks all the time. (Computer geeks: raise your hand if you’re older than 22 and you’ve never lost data.) Among non-computer geeks, only very very very smart people like my kid sister and my mother can be made to understand this problem. So for everyone else my default advice is not, “Get yourself a good backup system,” but, “Don’t store anything important on the computer, ever.”
-
Permalinks that contain an anchor don’t exist.
Law #2 has a narrower scope, but I think that amongst the web nerd set, it’s underappreciated.
Feel free to add more Computational Laws of Metaphysics in comments…