<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>wcc526 (wcc526)</title>
    <link>https://ruby-china.org/wcc526</link>
    <description>http://www.wengchichi.com</description>
    <language>en-us</language>
    <item>
      <title>国内的创业公司为什么会选择 ruby on rails  ?</title>
      <description>&lt;p&gt;国内的创业公司为什么会选择 ruby on rails  ?&lt;/p&gt;

&lt;p&gt;国内的 ruby on rails 的 开发者相对其他语言来说的话，要少很多。&lt;/p&gt;

&lt;p&gt;这样的话招人的话不是很难招吗&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Wed, 01 Oct 2014 20:24:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/21816</link>
      <guid>https://ruby-china.org/topics/21816</guid>
    </item>
    <item>
      <title>大家在 Mac 下常用的 UML 建模工具是什么？谢谢!</title>
      <description>&lt;p&gt;大家在 Mac 下常用的 UML 建模工具是什么？谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Tue, 12 Aug 2014 21:58:32 +0800</pubDate>
      <link>https://ruby-china.org/topics/20988</link>
      <guid>https://ruby-china.org/topics/20988</guid>
    </item>
    <item>
      <title>论坛现在贴子的回复提示没有了，是出现 bug 了吗？</title>
      <description>&lt;p&gt;论坛现在贴子的回复提示没有了，是出现 bug 了吗？&lt;/p&gt;

&lt;p&gt;我记得以前如果有人回贴的话，会有小红点。&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Mon, 11 Aug 2014 13:34:27 +0800</pubDate>
      <link>https://ruby-china.org/topics/20956</link>
      <guid>https://ruby-china.org/topics/20956</guid>
    </item>
    <item>
      <title>为什么好多工具是用 ruby 写的？而不是用 python,perl?</title>
      <description>&lt;p&gt;为什么好多工具是用 ruby 写的？而不是用 python,perl?
比如 brew octopress rails 等等
究竟 ruby 有什么语言特性，决定了 这些工具是用 ruby 写的，而不是 python ,perl 甚至 java ,谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Mon, 11 Aug 2014 12:53:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/20954</link>
      <guid>https://ruby-china.org/topics/20954</guid>
    </item>
    <item>
      <title>如何优雅地安装和部署 Rails 生产环境</title>
      <description>&lt;p&gt;我发现新手最大的一个问题就是安装和部署 Rails 生产环境&lt;/p&gt;

&lt;p&gt;《Rails 程序部署之道》学习曲线太陡了&lt;/p&gt;

&lt;p&gt;所以我写一篇博客，手把手地从裸机到安装和部署 Rails 生产环境的过程列了出来&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.wengchichi.com/how-to-install-and-deploy-rails-gracefully-zh/" rel="nofollow" target="_blank"&gt;http://www.wengchichi.com/how-to-install-and-deploy-rails-gracefully-zh/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;包含 Nginx+Passenger nginx+unicorn Mysql Postgres MongoDB 
Redis Memcached Postfix fail2ban ufw monit upstart 等安装和部署过程&lt;/p&gt;

&lt;p&gt;参考了《Rails 程序部署之道》这个书的许多内容，直接使用脚本安装，并改进了里面的一些内容，上手很简单。&lt;/p&gt;

&lt;p&gt;安装过程也贴在了 wiki 上&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ruby-china/ruby-china/wiki/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85-Rails-%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83" rel="nofollow" target="_blank"&gt;https://github.com/ruby-china/ruby-china/wiki/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85-Rails-%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ruby-china/ruby-china/wiki/%E5%A6%82%E4%BD%95%E9%83%A8%E7%BD%B2Rails%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83" rel="nofollow" target="_blank"&gt;https://github.com/ruby-china/ruby-china/wiki/%E5%A6%82%E4%BD%95%E9%83%A8%E7%BD%B2Rails%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;请轻拍砖，谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Fri, 08 Aug 2014 09:38:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/20904</link>
      <guid>https://ruby-china.org/topics/20904</guid>
    </item>
    <item>
      <title>你平常会喜欢做一些白日梦吗？有的话，看这里。</title>
      <description>&lt;p&gt;&lt;a href="https://trello.com/b/YLvVfPAf/daydreams" rel="nofollow" target="_blank"&gt;https://trello.com/b/YLvVfPAf/daydreams&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;这里汇集了一些非常 cool 的点子，欢迎在这里分享你的点子。或者你可以实现这些点子。&lt;/p&gt;

&lt;p&gt;你可以发任何有趣的点子，只要发一个点子，就可以加入。&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Thu, 07 Aug 2014 22:22:30 +0800</pubDate>
      <link>https://ruby-china.org/topics/20900</link>
      <guid>https://ruby-china.org/topics/20900</guid>
    </item>
    <item>
      <title>问下大家是怎么安装 Redis 的？通过 apt 还是源码编译？</title>
      <description>&lt;p&gt;发现官方只有能过源码安装
