<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>longerian (xiaolong)</title>
    <link>https://ruby-china.org/longerian</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>招聘的时候人家问是否玩游戏是出于什么目的</title>
      <description>&lt;p&gt;最近发现很多招聘贴里都让应聘者提供：
1.是否玩游戏
2.经常逛的网站
请问一下这是出于什么目的呢？考察哪方面的素质呢？  &lt;/p&gt;</description>
      <author>longerian</author>
      <pubDate>Wed, 02 May 2012 21:20:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/3040</link>
      <guid>https://ruby-china.org/topics/3040</guid>
    </item>
    <item>
      <title>Ruby China Android 客户端预览版</title>
      <description>&lt;h2 id="关于应用定位"&gt;关于应用定位&lt;/h2&gt;
&lt;p&gt;上周&lt;a href="/ashchan" class="user-mention" title="@ashchan"&gt;&lt;i&gt;@&lt;/i&gt;ashchan&lt;/a&gt;发布 Mac 下的客户端的时候，我就开始着手开发个 Android 版的。毕竟客户端嘛，个人认为在手机平台上的必要性比电脑上更大一些（除非 HTML5 大规模普及）。不过尽管如此，对 Android 版客户端的定位我主要还着眼于其阅读、浏览功能，让我们的用户还是更多地来访问网站吧，在手机上输文字、敲小段代码还是不方便的。&lt;/p&gt;
&lt;h2 id="关于应用发布"&gt;关于应用发布&lt;/h2&gt;
&lt;p&gt;另外，本想一次性将应用发布到 Google Market 上的，这样可以方便用户后续升级，但无奈个人 Google 开发者账户还在注册中，现在应用开发得差不多了，迫切想拿出来更大家分享分享，于是今天就先给个预览版吧。等过一两周我正式发布到 market 上时再通知一次。&lt;/p&gt;
&lt;h2 id="测试包更新"&gt;测试包更新&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;27 日有次小更新 RubyChinaForAndroid beta v20120327（下载方式一样）&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="下载地址"&gt;下载地址&lt;/h2&gt;
&lt;p&gt;访问：
&lt;a href="http://cloud.github.com/downloads/longerian/RC4A/RubyChinaForAndroid%20beta%20v20120327.apk" rel="nofollow" target="_blank"&gt;http://cloud.github.com/downloads/longerian/RC4A/RubyChinaForAndroid%20beta%20v20120327.apk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;或手机直接扫描二维码：
&lt;img src="https://chart.googleapis.com/chart?cht=qr&amp;amp;chs=300x300&amp;amp;chl=https://github.com/downloads/longerian/RC4A/RubyChinaForAndroid%20beta%20v20120327.apk" title="" alt="RubyChinaForAndroid QR code"&gt;&lt;/p&gt;
&lt;h2 id="应用简介"&gt;应用简介&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;可查看活跃帖子，可按节点查看帖子，默认返回 30 条帖子，用户可设置返回帖子条数；&lt;/li&gt;
&lt;li&gt;查看会员资料；&lt;/li&gt;
&lt;li&gt;查看帖子回复；&lt;/li&gt;
&lt;li&gt;发布新帖子，需要手动设置 token，暂不支持发布图片；&lt;/li&gt;
&lt;li&gt;缓存帖子，一定程度上具有离线阅读功能；&lt;/li&gt;
&lt;li&gt;缓存头像；&lt;/li&gt;
&lt;li&gt;版本更新，（需等待个人上传应用到 Google Market 后才具备）；&lt;/li&gt;
&lt;li&gt;要求 Android2.2 及以上系统支持，暂不兼容 2.1 及以下系统版本；&lt;/li&gt;
&lt;li&gt;应用经多款不同型号、分辨率的真机及模拟器测试，UI 表现良好，无错乱现象；未在 4.0 系统下测试过（因为手头没有 4.0 的机器）；&lt;/li&gt;
&lt;li&gt;产品针对手机设计，在用户交互上暂不适用于平板。&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="将来可增强的功能"&gt;将来可增强的功能&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;OAuth 认证登录，视服务器端开发情况而定；&lt;/li&gt;
&lt;li&gt;直接回复帖子；&lt;/li&gt;
&lt;li&gt;发布图片功能；&lt;/li&gt;
&lt;li&gt;优化图片异步加载机制；&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="使用说明"&gt;使用说明&lt;/h2&gt;
&lt;p&gt;软件的易用性还是比较有考究的，我觉得我这个为了精简界面元素，可能导致做得还不够贴心，第一次用的人可能不知道哪些地方可交互，所以有必要简要说明一下：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;首页，展示热门帖子，点击帖子可查看详情。右上角从左往右分别是“查看节点”、“刷新”、“发布新帖子”的功能入口。&lt;/li&gt;
&lt;li&gt;节点列表页，查看社区的所有节点，点击后返回首页，过滤出所选节点的话题。&lt;/li&gt;
&lt;li&gt;帖子详情页，点击用户头像可查看会员资料，右上角是“查看回复列表”功能入口，点击可进入该帖子的回复列表页。&lt;/li&gt;
&lt;li&gt;回复列表页，长按可查看会员资料，这样做的目的是为了以后针对某人回复等其他功能做准备的，到时候长按就显示多个菜单项。&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="应用预览"&gt;应用预览&lt;/h2&gt;
&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/db808d08eb046f7200a4138323bc6668.jpg" title="" alt=""&gt;&lt;/p&gt;
&lt;h2 id="关于代码、后续维护..."&gt;关于代码、后续维护...&lt;/h2&gt;
&lt;p&gt;要查看源代码可访问：&lt;a href="https://github.com/longerian/RC4A" rel="nofollow" target="_blank"&gt;https://github.com/longerian/RC4A&lt;/a&gt;，有兴趣的朋友可以加入一起开发。&lt;/p&gt;

