<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>bluexuemei</title>
    <link>https://ruby-china.org/bluexuemei</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>正负抵消的删除</title>
      <description>&lt;p&gt;arr=[['a',2],['a',2],['a',-2],['b',3],['b',-3],['c',4]]，要求将同种类中的正负抵消的项成对消除
result=[['a',2],['c',4]]
请指教！&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Fri, 23 Jan 2015 15:59:03 +0800</pubDate>
      <link>https://ruby-china.org/topics/23906</link>
      <guid>https://ruby-china.org/topics/23906</guid>
    </item>
    <item>
      <title>16 进制转 GBK 不成功</title>
      <description>&lt;p&gt;"AA3F3201861F0000D61F0000".scan(/..../).map{|x| x.to_i(16)}.pack("U*")  这个可以，但是
"AA3F3201861F0000D61F0000".scan(/..../).map{|x| x.to_i(16)}.pack("U*").encode('gbk') 不成功，怎么解决？  &lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Mon, 19 Jan 2015 18:19:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/23818</link>
      <guid>https://ruby-china.org/topics/23818</guid>
    </item>
    <item>
      <title>有人玩 ActiveScriptRuby 吗？</title>
      <description>&lt;p&gt;ActiveScriptRuby 在 EXCEL 中可作为嵌入式脚本使用
但是最新版本 Ruby-2.2.0 Microsoft Installer Package (2014-12-25 revision 49005)
Set ojs = CreateObject("MSScriptControl.ScriptControl"): ojs.Language = "rubyscript"//创建失败，为什么？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Mon, 12 Jan 2015 13:03:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/23680</link>
      <guid>https://ruby-china.org/topics/23680</guid>
    </item>
    <item>
      <title>怎么把 Double 转化为 Time 字符串</title>
      <description>&lt;p&gt;如：0.5 怎么转化为“12:00:00”？？？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Thu, 08 Jan 2015 12:30:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/23607</link>
      <guid>https://ruby-china.org/topics/23607</guid>
    </item>
    <item>
      <title>求多个相同大小的矩阵对应位置的最大值</title>
      <description>&lt;p&gt;如题，怎么求多个相同大小的矩阵对应位置的最大值
例如：a=[2 3 4 5;3 4 5 6;1 2 3 2;8 9 5 3]
b=[1 1 1 5;4 5 2 3;6 5 6 3 ;7 4 9 7]
要求得到的结果矩阵是：c=[2 3 4 5;4 5 5 6; 6 5 6 3 ;8 9 9 7]
注意：要考虑效率问题，矩阵有可能很大，矩阵的个数不定&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Thu, 08 Jan 2015 08:19:45 +0800</pubDate>
      <link>https://ruby-china.org/topics/23603</link>
      <guid>https://ruby-china.org/topics/23603</guid>
    </item>
    <item>
      <title>和为定值的随机数</title>
      <description>&lt;p&gt;比方说 sum=80，我要生成 10 个在 4..13 之间的随机数，求高效算法。（可重复）
注：是 10 个随机数的和为 80 
my code:&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;nums&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;times&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;collect&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nb"&gt;rand&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;..&lt;/span&gt;&lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt; &lt;span class="k"&gt;until&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;[]).&lt;/span&gt;&lt;span class="nf"&gt;inject&lt;/span&gt;&lt;span class="p"&gt;(:&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;但是如果随机数的个数很大的话，效率非常低&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Sat, 03 Jan 2015 11:42:31 +0800</pubDate>
      <link>https://ruby-china.org/topics/23514</link>
      <guid>https://ruby-china.org/topics/23514</guid>
    </item>
    <item>
      <title>平均分配问题</title>
      <description>&lt;p&gt;把一个任意整数平均分成若干份问题，比分说 9 分成 3 分，结果是 [3,3,3],10 分成 3 份，结果为 [3,3,4] 或者 [4,3,3] 或者 [3,4,3]
