Entries are currently listed by descending date; to see them listed by ascending date, click here. To list by descending date in categories, click here.

To return to the whole blog, click the Blogolalia button at left.

August 31, 2003

Writer's blok

Flew solo today...20 lines or so, without having to check the book. LOL! Got a suggestion from the Blosxom plugins page to add Windows line-end conversion to blox; just one line. But that presented a small quandary...the Pascal Protestant in me worried about crossing a line between attaining Perl's laziness and rewarding damnable ignorance. (On the Mac at least, Pascal's pearly gates bear a sign: "You must be able to generate at least this much machine language to ride this code." ;-)

And I mean, Great Bog...knowing about formatting text with newlines is as fundamental as knowing which side of the road to drive on. One of those underlying pieces of infrastructure that defines the world of multi-platform diversity. Isn't it? Or is there a new day coming when anyone can be (and should be) be a user, and lusers will only exist due to bad design or poor documentation? Does every specific convenience carry with it this cost of obscuring broader knowledge? Which is it -- can of worms, or slippery slope?

See more ...

August 11, 2003

Perl-handled Revolver

Finally feeling like I have the tiniest grip on Perl. Finally! Almost as bad as trying to learn French....
After seeing that Blox 0.9 was just not going to treat <PRE> tags with any kind of grace, I started adding a means to block Blox from operating on a file. To my Pascal-ish mindset, this meant adding an if/then statement, as in: IF a blox-blocker exists for this file, THEN don't run blox on this file.

Looks like this in Perl:

if ($$body_ref =~ s/^$skipper\n//) {
  return 0;
elsif ($use_noblox_file) {
 if ($blox_ref{"$datadir$path/$filename.$file_extension"} == 1) {
   return 0;

Very much und ordnung; terraced fields; checklists; CS 101.

See more ...

July 18, 2003

Second Plugin

It's been awhile since I've considered the documentation to be the enemy, but this Perl stuff puts me in a mood.... I've just finished my second Blosxom plugin, and the frustration with Programming Perl mounts. Gotta get me a reference book by someone a bit less ADHD ;-)

This second plugin is every bit as lazy as the first.... I would just as soon write as few html tags inside these entry files as possible. Since the biggest tagging chore is marking each "paragraph" (or blockquote or dfn or whatever the main format is for the entry text) with an open tag and a close tag... why not let a plugin do it?

(Well, one reason not to let a plugin do it is trying to figure out how to make a plugin do it, when all you've got to read are chatty reference works by the Larry crew; about as speedy a guide as the Dictionary of the Khazaars....)

Since this plugin just makes a couple of substitution runs through an entry, its results aren't very sophisticated; we're not talking Tiki territory here. But for a mindless tool, it's not too bad....

See more ...

July 06, 2003


After slogging through a few plugins and much hand-waving over the reference books, I've got Blosxom tuned up to where I like it. I've replaced the sort routine with code to sort by filename (not mod date). The "seemore" plugin is being used to break up long entries and link to their permanent address for complete viewing. Not sure how seemore is supposed to work, but I modified it to use a distinct template flavour ("loner") for these links; works fine. Permanent links are provided in the entry title H1 heads.

And that's about it for Perling right now...gotta deal with WinXP in the shop this week, and I'm already weak ;-) Once I find a good syntax ref/cookbook, learning Perl might even be a bit of fun... despite all the irregular verbs.

(Actually, I'm so ashamed for the way I'm butchering the Blosxom scripts, I'll p'bly go overboard on Perl, obsessing until the day I can write a functional plugin ;-) But for now, the css is good, the js is good, the content is good. Just gotta keep tellin' myself, "It's good [enough]; its good [enough]; it's ...."

See more ...

July 04, 2003

Goddamned Army Jeep

I've always been a fan of scripting systems (except MS Office Macros ;-), so it seemed only fitting to learn a little Perl after moving to a *nix OS.... Big Mistake.

First, I didn't move to a new OS -- still too many clients on the old OS for me to risk putting something new on my main drives. Unfortunately, I was already hooked on learning Perl. So now to test my coding I have to run everything remotely (over a landline, f'r' Crissakes), which is about 1 step better than using punchcards.

Second, there's no such thing as "a little Perl" -- it's all or nothing. Larry Wall can talk about "natural language" all he wants, but there ain't nuthin' natural about Perl...unless maybe you're conversant with the code revealed by the Human Genome Project.

Third, Perl "textbooks" are just as dense and exception-filled as the language itself; something happens to the brains of people who code Perl that seems to destroy their ability to speak slowly and clearly. (Pay your $50 for Programming Perl and then try to find an actual definition of the ".=" operator, for instance.)

See more ...