« October 2003 | Main | December 2003 »

November 2003 Archives

November 5, 2003

Spending time on the R.A. Lafferty Devotional Page

I am trying to get the Lafferty scene a little more active, and installed some new forum software. After looking around I figured phpbb is the way to go. I actually believe that BurningBoard is the better software, but it's commercial and for my current needs phpbb looks like it's sufficient.

If you like check out the newly structured R.A. Lafferty Devotional Page right on this site.

November 9, 2003

Writing importers is my plight...

It just so happens that in every damn job I had, I had to write some sort of importer. I have really started to hate it. It just appears that I am spending more time writing importers for my applications than writing the application itself. Now with my own company I try to offload this sometimes and that even works sometimes. Hurray. So what do I do im my free time ?

I write an importer....

Since I upgraded the forum software on the R.A. Lafferty Page I put off the import of the old boards for some spare time.
I figured I was gonna do it manually some time...
But now I've got a volunteer (a fellow Lafferty fan) who undertakes the task to prepare the old forum entries in CSV, so that I can import them into phpBB which is running on MySQL.

So I have to massage the flatfile a little to create entries into four distinct tables to geneate users, topics and posts.

The problem is, I don't know how to write perl. The old unix tools cut and awk can't handle the CSV because they don't deal with quoted text. Perl could do it but the syntax is something like

 @new = ();
push(@new, $+) while $text =~ m{
                "([^\"\\]*(?:\\.[^\"\\]*)*)",?  # groups the phrase inside the quotes
              | ([^,]+),?
              | ,
}gx;
push(@new, undef) if substr($text,-1,1) eq ',';
I can't deal with that kinda shit.

So I made the (IMO) heroic effort and made mullecut, off the original textutils cut which is now able to handle quotes, escaped quotes and can deal with linefeeds, carriage returns and stuff. This makes this possible:

echo "ab""c";"abc";NULL; 0 | mullecut -f 1,4 -d';' -q'"' -e'\\' 
ab"c;0
or
echo "ab""c";"abc";NULL; 0 | mullecut -f 1,4 -d';' -q'"' -e'\\' -r 
"ab""c";0
Did I say I was very pleased with myself :)

November 18, 2003

Boring Empty Void

Is this weblog going down the path of all other weblogs ?

Well maybe yes, maybe no.

Currently I need to spend almost all my time emptying the old appartment and renovating/ filling up the house with stuff.

November 19, 2003

Pulled the XCode weblog entry

I didn't even know I published it! I looked on my weblog and there it was. I must have pushed Send accidentally

Well after ZNeK previewed it I agreed with him that it was not a good start for the series, so I actually wanted to post it at the end of the series, which is soon to be written... :)

So now I pulled it and will repost it later this year or early next year.

November 25, 2003

Getting a Kick out of Power Metal

I am tried the very cool Shapeshifter from Unsanity and I am running the Power Metal look from Swizcore Studio which looks really nice.

About November 2003

This page contains all entries posted to Nat!'s Web Journal in November 2003. They are listed from oldest to newest.

October 2003 is the previous archive.

December 2003 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34