<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>hbin (hbin)</title>
    <link>https://ruby-china.org/hbin</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Rails 的欢迎页面改了 :laughing: </title>
      <description>&lt;p&gt;&lt;a href="https://github.com/rails/rails/pull/32735" rel="nofollow" target="_blank"&gt;https://github.com/rails/rails/pull/32735&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2018/b13bcd54-0a71-48b5-9414-29d08061a1cd.jpg!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Fri, 27 Apr 2018 12:36:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/36079</link>
      <guid>https://ruby-china.org/topics/36079</guid>
    </item>
    <item>
      <title>我不是在擦键盘，这个工具真的叫 asdf</title>
      <description>&lt;p&gt;rbenv, pyenv, nvm, exenv ... 这么多版本管理工具，而且每一个都有对应 oh-my-zsh plugin，都加上后连 zsh 都慢了下来，导致每次新开 Tab 都要等两三秒。&lt;/p&gt;

&lt;p&gt;无意中发现这个 &lt;a href="https://github.com/asdf-vm/asdf" rel="nofollow" target="_blank" title=""&gt;asdf&lt;/a&gt; 号称：可扩展的版本管理工具，可以支持 Ruby, Node.js, Elixir 等多种语言和工具。&lt;/p&gt;

&lt;p&gt;目前支持的语言：&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Elixir&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;Erlang&lt;/li&gt;
&lt;li&gt;Go&lt;/li&gt;
&lt;li&gt;LFE&lt;/li&gt;
&lt;li&gt;Lua&lt;/li&gt;
&lt;li&gt;OpenResty&lt;/li&gt;
&lt;li&gt;MongoDB&lt;/li&gt;
&lt;li&gt;Node.js&lt;/li&gt;
&lt;li&gt;PHP&lt;/li&gt;
&lt;li&gt;Postgres&lt;/li&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;li&gt;Redis&lt;/li&gt;
&lt;li&gt;Riak&lt;/li&gt;
&lt;li&gt;Ruby&lt;/li&gt;
&lt;li&gt;Rust&lt;/li&gt;
&lt;li&gt;Terraform&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;什么？还有 Postgres? Redis?? MongoDB??? 简直多到没朋友！！！&lt;/p&gt;

&lt;p&gt;花了一点时间装上试用，删除多余的 oh-my-zsh 的插件，打开终端 Tab 又快到飞起，小霸王游戏机珍藏版 84 合 1 的感觉！值！！！&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Wed, 23 Nov 2016 15:31:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/31667</link>
      <guid>https://ruby-china.org/topics/31667</guid>
    </item>
    <item>
      <title>Homebrew 作者被 Google 鄙视了…</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2015/155909d1ec0a4e16861038f015700505.jpg" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2015/33e363cb266f0f618f8d99423e72f4d5.jpg" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Thu, 11 Jun 2015 13:34:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/25977</link>
      <guid>https://ruby-china.org/topics/25977</guid>
    </item>
    <item>
      <title>Ryan Bates 是要回来了吗？！</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2015/926f4612ca9c65b78eeee611ca656739.jpg" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Fri, 27 Mar 2015 14:19:25 +0800</pubDate>
      <link>https://ruby-china.org/topics/24864</link>
      <guid>https://ruby-china.org/topics/24864</guid>
    </item>
    <item>
      <title>Docker 1.5 发布了！</title>
      <description>&lt;p&gt;&lt;a href="http://blog.docker.com/2015/02/docker-1-5-ipv6-support-read-only-containers-stats-named-dockerfiles-and-more/" rel="nofollow" target="_blank"&gt;http://blog.docker.com/2015/02/docker-1-5-ipv6-support-read-only-containers-stats-named-dockerfiles-and-more/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/docker/docker/blob/master/CHANGELOG.md" rel="nofollow" target="_blank"&gt;https://github.com/docker/docker/blob/master/CHANGELOG.md&lt;/a&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Wed, 11 Feb 2015 10:31:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/24216</link>
      <guid>https://ruby-china.org/topics/24216</guid>
    </item>
    <item>
      <title>请问这种网站是怎么实现的？</title>
      <description>&lt;p&gt;今天朋友给我发了一个网址 &lt;a href="https://awk.so/" rel="nofollow" target="_blank"&gt;https://awk.so/&lt;/a&gt;。
