¥È¥Ã¥× ºÇ¿· Äɵ­

3 ÆüË·¼çÆüµ­


2007-02-09 [ĹǯÆüµ­]

_ [Rails] ¥³¥ó¥È¥í¡¼¥é¤´¤È¤Ë TransSid

¤½¤ì¤Ï default_url_options ¤ò»È¤¨¤Ð¤¤¤¤¤È»×¤¦¡£ ¤¦¤Á¤Î lib/trans_sid.rb ¤Ï¤³¤¦¤Ê¤Ã¤Æ¤Þ¤¹¡£

#
# Usage:
# class FooController
#   include TransSid
#
# Ruby's License
# moriq <moriq@moriq.com>
#
module TransSid
  def self.included(controller)
    controller.after_filter(:append_session_id_parameter)
  end

  protected
    def default_url_options(options)
      return unless request  # for test process
      session_key = request.session_options[:session_key] || '_session_id'
      { session_key => session.session_id }
    end

  private
    def append_session_id_parameter
      session_key = request.session_options[:session_key] || '_session_id'
      response.body.gsub!(%r{(</form>)}i, "<input type='hidden' name='#{CGI::escapeHTML session_key}' value='#{CGI::escapeHTML session.session_id}'>\\1")
    end
end

»²¹Í:


2007-02-11 [ĹǯÆüµ­]

_ ·ÈÂÓ³¨Ê¸»ú¥³¡¼¥É¤ÎÁê¸ßÊÑ´¹É½¤òºî¤ë¥¹¥ì

·ÈÂӤΠWeb ¤È¥á¡¼¥ë¤Ç¤Ï¡¢»È¤¦³¨Ê¸»ú¥³¡¼¥É¤¬°ã¤¦¤é¤·¤¤¡£ PC ¤ä¥µ¡¼¥Ð¤«¤é (Ruby ¤ò»È¤Ã¤Æ) ·ÈÂÓ°¸¤Æ¤ËÇÛ¿®¤¹¤ë¥á¡¼¥ë¤Ç³¨Ê¸»ú¤ò»È¤¤¤¿¤¤¡£

¥ë¡¼¥ë:

  1. ¥­¥ã¥ê¥¢¤¬¸ø³«¤·¤Æ¤¤¤ë¥Ç¡¼¥¿¤ò¸µ¤Ë¤¹¤ë¡£
  2. ÅÅ»ÒŪ¤ËÊÑ´¹¤¹¤ë¡£

ºÇ½é¤«¤é¥Æ¥­¥¹¥È·Á¼°¤ÇÍѰդ·¤Æ¤¤¤Ê¤¤¤³¤È¤ËÂФ·¤Æ°­°Õ¤ò´¶¤¸¤ë¡£

EZweb (AU)

xdoc2txt ¤Ç typeD.pdf ¤«¤é ¥Æ¥­¥¹¥ÈÍ×ÁǤòÃê½Ð¤¹¤ë¡£

$ xdoc2txt -f typeD.pdf

ÆÀ¤é¤ì¤¿ typeD.txt ¤«¤éÊÑ´¹É½¤ò¼è¤ê½Ð¤¹¡£

src = IO.read('typeD.txt')
src.scan(/[0-9A-F]{16,18}/s) do |str|
  puts str[-16,16]
end

18ʸ»ú½¦¤Ã¤Æ±¦¤«¤é16ʸ»ú½¦¤¦¡£¤³¤ì¤Ï[0-9A-F]¤ò´Þ¤à¥¿¥¤¥È¥ë¤¬ÊÑ´¹É½¤Ë¤¯¤Ã¤Ä¤¯¤¿¤á¡£ Îã:

ÅŸ»OFFF364EA917945ED64

