Archive for the 'This blog' Category

More interesting Technorati search results

Thursday, January 25th, 2007

A different brand of weird this time:

The Technorati search for my blog, showing both “20 links from 12 blogs” and “Sorry! No posts link to that URL yet.”.

Make up your mind?

My blog has been renamed, unbeknownst to me

Wednesday, January 24th, 2007

Screenshot of Technorati:

Technorati search for my blog, showing its title as “500 Internal Server Error” as opposed to “Domain of the Bored”.

Hmmm…

UPDATE 2007-01-25 00:08 PST: I just checked. It's fixed now.

Patches for WP-Cache

Sunday, December 31st, 2006

UPDATE 4:45: Ricardo Galli, the author of WP-Cache, has accepted my patches and released WP-Cache 2.0.20 incorporating them (along with one other fix).


I use the WP-Cache plug-in here on the blog in case that anything I post here should get dugg/linked-listed/reddited/etc. Over on Jeff Johnson's blog, Scott Stevenson says:

… Vienna … seems to get confused on these:

  • feed://boredzo.org/blog/feed/atom/

This prompted me to run my Atom feed through the Feed Validator. It mentioned that I was using the “copy” named entity reference and that that was undefined; that was easy enough to fix. It also mentioned that my feed was being sent as text/html.

Wait, what?

Sure enough, curl -D /dev/stdout -o /dev/null revealed that my feed was being sent as text/html; charset=utf-8. I looked in wp-atom.php (I use Jeff Johnson's Atom 1.0 version, in case you're wondering), and saw that it was indeed promising application/atom+xml. Funky.

I did something or other to wp-atom.php, then reloaded the Feed Validator. Imagine my surprise to discover that — in addition to still saying text/html — it still had the “copy”-entity-reference error!

Then I remembered that I use WP-Cache, so it was retrieving a cached copy of the feed. So I went to the WP-Cache Manager and dropped the cache. OK, curl says application/atom+xml now, so I went back to the Feed Validator.

Still text/html!

I tried curl again. Sure enough, it was back to text/html. WTF?

I also noticed this other symptom: When I loaded it freshly after dropping the cache, it had a bunch of headers like “Cache-Control” and “Expires”. I didn't know those were there. When I loaded it again (from the cache), those headers — among others — were missing.

The verdict was clear at this point: WP-Cache was eating my headers.

Further investigation confirmed the diagnosis, and several hours of even further investigation revealed the nature of the bugs (plural) that resulted in it:

  1. WP-Cache wanted to retrieve the headers from the response in order to cache them, but the function that it was using to do that (apache_response_headers) didn't exist, so it (correctly) skipped over all of that code. I added code to make it use headers_list when apache_response_headers isn't available.
  2. Even after I did that, WP-Cache didn't actually store its shiny new headers anywhere because it had not yet created the description object to put them into.

I have filed two tickets, each with a patch. I'm running with both patches now, and I provide the links to them so that you may run with them too. (The second patch fixes both of the problems above; the first patch is for an unrelated bug that I fixed while I was there.)

Questions on a test

Wednesday, December 20th, 2006

As work on the Negative Turing Test WordPress plug-in progresses — currently, the Options panel should work, though I haven't had the opportunity to test it yet — I find myself wondering what would be a good challenge to which commenters must respond.

Here's my current front-runner:

The eighth word in this sentence is wrong. Change it to be right.

Any other suggestions?

Plugging the comment spam inlet

Saturday, December 16th, 2006

I'm going to be working on the comment spam problem today. Attempt #1 is adding a Turing test to the comment form; you might not be able to comment while I'm debugging it. I'll update this post when it's all working.

UPDATE 2006-12-16: I've decided to host the project for attempt #1 at Google Code. It's called Negative Turing Test. You'll be able to get the fruits of my labor when it's done, and you can watch me work on it in the Subversion repo. (And yes, that means that I'm not debugging yet. You can still comment for now. ;)

One month of spam

Thursday, December 14th, 2006

“Comments in moderation: 2,920”

As measured from 2006-11-14T12:33 to 2006-12-14T12:44. I now have the fun of deleting them all.

UPDATE 2006-12-15: As of the end of -12-14, it was 3,268.

And in case you're wondering, not one spam made it to visibility, and not one legitimate comment was blocked. This is because I use the Comment Authorization plug-in for WordPress. Despite its disclaimers, it works just fine for me on WP 2.0.4. (And in case you're wondering what happens if somebody doesn't supply an email address: I get to approve it myself. It's rare, though.)

