Categories
Technology Weblogging

Tool independence: The export format

The first challenge to moving a weblog is getting a snapshot of your weblog data in a format that can be imported into the new tool. To create an export that works with most tools, at least for moment, you’ll want to export your existing weblog’s data using the Movable Type import/export format.

WordPress doesn’t have a MT export built into the tool (more on this later); as I mentioned in a previous post, I used Scott Hanson’s new WordPress to MT export script to export my posts, categories, comments, and other data. Once I copied his file, I edited the parameters given in the script, providing the same username, password, and database name I added to the wp-config.php file. I also edited the file to use the default line break within Movable Type, __default__ , rather than ‘markdown’, which is the text format tool currently set as default in the import tool. These items are easily found in the script using a text editing tool.

When I load the export script page into a browser, the exported data prints out to the page, in a technique made popular by Movable Type. Once the export is finished (a message displays at the end of the page), I used the browser’s File/Save As functionality to save the page to a local file called bb.export.

(Another approach is to use the Unix wget utility on the command line as follows: wget http://somedom.com/import.php. This saves the exported data as ‘import.php’ and you can the use the data as needed. )

After the file was created, I FTP’d it to a newly created sub-directory, import within the MT cgi-bin directory. All that was needed at that point was to open up my MT installation, select import/export, and pick the import option–choosing to use myself as default author. the default post status of ‘publish’, and since all the entries had categories, I didn’t need the default category. I also have titles for all entries, so didn’t need to fill in the start and end title HTML fields, either. Clicking the link to do the import should load the data, and the data migration of the tool porting is finished.

(See the Movable Type documentation for more information about importing data into a MT weblog.)

A regular WordPress supporter, Carthik also has a version of a WP-to-MT export tool that uses WordPress global variables for the database variables. You can access it here. Carthik had his export tool finished before Scott started working on his, but had withheld publication because he’s now working on what he and Matt Mullenweg, the lead WP developer, are calling a “lossless XML export”–a import/export format that is going to be included with WordPress 1.3, and licensed as GPL for others to use if they wish.

One reason that the WordPress folks are creating this new format is that there has been problems with the existing MT format in the past. I have exported and imported data several times using this format and haven’t had issues recently, but others have had problems, specifically with fairly fragile points of breakage in the scripts such as dependence on a dashed line to separate entries. When I first used the import format to move from Blogger to MT, the import kept stopping as it would run into a sequence of dashed characters and the import functionality thought, “Well, that’s it – she’s done.” Once I edited for this problem, another would surface, making my move from Blogger to MT the most painful tool move I’ve done.

However, there is no denying that the MT export/import format is the most widely supported format in most weblogs. To have tool independence, in this case you need to depend on a specific tool import/export format…at least until enough vendors can support a replacement.

Technical issues of clean transformations aside, a challenge with a new universal format is the underlying data model each tool shares. For instance, a ‘post’, that has 0 or more ‘comments’ and at least one ‘category’ is more or less a standard model of data across all weblogging tools. However, beyond this simple core model, each tool does differ widely.

For instance, Movable Type supports keywords but not key/value pairs. Keywords are just a listing of terms associated as values to the weblog, while key/value pairs have both a term and an associated value. WordPress supports key/value pairs, and I use these in the ‘about this entry’ box in the top-left of the page. When I moved the data to the Movable Type test site, I lost this key/value pairing. Even if a new export format included these key/value pairs, there would be no place to receive it in the target weblogging tool–in this case Movable Type. The most we could do is strip the key portion of the pair and just take the value, and this would defeat the usefulness.

Now, if we use something like RSS or Atom to act as the transport medium, it might seem as if these would then ensure a common data model because most tools support one or more of these these feed syntaxes. The assumption is that if the tool supports the feed, they have to support the data that provides the feed, and therefore a minimum data model is guaranteeed. Right?

Well, not necessarily….

If a syndication feed supports complex or hierarchical categories but these are optional, and one weblog tools supports them, but another doesn’t, using the syndication feed to export the data from one tool to the other will result in loss of data; using XML won’t improve this situation, or prevent the loss of data.

That’s where the MT import/export format comes in handy at this time. The power behind it isn’t in it’s syntax, which is problematical–but in the underlying data model. The MT format has, by virture of it’s wide usage, defined a minimal shared model that most tools support. An XML-based version of this model could then provide a more robust import/export format. This is a win/win for all tools, and one that we as customers should encourage.

However, until a good majority of tools support the use of this XML format, whether it’s based on RSS or Atom or even something entirely new – the de facto standard for most tools now is the existing MT regular text-based format. This is what I will be using for the rest of these writings.

Categories
Technology Weblogging

Weblog tweaks: tool independence

Recovered from the Wayback Machine.

Once upon a time, a weblogger was defined by the tool they used as much as the type of material they published and the style of writing they favored. We were, and many still are, a fiercely loyal bunch when it comes to the software that help us publish our thoughts to the world.

But things happen.

We barely brushed the afterbirth from comments before the spammers hit; people became successful writing the software, or got tired of writing the software, and that changed the dynamics between tool giver and tool taker; open source tools came, and went, and then returned, either with a whisper or a shout. Over time, the packs that moved en masse from one tool to another begin to splinter here and there, and the tenuous bonds of loyalty between tool maker and tool user began to fade. Now, to most people, weblogging software is just that…software. And moving between tools is less a declaration of independence than a simple convenience.

When changing tools, instead of:

I am moving from Movable Type to WordPress now!

Hear me! I am moving now! Watch!

Are you watching?

Here I go!

It becomes:

Oh, I forgot to mention last week, I moved to WordPress.

There will always be core groups of people loyal to one type of software or another; more power to them because they also provide the core support for the product and we all need a little help from time to time. But for most of us, all we want is to write in peace and not have to clean our buffers of 1001 spam messages every morning.

Of course, no one wants to spend their time, moving their weblogs from tool to tool. However, If you truly want to focus on your writing (or your photos, or your garden stories and recipes) then you have to be willing to move your weblog to a new tool rather than stay with one that makes you unhappy. A tool that pisses you off is going to claim a whole lot more of your attention than the day or so to move it.

It’s also not good for the tool makers or vendors to have people continuing to use their tool because they, the webloggers, feel ‘trapped’ into using it. These people will express their unhappiness: probably frequently, and most likely noisely. There’s enough customers for all the tool providers, and none of them needs an unhappy customer. Moving to a different tool could be a far, far better thing for your customer to do, then they have ever done before. I know that my previous weblog tool providers have certainly felt that way about me.

However, rumor has it that porting your weblog between tools is a major undertaking similar to, as I wrote someone recently, dying and being re-born. Painfully. And it’s true that moving your weblog between tools is not the easiest thing in the world–but it doesn’t have to be overly difficult either.

I have moved several people through a variety of tools and environments. I have written a couple of hundred tutorials and tips for the various weblogging tools I’ve used, including how to move your weblog from Tool A to Tool B. But I’ve never tried to separate out the commonalities between the tools when I’ve created these writings–what it is about each tool that is very similar. That’s what I hope to do in this set of essays I call my WeblogTweaks – the last of my writing on weblogging technology.

First up: Moving from WordPress to Movable Type.

I created a brand new MT installation this morning, and I’ve finished the port of the entries using Scott Hanson’s WP to MT export script. In addition, since I’m moving from a PHP-based tool, I’m preserving the dynamic nature in the new environment, and have incorporated the new MT PHP configuration into this weblog; the pages you see are being served dynamically. I’ve also preserved the URLs from WordPress to MT–no redirect or fancy foolin’ will be needed to maintain the permalinks.

Now, I’m working on the sidebar. In my current weblog, much of this is fed by WordPress specific plugins. Whatever functionality can be handled by tags will be replaced by tags, but there are some functions unique to my specific setup. Rather than drop them, I hope to convert them into MT style plugins using the new PHP-based plug-in API.

(And the transparent calendar looks rather nifty on the faintly patterned background. Hmmm…)

But that’s for tomorrow, as is the detailed writeup on the work I did today. I’m beat and I want to write something non-techy before bed.

Caveat: I’m not recommending people move from tool A to tool B just because they can; nor am I recommending any one tool over another. Each tool has good points and bad, and both are relative to the person using the tool and their specific needs. And here’s a hint: all weblogging software is buggy. It is the nature of software–there is no magic fairy that sprinkles pixie dust on weblogging software that makes the bad stuff go away. If there was, Microsoft would have hired him or her a long time ago.

Categories
Technology

Floating computers

Like Don Park, I am less than impressed with the design of the new G5, even with the thought of a laptop with a 24 hour battery:

I can ducktape it to a small powerboat battery and use it as a laptop. Wow, a laptop with 24 hour battery life and replaceable keyboard. I am starting to like the idea.

Though an interesting design, the iMac G5 seems to ignore usability in favor of the “I’m so cool, and sexy, too” factor.

For instance, the monitor is firmly attached to the computer, which means you really can’t add or replace the monitor if you wish, as you can a traditional non-iMac desktop. You can’t do this with a laptop either, but a laptop you can take with you on the plane or to the coffee shop. I suppose you could swing this baby over your shoulder and take it with you, but I have a feeling this might trip security sensors. And probably revoke your warranty.

You could use it in your living room as a DVD movie player, but I would think a nice flat screen TV with DVD player would do better. Nothing says “floating in air’ like 50 inches on the wall.

I know the company is marketing to a new class of people with too much money to spend–the new generation iPod “Sex and the City” anti-geeks who drive heavily overpriced BMWs specifically because they’re compatible with their tunes devices–but no design, no matter how ‘enchanting’ is going to make up for overall capacity and cost effectiveness.

But then, I’m an old generation Ford Focus driver who hums under my breath as I drive.

Categories
Technology

Oh Horrors!

I wrote two posts related to politics and feminism, and another related to philosophy, with a few pictures thrown in. I must now write on technology.

Movable Type 3.1 did release today, right on schedule. Congratulations to the 6A group. When I mentioned doing the export for MT from WP last week, another person emailed me telling me he was already at work on it. And work he did — finishing it up in record time. When he publishes the script I’ll post a link to it. I’ve already tested it with my own weblog, porting from WordPress 1.2 to MT 3.1 and it worked a treat–and I have some odd data elements in my installation of WP.

So now once I get an official copy of Movable Type 3.1 (without signing up for TypeKey being the stubborn lady that I am) I’ll finish that section of the tutorial on tool independence, covering other aspects of moving from WordPress to Movable Type 3.1.

And vice versa. No worries on those wanting to go the other direction. I’ve already started porting three volunteer’s weblogs from Movable Type to WordPress (and other environs), in my space to cover that aspect of the writing. I’m holding on porting their actual sites until WordPress 1.3 releases — I’m using the alpha/beta code for my work, but would prefer using released code for other’s live weblogs. However, I don’t want to wait on the writing until 1.3 releases. I need to be finished quickly.

Oh, and I’ve decided to drop the style switcher, so next time you read this, your favorite style will probably be gone. I think I’ve found the look I can live with and that looks decent in all browsers. It has no rounded corners, and minimal shadowing and it doesn’t look anything like Kubrick — but at least it’s uniquely me. I hope that you can all live with what you see. If not, then I hope you all can lie very effectively. I will take either and be content.

Scott Hanson has posted a link to his WP export script and a write-up at his weblog.

If this gets easy enough, you could eventually switch weblogs weekly, just to keep everyone guessing. Become a true weblogging polygamist.

 

“Sure, some Movable Type users migrated to other tools. And, of course, it is sad to see them leave. However, we feel strongly that the Movable Type community (and Six Apart as a company) has only become stronger since these changes. And if those who migrated do want to come back, we always have that import button. That freedom is why we have also had export since almost day one.”

Deja vu, all over again. From Mena’s Corner.

Oh, and heads up folks: the dynamic PHP page feature only works with standard MT template tags — no plug-ins. Save yourself hassle and heartache trying to get this one to work.

Categories
XHTML/HTML

Evil is as evil does

Recovered from the Wayback Machine, where you can see this all working.

When I was overcome with an urge to run through the woods, howling at the moon, like a banshee or some kind of wolf woman (albeit one with extremely short hair), I knew it was time to relegate my little HTML retro to the secondary page.

Marquee is evil

blink is also evil

The FONT tag is evil

This page is full of words that blink and crawl and this makes me EVIL!

Sheep are okay.