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

日付のRangeを週に切り出すスクリプト - はこべにっき#

バイトの月報を作るのにあたって,日付のRangeを渡すと週ごとに分割するコードを書いています.つまり, April 2008 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 これを, 1 2 3 4 5 ---------…

RubyistのためのDjango入門

myproject __init__.py .. Pythonのモジュールに必要 settings.py .. 設定ファイル manage.py urls.py - blog .. Blogアプリケーション __init__.py models.py views.py - wiki .. Wikiアプリケーション __init__.py models.py views.py - static .. 静的フ…

『OpenID Engine』のβ版を公開しました - 株式会社ディノ

※対応サービス用プラグイン…β版:2008年4月30日/安定版:2008年6月上旬 ※認証サーバ用プラグイン …β版:2008年5月中旬/安定版:2008年6月中旬 OpenIDとは 1つのIDで、対応する様々なウェブサイトを安全に利用できるURL形式のIDです。サイトやサービスごと…

ブロックパラメータ代入は多重代入のルールが適用されます - kwatchの日記

ブロックパラメータ代入は多重代入のルールが適用されます。 a, (b, c) = [1, [2,3]] [a, b, c] # => [1, 2, 3] [ruby-list:44838]Re:計算するハッシュ なんと! 長年 Ruby を使ってきたけど全然知らんかった。 もしかして、今まで hash.inject('') {|s,t| …

Headius: The Rubyists are Wrong

There's something that's been bugging me for a long time that I need to get off my chest. Some of you may hate me for it, but perhaps there are others out there with the same complaint, silently in agony, wishing for death to take the pain…

RubyAmf のシリアライザだけを使う - てっく煮ブログ

RubyAmf は元々は Flash Remoting のためのライブラリなんだけど、シリアライザだけを使うのも面白いかもしれない。 例えば、これを実行すると、[3, 4] という配列をシリアライズした test というファイルができる。 require 'app/amf' require 'io/amf_seri…