I came across Project Wonderful from Eric Burns. I read up on its advertising scheme and found it rather compelling. I have web space to sell ads, and given that Google's AdSense has been a disappointment, I thought I would sign up and give Project Wonderful a try.
I'll have to wait a while.
In trying to keep the system from imploding under heavy traffic, they're slowly expanding and I have to sign up for an invite to display their advertising. On the form asking for the invite, they asked for an average number of page views per day my site gets.
I don't have a package like AWStats, Webalizer or Analog installed (being too lazy to install
and configure them). Instead, I have some home brewed programs that allow
me to trawl through the log files manually (which for me gives me a better
feel for what's going on anyway). I figured just searching for
screen.css would give a good indication of page views (since
it's used to render a page view), so I extracted the logs from a few days
ago and checked.
Thirty-seven page views.
I tried another day.
I went back to the January logs.
That might explain the rather lackluster results from Google's AdSense.
But in going through the logs, I did come across the following:
- Bloglines/3.1 (http://www.bloglines.com; 14 subscribers)
- Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 8 subscribers; feed-id=7978511864245132053)
- LiveJournal.com (firstname.lastname@example.org; for http://www.livejournal.com/users/bostondiaries/; 16 readers)
- InsaneJournal (email@example.com; for http://www.insanejournal.com/users/bostondiaries/; 4 readers)
- Feedshow/2.0 (http://www.feedshow.com; 1 subscriber)
- YahooFeedSeeker Testing/2.0 (compatible; Mozilla 4.0; MSIE 5.5; http://publisher.yahoo.com/rssguide; users 3; views 125)
Plus other feed readers that don't report the number of readers (about another 70) so my readership is up there, but primarily through outlets other than here.
Well then … perhaps I have to rethink the whole advertising thing then.
If anyone is wondering why: PHP's strpos() returns “false” when the second string argument does not occur as a substring of the first argument, and returns 0 when the second string argument occurs at position 0 of the first string argument. Thus, strpos( “/admin”, “/admin” ) returns 0, but strpos( “Cabbage/admin”, “/admin” ) will return a positive integer.
You're supposed to test the return value explicitly: “if( strpos( $a, $b ) !== false)”, but it only says that like five times in giant red letters on the manual page (http://us2.php.net/strpos) so it's easy to see how someone could miss it.
Besides being reason #3.1415926 for hating PHP, this is a further example of my dislike for dynamically typed languages (and muddled thinking). What we have here is a function that returns a positive integer if we find one string within another, but a boolean otherwise. This mixing of return types is futher compounded by the fact that in PHP, an integer value of 0 is also treated as the boolean “false” value.
So let's not fix
strpos() to return something sane, like
-1 for “string not found,” let's instead extend the
langauge with a silly “boolean only comparison” to fix this
I would really love to know what Rasmus Lerdorf was smoking …
Bunny received one of those forwarded emails that detailed a bunch of stupid cell phone tricks one could try. Among the stupid cell phone tricks (like dialing “*#06#” to get the phone's serial number, or dialing 800-FREE-411 (800-373-3411) for free dialing assistance) was one really silly bit:
Subject: Have you locked your keys in the car?
If your car has a remote keyless entry device this may come in handy someday. If you lock your keys in the car and your spare keys and spare remote keyless device are at home, call someone at home from your cell phone, hold your cell phone about a foot from your car door, and have the person at your home hold your spare remote keyless device up to the phone and tell them to press the unlock button. Presto, your car will unlock. Saves someone from having to drive your keys to you. Distance is no object. You could be hundreds of miles away. All you have to do is reach someone who has the other “remote” for your car and you will be able to unlock the doors or the trunk (where it might be a good idea to keep a spare set of keys in case you lose yours).
Another remote frob myth that sounded way too silly to me.
So of course I had to try it.
I gave Bunny my keys and went outside to stand next to my car. Then I called her. “Help, help, I locked myself out of my car,” I said.
“Okay,” she said. “Don't panic. I have your spare set of keys right here in the house. Hold your phone about a foot away from the car.”
I did that. Nothing.
We tried again.
Bunny then suggested using her landline to call me. Perhaps it would give a better signal.
I suspect it doesn't work since my keyless frob works on radio waves, not an actual audible sound.