<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>carl</title>
    <link>https://ruby-china.org/carl</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>寻求一种快速的的服务解决方案，谢谢大家！</title>
      <description>&lt;p&gt;需求如下：数据库中的数据我要用 RESTful API 的方式提供，用户使用 POST 方式获取数据，后台查询数据库，然后将数据打包成 JSON 返回给用户。需要的并发行较高，不能发生拥塞。请问大家用过什么好的建议吗？什么架构比较好，python 架构优先，谢谢！&lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Wed, 03 Jul 2013 10:46:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/12205</link>
      <guid>https://ruby-china.org/topics/12205</guid>
    </item>
    <item>
      <title>rails 运行后台程序</title>
      <description>&lt;p&gt;我想在 rails 下开一个后台程序，每隔 10 分钟进行一次一定规模的运算处理，大家知道有什么好的方法吗？
谢谢！  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Tue, 12 Jun 2012 15:00:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/3765</link>
      <guid>https://ruby-china.org/topics/3765</guid>
    </item>
    <item>
      <title>tornado web server 在 windows 上运行问题</title>
      <description>&lt;p&gt;大家好，我把 facebook 的 tornado web server 安装在 windows 下，跟 ubuntu 下相比处理变慢了很多，查资料说是在 windows 上不能使用 epoll 或者 kqueue，只能使用 select，所以响应会变的很慢，大家有做过这方面东西的吗？要怎么做才能使他的响应速度变快呢？还是说本身就不支持 windows，没有办法？谢谢！&lt;/p&gt;

&lt;p&gt;另外有个奇怪的问题，我在 tornado server 的 python script 里面写了一段发送 twitter 的模块，单独在命令行里运行的话，跑的很快，但是在 script 里的话，经常会卡在那里，这个 tornado server 在 windows 上支持性不好有关系吗？谢谢！&lt;/p&gt;

&lt;p&gt;ps:这个问题不属于 ruby，但是希望社区里有过研究的指点一下，谢谢~  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Sat, 03 Mar 2012 12:57:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/1580</link>
      <guid>https://ruby-china.org/topics/1580</guid>
    </item>
    <item>
      <title>jQuery mobile 在 IE 下的显示问题</title>
      <description>&lt;p&gt;项目中用了 jQuery mobile，在 chrome, firefox 中显示效果都还可以，但是在 IE 下的显示效果却很差，大家又遇到这问题的吗？要怎么解决呢？谢谢！  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Mon, 20 Feb 2012 23:04:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/1312</link>
      <guid>https://ruby-china.org/topics/1312</guid>
    </item>
    <item>
      <title>rails 中如何做 Kerberos 或 NTLM 认证</title>
      <description>&lt;p&gt;大家好，rails 程序跑在 apache+mongrel 上，想做 Kerberos 或 NTLM 认证，大家有做过的吗？有的话，有相关的教程吗？谢谢！  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Mon, 13 Feb 2012 16:27:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/1179</link>
      <guid>https://ruby-china.org/topics/1179</guid>
    </item>
    <item>
      <title>rails 中实现 windows 集成认证</title>
      <description>&lt;p&gt;如题，rails 中可以实现 windows 集成认证吗（windows 环境下）？大家有研究过的吗？如果一个 rails 项目想实现 windows 集成认证，要怎么做呢？谢谢！&lt;/p&gt;

&lt;p&gt;或者说 rail 中怎么做 LDAP 集成认证呢？  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Sun, 12 Feb 2012 16:37:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/1156</link>
      <guid>https://ruby-china.org/topics/1156</guid>
    </item>
    <item>
      <title>配置 IIS 运行 ruby on rails 网站</title>
      <description>&lt;p&gt;大家好，有人配置过 IIS 运行 ruby on rails 网站吗？下面的这个声称可以，大家用过吗？
&lt;a href="http://www.helicontech.com/articles/ruby-on-rails-on-windows-in-production/" rel="nofollow" target="_blank"&gt;http://www.helicontech.com/articles/ruby-on-rails-on-windows-in-production/&lt;/a&gt;  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Fri, 10 Feb 2012 17:17:41 +0800</pubDate>
      <link>https://ruby-china.org/topics/1134</link>
      <guid>https://ruby-china.org/topics/1134</guid>
    </item>
    <item>
      <title>rails 中 LDAP 认证问题</title>
      <description>&lt;p&gt;大家好，我想问下 LDAP 认证一般是用来做什么的？在 rails 中有很好的支持吗？我看到有个 ruby-ldap 的 extention : &lt;a href="http://ruby-ldap.sourceforge.net/" rel="nofollow" target="_blank"&gt;http://ruby-ldap.sourceforge.net/&lt;/a&gt; , 但是 06 年就没再开发了？大家有做过这个的吗？希望能给点意见。谢谢！&lt;/p&gt;

