<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/xslt/rss2.xsl" media="screen"?>
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Latest from ChinaonRails: accesine</title>
		<link>http://chinaonrails.com/u/accesine</link>
		<description>ChinaonRails | ChinaonRails are one of the very few China based web consultancies, who specialize in application development using RubyOnRails/Agile/Ajax.</description>
		<category>Technology</category>
		<language>zh_cn</language>
		<item>
			<title>Web开发框架Rails和Merb Ruby宣布合二为一 ... 6 replies</title>
			<link>http://chinaonrails.com/topic/view/2550.html</link>
			<comments>http://chinaonrails.com/topic/view/2550.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			Web开发框架Rails和Merb Ruby宣布合二为一&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Merb将合并到Rails 3中，后者预计将在2009年第二季度发布。 合并的好处有：Rails模块化，性能改进，更严谨的API，更容易支持DataMapper或Seque等。但同时许多开发者也会担心潜在的社区破裂问题。&lt;br /&gt;
&lt;br /&gt;
http://developers.solidot.org/developers/08/12/24/0135209.shtml
			</description>
			<pubDate>Wed, 24 Dec 2008 16:50:19 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/2550.html</guid>
		</item>
		<item>
			<title>ActiveRecord::ActiveRecordError: Illegal mix of collations ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1943.html</link>
			<comments>http://chinaonrails.com/topic/view/1943.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			ActiveRecord::ActiveRecordError: Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation
			</description>
			<pubDate>Sun, 27 Jul 2008 21:01:14 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1943.html</guid>
		</item>
		<item>
			<title>Twitter 应该放弃 RoR ， Erlang 可以考虑 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/1650.html</link>
			<comments>http://chinaonrails.com/topic/view/1650.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			Twitter 不是一个cms系统，是个消息系统&lt;br /&gt;
&lt;br /&gt;
New Facebook Chat Feature Scales to 70 Million Users Using Erlang&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://highscalability.com/new-facebook-chat-feature-scales-70-million-users-using-erlang
			</description>
			<pubDate>Fri, 23 May 2008 10:02:50 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1650.html</guid>
		</item>
		<item>
			<title>windows 上一个rails app 就需要配置一个mongrel吗？ ... 5 replies</title>
			<link>http://chinaonrails.com/topic/view/1635.html</link>
			<comments>http://chinaonrails.com/topic/view/1635.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			windows 上一个rails app 就需要配置一个mongrel吗？&lt;br /&gt;
&lt;br /&gt;
如果我有10个rails app，那么就需要10个 mongrel 和10个端口来响应吗？&lt;br /&gt;
&lt;br /&gt;
这个类似 如何在 windows上提供rails服务？
			</description>
			<pubDate>Mon, 19 May 2008 22:48:09 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1635.html</guid>
		</item>
		<item>
			<title>twitter 准备抛弃 ruby on rails 了。 怎么办？ ... 11 replies</title>
			<link>http://chinaonrails.com/topic/view/1589.html</link>
			<comments>http://chinaonrails.com/topic/view/1589.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			twitter 准备抛弃 ruby on rails 了。 怎么办？
			</description>
			<pubDate>Wed, 07 May 2008 10:28:33 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1589.html</guid>
		</item>
		<item>
			<title>收到Google app engine 的邀请了 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1587.html</link>
			<comments>http://chinaonrails.com/topic/view/1587.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Server</category>
			<description>
			收到Google app engine 的邀请了&lt;br /&gt;
&lt;br /&gt;
准备小试一下。
			</description>
			<pubDate>Wed, 07 May 2008 07:25:52 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1587.html</guid>
		</item>
		<item>
			<title>一小时内：用rails 开发 SaaS ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1543.html</link>
			<comments>http://chinaonrails.com/topic/view/1543.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			一小时内：用rails 开发 SaaS &lt;br /&gt;
&lt;br /&gt;
试试：http://railskits.com/ 吧
			</description>
			<pubDate>Fri, 25 Apr 2008 09:33:48 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1543.html</guid>
		</item>
		<item>
			<title>谁在用Ruby开发Facebook application？ ... 8 replies</title>
			<link>http://chinaonrails.com/topic/view/1514.html</link>
			<comments>http://chinaonrails.com/topic/view/1514.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			一起交流一下：&lt;br /&gt;