&lt;p&gt;我个人来到这个社区本意是来学习 ruby 和 rails 的，以后我的主要业余经历还是会转移到那一块吧。不过只要时间充足，Android 版的客户端我还是会持续维护，致命的 bug 还是会继续修正（比如可能在 4.0 系统下 crash），必要的功能还是会继续加强（比如增加 OAuth 认证授权登录）......除非哪一天，秒杀一切阶级敌人的 mobile web 版出来并流行了，那我想我这个客户端也就完成历史使命了。&lt;/p&gt;
&lt;h2 id="补充说明"&gt;补充说明&lt;/h2&gt;
&lt;p&gt;另外有必要让几位社区维护者知晓一下&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; &lt;a href="/ashchan" class="user-mention" title="@ashchan"&gt;&lt;i&gt;@&lt;/i&gt;ashchan&lt;/a&gt; ：客户端应用图标用的是社区的 logo，如果正式发布应用涉及侵权的话，请提前告诉我一声。
上文截图中若让网友被出境了，请包涵包涵。  &lt;/p&gt;</description>
      <author>longerian</author>
      <pubDate>Fri, 23 Mar 2012 16:06:20 +0800</pubDate>
      <link>https://ruby-china.org/topics/2084</link>
      <guid>https://ruby-china.org/topics/2084</guid>
    </item>
    <item>
      <title>再问一个关于 js 运行环境的问题</title>
      <description>&lt;p&gt;新建了一个项目，执行 rake db:create，提示说缺少 Javascript 运行环境，于是我在 Gemfile 里添加了：
  gem 'execjs'
  gem 'therubyracer'
就安装了 js 运行环境，后面的就妥了。
但我就想问一下，rails 的运行为何需要用到 js 环境呢，在哪里会用到？  &lt;/p&gt;</description>
      <author>longerian</author>
      <pubDate>Mon, 12 Mar 2012 22:12:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/1820</link>
      <guid>https://ruby-china.org/topics/1820</guid>
    </item>
    <item>
      <title>bundle update 的时候安装 sqlite3 出错</title>
      <description>&lt;p&gt;Ubuntu11.10 环境下：
在执行 bundle update 或 bundle install 的时候，安装 sqlite3 出错，错误日志如下，大意是所缺少一个本地扩展插件的头文件 sqlite3.h，不知道要怎么解决啊？？？&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Installing sqlite3 &lt;span class="o"&gt;(&lt;/span&gt;1.3.5&lt;span class="o"&gt;)&lt;/span&gt; with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!

/home/longerian/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in &lt;span class="sb"&gt;`&lt;/span&gt;rescue &lt;span class="k"&gt;in &lt;/span&gt;block &lt;span class="k"&gt;in &lt;/span&gt;build_extensions&lt;span class="s1"&gt;': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/home/longerian/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb 
**checking for sqlite3.h... no
sqlite3.h is missing.** Try '&lt;/span&gt;port &lt;span class="nb"&gt;install &lt;/span&gt;sqlite3 +universal&lt;span class="s1"&gt;'
or '&lt;/span&gt;yum &lt;span class="nb"&gt;install &lt;/span&gt;sqlite-devel&lt;span class="s1"&gt;' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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.

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
      <author>longerian</author>
      <pubDate>Sun, 11 Mar 2012 22:01:08 +0800</pubDate>
      <link>https://ruby-china.org/topics/1789</link>
      <guid>https://ruby-china.org/topics/1789</guid>
    </item>
    <item>
      <title>找到组织了</title>
      <description>&lt;p&gt;这个 ruby 社区真不错，有找到组织的感觉了，哈哈。
本人是做 android 开发，对 ruby 只是业余有所了解，希望大家多多指教啊。
最后弱弱的问一句，其实我挺想转到某个偏冷门型的、跟 web 相关的平台开发的，ruby 适合吗？  &lt;/p&gt;</description>
      <author>longerian</author>
      <pubDate>Tue, 28 Feb 2012 10:53:30 +0800</pubDate>
      <link>https://ruby-china.org/topics/1465</link>
      <guid>https://ruby-china.org/topics/1465</guid>
    </item>
  </channel>
</rss>
