Category Archives: Uncategorized

Apple Pages, PDF, and Lulu

I’ve been writing something since January, and would like to get it printed. Lulu has consistently been highly praised to me by various people, and everything I’ve seen from then has been impressive.

This evening, I signed up with Lulu and started to put together a sample printing of a subset of what I’ve been writing. It’ll be pretty exciting to see this in print. Yes, I’ve written a few other books, but somehow writing something non-technical is an entirely new thing, and feels like my first book all over again.

So I uploaded the file, and was greeted by an unfriendly message telling me that the resulting file was no good, because it was produced in Pages on OS X. Huh? I thought PDF was a reasonably standard format. Why do they hate me?

I looked around, and found this page, which suggested all I had to do was open the file in a plain text editor, and remove the reference to Pages and to OS X. So, a few seconds with Vim, and the file was acceptable.

So what I’m wondering is whether the resulting printing will actually be ok. I mean, is there something about Pages PDF files that is intrinsically just not going to work for Lulu? Or are they just rejecting it because they don’t like Apple? Or … um … some other reason?

Anybody out there written a document in Pages, done the “export as PDF”, and then successfully printed it via Lulu? I’d love to hear from you

ApacheCon EU 2008 CFP

We’re delighted to announce that the Call for Papers for ApacheCon EU 2008 is open, and ready to receive your submissions. We’re looking for talks about any of the many Apache technologies, and the various things surrounding them.

ApacheCon will be held 7 April through 11 April, 2008 at the new Mövenpick Hotel Amsterdam City Centre. We were there last year, and it’s a great location in walking distance of a lot of fantastic places. I walked to the Van Gogh museum, but that’s probably a bit of a long hike for some folks.

Anyways, we’d like to see your submissions, so that we can make it yet another great conference.

And don’t forget that registration is still open for ApacheCon Atlanta, where I’ll be giving my half-day mod_rewrite tutorial. So register, before it’s too late!

Mail.app and mailbox corruption

For the last few weeks, each time I have woken up my laptop, or connected to the network, Mail.app has sent a message. I heard the whoosh sound of it going out. It barely registered. I guess I assumed that it was just sending something that hadn’t gotten sent the last time I was working. No big deal.

Then once or twice I got perplexing error messages. I’d get an error that said that it couldn’t send a message, but it wasn’t a message from me, it was a message from someone else – something I had received several days earlier. While this was very odd, for some reason I didn’t put much weight on it. I was busy with other things, I guess.

Well, the middle of last week, I got one of those errors – a message to the entire IS department from the CIO’s admin assistant. And then a couple hours later, she emailed the department apologizing for resending a message that was a week old. My slow mind finally put things together.

So it seems that Mail.app had lost its mind, somewhere along the way, and was moving email from a received folder to the outbox, from which it was getting resent, with the original headers – so my email address was in no way associated with the message, but I was assuredly sending it.

With some further experimentation we determined that, yes, every single time the network disconnected and reconnected, a message was popped over to the outbox and then redelivered. We tried several solutions. What eventually worked was removing the “~/Library/Mail/Envelope Index” file, and allowing Mail.app to rebuild it on the next startup – a process that tool roughly 25 minutes. And the problem hasn’t reoccurred since then.

I can only figure that the file was somehow corrupted, and the boundary between mailbox folders was somehow smudged, allowing messages to get moved to the outbox. Make any kind of sense?

What was especially weird was that the messages were, it seemed, randomly chosen from the various folders, not all from one place, and not even all from the same email account – I fetch mail from 2 different places via imap.

Anyways, fixed now, but hopefully this will help someone else having the same problem.

MYTH: Pretty URLs == Search Engine Optimization

Having become a bit of a self proclaimed expert on mod_rewrite, I spend an inordinate amount of time answering mod_rewrite questions on #apache, on irc.freenode.net.

Unfortunately, much of that time is utterly wasted on something known as “Search Engine Optimization”, or SEO. SEO is an industry that has grown up around profound ignorance about how search engines work, and the basic theory goes like this. Certain URLs are “bad” and others are “good”, and you need to use mod_rewrite to convert “bad” URLs into “good” ones. Bad URLs are those that contain “?” and “&” and “=” and other non-alphanumeric characters. Thus, one must use mod_rewrite to create URLs that lack these characters.

