<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>xufeng</title>
    <link>https://ruby-china.org/xufeng</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Mac QQ 首页动画问题 请问如何实现</title>
      <description>&lt;p&gt;&lt;a href="http://im.qq.com/macqq/index.shtml" rel="nofollow" target="_blank"&gt;http://im.qq.com/macqq/index.shtml&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;这个效果，先显示一张图片，2 句话，然后在展示网页内容，请问如何用脚本实现啊？&lt;/p&gt;

&lt;p&gt;请各位大神帮忙回答一下，小弟不胜感激。搜索了好久，没有找到解决办法。&lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Wed, 19 Feb 2014 20:41:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/17361</link>
      <guid>https://ruby-china.org/topics/17361</guid>
    </item>
    <item>
      <title>VPS 开机自动启动 rake sunspot:solr:start</title>
      <description>&lt;p&gt;请教一下，如何在 VPS 重启自动开启 sunspot，不用手工命令啊？&lt;/p&gt;

&lt;p&gt;我知道是很菜鸟的问题，我 google 了，但是没有找到解决办法。请大神给支个招，&lt;/p&gt;

&lt;p&gt;thanks.&lt;/p&gt;

&lt;p&gt;rake sunspot:solr:start&lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Mon, 13 Jan 2014 10:36:34 +0800</pubDate>
      <link>https://ruby-china.org/topics/16754</link>
      <guid>https://ruby-china.org/topics/16754</guid>
    </item>
    <item>
      <title>Linode 如何优化 Rails 内存啊？</title>
      <description>&lt;p&gt;512 的内存基本上使用完了，如何优化啊？请教高手。&lt;/p&gt;

&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/d4763bbc3552bb375af316b211dbc21a.png" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Sun, 11 Aug 2013 22:03:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/13255</link>
      <guid>https://ruby-china.org/topics/13255</guid>
    </item>
    <item>
      <title>如何取出一个字段 (不重复数据的 TOP10)?</title>
      <description>&lt;p&gt;有这样一个字段，里面有很多 URL 地址，这些 URL 地址很多都是一样的，我想知道这些 URL 不重复的 TOP 数据？&lt;/p&gt;

&lt;p&gt;请问如何查询啊？&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;不重复的数据，进行叠加&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;得到的数据总数，进行 TOP 10 排序。&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
      <author>xufeng</author>
      <pubDate>Sun, 17 Jun 2012 11:47:16 +0800</pubDate>
      <link>https://ruby-china.org/topics/3855</link>
      <guid>https://ruby-china.org/topics/3855</guid>
    </item>
    <item>
      <title>如何识别中文词语的词性 (动词，名词，形容词)？有没有好的 GEM？</title>
      <description>&lt;p&gt;如何识别中文词语的词性（动词，名词，形容词）？有没有好的 GEM？  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Sat, 26 May 2012 23:54:41 +0800</pubDate>
      <link>https://ruby-china.org/topics/3507</link>
      <guid>https://ruby-china.org/topics/3507</guid>
    </item>
    <item>
      <title>Rails scaffold 批量删除，更新  有没有 Gem 实现这个功能？</title>
      <description>&lt;p&gt;如下图：
&lt;img src="//l.ruby-china.com/photo/3be1c12be329631e24dfaa8170e19890.png" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Thu, 19 Apr 2012 11:16:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/2715</link>
      <guid>https://ruby-china.org/topics/2715</guid>
    </item>
    <item>
      <title>Textarea 批量添加某个字段，一行一个，如何实现？</title>
      <description>&lt;p&gt;在 textarea 如何得到换行符号啊？  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Wed, 18 Apr 2012 22:29:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/2697</link>
      <guid>https://ruby-china.org/topics/2697</guid>
    </item>
    <item>
      <title>Model 中的数据声明和 migrate 中的数据声明有什么不同啊？</title>
      <description>&lt;p&gt;model 代码：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Keyword &amp;lt; ActiveRecord::Base
    validates :name, :presence =&amp;gt; true, :uniqueness =&amp;gt; true
end


&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;migrate 代码&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class CreateKeywords &amp;lt; ActiveRecord::Migration
  def change
    create_table :keywords do |t|
      t.string :name, :null =&amp;gt; false
      t.integer :level, :null =&amp;gt; false, :default =&amp;gt; 0

      t.timestamps
    end
  end
end


&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;这 2 者的声明有什么不同吗？如何使用呢？  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Tue, 17 Apr 2012 08:59:30 +0800</pubDate>
      <link>https://ruby-china.org/topics/2644</link>
      <guid>https://ruby-china.org/topics/2644</guid>
    </item>
    <item>
      <title>面包屑导航 请问大家有好用的 GEM 吗？</title>
      <description>&lt;p&gt;面包屑导航 请问大家有好用的 GEM 吗？   &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Tue, 10 Apr 2012 21:25:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/2516</link>
      <guid>https://ruby-china.org/topics/2516</guid>
    </item>
    <item>
      <title>Git pull 强制覆盖本地文件，命令是什么啊？</title>
      <description>&lt;p&gt;每次运行 Bundle 都会生成 Gemfile.lock&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git pull
error: Your local changes to 'Gemfile.lock' would be overwritten by merge.  Aborting.&lt;/code&gt;&lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Mon, 09 Apr 2012 22:57:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/2494</link>
      <guid>https://ruby-china.org/topics/2494</guid>
    </item>
    <item>
      <title>请问在 VPS 上如何让服务器一直跑 Rake 任务啊？关闭服务器终端，任务就暂停了！</title>
      <description>&lt;p&gt;请问在 VPS 上如何让服务器一直跑 Rake 任务啊？关闭服务器终端，任务就暂停了！&lt;/p&gt;

