前の日 / 次の日 / 最新

WinChalow

2005 : Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2004 : Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

2004-12-20 Mon

カオス喜界島


「アサギマダラ“長旅” 国営アルプスあづみの公園で放した1匹」
http://headlines.yahoo.co.jp/hl?a=20041216-00000001-cnc-l20

蝶はハバタキの反動で重心が大きく動いてしまうので、飛行経路がカオス状態であるといわれる。補食することがむずかしいらしく、鳥たちも、あまりエサにはしないほどだ。

アサギマダラアサギマダラというのは大型の美しい蝶である。この蝶は、何百キロも海を渡ることが知られている。

自分の飛行経路ですら予測不可能なのに、それが大気という巨大カオスの中を飛んで、しかも海を渡って島にたどりつくというのは、偶然にたよるとすれば、よほどの物量作戦を展開しても確率はゼロに等しいだろう。紙飛行機程度の強度の飛行体が、これほどの長距離を飛べるのは実に不思議なことだ。なんらかの航法があるにちがいない。

アサギマダラの航法が分かれば、巨大カオスを自在にわたることができるようになるのではないか?
(2004-12-20 17:07:08)

六本木巨大ビル


某巨大ビルでの遭難者[2004-12-09]がまたひとり増えていた。
「六本木ヒルズ(通称:キルビル)で遭難」
http://my.casty.jp/kirik/html/2004-12/12-20-14447.html

ふつう迷うよね。J-waveの番組で元レーサーのT屋圭一氏もよく迷うとバカにされていた。地下に何か埋まっていて磁気異常が生じているのだろうか!?

でもビルが建つ前は、幽霊の噂こそあれ、真っ昼間に道に迷うようなところではなかったのだ。バカ建築の威力こそ絶大なれ。携帯の電波も上の方にはとどかないらしい。どういう仕掛けになってるんだろう?
(2004-12-20 15:51:01)

正規表現パーザ


正規表現の自動生成をするには、正規表現のパーザが必要になるなあ、ということでCPANを探してみたらあった。ラッキー。
YAPE: http://search.cpan.org/~pinyan/YAPE-Regex-3.01/
Regep: http://search.cpan.org/~pinyan/Regexp-Parser-0.10/

同じ人が作っているが、Regexp::Parser の方が新しいものの、YAPE の方が簡単である。YAPE::Regex::Explain というモジュールを使うと、与えた正規表現の解説をしてくれる。それなりに便利かもしれない。

The regular expression:

(?i-msx:reg(ular\s+)?exp?(ression)?)

matches as follows:

NODE         EXPLANATION
---------------------------------------------------------
(?i-msx:     group, but do not capture (case-insensitive)
     (with ^ and $ matching normally) (with . not
     matching \n) (matching whitespace and #
     normally):
---------------------------------------------------------
  reg          'reg'
---------------------------------------------------------
  (            group and capture to \1 (optional
       (matching the most amount possible)):
---------------------------------------------------------
    ular         'ular'
---------------------------------------------------------
    \s+          whitespace (\n, \r, \t, \f, and " ") (1
         or more times (matching the most amount
         possible))
---------------------------------------------------------
  )?           end of \1 (NOTE: because you're using a
       quantifier on this capture, only the LAST
       repetition of the captured pattern will be
       stored in \1)
---------------------------------------------------------
  ex           'ex'
---------------------------------------------------------
  p?           'p' (optional (matching the most amount
       possible))
---------------------------------------------------------
  (            group and capture to \2 (optional
       (matching the most amount possible)):
---------------------------------------------------------
    ression      'ression'
---------------------------------------------------------
  )?           end of \2 (NOTE: because you're using a
       quantifier on this capture, only the LAST
       repetition of the captured pattern will be
       stored in \2)
---------------------------------------------------------
)            end of grouping
---------------------------------------------------------
(2004-12-20 12:32:38)

2004-12 / 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