2007-08-01から1ヶ月間の記事一覧

railsのセッション管理でmemcachedを利用

1. memcachedのインストールと環境設定 % yum -y install memcached % /etc/init.d/memcached start % chkconfig memcached on #memcachedのデフォルトポート(11211)を開ける % vi /etc/init.d/iptables % /etc/init.d/iptables restart 2.memcache-clientの…

CPUの温度測定ツール lm_sensorsをFedora7に導入

1. yum -y install lm_sensors 2. /usr/sbin/sensors-detectコマンドを実行 To make the sensors modules behave correctly, add these lines to /etc/modprobe.conf: #----cut here---- # I2C module options alias char-major-89 i2c-dev #----cut here---…

WiresharkをWindows Vistaでインストール

Wireshark 0.99.6aをインストール OSは、Windows Vista 注意点として、WinPcapをインストールする際、 「Start WinPcap service "NPF" at startup」をチェックすること。それ以外はデフォルトのオプションでOK。

Dynamic Finder(rails)

RailsのActive Record Dynamic Finderってすごいね。DBのテーブルのカラム名を指定すると自動的にselectしてくれるよ。例)Employeeテーブルにfirst_nameカラムが存在すると、コードを書かなくてもActive Recordが自動的にDBにselectしてくれるよ。 Employee.…

eclipse.iniの最適な値は?

eclipse.iniの設定値の最適な値を見つけるのはなかなか難しいですね。たとえば、eclipse3.2や3.3でWTP(Web Tools Project)を利用する場合には、下記の値だとまずまずです。特に、JVMのPermanent領域の指定を行わないとすぐにOutofMemoryエラーになってしまい…