2008-04-15から1日間の記事一覧

計算するハッシュ

5.5 です。こんなこと考えました。 Ruby の Hash#new でブロックを与えるのは, Hash.new{|hash, key| hash[key]=[]} のように,「デフォルト値を設定したいけど,同一オブジェクトでは困る」 という場合が多いと思います。 しかし,ブロックをもっと積極的…

息抜きにdebian(etch)にmod_railsを入れてみる(失敗) - より良い環境を求めて

前にRuby on Railsはインストールだけしたことがあるレベル。 http://d.hatena.ne.jp/rx7/20080412/p1 こういうのを発見したので、mod_railsを入れてみる。 これでruby関係のパッケージがわさわさ入る。 ruby1.9のパッケージもあるが、自動的にruby1.8が選択…

言語別 YAML用ライブラリ徹底解説:第2回 Ruby編|gihyo.jp … 技術評論社

Rubyの文字列に日本語が含まれる場合,YAMLドキュメントに変換すると,たとえば「'いろは'」が「!binary 44GE44KN44Gv」のようにバイナリデータとして変換されてしまいます。この問題は,根本的にはRubyにおいて文字列とバイナリデータの区別がないことが原…

Inemuri nezumi diary(2008-04-15)

RSpec にますます期待する 私は Gerald M. Weinberg (通称 jerry)の著作が大好きである。 ワインバーグは、1956 年からソフトウエアコンサルタントをやっているというから、私からみたら大先輩にあたる人である。彼の文体はアメリカ人らしいジョークにあふ…

Official Google Data APIs Blog: Using Ruby to work with the Google Spreadsheets API

I've recently started to explore using Ruby as an all-purpose tool for scripting and programming small tasks. Seeing requests for Ruby code samples inspired me to write this article, which will hopefully help other developers get started u…

Rails、SubversionからGitへ - zipファイルでもOK | エンタープライズ | マイコミジャーナル

http://journal.mycom.co.jp/news/2008/04/15/010/index.html Git 初耳なのでそのうち調べる このあたりのも複数でてくるのか・・・ひとまずGit使ったこと無いんで試してみる http://b.hatena.ne.jp/entry/http://journal.mycom.co.jp/news/2008/04/15/010/i…

Open Source Rails

Anonymous updated the application details of Opinion. about 2 hours ago Anonymous updated the application details of Opinion. about 2 hours ago Anonymous updated the application details of Opinion. about 2 hours ago Anonymous updated the a…