記事に出て來る「サンタクルズ」市議會つて「サンタクロース」市議會なのかしら?。其れ共、「聖十字架」市議會なのかしら?*1。
*1 いやぁ、酔つてゐるだけだから、別にどつちだつて良いのだけど。
なつこ [あい、おやすみなさい☆>まう寝ます]
こ○ばえ [ぅ〜.酒が抜けねぇ.]
ち○っ○と北野武監督・ビートたけし主演の座頭市を觀て來た。
晝に『品川プリンスホテル』の『ベリーニ・カフェ』の前に在る『フリー・スペース』で待合はせ。ち○っ○が到着いた處で、とこゝゝ歩いて『品川プリンスシネマ』へ。前に『踊る大搜査線』を觀に來た時より空いてゐた。『座頭市』か『S.W.A.T.』の何れを觀やうか暫し考へてから、『座頭市』を觀る事にした。
賣店で飲食物を手に入れて、休憩所で暫く待つてゐると開場の放送が掛かつたので、劇場に這入つた。客の入りは半分位。未だ公開されて一月も經つてゐ無い事を考へるともしか面白くないのか?と不安が過ぎつた。どきゞゝ。
岸部一徳萌へ。
映畫は普通に面白かつた。一寸血が飛び過ぎて痛かつたけど。外國人には受けるかも知れ無い、と云ふか受けたから賞を獲つたのか。
觀をはつた後、『ベリーニ・カフェ』で休憩した。『座頭市』のパンフを讀む。『ゲロッパ』も然うだつたけど、最近の邦畫のパンフは何で變型してゐるのか。きちんと A4 版にして呉れ無いと他のと一緒に仕舞ひ難いぢや無いか。
其れから晩御飯を攝りに新宿の輦へ。はぐゝゞ。
御疲れ樣でした。>ち○っ○
變換器にiconv()とmb_convert_encoding()を選擇出來る樣に成つてゐた。
レジストラをさくらインターネットから VALUE DOMAIN に移したので、VALUE DOMAIN の DNS を利用する樣にした。
を讀んで設定したのだが、其れでも結構嵌つて仕舞つた。
全部をさくらのサーバで賄ふのでは無くて、
に振り分けたかつたので、DNS 情報變更で以下の樣に設定した。
a @ ***.***.***.*** cname www uqn.sakura.ne.jp. mx aspmx.l.google.com. 10 @ mx alt1.aspmx.l.google.com. 20 @ mx alt2.aspmx.l.google.com. 30 @ mx aspmx2.googlemail.com. 40 @ mx aspmx3.googlemail.com. 50 @
即ち、
又、IP アドレスは變化する可能性が在るので、DDNS を利用して最新の IP アドレスが反映される樣にした。
上記の設定だけだと駄目でさくらインターネットでサブドメインの設定をする必要が在る。
サーバコントロールパネルのドメイン設定で、
最初、さくらインターネットで pyon.net そのものを追加したら、電子郵便を Google Apps for Your Domain に轉送する樣に DNS の設定が出來無くて一寸嵌つた。
さくらインターネットでは、他社で管理してゐるドメインでは DNS を細かく設定出來ず、細かく設定したい場合はさくらインターネットに移管し無いと駄目との事。
其乃爲、さくらの DNS では www.pyon.net だけを登録して、殘りは VALUE DOMAIN で設定。サブドメイン www.pyon.net に關しては委譲が出來無かつたので CNAME で賄つた。
Vim (7.1.100) で使用出來る Omni 補完 (Omni Completion) は以下の九つ。
何故か Perl 用が無いので 「vim omni perl」で檢索すると PerlMonks と云ふサイトで以下の頁が見附かつた。
未だ開發中だつたらしい。リンクを辿ると、アーカイブは以下の場所に在つた。
此處から落として頁に書かれてゐる通りに、
% unzip omniperl.zip % vim omniperl.vba
と VimBall ファイルを Vim (7.1.100) で開き、
> :so %
を實行すると、
Vimball Archive extracted <ftplugin/perl/omniperl.pl>: 649 lines wrote /home/ishikawa/.vim/ftplugin/perl/omniperl.pl extracted <ftplugin/perl/omniperl.vim>: 1486 lines wrote /home/ishikawa/.vim/ftplugin/perl/omniperl.vim extracted <doc/omniperl.txt>: 394 lines wrote /home/ishikawa/.vim/doc/omniperl.txt did helptags 続けるにはENTERを押すかコマンドを入力してください
とメッセージが出力されてインストール完了。$HOME/.vim/ の下に以下のファイルが出來てゐた。
$HOME/.vim/.VimballRecord $HOME/.vim/ftplugin/perl/omniperl.vim $HOME/.vim/ftplugin/perl/omniperl.pl $HOME/.vim/doc/tags $HOME/.vim/doc/omniperl.txt
其處で適當な Perl スクリプト・ファイルを開くと、Vim で勝手に畫面分割されて、
OmniPerl : First Run, doing some checks ! Testing the perlscript with the standard module 'Carp' : Got some results...GOOD ...but not what I expected...BAD! Testing 'File::Basename' : Got some results...GOOD Found 'File::Basename::basename' ...EXCELLENT Testing 'Net::Ping' : Got some results...GOOD Found '$net_ping->ping' ...EXCELLENT Trying to build a module list ... Done. List contains 504 entries. Basic tests : 3/4 passed. All fine. To repeat this tests, exec the command :OmniPerlTest or remove the config file ! < OK > Creating config file with defaults : => /home/ishikawa/.vim/ftplugin/perl/omniperl_config.vim < OK >
と云つたメッセージが出力された。
此れで Perl でも Omni 補完 (Omni Completion) が利く樣に成つた。
Gentoo の emerge で入れた Vim (7.1.42) と FreeBSD 4.10 で野良インスコした Vim (7.1) では、
function <SNR>27_Init..<SNR>27_Test の処理中にエラーが検出されました: 行 3: E36: 充分な容量がありません function <SNR>27_Init の処理中にエラーが検出されました: 行 4: E171: :endif がありません
英語だと、
Error detected while processing function <SNR>27_Init..<SNR>27_Test: line 3: E36: Not enough room Error detected while processing function <SNR>27_Init: line 4: E171: Missing :endif
と云ふメッセージが出力されて動か無かつた。
四時間程悶々としたが、上の問題は解決した。
職場では PuTTY を五拾行で使用してゐるが、普段家では二拾四行で作業してゐる。
「E36: Not enough room」と云ふメッセージは、vim71/src/global.h, vim71/src/windows.c 邊を見るとウィンドウに關係するエラー・メッセージで主に新しいウィンドウを作成出來無かつた時に出力される樣に見えた。
其れを頭に入れて omniperl.vim を眺めてゐると、1384 行目附近に、
func! s:Test()
let cmdh_save=&cmdheight
try
set cmdheight=25
redraw!
echohl TODO
echo "OmniPerl :"
と書かれてゐて、畫面の高さが問題では無いかと思ひ、假想端末の行數を二拾四行から一行づゝ増やして行くと、二拾八行にした所でエラー・メッセージが出力されずに、正常終了のメッセージが出力され、omniperl_config.vim が作成された。
なんなんだよぅ、一體!!!。
GNU Screen でステータス領域を表示してゐ無い場合は二拾七行で正常に動いた。
本當なら夏が始まる前に行つておけば良かつたのだが、今更乍らにKURO-BOX/PROでS.M.A.R.T.でHDDの監視を行ふ事にした。參考にしたのは以下の頁。
Debianではaptitudeで簡單に入つた。
# /usr/bin/aptitude install smartmontools Reading package lists... Done Building dependency tree Reading state information... Done (中略) Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools (warning). (後略)
取敢へずHDDの情報を取得してみた。
# /usr/sbin/smartctl -a /dev/sda smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Hitachi Deskstar 7K160 Device Model: Hitachi HDS721680PLA380 Serial Number: PVC100Z10PS8MJ Firmware Version: P21OAB3A User Capacity: 82,348,277,760 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1 Local Time is: Sun Sep 28 17:17:49 2008 JST SMART support is: Available - device has SMART capability. SMART support is: Disabled SMART Disabled. Use option -s with argument 'on' to enable it.
メッセージに從つてS.M.A.R.T.を有効にした。
# /usr/sbin/smartctl -s on /dev/sda smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.
有効に成つた樣なので再度情報を取得してみた。
# /usr/sbin/smartctl -a /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Deskstar 7K160
Device Model: Hitachi HDS721680PLA380
Serial Number: PVC100Z10PS8MJ
Firmware Version: P21OAB3A
User Capacity: 82,348,277,760 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1
Local Time is: Sun Sep 28 17:26:53 2008 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (1445) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 24) minutes.
SCT capabilities: (0x003f) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline - 0
3 Spin_Up_Time 0x0007 138 138 024 Pre-fail Always - 160 (Average 128)
4 Start_Stop_Count 0x0012 098 098 000 Old_age Always - 11658
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 020 Pre-fail Offline - 0
9 Power_On_Hours 0x0012 099 099 000 Old_age Always - 7473
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 213
192 Power-Off_Retract_Count 0x0032 091 091 000 Old_age Always - 11955
193 Load_Cycle_Count 0x0012 091 091 000 Old_age Always - 11955
194 Temperature_Celsius 0x0002 139 139 000 Old_age Always - 43 (Lifetime Min/Max 19/49)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
其れから/etc/default/smartmontoolsを編輯してデーモンを起動した。
# /etc/init.d/smartmontools start Enabling S.M.A.R.T..../dev/sda...done. Starting S.M.A.R.T. daemon: smartd.
色々解説を讀んでみて取敢へず以下の樣に設定してデーモンを再起動した。
/etc/default/smartmontoolsは以下の樣に自分の環境に合はせた。
# diff -u /etc/default/smartmontools.org /etc/default/smartmontools --- /etc/default/smartmontools.org 2008-07-25 05:16:41.000000000 +0900 +++ /etc/default/smartmontools 2008-09-28 17:39:35.000000000 +0900 @@ -3,10 +3,10 @@ # List of devices you want to explicitly enable S.M.A.R.T. for # Not needed (and not recommended) if the device is monitored by smartd -#enable_smart="/dev/hda /dev/hdb" +enable_smart="/dev/sda" # uncomment to start smartd on system startup -#start_smartd=yes +start_smartd=yes # uncomment to pass additional options to smartd on startup -#smartd_opts="--interval=1800" +smartd_opts="--interval=1800"
/etc/smartd.confはDEVICESANを無効にして/dev/sda用の設定を追加した。後root宛の電子郵便は携帶に送信する樣にPostfixを設定した。
# diff -u /etc/smartd.conf.org /etc/smartd.conf --- /etc/smartd.conf.org 2008-07-25 05:23:11.000000000 +0900 +++ /etc/smartd.conf 2008-09-28 19:11:38.000000000 +0900 @@ -19,7 +19,7 @@ # Directives listed below, which will be applied to all devices that # are found. Most users should comment out DEVICESCAN and explicitly # list the devices that they wish to monitor. -DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner +#DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner # Alternative setting to ignore temperature and power-on hours reports # in syslog. @@ -141,3 +141,4 @@ # If the test string DEVICESCAN is the first uncommented text # then smartd will scan for devices /dev/hd[a-l] and /dev/sd[a-z] # DEVICESCAN may be followed by any desired Directives. +/dev/sda -a -d sat -m root -M exec /usr/share/smartmontools/smartd-runner
暫くは此れで樣子を見る事にした。