&lt;p&gt;rake --quiet db:seed&lt;/p&gt;

&lt;p&gt;这样也不行啊？  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Sat, 07 Apr 2012 09:43:33 +0800</pubDate>
      <link>https://ruby-china.org/topics/2444</link>
      <guid>https://ruby-china.org/topics/2444</guid>
    </item>
    <item>
      <title>Nokogiri 采集的文章内容包括图片，如何保存内容，替换换本地的图片文件路径啊？</title>
      <description>&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# encoding: utf-8
require 'rubygems'

require 'nokogiri'

require 'open-uri'

require 'date'

page = Nokogiri::HTML(open('http://www.36kr.com/p/91876.html'))

puts page.css('#post p')

puts page.css('#post p img')

图片远程路径src和文章内容，我都可以得到。如何用本地的图片路径替换到采集的图片的远程路径？




&lt;/code&gt;&lt;/pre&gt;</description>
      <author>xufeng</author>
      <pubDate>Sun, 18 Mar 2012 23:40:28 +0800</pubDate>
      <link>https://ruby-china.org/topics/1956</link>
      <guid>https://ruby-china.org/topics/1956</guid>
    </item>
    <item>
      <title>多级产品分类，请推荐相关的 GEM ？ thanks</title>
      <description>&lt;p&gt;多级产品分类，请推荐相关的 GEM？thanks&lt;/p&gt;

&lt;p&gt;Cat1
       Sub1
        SubSub1
        SubSub2
    Sub2
Cat2
    Sub1
Cat3
    Sub1
    Sub2
        SubSub1  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Thu, 08 Mar 2012 21:26:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/1718</link>
      <guid>https://ruby-china.org/topics/1718</guid>
    </item>
    <item>
      <title>批量上传图片功能，有简单的 Gem 生成吗？类似豆瓣这种</title>
      <description>&lt;p&gt;批量上传图片功能，有简单的 Gem 生成吗？&lt;img src="//l.ruby-china.com/photo/ad964fc79a248b8cc99bb784d1b5e23b.png" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Thu, 01 Mar 2012 15:57:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/1532</link>
      <guid>https://ruby-china.org/topics/1532</guid>
    </item>
    <item>
      <title>Rails 有没有好的会员积分系统 Gem 啊？</title>
      <description>&lt;p&gt;RT  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Wed, 29 Feb 2012 10:01:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/1490</link>
      <guid>https://ruby-china.org/topics/1490</guid>
    </item>
    <item>
      <title>图片如何批量生成缩略图和加水印的 Gem</title>
      <description>&lt;p&gt;采集过来的图片如何批量生成缩略图和加水印啊？Gem 推荐一下，&lt;/p&gt;

&lt;p&gt;另外，问一下，使用 carriverWave Gem 的时候，图片的字段 string, 后台无法单独赋值成功，必须前台上传才能成功。无法同时采集图片，请教如何做啊？  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Tue, 28 Feb 2012 23:16:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/1485</link>
      <guid>https://ruby-china.org/topics/1485</guid>
    </item>
    <item>
      <title>可以实现获取上一篇，下一篇文章功能的 Gem</title>
      <description>&lt;p&gt;上一篇文章 下一篇文章，有没有好用的 GEM 啊？不是分页，是在一片文章底部，调用文章 ID 的前后 2 条记录！&lt;/p&gt;

&lt;p&gt;分页的 Gem 不能用吧？  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Mon, 27 Feb 2012 22:20:16 +0800</pubDate>
      <link>https://ruby-china.org/topics/1457</link>
      <guid>https://ruby-china.org/topics/1457</guid>
    </item>
    <item>
      <title>新手求帮助 Nokogiri  如何实现采集图片啊？</title>
      <description>&lt;p&gt;采集文本信息容易解决，如何实现采集图片呢？&lt;/p&gt;

&lt;p&gt;能否写一个简单的 demo, thanks &lt;/p&gt;

&lt;p&gt;本人已经 google baidu 了，没有找到教程。  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Sun, 12 Feb 2012 21:40:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/1159</link>
      <guid>https://ruby-china.org/topics/1159</guid>
    </item>
    <item>
      <title>请问有没有专门做视频的 Gem?</title>
      <description>&lt;p&gt;请问有没有专门做视频的 Gem? &lt;/p&gt;

&lt;p&gt;大家有做视频流的网站吗？分享一下经验。&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.pandastream.com/docs/integrate_with_rails" rel="nofollow" target="_blank"&gt;http://www.pandastream.com/docs/integrate_with_rails&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;thanks  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Fri, 13 Jan 2012 10:06:09 +0800</pubDate>
      <link>https://ruby-china.org/topics/838</link>
      <guid>https://ruby-china.org/topics/838</guid>
    </item>
    <item>
      <title>Linode 的 StackScript 如何使用啊？</title>
      <description>&lt;p&gt;我用 StackScript 创建一个新的系统，并没有直接把环境搭建好啊？
需要进 ssh，输入什么命令啊？  &lt;/p&gt;</description>
      <author>xufeng</author>
      <pubDate>Sat, 24 Dec 2011 22:43:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/586</link>
      <guid>https://ruby-china.org/topics/586</guid>
    </item>
  </channel>
</rss>
