<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>dfang (dfang)</title>
    <link>https://ruby-china.org/dfang</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>RailsConf 2015</title>
      <description>&lt;p&gt;timestamps:  &lt;a href="https://gist.github.com/seapy/8bc4e8a667578de8dffb" rel="nofollow" target="_blank"&gt;https://gist.github.com/seapy/8bc4e8a667578de8dffb&lt;/a&gt;&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sun, 26 Apr 2015 17:07:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/25322</link>
      <guid>https://ruby-china.org/topics/25322</guid>
    </item>
    <item>
      <title>Upcoming changes in Rails 5.0</title>
      <description>&lt;p&gt;&lt;a href="https://intercityup.com/blog/upcoming-changes-in-rails-5-0.html" rel="nofollow" target="_blank"&gt;https://intercityup.com/blog/upcoming-changes-in-rails-5-0.html&lt;/a&gt;&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Thu, 23 Apr 2015 19:18:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/25274</link>
      <guid>https://ruby-china.org/topics/25274</guid>
    </item>
    <item>
      <title>如何阻拦恶意扫描</title>
      <description>&lt;p&gt;一 rails 应用程序，配了 exception_notification 用来抓异常发送邮件的，但是网站遭到很多恶意扫描，/users/sign_up/aspcheck.asp，users/sign_up/DotNetInfo.aspx 都是没有规律的，exception_notification 里去屏蔽，要写的规则那太多了，大家一般怎么应对这种恶意扫描的，求分享经验&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Tue, 17 Jun 2014 09:59:37 +0800</pubDate>
      <link>https://ruby-china.org/topics/19986</link>
      <guid>https://ruby-china.org/topics/19986</guid>
    </item>
    <item>
      <title>如果你也觉得 man page 太长了，可以试试 tldr</title>
      <description>&lt;p&gt;传送门：&lt;/p&gt;

&lt;p&gt;&lt;a href="https://coderwall.com/p/et8r9g" rel="nofollow" target="_blank"&gt;https://coderwall.com/p/et8r9g&lt;/a&gt;
&lt;a href="https://github.com/rprieto/tldr" rel="nofollow" target="_blank"&gt;https://github.com/rprieto/tldr&lt;/a&gt;&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Tue, 08 Apr 2014 18:04:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/18476</link>
      <guid>https://ruby-china.org/topics/18476</guid>
    </item>
    <item>
      <title>为什么我的 pry-rails console 不能粘贴多行 ruby 代码？</title>
      <description>&lt;p&gt;是因为 readline 没有编译进 ruby 吗？如果是，有什么办法检验一下呢？&lt;/p&gt;

&lt;p&gt;我用的是 brew 和 rbenv(rbenv-readline，ruby-build) 安装的，有什么最简单的修复方式吗？我现在没有时间重新安装 ruby。&lt;/p&gt;

&lt;p&gt;另：注释掉 gemfile 里的 pry-rails 行，用 irb 是正常的&lt;/p&gt;

&lt;p&gt;谢谢！&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Thu, 13 Feb 2014 14:21:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/17225</link>
      <guid>https://ruby-china.org/topics/17225</guid>
    </item>
    <item>
      <title>Remote pair programming done right </title>
      <description>&lt;p&gt;&lt;a href="https://floobits.com" rel="nofollow" target="_blank"&gt;https://floobits.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;截图上来看 挺不错的&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Fri, 16 Aug 2013 12:03:44 +0800</pubDate>
      <link>https://ruby-china.org/topics/13376</link>
      <guid>https://ruby-china.org/topics/13376</guid>
    </item>
    <item>
      <title>rails 中如何实现 session countdown ？</title>
      <description>&lt;p&gt;这个&lt;a href="https://github.com/kswope/session_countdown" rel="nofollow" target="_blank"&gt;https://github.com/kswope/session_countdown&lt;/a&gt; 有些看不懂，用起来也会报错&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Thu, 29 Nov 2012 07:00:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/7175</link>
      <guid>https://ruby-china.org/topics/7175</guid>
    </item>
    <item>
      <title>吐槽一下 ruby 的文档</title>
      <description>&lt;p&gt;为什么 ruby 的文档有很多重复的，ruby-doc 竟然貌似还不是官方的（看网站底部的说明），而是私人维护的 .....&lt;/p&gt;

