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

Greenbear Diary - RubyでZipperを実装してみた

# zipperを作る zipper = Zipper.make(1, 2, 3) # 最初は、0番目にカーソルがある zipper.get #=> 1 # nextを呼ぶと、1番目にカーソルが移動する zipper.next.get #=> 2 んで書き換えもできるのですが、「副作用なし」なので、書き換えると丸ごと別のzipper…

RubyGemsを1.3にアップデートする手順

gem update --systemではうまく行かない場合があるようなので、 その場合には以下のようにすればOkです。 1 # gem install rubygems-update 2 # update_rubygems http://blog.s21g.com/articles/920 http://b.hatena.ne.jp/entry/http://blog.s21g.com/artic…

KOSHIGOE学習帳 - [Ruby] emacs-ruby

http://w.koshigoe.jp/study/?%5BRuby%5D%20emacs-ruby http://b.hatena.ne.jp/entry/http://w.koshigoe.jp/study/?%5BRuby%5D%20emacs-ruby

MSVCでRubyの拡張ライブラリを作っているのですが、デバッグがprintfデバッグ頼りでめんどくさいです。 MSVCで、特にRubyの拡張ライブラリを作る場合のデバッグ方法を教え.. - 人力検索はて

MSVCでRubyの拡張ライブラリを作っているのですが、デバッグがprintfデバッグ頼りでめんどくさいです。 MSVCで、特にRubyの拡張ライブラリを作る場合のデバッグ方法を教えてください。 http://q.hatena.ne.jp/1199577576 , http://b.hatena.ne.jp/entry/http…

KOSHIGOE学習帳 - [Ruby] emacs-rails

[http://w.koshigoe.jp/study/?[Ruby]%20emacs-ruby:image:right] [http://w.koshigoe.jp/study/?[Ruby]%20emacs-ruby] [http://b.hatena.ne.jp/entry/http://w.koshigoe.jp/study/?[Ruby]%20emacs-ruby]

Rails でアプリケーション固有の設定を扱う - ursmの日記

Rails で開発しているとアプリケーション固有の設定を持たせたい場面が結構あります。でも Rails はその辺の面倒を見てくれないので、適当にやっている内にテラカオスな状態になってしまって地味に嫌でした。 そこで見つけたのが Configatron というライブラ…

A Scala-style "with" Construct for Ruby

Scala has a “mixin” construct called traits, which are roughly analogous to Ruby modules. They allow you to create reusable, modular bits of state and behavior and use them to compose classes and other traits or modules. The syntax for usi…

CouchRest::Model - ORM, the CouchDB way - Daytime Running Lights

There are a few ActiveRecord-style wrappers for CouchDB out there these days, but many of them have fallen behind as CouchDB’s powers have increased. I’ve taken an interest in writing regular old web apps again – so now is the time when Co…