2005年5月アーカイブ

nkf --overwrite

nkf に --overwrite なんてオプションあったのね~
こりゃ便利。

例: find src -name "*.java" -exec nkf --overwrite -s {} \;

もちろん自分は文字コードは統一してるけど、他人のものが
どうしようもなく混在していたときに。

LD_ASSUME_KERNEL

諸事情により、
うちの Fedora で、あえて JDK1.1.8 の javac 使うときのおまじない。

export LD_ASSUME_KERNEL=2.4.1

X11 for Mac OS X

X11 for Mac OS X

Mac OS X (v10.3) Install Disk 3 の X11User.pkg がインストーラ。
これで、ディスプレイの繋がっていない Linux も有効活用できるということで。
以下は FAQ 並みお約束。

Linux: export DISPLAY=<Mac IP Address>:0
Mac: xhost <Linux IP Address>

LineUnavailableException

Exception in thread "main" javax.sound.sampled.LineUnavailableException: Audio Device Unavailable

Fedora でこのような例外が発生したので、とりあえず以下のようにして回避。

$ cd /dev
$ su
# ls -l dsp* mixer*
crw------- 1 root root 14, 3 Feb 24 2004 dsp
lrwxrwxrwx 1 root root 3 Oct 5 2004 dsp0 -> dsp
crw------- 1 root root 14, 19 Feb 24 2004 dsp1
crw------- 1 root root 55, 0 Feb 24 2004 dsp56k
crw------- 1 root root 14, 0 Feb 24 2004 mixer
lrwxrwxrwx 1 root root 5 Oct 5 2004 mixer0 -> mixer
crw------- 1 root root 14, 16 Feb 24 2004 mixer1
# chmod a+rw dsp* mixer*
# ls -l dsp* mixer*
crw-rw-rw- 1 root root 14, 3 Feb 24 2004 dsp
lrwxrwxrwx 1 root root 3 Oct 5 2004 dsp0 -> dsp
crw-rw-rw- 1 root root 14, 19 Feb 24 2004 dsp1
crw-rw-rw- 1 root root 55, 0 Feb 24 2004 dsp56k
crw-rw-rw- 1 root root 14, 0 Feb 24 2004 mixer
lrwxrwxrwx 1 root root 5 Oct 5 2004 mixer0 -> mixer
crw-rw-rw- 1 root root 14, 16 Feb 24 2004 mixer1

鎌倉の大仏さん

鎌倉の大仏さん

ありがたや。

鎌倉の大仏さん

哀愁を漂わせる背中には、コックピットへの入り口が!?

前のアーカイブ2005年4月

次のアーカイブ2005年6月

Flickr

    www.flickr.com
    This is a Flickr badge showing public photos and videos from SORA adachi. Make your own badge here.

    2010/02

    Sun Mon Tue Wed Thu Fri Sat
      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            
    Powered by Movable Type 4.22-ja