<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>putty (表情箩筐)</title>
    <link>https://ruby-china.org/putty</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>BAT IT 公司 2014 校招薪酬</title>
      <description>&lt;p&gt;&lt;a href="http://www.zhihu.com/question/26872413" rel="nofollow" target="_blank"&gt;http://www.zhihu.com/question/26872413&lt;/a&gt;&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Fri, 05 Dec 2014 17:38:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/23050</link>
      <guid>https://ruby-china.org/topics/23050</guid>
    </item>
    <item>
      <title>平复心情的方法????????</title>
      <description>&lt;p&gt;这段时间一直心不在焉，集中不了精神，刚想做又不愿意做了。实在不愿意做违心的事情，不知道怎么办~~~
很想换一份工作（这份工作已经有 5 年了）&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Tue, 04 Nov 2014 16:26:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/22469</link>
      <guid>https://ruby-china.org/topics/22469</guid>
    </item>
    <item>
      <title>用搜狗浏览器第一次访问 RubyChina 正常，点第 2 页就白屏。刷新就 OK</title>
      <description>&lt;p&gt;RT：不知道是什么问题&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Sat, 06 Sep 2014 16:48:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/21410</link>
      <guid>https://ruby-china.org/topics/21410</guid>
    </item>
    <item>
      <title>mongoid rails thread safe 相关资料</title>
      <description>&lt;p&gt;最近新加一个虚拟币的功能，突然想到如下问题：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;求 mongoid automic update，thread safe 相关资料&lt;/li&gt;
&lt;li&gt;rails controller/model 中的函数是否是 thread safe 的？&lt;/li&gt;
&lt;/ol&gt;</description>
      <author>putty</author>
      <pubDate>Fri, 11 Apr 2014 17:22:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/18545</link>
      <guid>https://ruby-china.org/topics/18545</guid>
    </item>
    <item>
      <title>求推荐 JS 游戏引擎</title>
      <description>&lt;ol&gt;
&lt;li&gt;开源的 (github 上有)&lt;/li&gt;
&lt;li&gt;2 年以上的 (github 的创建时间为准)&lt;/li&gt;
&lt;li&gt;每周都有更新&lt;/li&gt;
&lt;li&gt;有实例参考&lt;/li&gt;
&lt;/ol&gt;</description>
      <author>putty</author>
      <pubDate>Tue, 08 Apr 2014 16:46:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/18473</link>
      <guid>https://ruby-china.org/topics/18473</guid>
    </item>
    <item>
      <title>哦嗨哟萨伊马斯,米娜桑,很开森~~~~~</title>
      <description>&lt;p&gt;上周末弄了两天，折腾各种 MAC 版本。功夫不辜负我这种坚持不懈的屌丝，昨天折腾到晚上 1 点多，终于在我的 AMD 上装上了 MAC 10.8.4 + XCODE 5.0.2。先前还担心装不上，网上一边倒的说 AMD 就别去想 MAC（谁叫俺不是高富帅，没钱的屌丝只能黑苹果）有同命相连的屌丝需要 AMD 上弄 MAC 的请联系，我把我的包分享给大家。高富帅请勿喷。&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Tue, 25 Mar 2014 10:38:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/18147</link>
      <guid>https://ruby-china.org/topics/18147</guid>
    </item>
    <item>
      <title>出售一台 poweredge T410 服务器</title>
      <description>&lt;p&gt;配置如下
1.至强 E5600
2.6G 内存
3.250G 硬盘 (买的时候没有，自己配置的)
4.带光驱
有完整发票，价格面议
有需要的请电邮：发邮件到 fq_putty@qq.com&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Wed, 19 Mar 2014 22:09:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/18020</link>
      <guid>https://ruby-china.org/topics/18020</guid>
    </item>
    <item>
      <title>有没有群聊的视频开源软件</title>
      <description>&lt;p&gt;&lt;a href="http://bobo.163.com/room/100070" rel="nofollow" target="_blank"&gt;http://bobo.163.com/room/100070&lt;/a&gt;
类似这样的
求推荐&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Sun, 02 Mar 2014 12:01:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/17603</link>
      <guid>https://ruby-china.org/topics/17603</guid>
    </item>
    <item>
      <title>发帖 / 回帖限制建议</title>
      <description>&lt;p&gt;这个规则的主要目的是为了防止疯狂的发垃圾贴的行为，让删帖者不会手忙脚乱的&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;惩罚时间计数器&lt;/span&gt;
