<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>hangzai</title>
    <link>https://ruby-china.org/hangzai</link>
    <description>I'm OK!</description>
    <language>en-us</language>
    <item>
      <title>Geek 新闻网站上线 请猛烈点击！</title>
      <description>&lt;p&gt;Geek 新闻网站上线 请猛烈点击！&lt;/p&gt;

&lt;p&gt;网站地址： &lt;a href="http://news.icode.hk/" rel="nofollow" target="_blank"&gt;http://news.icode.hk/&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;:) 欢迎投稿 我每天都会更新~
Copy 自国外的 Hacker News&lt;/p&gt;

&lt;p&gt;使用方法以及算法：&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.ruanyifeng.com/blog/2012/02/ranking_algorithm_hacker_news.html" rel="nofollow" target="_blank"&gt;http://www.ruanyifeng.com/blog/2012/02/ranking_algorithm_hacker_news.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;源码来自： &lt;a href="http://arclanguage.org/" rel="nofollow" target="_blank"&gt;http://arclanguage.org/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;copyright: 
This software is copyright (c) Paul Graham and Robert Morris. Permission
to use it is granted under the Perl Foundations's Artistic License 2.0.&lt;/p&gt;</description>
      <author>hangzai</author>
      <pubDate>Mon, 29 Apr 2013 20:33:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/10618</link>
      <guid>https://ruby-china.org/topics/10618</guid>
    </item>
    <item>
      <title>支持 Rails 的空间 24 核心服务器,优惠大促销 40 元一年</title>
      <description>&lt;ul&gt;
&lt;li&gt;   配置：&lt;/li&gt;
&lt;li&gt;   空间：1G&lt;/li&gt;
&lt;li&gt;   流量：20G/月&lt;/li&gt;
&lt;li&gt;   绑定域名：1 个&lt;/li&gt;
&lt;li&gt;   子域名：2 个&lt;/li&gt;
&lt;li&gt;   Mysql 数据库：1 个&lt;/li&gt;
&lt;li&gt;   Mysql 数据库空间：无限&lt;/li&gt;
&lt;li&gt;   Ruby on Rails:支持&lt;/li&gt;
&lt;li&gt;   App 个数：不限制&lt;/li&gt;
&lt;/ul&gt;

&lt;hr&gt;

&lt;p&gt;&lt;code&gt;年付：100元&lt;/code&gt;  现在 4 折 &lt;code&gt;年付：40元&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;优惠代码：2013&lt;/p&gt;

&lt;p&gt;服务器探针：&lt;a href="http://ey.host700.com/p.php" rel="nofollow" target="_blank"&gt;http://ey.host700.com/p.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;支持演示：&lt;a href="http://www.teidihen.com/ruby/" rel="nofollow" target="_blank"&gt;http://www.teidihen.com/ruby/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;购买地址：&lt;a href="http://t.cn/zOTJTOO" rel="nofollow" target="_blank"&gt;http://t.cn/zOTJTOO&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;支持 SSH 登录 不过需要另外 支付 80 元开通 SSH 有了 SSH 可以安装 python 更灵活的安装 ruby&lt;/p&gt;

&lt;p&gt;总共加起来也就 120 元一年 很划算的~&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;如果不喜欢我们还有 11 元每月的 VPS &lt;a href="http://www.host700.com/cloud.php" rel="nofollow" target="_blank"&gt;http://www.host700.com/cloud.php&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;后台演示
&lt;img src="//l.ruby-china.com/photo/f95af676fe1a0cc2fa4b0f7010258432.jpg" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;Ruby Gem 安装
&lt;img src="//l.ruby-china.com/photo/13475e43d55ebd0278aeda9f57f06461.jpg" title="" alt=""&gt;  &lt;/p&gt;</description>
      <author>hangzai</author>
      <pubDate>Tue, 01 May 2012 04:59:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/3003</link>
      <guid>https://ruby-china.org/topics/3003</guid>
    </item>
    <item>
      <title>rails new test_app 时出现以下错误！求解啊！！！！</title>
      <description>&lt;p&gt;求解啊！&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb 