&lt;p&gt;有些地方错没错就不知道了，但是这些肯定重复了&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.ruby-doc.org/core-1.9.3/Kernel.html" rel="nofollow" target="_blank"&gt;http://www.ruby-doc.org/core-1.9.3/Kernel.html&lt;/a&gt;
fork [{ block }] → fixnum or nil&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.ruby-doc.org/core-1.9.3/Kernel.html" rel="nofollow" target="_blank"&gt;http://www.ruby-doc.org/core-1.9.3/Kernel.html&lt;/a&gt;
&lt;strong&gt;method&lt;/strong&gt; → symbol&lt;/p&gt;

&lt;p&gt;&lt;a href="http://ruby-doc.org/core-1.8.7/Kernel.html" rel="nofollow" target="_blank"&gt;http://ruby-doc.org/core-1.8.7/Kernel.html&lt;/a&gt;
autoload(module, filename) =&amp;gt; nil&lt;/p&gt;

&lt;p&gt;&lt;a href="http://ruby-doc.org/core-1.9.3/Object.html" rel="nofollow" target="_blank"&gt;http://ruby-doc.org/core-1.9.3/Object.html&lt;/a&gt;
is_a?(class) → true or false&lt;/p&gt;

&lt;p&gt;而且为什么没有哪个文档标明哪些方法是 public 的，哪些是 private 的.....&lt;/p&gt;

&lt;p&gt;另外顺便问下这个问题
&lt;a href="http://stackoverflow.com/questions/11632416/if-self-is-always-the-implied-receiver-in-ruby-why-doesnt-self-puts-work" rel="nofollow" target="_blank"&gt;http://stackoverflow.com/questions/11632416/if-self-is-always-the-implied-receiver-in-ruby-why-doesnt-self-puts-work&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;但是我认为答案说得不对啊，因为 puts is a public method , method(:puts).owner.public_methods.grep /puts/ returns [:puts] .&lt;/p&gt;

&lt;p&gt;MRI ruby 1.93p194&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sun, 23 Sep 2012 11:44:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/5699</link>
      <guid>https://ruby-china.org/topics/5699</guid>
    </item>
    <item>
      <title>bundle install 需要输入密码</title>
      <description>&lt;p&gt;小搜了一下，没有搜到，没时间折腾，碰到过这个问题的给我说下。。。。&lt;/p&gt;

&lt;p&gt;moutain lion 10.8.1
当前用户已经是管理员了，用的 RVM，Single-User installations。。。&lt;/p&gt;

&lt;p&gt;thx !&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Wed, 19 Sep 2012 11:35:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/5628</link>
      <guid>https://ruby-china.org/topics/5628</guid>
    </item>
    <item>
      <title>rails project 文件夹下运行 rspec spec 和 rake spec 到底有什么区别</title>
      <description>&lt;p&gt;RT，貌似有区别的、
现象 1：某个项目下：rake spec 和 rspec spec 都能运行，但后者要比前者快
现象 2：另个项目下：rake spec 直接输出是空的，啥效果都没有，rspec spec 有消息输出&lt;/p&gt;

&lt;p&gt;这两个到底有什么区别啊？大家用的是哪一种啊？&lt;/p&gt;

&lt;p&gt;Gemfile 中：
‘rspec_rails’
‘factory_girl_rails’
...........&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sat, 08 Sep 2012 20:11:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/5432</link>
      <guid>https://ruby-china.org/topics/5432</guid>
    </item>
    <item>
      <title>vmware ＋ mac os x mountain lion 环境下 .railsrc 不起作用</title>
      <description>&lt;p&gt;为了和公司环境一致，今天花了一天时间，在 vmware 中配置好了 mac osx mountain lion 上的 ror 环境，vmware tools 安装失败，xcode 安装失败，但 command line tools for xcode 装好了，所以 brew，rvm，oh-my-zsh 都能用，不妨碍配置一个 ror 环境&lt;/p&gt;

&lt;p&gt;总之还凑合吧&lt;/p&gt;

&lt;p&gt;只是有点郁闷的是 为什么之前配置的.railsrc 不能用，在 iterm2/terminal ＋ bash/zsh 都不能用，其实就一句话，--skip-bundle &lt;/p&gt;