¤³¤¦¤·¤ÆÆÀ¤é¤ì¤ëÊÑ´¹É½¤Ï¼¡¤Î·Á¼°¤È¤Ê¤ë¡£

  1. KDDI³¨Ê¸»úÍÑShift-JIS¥³¡¼¥É
  2. Unicode
  3. E¥á¡¼¥ëÁ÷½ÐÍÑJIS¥³¡¼¥É
  4. ¡Ê»²¹Í¡ËE¥á¡¼¥ëÁ÷½ÐÍÑJIS¥³¡¼¥É¤ËÂбþ¤·¤¿Shift-JIS¥³¡¼¥É
F659E481753AEB59
F75EE542773FEC5E
F65AE482753BEB5A
F75FE5437740EC5F
...

Ruby ¤Ç¤Ï¼¡¤Î¤è¤¦¤ËÍøÍѤǤ­¤ë¡£

while line = f.gets
  sjis, unicode, email_jis, email_sjis = line.chomp.unpack("A4A4A4A4")
...

SoftBank

scrapi ¤ò»È¤¦¡£

require 'rubygems'
require 'scrapi'
require 'open-uri'
require 'cgi'

# html = File.read('picword_01.php')
uri = 'http://developers.softbankmobile.co.jp/dp/tool_dl/web/picword_01.php'

scraper = Scraper.define do
  selector :select_font, "td>font.j10"
  process "table[width=100%]>tr" do |tr|
    unicode, webcode = select_font(tr).map { |font|
      text = self.class.text(font)
      text = CGI.unescapeHTML(text)
    }
    p [unicode, webcode]
    true
  end
end
scraper.parser_options :show_warnings => true, :char_encoding => 'shiftjis'
# scraper.scrape(html)
scraper.scrape(URI.parse(uri))

Unicode, Web¥³¡¼¥É ¤¬¤¢¤ë¡£

·ÈÂӥ᡼¥ë¤Ç³¨Ê¸»ú¤ò»È¤¦¤È¤­¤Ï Unicode ¤ò¸µ¤Ë UTF-8, base64 ¤Ç¤¤¤¤¡¢¤Î¤À¤í¤¦¤«¡£

Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64

¥­¥ã¥ê¥¢´Ö

¤¢¤È¤Ï´Êñ¡£

´¶¼Õ¡£


2007-02-12 [ĹǯÆüµ­]

_ ³¨Ê¸»ú¥³¡¼¥ÉÊÑ´¹µ¡À¸À®µ¡

imode:sjis -> ezweb:email-sjis ÊÑ´¹ Hash ¤¬¤Û¤·¤¤¤Î¤Ç¡¢ imode:sjis -> imode:id -> ezweb:id -> ezweb:sjis -> ezweb:email-sjis ¤Çºî¤Ã¤Æ¤ß¤ë¡£

imode:sjis -> imode:id -> ezweb:id ¤Ï emoji_i2es.txt¡¢ ezweb:id -> ezweb:sjis ¤Ï emoji_e2is.txt¡¢ ezweb:sjis -> ezweb:email-sjis ¤Ï typeD.pdf ¤«¤éÆÀ¤é¤ì¤ë¡£

softbank ¤â°ì½ï¤Ë¤·¤Æ emoji code converter generator ¤òºî¤ê¤¿¤¤¡£

¸½¾õ:

setup.bat:

wget http://www.au.kddi.com/ezfactory/tec/spec/pdf/typeD.pdf
xdoc2txt -f typeD.pdf
ruby ezweb-typed.rb > ezweb-typed.txt

ruby softbank-scrap.rb -r > softbank-src.txt

wget http://labs.unoh.net/emoji_i2es.txt
wget http://labs.unoh.net/emoji_e2is.txt
wget http://labs.unoh.net/emoji_s2ie.txt