谁在用Ruby开发Facebook application？
			</description>
			<pubDate>Thu, 17 Apr 2008 08:20:13 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1514.html</guid>
		</item>
		<item>
			<title>英文url单词间的短横线，用rails是怎么实现的？ ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/1475.html</link>
			<comments>http://chinaonrails.com/topic/view/1475.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			英文url单词间的短横线，用rails是怎么实现的？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
看到很多英文网站都是这么做的。&lt;br /&gt;
比如：&lt;br /&gt;
&lt;br /&gt;
标题：i love you &lt;br /&gt;
切换后的url:&lt;br /&gt;
www.xxx.com/i-love-you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
原理是什么呢？
			</description>
			<pubDate>Sat, 05 Apr 2008 11:08:27 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1475.html</guid>
		</item>
		<item>
			<title>为降低负载，启用临时的 pure 纯 ruby database 请推荐一下。 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1197.html</link>
			<comments>http://chinaonrails.com/topic/view/1197.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			为降低负载，启用临时的 pure 纯 ruby database 请推荐一下。&lt;br /&gt;
&lt;br /&gt;
Mongoose 0.2.5 算一个。&lt;br /&gt;
&lt;br /&gt;
其他的呢，大家有使用经验吗？
			</description>
			<pubDate>Mon, 14 Jan 2008 09:47:56 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1197.html</guid>
		</item>
		<item>
			<title>ruby 如何 调用 windows 命令行 如 dir ? ... 4 replies</title>
			<link>http://chinaonrails.com/topic/view/1176.html</link>
			<comments>http://chinaonrails.com/topic/view/1176.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			ruby 如何 调用 windows 命令行 如 dir ?
			</description>
			<pubDate>Tue, 08 Jan 2008 18:05:12 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1176.html</guid>
		</item>
		<item>
			<title>InvalidAuthenticityToken rails 2.0 以上 错误的排除 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/1151.html</link>
			<comments>http://chinaonrails.com/topic/view/1151.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			http://feeds.feedburner.com/~r/RyansScraps/~3/160614821/what-s-new-in-edge-rails-better-cross-site-request-forging-prevention&lt;br /&gt;
&lt;br /&gt;
好文章啊&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hot on the heels of the in-depth look at Rails security options comes the addition of the CsrfKiller plugin into rails core.&lt;br /&gt;
&lt;br /&gt;
The CsrfKiller plugin adds a unique session token field to all forms that is checked on every non-GET request. This ensures that the request received is in fact coming from the session of the authorized user (check out wikipedia’s CSRF article if you need more details on the technique).&lt;br /&gt;
&lt;br /&gt;
All you need to do to enable this protection is to add a protect_from_forgery statement in your controller that takes the familiar :except or :only option along with salt to use when generating the unique token:&lt;br /&gt;
&lt;br /&gt;
And now this is the default functionality. No need to specify anything if you want the default behavior. You can still override as in the following examples, however.&lt;br /&gt;
&lt;br /&gt;
12345&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
class PostsController &amp;lt; ApplicationController  protect_from_forgery :secret =&amp;gt; '2kdjnaLI8', :only =&amp;gt; [:update, :delete, :create]  ...end&lt;br /&gt;
&lt;br /&gt;
If you’re already using edge Rails’ default cookie session store then you don’t have to specify the :secret key.&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
protect_from_forgery :only =&amp;gt; [:update, :delete, :create]&lt;br /&gt;
&lt;br /&gt;
If you’re not on a cookie session store you can also change the digest method used to generate the unique token (the default is ‘SHA1’).&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  protect_from_forgery :secret =&amp;gt; '2kaienna9ea90djnaLI8', :digest =&amp;gt; 'MD5'&lt;br /&gt;
&lt;br /&gt;
If a request comes in that doesn’t match the request forgery protection token for the current session then an ActionController::InvalidAuthenticityToken exception will be thrown. Perhaps a good place to try out the new exception handling syntax ?&lt;br /&gt;
Caveats: The request forgery protection only kicks in in the following scenarios:&lt;br /&gt;
&lt;br /&gt;
    * Non-GET requests, so make sure the only requests that modify state are your PUT/POST/DELETE requests.&lt;br /&gt;
    * On html and ajax requests. Override verifiable_request_format? if you want to expand that.&lt;br /&gt;
