hagio.org - 日記

Powered by PENS


Index

2009: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2010: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2011: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2012: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2013: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2014: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2015: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2016: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2017: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2018: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2019: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2020: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2021: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2022: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2023: 1月(1)(2) 2月(1)(2) 3月(1)(2) 4月(1)(2) 5月(1)(2) 6月(1)(2) 7月(1)(2) 8月(1)(2) 9月(1)(2) 10月(1)(2) 11月(1)(2) 12月(1)(2)
2024: 1月(1)(2) 2月(1)(2) 3月(1)(2)

今月のアルバム U.S. Beers! [ 投稿 | 編集 ]


編集

July 2011

Jul 15 (Fri)

22:34

1.5 km はなんとか体力を残しつつ泳げるようになったが、やはり足が一番心配で、 泳いだ後はすぐつりそうになる。足がつって自転車は厳しいからなぁ。

あと、水温が高い方がスイマーズハイになりやすいことがわかった。 水温が低いと足もつりやすい気がするし、渡良瀬遊水池ってどの程度の水温なんだろう。 30 度くらいあったらいいが、さすがにないよな…。

本日のスイム
水泳時間40 分
水泳距離1.7 km
最長距離1.5 m
総水泳距離75.6 km

Jul 14 (Thu)

21:48

記録忘れ。スイマーズハイ状態のときは体温が異常に上がっているように感じた。

7/13(水) のスイム
水泳時間40 分
水泳距離1.5 km
最長距離1.2 m
総水泳距離73.9 km

Jul 13 (Wed)

07:45

ロキソニンテープの効き目がすごい。

07:28

ということで、基本的にはこうすれば良いわけね。

■ CentOS 4 $ PAT="(0|1)" $ [[ 0 =~ $PAT ]] ; echo $? 0 ■ CentOS 5 $ PAT="(0|1)" $ [[ 0 =~ $PAT ]] ; echo $? 0 ■ CentOS 6 $ PAT="(0|1)" $ [[ 0 =~ $PAT ]] ; echo $? 0 ■ openSUSE 10.3 > PAT="(0|1)" > [[ 0 =~ $PAT ]] ; echo $? 0 ■ SLES 11.0 > PAT="(0|1)" > [[ 0 =~ $PAT ]] ; echo $? 0

Jul 12 (Tue)

00:02

Bash FAQ より抜粋。 compat31 は Bash-4.0 からみたい。