&lt;a href="http://redis.io/download" rel="nofollow" target="_blank"&gt;http://redis.io/download&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;找到的比较新的源是这个
&lt;a href="https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server" rel="nofollow" target="_blank"&gt;https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;问下大家是怎么安装 Redis 的？通过 apt 还是源码编译？是不是官方不推荐从 apt 安装？谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Sat, 26 Jul 2014 21:57:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/20694</link>
      <guid>https://ruby-china.org/topics/20694</guid>
    </item>
    <item>
      <title>美国 俄勒冈州 的 Ruby on Ales 2014 百度网盘的地址放出</title>
      <description>&lt;p&gt;&lt;a href="http://www.wengchichi.com/ruby-and-rails-ecosystem/" rel="nofollow" target="_blank"&gt;http://www.wengchichi.com/ruby-and-rails-ecosystem/&lt;/a&gt;
已经分享到了百度网盘，见我的博客，欢迎下载。
另外该博文会定期地更新 Ruby 和 Rails 的相关资源。请轻拍砖，谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Sat, 26 Jul 2014 16:27:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/20690</link>
      <guid>https://ruby-china.org/topics/20690</guid>
    </item>
    <item>
      <title>RedDotRuby 2014 视频 百度网盘地址</title>
      <description>&lt;p&gt;&lt;a href="http://www.wengchichi.com/ruby-and-rails-ecosystem/" rel="nofollow" target="_blank"&gt;http://www.wengchichi.com/ruby-and-rails-ecosystem/&lt;/a&gt; 
已经分享到了百度网盘，见我的博客，欢迎下载。
另外该博文会定期地更新。不是完整版，怕大家着急下载，先放上来，请轻拍砖，谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Fri, 25 Jul 2014 15:43:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/20675</link>
      <guid>https://ruby-china.org/topics/20675</guid>
    </item>
    <item>
      <title>问个 git 版本回退的问题，如何优雅的回退 commit?</title>
      <description>&lt;p&gt;问个 git 版本回退的问题，如何优雅的回退 commit?&lt;/p&gt;

&lt;p&gt;之前用 git 都是渐进提交式的。&lt;/p&gt;

&lt;p&gt;每个记录都打了一些 tag
v0.0.1
v0.0.2
v0.0.3
v0.0.4&lt;/p&gt;

&lt;p&gt;我发现 v0.0.4 的代码已经 crush 了，不想要了，我想重新从 v0.0.3 开始写，要怎样优雅的从 v0.0.3 开发？就是想把 master 代码变成 v0.0.3 这个 tag 下的代码&lt;/p&gt;

&lt;p&gt;代码托管在 github，如果强行 git reset 会发现无法 push，比较好的做法是什么？&lt;/p&gt;

&lt;p&gt;想过删掉.git 重新来过，这样太暴力了。&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Wed, 23 Jul 2014 15:16:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/20638</link>
      <guid>https://ruby-china.org/topics/20638</guid>
    </item>
    <item>
      <title>关于 ImageMaigck Ubuntu 环境下安装问题</title>
      <description>&lt;p&gt;关于 imagemaigck ubuntu 环境下安装问题&lt;/p&gt;

&lt;p&gt;imagemagick 到底是通过源码编译安装比较好，还是直接通过 apt-get install 比较好？&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/huacnlee/init.d/blob/master/install_packages" rel="nofollow" target="_blank"&gt;https://github.com/huacnlee/init.d/blob/master/install_packages&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;我发现论坛里两位大牛的做法相反 huacnlee 直接通过 apt-get install&lt;/p&gt;

&lt;p&gt;但是 xdite 是 apt-get remove imagemagick，然后从源码编译安装。&lt;/p&gt;

&lt;p&gt;问下，哪种做法比较好。&lt;/p&gt;

&lt;p&gt;本人试过，通过源码安装工作正常。&lt;/p&gt;

&lt;p&gt;奇怪的是为什么 imagemagick 会出现两种安装方法，是因为 rmagick gem 支持版本的原因吗？谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Mon, 21 Jul 2014 14:57:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/20608</link>
      <guid>https://ruby-china.org/topics/20608</guid>
    </item>
    <item>
      <title>有人做过 rails 中 Mongoid 和 mysql2 的性能比较吗？谢谢!</title>
      <description>&lt;p&gt;有人做过 Mongoid 和 mysql2 的性能比较吗？
先不考虑 nosql 的一些特性，单从增删改查来看，谁的性能比较好？
怎样测试比较准确，谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Fri, 18 Jul 2014 23:25:27 +0800</pubDate>
      <link>https://ruby-china.org/topics/20584</link>
      <guid>https://ruby-china.org/topics/20584</guid>
    </item>
    <item>
      <title>分享一个不错的网站压力测试工具</title>
      <description>&lt;p&gt;通过这个网站可以很方便对网站的性能进行测试。相当方便。&lt;/p&gt;

