<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>ted (ted)</title>
    <link>https://ruby-china.org/ted</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>在工作中没有机会接触高并发的场景，请问有什么书或教程能学到些相关知识吗？</title>
      <description>&lt;p&gt;能找到的一本 &amp;lt;构建高性能 Web 站点&amp;gt;  貌似都是 09 年出版的了，不知道有什么新学习资料吗？谢谢！&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Mon, 02 Oct 2017 20:47:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/34316</link>
      <guid>https://ruby-china.org/topics/34316</guid>
    </item>
    <item>
      <title>关于安装 custom bootstrap theme 的问题</title>
      <description>&lt;p&gt;新手向大家请教个问题，我购买了一个定制的 bootstrap 的主题，其中包括了 css, js, images, plugin 四个子文件夹，plugin 里面有 twitter bootstrap, font-awesome 等，请问我是就这样使用它们好呢？还是安装对应的 gem 好呢？&lt;/p&gt;

&lt;p&gt;此外，现在我将它们都放在 vendor/assets 里面的，在 production 的时候 vendor/assets 也会一同被 rails 压缩吗？&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Sat, 11 Apr 2015 15:41:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/25099</link>
      <guid>https://ruby-china.org/topics/25099</guid>
    </item>
    <item>
      <title>后台是 Rails 的网站前台在 envato marketplace 应该购买哪种模版呢？</title>
      <description>&lt;p&gt;首先抱歉这么小白的问题，后台我能做，但前台基本就只会用 bootstrap，我现在想去买一套前端模版，去了 envato marketplace 绝大多数都是 for wordpress 的，请问我该选哪种类型的前台模版才能匹配我的 Rails site 呢？&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Mon, 06 Apr 2015 18:05:34 +0800</pubDate>
      <link>https://ruby-china.org/topics/25025</link>
      <guid>https://ruby-china.org/topics/25025</guid>
    </item>
    <item>
      <title>Xubuntu 14.04.2 下面无法安装 Heroku toolbelt</title>
      <description>&lt;p&gt;Linux 新手，尝试安装 Heroku toolbelt 失败，Google 无结果，特来求助高人指点下，感谢。&lt;/p&gt;

&lt;p&gt;安装运行的是这个命令&lt;/p&gt;

&lt;p&gt;&lt;code&gt;wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;机器已翻墙所以应该没有网络连接的问题，最后报错：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The following extra packages will be installed:
  foreman heroku
The following NEW packages will be installed:
  foreman heroku heroku-toolbelt
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 872 kB of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  foreman heroku heroku-toolbelt
E: There are problems and -y was used without --force-yes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;而后运行 heroku&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ heroku
heroku: command not found
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>ted</author>
      <pubDate>Fri, 27 Feb 2015 22:26:31 +0800</pubDate>
      <link>https://ruby-china.org/topics/24376</link>
      <guid>https://ruby-china.org/topics/24376</guid>
    </item>
    <item>
      <title>@Rei 能分享下你那些经典配图吗 :)</title>
      <description>&lt;p&gt;&lt;a href="/Rei" class="user-mention" title="@Rei"&gt;&lt;i&gt;@&lt;/i&gt;Rei&lt;/a&gt;每次配图都要亮，能分享些吗，或者该去哪找呢？Tumblr？&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Fri, 09 Jan 2015 18:21:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/23646</link>
      <guid>https://ruby-china.org/topics/23646</guid>
    </item>
    <item>
      <title>(1..5).inject { |s, i| s *= i } 这句求阶乘的代码中 i 是哪里来的呢</title>
      <description>&lt;p&gt;s 是 1..5 中每次循环的 值，i 存放的是每次的结果？这么简单的代码都不明白赶脚自己太笨了...&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Sun, 26 Oct 2014 14:47:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/22272</link>
      <guid>https://ruby-china.org/topics/22272</guid>
    </item>
    <item>
      <title>请问在 pry 里面如何调出之前敲过的代码块</title>
      <description>&lt;p&gt;譬如我已经敲了&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Person
  def initialize name, gender
    @name = name
    @gender = gender
  end