ruby emoji-conv-gen.rb
# TODO: options
#
# 1. Hash¤òÀ¸À®¤¹¤ë¡£
#   emoji-conv-gen --from imode:sjis --to ezweb:email-sjis
#       (û½Ìɽµ­) -f i:s -t e:es
#   imode, i: NTT DoCoMo i-mode
#     sjis, s	Shift_JIS 16¿Ê
#     unicode, u	Unicode
#   ezweb, e: EZweb (AU)
#     sjis, s	Shift_JIS 16¿Ê
#     unicode, u	Unicode
#     email-jis, ej	E¥á¡¼¥ëÁ÷½ÐÍÑJIS
#     email-sjis, es	E¥á¡¼¥ëÁ÷½ÐÍÑShift_JIS
#   softbank, s: SoftBank
#     unicode, u	Unicode
#     webcode, w	Web¥³¡¼¥É¤Î°ìÉô
#
#   --module EmojiConv
#       module ̾ default: EmojiConv
#   --method imode_sjis2ezweb_email_sjis
#       module function ̾ default: from, to ¤Ç·è¤Þ¤ë
#   --alias sjis_i2ee
#       alias ̾
#
# 2. Tab¶èÀÚ¤ê¤Îɽ¤òÀ¸À®¤¹¤ë¡£
#   emoji-conv-gen --tab imode:id,imode:sjis,ezweb:id,ezweb:sjis,ezweb:email-sjis
#       (û½Ìɽµ­) -T i:id,i:s,e:id,e:s,e:es

ActiveRecord ¤Ë¤Ä¤Ã¤³¤ó¤À¤é¤É¤¦¤Ê¤ë¤«¤Ê¡Ä¡Ä

Emoji.imode_sjis_to_ezweb_sjis(code)
:= ImodeEmoji.find_by_sjis(code).ezweb.sjis
:= ImodeEmoji.find_by_sjis(code).emoji.ezweb.sjis
ËÜÆü¤Î¥Ä¥Ã¥³¥ß(Á´2·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]

# ¥Æ¥¹¥È [¥Æ¥¹¥È]

# ¥Æ¥¹¥È [¥Æ¥¹¥Èöú]


2007-02-13 [ĹǯÆüµ­]

_ [Rails] DEPRECATION WARNING: push_with_attributes

º£Æü¤Ï warning ¾Ã¤·¤Ë¶Ð¤·¤à¡£

 DEPRECATION WARNING: push_with_attributes is deprecated and will be removed from Rails 2.0 (consider using has_many :through instead)

¤¢¤¢¤Ã


2007-02-14 [ĹǯÆüµ­]

_ JIS X 0213:2004 ¥Õ¥©¥ó¥È°Ü¹Ô¥·¥Ê¥ê¥ª

»ú·ÁÌäÂê¤Ø¤ÎÂбþ¼ê½ç¡£


2007-02-20 [ĹǯÆüµ­]

_ [ËÜ] »ÔΩ¿Þ½ñ´Û

¹Ô¤¯¤¿¤Ó³ÊÔ¤¬ÃÖ¤¤¤Æ¤¢¤ë¡£¤¦¤ì¤·¤¤¤Ê¤¢¡£

ÆÉ¤ó¤À½ç¡§ ¥¹¥«¥¤¡¦¥¯¥í¥é ¥¹¥«¥¤¡¦¥¯¥í¥é The Sky Crawlers ¥Ê¡¦¥Ð¡¦¥Æ¥¢ ¥Ê¡¦¥Ð¡¦¥Æ¥¢ None But Air ¥Õ¥é¥Ã¥¿¡¦¥ê¥ó¥Ä¡¦¥é¥¤¥Õ¡½Flutter into Life ¥Õ¥é¥Ã¥¿¡¦¥ê¥ó¥Ä¡¦¥é¥¤¥Õ¡½Flutter into Life

¤½¤·¤Æ¤µ¤Ã¤­¸«¤Ä¤±¤¿¡§ ¥À¥¦¥ó¡¦¥Ä¡¦¥Ø¥ô¥ó ¥À¥¦¥ó¡¦¥Ä¡¦¥Ø¥ô¥ó Down to Heaven

_ ¹Ò¶õÍѸì

ÆÉ¤àÁ°¤Ë´ðËÜÍѸì¤Ï²¡¤µ¤¨¤Æ¤ª¤­¤¿¤¤¡£

