トップ «前の日(04-02) 最新 次の日(04-04)» 追記

おいぬま日報(不定期)

カテゴリ | 技術情報まとめWiki | 検索エンジンから来た人向け | RSS

2003年
4月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30



2003-04-03

@ 花見

土曜日はやっぱり雨か...中止かな。

@ Apache-2.0.45

けっこうやばい脆弱性があったらしいので、アップデート。

@ 英語の読み方

この業界にいると、sudoとかcronとか、変な読み方(?)の単語にいっぱい出くわする。たとえば、Maildirは「メイルディル」ってずっと読んでたけど、今の職場の人は「メイルディア」って発音してた。dirはdirectoryなんだから「ディル」って発音した方がわかりやすいような気がするけど。ちなみに「クーロン」と聞くと九龍という漢字を思い浮かべてしまうのは自分だけだろうか...

@ 英語の読み方(Jakarta編)

Cactus
カクタス? キャクタス?
ORO
オロ? オーアールオー?
POI
ポイ?
Turbine
タービン? ターバイン?

本日のツッコミ(全2件) [ツッコミを入れる]

# まことす [sudo(エスユードゥー)、cron(クロン)、Maildir(メイルディア)、Cactus(カクタス)、ORO(オ..]

# おいぬめ [sudoは「スゥードゥー」って発音してます。これ以上言うと無意味な宗教戦争になりそうなので、やめておきます(w pa..]


2004-04-03

@ [ruby] ruby-1.8.1 and optparse-0.12

exerbを使いたかったので、Rubyを1.6.7 -> 1.8.1にしたら、optparse*1でこんな警告が。

./optparse.rb:1001: warning: character class has `]' without escape
./optparse.rb:1001: warning: character class has `[' without escape
./optparse.rb:1011: warning: character class has `]' without escape
./optparse.rb:1011: warning: character class has `[' without escape
./optparse.rb:1023: warning: character class has `]' without escape

とりあえず下記のパッチを当てて回避したところで、

1.8.1optparse

ことに気付く。まぁいいか。

--- optparse.rb.orig    2004-04-03 21:46:09.000000000 +0900
+++ optparse.rb 2004-04-03 22:38:36.000000000 +0900
@@ -998,7 +998,7 @@
        raise ArgumentError, "unsupported argument type: #{o}"
       when *ArgumentStyle.keys
        style = notwice(ArgumentStyle[o], style, 'style')
-      when /^--no-([^][=\s]*)(.+)?/
+      when /^--no-([^\]][=\s]*)(.+)?/
        q, a = $1, $2
        o = notwice(a ? Object : TrueClass, klass, 'type')
        not_pattern, not_conv = search(:atype, o) unless not_style
@@ -1008,7 +1008,7 @@
        ldesc << "--no-#{q}"
        long << 'no-' + (q = q.downcase)
        nolong << q
-      when /^--\[no-\]([^][=\s]*)(.+)?/
+      when /^--\[no-\]([^\]][=\s]*)(.+)?/
        q, a = $1, $2
        o = notwice(a ? Object : TrueClass, klass, 'type')
        if a
@@ -1020,7 +1020,7 @@
        not_pattern, not_conv = search(:atype, FalseClass) unless not_style
        not_style = Switch::NoArgument
        nolong << 'no-' + o
-      when /^--([^][=\s]*)(.+)?/
+      when /^--([^\]][=\s]*)(.+)?/
        q, a = $1, $2
        if a
          o = notwice(NilClass, klass, 'type')

*1 1.8.1同梱のやつではない


2005-04-03

@ [life] 禁煙(2)

なんとか続行中。10日以上経ってもまだタバコが吸いたいと思う時があるので念には念を入れようと思い、ニコダーム*1を買いました、そして届きました。でもこれ貼っ付けてたら逆にニコダーム中毒になりそうな予感。タバコを吸うよりはまだましなのかもしれませんが。

開始日時 2005年 3月 22日 1時 0分
経過時間 12日 20時間 28分経過
吸わなかった煙草 321本
浮いた煙草代 4333円
(原価 1857円  たばこ税+消費税 2476円)
延びた寿命 1日 2時間 45分

*1 ニコチンパッチ。個人輸入代行業者などで購入可能


Bookmark: あんてな | ぶっくまーく | 覚え書き | Project Amateras | ExcelPettyCashBook | FreeStyle Wiki

2002|10|11|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|11|12|
2008|01|02|03|04|05|06|07|08|10|11|12|
人気ブログランキング - おいぬま日報(不定期)