end
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;我要改这段代码，我记得在 pry 里面不用重新敲，能调出这段代码改吧？&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Sat, 18 Oct 2014 21:09:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/22111</link>
      <guid>https://ruby-china.org/topics/22111</guid>
    </item>
    <item>
      <title>麻烦帮忙推荐一款简单用户认证的 gem，注册都不需要，只是密码限制访问即可</title>
      <description>&lt;p&gt;devise 太重了，我的新应用只需要为页面设置一个需要密码访问的限制即可，谢谢 :)&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Thu, 09 Oct 2014 12:33:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/21938</link>
      <guid>https://ruby-china.org/topics/21938</guid>
    </item>
    <item>
      <title>如何将 File write 的文件格式保存为 ansi 编码呢</title>
      <description>&lt;p&gt;有个小脚本，从 excel 中逐行读出数据，将每行按照固定格式写为 ini 文件，很快完成了，但被告知说保存好的文件是 utf-8 编码的，需要 ansi 编码（我用的 osx、ruby 2.1），我通过 Google 尝试了这两种方法：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;直接在写入内容的时候加入编码参数
&lt;code&gt;fh = File.new("target.ini", "w:LATIN1")&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;结果失败&lt;code&gt;warning: Unsupported encoding LATIN1 ignored&lt;/code&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;用 iconv 对写入的内容先进行转换
ansi_input = Iconv.iconv("LATIN1", "UTF-8", input).join&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;再次报错（写入的内容中有中文）`&lt;code&gt;iconv': "参数配"... (Iconv::IllegalSequence)&lt;/code&gt;&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Thu, 11 Sep 2014 09:46:32 +0800</pubDate>
      <link>https://ruby-china.org/topics/21470</link>
      <guid>https://ruby-china.org/topics/21470</guid>
    </item>
    <item>
      <title>寻求一本类似 Ajax on Rails 的书或者视频教程</title>
      <description>&lt;p&gt;想学习下 Rails 如何与 JS 的部分配合的，找到一本书 Ajax on Rails Build Dynamic Web Applications with Ruby，但却是 2007 年的了，这两年那么多 JS 框架出来，不知道有具体这方面的书或者视频教程吗？&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Mon, 18 Aug 2014 09:40:34 +0800</pubDate>
      <link>https://ruby-china.org/topics/21075</link>
      <guid>https://ruby-china.org/topics/21075</guid>
    </item>
    <item>
      <title>为 Rails App 添加短信提醒的功能，请问国内可以用 Twilio 吗</title>
      <description>&lt;p&gt;Twilio 貌似很 Rails Friendly 但不知道在国内用是否可行（墙啥的）&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Fri, 20 Jun 2014 13:16:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/20079</link>
      <guid>https://ruby-china.org/topics/20079</guid>
    </item>
    <item>
      <title>大家都用 haml 还是 erb 呢</title>
      <description>&lt;p&gt;haml 初看很美（特别是可以减少 view 的代码近一半）但用起来特别是复杂了很痛苦，改写 view 更甚，对缩进的要求是把人往 python 推的节奏。我想了解下大家都用 erb 还是 haml 来着？评估下到底还值得继续坚持 haml 不&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Wed, 04 Dec 2013 10:57:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/15985</link>
      <guid>https://ruby-china.org/topics/15985</guid>
    </item>
    <item>
      <title>即使是没有插入启动 u 盘或者光盘，按了 mba 上的开机键后立即长按 option 键也能进入启动菜单选择启动盘符吧?</title>
      <description>&lt;p&gt;我怎么按了后还是白屏呢（由于昨天的事故系统挂掉了...）？难道是硬盘出问题了？制作了无数 mac u 盘启动盘（也不知道制作成功没有，都是在 windows 下面操作的），都还是依旧白屏&lt;/p&gt;

&lt;p&gt;除了按住 option 键外还有没有其他啥方法啊！&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Mon, 02 Dec 2013 15:58:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/15939</link>
      <guid>https://ruby-china.org/topics/15939</guid>
    </item>
    <item>
      <title>在 Pry 中 edit class 或者为 class 添加新的 method</title>
      <description>&lt;p&gt;今早第一次接触 Pry，太强大了...都不想用编辑器想直接在 Pry 中学习、测试一些代码了，现在有个问题，关于 edit 命令的，对于在 Pry 中敲入的 function，如果要修改，edit function_name 即可，而 class method 则是 edit class_name#method_name。&lt;/p&gt;

&lt;p&gt;但貌似不能直接修改 class，edit class_name 行不通，那我如果想为之前敲入的 class 新增一个 method 呢？我尝试了 edit class_name#new_method_name 虽然貌似 okay 但，ls class_name 却没有看到新增的那个 new_method_name&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Sat, 05 Oct 2013 10:05:41 +0800</pubDate>
      <link>https://ruby-china.org/topics/14538</link>
      <guid>https://ruby-china.org/topics/14538</guid>
    </item>
    <item>
      <title>@knwang 的 tealeaf 不知道近期有无打折促销计划没...</title>
      <description>&lt;p&gt;想参加，看了下好像报前两门同时可以节省$100，不知道&lt;a href="/knwang" class="user-mention" title="@knwang"&gt;&lt;i&gt;@&lt;/i&gt;knwang&lt;/a&gt; 最近有进一步的推广促销啥计划吗？谢谢～&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Sat, 21 Sep 2013 12:01:31 +0800</pubDate>
      <link>https://ruby-china.org/topics/14254</link>
      <guid>https://ruby-china.org/topics/14254</guid>
    </item>
    <item>
      <title>MBA 11 inch or 13 inch</title>
      <description>&lt;p&gt;终于要买 mac 了，现在在 11 和 13 直接抉择，家里和公司都有显示器可以用，主要关心的是键盘，触碰板和手托部分，希望选款这三处最舒服的，重度鼠标手不能再折腾了，键盘好像一样就是最上面一排 f 键要小些？掌托和触碰板呢？&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Wed, 11 Sep 2013 21:19:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/14053</link>
      <guid>https://ruby-china.org/topics/14053</guid>
    </item>
    <item>
      <title>想请问大家既然绝对多数部署 rails app 的服务器都是 linux，那桌面用 linux 不更好吗? why mac?</title>
      <description>&lt;p&gt;在 mac 上配好环境，写好，测试好，部署到 Linux 上还得重新'装'吧？因为我看到譬如 rails tutorial，要安装上 rails，在 linux 和 mac os 下面很大不同，并非 mac os 基于 unix 两者就都通用方法安装&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Fri, 09 Aug 2013 21:35:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/13205</link>
      <guid>https://ruby-china.org/topics/13205</guid>
    </item>
    <item>
      <title>Douban v2 电影 API 不在提供通过 IMDB 编码查找影片信息，有法破吗</title>
      <description>&lt;p&gt;imdb 编码那么方便不知道为何要弃用，只能通过豆瓣的 subject id，现在在写个电影信息爬虫，只有影片名、年代和 imdb 编码，希望定位到相应的豆瓣电影信息...我看到 imax.im 有提取豆瓣的信息，不知道是怎么实现的&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Fri, 09 Aug 2013 10:44:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/13188</link>
      <guid>https://ruby-china.org/topics/13188</guid>
    </item>
    <item>
      <title>有人上过这 ‘From Rails Zero to Hero’ 的课程吗? 不知如何? 正打算购买</title>
      <description>&lt;p&gt;感觉挺靠谱的，4 小时时间可能也就了解 Rails 概况，how pieces fit together&lt;/p&gt;

&lt;p&gt;&lt;a href="http://thenextweb.com/academy/class/from-rails-zero-to-hero" rel="nofollow" target="_blank"&gt;http://thenextweb.com/academy/class/from-rails-zero-to-hero&lt;/a&gt;&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Fri, 02 Aug 2013 11:05:25 +0800</pubDate>
      <link>https://ruby-china.org/topics/12999</link>
      <guid>https://ruby-china.org/topics/12999</guid>
    </item>
    <item>
      <title>我的梦想是成为一名自由职业开发者 (现在工作和开发没有毛关系)，rails or iOS ???</title>
      <description>&lt;p&gt;web 开发涉及到那么多知识，个人开发者吃得消吗？而 ios 开发从学习广度到推广貌似都更亲近个人开发者？&lt;/p&gt;</description>
      <author>ted</author>
      <pubDate>Wed, 24 Jul 2013 01:09:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/12728</link>
      <guid>https://ruby-china.org/topics/12728</guid>
    </item>
  </channel>
</rss>