怎么设计算法才简洁？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Sun, 21 Dec 2014 16:57:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/23315</link>
      <guid>https://ruby-china.org/topics/23315</guid>
    </item>
    <item>
      <title>ruby 遍历多叉树问题</title>
      <description>&lt;p&gt;母键  子键
A     E
B     C
B     D
B     E
E     F
G     H
J     B
J     V
J     A
这是一个 BOM 的结构。现在想得到以下结果:（数据大概有 10 万)
[[A,[E,
  F]],
[B,[C,
  D,
  E,
  F]],
[G,[H]],
[J,[B,
  C,
  D,
  E,
  F,
  V,
  A,
  E,
  F]]]&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Thu, 04 Dec 2014 09:26:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/23015</link>
      <guid>https://ruby-china.org/topics/23015</guid>
    </item>
    <item>
      <title>安装 Nokogirl 的问题</title>
      <description>&lt;p&gt;&lt;a href="http://www.nokogiri.org/tutorials/installing_nokogiri.html" rel="nofollow" target="_blank"&gt;http://www.nokogiri.org/tutorials/installing_nokogiri.html&lt;/a&gt;
Windows&lt;/p&gt;

&lt;p&gt;Luckily for you, building on Windows is so difficult that we’ve done it for you: Nokogiri comes bundled with all the DLLs you need to be NOKOGIRIFIED!
gem install nokogiri&lt;/p&gt;

&lt;p&gt;我在 GitHub 下载的是一个 nokogiri 文件包，我应该把这个文件包放在什么地方，再运行 gem install nokogiri 呢？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Sun, 02 Nov 2014 19:27:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/22413</link>
      <guid>https://ruby-china.org/topics/22413</guid>
    </item>
    <item>
      <title>RUBY 2.0  UTF-8 转 GBK 错误，怎么解决？</title>
      <description>&lt;p&gt;有时候明明是 UTF-8 编码，可是 s.encode('gbk')，转码失败，怎么解决呢？
s='5233496214，鐖遍鏅敾，绂忓缓 鑾嗙敯，缁樼敾鐖卞ソ鑰呫€傚井淇″彿锛？35421815,,,f,2085,1999,66,0,2014-07-26 17:51:14,-1,,1894'  (utf-8 编码)&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Sun, 02 Nov 2014 10:21:28 +0800</pubDate>
      <link>https://ruby-china.org/topics/22408</link>
      <guid>https://ruby-china.org/topics/22408</guid>
    </item>
    <item>
      <title>怎样一次性提取 XML 中带红色的所有数据</title>
      <description>&lt;pre class="highlight scss"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="nt"&gt;xml&lt;/span&gt; &lt;span class="nt"&gt;version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"1.0"&lt;/span&gt; &lt;span class="nt"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"UTF-8"&lt;/span&gt;&lt;span class="o"&gt;?&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;-&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;exposure_annotation_data&lt;/span&gt; &lt;span class="nt"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"exposure_annotation_data"&lt;/span&gt; &lt;span class="nt"&gt;version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"6"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;image_number&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;1&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;image_number&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;record_guid&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;5C0963EF-04D3-44BE-BC8D-AB0F39E0D408&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;record_guid&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;software&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;COSa&lt;/span&gt; &lt;span class="nt"&gt;V4&lt;/span&gt;&lt;span class="nc"&gt;.4.1&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;software&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;aperture&lt;/span&gt; &lt;span class="nt"&gt;description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"F_8"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;1&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;aperture&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;exposure_time&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"s"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="nc"&gt;.004000000000&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;exposure_time&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;-&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;exposure_annotation_info&lt;/span&gt; &lt;span class="nt"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"exposure_annotation_info"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;mid_exposure_correction&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"s"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="nc"&gt;.000000000000&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;mid_exposure_correction&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;+&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;fms_info&lt;/span&gt; &lt;span class="nt"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"fms_info"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;-&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;gps_navigation_info&lt;/span&gt; &lt;span class="nt"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"gps_navigation_info"&lt;/span&gt; &lt;span class="nt"&gt;version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"2"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;date&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"YYMMDD"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;141015&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;date&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;time&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"hhmmss"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;062224&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;time&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;latitude&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"WGS84"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;N38&lt;/span&gt;&lt;span class="nc"&gt;.246509&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;latitude&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;longitude&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"WGS84"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;E107&lt;/span&gt;&lt;span class="nc"&gt;.388949&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;longitude&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;altitude&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"m"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;3825&lt;/span&gt;&lt;span class="nc"&gt;.000000000000&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;altitude&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;track_over_ground&lt;/span&gt; &lt;span class="nt"&gt;unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"degree"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;64&lt;/span&gt;&lt;span class="nc"&gt;.000000000000&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;track_over_ground&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;position_solution&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;GPS&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;position_solution&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;gps_navigation_info&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;exposure_annotation_info&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;exposure_annotation_data&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Wed, 22 Oct 2014 23:56:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/22203</link>
      <guid>https://ruby-china.org/topics/22203</guid>
    </item>
    <item>
      <title>找零钱问题</title>
      <description>&lt;p&gt;找零钱问题，现在要找 15 元钱，钱的面值分别为 1 元，2 元，5 元。要求优先找大面额的，再找小面额的。请求出面值所在数组的元素的序号
