投稿

4月, 2011の投稿を表示しています

ストレンジアトラクタ

アサシンクリードにもでてくるのね

C/C++

配列を関数に渡す http://ratan.dyndns.info/MicrosoftVisualC++/hairetukansu.html 参照渡し http://www.geocities.jp/ky_webid/cpp/language/015.html

Redis

http://gihyo.jp/dev/feature/01/redis ---> Fetching redis ---> Attempting to fetch redis-2.2.4.tar.gz from http://redis.googlecode.com/files/ ---> Verifying checksum(s) for redis ---> Extracting redis ---> Applying patches to redis ---> Configuring redis ---> Building redis ---> Staging redis into destroot ---> Creating launchd control script ########################################################### # A startup item has been generated that will aid in # starting redis with launchd. It is disabled # by default. Execute the following command to start it, # and to cause it to launch at startup: # # sudo port load redis ########################################################### ---> Installing redis @2.2.4_0 ---> Activating redis @2.2.4_0 To start up a redis server instance use this command: redis-server /opt/local/etc/redis.conf ---> Cleaning redis

avahi

/var/log/system.log を眺めていたところ、以下のようなエラーメッセージが定期的に出力されていた。 com.apple.launchd[1] (org.freedesktop.avahi-daemon[16990]): posix_spawn("/opt/local/sbin/avahi-daemon", ...): No such file or directory com.apple.launchd[1] (org.freedesktop.avahi-dnsconfd[16991]): posix_spawn("/opt/local/sbin/avahi-dnsconfd", ...): No such file or directory com.apple.launchd[1] (org.freedesktop.avahi-daemon[16990]): Exited with exit code: 1 これはMacportsのavahiに関連するエラーで、avahiをアンインストールした場合に発生するようだ。 このエラー出力を止める方法がわかったので、後でまとめることにする。   ...まとめると書いたっきり全然まとめてないませんでした。え...っと、 上記のエラーメッセージが発生する環境について改めて書くと、以下のようになります。 Macportsを使用している avahiをインストールしたことがある その後、avahiをアンインストールしている どのバージョンのavahiに問題があるのかは分かりません。メーリングリストを調べてみると、エラーの報告とパッチの作成が何度か繰り返されているようです。 解決策は、avahiデーモンが起動しないようにすることです。そのためには二つの作業が必要で、まずlaunchctlから削除し、次に設定ファイルも削除する必要があります。具体的なコマンドなどについてはまた後で更新します。

ruby

http://rubyinstaller.org/ Mechanizeの解説 http://mechanize.rubyforge.org/mechanize/GUIDE_rdoc.html http://voidptr.seesaa.net/article/89963393.html tableの処理 http://route477.net/d/?date=20070205 http://jasonseifer.com/2008/03/18/hpricot-and-utf-8