Fixing broken MT links after server move/database crash
This entry is for anyone who's tried to move their MovableType installation or had their Berkeley DB crash and discovered that once they resurrect their blog, all of the URLs for their entries have changed. MovableType 3.0 fixes this problem by changing how URLs for entries are created, but their are plenty of people out there who still feel the pain (MovableType 2.x users may wish to innoculate themselves).
meta's database crashed a couple weeks ago, which means that a lot of her older entries were no longer displaying properly nor were comments working properly on those older entries, so I wrote a quick script that is similar to the innoculation technique above. This script can be used to 'fix' broken links after a Berkeley DB crash, or it can be used to move your entries from one server/host to another. It requires that you have the old monthly archive pages pre-crash/move, and once it's done it creates a single file that you have to upload to your Web server. That's it.
I've included the source code of this program in the full entry, but I don't expect people who find this entry to know how to pull apart the code, because if they did, then they would probably be able to write it themselves, so feel free to leave me a comment if you find yourself in a situation similar to the one described here and I'll tailor it to your needs.
I mostly did this because it took less than 30 minutes, and I really need to practice my python.
Continue reading "Fixing broken MT links after server move/database crash" »









Not that he needed any given the 2003 Tour de France in which in raced with a broken collarbone, but Tyler Hamilton, after dropping out of this year's Tour with a back injury, now gets to stare at a shiny gold medal. He edged out US Postal's Ekimov (silver), and Bobby Julich (bronze).
My trusty stainless steel crown that I've had since I was eight or so finally gave out on me. I have a fancy new porcelain crown that was made using a $12K camera that captures a 3-D image of the tooth, and then some 3-D modelling software that generates an appropriate crown for the tooth, and finally a $100K dual-diamond bit cutter that mills the crown out of a block of porcelain (of the correct yellow hue for my teeth). I was rather impressed, in a dorky way, how computer technology is taking over the dentists office.