UPDATE 2006-12-16: OK, not quite. I just got done scrolling through the moderation queue to double-check that there were no legitimate comments in it (in preparation to delete them all), and I did find exactly two real comments being held there. One had no real email address associated with it; I don't yet know why the other one (the first comment on this post, in fact) wasn't approved. It may simply be that Mike had not yet received the self-authorization email in the time that the 370 comment spams after it came in. I wasn't looking at timestamps. ☺

Now I get to look into ways of stopping the spammers from even getting into the queue. I'm thinking of a JavaScript that dynamically changes the action of the form, or a reverse-CAPTCHA that makes you delete some text.

Any other suggestions before I start hacking?

Compact archives view

Monday, December 4th, 2006

This blog post about a corrupted Address Book came up on rentzsch's del.icio.us. While I was there, I noticed this awesome archives view at the bottom:

One row for every year, with every column being a number in the range [01–12].

I might adapt that for use on my own blog. I'm thinking maybe in my sidebar, with three-rows-of-four per year.

Way to go, Walt Dickinson.

1095 and still counting

Wednesday, November 29th, 2006

Since -11-14, I've been intentionally letting the spam comments pile up to see just how many I'll get in a month. I had over 500 in a week. I just looked, and currently I have:

“Comments in moderation (1,095) »”

By coincidence, this is 15 days — half a month — after I started. And yes, they are all spams; as most of you know, real people approve their own comments by email (I love that plug-in!).

-12-14, I'll report my total and see about stopping the influx. My current prediction is that I will have around 2100.

UNICEF getting desperate

Sunday, November 5th, 2006

Screenshot of the “moderate comments” screen on my blog, showing a spam from UNICEF.

And yes, that is the real UNICEF URL. I checked with a hex dump and a Google search.

This is not the way to get donations, UNICEF.

Too much spam

Saturday, April 8th, 2006

Anonymous comments are now off again. Too many spam messages get through when they don't have to sign up for an account.

*sigh*

(Note: The above referred to the old Blogger blog.)

Ah-HA!

Friday, March 24th, 2006

I found the problem that was preventing me from uploading things to my site at GeoCities. Turns out it was SurfRabbit, probably deleting some hidden input from the form.

Apologies to them for all the hate I've been putting on them lately. Soon I will be uploading the files that have been waiting for the problem to be resolved. This includes the attachments to several Radar reports.

Technorati tags: .

Hosting

Sunday, March 19th, 2006

So most of you probably know that I'm in the market for real hosting. I've identified two companies (a host and a domain registrar) that look suitable for my patronage.

If anybody has a better suggestion for either (or both) roles, please post in the comments. I need at least 100+ MiB of space (with room to grow, so call it at least 200) with Python and PHP support (I want to give self-hosted WordPress a try, and run some of my own things which will be written in Python).

Definitely do not recommend DreamHost. I've given up trying to get them to change their TOS.

UPDATE 2006-08-26 21:10 PDT: And it's done. The blog is now on TextDrive+Active-Domain. ☺

Technorati tags: .

About my grammar

Friday, March 17th, 2006

Most of you are used to me not capitalizing the first letter of sentences. I'll still be this way on IRC, at least for a little while longer, but you should get used to seeing me capitalize. I've been doing this in the past couple days with my replies to emails sent to the Adium feedback list, and starting today I'll be doing it with other emails and blog posts too. I'll be doing it with everything eventually.

You know, I actually used to capitalize when I started on the internet. Guess I got lazy. Funny how things come full circle, huh?

I hate spammers

Sunday, March 12th, 2006

you may remember that I have comment moderation turned on, to fight spam. when a comment comes in (as usually happens after a new post, because new posts appear on the front page and the spammers watch it), it gets sent to me by email, and if it's spam, I reject it.

today, I got two moderation requests (for spam comments) in my email, followed by two email notices that those comments had been PUBLISHED!

take a look at Even More Hello Worlds. there they are. I deleted them, of course.

can anybody suggest a blog host other than Blogger or WordPress.com?

Technorati tags: Blogger, spam.

Even more Hello Worlds

Saturday, March 11th, 2006

I posted something similar before: The worst possible Hello World. in that post, I presented a completely awful implementation of Hello World, which I wrote to disprove the notion that more lines of code == more productive coder.

I got to thinking about it yesterday, and decided that a new post was in order because a 50-line Hello World probably won't look like much to a non-coder (e.g. boss) without some point of reference. so I wrote a webpage on the topic: Hello World, cut four ways. I present four different Hello Worlds (including the original Worst Possible Hello World), and explain why the first three are bad and the last one is the Best Possible Hello World.