sum=15
array=[1,2,5,2,1,1,1, 5,2,1,1,1,1,1,1]&lt;/p&gt;

&lt;p&gt;result_array=[2,7,1,3,0]&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Wed, 15 Oct 2014 09:00:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/22049</link>
      <guid>https://ruby-china.org/topics/22049</guid>
    </item>
    <item>
      <title>安装 Nokogirl 错误，急救！</title>
      <description>&lt;p&gt;C:\ruby\Ruby-2.1\bin&amp;gt;gem install nokogiri --platform x86-mingw32
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
        ERROR: Failed to build gem native extension.&lt;/p&gt;

&lt;p&gt;C:/ruby/Ruby-2.1/bin/ruby.exe extconf.rb
Building nokogiri using packaged libraries.
Building zlib-1.2.8 for nokogiri.&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;IMPORTANT!  Nokogiri builds and uses a packaged version of zlib.&lt;/p&gt;

&lt;p&gt;If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:&lt;/p&gt;

&lt;p&gt;gem install nokogiri -- --use-system-libraries&lt;/p&gt;

&lt;p&gt;If you are using Bundler, tell it to use the option:&lt;/p&gt;

&lt;p&gt;bundle config build.nokogiri --use-system-libraries
    bundle install&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Downloading zlib-1.2.8.tar.gz
