The Annals of Mac North

Archive for the ‘Programming’ Category

The blag is back. Hope you folks enjoy reading. If you use an RSS reader (like Google Reader), you can automatically see and read any new updates without actually having to come here. Just click the the ‘RSS Posts’ link to the right.

I hope you like the green and the clouds and come around anyway. It’s the only way to read the archives. Man, I had no idea there were so many posts.

In the last post, I mentioned that I went looking for a better project host than SourceForge or BerliOS. Well, I found a different host and only time and experience will tell if its better than the two leading sites. I give you bbgun :-)

Well, here it is! Today was the day that added my previous ‘blog’ entries form the PHPNuke forum. Feel free to click around and read things from the old days.

The Python code is working, but not pretty or optimized (but we all know Jackson’s rules of optimization, right?).

Quirks I’ve noticed so far:

  • If the post name is a continuation (ie has ‘Part [NUMBER]’ in its title), it doesn’t exist as its own page. You can read the content if you use the calendar or archives links, but if you try to click on the post name to go to its page, then you’ll get a 404.
  • If I edit one of these phantom posts, it’ll become normal and its link will then exist and be clickable.

But, it’s good enough for a simple release, I think, in the spirit of release early and release often. So today I’ll search for a new host for this mini project. SourceForge and BerliOS aren’t exactly my favorites, so I’m going to try and find a new host.

I think I’m going to use python to write the database conversion script. It should be a good learning experience in unit tests and module details. This is in fact a test post to see how WordPress names its entries. Strangely enough, there are 2 date fields in the posts table, one for local time and another for UTC/GMT.

Why didn’t they just use UTC and keep an offset, I don’t know, but I need to figure out how the thing works to write the correct conversion subroutines. . .

Much to Drupal-developing Dave’s disappointment (I’m sure), I’ve decided to give Word Press a whirl for my net presence. I’m a sucker for the archaic interface, and it’ll keep only the truly interested reading :-P

It’s been a long time since I’ve bothered posting anything, and I think I remember writing that I wasn’t going to do so any longer. But I’d like to extract my pseudo-blog from the forum and re-work it into something actually more blog-like. And once that happens, I’ll prolly start calling this a blag.

I’ll get to learn some simple PHP and MySQL syntax since I have to convert the PHP-Nuke database into something that I can insert into the Word Press database. *shudder* I wonder if there are any python modules that would help with this…