<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>lionzixuanyuan (LionYu)</title>
    <link>https://ruby-china.org/lionzixuanyuan</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>近 500 万 Gmail 账号密码遭泄露</title>
      <description>&lt;p&gt;刚看到这个新闻，分享给大家
被公布出的用户名密码大约有 60% 是有效的
快速分析之后，发现这其中主要包括的是英语账户、西班牙语账户和俄罗斯账户，并显示这份账户文件是经过很长时间累积而成的
因此，这可能是黑客攻击与 Gmail 和谷歌服务并无关联的网站得到的，尤其是那些喜欢在很多网站使用同一个账户名和密码的用户
如果你想检查你的帐户是否已被泄露，可以去 &lt;a href="https://isleaked.com/results/en" rel="nofollow" target="_blank"&gt;https://isleaked.com/results/en&lt;/a&gt; 网站，输入你的电子邮件地址进行检查&lt;/p&gt;

&lt;p&gt;原文地址：&lt;a href="http://www.iapps.im/single/25980" rel="nofollow" target="_blank"&gt;http://www.iapps.im/single/25980&lt;/a&gt;&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Thu, 11 Sep 2014 14:15:41 +0800</pubDate>
      <link>https://ruby-china.org/topics/21476</link>
      <guid>https://ruby-china.org/topics/21476</guid>
    </item>
    <item>
      <title>放点毒物给大家</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2014/a23828d914f8fb075daac8429dfe2711.jpg" title="" alt=""&gt;
&lt;img src="https://l.ruby-china.com/photo/2014/e671d19c6dd62e92f91ee2066714445a.jpg" title="" alt=""&gt;
第一张是同事的，第二张是自己的，生活中偶尔来点小情趣可以开心好久，哈哈
过两天&lt;a href="/ShiningRay" class="user-mention" title="@ShiningRay"&gt;&lt;i&gt;@&lt;/i&gt;ShiningRay&lt;/a&gt;和&lt;a href="/hging" class="user-mention" title="@hging"&gt;&lt;i&gt;@&lt;/i&gt;hging&lt;/a&gt;也会改，到时候再放上来给大家看看&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Wed, 28 May 2014 12:55:37 +0800</pubDate>
      <link>https://ruby-china.org/topics/19589</link>
      <guid>https://ruby-china.org/topics/19589</guid>
    </item>
    <item>
      <title>很纠结一个问题，thanks 的缩写到底是 thx 还是 tks</title>
      <description>&lt;p&gt;RT，原谅我发了这么一个无意义的帖子，但是我真的很纠结&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Mon, 28 Oct 2013 22:47:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/15101</link>
      <guid>https://ruby-china.org/topics/15101</guid>
    </item>
    <item>
      <title>长假在即，无锡同学们，有没有打算出来活动活动的～</title>
      <description>&lt;p&gt;RT，上次组织无锡的 Ruby 线下活动已经是去年 12 月份的事了。&lt;/p&gt;

&lt;p&gt;想着即将到来的长假，有空余的时间，想知道在无锡的 Ruby 爱好者数量是否有所增长。&lt;/p&gt;

&lt;p&gt;现在发个召集帖，有意愿出来交流的童鞋们联系我啊～&lt;/p&gt;

&lt;p&gt;联系方式：
邮箱：just4work@126.com
手机：189－1533－0900&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Sun, 29 Sep 2013 14:23:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/14472</link>
      <guid>https://ruby-china.org/topics/14472</guid>
    </item>
    <item>
      <title>WindowsServer 下如何注册系统服务，并监控该服务实现自动重启</title>
      <description>&lt;p&gt;背景没什么好交代的，在网上查了很久，亲测可用，在此做个总结&lt;/p&gt;

&lt;p&gt;将你完成的项目注册到操作系统的服务中
打开 cmd，键入如下指令
&lt;code&gt;mongrel_rails service::install -N DEMO -c D:\ruby_project\DEMO -p 3000 -e production&lt;/code&gt;
其中 -N 表示注册后服务显示的名称； -c 表示 ruby 项目代码的目录； -p 表示访问项目的端口号。&lt;/p&gt;