¤³¤ì¤Ç¤Ïưºî¤òÁÛÁü¤¹¤ë¤Î¤Ë­¤ê¤Ê¤¤¡£wikipedia ¤ÇÊä´° [ja.wikipedia.org]¡§

¹È»Ò¤µ¤ó¤¬²òÀ⤷¤Æ¤¤¤¿¤Ê¡£

¥×¥Ã¥·¥å/¥È¥é¥Ã¥¯¤È¤ÏÊ̤ÎÀÚ¤ê¸ý¤«¤Ê¡£

_ »¶¹á¥Ú¡¼¥Ñ¥¯¥é¥Õ¥È

 ¤Þ¤º¡¢¾®Àâ¤Î»þÂå¤Ï¡¢¤Û¤Ü¸½Âå¡Ê2000ǯ¤¯¤é¤¤¡Ë¡£¤¿¤À¡¢
 ÂèÆó¼¡ÂçÀï°Ê¹ß¤ÎÎò»Ë¤Ï¸½¼Â¤È¤Ï°ã¤¤¤Þ¤¹¡£¥Ñ¥é¥ì¥ë¡¦¥ï¡¼¥ë¥É
 ¤À¤È»×¤Ã¤Æ²¼¤µ¤¤¡£

 ¤ª¤½¤é¤¯ºàÎÁ¹©³Ø¤Î´Ø·¸¤Ç¡¢¥¸¥§¥Ã¥È¥¨¥ó¥¸¥ó¤¬¼Â¸½¤·¤Ê¤«¤Ã¤¿
 ¤Î¤Ç¡¢Èô¹Ôµ¡¤ÏÁêÊѤï¤é¤º¥ì¥·¥×¥í¥¨¥ó¥¸¥ó¤ÇÈô¤ó¤Ç¤¤¤Þ¤¹¡£

¤Ê¤ë¤Û¤É¡£

_ ¥¦¥©¡¼¥«¥í¥ó

½÷²¦¤Îɴǯ̩¼¼ ½÷²¦¤Îɴǯ̩¼¼

¥¦¥©¡¼¥«¥í¥ó¤È¤¤¤¦¸ÀÍÕ¤Ï (¾Ã¤·¤Æ¤ß¤¿ ;) ¤Ë½Ð¤Æ¤¯¤ë¡£

¤Æ¤³¤È¤Ç¤è¤í¤·¤¯¡£PQR

ËÜÆü¤Î¥Ä¥Ã¥³¥ß(Á´2·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]

# ogijun [¤¦¤¢¡¢¤³¤ì̤ÆÉ¤Î¿Í¤Ë¥Í¥¿¥Ð¥ì¤«¤â..]

# moriq [¤´»ØÅ¦¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£]


2007-02-22 [ĹǯÆüµ­]

_ [Ruby] rubygems, rake for ruby-1.9

¤Ñ¤Ã¤ÁÂÞ¤òÍѰա£

_ [Ruby][Rails] rails for ruby-1.9

svk ¤Ç mirror ¤òÍѰա£local branch ¤òºîÀ®¡£

¤Þ¤º activesupport ¤ò¤Ê¤ó¤È¤«¤¹¤ë¡£ ¸½¾õ¡§

 528 tests, 1209 assertions, 26 failures, 254 errors

2007-02-23 [ĹǯÆüµ­]

_ rails for ruby-1.9

¸½¾õ¡§

 # test/core_ext/enumerable_test.rb:
 def _test_index_by #:skip:
 # ruby 1.9.0 (2007-02-21 patchlevel 0) [i386-mingw32]
 # activesupport
 527 tests, 1817 assertions, 13 failures, 13 errors
 # ruby 1.9.0 (2007-02-21 patchlevel 0) [i686-linux]
 # activesupport
 527 tests, 1826 assertions, 10 failures, 11 errors

_ [Ruby] [BUG] cfp consistency error - call0

actionpack ¤Ë¿¯¹¶¡£