内容功能和 Google 一样，只是域名改了而已，看样子是把所有的请求在后端转发到了 Google。
请问哪位知道这是通过什么实现的？&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Sun, 04 Jan 2015 11:41:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/23528</link>
      <guid>https://ruby-china.org/topics/23528</guid>
    </item>
    <item>
      <title>微软官方提供免费正版 Windows 操作系统虚拟机镜像下载！</title>
      <description>&lt;p&gt;包含 Windows XP - Windows 10，可以支持的虚拟机有 VirtualBox、VMware Fusion、Parallels。&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.modern.ie/en-us/virtualization-tools#downloads" rel="nofollow" target="_blank"&gt;https://www.modern.ie/en-us/virtualization-tools#downloads&lt;/a&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Fri, 19 Dec 2014 09:12:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/23278</link>
      <guid>https://ruby-china.org/topics/23278</guid>
    </item>
    <item>
      <title>方便管理 Vagrant 的工具 (Mac)</title>
      <description>&lt;p&gt;一个图形化管理工具：&lt;a href="http://vagrantmanager.com/" rel="nofollow" target="_blank"&gt;http://vagrantmanager.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PS: 我特别喜欢把 menu bar 堆得满满的。
&lt;img src="https://l.ruby-china.com/photo/2014/cc4150f27b2d1956bc88c4c4166f8b7f.jpg" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Tue, 04 Nov 2014 11:54:21 +0800</pubDate>
      <link>https://ruby-china.org/topics/22458</link>
      <guid>https://ruby-china.org/topics/22458</guid>
    </item>
    <item>
      <title>Emacs 24.4 is finally out!</title>
      <description>&lt;p&gt;&lt;a href="http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00713.html" rel="nofollow" target="_blank"&gt;http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00713.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GNU Emacs for Mac 地址：&lt;a href="http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00713.html" rel="nofollow" target="_blank"&gt;http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00713.html&lt;/a&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Tue, 21 Oct 2014 10:21:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/22155</link>
      <guid>https://ruby-china.org/topics/22155</guid>
    </item>
    <item>
      <title>Ruby setter method returns the passed value, regardless the returned value in the method.</title>
      <description>&lt;p&gt;RT，Setter 方法返回值为传入参数。很惭愧直到今天才知道。&lt;img title=":confused:" alt="😕" src="https://twemoji.ruby-china.com/2/svg/1f615.svg" class="twemoji"&gt;&lt;/p&gt;

&lt;p&gt;代码示例&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class User
  attr_reader :name

  def name=(name)
    @name = name
    self
  end
end

original_array = ["aaa", "bbb", "bbb"]
result = original_array.collect { |str| User.new.name = str }
puts result.inspect # =&amp;gt; ["aaa", "bbb", "bbb"]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;正确写法是&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;original_array.collect { |str| User.new.tap { |user| user.name = str } }
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>hbin</author>
      <pubDate>Tue, 13 May 2014 11:47:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/19216</link>
      <guid>https://ruby-china.org/topics/19216</guid>
    </item>
    <item>
      <title>这个 Mac Bundle 太值了！</title>
      <description>&lt;p&gt;地址：&lt;a href="http://www.parallels.com/cn/bundlesale/" rel="nofollow" target="_blank"&gt;http://www.parallels.com/cn/bundlesale/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;包含 PD9 for Mac、1Password、Fantastical、KIS（卡巴斯基）for Mac、CleanMyMac 2、MacHider、Parallels Access for iPad，总价值达 1191 元。现售价 299 元！&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Sat, 22 Feb 2014 21:09:27 +0800</pubDate>
      <link>https://ruby-china.org/topics/17420</link>
      <guid>https://ruby-china.org/topics/17420</guid>
    </item>
    <item>
      <title>用 Janus 的朋友，你们是怎么在当前项目下搜索的？</title>
      <description>&lt;p&gt;自从换 Janus 后，就把自己以前的配置都删了，使用一段时间后发现如果用 Ack 搜索时只会在当前文件所在目录下搜索，而不是整个项目，这个在他的文档里也有&lt;a href="https://github.com/carlhuda/janus#ackvim" rel="nofollow" target="_blank" title=""&gt;说明&lt;/a&gt;。&lt;/p&gt;