&lt;p&gt;将添加的服务注销
在 cmd 中键入指令
&lt;code&gt;mongrel_rails service::remove -N DEMO&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;制作监控该服务，并实现自动重启的批处理脚本
批处理脚本代码如下：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;title 系统服务自动重启脚本
@echo off
rem
set secs=60
set srvname="DEMO"

echo.
echo 此脚本监测的服务是：%srvname%
echo =====================
echo 每隔%secs%秒进行一次查询
echo 如果发现服务停止，则立即重启服务
echo =====================
echo.

if %srvname%.==.goto end

:chkit
set srvst=0
for /F "tokens=1*delims=" %%a in ('net start') do if /I "%%a %%b" == %srvname% set srvst=1
if %srvst% == 0 net start %srvname%
set srvst=
rem
ping -n %secs% 127.0.0.1 &amp;gt; nul
goto chkit
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;创建完成后，双击脚本，即开始工作&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Thu, 05 Sep 2013 14:15:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/13899</link>
      <guid>https://ruby-china.org/topics/13899</guid>
    </item>
    <item>
      <title>如何从数据库中取重复记录</title>
      <description>&lt;p&gt;在数据库中有一张表，其中有个 order_number 字段
现在有这么一个需求：查询出 order_numbe r 重复的所有记录&lt;/p&gt;

&lt;p&gt;我的想法如下：
将所有记录的 order_number 取出组成 数组 A
然后将 数组 A 去重，得到 数组 B
接着用 数组 A － 数组 B 得到 数组 C
数组 C 即为 order_number 重复的项目
最有根据 数组 C 即可查询出所有 order_number 重复的记录&lt;/p&gt;

&lt;p&gt;但是，我的服务挂了，目测是因为数据量过大的缘故，请问大家有没有更好的想法，大家讨论下&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Tue, 03 Sep 2013 11:34:33 +0800</pubDate>
      <link>https://ruby-china.org/topics/13846</link>
      <guid>https://ruby-china.org/topics/13846</guid>
    </item>
    <item>
      <title>是不是应该来个总结帖什么的？</title>
      <description>&lt;p&gt;&lt;a href="/ShiningRay" class="user-mention" title="@ShiningRay"&gt;&lt;i&gt;@&lt;/i&gt;ShiningRay&lt;/a&gt;，RT&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Sun, 30 Jun 2013 08:59:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/12111</link>
      <guid>https://ruby-china.org/topics/12111</guid>
    </item>
    <item>
      <title>童鞋么，把你们珍藏的各种电子书共享出来吧~</title>
      <description>&lt;p&gt;刚入了 nook，求优质电子书资源~~&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Fri, 24 May 2013 12:58:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/11207</link>
      <guid>https://ruby-china.org/topics/11207</guid>
    </item>
    <item>
      <title>使用 ActionMailer 不能发送带有中文名的附件</title>
      <description>&lt;p&gt;在用 ActionMailer 发邮件的时候，添加了带有中文名的附件，结果接收时显示的附件名是“ATTxxxxx”，有没有什么办法可以发中文名的附件呢？&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Thu, 16 May 2013 15:45:30 +0800</pubDate>
      <link>https://ruby-china.org/topics/11032</link>
      <guid>https://ruby-china.org/topics/11032</guid>
    </item>
    <item>
      <title>吐槽 textmate</title>
      <description>&lt;p&gt;本人写代码有做中文注释的陋习，但是 textmate 的中文输入真心坑爹，难道是我太水了，用不起高端货？
感觉头顶一片乌鸦飞过，自己被嘲讽得体无完肤！我去年买了个表！摔键盘&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Tue, 23 Apr 2013 23:07:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/10444</link>
      <guid>https://ruby-china.org/topics/10444</guid>
    </item>
    <item>
      <title>有没有华丽的方法可以比较出两个对象每个属性的不同？</title>
      <description>&lt;p&gt;最近写个一个非常非常屎的方法，用来比较同一模型的两个实例对象的各个属性的方法。