class Proxy
  def initialize(i, m)
    @i = i
    @m = m
  end

  def inspect
    @i.__send__(@m)#.inspect
  end

  #def method_missing(called, *args, &block)
  #  p "here"
  #end
end

class C
  def foo
    instance_variable_set :@x, Proxy.new(self, :x)
    self.__send__(:x)
    #@x.inspect
  end
end

c = C.new
c.foo
[BUG] cfp consistency error - call0
ruby 1.9.0 (2007-02-21) [i686-linux]

¤µ¤µ¤À¤µ¤ó¤è¤í¤·¤¯¤¥

deprecation warning ¤Î»Å³Ý¤±¤Ç¤³¤±¤¿¡£

_ [Ruby] 1.9 cgi.rb

CGI::QueryExtension::MorphingBody ¤Ã¤Æ¤Ê¤ó¤ä¤í¤¦¡£

_ [Ruby] 1.9

FileTest.exists? -> FileTest.exist?


2007-02-24 rails for ruby 1.9 [ĹǯÆüµ­]

_ [Ruby][Rails] rails for ruby 1.9 »Ï¤á¤Þ¤¹

¥Ù¡¼¥¹¥é¥¤¥ó¤ÎÌܽ褬¤¿¤Ã¤¿¤Î¤Ç½ê¿®É½ÌÀ¡£

_ ÌÜɸ

¤³¤Î¥×¥í¥¸¥§¥¯¥È¤Ï Ruby on Rails ¤ò Ruby 1.9 ¤ËÂбþ¤µ¤»¤ë¤³¤È¤òÌÜɸ¤È¤·¤Þ¤¹¡£

_ ¥½¡¼¥¹¥³¡¼¥É

Ruby 1.9 trunk ¤ò¸µ¤Ë¤·¤Þ¤¹¡£

Ruby on Rails 1.2 (1-2-stable branch) ¤ò¸µ¤Ë¤·¤Þ¤¹¡£

Ruby on Rails ¤Î¥³¥¢¤ò·ÁÀ®¤¹¤ë°Ê²¼¤Î¥é¥¤¥Ö¥é¥ê¤òÍ¥ÀèŪ¤Ë¼è¤ê°·¤¤¤Þ¤¹¡£

  • activesupport
  • actionpack
  • activerecord

_ ´ØÏ¢¥é¥¤¥Ö¥é¥ê

Ruby on Rails ¤Î³«È¯¤ËɬÍפʥ饤¥Ö¥é¥ê¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£

  • rake
  • rubygems
  • sqlite-ruby (activerecord ¤Î¥Æ¥¹¥È¤Ï sqlite3 ¤Ç¹Ô¤¦)
  • flexmock

Ruby on Rails ¤òư¤«¤¹¤¿¤á¤ËɬÍפʥ饤¥Ö¥é¥ê¤¬ Ruby 1.9 ¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢ Ruby 1.9 ¤ËÂбþ¤¹¤ë¤¿¤á¤Î¥Ñ¥Ã¥Á¤òºî¤ê¤Þ¤¹¡£

Ruby ɸ½à¥é¥¤¥Ö¥é¥ê

  • cgi,rb
  • optparse.rb

³°Éô¥é¥¤¥Ö¥é¥ê

  • rake
  • rubygems
  • sqlite-ruby

_ ³«È¯¥×¥é¥Ã¥È¥Õ¥©¡¼¥à

Linux (Fedora 5) (i686-linux), MS-Windows XP Pro (mingw32).

_ ¥Æ¥¹¥È

Ruby on Rails ¤ËÈ÷¤ï¤Ã¤Æ¤¤¤ë¥æ¥Ë¥Ã¥È¥Æ¥¹¥È¤ò»È¤Ã¤Æ Ruby 1.9 Âбþ¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£

¥Æ¥¹¥È¥³¡¼¥É¤¬ Ruby 1.9 ¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢½¤Àµ¤·¤Þ¤¹¡£

_ ¸ø³«

¥½¡¼¥¹¥³¡¼¥É¤Ï subversion ¤Ç¸ø³«¤·¤Þ¤¹¡£