&lt;p&gt;但是 .gemrc    gem: --no-rdoc --no-ri 又有用，有点纳闷，谁知道告诉下我&lt;/p&gt;

&lt;p&gt;如果谁需要这个这个镜像，给我留言，给你种子的下载地址，已经装好的 vmware 镜像，直接用 vmware 打开就可以了。。。&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sun, 26 Aug 2012 19:56:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/5171</link>
      <guid>https://ruby-china.org/topics/5171</guid>
    </item>
    <item>
      <title>我的一套 vim 配置在 ubuntu 下好好的，在 mac osx 很乱，怎么调下?</title>
      <description>&lt;p&gt;一般要注意什么啊？特别是 fuzzyfinder 完全和在 ubuntu 下的表现不一样。第 2 次用 mac，完全不会调&lt;/p&gt;

&lt;p&gt;这是配置的地址
&lt;a href="https://github.com/dfang/vim_config" rel="nofollow" target="_blank"&gt;https://github.com/dfang/vim_config&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;update：&lt;/p&gt;

&lt;p&gt;set mouse=a 在 vim 中为什么不起作用呢？&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Tue, 21 Aug 2012 10:16:26 +0800</pubDate>
      <link>https://ruby-china.org/topics/5062</link>
      <guid>https://ruby-china.org/topics/5062</guid>
    </item>
    <item>
      <title>vim 怎么配置快捷键可以显示 snippets？</title>
      <description>&lt;p&gt;想到 viusal studio 或 sublime 插入 snippet 那样的效果 .&lt;/p&gt;

&lt;p&gt;比如 sublime，按下 ctrl shift p , 输入 form，然后所有 form 相关的 snippets 都列出来了，输入 snip，所有在 erb 下能用的 snippets 都列出来了&lt;/p&gt;

&lt;p&gt;怎么配置下 vim，按下快捷键，然后显示该文件类型可用的 snippets 呢？&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Fri, 17 Aug 2012 17:19:41 +0800</pubDate>
      <link>https://ruby-china.org/topics/5001</link>
      <guid>https://ruby-china.org/topics/5001</guid>
    </item>
    <item>
      <title>tmux 下 vim 有些行为很怪异</title>
      <description>&lt;p&gt;tmux 后，启动 vim，insert 模式下，按上下左右方向键出来是的 ABCD 几个字母，还有 backspace 不能删除 我需要对 tmux 设置些什么吗？不用 tmux 的时候，vim 的 insert 模式很正常，怎么彻底解决 tmux 引起 vim 键位各种错乱的问题呢？&lt;/p&gt;

&lt;p&gt;环境：
ubuntu 12.04 server
vim 7.3
tmux 1.6&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sat, 11 Aug 2012 11:26:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/4866</link>
      <guid>https://ruby-china.org/topics/4866</guid>
    </item>
    <item>
      <title>怎么最快让一个老版本的 application 跑起来？</title>
      <description>&lt;p&gt;有时候，想运行看下别人的应用程序看看，
比如这个&lt;a href="http://railscasts.com/episodes/241-simple-omniauth" rel="nofollow" target="_blank"&gt;http://railscasts.com/episodes/241-simple-omniauth&lt;/a&gt;
和&lt;a href="https://github.com/lgn21st/oauth2-provider-site" rel="nofollow" target="_blank"&gt;https://github.com/lgn21st/oauth2-provider-site&lt;/a&gt;
但是自己的环境是最新的（ruby：1.9.3p194，rails：3.2.7）
bundle install 就过不了，这时候是删掉 Gemfile.lock 好呢，还是改 source 去 rubyforge 等地方下载呢？&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Thu, 09 Aug 2012 13:47:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/4830</link>
      <guid>https://ruby-china.org/topics/4830</guid>
    </item>
    <item>
      <title>反馈下 ruby-china 手机版 两个小问题</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; 
我没找到返回首页的链接，好像没有
另外发布帖子的时候保存按钮无法 Post&lt;/p&gt;

