<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>hungyuhei (😝😈)</title>
    <link>https://ruby-china.org/hungyuhei</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>GitHub API v4 改用 GraphQL 了</title>
      <description>&lt;p&gt;&lt;a href="https://developer.github.com/v4/" rel="nofollow" target="_blank"&gt;https://developer.github.com/v4/&lt;/a&gt;&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Tue, 23 May 2017 11:17:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/33042</link>
      <guid>https://ruby-china.org/topics/33042</guid>
    </item>
    <item>
      <title>Ember Data 1.0 overview</title>
      <description>&lt;p&gt;&lt;a href="https://twitter.com/wycats/status/393826083575185408" rel="nofollow" target="_blank"&gt;https://twitter.com/wycats/status/393826083575185408&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ember 1.1.2 已经发布了，期待 Ember Data 1.0&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sat, 26 Oct 2013 10:30:09 +0800</pubDate>
      <link>https://ruby-china.org/topics/15046</link>
      <guid>https://ruby-china.org/topics/15046</guid>
    </item>
    <item>
      <title>How do you use GitHub at your company?</title>
      <description>&lt;p&gt;&lt;a href="https://gist.github.com/nzakas/5511916" rel="nofollow" target="_blank"&gt;https://gist.github.com/nzakas/5511916&lt;/a&gt;&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Wed, 29 May 2013 01:47:33 +0800</pubDate>
      <link>https://ruby-china.org/topics/11310</link>
      <guid>https://ruby-china.org/topics/11310</guid>
    </item>
    <item>
      <title>类似帐号中心的实现方案</title>
      <description>&lt;p&gt;需求就是，像 37signals 那样，有 Basecamp, Campfire 等应用，但这些应用都统一用 37signals ID 里面的帐号资料，只要修改了  37signals ID 的帐号资料，其它应用也对应更新了 ( Single sign-on ? )&lt;/p&gt;