_ ¿ÊĽ

¿ÊĽ¤Ï rake test ¤Î·ë²Ì¤ò½ÐÎϤ¹¤ë¤³¤È¤ÇÇİ®¤·¤Þ¤¹¡£

autobuild ¤òÍѰդ·¤¿¤¤¡£

_ [Ruby] sqlite3-ruby

sqlite3-ruby ¤Î CVS HEAD ¤ò mingw ¤Ç»î¤¹¡£

# fix.rb:
while line = gets
  line.gsub!(/RSTRING\((.+?)\)->ptr\b/, 'RSTRING_PTR(\1)')
  line.gsub!(/RSTRING\((.+?)\)->len\b/, 'RSTRING_LEN(\1)')
  line.gsub!(/\bBLOB\b/, 'SQLITE3_BLOB')
  print line
end

¤¿¤Ö¤ó SWIG ¦¤òľ¤¹¤Ù¤­¤Ê¤Î¤À¤í¤¦¤±¤É¤È¤ê¤¢¤¨¤º¡£ (SWIG ¤â CVS HEAD ¤«¤éºî¤Ã¤¿)¡£

BLOB ¤Ï wtypes.h ¤Î¤È¤«¤Ö¤ë¤Î¤Ç̾Á°Êѹ¹¡£

lib/sqlite3/driver/dl/api.rb ¤Ç dl/import ¤ò»È¤Ã¤Æ¤ë¤ó¤À¤±¤É

Index: lib/sqlite3/driver/dl/api.rb
===================================================================
--- lib/sqlite3/driver/dl/api.rb        (revision 9188)
+++ lib/sqlite3/driver/dl/api.rb        (working copy)
@@ -35,7 +35,7 @@
 module SQLite3 ; module Driver; module DL;

   module API
-    extend ::DL::Importable
+    extend ::DL::Importer

     library_name = case RUBY_PLATFORM.downcase
       when /darwin/

dl/import ¤Ï mingw ¤Ç¤â»È¤¨¤Þ¤¹¤«¡©

# lib/sqlite3/driver/dl/api.rb:
require 'dl/import'

module SQLite3 ; module Driver; module DL;

  module API
    extend ::DL::Importer

    library_name = case RUBY_PLATFORM.downcase
      when /darwin/
        "libsqlite3.dylib"
      when /linux/
        "libsqlite3.so"
      when /win32/
        "sqlite3.dll"
      else
        abort <<-EOF
== * UNSUPPORTED PLATFORM ======================================================
The platform '#{RUBY_PLATFORM}' is unsupported. Please help the author by
editing the following file to allow your sqlite3 library to be found, and
submitting a patch to jamis_buck@byu.edu. Thanks!

#{__FILE__}
=========================================================================== * ==
        EOF
    end

_ [Ruby] rubygems: gzip error installing sources-0.0.1.gem

rubygems ¤òÆþ¤ì¤è¤¦¤È¤¹¤ë¤È post-install.rb ¤Ç¤Ò¤Ã¤«¤«¤ë¡£

[moriq@can rubygems]$ echo $GEM_HOME
/home/moriq/c
[moriq@can rubygems]$ ~/c/bin/ruby ./post-install.rb
  Successfully built RubyGem
  Name: sources
  Version: 0.0.1
  File: sources-0.0.1.gem