&lt;br /&gt;
And what to do if you want to disable CSRF protection? Just add this to whatever controllers you don’t want to be affected:&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
skip_before_filter :verify_authenticity_token&lt;br /&gt;
&lt;br /&gt;
And if you want to disable this site-wide, just add this to application.rb:&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
self.allow_forgery_protection = false
			</description>
			<pubDate>Wed, 02 Jan 2008 13:38:57 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1151.html</guid>
		</item>
		<item>
			<title>领教rails 2.0.1. 的威力:  A secret is required to generate an integrity ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1061.html</link>
			<comments>http://chinaonrails.com/topic/view/1061.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			/!\ FAILSAFE /!\  Tue Dec 11 19:04:00 +0800 2007&lt;br /&gt;
  Status: 500 Internal Server Error&lt;br /&gt;
  A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :session_key =&amp;gt; "_myapp_session", :secret =&amp;gt; "some secret phrase of at least 30 characters" } in config/environment.rb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
这个错误怎么解决？&lt;br /&gt;
&lt;br /&gt;
屏蔽了&lt;br /&gt;
&lt;br /&gt;
#  config.action_controller.session = {&lt;br /&gt;
#    :session_key =&amp;gt; '_&amp;lt;%= app_name %&amp;gt;_session',&lt;br /&gt;
#    :secret      =&amp;gt; '&amp;lt;%= app_secret %&amp;gt;'&lt;br /&gt;
#  }&lt;br /&gt;
&lt;br /&gt;
还不行
			</description>
			<pubDate>Tue, 11 Dec 2007 19:06:07 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1061.html</guid>
		</item>
		<item>
			<title>遗留系统的问题 ：在rails中 has_many 默认的外键名称可以指定吗？set_primary_key ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1028.html</link>
			<comments>http://chinaonrails.com/topic/view/1028.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			has_many 在处理遗留系统的问题 set_primary_key&lt;br /&gt;
&lt;br /&gt;
在rails中 has_many 默认的外键名称可以指定吗？&lt;br /&gt;
&lt;br /&gt;
比如：默认的&lt;br /&gt;
belongs_to :programmer  # foreign key - programmer_id&lt;br /&gt;
&lt;br /&gt;
我想把 programmer_id 指定成： p_id 可以吗？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
class Assignment &amp;lt; ActiveRecord::Base&lt;br /&gt;
  belongs_to :programmer  # foreign key - programmer_id&lt;br /&gt;
  belongs_to :project     # foreign key - project_id&lt;br /&gt;
end&lt;br /&gt;
class Programmer &amp;lt; ActiveRecord::Base&lt;br /&gt;
  has_many :assignments&lt;br /&gt;
  has_many :projects, :through =&amp;gt; :assignments&lt;br /&gt;
end&lt;br /&gt;
class Project &amp;lt; ActiveRecord::Base&lt;br /&gt;
  has_many :assignments&lt;br /&gt;
  has_many :programmers, :through =&amp;gt; :assignments&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
比如
			</description>
			<pubDate>Sat, 01 Dec 2007 15:01:09 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1028.html</guid>
		</item>
		<item>
			<title>我心目中理想的rails托管 ... 5 replies</title>
			<link>http://chinaonrails.com/topic/view/1018.html</link>
			<comments>http://chinaonrails.com/topic/view/1018.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			我心目中理想的rails托管&lt;br /&gt;
http://heroku.com/beta&lt;br /&gt;
nstantly Live&lt;br /&gt;
Create and Edit Online&lt;br /&gt;
Share and Collaborate&lt;br /&gt;
Generate Code&lt;br /&gt;
Painless Migrations &lt;br /&gt;
Console
			</description>
			<pubDate>Fri, 23 Nov 2007 09:08:08 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1018.html</guid>
		</item>
		<item>
			<title>routes.rb 显示  public/images 图片的问题 ... 6 replies</title>
			<link>http://chinaonrails.com/topic/view/1012.html</link>
			<comments>http://chinaonrails.com/topic/view/1012.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			routes.rb 显示  public/images 图片的问题&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
我有个 controller 名字叫： images&lt;br /&gt;
&lt;br /&gt;
同时 public 目录有个 images 的文件夹&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
当我打开：&lt;br /&gt;
http://localhost:3000/images/personal_2007-11-21-21-23-23164_200711111826381_thumb.jpg&lt;br /&gt;
 的时候告诉我：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unknown action&lt;br /&gt;
