subversionのコミットメールスクリプト(commit-email.pl)を日本語対応に
--- commit-email.pl 2004-06-24 22:13:40.000000000 +0900 +++ commit-email-jp.pl 2004-06-26 23:00:12.000000000 +0900 @@ -36,6 +36,7 @@ use strict; use Carp; +use Jcode; ###################################################################### # Configuration section. @@ -220,7 +221,9 @@ my $author = shift @svnlooklines; my $date = shift @svnlooklines; shift @svnlooklines; -my @log = map { "$_\n" } @svnlooklines; +my @log_raw = map { "$_\n" } @svnlooklines; +my @log_utf8 = map { decode_commit_log($_) } @log_raw; +my @log = map { Jcode->new($_, 'utf8')->jis } @log_utf8; # Figure out what directories have changed using svnlook. my @dirschanged = &read_from_process($svnlook, 'dirs-changed', $repos, @@ -277,8 +280,9 @@ # Get the diff from svnlook. my @no_diff_deleted = $no_diff_deleted ? ('--no-diff-deleted') : (); -my @difflines = &read_from_process($svnlook, 'diff', $repos, +my @difflines_raw = &read_from_process($svnlook, 'diff', $repos, '-r', $rev, @no_diff_deleted); +my @difflines = map { Jcode->new($_)->jis } @difflines_raw; ###################################################################### # Modified directory name collapsing. @@ -441,9 +445,9 @@ # # Basically: adding/tweaking the content-type is nice, but don't # think that is the proper solution. - push(@head, "Content-Type: text/plain; charset=UTF-8\n"); - push(@head, "Content-Transfer-Encoding: 8bit\n"); + push(@head, "Content-Type: text/plain; charset=\"iso-2022-jp\"\n"); + push(@head, "Content-Transfer-Encoding: 7bit\n"); push(@head, "\n"); if ($sendmail =~ /\w/ and @email_addresses) @@ -589,3 +593,10 @@ return @output; } } + +sub decode_commit_log { + my ($str) = @_; + $str =~ s/\?\\(\d{3})/pack('C', $1)/eg; + return $str; +}
apache ログ解析
オープンソースでanalog以外のは 最近はなにがあるのだろうかと探してみた。
bne.jp
こちらにいろいろとまとめてくれてた。
かなりまとまってるようだ すばらし。
AWStats - Open Source Log File Analyzer for advanced statistics (GNU GPL)
AWStats Ver.6.6完全日本語版のページ
解説
サンプル
デザイン的にもきれいでよさげ
サンプル
たしかに、、ユーザフローを図式化がすばらしい
Home of The Webalizer
サンプル いちおう・・
http://www.analog.cx/
サンプル いちおう・・・
subversion bluegate.org - このウェブサイトは販売用です! - bluegate リソースおよび情報
リポジトリの作成
$ svnadmin create --fs-type fsfs /path/to/repos
リポジトリにローカルにアクセスできる開発者は、共通のグループを使うことでリポジトリを共有することができます。そうするためには、新しいグループを作成して、全ての開発者を加えてください。 "chgrp -R sharedGroup repdir ; chmod -R g+s repdir" を共有するグループとリポジトリのディレクトリに対して実行してください。これで、このリポジトリへローカルにアクセスすることで、設定された適切なグループで開発者がファイルを作成できるでしょう。
$ chmod -R g+sw /path/to/repos $ chgrp -R sharedGroup /path/to/repos
GRUBについて
RAID1で両方のMBRにGRUBをインストールする方法
# grub device (hd0) /dev/hda root (hd0,0) install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst install /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst device (hd0) /dev/hdb root (hd0,0) install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst install /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst
としているが結局hd0の方はすでにインストールされているわけなので
# grub grub> root (hd1,0) grub> setup (hd1) grub> quit
これでうまくいった。
参考にしたページ
http://www.geocities.co.jp/SiliconValley-Bay/3897/grub/grub.html
[ Debian ] GRUB でソフトウェアRAID1 ブート設定 | nDiki
http://www.linux.or.jp/JF/JFdocs/Multiboot-with-GRUB.html
作者のページ
作者の日記
http://d.hatena.ne.jp/okuji/
->引っ越し http://enbug.tdiary.net/