E14) Why does quoting the pattern argument to the regular expression matching conditional operator (=~) cause regexp matching to stop working? In versions of bash prior to bash-3.2, the effect of quoting the regular expression argument to the [[ command's =~ operator was not specified. The practical effect was that double-quoting the pattern argument required backslashes to quote special pattern characters, which interfered with the backslash processing performed by double-quoted word expansion and was inconsistent with how the == shell pattern matching operator treated quoted characters. In bash-3.2, the shell was changed to internally quote characters in single- and double-quoted string arguments to the =~ operator, which suppresses the special meaning of the characters special to regular expression processing (`.', `[', `\', `(', `), `*', `+', `?', `{', `|', `^', and `$') and forces them to be matched literally. This is consistent with how the `==' pattern matching operator treats quoted portions of its pattern argument. Since the treatment of quoted string arguments was changed, several issues have arisen, chief among them the problem of white space in pattern arguments and the differing treatment of quoted strings between bash-3.1 and bash-3.2. Both problems may be solved by using a shell variable to hold the pattern. Since word splitting is not performed when expanding shell variables in all operands of the [[ command, this allows users to quote patterns as they wish when assigning the variable, then expand the values to a single string that may contain whitespace. The first problem may be solved by using backslashes or any other quoting mechanism to escape the white space in the patterns. Bash-4.0 introduces the concept of a `compatibility level', controlled by several options to the `shopt' builtin. If the `compat31' option is enabled, bash reverts to the bash-3.1 behavior with respect to quoting the rhs of the =~ operator.

Jul 11 (Mon)

21:56

面倒くさい bash の正規表現についてまとめておく。

■ CentOS 4 $ echo $BASH_VERSION 3.00.15(1)-release $ [[ 0 =~ (0|1) ]] ; echo $? -bash: unexpected argument `(' to conditional binary operator -bash: syntax error near `(0' $ [[ 0 =~ "(0|1)" ]] ; echo $? 0 もちろん、compat31 はない。 追記 どうも、クォートなしでは "( )" が使えないようだ。"[ ]" なら使える。 $ [[ 0 =~ [01] ]] ; echo $? 0 ■ CentOS 5 $ echo $BASH_VERSION 3.2.25(1)-release $ [[ 0 =~ (0|1) ]] ; echo $? 0 $ [[ 0 =~ "(0|1)" ]] ; echo $? 0 $ shopt compat31 bash: shopt: compat31: invalid shell option name bash 3.2 系だが、compat31 はない。 ■ CentOS 6 $ echo $BASH_VERSION 4.1.2(1)-release $ [[ 0 =~ (0|1) ]] ; echo $? 0 $ [[ 0 =~ "(0|1)" ]] ; echo $? 1 $ shopt compat31 compat31 off $ shopt -s compat31 $ shopt compat31 compat31 on $ [[ 0 =~ (0|1) ]] ; echo $? 0 $ [[ 0 =~ "(0|1)" ]] ; echo $? 0

ここまで見ると、同じコードで全バージョン使えるようにするには、 shopt -s compat31 &>/dev/null とかやって、クォートで括ればよいのではと思う。 んが、しかし!

■ openSUSE 10 > echo $BASH_VERSION 3.2.25(1)-release > [[ 0 =~ (0|1) ]] ; echo $? 0 > [[ 0 =~ "(0|1)" ]] ; echo $? 1 > shopt compat31 -bash: shopt: compat31: invalid shell option name

ありゃ、CentOS 5 と同じバージョンのはずなのに、結果が異なる。 しかも、compat31 がないので切り替えることも出来ない。なにこのカオス…。

念のため、SLES 11.0 も記載しておく。Bash-3.2 系だが、CentOS 6 と同じ…。

> echo $BASH_VERSION 3.2.48(1)-release > [[ 0 =~ (0|1) ]] ; echo $? 0 > [[ 0 =~ "(0|1)" ]] ; echo $? 1 > shopt compat31 compat31 off

18:59

今朝、ftp.riken.jp が CentOS 6 をフライング公開した(?) という話を聞いたので、 まさかと思い、うちの ISO イメージを確認したところ、

$ md5sum CentOS-6.0-i386-bin-DVD.iso 081c77749170c512d25da3a7459e3336 CentOS-6.0-i386-bin-DVD.iso $ cat md5sum.txt d7e57d6edaca1556d5bad2fa88602309 CentOS-6.0-i386-bin-DVD.iso 65731c29c49630dea6cde103d02ccffb CentOS-6.0-i386-netinstall.iso

見事にフライング版? orz もう、面倒なのでこれでいいや…。

Jul 10 (Sun)

23:10

ようやく CentOS 6 がリリースされたので早速 VMware 上にインストールした。

ISO イメージのダウンロードは、日本だと ftp.riken.jp が速い。

DVD から起動した際の画面が変わって、メニューから選択する方式になった。 まぁ、今までコマンドだったのがちょっと不親切と言えば不親切だよね…。 デスクトップは特に大きく変わりはなく。右クリックで GNOME 端末を出せないのが少し残念。

22:19

今週のクロス。ほとんど買い物とかだけど。

今週のバイク (クロス)
走行時間1:47′37″
走行距離36.36 km
平均速度20.2 km/h
総走行距離1081.4 km

20:20

なんちゃってデュアスロン (バイク 40 km + ラン 10 km) してきた。シヌカトオモタ…。 まずいぞ、これにスイム 1.5 km を足すなんて、無謀としか思えなくなってきた。 体力というよりは、たぶん、足が持たない。あと 3 週間、足を重点的に鍛えるか。

本日のバイク (ロード)
走行時間1:38′44″
走行距離42.03 km
平均速度25.5 km/h
総走行距離136.6 km
 
本日のラン
走行時間47′44″
走行距離10 km
平均速度12.6 km/h
総走行距離92.8 km

しかし、なんというか、極限状態の方が、効率の良い身体の使い方を習得しやすいかもしれない。 足をかばいつつ、体力もできるだけ使わない走り方を探っていたら、ベストタイムだった。

17:46

羽村取水堰。

17:44

某階段。

15:28

府中に3年以上住んでるのに、一度も行ったことがなかった大國魂神社にフラッと立ち寄る。木陰が涼しい。

頭の中で『風の通り道』が流れた。

Jul 9 (Sat)

22:15

etsu にもらった上海みやげの少林寺素餅。何が少林寺なのかは謎。

見かけはゴマ団子。味はゴマをまぶしたココナッツクッキーという感じ?で意外といける。
おいしくいただきました!ありがとう。

23:05 追記
まさかのほんまもん少林寺?

13:49

立川にある麺処 ZERO の正油ラーメン 680 円。ふつうだな…。

お客さんは全員つけ麺を食べていたので、つけ麺の方が美味しい店なのかもしれない。

Jul 8 (Fri)

00:31

トライアスロン用のウェアで泳ぐのはちょっと恥ずかしい。 めっちゃ速い人みたいやん…。

本日のスイム
水泳時間40 分
水泳距離1.5 km
最長距離800 m
総水泳距離72.4 km

Jul 6 (Wed)

00:07

ベストタイム。

本日のラン
走行時間47′56″
走行距離10 km
平均速度12.5 km/h
総走行距離82.8 km

そういえば日曜日は、多摩川サイクリングロードのほぼ終点まで行っていたらしい。 道が見当たらなくなったし、20 km 超えたのでもういいかと思って引き返したのだが、 そういうことだったのか。 ちょうど片道 20 km 強で、往復 40 km なので練習にはもってこいだな。

しかしマラソンはあの距離を走るわけだ。いまだに信じられん…。

Jul 3 (Sun)

18:07

あと 4 週間でなんとかなるか…。 2 回くらいは擬似トライアスロンやっとかねばな。

本日のバイク (クロス)
走行時間1:48′31″
走行距離41.89 km
平均速度23.1 km/h
総走行距離1044.3 km

16:35

外で昼寝。家から 20 km 地点。

Jul 2 (Sat)

16:00

ようやく 1000 km 突破。東京から福岡くらい?

本日のバイク (クロス)
走行時間51′39″
走行距離17.97 km
平均速度20.9 km/h
総走行距離1002.3 km

12:59

Mr.Children とキリンジに見るボタンの掛け違いについて。

まず、Mr.Children はこう歌う。

どこかで掛け違えてきて
気が付けば一つ余ったボタン
同じようにして誰かが 持て余したボタンホールに
出会う事で意味が出来たならいい

『くるみ』© KAZUTOSHI SAKURAI

良くも悪くも期待を裏切らない櫻井節である。 理想論とも言いたくなるポジティブさ。

一方、キリンジはこう歌う。

「どうも深刻さが足りない、お前には」
溜息をついて叔父は嘆いた
「ボタンを掛け違えたまま年をとるのは恥ずべきことだ。」
親父の通夜でからまれる

『奴のシャツ』© 堀込高樹

この歌には「ボタンを掛け違えたまま〜」というセリフが 3 度出てくるが、 どれもネガティブな使われ方である。 ただ、そんなセリフを吐く人を自分も含めて、偉そうに、と思っているような流れなので、 実際にボタンの掛け違えについてどう思っているかは明らかではない。

…なんてことは実はどうでもよくて、オレが言いたいのは、 こんな歌詞どうやったら出てくるんだ… ということである。 メロディといい歌詞といい、一見現実的に見えてそうでない、 奇妙な世界観が最高の 1 曲。

ちなみに『For Beautiful Human Life』というアルバムの 1 曲目です。 このアルバムは個人的にはおすすめ。

Jul 1 (Fri)

03:02

ここのところ、生活リズムが完全に崩壊していて良くなき。

6 月(2) へ


↑戻る