Technorati tags: , .

Regarding Apple Bug Friday

Saturday, March 11th, 2006

I've developed quite a backlog of bugs and feature requests to file. so I'm going to do ABF differently, at least for awhile.

You're used to seeing my ABF posts titled “Report-an-Apple-bug Friday! N” (for N = 1–∞). Henceforth, a post so titled means that the bug was filed with Apple that day (which is consistent with all my ABFs so far). But, starting today, I'll also file bugs on days other than Friday, so as to whittle down my backlog and give Apple that much extra lead time to fix these. Blog posts for such bug reports will be titled “Apple Bug Friday! N”. This tells you that the bug was filed previously, and is only now being blogged because today is a Friday.

The “Apple bug Friday!” posts will come at a rate of one per week, except when two or more bugs are similar (for example, I have a couple of kevent bugs to report that will be doubled up on next Friday). And if I find a new bug, and it happens to be on a Friday, I'll do another “Report-an-Apple-bug Friday!” post.

Comments are now moderated.

Monday, January 23rd, 2006

I wish all blog-spammers imprisonment.

henceforth, when you try to comment on my blog, it will be sent to me to be moderated. I promise I'll be judicious, only deleting spam and never editing a legitimate comment.

UPDATE 2006-08-27: The above applies to the old Blogger blog, not here (yet).

Audio version of ‘Compression and archive formats’

Monday, January 16th, 2006

I made my earlier blog post into a podcast. It's just under ten minutes long, and in chaptered AAC format. Have a listen.

I used ChapterToolMe to do the chapters. It's nice.

Run from DreamHost

Friday, January 13th, 2006

so I've been pursuing new webspace (but not very much, I admit — flipping through hosting providers' websites all day is not my idea of fun). Colin turned me onto a provider called DreamHost, during their '777' promotion — an entire year of shared hosting for under $10 (following which year, the price went up to the regular price of $9.99/month). sounded like a good deal, so I investigated.

I found a couple of clauses in their TOS and their domain registration agreement that concerned me. so I emailed them, one issue per email, and got replies stating that they would fix the problems. that was in November 2005.

this month, seeing that neither issue had been fixed (I had been checking from time to time during that span), I emailed them again. following is the email I got back from them, in full, unedited (except that I HTMLised it and removed their sales address). it includes my email, quoted in full, which provides all the details.

continued…

Hello,

On Wed, 11 Jan 2006, you wrote:

I emailed you on 2005-11-15 or 2005-11-16 (I'm not sure which, as I used the website form) regarding two issues with your agreements:

  1. the TOS says that there is a $49.95 set-up fee for all shared hosting packages. the shared hosting packages comparison page says that several of the packages have no set-up fee. one or the other needs to be changed.

  2. the domain-registration agreement says:

    22. GOVERNING LAW

    THIS AGREEMENT SHALL BE GOVERNED BY AND INTERPRETED AND ENFORCED IN ACCORDANCE WITH THE LAWS OF PROVINCE OF ONTARIO AND THE FEDERAL LAWS OF CANADA APPLICABLE THEREIN WITHOUT REFERENCE TO RULES GOVERNING CHOICE OF LAWS. ANY ACTION RELATING TO THIS AGREEMENT MUST BE BROUGHT IN ONTARIO AND YOU IRREVOCABLY CONSENT TO THE JURISDICTION OF SUCH COURTS.

when I emailed you about this previously, 'Jeff' replied:

We're actually based in Los Angeles, California.

when I challenged this statement by citing the above quote, 'Micki' replied:

Thank you for pointing that out becasue at one time we did have canadian empolyees I will go ahead and have the devlopers edit that.

when will these issues be fixed?

I have passed this information along to our Abuse team for you.

Thanks,

John


DreamHost Sales Team   +   [sales email address deleted] "We host your dreams"   https://panel.dreamhost.com/signup/ http://www.dreamhost.com/

run from them. (btw, in case it's not clear: I am not, nor have I ever been, a DreamHost customer. but I was planning to be.)


UPDATE 2006-01-27: I just checked, and they have fixed their domain-registration agreement. it now says the State of California and the 'Federal laws of United States of America'. still no progress on the TOS, though.

Fie on spam

Thursday, January 12th, 2006

I had to delete a couple of spam comments on the previous post. So if you're wondering why there are two deleted comments there, that's why.

If this keeps up, I'm going to enable word verification, which I don't like because it's a barrier to screen-reader users. Spammers begone!

UPDATE 2006-08-27: Note that this refers to the old Blogger blog, not the current blog.