One of the most drudge-like tasks of writing a book is assembling the endnotes, but if there is anything even more tedious, it is converting those endnotes into HTML. But I promised readers of Dreaming in Code that I would do so — so many of the references are Web-based, it makes a lot of sense to provide them with working hyperlinks.
I’d hoped to have this done before the book was published, but I’ve only just finished. Ed Yourdon wanted me to do it; how could I let him down?
But in posting this material, I discovered something very odd. Sometimes WordPress simply did not want to upload a page (I’m using WordPress’s static page feature for the whole Dreaming in Code site). At first I thought I’d hit some undocumented limit on the number of characters, or maybe number of links, on the page; or, I thought, there’s so many links on these pages, maybe it’s overloading the cool WordPress pinging/trackback stuff, so I just turned all that off.
No go. Certain pages just would not save properly, the browser would just hang. By removing chunks of text I slowly zeroed in on the problem: three notes that contained the word “Python,” as in the programming language, were causing the trouble. If I removed them, no problem!
I just tried to post one of them here as an example and this instance of WordPress won’t allow it either — it generates a “file not found” message, oddly. A quick hunt through WordPress’s documentation “codex” offered no clue. Anyone have an idea? Is WordPress’s dedication to php so intense that it will not even allow a mention of the competition?
I couldn’t even use the word “Python” in the headline of this post — it caused the same error! I had to misspell the forbidden name in order to get this post to publish properly. Very odd.
UPDATE: Thanks to the commenters who pointed me to apache’s mod_security, which is plainly to blame, and not wordpress itself. A little creative escaping of the “P” in “Python” and I now have restored the previously unpostable endnotes. Live and learn…
Post Revisions:
There are no revisions for this post.