If you have a blog, you will get comment spam. Comment spam is like fax spam or e-mail spam except its people trying to sell stuff by posting advertising in comments to your blog.
There’s all sorts of crazy solutions you can try. A version or so back I put in one nice little plugin that simply required the web browser to do some math in JavaScript, and comments would only be posted if the math was done right.
A lot of the more complicated solutions sound a little half-baked, annoying, too much work, or just plain insane. I absolutely hate some of the “type in the word that appears in this image” because half the time I can barely make it out with my feeble HUMAN eyes … argh!
Well, I just read an even simpler solution, and since I was working on my comments.php I thought I’d give it a shot. It basically boils down to: (more…)
2 Comments
WordPress rocks. It is blog software that drives much of this web site. WordPress rocks, it does, except for a few things it sucks at, like printing backslashes.
They’re taken care of the BR-in-PRE stuff, but I still have trouble with backslashes. They don’t get displayed unless you type two backslashes, but there seems to be another preprocessor that sucks out backslashes when you edit the post, and typing \\ into the web just seems so wrong.
But you can use HTML entity references. These are HTML escape codes for character literals. Here are a few potentially handy ones: (more…)
8 Comments
If you are a seasoned Unix admin, you’ve been doing stuff like this for years:
cat $file | sort | uniq
Which is a handy way to eliminate duplicate lines in a file, or a collection of files. The uniq -c will even tell you how many duplicated lines there are, and you might even do:
cat $file | sort | uniq -c | sort -n
For example, you could run a command like this to see who is receiving the most mail on your system:
awk ’{print $7}’ < /var/log/maillog | grep ^to= | sort | uniq -c | sort -rn
Anyway, even if you are a seasoned Unix admin, you probably aren’t a big expert on shell scripting. (more…)
Feedback Welcome
Yayoi came home from Japantown today. She was excited. “You must try this new product,” she explained.
It was a flat, pink, gelatinous food substance. Mochi! Mochi is basically a a bland, dry, rice-based(?) wrapper for snacks, like “mochi ice” which is a lump of ice cream wrapped in mochi. (Think of it as a flexible cracker for snacks.) (more…)
2 Comments
“When George W. was governor, we executed a man every two weeks on average. I want to put an end to that. I hate for you to have to hear this from a Jew, but what would Jesus do about this? Would Jesus be interested in these men’s death or their salvation? That’s what you’ve got to ask yourself if you’re a Christian.”
To which this Atheist replies, “Amen, Kinky Friedman!”
If you live in Texas, you might want to save your vote for Kinky in next year’s gubernatorial primary.
If you don’t live in Texas, you could drop a few bucks on his campaign.
Feedback Welcome
There’s nothing like a downed remote machine at 7AM on a Saturday morning that will get you up to speed with the workings of your terminal server, and your datacenter operations staff.
Thank you, Cyclades!
Thank you, Nick at Abovenet!
Fortunately, it was a backup component that failed in a very scary the-harddrive-has-crashed way, but a reboot cleared that up. Now, if I can just figure out how this other thing I set up on the machine gets restarted, I can go back to being lazy. :)
The weirdest thing, and I am not bullshitting, the weirdest thing is that right before the pager went off for the first time, I was dreaming that my manager said “bad news” and started to explain that a disk failure on far more important machine had been detected. As I started to mull that over, my Sidekick started to beep. Is there such a thing as SysAdmin ESP, or do I dream of such things all the time, I just don’t remember them? Weird, man, weird!
1 Comment
“What of America’s Christian Roots?”
From what I can tell, the founding fathers were about as Christian as other Americans. Which means, some were plenty Christian and some were pretty open-minded, or minimalist, like me. I think this excerpt from The Week, June 10, 2005 explains our Christian Heritage fairly well: (more…)
3 Comments
You may ask: “what about ‘Under God?'”
When I was growing up, I recited the Pledge of Allegiance every day. “One nation, under God, indivisible . . .” at first, I just went with it. Then I began to wonder why an Atheist should profess to “one nation, under God” . . . if I didn’t believe in God, wasn’t swearing that my nation was “under God” dishonest? Really, didn’t saying “one nation, under God, indivisible” basically negate, for an Atheist, the entire pledge? Was I lying? Was I being disloyal? (more…)
4 Comments
These days when America’s leaders are trying to make the place look more “Christian” I worry a bit because old-fashioned Christianity has from time to time endorsed the torture and murder of non-Christians. (more…)
1 Comment
So, I’ve been playing with AdSense for a few months now. It seems I earn about $5.00 per month. June was a mere $4.80.
But Google gives me plenty of stats, and I have calculated that I could earn my current salary through AdSense if I can boost my page views to 642 million per day.
I think ratchet would melt under the strain of 7,500 hits per second. (more…)
Feedback Welcome
From: Danny Howard <dannyman@toldme.com>
To: themail@newyorker.com
Subject: Those Little Subscription Cards
Hello,
For generations, our species has been plagued by little slips of paper that fall out of magazines like The New Yorker when we are trying to read. This is very distracting, as the environmentally conscientious reader must bend down and pick these off the ground, and carry them over to the paper recycling bin. (more…)
2 Comments