checking &lt;span class="k"&gt;for &lt;/span&gt;sqlite3.h... &lt;span class="nb"&gt;yes
&lt;/span&gt;checking &lt;span class="k"&gt;for &lt;/span&gt;sqlite3_libversion_number&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nt"&gt;-lsqlite3&lt;/span&gt;... &lt;span class="nb"&gt;yes
&lt;/span&gt;checking &lt;span class="k"&gt;for &lt;/span&gt;rb_proc_arity&lt;span class="o"&gt;()&lt;/span&gt;... &lt;span class="nb"&gt;yes
&lt;/span&gt;checking &lt;span class="k"&gt;for &lt;/span&gt;sqlite3_initialize&lt;span class="o"&gt;()&lt;/span&gt;... no
checking &lt;span class="k"&gt;for &lt;/span&gt;sqlite3_backup_init&lt;span class="o"&gt;()&lt;/span&gt;... no
checking &lt;span class="k"&gt;for &lt;/span&gt;sqlite3_column_database_name&lt;span class="o"&gt;()&lt;/span&gt;... &lt;span class="nb"&gt;yes
&lt;/span&gt;checking &lt;span class="k"&gt;for &lt;/span&gt;sqlite3_enable_load_extension&lt;span class="o"&gt;()&lt;/span&gt;... &lt;span class="nb"&gt;yes
&lt;/span&gt;checking &lt;span class="k"&gt;for &lt;/span&gt;sqlite3_load_extension&lt;span class="o"&gt;()&lt;/span&gt;... &lt;span class="nb"&gt;yes
&lt;/span&gt;creating Makefile