&lt;p&gt;补充：用 LDAP 做 web 认证的话，我们的 server 必须要得到用户的账号密码，然后我们的服务器去 LDAP 做认证吗？能不能有客户端完成跟 LDAP 的认证，只返回给我们 server 确认信息呢？  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Fri, 10 Feb 2012 09:43:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/1117</link>
      <guid>https://ruby-china.org/topics/1117</guid>
    </item>
    <item>
      <title>controller 之间如何传递参数</title>
      <description>&lt;p&gt;在一个 controller 中做处理，当出现某一条件时，转到另一个页面，我用了 redirect_to 进行跳转，我用：id=&amp;gt;'example', 传递参数，但是这个参数我不想让他出现在地址栏中，只想让另一个 controller 得到它，请问大家应该怎么做？
谢谢！  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Thu, 09 Feb 2012 22:01:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/1112</link>
      <guid>https://ruby-china.org/topics/1112</guid>
    </item>
    <item>
      <title>windows 下部署 rails 项目问题</title>
      <description>&lt;p&gt;出于特殊原因，需要在 windows 下部署 rails 项目，但是有的 gem 文件总是装不上，比如这个：typhoeus，想问下大家有什么解决方法吗，在 ubuntu 下可以装上这个的，有那种可以吧 gem 文件打包迁移到不同系统中使用的工具吗？&lt;/p&gt;

&lt;p&gt;谢谢大家！&lt;/p&gt;

&lt;p&gt;看到大家有的推荐用 cygwin，大家认为怎么样？  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Wed, 08 Feb 2012 10:25:38 +0800</pubDate>
      <link>https://ruby-china.org/topics/1079</link>
      <guid>https://ruby-china.org/topics/1079</guid>
    </item>
    <item>
      <title>Net::HTTP 中 HTTPS 使用超时问题</title>
      <description>&lt;p&gt;按照 ruby doc 中的示例，运用 Net::HTTP 中 HTTPS 访问下述 uri 地址，代码如下，但总是得到
“Connection timed out - connect(2)”的错误，大家知道是什么原因吗？谢谢！&lt;/p&gt;

&lt;p&gt;ps:这个 uri 其实是 windows live connect 的 REST API 的调用网址，在浏览器上可以正确打开，返回的是 JSON 数据，可以正常显示，但是下述的 ruby 代码却不好使。。是哪里写错了吗？ &lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;uri&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;URI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`https://apis.live.net/v5.0/me?access_token=EAX.../token for short /AAA=`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="no"&gt;Net&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;HTTP&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;port&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
  &lt;span class="ss"&gt;:use_ssl&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scheme&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;'https'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;Net&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;HTTP&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;puts&lt;/span&gt; &lt;span class="s2"&gt;"*****************************"&lt;/span&gt;
  &lt;span class="nb"&gt;puts&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;body&lt;/span&gt;
  &lt;span class="nb"&gt;puts&lt;/span&gt; &lt;span class="s2"&gt;"*****************************"&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>carl</author>
      <pubDate>Tue, 31 Jan 2012 10:32:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/985</link>
      <guid>https://ruby-china.org/topics/985</guid>
    </item>
    <item>
      <title>JSP 传递参数问题</title>
      <description>&lt;p&gt;web 开发新手，问题较简单，谢谢大家！
ROR 开发，jsp 代码中我得到了两个参数，想传递给服务器端，进而可以由相应的 controller 进行处理，jsp 应该怎么做？应该用什么方法？怎么写？谢谢！  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Wed, 18 Jan 2012 19:38:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/900</link>
      <guid>https://ruby-china.org/topics/900</guid>
    </item>
    <item>
      <title>Omniauth + windows liveID 登陆问题</title>
      <description>&lt;p&gt;rails3 想采用 Omniauth + windows live 进而实现 liveID 账号登陆网站，发现 provider 里没有 liveID, 大家有什么好的解决方法吗？谢谢！  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Wed, 04 Jan 2012 17:24:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/730</link>
      <guid>https://ruby-china.org/topics/730</guid>
    </item>
    <item>
      <title>entity.save! 失败求解</title>
      <description>&lt;p&gt;使用 ruby on rails 开发，数据库用的是 mongodb, 其中一个 collection 中 entity 的结构如下：&lt;/p&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"test"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"password"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"test"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"test"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"agus"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"test"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"owner"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"test"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;在 entity.rb 中使用 entity['name'] = 'ruby'
entity['method'][0]['owner']= 'ruby'
entity.save!
为什么只有 entity['name'] 正确保存了，而 entity['method'][0]['owner'] 不改变呢，有谁知道吗？谢谢！&lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Tue, 03 Jan 2012 19:57:45 +0800</pubDate>
      <link>https://ruby-china.org/topics/713</link>
      <guid>https://ruby-china.org/topics/713</guid>
    </item>
    <item>
      <title>ruby on rails 服务器安全配置</title>
      <description>&lt;p&gt;ruby on rails 新手，想问大家个问题，谢谢！
将做好的 web application 实际部署的话，服务器的安全配置有什么比较常用、好的配置策略吗？比如验证用 OAuth 还是其他？有针对 ruby on rails 服务器安全配置方面的资料吗？谢谢大家！  &lt;/p&gt;</description>
      <author>carl</author>
      <pubDate>Wed, 21 Dec 2011 11:04:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/545</link>
      <guid>https://ruby-china.org/topics/545</guid>
    </item>
  </channel>
</rss>
