January 18, 2010

How to resolve the proprietary NVIDIA driver installation

メモ。SOLVED Fedora 12 + Nvidia installation problems

自分の環境だとこれだけでは不十分で、/etc/modprobe.d/blacklist.confに

blacklist nouveau

を追加で動くようになった。

January 15, 2010

How to show all of the addresses on Mew that is truncated due to too much

また忘れるのでメモ。

To: hoge@example.com, fuga@example.com,...

みたいなやつを省略せずに展開する方法。

zv - mew-summary-toggle-header-veil

を使う。

January 7, 2010

How come Regexp.unescape is unavailable?

書いてみた。自分の技量ではこれ以上縮まる気がしない。


> Regexp.escape("\\((\t\n").gsub(/\\([\[\]\{\}\(\)\|\-\*\.\\\?\+\^\$\# fnrt])/){|s|i=$1;i=~/[fnrt]/?eval('"'+"\\#{i}"+'"'):i}
=> "\\((\t\n"
[2009-01-08]: typoがあったので修正

How to mark messages as being deleted in Mew

気が向いた時にしか使わないのでいつも忘れる上にinfoから探すのにいつも苦労するのでメモ。

summary更新時にmarkつける設定:
(setq mew-summary-form-mark-delete t)

キーバインドを使ってmarkつける方法: Md

December 21, 2009

How come + and - appears at the beginning of the line on IRC?

調べようと思ったことの発端はplumに限らず現象を見たという話から。

手がかりはxchatのソースコード: src/common/proto-irc.c:

static void
process_named_msg (session *sess, char *type, char *word[], char *word_eol[])
{
....
case WORDL('N','O','T','I'):
{
int id = FALSE; /* identified */

text = word_eol[4];
if (*text == ':')
text++;

if (serv->have_idmsg)
{
if (*text == '+')
{
id = TRUE;
text++;
} else if (*text == '-')
text++;
}


上記のコードにあるようにxchatではある特定の条件(serv->have_idmsg)下に於いてメッセージの先頭の+および-を無視している。

では特定の条件とは何か:

static void
process_numeric (session * sess, int n,
char *word[], char *word_eol[], char *
text)
{
....
case 290: /* CAPAB reply */
if (strstr (word_eol[1], "IDENTIFY-MSG"))
{
serv->have_idmsg = TRUE;
break;
}
goto def;


CAPABコマンドの戻り値であるRPL_CLIENTCAPABIDENTIFY-MSGが渡されている場合、このような挙動になるらしい。

CAPABって何?

freenode: frequently-asked questions:
Your nick is how people on freenode know you. If you register it, you'll be able to use the same nick over and over. If you don't register, someone else may end up registering the nick you want. If you register and use the same nick, people will begin to know you by reputation. If they're running IRC software which supports CAPAB IDENTIFY-MSG, they'll be able to tell when someone is spoofing your identity.


ここよりNickServ関係であることが分かる。ということで、pruneでも似たようなコードを書いて+/-が出てくるのを回避。
http://github.com/tagoh/prune/commit/73cdf3301c422672c7a1757d6bc397d58c239721