<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>zerolin (张文鼎)</title>
    <link>https://ruby-china.org/zerolin</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>require 'oci8' 报错</title>
      <description>&lt;p&gt;如题&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;in `require': OCI.DLL: 193(%1 is not a valid Win32 application.  ) (LoadError)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;环境是 64 位 WIN7 操作系统，oracle 客户端不确定是不是 32 位的，拷贝了别人的 32 位客户端的 oci.dll 至 ruby/bin 目录下，也无用，有谁能提供完整的解决方案，感激不尽。&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Fri, 13 Sep 2013 11:00:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/14090</link>
      <guid>https://ruby-china.org/topics/14090</guid>
    </item>
    <item>
      <title>Windows 8 32 位环境下 railsinstaller-3.0.0，安装 Devdkit 问题求助</title>
      <description>&lt;p&gt;1.在 E:\RailsInstaller\DevKit 目录下，进入命令行输入：ruby dk.rb init
提示：Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
此时：config.yml 文件配置信息没有自动生成 ruby 安装路径，文件中全部是注释信息&lt;/p&gt;

&lt;p&gt;2.手动在 config.yml 文件中加上路径：&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;E:/RailsInstaller/Ruby2.0.0，之后进入命令行输入：ruby dk.rb install
提示：[INFO] Skipping existing gem override for 'E:/RailsInstaller/Ruby2.0.0'
[WARN] Skipping existing DevKit helper library for 'E:/RailsInstaller/Ruby2.0.0'&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;有人知道是什么情况吗&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Fri, 09 Aug 2013 10:01:21 +0800</pubDate>
      <link>https://ruby-china.org/topics/13187</link>
      <guid>https://ruby-china.org/topics/13187</guid>
    </item>
    <item>
      <title>关于 selenium 中调用 JS 的一段代码</title>
      <description>&lt;p&gt;Selenium::WebDriver::Element.module_eval do
    def highlight
        e_id = self.attribute('id')
        puts "#{e_id} = e_id"
        js = &amp;lt;&amp;lt;JS
        document.getElementById("#{e_id}").style.border = "3px solid red"
JS
        &lt;a href="/bridge.executeScript" class="user-mention" title="@bridge.executeScript"&gt;&lt;i&gt;@&lt;/i&gt;bridge.executeScript&lt;/a&gt;(js) if e_id
    end
end&lt;/p&gt;

&lt;p&gt;代码如上，小弟没看明白的是 js = &amp;lt;&amp;lt;JS 和之后的 JS，这是什么语法，什么含义&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Wed, 31 Jul 2013 11:28:45 +0800</pubDate>
      <link>https://ruby-china.org/topics/12931</link>
      <guid>https://ruby-china.org/topics/12931</guid>
    </item>
    <item>
      <title>请教上传文件的问题</title>
      <description>&lt;p&gt;就想实现一个简单的文件上传功能，没啥其他要求，不需要存到数据库，有没有简单的例子可以提供一下，网上找的都是很老的文章。&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Thu, 11 Jul 2013 13:35:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/12424</link>
      <guid>https://ruby-china.org/topics/12424</guid>
    </item>
    <item>
      <title>读取 EXCEL 问题</title>
      <description>&lt;p&gt;小弟在一个 ACTION 里面加了一段读取 EXCEL 的代码如下
    require 'win32ole'&lt;/p&gt;

&lt;p&gt;WIN32OLE.codepage = WIN32OLE::CP_UTF8
    excel = WIN32OLE::new('EXCEL.APPLICATION')
    workbook = excel.Workbooks.Open('E:/lib/deploy.xlsx')
    worksheet = workbook.Worksheets(1)
    worksheet.Select
    ……
    workbook.close
    excel.Quit
省略号部分是是读取 EXCEL 中的内容。
问题是，发送请求之后只能显示一次，之后再刷新就报如下错误：
 WIN32OLERuntimeError in InstancesController#read_deploy&lt;/p&gt;

&lt;p&gt;failed to create WIN32OLE object from `EXCEL.APPLICATION'
    HRESULT error code:0x800401f0
      CoInitialize has not been called.&lt;/p&gt;

&lt;p&gt;请问是怎么回事，如何解决&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Wed, 19 Jun 2013 21:39:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/11836</link>
      <guid>https://ruby-china.org/topics/11836</guid>
    </item>
    <item>
      <title>ruby grape 问题</title>
      <description>&lt;p&gt;小弟看到 robbin 蜀黍说的轻量级的 web 框架 grape，想用这个来实现远程调用 API 的方式执行某些程序或者是业务逻辑，但无奈小弟略显新手，看了 grape 的官方文档，表示没明白怎么用，小弟会用 rails 搭建 web 网站，grape 与 rails 有什么共通之处，或者如何才能迅速上手使用 grape 做一个简单的 API，希望能有人给一点超简单的例子或者指点，不甚感激。&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Tue, 18 Jun 2013 10:25:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/11802</link>
      <guid>https://ruby-china.org/topics/11802</guid>
    </item>
    <item>
      <title>远程执行 ruby 文件</title>
      <description>&lt;p&gt;老板要求能够在本地敲一个命令就能远程调用执行一个 ruby 文件；
老板说可以用 ruby 让本地发送 http 请求过去来执行文件；
不知道有没有人能提供比较好的实现方法，尽量能说的浅显直白一点，小弟谢过&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Mon, 17 Jun 2013 17:18:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/11783</link>
      <guid>https://ruby-china.org/topics/11783</guid>
    </item>
    <item>
      <title>刷新显示问题</title>
      <description>&lt;p&gt;ruby 能够实现刷新显示吗，就是不换行显示，每次都在原来的那一行上刷新显示。&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Mon, 17 Jun 2013 15:36:31 +0800</pubDate>
      <link>https://ruby-china.org/topics/11779</link>
      <guid>https://ruby-china.org/topics/11779</guid>
    </item>
    <item>
      <title>ssh 相关</title>
      <description>&lt;p&gt;小弟用 ruby 的 net-ssh 连接远程服务器，在使用
Net::SSH.start('10.48.192.16', 'app03', :password =&amp;gt; 'handpay', :port =&amp;gt; 10051) do |ssh|
  ret = ssh.exec! 'll'
  puts ret
end
的时候告诉我
bash: ll: command not found
排除 SSH 连接失败，‘ll’无法执行等错误，用其他工具远程过去可以执行的。
请教是什么问题。&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Mon, 17 Jun 2013 13:04:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/11775</link>
      <guid>https://ruby-china.org/topics/11775</guid>
    </item>
    <item>
      <title>求助 Ruby 如何连接 MySQL</title>
      <description>&lt;p&gt;ruby 1.93
mysql 5.6
windows 环境下
请教正确的步骤与方法
现 require "mysql"提示说找不到这样的文件&lt;/p&gt;</description>
      <author>zerolin</author>
      <pubDate>Wed, 27 Feb 2013 10:40:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/8965</link>
      <guid>https://ruby-china.org/topics/8965</guid>
    </item>
  </channel>
</rss>
