2009-11-01から1ヶ月間の記事一覧

FreeBSD SCIM Anthy Shift+Space 全角?スペースが挿入される件

半角スペースを挿入したつもりが、推定全角スペースが不意に挿入されていることがしばしば。 非常にうざったく云々Anthyの設定で、Shift+Spaceに別幅のスペースがどうとかいうショートカットがデフォルトで割り振られていた。 けしからん思いでいっぱいにな…

clang #include - undefined reference to `__gthrw_pthread_mutex_lock(pthread_mutex**)' ...

workaround: -D_GLIBCXX_GTHREAD_USE_WEAK=0 http://www.lam-mpi.org/MailArchives/lam/2006/03/12084.php グッジョーしかしこれ以外にも、gcc4.2/mapでコンパイルエラー吐いたり、 clangのC++サポートでSTLというのは、若干の涙目ぎみ。

C 64bitでのシフトが怖い

amd64環境下ではまったのでメモ #include "stdlib.h" void printx(unsigned long x) { printf("0x"); for(int i = sizeof(x) * 8 - 1; i >= 0; --i) { printf("%d%s", (x >> i) & 0x1 ? 1 : 0, i % 8 == 0 ? " " : ""); } printf("\n"); } int main { //prin…

FreeBSD + omake 後日談

FreeBSD / omake -P raises Fatal error: exception Invalid_argument("FAM not enabled") - flothの日記 lnやら力技で対処したバイナリを使ってたけど、気になったから後追い。 $ cd /usr/ports/devel/omake $ cd ./work/omake-0.9.8.5/ $ vim ./lib/config…

FreeBSD8 wine(32bit) + winetricks

http://wiki.freebsd.org/Wineのチュートリアルに従ってWineをインストールしたamd64環境で、winetrick云々のメモ [***]$ winetricks wine: not found Cannot find wine (wine) [***]$ WINE=wine32 winetricks wine32: not found Cannot find wine (wine32) …

FreeBSD8RC2 - weechat - /plugin load charset NOT FOUND :p

/usr/ports/irc/weechat # make configでCHARSETを有効にしても、出来上がったweechatから/plugin load charsetできない件 つまりiso-2022-jpが文字化けする。そもそも、/usr/local/lib/weechat/plugins/にcharset.soが無い。 irc/weechat/Makefileを見ると…

gcc45 - lambda branchがmerge統合されてた

http://gcc.gnu.org/gcc-4.5/changes.html Improved experimental support for the upcoming ISO C++ standard, C++0x. Including support for raw strings, lambda expressions and explicit type conversion operators. イェーー FreeBSDの方はlang/gcc45…