2009-01-01から1年間の記事一覧

C/Migemoをemacsで使う

tar jxvf cmigemo-1.3c.tar.bz2 ./configure make gcc cd dict make utf-8 cd .. sudo make gcc-install wget http://0xcc.net/migemo/migemo-0.40.tar.gz この中のmigemo.elをemacsのロードパスにコピー .emacs (setq migemo-command "cmigemo") (setq mige…

tmux導入

時代はGNU screenからtmuxへらしいので試しにtmuxを導入した。 環境はcolinuxのdebian sid aptitudeだとバージョンが0.8-5だったので0.9をソースコードからdebuildした。開発関係 sudo aptitude install devscripts dh-make autotools-dev tmuxコンパイルす…

鬼軍曹

鬼軍曹.elを導入した。svn 入れてないので。 wget http://svn.codecheck.in/lang/elisp/drill-instructor/trunk/drill-instructor.el .emacsに (require 'drill-instructor) (setq drill-instructor-global t) 今までtabとかenterとか使ってたので、たいぶ矯…

三次元ベクター

車輪の再開発だけど,勉強かねてかいてみた。 #include <math.h> class Vector3 { public: float x, y, z; Vector3() { x = 0.0f; y = 0.0f; z = 0.0f; } Vector3(float x_, float y_, float z_) { x = x_; y = y_; z = z_; } virtual ~Vector3() {} void set(float </math.h>…

windowsでコマンドでシャットダウン

shutdown -s -f -t 0

windowsで書き込み禁止にする

attrib -r *.* /s /d 書き込み禁止解除 attrib +r *.* /s /d ソースコード読むのにエディタで変更されたくないので設定。

NTEmacsでgtags

ソースコード読むのに設定 http://www.geocities.com/jadoxa/global/index.html windows用のバイナリを持って来る。 環境変数にPATHを設定する 展開したディレクトリ\glo574wb\binglo574wb\share\gtags\gtags.elのgtags.elをemacsのロードパスにコピーする。…

NTEmacsで英辞郎で辞書検索

windows環境だとmakeとかconfigureとかで引っかかるので、cygwinとか使えばいいんだろうけど、unix環境でセットアップしたもをsite-lispにコピーした。 sdicの導入 cygwinは入れてないので、colinux環境で http://www.namazu.org/~tsuchiya/sdic/index.html …

railsのインストール

環境はcolinuxのdebian sid バッケージのインストールはsudoで。 aptitude install ruby1.8 ruby1.8-dev rubygems gem install rails --include-dependencies rails コマンドが通らなかったのでインストールされた場所を探してpathを通した。 .zshrc export …

環境整備

結局windows + colinuxに落ち着く。

NTEmacsでSKKを使う

GNU make/Win32 をもってきてパスを通しておく。APEL apelを展開したフォルダに移動してNTEmacsがC:\emacsにある場合。 make install EMACS=C:\emacs\22.2\bin\emacs.exe LISPDIR=C:\emacs\22.2\site-lisp VERSION_SPECIFIC_LISPDIR=C:\emacs\22.2\site-lisp…

ランダムな文字列をつくる

randstr.rb #!/usr/bin/env ruby tbl = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "…