2008-10-01から1ヶ月間の記事一覧

これは便利! vimでPythonスクリプトをそのまま実行 (再)

id:a2c さんのエントリ http://d.hatena.ne.jp/a2c/20081026/1224981769 にid:ka-nachtさんがコメントしてた。 nnoremap <silent> <C-p> :<C-u>execute '!' &l:filetype '%'<Return> でも同じことができるらしい。 id:ka-nachtさんのVimスクリプトの方が理解し易そうだったので http://</return></c-u></c-p></silent>…

wgetとemacsでftpつないでデータを取得

今日KEGGからデータを取得する際に emacsでftpつないで情報取得 pythonで処理してwgetのinput作成 wgetのiオプションでさっきのを食わせる ということをした。 まずemacs M-x ftp Ftp to Host: ftp://ftp.genome.jp/pub/kegg/genes/ こんな感じでftp探索でき…

python温泉に行ってきた

24-6日の間、python温泉に参加してました。(初めての参加)やることには djangoやる(djangoまだやったことなかったので、簡単なサンプルでもいいからできればいいか、聞けるだろうし、みたいな) django本にサインもらう とか考えてたんですが、実際には iTerm…

PySmell リベンジ

以前PySmell導入しようして挫折したとか言ってましたが、id:ka-nachtさんが http://www.lingr.com/room/vim-users.jp でいろいろ教えてくれたりして使えるようになったぽいす。 virtual-pythonのインストール wget http://peak.telecommunity.com/dist/virtu…

PySmellを試した(失敗)

PySmellを以下の様に試したのですが、撃沈しました。 tar zxvf pysmell-0.6.tgz mkdir ./hoge export PYTHONPATH=~/hoge mv pysmell ~/hoge cd ~/hoge/pysmell ./pysmell.py . でタグができます。 タグの内容の頭。 $ head PYSMELLTAGS {'CLASSES': {'Packag…

macでのpython追加モジュールについて

id:mitszo さんに教えてもらったのでメモ http://peak.telecommunity.com/DevCenter/EasyInstall#mac-os-x-user-installationここに依ると ~/Library/Python/2.x/site-packages はカスタムインストールの場所としてのみ使え、とのこと。 そしてeasy_install…

SDCVのインストール (失敗)

コンソールから辞書を引けるようにするプログラムSDCVを入れようと試みたのですが、諦めてしまいました。 configureは通るのですがmakeでコケました。 make all-recursive make[1]: ディレクトリ `/home/kozo-ni/sdcv-0.4.2' に入ります Making all in m4 ma…

ここ最近の野良ビルド

したものを列挙してみる。 atk gtk+ cairo pango libpcap glib glibc

None of your old libraries, static or shared, can be used with a

different C library major version. For shared libraries this is not a problem, because the filenames are different and the dynamic linker will enforce the restriction. But static libraries have no version information. You have to evacuate …

glibcのビルド

普通の./configureのやり方と異なっている Configuring and compiling GNU Libc ==================================GNU libc cannot be compiled in the source directory. You must build it in a separate build directory. For example, if you have unp…

xmodmap でのモディファイアキーの調べ方

こうらしい $ xmodmap -pm xmodmap: up to 3 keys per modifier, (keycodes in parentheses):shift Shift_L (0x32), Shift_R (0x3e), Shift_R (0x83) lock Eisu_toggle (0x42) control , Control_R (0x6d), Control_R (0x41) mod1 Alt_L (0x40), Alt_R (0x71…

screen のビルド

した際に出た、このメッセージが気になる。 termcap entry (./terminfo/screencap) should be installed manually. You may also want to install ./etc/etcscreenrc in /usr/etc/screenrc screenrcはええんやがtermcapを知らないもので。

carbon emacs での skk のインストール

carbon emacs で skk を使えるようにする際のメモです。 下記 url より ddskk の tarball をダウンロード、解凍します。 http://openlab.ring.gr.jp/skk/maintrunk/ Makefile を開いて以下の変更をします。 EMACS = /Applications/Emacs.app/Contents/MacOS/…