<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>bzhang443</title>
    <link>https://ruby-china.org/bzhang443</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Hash 字符串和符号做键值混合问题</title>
      <description>&lt;p&gt;问题是这样的：用符号做键值生成的 Hash，然后用 json 形式存储到缓存中；下次使用时如果缓存命中，拿出缓存中的数据解析成 Hash，这样拿到的 Hash 键值就是字符串了。头疼的是，同样的数据，要区分是生成的还是缓存的，因为键值形式不一样。 
例子是，原始数据 h={a: 1, b: 2}，然后 h.to_json 存到缓存，拿出来的时候再 JSON.parse，得到 h2={"a"=&amp;gt;1, "b"=&amp;gt;2}
请教大家：有什么简单的方式能处理这种问题，能透明处理符号和字符串的键值。
还是我应该只使用字符串，这样肯定没问题。&lt;/p&gt;</description>
      <author>bzhang443</author>
      <pubDate>Wed, 05 Aug 2015 11:34:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/26777</link>
      <guid>https://ruby-china.org/topics/26777</guid>
    </item>
    <item>
      <title>大量\x00 请求，如何抛弃或者直接返回</title>
      <description>&lt;p&gt;Nginx+passenger 环境，查看 nginx 的访问日志，发现大量的奇怪请求：
106.218.48.214 - [16/Dec/2014:02:54:38 +0000] "\x00" 400 172 "-" (5.000s)
这里的\x00 请求不是正常 HTTP 请求（GET\POST 之类的），就是直接一个\x00 上来，造成处理耗时很长，这里用了 5 秒。&lt;/p&gt;

&lt;p&gt;我的应用主要服务手机，初步怀疑手机浏览器有问题。&lt;/p&gt;

&lt;p&gt;问题是：怎么配置 nginx，匹配这种\x00 请求（非 GET/POST 请求），直接返回 400，或者直接抛弃，不用再做其他处理了。&lt;/p&gt;</description>
      <author>bzhang443</author>
      <pubDate>Tue, 16 Dec 2014 11:38:18 +0800</pubDate>
      <link>https://ruby-china.org/topics/23225</link>
      <guid>https://ruby-china.org/topics/23225</guid>
    </item>
    <item>
      <title>注册时的邮箱不能用了，能提供一个修改注册邮箱的手段吗</title>
      <description>&lt;p&gt;RT，教训是：不要用公司邮箱，很多公司寿命太短。&lt;/p&gt;</description>
      <author>bzhang443</author>
      <pubDate>Wed, 16 Apr 2014 14:18:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/18635</link>
      <guid>https://ruby-china.org/topics/18635</guid>
    </item>
    <item>
      <title>[北京] -piaou-招聘 RoR 开发者２人</title>
      <description>&lt;p&gt;初创公司，准备投身比特币，涉及交易所和无线支付。
不论是信仰还是变现，我们都看好这个领域，招志同道合者加入。&lt;/p&gt;

&lt;p&gt;初始技术框架会参考&lt;a href="https://github.com/peatio/peatio" rel="nofollow" target="_blank"&gt;https://github.com/peatio/peatio&lt;/a&gt;。
相关技术参考其中的 requirement。简单说，如果能自己动手把 peatio 运行起来，并且能增加或改进其中的功能就可以了。欢迎全栈开发者：改的了数据模型修的了 CSS，最好还能熟练地操作 Linux，当然，精通一部分也是我们需要的。&lt;/p&gt;

&lt;p&gt;我们提供业界水平之上的待遇，接受远程工作。
目前公司在北京朝阳区黄渠地铁站附近办公。&lt;/p&gt;

&lt;p&gt;有意者请提供简历到 jobs@tigercoin.com&lt;/p&gt;</description>
      <author>bzhang443</author>
      <pubDate>Wed, 16 Apr 2014 13:38:28 +0800</pubDate>
      <link>https://ruby-china.org/topics/18634</link>
      <guid>https://ruby-china.org/topics/18634</guid>
    </item>
  </channel>
</rss>