No action responded to personal_2007-11-21-21-23-23164_200711111826381_thumb.jpg&lt;br /&gt;
怎么解决呢？&lt;br /&gt;
&lt;br /&gt;
怪不怪？
			</description>
			<pubDate>Wed, 21 Nov 2007 21:27:54 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1012.html</guid>
		</item>
		<item>
			<title>cookies 设置失败的问题 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1005.html</link>
			<comments>http://chinaonrails.com/topic/view/1005.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			cookies 设置失败的问题&lt;br /&gt;
cookies['session_id'] = {:value =&amp;gt;session.session_id,&lt;br /&gt;
                        :expires =&amp;gt;30.days.from_now,&lt;br /&gt;
                        :domain =&amp;gt; '.example.com'&lt;br /&gt;
                       }&lt;br /&gt;
这样设置 cookie 总是失败。&lt;br /&gt;
&lt;br /&gt;
cookies['session_id'] = session.session_id&lt;br /&gt;
&lt;br /&gt;
就可以成功！！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
大家知道怎么回事情吗？
			</description>
			<pubDate>Wed, 21 Nov 2007 07:21:47 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1005.html</guid>
		</item>
		<item>
			<title>Jruby ON JEE 占用内存大的原因及解释 ... 5 replies</title>
			<link>http://chinaonrails.com/topic/view/784.html</link>
			<comments>http://chinaonrails.com/topic/view/784.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			我运行 jruby on rails on tomcat 和 resin 都发现内存占用巨大的问题。&lt;br /&gt;
&lt;br /&gt;
重于找到原因了&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Jon Tirsen曾经谈到JRuby的一个问题，运行在AppServer中会有占用太多内存。经过分析得知，为了提高程序的并发性，程序运行会启动多个 JRuby。每个JRuby解析Ruby脚本都会建立一棵完整的语法树，这就意味着，由于这种解析模式本身的限制，对于同样的内容，内存中需要保存多份相同的语法树，这种做法意味着无谓的耗用了大量的内存。采用编译的做法，则可以很好的避免这个问题。因为在运行时，相同的是字节码，而JVM很好的帮我们解决字节码共享问题，无需耗用大量的内存。
			</description>
			<pubDate>Wed, 26 Sep 2007 11:02:04 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/784.html</guid>
		</item>
		<item>
			<title>Jruby 部署到 tomcat 时 ,rake 无法打包 ... 5 replies</title>
			<link>http://chinaonrails.com/topic/view/774.html</link>
			<comments>http://chinaonrails.com/topic/view/774.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			Jruby 部署到 tomcat 时 ,rake 无法打包&lt;br /&gt;
&lt;br /&gt;
rake war:standalone:create&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
压根就是不能识别的命令啊啊？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
有成功用rake打包的人吗？
			</description>
			<pubDate>Fri, 21 Sep 2007 08:00:45 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/774.html</guid>
		</item>
		<item>
			<title>mongrel Too many open files ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/711.html</link>
			<comments>http://chinaonrails.com/topic/view/711.html#reply</comments>
			<dc:creator>accesine</dc:creator>
			<author>accesine</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/10.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/10_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			mongrel Too many open files&lt;br /&gt;
&lt;br /&gt;
怎么办啊？》&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
难道要不停的重新启动服务？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
X:/ruby/bin/mongrel_rails:16:in `load'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/bin/mongrel_rails:16&lt;br /&gt;
Too many open files&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:108:in `initialize'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:108:in `new'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:108:in `real_connect'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:330:in `connect'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:164:in `reconnect!'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:85:in `verify!'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `each_value'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:70:in `prepare_application'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:37:in `dispatch'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:78:in `process'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/1.8/thread.rb:135:in `synchronize'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76:in `process'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:618:in `process_client'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in `each'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in `process_client'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `run'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `initialize'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `new'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `run'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `initialize'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `new'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `run'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:271:in `run'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in `each'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in `run'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:127:in `run'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/command.rb:211:in `run'&lt;br /&gt;
&lt;br /&gt;
X:/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:243
			</description>
			<pubDate>Thu, 30 Aug 2007 19:17:24 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/711.html</guid>
		</item>
	</channel>
</rss>