主要功能如下：
1、假如这两个对象相同属性的值不同，则返回并显示到页面上。
2、如果这个属性是一个外键，则将两个外键分别对应的 name 值返回并显示到页面上。&lt;/p&gt;

&lt;p&gt;自己写的方法已经被我嫌弃到不愿贴出来的地步。
我觉得一定存在着更加华丽的方法，所以发帖求教。&lt;/p&gt;

&lt;p&gt;大家有没有好的想法，求指教。&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Fri, 19 Apr 2013 09:59:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/10330</link>
      <guid>https://ruby-china.org/topics/10330</guid>
    </item>
    <item>
      <title>Rubycas-server 登录修改 [自力更生，搞定，封贴]</title>
      <description>&lt;p&gt;问一个小白问题
今天在折腾 rubycas-server，实现了单点登录功能。
但是在密码一栏里需要输入数据库中保存的密文才能登录成功。
想要问问在哪个文件里修改才能实现将明文转化为密文后，再进行登录的验证。
看了很多遍代码，可能是自己能力有限，没能找到修改方法，问题比较低级，大家误见笑~
rubycas 的版本是 1.1.2&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Tue, 05 Mar 2013 17:01:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/9149</link>
      <guid>https://ruby-china.org/topics/9149</guid>
    </item>
    <item>
      <title>明天就要开始上班了</title>
      <description>&lt;p&gt;RT，盘算着怎么能进到更牛逼的团队提高自己。。。
据说本命年会多舛，我已经经历了错买了女装还跑会上海退衣服的悲剧～
希望 13 年的工作生活会有个好开头！&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Fri, 15 Feb 2013 19:57:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/8696</link>
      <guid>https://ruby-china.org/topics/8696</guid>
    </item>
    <item>
      <title>小白提问，MAC 上是不是只能开一个终端</title>
      <description>&lt;p&gt;RT，新的一年开始了，也开始学习在 MAC 上开发。
用 TextMate 写代码，然后，开启一个终端并启用服务后，如何执行一些命令呢？
例如：rake db:migrate
貌似只能开一个终端啊&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Thu, 31 Jan 2013 14:53:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/8515</link>
      <guid>https://ruby-china.org/topics/8515</guid>
    </item>
    <item>
      <title>[封贴] Mac 下环境搭建遇到了问题，求指导，Mac 真心不会用啊</title>
      <description>&lt;p&gt;按照 WIKI：如何快速正确的安装 Ruby, Rails 运行环境
执行到步骤 2 的&lt;code&gt;rvm pkg install readline&lt;/code&gt;出错，如图所示&lt;img src="//l.ruby-china.com/photo/9d0976cb8fb9fc0f220fe491504f1af9.png" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;环境顺利搭建完毕，多谢&lt;a href="/AlphaLiu" class="user-mention" title="@AlphaLiu"&gt;&lt;i&gt;@&lt;/i&gt;AlphaLiu&lt;/a&gt;指导&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Sun, 27 Jan 2013 08:01:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/8397</link>
      <guid>https://ruby-china.org/topics/8397</guid>
    </item>
    <item>
      <title>太平洋上看到的，春运时不可阻挡的</title>
      <description>&lt;p&gt;&lt;a href="http://servers.pconline.com.cn/315/3153462.html" rel="nofollow" target="_blank"&gt;http://servers.pconline.com.cn/315/3153462.html&lt;/a&gt;&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Thu, 17 Jan 2013 11:25:03 +0800</pubDate>
      <link>https://ruby-china.org/topics/8132</link>
      <guid>https://ruby-china.org/topics/8132</guid>
    </item>
    <item>
      <title>Public 目录下中文名称的文件如何访问呢？</title>
      <description>&lt;p&gt;Public 目录下中文名称的文件如何访问呢？
