Rails 2.0: Release Candidate 1

We’ve been taking our sweet time, but now it really is almost there. We’ve just pushed new beta gems to gems.rubyonrails.org and created the rel_2-0-0_RC1 tag. So this is shaping up to be the last chance to raise concerns for Rails 2.0 before we go final in oh-so-shortly.

早速このblogをRails-2.0 RC1 (r.8125)仕様にしてみましたが、もともとEdge Rails (r.7357) で動いていたので、特になにも修正をしなくても移行できました。

詳しい情報は、諸橋さんが こちら にまとめてくださっています。

posted by Png genki on Sat 10 Nov 2007 at 10:03

友人の藤田さんが主催しているレンダリング・アルゴリズムのイベント、 「SBR 2007 観覧会」が本日恵比寿にて開催されるので、参加してきます。

今年も様々な論文が出ていますが、個人的に気になっているのは、Benjamin Segoviaによる2つ

Eric VeachのMLTに感銘を受けたクチなので、Multiple-Try MHに興味があります。

cmlt

posted by Png genki on Sat 10 Nov 2007 at 09:02

http://www.nysun.com/article/66108
http://readwritetalk.com/2007/11/01/david-karp-ceo-tumblr/
21歳。
記事も後で読む。
インタビュー聞いてみよう。

posted by Png satoko on Fri 9 Nov 2007 at 12:40

だいぶ前に少し試したきり放置していたのだけれど、このところ知人の間で急速に広まっている気がします。

この勢いは、Twitterが出始めた時に似たものを感じますね。

ちなみに僕のページはこちらです。

日比さんが会社のページも作ってくれた。

posted by Png genki on Thu 8 Nov 2007 at 23:57

acts_as_taggable_on_steroids はacts_as_taggableを強化したRailsプラグインで、非常に便利なので愛用しています。

しかし、find_tagged_withメソッドで OR を含む :conditions を指定すると、SQLの演算順序の問題で挙動がおかしくなります。 この問題を修正するには、以下のようにpluginコードを書き換えればOKです。

acts_as_taggable_on_steroids/lib/acts_as_taggable.rb

    def find_options_for_find_tagged_with(tags, options = {})
      tags = tags.is_a?(Array) ? TagList.new(tags.map(&:to_s)) : TagList.from(tags)
      options = options.dup

      return {} if tags.empty?

      conditions = []
      #conditions << sanitize_sql(options.delete(:conditions)) if options[:conditions]
      if options[:conditions]
        conditions << "(#{sanitize_sql(options.delete(:conditions))})"
      end

要は、オリジナルの :conditions を括弧で括って演算順序の問題が起きないようにしているわけですね。

posted by Png genki on Mon 5 Nov 2007 at 17:02

Railsの設定は、config/environment.rbのなかで、

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence over those specified here
  config.log_level = :debug

というような感じに記述します。

アプリケーション側からここで設定した値を参照したいという場合に、その方法が提供されている気がしたので、Rails::Initializerのソースを探してみたのですが、そのような手段は用意されていないようでした。

Railsのコアを書き換えるプラグインを書こうかと思ったのですが、ふと以下のように書けば問題が解決することに気がつきました。

Rails::Initializer.run do |config| $rails_config = config

あとはどこからでも、グローバル変数の$rails_configを介して、Railsの設定情報にアクセスすることが出来ます。

posted by Png genki on Mon 5 Nov 2007 at 16:27

まだ開発中の機能が多いですが、ひとまずよろしくお願いします。

画面遷移の仕様

  • ログインするとhome画面(LifeLogを表示・管理)に移動する
  • homeでは、左上のパンくずリストが s21g :: home となる
    • s21g は root (記事一覧画面)に移動する
  • root では、左上のパンくずリストが something new and exciting となる
    • これをクリックすると、ログイン状態では home に移動する
    • 非ログイン状態では、root のまま移動しない
  • /:author は、そのauthorの記事一覧画面に移動する
posted by Png genki on Sat 3 Nov 2007 at 04:48

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/213

ShootingStar-3.2.4をリリースいたしました。

IE6でのfscommandの動作不良に対応するために、ExternalInterfaceを利用するようにしました。

これに伴いまして、バージョン3.2.4以降ではFlash8以降が必要になります。Flashプレイヤーが無い場合や、バージョンが古い場合はXHRを使った通信を行います。

Flashプレイヤーの各バージョンの普及率については、Adobe社が公表している資料をご参照ください。

よろしくお願いします。

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/213

posted by Png genki on Fri 21 Sep 2007 at 11:45

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/212

ShootingStar is the comet server which is implemented by ruby and C language with use of epoll/kqueue.

Main subject of this release is bugfix.

Details are as follows.

+ 1 major enhancement:
 + Implemented new option :except for Meteor::shoot.
+ 3 minor bugfix:
 + Made meteor_strike work in flash6 correctly.
 + Using setInterval instead of _global.setTimeout for flash6.
 + Changed way of handing over serial id.

For users of previous version, it is necessary to update your application by steps as follows;

$ cd /path/to/rails/root
$ shooting_star init
$ ./script/generate meteor

Enjoy!

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/212

posted by Png genki on Tue 18 Sep 2007 at 19:14

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/210

ShootingStar-3.2.2以前のバージョン関して、IEでIFRAME内のコンテンツの読み込み待ちが発生すると、Cometサーバへの接続がうまくいかない状況が報告されています。

* http://d.hatena.ne.jp/winebarrel/20070831/p1

この問題は、IE6でIFRAMEを含むHTMLをレンダリングする際に、IFRAME内のコンテンツの読み込み待ちが発生した時に、外側のHTMLに埋め込まれたSWFオブジェクトのfscommand呼び出しが正常に動作しなくなる問題に起因しているようです。

現在開発中の3.2.3ではこのような状況下ではflashを使わずにXHRとIFRAMEを使った接続を行うように修正しておりますが、リリースまで今しばらくお待ちください。

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/210

posted by Png genki on Tue 4 Sep 2007 at 11:27