Downloading zlib-1.2.8.tar.gz (  1%)
Downloading zlib-1.2.8.tar.gz (  4%)
Downloading zlib-1.2.8.tar.gz (  5%)
Downloading zlib-1.2.8.tar.gz (  6%)
Downloading zlib-1.2.8.tar.gz (  8%)
Downloading zlib-1.2.8.tar.gz ( 10%)
Downloading zlib-1.2.8.tar.gz ( 11%)
Downloading zlib-1.2.8.tar.gz ( 12%)
Downloading zlib-1.2.8.tar.gz ( 14%)
Downloading zlib-1.2.8.tar.gz ( 16%)
Downloading zlib-1.2.8.tar.gz ( 18%)
Downloading zlib-1.2.8.tar.gz ( 19%)
Downloading zlib-1.2.8.tar.gz ( 21%)
Downloading zlib-1.2.8.tar.gz ( 23%)
Downloading zlib-1.2.8.tar.gz ( 25%)
Downloading zlib-1.2.8.tar.gz ( 27%)
Downloading zlib-1.2.8.tar.gz ( 29%)
Downloading zlib-1.2.8.tar.gz ( 30%)
Downloading zlib-1.2.8.tar.gz ( 31%)
Downloading zlib-1.2.8.tar.gz ( 32%)
Downloading zlib-1.2.8.tar.gz ( 33%)
Downloading zlib-1.2.8.tar.gz ( 34%)
Downloading zlib-1.2.8.tar.gz ( 35%)
Downloading zlib-1.2.8.tar.gz ( 37%)
Downloading zlib-1.2.8.tar.gz ( 39%)
Downloading zlib-1.2.8.tar.gz ( 41%)
Downloading zlib-1.2.8.tar.gz ( 42%)
Downloading zlib-1.2.8.tar.gz ( 43%)
Downloading zlib-1.2.8.tar.gz ( 44%)
Downloading zlib-1.2.8.tar.gz ( 45%)
Downloading zlib-1.2.8.tar.gz ( 46%)
Downloading zlib-1.2.8.tar.gz ( 48%)
Downloading zlib-1.2.8.tar.gz ( 49%)
Downloading zlib-1.2.8.tar.gz ( 51%)
Downloading zlib-1.2.8.tar.gz ( 52%)
Downloading zlib-1.2.8.tar.gz ( 54%)
Downloading zlib-1.2.8.tar.gz ( 56%)
Downloading zlib-1.2.8.tar.gz ( 57%)
Downloading zlib-1.2.8.tar.gz ( 59%)
Downloading zlib-1.2.8.tar.gz ( 61%)
Downloading zlib-1.2.8.tar.gz ( 62%)
Downloading zlib-1.2.8.tar.gz ( 63%)
Downloading zlib-1.2.8.tar.gz ( 65%)
Downloading zlib-1.2.8.tar.gz ( 67%)
Downloading zlib-1.2.8.tar.gz ( 69%)
Downloading zlib-1.2.8.tar.gz ( 71%)
Downloading zlib-1.2.8.tar.gz ( 73%)
Downloading zlib-1.2.8.tar.gz ( 75%)
Downloading zlib-1.2.8.tar.gz ( 77%)
Downloading zlib-1.2.8.tar.gz ( 78%)
Downloading zlib-1.2.8.tar.gz ( 80%)
Downloading zlib-1.2.8.tar.gz ( 82%)
Downloading zlib-1.2.8.tar.gz ( 84%)
Downloading zlib-1.2.8.tar.gz ( 86%)
Downloading zlib-1.2.8.tar.gz ( 88%)
Downloading zlib-1.2.8.tar.gz ( 89%)
Downloading zlib-1.2.8.tar.gz ( 90%)
Downloading zlib-1.2.8.tar.gz ( 91%)
Downloading zlib-1.2.8.tar.gz ( 93%)
Downloading zlib-1.2.8.tar.gz ( 95%)
Downloading zlib-1.2.8.tar.gz ( 97%)
Downloading zlib-1.2.8.tar.gz ( 99%)
Downloading zlib-1.2.8.tar.gz (100%)
Extracting zlib-1.2.8.tar.gz into tmp/i686-mswin32_100/ports/zlib/1.2.8... OK
Running 'compile' for zlib 1.2.8... ERROR, review 'tmp/i686-mswin32_100/ports/
ib/1.2.8/compile.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/ruby/Ruby-2.1/bin/ruby
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/inclu
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build
C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mini_portile.rb
:279:in &lt;code&gt;block in execute': Failed to complete compile task (RuntimeError)
        from C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mi
ni_portile.rb:271:in&lt;/code&gt;chdir'
        from C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mi
ni_portile.rb:271:in &lt;code&gt;execute'
        from extconf.rb:402:in&lt;/code&gt;compile'
        from C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mi