&lt;span class="n"&gt;discipline_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="n"&gt;last_time_stamp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;

&lt;span class="n"&gt;发帖&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;回帖时判断&lt;/span&gt;
&lt;span class="n"&gt;cur_timestamp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;
&lt;span class="n"&gt;discipline_time&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;discipline_count&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;可配置的惩罚时间&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cur_timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;last_time_stamp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;discipline_time&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
      &lt;span class="n"&gt;允许发帖&lt;/span&gt;&lt;span class="err"&gt;、&lt;/span&gt;&lt;span class="n"&gt;回帖&lt;/span&gt;
       &lt;span class="n"&gt;discipline_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;
     &lt;span class="n"&gt;discipline_count&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;discipline_count&lt;/span&gt;  &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
      &lt;span class="n"&gt;last_time_stamp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cur_timestamp&lt;/span&gt; 
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; 可看看可否？&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Tue, 03 Dec 2013 14:37:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/15969</link>
      <guid>https://ruby-china.org/topics/15969</guid>
    </item>
    <item>
      <title>出售一台 T410 服务器，购买时的价格是 9900 多，现在打算出售</title>
      <description>&lt;p&gt;有发票&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Fri, 22 Nov 2013 16:28:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/15736</link>
      <guid>https://ruby-china.org/topics/15736</guid>
    </item>
    <item>
      <title>畅游公布爱孝薪计划 每月送员工父母 2000 元</title>
      <description>&lt;p&gt;畅游公布爱孝薪计划 每月送员工父母 2000 元&lt;/p&gt;

&lt;p&gt;11 月 1 日晚间新浪游戏得到消息，搜狐畅游在公司内网公布了一个名为【爱孝薪计划】的福利，将给畅游 (含所有子公司) 员工的直系长辈发放每月共计两千元的爱孝薪，今年十二月起正式执行。
据预测，此计划的开支在每年 1 亿元人民币以上，将覆盖到畅游旗下的所有子公司。在本周公布的财报中，畅游第三季度营收为 1.83 亿美元，净利润为 7320 万美元。2012 年，畅游总营收 6.234 亿美元，净利 2.936 亿美元&lt;/p&gt;

&lt;p&gt;蒸的加的？&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Tue, 12 Nov 2013 17:54:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/15486</link>
      <guid>https://ruby-china.org/topics/15486</guid>
    </item>
    <item>
      <title>goagent 抽风的太厉害~\(≧▽≦)/~啦啦啦</title>
      <description>&lt;p&gt;RT&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Mon, 11 Nov 2013 10:09:45 +0800</pubDate>
      <link>https://ruby-china.org/topics/15445</link>
      <guid>https://ruby-china.org/topics/15445</guid>
    </item>
    <item>
      <title>我要见证会员破万的鸡冻时刻</title>
      <description>&lt;p&gt;&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; &lt;a href="/lgn21st" class="user-mention" title="@lgn21st"&gt;&lt;i&gt;@&lt;/i&gt;lgn21st&lt;/a&gt; &lt;a href="/Rei" class="user-mention" title="@Rei"&gt;&lt;i&gt;@&lt;/i&gt;Rei&lt;/a&gt; 三位管理能否弄个啥活动庆贺下？&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Fri, 08 Nov 2013 09:33:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/15385</link>
      <guid>https://ruby-china.org/topics/15385</guid>
    </item>
    <item>
      <title>CarrierWave 文件名重复的问题</title>
      <description>&lt;p&gt;xxxUploader 类中的函数实现&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;filename&lt;/span&gt;
   &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;original_filename&lt;/span&gt;
       &lt;span class="vi"&gt;@name&lt;/span&gt; &lt;span class="o"&gt;||=&lt;/span&gt; &lt;span class="no"&gt;Digest&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;MD5&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hexdigest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dirname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;current_path&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
         &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;#{&lt;/span&gt;&lt;span class="vi"&gt;@name&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;.&lt;/span&gt;&lt;span class="si"&gt;#{&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extension&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
     &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="no"&gt;XXXX&lt;/span&gt; &lt;span class="n"&gt;model类中的定义&lt;/span&gt;
&lt;span class="n"&gt;mount_uploader&lt;/span&gt; &lt;span class="ss"&gt;:xxx_file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;xxxUploader&lt;/span&gt;

