<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>zhex (ZheX)</title>
    <link>https://ruby-china.org/zhex</link>
    <description>idea to execution</description>
    <language>en-us</language>
    <item>
      <title>关于 ember 中如何通过变量使用不同的 view</title>
      <description>&lt;p&gt;我有很多种的卡片，在数据库中为每种卡片保存了一个类型。由于每种卡片的展示效果非常不同，所以我想在 ember 中不同类型的卡片创建不同的 view，然后通过循环读取卡片的同时调用不同的 view。&lt;/p&gt;

&lt;p&gt;期望表达式： {{ render 'card' card }}&lt;/p&gt;

&lt;p&gt;可惜 render 的第一个参数只能是 view 的名字字符串，而不能变量代替。有谁知道有什么其他方法实现？&lt;/p&gt;</description>
      <author>zhex</author>
      <pubDate>Sat, 22 Jun 2013 23:33:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/11911</link>
      <guid>https://ruby-china.org/topics/11911</guid>
    </item>
    <item>
      <title>vim nerdtree 问题求解</title>
      <description>&lt;p&gt;在换成 zsh 以后，我 shell 中打开 vim 后，nerdtree 的目录文件夹变成这样了，不知道为什么？用 mvim 打开一切正常。&lt;/p&gt;

&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/d03a5124ab7625f8a5d2bcc3fb0f5202.png" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>zhex</author>
      <pubDate>Tue, 31 Jul 2012 21:58:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/4667</link>
      <guid>https://ruby-china.org/topics/4667</guid>
    </item>
    <item>
      <title>HTML 5 and HTML Living standard</title>
      <description>&lt;p&gt;指望着 html5，前端刚有点太平日子可以过，WHATWG 和 W3C 又分出 2 个标准。搞前端的都太悲催了。&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.webmonkey.com/2012/07/html-groups-part-ways/" rel="nofollow" target="_blank"&gt;http://www.webmonkey.com/2012/07/html-groups-part-ways/&lt;/a&gt;&lt;/p&gt;</description>
      <author>zhex</author>
      <pubDate>Tue, 24 Jul 2012 16:34:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/4526</link>
      <guid>https://ruby-china.org/topics/4526</guid>
    </item>
    <item>
      <title>mac safari 下 ruby-china  样式出错</title>
      <description>&lt;p&gt;现在貌似在 safari 下样式出错了，有可能是 js 造成的问题。chrome 下都没问题。&lt;/p&gt;

&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/2d56e162fdd6029c9292058af9452a29.png" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/67222bfdde47185ed6a625c2421855f2.png" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>zhex</author>
      <pubDate>Wed, 18 Jul 2012 06:25:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/4382</link>
      <guid>https://ruby-china.org/topics/4382</guid>
    </item>
    <item>
      <title>建议优化登陆后跳转</title>
      <description>&lt;p&gt;尝试了几次，现在社区登陆后跳转都是回到首页。建议是否可以修改为登陆后跳转到当前正在浏览的帖子？  &lt;/p&gt;</description>
      <author>zhex</author>
      <pubDate>Mon, 28 May 2012 10:12:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/3518</link>
      <guid>https://ruby-china.org/topics/3518</guid>
    </item>
    <item>
      <title>求教一个 ruby telnet 连接 apache james mail server 的问题</title>
      <description>&lt;p&gt;apache james 只能通过 telnet 来创建，修改用户，所以我写了一个 ruby 的脚本去连接 telnet。&lt;/p&gt;

&lt;p&gt;现在的问题是 telnet 可以连上，但是不知道为什么发送的 command 都不能执行？&lt;/p&gt;

&lt;p&gt;脚本代码如下：&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="nb"&gt;require&lt;/span&gt; &lt;span class="s1"&gt;'net/telnet'&lt;/span&gt;


&lt;span class="n"&gt;tn&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;Net&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Telnet&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="s2"&gt;"Host"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"10.32.94.60"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
  &lt;span class="s2"&gt;"Port"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;4555&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
  &lt;span class="s2"&gt;"Timeout"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kp"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"Output_log"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'out.log'&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="n"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"Name"&lt;/span&gt;            &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"root"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"Password"&lt;/span&gt;        &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"root"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"LoginPrompt"&lt;/span&gt;     &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sr"&gt;/Login id:/i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"PasswordPrompt"&lt;/span&gt;  &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sr"&gt;/Password:/i&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;tn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;login&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;options&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;c&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nb"&gt;print&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;tn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"listusers"&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;c&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nb"&gt;print&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;tn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;</description>
      <author>zhex</author>
      <pubDate>Tue, 27 Mar 2012 10:45:32 +0800</pubDate>
      <link>https://ruby-china.org/topics/2159</link>
      <guid>https://ruby-china.org/topics/2159</guid>
    </item>
    <item>
      <title>如何实现多个 simple_navigation？</title>
      <description>&lt;p&gt;最近开始使用 simple navigation 这个插件，感觉非常不错。但是当网页上又多个不同导航的时候，如果可以实现多个 simple navigation 的实例？  &lt;/p&gt;</description>
      <author>zhex</author>
      <pubDate>Sat, 11 Feb 2012 09:24:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/1139</link>
      <guid>https://ruby-china.org/topics/1139</guid>
    </item>
  </channel>
</rss>