提示 routing error&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Fri, 11 Jan 2013 16:07:28 +0800</pubDate>
      <link>https://ruby-china.org/topics/7991</link>
      <guid>https://ruby-china.org/topics/7991</guid>
    </item>
    <item>
      <title>虽然数据挂了，但是。。。哈哈</title>
      <description>&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/a671e63ea42492f914b04fa12bd228c8.jpg" title="" alt=""&gt;
第一有木有！！&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Sat, 05 Jan 2013 17:35:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/7752</link>
      <guid>https://ruby-china.org/topics/7752</guid>
    </item>
    <item>
      <title>Ruby 调用 WebService 的问题</title>
      <description>&lt;p&gt;现在手上有两个项目，一个是我们自己团队用 ruby 开发的系统，另一个是问别人买的 java 开发的系统。要做 webService 通信，Java 那边已经做好借口，Ruby 这边负责调用，关于 Ruby 这边的相关代码如下：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;strXmlDesc = @userInfo.to_xml{:only =&amp;gt; [:name,:passward,:realname]}

require 'rubygems'
require 'soap/wsdlDrive'
url = "http://***.***.*.***:8080/********/UserManage?wsdl"

client = SOAP::WSDLDriverFactory.new(url).create_rpc_driver
result = client.registerUser(strXmlDesc )
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;不知为何，webService 总也调不通，Java 那边日志中一直报如下错误
&lt;strong&gt;Premature end of file
cannot get property ‘name’ on null object&lt;/strong&gt;
请各位有经验的提示一下~
另外，顺便请教一下如何可以获取客户端的 MAC 地址&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;问题已解决
是参数传递的问题，低级错误，代码应写成：&lt;/strong&gt;
&lt;code&gt;client.registerUser(:strUserXmlDesc =&amp;gt; strXmlDesc )&lt;/code&gt;&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Thu, 20 Dec 2012 08:26:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/7707</link>
      <guid>https://ruby-china.org/topics/7707</guid>
    </item>
    <item>
      <title>[无锡][2012年12月22日] RubyWuxi 第一次线下活动召集帖</title>
      <description>&lt;p&gt;前段时间，看着论坛里各种线下活动，各种郁闷的我，现在发活动召集贴啦~
活动地点：本周周末下午 2 点，(2012-12-22  14:00)。末日后的第一天
活动地点：无锡市南长街永乐路路口的一茶一坐
活动内容：第一次召集 Ruby 线下活动，没有经验，也不知道具体做什么比较合适。姑且聊聊各自的工作经历以及未来的发展方向。顺便制定一下下次的活动方案
报名方式：直接去就好，如果有疑问的可以发邮件到：just4work@126.com&lt;/p&gt;

&lt;p&gt;在无锡，也许 Rubyist 并不多，尽管如此，我们也要有声有色的开展我们自己的线下活动。我想，在末日后的第一天开展的线下活动，本身也意味着一个充满生机的群体将要初绽锋芒。&lt;/p&gt;

&lt;p&gt;最后，这次活动能够被发动起来，我不得不提两位前辈：&lt;a href="/lgn21st" class="user-mention" title="@lgn21st"&gt;&lt;i&gt;@&lt;/i&gt;lgn21st&lt;/a&gt;和&lt;a href="/kgen" class="user-mention" title="@kgen"&gt;&lt;i&gt;@&lt;/i&gt;kgen&lt;/a&gt;
前者提醒了我要组织建立无锡社区，后者则是这次活动最有力的保证。&lt;/p&gt;

&lt;p&gt;最后的最后，发表此贴的目的是想召集无锡以及无锡周边的 Ruby 爱好者们一起来参加活动。更加重要的是，要用来见证无锡社区的第一次活动。欢迎各位捧场~~&lt;/p&gt;</description>
      <author>lionzixuanyuan</author>
      <pubDate>Mon, 17 Dec 2012 20:24:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/7637</link>
      <guid>https://ruby-china.org/topics/7637</guid>
    </item>
  </channel>
</rss>