&lt;span class="n"&gt;xxxx&lt;/span&gt; &lt;span class="n"&gt;controller类中的定义&lt;/span&gt;
    &lt;span class="no"&gt;Dir&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;foreach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/home/xxxx/test/"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
      &lt;span class="n"&gt;ext_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;ext_name&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;".rar"&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;ext_name&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;".zip"&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;ext_name&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;".7z"&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
          &lt;span class="n"&gt;xxx_img&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;XXXX&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;
          &lt;span class="n"&gt;xxx_img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;xxx_file&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/home/xxx/test/"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="n"&gt;xxx_img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save!&lt;/span&gt;
      &lt;span class="k"&gt;end&lt;/span&gt; 
    &lt;span class="p"&gt;}&lt;/span&gt;   

&lt;span class="n"&gt;最后发现model中的xxx_file有重复的名字&lt;/span&gt;&lt;span class="err"&gt;？&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>putty</author>
      <pubDate>Tue, 05 Nov 2013 10:33:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/15307</link>
      <guid>https://ruby-china.org/topics/15307</guid>
    </item>
    <item>
      <title>上传文件出错</title>
      <description>&lt;p&gt;Processing by PhotosController#create as &lt;em&gt;/&lt;/em&gt;
  Parameters: {"Filedata"=&amp;gt;#, &lt;a href="/original_filename" class="user-mention" title="@original_filename"&gt;&lt;i&gt;@&lt;/i&gt;original_filename&lt;/a&gt;="5
Completed 500 Internal Server Error in 221ms&lt;/p&gt;

&lt;p&gt;Errno::ENOENT (No such file or directory - /tmp/mini_magick20131015-9013-5fpa1x.jpg):
  config/initializers/carrierwave.rb:39:in &lt;code&gt;image='
  app/controllers/photos_controller.rb:8:in&lt;/code&gt;create'&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;安装了 ImageMagick
Version: ImageMagick 6.6.9-7 2012-08-17 Q16 &lt;a href="http://www.imagemagick.org" rel="nofollow" target="_blank"&gt;http://www.imagemagick.org&lt;/a&gt;
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP&lt;br&gt;
2.Gem
gem 'carrierwave', '0.6.2'
gem 'carrierwave-upyun', '0.1.5'
gem 'carrierwave-qiniu'
gem 'mini_magick','3.3', require: false&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;改成七牛用了好几天是 ok 的，中午发现不行的
求&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt;  帮忙，在线等待&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Tue, 15 Oct 2013 14:00:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/14760</link>
      <guid>https://ruby-china.org/topics/14760</guid>
    </item>
    <item>
      <title>熬夜写代码后头昏眼花</title>
      <description>&lt;p&gt;12 号 21:15 开始写到凌晨 3:52，结果 13 号一天过得很惨，吃饭不香，睡觉不爽。到今天才恢复过来，不知道大家有没有这种经历。申明下，我是很喜欢写代码的。只是不喜欢熬夜，对我来说白天写代码是一种享受，晚上写代码是一种受罪。&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Mon, 14 Oct 2013 09:47:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/14722</link>
      <guid>https://ruby-china.org/topics/14722</guid>
    </item>
    <item>
      <title>求免费的图片储存空间</title>
      <description>&lt;p&gt;用默认的 ruby-china 中的 upyun 账号存不了&lt;/p&gt;</description>
      <author>putty</author>
      <pubDate>Mon, 07 Oct 2013 20:18:37 +0800</pubDate>
      <link>https://ruby-china.org/topics/14568</link>
      <guid>https://ruby-china.org/topics/14568</guid>
    </item>
    <item>
      <title>ruby-china 跑起来有两个 BUG</title>
      <description>&lt;p&gt;浏览器：chrome
有如下两个问题&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Uncaught ReferenceError: CURRENT_USER_ACCESS_TOKEN is not defined &lt;/li&gt;
&lt;li&gt;按"回复此楼" 的时候会出现两个 #n 楼 &lt;a href="/xxxx" class="user-mention" title="@xxxx"&gt;&lt;i&gt;@&lt;/i&gt;xxxx&lt;/a&gt;
求管理帮忙看看&lt;/li&gt;
&lt;/ol&gt;</description>
      <author>putty</author>
      <pubDate>Fri, 27 Sep 2013 11:22:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/14426</link>
      <guid>https://ruby-china.org/topics/14426</guid>
    </item>
  </channel>
</rss>