make
gcc &lt;span class="nt"&gt;-I&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;-I&lt;/span&gt;/usr/local/include/ruby-1.9.1/i686-linux &lt;span class="nt"&gt;-I&lt;/span&gt;/usr/local/include/ruby-1.9.1/ruby/backward &lt;span class="nt"&gt;-I&lt;/span&gt;/usr/local/include/ruby-1.9.1 &lt;span class="nt"&gt;-I&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;-DHAVE_RB_PROC_ARITY&lt;/span&gt; &lt;span class="nt"&gt;-DHAVE_SQLITE3_COLUMN_DATABASE_NAME&lt;/span&gt; &lt;span class="nt"&gt;-DHAVE_SQLITE3_ENABLE_LOAD_EXTENSION&lt;/span&gt; &lt;span class="nt"&gt;-DHAVE_SQLITE3_LOAD_EXTENSION&lt;/span&gt;  &lt;span class="nt"&gt;-D_FILE_OFFSET_BITS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;64  &lt;span class="nt"&gt;-fPIC&lt;/span&gt; &lt;span class="nt"&gt;-O3&lt;/span&gt; &lt;span class="nt"&gt;-ggdb&lt;/span&gt; &lt;span class="nt"&gt;-Wextra&lt;/span&gt; &lt;span class="nt"&gt;-Wno-unused-parameter&lt;/span&gt; &lt;span class="nt"&gt;-Wno-parentheses&lt;/span&gt; &lt;span class="nt"&gt;-Wpointer-arith&lt;/span&gt; &lt;span class="nt"&gt;-Wwrite-strings&lt;/span&gt; &lt;span class="nt"&gt;-Wno-missing-field-initializers&lt;/span&gt; &lt;span class="nt"&gt;-Wno-long-long&lt;/span&gt;  &lt;span class="nt"&gt;-o&lt;/span&gt; database.o &lt;span class="nt"&gt;-c&lt;/span&gt; database.c
database.c: In &lt;span class="k"&gt;function&lt;/span&gt; ‘initialize’:
database.c:47: error: ‘SQLITE_OPEN_READWRITE’ undeclared &lt;span class="o"&gt;(&lt;/span&gt;first use &lt;span class="k"&gt;in &lt;/span&gt;this &lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
database.c:47: error: &lt;span class="o"&gt;(&lt;/span&gt;Each undeclared identifier is reported only once
database.c:47: error: &lt;span class="k"&gt;for &lt;/span&gt;each &lt;span class="k"&gt;function &lt;/span&gt;it appears &lt;span class="k"&gt;in&lt;/span&gt;.&lt;span class="o"&gt;)&lt;/span&gt;
database.c:47: error: ‘SQLITE_OPEN_CREATE’ undeclared &lt;span class="o"&gt;(&lt;/span&gt;first use &lt;span class="k"&gt;in &lt;/span&gt;this &lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
database.c:72: error: ‘SQLITE_OPEN_READONLY’ undeclared &lt;span class="o"&gt;(&lt;/span&gt;first use &lt;span class="k"&gt;in &lt;/span&gt;this &lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
database.c: In &lt;span class="k"&gt;function&lt;/span&gt; ‘set_sqlite3_func_result’:
database.c:278: error: ‘sqlite3_int64’ undeclared &lt;span class="o"&gt;(&lt;/span&gt;first use &lt;span class="k"&gt;in &lt;/span&gt;this &lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
make: &lt;span class="k"&gt;***&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;database.o] Error 1


Gem files will remain installed &lt;span class="k"&gt;in&lt;/span&gt; /home/deployer/.bundler/tmp/24638/gems/sqlite3-1.3.4 &lt;span class="k"&gt;for &lt;/span&gt;inspection.
Results logged to /home/deployer/.bundler/tmp/24638/gems/sqlite3-1.3.4/ext/sqlite3/gem_make.out
An error occured &lt;span class="k"&gt;while &lt;/span&gt;installing sqlite3 &lt;span class="o"&gt;(&lt;/span&gt;1.3.4&lt;span class="o"&gt;)&lt;/span&gt;, and Bundler cannot &lt;span class="k"&gt;continue&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt;
Make sure that &lt;span class="sb"&gt;`&lt;/span&gt;gem &lt;span class="nb"&gt;install &lt;/span&gt;sqlite3 &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="s1"&gt;'1.3.4'&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt; succeeds before bundling.
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>hangzai</author>
      <pubDate>Mon, 28 Nov 2011 16:59:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/225</link>
      <guid>https://ruby-china.org/topics/225</guid>
    </item>
    <item>
      <title>帮忙看下对么？里面是代码文件以及注释。</title>
      <description>&lt;p&gt;小弟初学。帮忙看下 下面的注释对么如果不对请指正！
下面是用 Xcode 注释的截图。。我一般写代码用 TextMate 注释用 Xcode 很纠结。。英文不好。
&lt;img src="//l.ruby-china.com/photo/886d8ea76d444a25dca4840878a975ed.png" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>hangzai</author>
      <pubDate>Sat, 26 Nov 2011 01:20:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/182</link>
      <guid>https://ruby-china.org/topics/182</guid>
    </item>
    <item>
      <title>为什么想学 Ruby 就这么难～</title>
      <description>&lt;p&gt;没有基础就不能学么。。。看到每个数上都是介绍以前弄 PHP 或者弄别的语言怎么转过来。。。从来没有对新手的指导，所谓“新手”就是有别的语言基础的。&lt;/p&gt;

&lt;p&gt;我就想问下没有编程语言基础就不能学么？就非得要从 C++ C# 学起么？&lt;/p&gt;

&lt;p&gt;我就不能自己想学个好玩的语言 自己没事练习么？&lt;/p&gt;

&lt;p&gt;不可以么？有那么难入门么。。。我怎么觉得国内的书故弄玄虚的就这么多。&lt;/p&gt;

&lt;p&gt;最后 吐槽完毕。。&lt;/p&gt;

&lt;p&gt;就想问下到底没基础的能学不能学啊？？？？  &lt;/p&gt;</description>
      <author>hangzai</author>
      <pubDate>Wed, 23 Nov 2011 12:44:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/128</link>
      <guid>https://ruby-china.org/topics/128</guid>
    </item>
  </channel>
</rss>