&lt;p&gt;小尾巴链接&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blitz.io/gb7GjTbc9s650" rel="nofollow" target="_blank"&gt;http://blitz.io/gb7GjTbc9s650&lt;/a&gt;&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Fri, 18 Jul 2014 10:13:28 +0800</pubDate>
      <link>https://ruby-china.org/topics/20562</link>
      <guid>https://ruby-china.org/topics/20562</guid>
    </item>
    <item>
      <title>分享一个类似 selfstore.io 的网站</title>
      <description>&lt;p&gt;分享一个类似 selfstore.io 的网站
&lt;a href="https://gumroad.com/" rel="nofollow" target="_blank"&gt;https://gumroad.com/&lt;/a&gt;&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Fri, 18 Jul 2014 09:37:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/20559</link>
      <guid>https://ruby-china.org/topics/20559</guid>
    </item>
    <item>
      <title>有提供固定链接的不被墙的免费的网盘吗？</title>
      <description>&lt;p&gt;有提供固定链接的不被墙的免费的网盘吗？&lt;/p&gt;

&lt;p&gt;百度网盘没有固定链接
dropbox 被墙。&lt;/p&gt;

&lt;p&gt;有些情况下不能翻墙，所以求有提供固定链接的不被墙的免费的网盘。&lt;/p&gt;

&lt;p&gt;谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Tue, 15 Jul 2014 20:58:34 +0800</pubDate>
      <link>https://ruby-china.org/topics/20509</link>
      <guid>https://ruby-china.org/topics/20509</guid>
    </item>
    <item>
      <title>Ruby China 活跃会员的算法是什么？</title>
      <description>&lt;p&gt;ruby china 活跃会员的算法是什么？&lt;/p&gt;

&lt;p&gt;是历史上的回贴数加起来吗？能不能加个近期活跃会员？谢谢！&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Mon, 14 Jul 2014 23:15:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/20492</link>
      <guid>https://ruby-china.org/topics/20492</guid>
    </item>
    <item>
      <title>有在平时 rails 开发中使用 Docker 的小伙伴吗?</title>
      <description>&lt;p&gt;有在平时 rails 开发中使用 Docker 的小伙伴吗？&lt;/p&gt;

&lt;p&gt;今天去了 docker meetup，发现 docker 看起来很美好，实际上有很多坑。&lt;/p&gt;

&lt;p&gt;我尝试了下 Docker，发现有点问题。&lt;/p&gt;

&lt;p&gt;要怎么在 mac 下访问 Docker 里的 rails 应用，Docker inspect 看到的 ip，只能在 boot2docker 里访问。宿主看不到。这样的话，能 localhost:3000 的页面都看不到。&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;问题解决了，在运行时要指定端口转发就行了
docker run -i -t -p 3000:3000 rails&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Sun, 13 Jul 2014 21:17:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/20475</link>
      <guid>https://ruby-china.org/topics/20475</guid>
    </item>
    <item>
      <title>[北京][2014年07月13日] Docker Beijing Meetup </title>
      <description>&lt;p&gt;Docker 中文社区和你一起过夏天，我们的 meetup 再度来袭。7 月 13 日下午 1 点，北京 3W 咖啡馆，Docker 中文社区与你们不见不散。&lt;/p&gt;

&lt;p&gt;本次 meetup 将会有四位演讲嘉宾分享精彩话题：&lt;/p&gt;

&lt;p&gt;桂阳&lt;/p&gt;

&lt;p&gt;Bio：毕业于北京航空航天大学软件学院，目前在自主创业
Topic：通过工作流实现 docker 在 coreos 的自动化部署
主要内容及功能演示：&lt;/p&gt;

&lt;p&gt;CoreOS 介绍及安装。使用 virtualbox + vagrant 在 Mac 演示运行一个微型 CoreOS 集群。
fleet 介绍。通过 fleet 与 coreos 集群交互。
场景设计。用户通过前端页面操作实现在 coreos 上部署 docker images。&lt;/p&gt;

&lt;p&gt;场景及系统架构设计；
工具及服务介绍
3.2.1 Web Service
消息队列
工作流设计
生成 dockerfile 并创建 docker image
在 coreos 上部署 docker image&lt;/p&gt;

&lt;p&gt;Gerard Braad&lt;/p&gt;

&lt;p&gt;Bio : Gerard is a Senior Software Engineer with a broad range of skills; from creative to technical skills. Has been involved for many years in the Open Source community, consulted small-startups to large enterprises, such as a large handset maker and even worked on a Network Centric Warfare solution dealing with porting, integration, and communication protocols. Currently working at ThoughtWorks in Beijing, China.
Topic: CI/CD using Docker
In this presentation I will give a short overview of how Docker can help to simplify your development and deployment; I will setup a build environment to perform CI, and along the way introduce the needed tools and terminology to eventually end up with a CD setup.&lt;/p&gt;