/home/moriq/c/lib/ruby/site_ruby/1.9/rubygems/installer.rb:111:in `raise': gzip error installing sources-0.0.1.gem (Gem::InstallError)
        from /home/moriq/c/lib/ruby/site_ruby/1.9/rubygems/installer.rb:111:in `rescue in install'
        from /home/moriq/c/lib/ruby/site_ruby/1.9/rubygems/installer.rb:64:in `install'
        from ./post-install.rb:88:in `block in install_sources'
        from ./post-install.rb:84:in `chdir'
        from ./post-install.rb:84:in `install_sources'
        from ./post-install.rb:116:in `<main>'

¤Ç¤â pkgs/sources/sources-0.0.1.gem ¤Ï¼êư¤Ç install ¤Ç¤­¤ë¡£

[moriq@can rubygems]$ ~/c/bin/gem install pkgs/sources/sources-0.0.1.gem
Successfully installed sources, version 0.0.1
[moriq@can rubygems]$ ls ~/c/
bin  cache  doc  gems  lib  man  share  specifications

Ææ¤¤¡£

svn st ¤Ç pkgs/* ¤¬¸«¤¨¤Ê¤¤¤Î¤Ï svn:ignore ¤·¤Æ¤ë¤«¤é¡£


2007-02-25 [ĹǯÆüµ­]

ËÜÆü¤Î¥Ä¥Ã¥³¥ß(Á´1·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]

# hretmlhkie [Hello! Good Site! Thanks you! unxwtcacwvcce]


2007-02-26 [ĹǯÆüµ­]

_ [Ruby][Rails] rails for ruby 1.9

524 tests, 1870 assertions, 6 failures, 6 errors
NameError: undefined method `slow_method' for class

¤³¤ì¤Ï¤¿¤Ö¤ó class_eval string ¤¬¤¦¤Þ¤¯¤¤¤Ã¤Æ¤Ê¤¤¡£

time ¤Î¤º¤ì¤Ï¤è¤¯Ê¬¤«¤é¤Ê¤¤¡£

58 tests, 189 assertions, 1 failures, 0 errors

ok.

137 tests, 368 assertions, 12 failures, 20 errors

¤³¤ì¤Ï base_test.rb ¤À¤±¼Â¹Ô¤·¤Æ¤¤¤ë (-I connections/native_sqlite3)¡£

ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'NULL'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Topic.inheritance_column to use another column for that information.

¤È¤«

ActiveRecord::SerializationTypeMismatch: content was supposed to be a Hash, but was a String

¤Ï sqlite3 (¤È sqlite3-ruby) ¤ÎÌäÂê¤Ý¤¤¡£sqlite-3.3.4 ¤À¤È¤³¤ÎÊÕ¤ÏÌäÂê¤Ê¤µ¤²¤Ê¤Î¤À¤¬¡£sqlite3 ¤Î CVS ¤Ë anonymous ¤Ç¤Ä¤Ê¤¬¤é¤Ê¤¤¤Î¤Ï¤É¤¦¤·¤Æ¤À¤í¤¦¡£

rails 1-2-stable + ruby 1.8.5-p12 ¤ÈÈæ³Ó¤¹¤Ù¤­¤À¤Ê¤¢¡£ (Äɵ­:) Ʊ¤¸¤À¤Ã¤¿¡£¤¦¡¼¡£

_ [Rails] ActiveRecord: sqlite3 adapter: fix default value

cf. postgresql adapter

(Äɵ­:) ɬÍפʤ«¤Ã¤¿¡£sqlite3-ruby-1.2.1 ¤Ç¤Ïľ¤Ã¤Æ¤¤¤ë (pragma table_info ¤Ç¤ÎÂбþ)¡£

¤³¤³¤Î CVS ¤Ï»È¤ï¤ì¤Æ¤Ê¤¤¡£¤¦¡¼¡£


2007-02-27 [ĹǯÆüµ­]

_ Month of PHP bugs

ºòǯËö¼­Ç¤¤·¤¿PHP¥»¥­¥å¥ê¥Æ¥£Ã´Åö¼Ô¤Ë¤è¤ë¡¢¤ª¤Þ¤¤¤é¤ËPHP¤Î¥Ð¥°¤ò¶µ¤¨¤Æ¤ä¤ë¤è¤Ê¥Ö¥í¥°¤¬»Ï¤Þ¤ë¤é¤·¤¤¡£

via http://blog.ohgaki.net/index.php/yohgaki/2007/02/24/month_of_php_bugs

ÀèÆüSTLUG¿·Ç¯²ñ¤Ç¶µ¤¨¤Æ¤¤¤¿¤À¤¤¤¿¡£