&lt;p&gt;查了好些资料，还是整理不出好的思路去实现这个帐号中心，大家有没有好的思路或者解决方案？&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sat, 27 Apr 2013 16:10:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/10571</link>
      <guid>https://ruby-china.org/topics/10571</guid>
    </item>
    <item>
      <title>不知为什么总是收到 format 为 NULL 的请求</title>
      <description>&lt;p&gt;像这样：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ActionView::MissingTemplate (Missing template pages/error with {:locale=&amp;gt;[:"zh-CN"], :formats=&amp;gt;["NULL"], :handlers=&amp;gt;[:erb, :builder, :haml]}.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;为什么会是 &lt;code&gt;NULL&lt;/code&gt;，是爬虫吗？大家有没有遇过，有什么处理方法？&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sat, 06 Apr 2013 21:45:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/9986</link>
      <guid>https://ruby-china.org/topics/9986</guid>
    </item>
    <item>
      <title>Linode NextGen: 免费升级到 8 核 CPU</title>
      <description>&lt;blockquote&gt;
&lt;p&gt;We’re upgrading all Linodes to 8 cores! Right now. As in all you need to do is reboot to double the computing power of your Linode.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="http://blog.linode.com/2013/03/18/linode-nextgen-the-hardware/" rel="nofollow" target="_blank"&gt;http://blog.linode.com/2013/03/18/linode-nextgen-the-hardware/&lt;/a&gt;&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Tue, 19 Mar 2013 17:25:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/9570</link>
      <guid>https://ruby-china.org/topics/9570</guid>
    </item>
    <item>
      <title>36 氪网站底部惊现 Ruby China</title>
      <description>&lt;p&gt;这背后有什么基情？  &lt;img title=":smirk:" alt="😏" src="https://twemoji.ruby-china.com/2/svg/1f60f.svg" class="twemoji"&gt;&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sat, 08 Dec 2012 11:48:16 +0800</pubDate>
      <link>https://ruby-china.org/topics/7408</link>
      <guid>https://ruby-china.org/topics/7408</guid>
    </item>
    <item>
      <title>这个网站笑死我了</title>
      <description>&lt;p&gt;&lt;a href="http://programming-motherfucker.com/" rel="nofollow" target="_blank"&gt;http://programming-motherfucker.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;内涵还是有的 &lt;img title=":joy:" alt="😂" src="https://twemoji.ruby-china.com/2/svg/1f602.svg" class="twemoji"&gt;&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Thu, 02 Aug 2012 00:07:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/4689</link>
      <guid>https://ruby-china.org/topics/4689</guid>
    </item>
    <item>
      <title>吐嘈一下盛大云</title>
      <description>&lt;p&gt;刚刚看到这篇文章 &lt;a href="http://quake.iteye.com/blog/1607915" rel="nofollow" target="_blank"&gt;http://quake.iteye.com/blog/1607915&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;我也不得不吐嘈一下自己用盛大云主机的经历&lt;/p&gt;

&lt;p&gt;首先我是非常同意这篇文章提到的管理后台和客服的问题，后台监控跟 Linode 比较真是弱爆了，客服表现出来就像一个机器人&lt;/p&gt;

&lt;p&gt;更可怕的经历就在昨天：&lt;/p&gt;

&lt;p&gt;突然发现部署在盛大云的网站登不上，到盛大云后台一看，原来是因为之前有一个未备案的域名指向了这个主机，然后 80 端口就被封了，而且是&lt;code&gt;没有任何电话、邮件&lt;/code&gt;通知！那么我是怎样知道网站挂了的？反而是 DNSPod 监控发的邮件告诉我的，我当时真是无言以对&lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Thu, 26 Jul 2012 17:41:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/4569</link>
      <guid>https://ruby-china.org/topics/4569</guid>
    </item>
    <item>
      <title>git pull 之后显示更新的提交记录？</title>
      <description>&lt;p&gt;目前在用比较笨的方式
&lt;code&gt;git fetch &amp;amp;&amp;amp; git log dev..origin/dev &amp;amp;&amp;amp; git merge origin/dev&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;大家有没有更好的方式？  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sun, 15 Jul 2012 20:20:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/4318</link>
      <guid>https://ruby-china.org/topics/4318</guid>
    </item>
    <item>
      <title>JS 可以操作本地文件？</title>
      <description>&lt;p&gt;今天装了 Pow，第一次打开时，它提示 &lt;code&gt;Automatic RVM support is deprecated&lt;/code&gt;
然后有个链接 &lt;code&gt;Add this code to .powrc for me&lt;/code&gt; ，点击后，就会自动在你的项目加上.powrc 这个文件&lt;/p&gt;

&lt;p&gt;在页面源码找了一下相关的 JS，那个链接就是绑定 click 事件到 function addToPowrc 的，好奇怎样实现的，JS 可以操作本地文件？&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function addToPowrc(link) {
  perform(link, "add_to_powrc",
    "This code has been added to your application&amp;amp;rsquo;s &amp;lt;code&amp;gt;.powrc&amp;lt;/code&amp;gt; file."
  )
}

function perform(link, action, successHTML) {
  if (link.className == "busy") return
  link.className = "busy"

  xhr = new XMLHttpRequest()
  xhr.open("POST", "/__pow__/rvm_deprecation/" + action, true)
  xhr.onreadystatechange = function() {
    if (xhr.readyState != 4) return
    link.className = ""

    if (xhr.status == 200) {
      var p = link.parentNode
      var previousInnerHTML = p.previousInnerHTML
      p.previousInnerHTML = p.innerHTML
      p.innerHTML = successHTML || previousInnerHTML
    }
  }

  xhr.send()
}
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sat, 09 Jun 2012 15:24:30 +0800</pubDate>
      <link>https://ruby-china.org/topics/3731</link>
      <guid>https://ruby-china.org/topics/3731</guid>
    </item>
    <item>
      <title>cheat - 一个很有趣实用的 Gem</title>
      <description>&lt;p&gt;早上搜索一些资料时，发现了这个 Gem&lt;/p&gt;

&lt;p&gt;不知有没有人像我一样，平时会保存一些 Cheat Sheet，在需要的时候，可以快速回顾一些知识点或者用法&lt;/p&gt;

&lt;p&gt;通过这个 Gem 可以快速地查看一些 Cheat Sheet&lt;/p&gt;

&lt;p&gt;安装：
&lt;code&gt;gem install cheat&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;查看 RSpec 的 Cheat Sheet：
&lt;code&gt;cheat rspec&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;主页：&lt;a href="http://cheat.errtheblog.com/" rel="nofollow" target="_blank"&gt;http://cheat.errtheblog.com/&lt;/a&gt;
Cheat Sheet 列表：&lt;a href="http://cheat.errtheblog.com/b" rel="nofollow" target="_blank"&gt;http://cheat.errtheblog.com/b&lt;/a&gt;  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Wed, 23 May 2012 13:01:37 +0800</pubDate>
      <link>https://ruby-china.org/topics/3447</link>
      <guid>https://ruby-china.org/topics/3447</guid>
    </item>
    <item>
      <title>Git 测验</title>
      <description>&lt;p&gt;&lt;a href="http://www.worldhello.net/2012/03/19/git-quiz.html" rel="nofollow" target="_blank"&gt;http://www.worldhello.net/2012/03/19/git-quiz.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;试试不去运行命令，直接做&lt;/p&gt;

&lt;p&gt;我的答案：&lt;/p&gt;

&lt;p&gt;A B A D B
B B _ C D
A B D A _
_ A _ C D &lt;/p&gt;

&lt;p&gt;『 _ 』表示不知选什么：）&lt;/p&gt;

&lt;p&gt;可惜没有参考答案看看  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Tue, 08 May 2012 17:29:44 +0800</pubDate>
      <link>https://ruby-china.org/topics/3152</link>
      <guid>https://ruby-china.org/topics/3152</guid>
    </item>
    <item>
      <title>你是 vim 党还是 emacs 党？</title>
      <description>&lt;p&gt;只是好奇，无意引起任何论战&lt;/p&gt;

&lt;p&gt;而我自己是一个 vim 党，用 sublimb text 2 作辅助工具  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Mon, 05 Mar 2012 23:39:21 +0800</pubDate>
      <link>https://ruby-china.org/topics/1634</link>
      <guid>https://ruby-china.org/topics/1634</guid>
    </item>
    <item>
      <title>这里有多少人用机械键盘？</title>
      <description>&lt;p&gt;如果正在用，是哪款呢？&lt;/p&gt;

&lt;p&gt;最近想入手一个，但是 Mac 版的机械键盘太少了，求推荐一个（要 Mac 版的）&lt;/p&gt;

&lt;p&gt;这个太毒了！钱包很受伤！&lt;a href="http://www.360buy.com/product/563440.html" rel="nofollow" target="_blank"&gt;http://www.360buy.com/product/563440.html&lt;/a&gt;  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sun, 26 Feb 2012 17:03:38 +0800</pubDate>
      <link>https://ruby-china.org/topics/1433</link>
      <guid>https://ruby-china.org/topics/1433</guid>
    </item>
    <item>
      <title>这个网站源码的 license 是什么？</title>
      <description>&lt;p&gt;好像没有说明啊，如果我基于这里的代码搞个闭源的东西可以吗？（只是纯好奇问一下）&lt;/p&gt;

&lt;p&gt;我参照这里的源码也搭建了一个自行车社区
不过由于这里的很多东西用不上（因为不是技术社区），所以我没有直接 fork，而是「重新发明一个小轮子」，当然目前代码基本上是 copy 过去，稍后再将代码放到 github 上&lt;/p&gt;

&lt;p&gt;大家轻拍吧：） &lt;/p&gt;

&lt;p&gt;&lt;a href="http://fodabike.com" rel="nofollow" target="_blank"&gt;http://fodabike.com&lt;/a&gt;  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sun, 26 Feb 2012 14:06:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/1429</link>
      <guid>https://ruby-china.org/topics/1429</guid>
    </item>
    <item>
      <title>CounterCache 那个模块在更新操作时不会改变 count 的数量</title>
      <description>&lt;p&gt;查看这个论坛的源码时发现 Mongoid::CounterCache 这个模块会存在这个问题，因为只设置了 after_create 和 after_destroy 两个 callback&lt;/p&gt;

&lt;p&gt;假设我先将帖子发布在 A 节点，然后再通过修改帖子操作，将这个帖子更改到 B 节点，应该是 A 的 topics_count - 1，B 的 topics_count + 1&lt;/p&gt;

&lt;p&gt;缓存部分代码没仔细看，不知是不是因为有缓存所以故意这样呢？  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Sun, 12 Feb 2012 21:53:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/1160</link>
      <guid>https://ruby-china.org/topics/1160</guid>
    </item>
    <item>
      <title>有没有什么异常监控的 gem 推荐？</title>
      <description>&lt;p&gt;就是在 production 环境中，当出现 500 等错误时，会自动用 email 通知  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Wed, 08 Feb 2012 16:14:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/1086</link>
      <guid>https://ruby-china.org/topics/1086</guid>
    </item>
    <item>
      <title>Ruby China 在盛大云是用什么镜像的？</title>
      <description>&lt;p&gt;盛大云的可选镜像太少了，居然只得 Ubuntu 8.04&lt;/p&gt;

&lt;p&gt;能不能像 Amazon EC2 那样选用 Ubuntu 官方提供的那个镜像或者自制镜像？&lt;/p&gt;

&lt;p&gt;跟客服交谈了，我说的东西他不明，他说的东西我也不明 XD  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Mon, 12 Dec 2011 16:21:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/449</link>
      <guid>https://ruby-china.org/topics/449</guid>
    </item>
    <item>
      <title>建议 wiki 中「其他地方的中文资料」加上这个链接</title>
      <description>&lt;p&gt;Ruby on Rails 實戰聖經 &lt;a href="http://ihower.tw/rails3/" rel="nofollow" target="_blank"&gt;http://ihower.tw/rails3/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;个人觉得写得不错，对于英文不太好的人，可以读这个入门  &lt;/p&gt;</description>
      <author>hungyuhei</author>
      <pubDate>Tue, 22 Nov 2011 22:28:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/117</link>
      <guid>https://ruby-china.org/topics/117</guid>
    </item>
  </channel>
</rss>
