読書記録ChangeLog / 2007-05-22

日記内を検索  前の日 / 次の日 / 最新 / ランダム RSS

2007-05-22 Tue

入門マリオ

http://www.youtube.com/watch?v=-YpY4j6a0_4
詰め将棋みたい。

BookGem--読書グッズ/快読ショップYomupara

http://www.yomupara.com/bookgem.php
ブックダーツ12個入りが送料無料なので注文した。
via http://www.yomupara.com/index.html

ほぼ日手帳−超カスタマイズ!

http://www.kanshin.com/keyword/1049225

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/

“太っ腹”なAPI公開に刺激され――「Twitterを横にした」新サイト

http://www.itmedia.co.jp/news/articles/0705/21/news011.html
via http://www.pluto.dti.ne.jp/~rinou/

「Twitter」を時系列で眺められる「24 o'clocks」

http://netafull.net/tech/020206.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

uzoyoto@dkiroku.com

これまでの訪問者は 人です。