トップ 最新 追記

おいぬま日報(不定期)

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

2004年
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



2004-04-01 [長年日記]

@ 日本IBM 週休3日制で変わる働き方

やっぱりゆとりが大事です。


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同梱のやつではない


2004-04-04 [長年日記]

@ [ruby] 配列とcase

caseのwhenの式に*をつけた配列を式として書くと配列を展開してくれる。はげしく便利。

array = [ "a", "b", "c" ]
case @hoge
when *array
  # "a", "b", "c"のいずれかの場合の処理


2004-04-05 [長年日記]

@ [dev] GCC マニュアル日本語訳

2.95の時のだけど、かなり助かる。


2004-04-06 [長年日記]

@ [java]

プロファイラみたいなもんかな?

@ [memo] MS、初のオープンソースソフトをリリース

XMLファイルからWindows用アプリのインストーラーを生成するWiXというのをSourceForge上で公開したらしい。驚き。


2004-04-09 [長年日記]

@ [memo] 不要分岐の除去を中心とするオブジェクト高度最適化の研究

コンパイラの最適化の研究の論文。役に立ちそうなのでメモ。

@ [linux] qmailsolutions

企業のページみたい。でも情報が色々ある。


2004-04-11 [長年日記]

@ [dev] GNU Toolの日本語訳

autoconf, automake, libtoolの日本語訳。


2004-04-14 [長年日記]

@ テーマ

変えてみました。ボタンが左側にあってイマイチ使いづらい。


2004-04-21 [長年日記]

@ [emacs] Meadow/Emacs memo

すげー情報量。

@ [dev] アスペクト指向

ついに本が出るぐらいになっちゃったようです。この辺、かなりついていってないので買うかなー。


2004-04-25 [長年日記]

@ 休出

やっと解放された。長かった...


2004-04-26 [長年日記]

@ そろそろ

新しいマシンを組もうかな。GWがあるので、移行する時間も存分にあるはずだし。大体予算は7 - 8万円ぐらいで。

CPU    : Athlon64 2800+         \22,000
MEM    : DDR PC3200 512MB       \10,000
HDD    : Seagate 120GB          \ 9,000
MB     : ギガバイト GA-K8S760M  \12,500
ケース : てきとーに             \10,000
Graphic: GeForce2ぐらい?        \ 4,400
DVD-RW : LG GSA-4082B           \10,000

DVD-RWはまだいらないかな。大容量データを焼くようなことってあんまりないし。


2004-04-27 [長年日記]

@ [dev] BCC Developer

スラッシュドットで紹介されていたのをメモ。


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|
人気ブログランキング - おいぬま日報(不定期)