&lt;p&gt;环境：WP7 + 自带的 IE 浏览器&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sun, 05 Aug 2012 18:18:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/4748</link>
      <guid>https://ruby-china.org/topics/4748</guid>
    </item>
    <item>
      <title>分享一个超赞的 Linux 命令学习网站</title>
      <description>&lt;p&gt;逛微博时发现的，真心不错，和大家分享下，不多说，点进去就知道了&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.commandlinefu.com/commands/browse/sort-by-votes" rel="nofollow" target="_blank"&gt;http://www.commandlinefu.com/commands/browse/sort-by-votes&lt;/a&gt;&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Mon, 30 Jul 2012 23:46:26 +0800</pubDate>
      <link>https://ruby-china.org/topics/4645</link>
      <guid>https://ruby-china.org/topics/4645</guid>
    </item>
    <item>
      <title>为什么我的 NERDTree 不支持鼠标操作呢？</title>
      <description>&lt;p&gt;官方文档说 NERDTree 也支持鼠标操作，这个视频中也有提到 NERDTree 支持鼠标操作的
&lt;a href="http://net.tutsplus.com/tutorials/other/vim-essential-plugin-nerdtree/" rel="nofollow" target="_blank"&gt;http://net.tutsplus.com/tutorials/other/vim-essential-plugin-nerdtree/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;为什么我的就不行了呢，我是用 vundle 来装的
是这个版本的 NERDTree，最新的， &lt;a href="https://github.com/scrooloose/nerdtree" rel="nofollow" target="_blank"&gt;https://github.com/scrooloose/nerdtree&lt;/a&gt;
我试过全卸载所有插件再装一次 nerdtree 都不行的&lt;/p&gt;

&lt;p&gt;还有&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; 的那种配置，鼠标拖动可以改变 NERDTree 的宽度是怎么弄的啊？&lt;/p&gt;

&lt;p&gt;谢谢！&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sun, 29 Jul 2012 12:31:26 +0800</pubDate>
      <link>https://ruby-china.org/topics/4626</link>
      <guid>https://ruby-china.org/topics/4626</guid>
    </item>
    <item>
      <title>分享几个 Vim 的教学视频 URL</title>
      <description>&lt;p&gt;Learn Vim Progressively:
&lt;a href="http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/" rel="nofollow" target="_blank"&gt;http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Vim Introduction and Tutorial:
&lt;a href="http://blog.interlinked.org/tutorials/vim_tutorial.html" rel="nofollow" target="_blank"&gt;http://blog.interlinked.org/tutorials/vim_tutorial.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://net.tutsplus.com/articles/web-roundups/25-vim-tutorials-screencasts-and-resources/" rel="nofollow" target="_blank"&gt;http://net.tutsplus.com/articles/web-roundups/25-vim-tutorials-screencasts-and-resources/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NerdTree：
&lt;a href="http://net.tutsplus.com/tutorials/other/vim-essential-plugin-nerdtree/" rel="nofollow" target="_blank"&gt;http://net.tutsplus.com/tutorials/other/vim-essential-plugin-nerdtree/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Surround：
&lt;a href="http://net.tutsplus.com/tutorials/other/vim-essential-plugin-surround/" rel="nofollow" target="_blank"&gt;http://net.tutsplus.com/tutorials/other/vim-essential-plugin-surround/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SnipMate
&lt;a href="http://net.tutsplus.com/tutorials/other/vim-essential-plugin-snipmate/" rel="nofollow" target="_blank"&gt;http://net.tutsplus.com/tutorials/other/vim-essential-plugin-snipmate/&lt;/a&gt;&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sun, 22 Jul 2012 21:50:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/4492</link>
      <guid>https://ruby-china.org/topics/4492</guid>
    </item>
    <item>
      <title>我想贡献 wiki 不知道怎么添加？</title>
      <description>&lt;p&gt;RT .&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.ibm.com/developerworks/cn/web/wa-rspec/index.html" rel="nofollow" target="_blank"&gt;http://www.ibm.com/developerworks/cn/web/wa-rspec/index.html&lt;/a&gt;
本人在学习 rspec，看到这篇文章还不错，推荐一下。
新手注意，该文章使用的是 1.8 版本的 ruby，如果你用的是 1.9，某些地方要相应的改下，比如 require 'machine' , 要改为 require './machine' , spec machine_spec.rb  改为 rspec machine_spec.rb。。。。。。&lt;/p&gt;</description>
      <author>dfang</author>
      <pubDate>Sat, 21 Jul 2012 22:54:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/4470</link>
      <guid>https://ruby-china.org/topics/4470</guid>
    </item>
  </channel>
</rss>
