<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>junlai (老程故事多)</title>
    <link>https://ruby-china.org/junlai</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>国外的一篇 web 框架大比拼的文章，跟 robbin 的文章可以对照来看</title>
      <description>&lt;p&gt;分享一篇最新出炉国外的 web 框架大比拼的文章，
&lt;a href="http://www.techempower.com/blog/2013/03/28/framework-benchmarks/" rel="nofollow" target="_blank"&gt;http://www.techempower.com/blog/2013/03/28/framework-benchmarks/&lt;/a&gt;
文章介绍了详细的性能测试过程，包括 json 对象的序列化，连接数据库等，值得一看。
ruby、python 系列的框架跟 java 等比拼在性能上差距还是很大：
&lt;img src="//l.ruby-china.com/photo/9e317c6e5a26e0c19d495725e9e4b228.png" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;但是从测试代码的长短来看，ruby 系的就瞬间秒杀其他语言了：
&lt;img src="//l.ruby-china.com/photo/556ee4cdfcc3d8bf133a70c56a09cdae.png" title="" alt=""&gt;
&lt;img src="//l.ruby-china.com/photo/aa7872a91b6c7cac20f98f264451913a.png" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;我觉得选框架就跟习大大说的那样，鞋子合不合适，只有脚知道。没有最好，只有最合适的。&lt;/p&gt;</description>
      <author>junlai</author>
      <pubDate>Sat, 30 Mar 2013 08:02:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/9853</link>
      <guid>https://ruby-china.org/topics/9853</guid>
    </item>
    <item>
      <title>如何获取文件的编码</title>
      <description>&lt;p&gt;用户上传的文本文件，请问该如何获取这个文件的 encoding？以便正确的解析这个文件。  &lt;/p&gt;</description>
      <author>junlai</author>
      <pubDate>Wed, 11 Jul 2012 11:24:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/4241</link>
      <guid>https://ruby-china.org/topics/4241</guid>
    </item>
    <item>
      <title>如何指定 id 数组，使用 where in 查询，然后利用指定的 id 数组排序？</title>
      <description>&lt;p&gt;使用场景如&lt;strong&gt;ruby china&lt;/strong&gt;中的&lt;strong&gt;我的收藏&lt;/strong&gt;功能：
&lt;br&gt;
       &lt;code&gt;Topic.find(@user.favorite_topic_ids)&lt;/code&gt;
&lt;br&gt;
  或者
&lt;br&gt;
       &lt;code&gt;Topic.where("id in (@user.favorite_topic_ids)")&lt;/code&gt;
&lt;br&gt;
请问如何才能让返回结果也能按照指定的&lt;strong&gt;favorite_topic_ids&lt;/strong&gt;的顺序进行排序呢？ &lt;/p&gt;</description>
      <author>junlai</author>
      <pubDate>Thu, 03 May 2012 10:42:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/3047</link>
      <guid>https://ruby-china.org/topics/3047</guid>
    </item>
    <item>
      <title>用 qq 做第三方登录，有没有稳定的 omniauth-qq 可用？</title>
      <description>&lt;p&gt;弱弱的问一下朋友们，关于 omniauth，有没有比较稳定的 qq 帐号登录的 gem？类似 omniauth-qq。  &lt;/p&gt;</description>
      <author>junlai</author>
      <pubDate>Wed, 08 Feb 2012 16:11:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/1085</link>
      <guid>https://ruby-china.org/topics/1085</guid>
    </item>
  </channel>
</rss>