ni_portile.rb:110:in &lt;code&gt;cook'
        from extconf.rb:253:in&lt;/code&gt;block in process_recipe'
        from extconf.rb:154:in &lt;code&gt;tap'
        from extconf.rb:154:in&lt;/code&gt;process_recipe'
        from extconf.rb:377:in `&lt;/p&gt;'&lt;p&gt;&lt;/p&gt;

&lt;p&gt;extconf failed, exit code 1&lt;/p&gt;

&lt;p&gt;Gem files will remain installed in C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/nok
ogiri-1.6.3.1 for inspection.
Results logged to C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/extensions/x86-mswin32-10
0/2.1.0/nokogiri-1.6.3.1/gem_make.out&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Tue, 07 Oct 2014 12:45:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/21899</link>
      <guid>https://ruby-china.org/topics/21899</guid>
    </item>
    <item>
      <title>乱码，怎么解决，请大神帮帮忙！</title>
      <description>&lt;p&gt;require 'net/http'
url=%Q(&lt;a href="http://blog.sina.com.cn/1789468892" rel="nofollow" target="_blank"&gt;http://blog.sina.com.cn/1789468892&lt;/a&gt;)
 res =Net::HTTP.get_response(URI.parse(url)).body.match(/&lt;/p&gt;(.+?)&amp;lt;\/title&amp;gt;/)[1]
res.force_encoding('gbk')
输出结果："灏忕簿鐏典滑_鏂版氮鍗氬�"
乱码，怎么解决，请大神帮帮忙！
</description>
      <author>bluexuemei</author>
      <pubDate>Thu, 02 Oct 2014 19:28:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/21828</link>
      <guid>https://ruby-china.org/topics/21828</guid>
    </item>
    <item>
      <title>按条件重排数组元素</title>
      <description>&lt;p&gt;arr=["Beijing","Beijing","Beijing","Tokyo","Tokyo","Tokyo","New York","New York","Paris"]
这个数组共 9 个元素，我想把它分成 3 个区域：0-2,3-5,6-8。我想把它按条件重排，要求每个区域中的三个元素各不相同，而且这 3 个元素随机排列，得到的结果如下所示：
result_arr=["Tokyo"，"Beijing"，"New York"，"Paris"，"Beijing"，"Tokyo"，"Beijing"，"New York"，"Tokyo"]。怎么解决比较方便？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Sun, 06 Jul 2014 12:33:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/20339</link>
      <guid>https://ruby-china.org/topics/20339</guid>
    </item>
    <item>
      <title>在 windows 上 pry 默认没有打开自动缩进和颜色功能.，怎么配置？</title>
      <description>&lt;p&gt;在 windows 上 pry 默认没有打开自动缩进和颜色功能.，怎么配置？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Thu, 26 Jun 2014 18:42:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/20186</link>
      <guid>https://ruby-china.org/topics/20186</guid>
    </item>
    <item>
      <title>ruby 2.0 的 irb 删除字符后显示异常</title>
      <description>&lt;p&gt;ruby 2.0 的 irb（windows 环境) 没有以前的好用，删除字符后显示异常，怎么解决？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Wed, 25 Jun 2014 11:17:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/20153</link>
      <guid>https://ruby-china.org/topics/20153</guid>
    </item>
    <item>
      <title>ASCII-8BIT 怎么转换为 GBK?</title>
      <description>&lt;p&gt;ASCII-8BIT 怎么转换为 GBK?&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Sat, 21 Jun 2014 12:31:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/20092</link>
      <guid>https://ruby-china.org/topics/20092</guid>
    </item>
    <item>
      <title>带 BOM 的 UTF-8 转换为 GBK</title>
      <description>&lt;p&gt;无 BOM 的 UTF-8 转换为 GBK：file.open(f,"r:utf-8:gbk")&lt;br&gt;
带 BOM 的 UTF-8 转换为 GBK：file.open(f,"r:bom|utf-8:gbk")&lt;br&gt;
但是如果一个文件夹中有的是带 BOM 的，有些是不带 BOM 的 utf-8，怎么判断并读取？？？&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Fri, 20 Jun 2014 11:43:34 +0800</pubDate>
      <link>https://ruby-china.org/topics/20074</link>
      <guid>https://ruby-china.org/topics/20074</guid>
    </item>
    <item>
      <title>谷歌的网站很难登陆</title>
      <description>&lt;p&gt;最近谷歌的网站很难登陆不知道怎么回事？
stackoverflow 登陆也特别慢，怎么回事？Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load???&lt;/p&gt;</description>
      <author>bluexuemei</author>
      <pubDate>Wed, 04 Jun 2014 08:41:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/19720</link>
      <guid>https://ruby-china.org/topics/19720</guid>
    </item>
  </channel>
</rss>
