Author Archives: David Weman
Stefan Geen’s simple Turing test hack for MT 3.x
Stefan Geen’s simple anti-spam Turing test hack is fantastically efficient – you’ll almost never get any spam. Unlike MT’s anti-spam measures, it saves bandwidth (and, of course, it actually works); unlike Blogger’s turing test, it’s not unbelievably tedious. I’ve put together a tutorial for people who use MT 3.x. (An improved version of the one by Patrik Strang’s, which is no longer online). If you have older version of MT you can read Stefan’s original post (don’t miss the updates).
The hack involves requiring a human mind to complete a simple instruction, such as “type the letter ‘F’ in this textbox” or “Type the third letter of this sentence in the textbox,” before MT accepts the accompanying comment.
Here’s how you do it: In your cgi-bin folder, locate the file Comments.pm. The filepath should end with /lib/MT/App/Comments.pm or something similar (It depends on what version of MT you have). Click edit and do a search for the following piece of code:
if (!$q->param(‘text’)) {
return $app->handle_error($app->translate(“Comment text is required.”));
}
Right under it, you add:
unless ($q->param(‘spam’) eq ‘F’) {
return $app->handle_error($app->translate(“Type the anti-spam text exactly as shown.”));
}
Save and close.
Then you must paste this snippet of code
<p><label for=”spam”>Today’s anti-spam measures are brought to you by the letter “F”. Please type it here:</label> <input id=”spam” name=”spam” />
in three different places, which all contain the form elements for commenting:
First you must open the file Contexhandlers.pm. (In early versions of MT3 it’s called Context.pm). The filepath should be something like cgi-bin/mt/lib/MT/Template/ContextHandlers.pm. Search the code for
<p><label for=”url”>URL:
<input tabindex=”1″ type=”text” name=”url” id=”url” value=”$comment_url” />
and add the snippet of code.
Then search for
<p><label for=”url”><MT_TRANS phrase=”URL:”>
<input tabindex=”3″ type=”text” name=”url” id=”url” value=”$comment_url” />
and add the same snippet. Save and close.
Now go to the templates screen in the MT control panel, click on the Individual Entry Archive Template and paste the same lines a third time; under the comment submission form code.
What happens now is that when a comment is submitted, MT checks that the accompanying question is answered correctly; if it is, the comment is accepted. The question is asked in the HTML, the answer is found in the Comments.pm code.
The Endless Journey
Their culture remains one of the most misunderstood and underrepresented, and is often falsely stereotyped by other cultures. Some characteristics that permeate all gypsy cultures is the denial of citizenship, denial of being bound to any piece of land, except to the earth as a whole. Although some gypsies claim that their journey is in the search of a homeland, the truth is that they would rather hold steadfast to their heritage than give it up for a settled home. Gypsies who settle down, tend to absorb the culture around them and become members of the culture they join.
Menzies Campbell new Lib Dem leader
Reactions from Lib Dem bloggers: 1,2,3,4.
Also, fistful member Matt (not a lib dem) points out taht ‘It wasn’t a particularly good result for YouGov, who have been Britain’s most accurate pollster in many elections, and particularly in hard-to-guess ones such as leadership elections, ie the Tories’.
Slate slide-show essay about Spanish architecture.
How did modern architecture in Spain get so good? asks Witold Rybczynski.
My latest harebrained idea
A Few Euros More is not quite on hiatus, but clearly on the backburner right now. I thought I’d use this opportunity to do a little experiment. Anyone who feels like it is invited to post on AFEM this week. Just drop me a line at editors at fistfulofeuros.eu and I will give you access to the blog. Yes, you heard me, anyone who asks gets to post, until we tire of you.
My latest harebrained idea
A Few Euros More is not quite on hiatus, but clearly on the backburner right now. I thought I’d use this opportunity to do a little experiment. Anyone who feels like it is invited to post on AFEM this week. Just drop me a line at editors at fistfulofeuros.eu and I will give you access to the blog. Yes, you heard me, anyone who asks gets to post, until we tire of you.
Bringing Down Europe’s Last Ex-Soviet Dictator
Long NYT magazine piece on the Belorussian opposition.
“We go into these elections not because we believe in their fairness, but because this is a chance to go to the people, to conduct a campaign door to door,” Milinkevich explained through an interpreter. “I will not say that at every door people will become less fearful immediately. But very many people, when they see others who are not afraid, who dare to tell the truth, they will start to have more courage.” For now, many people react uneasily when they encounter him, as if he were an apparition. In the consciousness of a people saturated with state propaganda and ideology, he appears as the shadowy leader of a revolutionary cadre financed by big powers abroad and committed to the overthrow of the government.
Serbia to be first nation charged with genocide
Serbia will come under intense international scrutiny today as it becomes the first nation to defend genocide charges, while separately facing censure for failing to surrender war crimes suspects.
Belgrade will be accused at the International Court of Justice of sponsoring ethnic cleansing in the 1990s which led to the worst massacres on European soil since the Second World War. Previously, only individuals have been charged with genocide, the most serious war crime.
Winners of the 2nd Satin Pajama Awards
Here are the winners of the 2nd Annual European Weblog Awards, also known as the Satin Pajamas:
Most Underappreciated Weblog: Metamorphism by Mig
Best Central European Weblog: All About Latvia by Aleks
Best Expat Weblog: Petite Anglaise by Petite
Best Personal Weblog: Petite Anglaise by Petite
Best French Weblog: Journal d’un avocat by Eolas
Best German Weblog: Atlantic Review by various
Best UK Weblog: A Welsh View by Robert Gale
Best CIS Blog: Neeka’s Backlog by Veronica Khokhlova
Best Southeastern European Blog: Argumente by Dragos Novac
Best Culture Weblog: Amateur d’art by Lunettes Rouges
Best Writing: Bric a blog by the widow Tarquine
Best New Weblog: La Poulette by Poulette
Best Humor Weblog: My Boyfriend Is A Twat by Zoe
Best Non-European Weblog: 3 Quarks Daily by various
Best Expert or Scholar Weblog: Early Modern Notes by Sharon Howard
Best Political Weblog: European Tribune by various
Life Time Achievement Award: Neil Gaiman
and finally (drumroll) …
Best Weblog: Neil Gaiman’s Journal by Neil Gaiman
You can still see all the finalists and their share of votes on the award page. They’re all worth a visit. Last years winners are here.
Congratulations, everyone!
Update (by Tobias) – here’s a little badge for the winning blogs to display their success at the polls. Congrats, you got yourself a Satin Pajama!
