マニアックな設定

| URL を書くところに about:config と打って Enter すると、マニアックな設定ができる。

2005-02-02 (水) · masutaka

Mew on Meadow で X-Face を表示する。

uncompface => Cygwin から入手 icontopbm => http://netpbm.sourceforge.net/ から入手 pbmtoxbm => 同上

2005-02-01 (火) · masutaka

特定のパーミッション設定ファイルを検索する。

パーミッションが 644 のファイルを検索 % find . -type f -perm 644 group と other に write 属性が付いているディレクトリを検索 % find . -type d ( -perm -g+w -o -perm -o+w )

2005-01-24 (月) · masutaka

rsh での * の扱い

|% rsh remotehost ls -alF * |% rsh remotehost “ls -alF ” 前者はローカルホストで *' が展開され、後者はリモートホストで ’ が展開されるとのこと(man rsh)。

2005-01-19 (水) · masutaka

commit すると怒られてしまう場合は?

|% svn commit -m "" |Deleting howm |svn: Commit failed (details follow): |svn: Out of date: ‘/trunk/howm’ in transaction ‘35’ こういう場合は update してから commit する。

2005-01-16 (日) · masutaka

configure のオプション

[mew-dist 25941] こういう指定もできるみたい。 |% configrure –prefix=’$(DESTDIR)’/usr/local

2005-01-12 (水) · masutaka

文字列の置換

“aaaa1234bbbb” => “aaaabbbb” # sh % echo "aaaa1234bbbb" | sed -e 's/^\([a-z]*\)\([0-9]*\)\([a-z]*\)$/\1\3/' aaaabbbb ;; elisp(文字列の走査) (let ((str "aaaa1234bbbb")) (string-match "\\([a-z]+\\)\\([0-9]+\\)\\([a-z]+\\)" str) (concat (match-string-no-properties 1 str) (match-string-no-properties 3 str))) => "aaaabbbb" ;; elisp(バッファの走査) <= ちょっと大げさ (with-temp-buffer (let ((str "aaaa1234bbbb")) (insert str) (goto-char (point-min)) (if (re-search-forward "\\([a-z]+\\)\\([0-9]+\\)\\([a-z]+\\)" (point-max) t) (concat (match-string-no-properties 1) (match-string-no-properties 3))))) => "aaaabbbb"

2004-12-22 (水) · masutaka

ログイン/ログアウトの監視

tcshでもできるみたい。 http://tehanu.hpcl.titech.ac.jp/zsh/waka/intro-LoginLogoutWatching.html % watch=all % WATCHFMT="%n has %a %l from %m at %t %w." % log

2004-12-14 (火) · masutaka

C言語で、小数の小数部分だけを抜き出す方法

その1 float shousuu, zenbu = 1.5; shousuu = zenbu - (int)zenbu; その2 #include <math.h> float zenbu = 1.5, seisuu, shousuu; shousuu = modff(zenbu, &seisuu);

2004-12-10 (金) · masutaka

CVS の commit ログから ChangeLog を生成してくれる。

|% cvs2cl.pl -b ブランチを指定することもできる。 |% cvs2cl.pl -b –follow-only TEST_BRANCH

2004-12-06 (月) · masutaka