2007-05-22 Tue
■ 自分の「仕組み」を生み育てる
http://cyblog.jp/modules/weblog/details.php?blog_id=483
via http://www.pluto.dti.ne.jp/~rinou/
■ 嗚呼、美しき劣化コピーの世界
http://blog.livedoor.jp/uvoaa/archives/8484139.html
via http://www.pluto.dti.ne.jp/~rinou/
■ BookGem--読書グッズ/快読ショップYomupara
http://www.yomupara.com/bookgem.php
ブックダーツ12個入りが送料無料なので注文した。
via http://www.yomupara.com/index.html
■ USBポートから給電する小型パーソナル冷蔵庫
http://gigazine.net/index.php?/news/comments/20070522_usb_mini_fridge/
■ Google Mapsでエイリアス(別名)を設定してアクセスしやすくする方法
http://www.popxpop.com/archives/2007/05/google_maps.html
■ 『海域世界の民族誌−フィリピン島嶼部における移動・生業・アイデンティティ』関恒樹(世界思想社)
http://booklog.kinokuniya.co.jp/hayase/archives/2007/05/post_78.html
■ やっぱり貧乏人は合理的でないのかもしれないよ。
http://cruel.org/economist/economistpoor.html
via http://www.pluto.dti.ne.jp/~rinou/
■ 書評 - 前頭葉は脳の社長さん?
http://blog.livedoor.jp/dankogai/archives/50833329.html
via http://www.pluto.dti.ne.jp/~rinou/
■ “太っ腹”なAPI公開に刺激され――「Twitterを横にした」新サイト
http://www.itmedia.co.jp/news/articles/0705/21/news011.html
via http://www.pluto.dti.ne.jp/~rinou/
■ 教室にニセ科学
http://www.mainichi-msn.co.jp/science/rikei/news/20070207ddm016070095000c.html
via http://www.pluto.dti.ne.jp/~rinou/
■ ビリーバーは二度引っかかる
http://72.14.209.104/search?q=cache:http://t2.txt-nifty.com/news/2007/05/post_9100.html
■ インサイダー取引ってなぜ悪いんですか?/Tech総研
http://rikunabi-next.yahoo.co.jp/tech/docs/ct_s03600.jsp?p=000854&vos=dyterssc000000000000
■ 計算問題によるコメントスパム対策の実装
http://www.kagami.org/diary/2007-04-30-1.html
仕込んだ。
簡単だこりゃ。
(1)kuttukibbs.confファイルの$page_template_defaultの
投稿ボタンの前あたりに計算式を追加
<div class="textarea">
コメント:<textarea name="body" cols="60" rows="5"></textarea>
</div>
+ <div class="arith"><br>
+ コメントスパム回避のため,以下の足し算の答えを半角でご記入下さい: <br>
+ $arith_x + $arith_y = <input class="field" name="arith" value="">
+ <input type="hidden" name="arith_x" value="$arith_x">
+ <input type="hidden" name="arith_y" value="$arith_y">
+ </div>
<div class="button">
<input type="submit" name="comment" value="投稿">
</div>
(2)テキトーな場所で計算問題を作成して
### 表示
for (my $i = $latest_id; $i >= 0; $i--) {
next unless defined $com_hash{$i};
$comments .= make_comment_html($com_hash{$i}, $i + 1);
}
+ ### スパム防止計算問題の種
+ my $arith_x = int(rand(9)) + 1;
+ my $arith_y = int(rand(9)) + 1;
(3)書き込み時に答え合わせを行う。
### 書き込み
if ($mode eq "write") {
+ ### 計算の答え合わせ
+ my $arith = $q->param('arith');
+ my $arith_x = $q->param('arith_x');
+ my $arith_y = $q->param('arith_y');
+ if (!$arith || $arith != $arith_x + $arith_y) {
+ exit;
+ }
追記:[2007-05-28]時点で、順調に動いています。追記:[2007-06-22]時点で、順調に動いています。
追記:[2007-07-21]時点で、順調に動いています。
■ 図録▽賭事・ギャンブルゲームの控除率(テラ銭の割合)
http://www2.ttcn.ne.jp/~honkawa/5680.html
via http://b.hatena.ne.jp/KJ-monasouken/20070522
2007-05 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
これまでの訪問者は 人です。