&lt;p&gt;邱模炯&lt;/p&gt;

&lt;p&gt;Bio：2007 年于北京大学计算机系研究生毕业，先后分别在 VMware 和腾讯从事虚拟化平台内核、Linux 操作系统内核工作。腾讯期间建立了操作系统团队，并为公司维护了定制版 Linux 操作系统，运行于公司几十万台服务器。个人技术兴趣以 Linux 内核、虚拟化和数据中心运营自动化为主。
Topic：Container 内核原理
主要介绍 container 虚拟化技术的内核原理，常用 cgroup 和 namespace 的内部实现，其优势与不足，以及开源内核在 container 上的进展。&lt;/p&gt;

&lt;p&gt;赵鹏&lt;/p&gt;

&lt;p&gt;Bio：VisualOps 创始人，VisualOps，专注于企业级白盒 PaaS 以及  Docker 集成。
Topic: VisualOps – re:Invent PaaS&lt;/p&gt;

&lt;p&gt;消息来自
&lt;a href="http://segmentfault.com/e/docker-beijing-2014-meetup2" rel="nofollow" target="_blank"&gt;http://segmentfault.com/e/docker-beijing-2014-meetup2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;有要一起去围观的小伙伴吗？&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Fri, 11 Jul 2014 15:17:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/20442</link>
      <guid>https://ruby-china.org/topics/20442</guid>
    </item>
    <item>
      <title>关于 mongoid 控制台问题错误显示问题。</title>
      <description>&lt;p&gt;环境
mongoid  版本 4.0.0
rails 版本 4.1.1
ruby 版本 2.1.1 &lt;/p&gt;

&lt;p&gt;起一个简单的 mongoid 项目&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;rails&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt; &lt;span class="n"&gt;scraffold&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="nb"&gt;name&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;web 端 product 显示正常，使用 mongo 进行调试也正常。&lt;/p&gt;

&lt;p&gt;奇怪的是在控制台调试的时候
比如执行 Product.all.to_a 会出现以下错误。非常奇怪，难道是 mongoid 4.0.0 版本的 bug？有其它人遇到过这种情况吗？谢谢！&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mongoid::Errors::NoSessionConfig:
Problem:
  No configuration could be found &lt;span class="k"&gt;for &lt;/span&gt;a session named &lt;span class="s1"&gt;'default'&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt;
Summary:
  When attempting to create the new session, Mongoid could not find a session configuration &lt;span class="k"&gt;for &lt;/span&gt;the name: &lt;span class="s1"&gt;'default'&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt; This is necessary &lt;span class="k"&gt;in &lt;/span&gt;order to know the host, port, and options needed to connect.
Resolution:
  Double check your mongoid.yml to make sure under the sessions key that a configuration exists &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="s1"&gt;'default'&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt; If you have &lt;span class="nb"&gt;set &lt;/span&gt;the configuration programatically, ensure that &lt;span class="s1"&gt;'default'&lt;/span&gt; exists &lt;span class="k"&gt;in &lt;/span&gt;the configuration hash.
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>wcc526</author>
      <pubDate>Fri, 11 Jul 2014 14:23:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/20440</link>
      <guid>https://ruby-china.org/topics/20440</guid>
    </item>
    <item>
      <title>一个不错的云 IDE 环境，nitrous.io 大家感受下</title>
      <description>&lt;p&gt;一个不错的云 IDE 环境，nitrous.io 大家感受下&lt;/p&gt;

&lt;p&gt;小尾巴链接：&lt;a href="https://www.nitrous.io/join/xoQMJ4e2JeU?utmsource=nitrous.io&amp;amp;utmmedium=copypaste&amp;amp;utm_campaign=referral" rel="nofollow" target="_blank"&gt;https://www.nitrous.io/join/xoQMJ4e2JeU?utmsource=nitrous.io&amp;amp;utmmedium=copypaste&amp;amp;utm_campaign=referral&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;为什么总感觉国外的 IT 产品很高大上，是错觉吧。&lt;/p&gt;

&lt;p&gt;这是 kcoding 注册的小尾巴，用这个注册的话，能额外得到 3GB 空间。
&lt;a href="https://koding.com/R/wcc526" rel="nofollow" target="_blank"&gt;https://koding.com/R/wcc526&lt;/a&gt;&lt;/p&gt;</description>
      <author>wcc526</author>
      <pubDate>Thu, 10 Jul 2014 10:07:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/20410</link>
      <guid>https://ruby-china.org/topics/20410</guid>
    </item>
  </channel>
</rss>
