Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ruby´ò°ü·¢²¼

http://www.erikveen.dds.nl/distributingrubyapplications/rails.html£º
In this tutorial, we'll go through the following steps: Setup the environment Create the SQLite database Develop the Rails application Create the RBA (= Ruby archive) from the application with Tar2RubyScript Create the standalone executable with RubyScript2Exe module Rails
  class Configuration
    def database_configuration
      #conf = YAML::load(ERB.new(IO.read(database_configuration_file)).result) »á³ö´í
      conf = YAML::load(File.read(database_configuration_file))
      if defined?(TAR2RUBYSCRIPT)
        conf.each do |k, v|
          if v["adapter"] =~ /^sqlite/
            v["database"] = oldlocation(v["database"]) if v.include?("database")
            v["dbfile"]   = oldlocation(v["dbfile"])   if v.include?("dbfile")
          end
        end
      end
      conf
    end
  end
end   "database"=>"E:/worksapce/temp/db/demo_development.sqlite3", oldlocation(v["database"]) ÆäʵÊÇÔÚDB×ÓĿ¼ÖУ¬¶ø²»ÊÇÔÚµ±Ç°ÔËÐеÄĿ¼ÏÂ

tar2rubyscript¿ÉÒÔÁË
rubyscript2exe ²»ÐУ¬ÓпÉÄÜÊÇRAILS°æ±¾ÎÊÌ⣬ ÏÖÔÚÖ¤Ã÷²»ÊÇRAILS°æ±¾ÎÊÌ⣬¹À¼ÆÊÇRUBY °æ±¾ÎÊÌâ 2.Exerb²»ÄÜͨ¹ýgem°²×°£¬²»¹ý°²×°·½Ê½Ò²Ê®·Ö·½±ã¡£
       Ê×Ïȵ½exerbµÄ¹Ù·½ÍøÕ¾ÏÂÔØexerb.Á´½ÓÔÚÒ³ÃæÖмäÄǸöλÖá£
   &#


Ïà¹ØÎĵµ£º

ruby Bignum Dir ѧϰ

Bignum
+        ¼Ó
-        ¼õ
*        ³Ë
/        ³ý
**        Ö¸Êý²Ù×÷2**2 Òâ˼ÊÇ2µÄƽ·½
<=>        ´óÓÚ, ......

Cassandra in Action with Twitter's Ruby Client

ÓÐÒ»¸öȫеÄÏîÄ¿£¬ÒòΪ¿¼Âǵ½½«À´µÄÊý¾ÝÀ©Õ¹ÐÔÄÜ£¬ËùÒÔ¿¼ÂÇÓÃCassandra×öÊý¾Ý´æ´¢£¬Ç°¶ËÓÃLighttpd + FastCGI + Rails¡£ÔÚʹÓÃCassandraµÄʱºò£¬¾õµÃÓÐһЩ¶«Î÷¿ÉÄÜ´ó¼Ò¶¼ÐèÒª£¬¾ÍдÁËÒ»¸ö¼òµ¥µÄÖ¸ÄÏ¡£ÒòΪÄÚÈݱȽϳ¤£¨16Ò³£©£¬¾ÍŪÁ˸öPDFÎļþ¸ø´ó¼ÒÏÂÔØ¡£
Cassandra in Action with Twitter's Ruby Client.pdf
Èç¹ûÏÂÔ ......

Install ruby 1.9 on Windows using zip binary

Update:  This post is outdated. All in one installer for 1.9
is ready now, you should use it if you need 1.9 on windows. Get it here
http://rubyforge.org/frs/?group_id=167
Ruby has “all-in-one” installer for Windows, but it is outdated. As
of May 2009, Ruby 1.9.1 is released, ......

rubyѧϰ±Ê¼Ç

1. ½øÖƵĿì½Ýת»»
"100".to_i(2) , ½«100×÷Ϊ¶þ½øÖÆÊä³öÊ®½øÖÆÊý£¬
½á¹û £º 4
"100".to_i(9), ¾Å½øÖÆ£¬
½á¹û£º 81
"100".to_i(16), Ê®Áù»úÖÆ£¬
½á¹û£º 256
±È½Ï˧£¬×Ö·û´®×ª»»ÔÚvc±à³ÌÀïÃæ±È½ÏÍ·ÌÛ¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