This is all very well except for one thing – it’s nonsense, utterly untrue. Now, it may have been true 10 years ago, but since then, search engine algorithms have gotten better, and it’s just not the case any more.

Below is a comprehensive list of the search engines that matter:

* Google

The algorithm used by the search engines in this list goes basically like this: If your content is worthwhile, other people will link to you. Therefore, sites that have a lot of links to them are good sites and should appear at the top of searches.

That’s it. Nothing to do with the characters appearing in the URL. So if you’ve paid some SEO firm a great sum of money to increase your search engine ranking, the chances are very, very high that you’ve wasted that money.

And yet, it seems that more than half of the questions that we field on #apache have directly to do with this false belief in the principles of SEO. This is a great shame, since there are actually some people with legitimate questions, and they have to wait for the nonsense.

Now, notion of “good URLs” does have one redeeming quality. URLs that are easier to read to someone over the phone, and easier to remember, have a certain amount of value in marketing. This is undeniable. For this purpose, Apache provides the Redirect directive, whereby you redirect the easy-to-remember URL to the actual URL.

Another useful technique is to actually design your website with non-convoluted URLs from the start.

However, none of these techniques will improve your search engine ranking if your content isn’t good. Content is important. Your URL isn’t important.

I realize that there are folks who are convinced of the necessity of creating “pretty URLs”, and reading this article won’t in any way dissuade them. The reasoning seems to go that everybody is doing it, and therefore it must be right. I’ll not waste your time with explaining the fallacy in this position. I will, however, direct you to the page that Google themselves have compiled to tell you about how their search algorithms work.

And, yes, I know that there are actually other search engines that matter. Their ranking algorithms are not so very different, and even when they are, the people programming them are not so stupid as to be unaware that almost every site on the web is composed of applications that load content out of databases, and are therefore likely to have URLs containing query string characters. So de-valuing sites that contain those characters in their URLs would be exceedingly counterproductive. Give them some credit.

Updated Sept 20 18:43: Note that I’ve updated the title of this article, due to some of the feedback in the comments. I concede that there may be people in the “SEO” industry who are not snake-oil salesmen. I can even somewhat believe that all the satisfied customers never make it to #apache, and the folks who are there are the very ones who received bad advice. It’s more than a little damning that every SEO website that I’ve looked at is full of terrible advice. Presumably, then, the folks who are are good at their job are just being secretive.

Bedtime Stories

Bedtime Stories
06-Sep-2007

Late at night,
flashlight under the covers,
Ms. Nalletamby pacing the corridor.
Lights out, boys! Don’t make me get the tackie!

Giggles, and stories.
Dreadful stories of the terrs,
coming in the night, burning the farms,
for what? We didn’t know.

Of course nobody believed them,
but they were good stories.
Lots of blood and fire, and breaking windows.
So exciting.
But he didn’t seem excited, so much as

homesick.
worried.
terrified.

What did I care? Maumau was long over,
and was probably mostly a

myth.

Just stories.

Ms. Nalletamby storms in, shouting
What do you have? Give it to me! What is it?

A letter from home.

History

As I sat in the Detroit airport on April 26th, I observed an older couple sitting across from me. They were hard to miss. It was obvious that, although they had been with each other for 40 or 50 years, they still enjoyed each others company. I wish, now, that I had given them what I wrote. But I had just started writing poems, and didn’t think that anybody would like to read what I wrote. But, looking back at this, I think maybe they would have appreciated it.

History
April 26, 2007
Detroit Airport

She reads
The Life Of Abraham Lincoln,
laughing with delight
at the antics of Abe
and sharing passages with him.

He reads
The Federalist Papers,
smiling happily to be with her,
his glasses
two full moons
in front of his eyes.

In love, still,
40 years on,
on their way to Europe again,
like that first time, so long ago.

The world has changed around them
but they remain
the whole world to each other.

As I Stand At the Prow (A Pantoum)

Since listening to The Larger Bowl, I’ve been wanting to write a pantoum. It looks like it would be an interesting challenge, and I like the notion of using the same phrase with different nuances. I discovered several pantoums, including a few that Wikipedia linked to, that were non-rhyming, and this gave me hope, since I’m not nearly a good enough poet to write rhyming verse that doesn’t sound really hokey, and do things like rhyme “difficult” with “join a cult” and equally absurd things.

