2008-12-01から1ヶ月間の記事一覧

[nntp]

面白そうなんでnntpでデータとって遊ぼうとしたらサバが見つからなかった orz 参考になりそうなURLhttp://www.coins.tsukuba.ac.jp/~yas/coins/literacy-2006/2006-05-12/netnews-nntp.html

[perl][memcached]

memcacheさんおらに情報をおくれ。http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt

[c][pcre]

ああ、こりゃいいね。 gcc parse.c `pcre-config --libs`

[c][c++][正規表現]

c の場合http://www.pcre.org/ http://www.geocities.jp/kosako3/oniguruma/c++ の場合http://www.s34.co.jp/cpptechdoc/article/regexpp/

[SSH][ポートフォワーディング]

http://www14.plala.or.jp/campus-note/vine_linux/server_ssh/ssh_portforwarding.html

[n-gram][perl]

# ngram.pl 1 use strict; 2 use warnings; 3 use utf8; 4 binmode STDIN, ':utf8'; 5 binmode STDOUT, ':utf8'; 6 7 my @text = split(//,join('',<>) ); 8 9 my $seek = 0; 10 my $span = 2; 11 12 while(1) { 13 my @words = grep {$_} map { $text[$_] }…

[X-REPROXY-CACHE-CLEAR][Perlbal][perl]

例のPlugin使って「X-REPROXY-CACHE-CLEAR」したい場合、Perlbalはリクエストしてくるhostとpathをキーにしてしてるので # http://hoge.com/img/hoge.gif のキャッシュを消したい場合。 # 向こうでこういう扱いを受けている $host = 'hoge.com'; $path = '/i…