&lt;p&gt;Google 了也没有发现修改的方法，不知道你们怎么配置这个的。&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Tue, 22 Oct 2013 10:47:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/14931</link>
      <guid>https://ruby-china.org/topics/14931</guid>
    </item>
    <item>
      <title>XahLee 你们还认识吗？</title>
      <description>&lt;p&gt;&lt;a href="/zw963" class="user-mention" title="@zw963"&gt;&lt;i&gt;@&lt;/i&gt;zw963&lt;/a&gt; &lt;a href="/doitian" class="user-mention" title="@doitian"&gt;&lt;i&gt;@&lt;/i&gt;doitian&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;不知道在你们学习 Emacs 过程中有没有看过&lt;a href="http://xahlee.org/" rel="nofollow" target="_blank" title=""&gt;李杀网的 elisp 简明教程&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;而我刚刚看到一个关于他的帖子，&lt;a href="http://pledgie.com/campaigns/18959" rel="nofollow" target="_blank"&gt;http://pledgie.com/campaigns/18959&lt;/a&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;这是真的么？&lt;/li&gt;
&lt;li&gt;这个世界好残酷...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;补充一个地址： &lt;a href="http://wordyenglish.com/chinese/blog.html" rel="nofollow" target="_blank"&gt;http://wordyenglish.com/chinese/blog.html&lt;/a&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Tue, 23 Apr 2013 16:49:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/10435</link>
      <guid>https://ruby-china.org/topics/10435</guid>
    </item>
    <item>
      <title>I hate the trailing whitespaces!!</title>
      <description>&lt;p&gt;也许有人会说我有代码洁癖，认为关心这不痛不痒的东西纯粹浪费时间和精力。甚至有部分家伙以 &lt;code&gt;我很懒&lt;/code&gt; 标榜自己，所以对此不屑。&lt;/p&gt;

&lt;p&gt;但是，这个东西真的会让人很恼火啊~~！！！&lt;/p&gt;

&lt;p&gt;假设你们都不删除行尾空格，然后某人对行尾空格敏感，把他的工具设置了保存自动删除，这会很容易导致代码冲突，然后还要被其他人喷为什么搞这么多冲突~，其实是你们自己编码不规范！！！&lt;a href="http://programmers.stackexchange.com/questions/121555/why-is-trailing-whitespace-a-big-deal" rel="nofollow" target="_blank" title=""&gt;看看这里吧!!!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;我个人是个 Emacs 用户，正如帖子里面说的，Emacs 可以通过非常简单的设置就搞定这些问题，可是到目前为止，我这个配置还一直被注释着，因为公司的代码里到处都是行尾空格，代码不对齐！！！&lt;/p&gt;

&lt;p&gt;好吧，为了你们这些懒人，这是 Vim 和 Emacs 删除行尾的方法&lt;/p&gt;

&lt;p&gt;Vim: &lt;/p&gt;

&lt;p&gt;&lt;a href="http://vim.wikia.com/wiki/Remove_unwanted_spaces#Automatically_removing_all_trailing_whitespace" rel="nofollow" target="_blank"&gt;http://vim.wikia.com/wiki/Remove_unwanted_spaces#Automatically_removing_all_trailing_whitespace&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Emacs: &lt;/p&gt;
&lt;pre class="highlight common_lisp"&gt;&lt;code&gt;&lt;span class="c1"&gt;;; 存盘前删除行末多余的空格/空行&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;add-hook&lt;/span&gt; &lt;span class="ss"&gt;'before-save-hook&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;whitespace-cleanup&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Sublime Text:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/SublimeText/TrailingSpaces" rel="nofollow" target="_blank"&gt;https://github.com/SublimeText/TrailingSpaces&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;欢迎其他工具用户补充！&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Mon, 11 Mar 2013 19:01:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/9331</link>
      <guid>https://ruby-china.org/topics/9331</guid>
    </item>
    <item>
      <title>请问大家用什么看 API?</title>
      <description>&lt;p&gt;刚看完《Ruby on Rails Tutorial》第九章，练习第二题是要将 Gravatar 的链接以弹窗形式打开。
第一个想法便是用 Emacs 的 Yari 查查，没有找到，然后打开 Rails 的在线 &lt;a href="http://api.rubyonrails.org/" rel="nofollow" target="_blank" title=""&gt;API&lt;/a&gt;，也没有找到，最后 Google 才看到这个 target: '_blank' 选项。我就奇怪了，是我查找的方法有问题？&lt;/p&gt;

&lt;p&gt;我找出的 API：&lt;a href="http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to" rel="nofollow" target="_blank" title=""&gt;link_to&lt;/a&gt;  &lt;a href="http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-url_for" rel="nofollow" target="_blank" title=""&gt;url_for&lt;/a&gt;&lt;/p&gt;</description>
      <author>hbin</author>
      <pubDate>Sat, 25 Aug 2012 23:07:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/5158</link>
      <guid>https://ruby-china.org/topics/5158</guid>
    </item>
  </channel>
</rss>