So …

What follows is, technically, an “imperfect pantoum,” since I fudged a little bit on the closing stanza, which is supposed to be in a particular relationship with the opening stanza. But, since it’s my first one, and since I’m not much for writing in forms, I think that I’ll forgive me for that.

As I stand at the prow (A pantoum)
September 4 2007

As I stand at the prow
and look out to sea,
I wonder what I will leave behind
when my wake has faded.

And I look out to sea,
hoping to catch a glimpse of land.
When my wake has faded,
there’s nothing but me and the sky.

Hoping to catch a glimpse of land
is not sufficient motivation to go on
when there’s nothing but me and the sky
to mark that I passed here.

Is not sufficient motivation to go on
the sailors that I carry with me?
To mark that I passed here —
nothing but hubris.

The sailors that I carry with me,
their well-being, love, and life suffice.
Nothing but hubris
feeds the longing for more.

Their well-being, love and life suffice
and the time spent with them
feeds the longing for more
and lends joy to the voyage.

And the time spent with them
and the wonder of what we will leave behind
lends joy to the voyage
as I stand at the prow.

Rush, Riverbend

Last night we went to see Rush at Riverbend. It was not quite as awesome as when I saw them in Columbus, but it was still a fantastic experience.

I’ve been a Rush fan for nearly 25 years, and know almost everyone of their songs. In more recent years, I’ve enjoyed their music even more, and have particularly enjoyed the last 3 or 4 albums, in which Neil Peart, the lyricist, has become a very mature and accomplished poet, writing insightful and clever lyrics.

What I discovered in Columbus was the amazing musical talent that each of the three men has – something I should have realized long before, but which became even more evident when watching them. Alex Lifeson is a phenomenally good guitar player, and the fact that he looks more and more like William Shatner as he gets older is only a little disconcerting.

The first half of the concert, I was somewhat disappointed with the playlist, which was very heavy on not-so-well-known songs, and light on the old favorites that people were shouting for. The first half consisted of:

Limelight
Digital Man
Entre Nous
Mission
Freewill
Main Monkey Business
Larger Bowl
Secret Touch
Circumstances
Between the Wheels
Dreamline

Finishing on Dreamline made up for the weakness of a few of the other choices – like Secret Touch and Digital Man. But, even with that, a powerful show.

The second half, on the other hand, rocked. There were a lot of disappointed people, due to the number of songs from the new album that they just released, and people seemed to want older stuff. When they said “another one from snakes and arrows” there were audible sounds of disappointment. I’m on the other hand, am already very fond of the new album, and they picked most of my favorite tracks from it.

Far Cry
Workin’ Them Angels
Armor and Sword
Spindrift
The way the wind blows
Subdivisions
Natural Science
Witch hunt
Malignant Narcissism (with a drum solo reminiscent of Pieces Of Eight, but quite a bit longer)
Hope
Distant Early Warning
Spirit of Radio
Tom Sawyer

Then, for an encore:

One Little Victory
Passage to Bankok
YYZ

This was my Beloved’s first experience with Rush, and she enjoyed it. We particularly enjoyed trading off the binoculars and watching Neil. For much of the time he was very stoic and focused on doing his job, but there were moments when he was clearly enjoying himself. My goodness he’s talented.

I have never seen that many people in one place smoking illegal substances. And there were several substances being smoked that I don’t believe I’ve ever seen before. Pretty sure the people standing right next to us were smoking crack, although having never seen it before, I couldn’t swear to it. But there was a lot of marijuana on all sides of us. Based on how I felt this morning, I think I may have caught quite a bit of it second-hand.

mod_rewrite class

I’ll be teaching a three-hour mod_rewrite training class at ApacheCon US, in Atlanta, Tuesday November 13th. There’s another day of training classes before this, on the 12th, and then the main conference follows, the 14th-16th. If you’re looking to get up to speed on mod_rewrite in a hurry, this is the place to be. We’ll be covering everything from basic regular expression syntax up through esoteric tricks with RewriteRule and RewriteMap and the whole thing, so come early, stay late, bring your laptop, and get ready to become a mod_rewrite wizard.

Class details here.

Conference website here.

Pricing and registration information here.