# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=828

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 829

---

## [How Check File Busy?](https://www.ruby-forum.com/t/how-check-file-busy/166634)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 9\
**Last updated:** [May 13, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/how-check-file-busy/166634 "2009-05-13T18:09:22Z")

</div>

I want to use Ruby to periodically move files out of an FTP upload folder to another location. Before I move any one file, I need to know that it is not in the middle of being uploaded. Other than doing something real…

---

## [Ruby in a Jar](https://www.ruby-forum.com/t/ruby-in-a-jar/167885)

<div class="topic-metadata">

**Author:** [@slagyr](https://www.ruby-forum.com/u/slagyr)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/ruby-in-a-jar/167885 "2009-05-13T16:35:08Z")

</div>

Recently we’ve been trying out Nick S.'s Gem-in-a-Jar technique. We’re building some “shrink-wrap” software with installers and all. Keeping all the ruby source in a jar files seems like a really simple and organized …

---

## [JRuby time offset wrong after VMware suspension](https://www.ruby-forum.com/t/jruby-time-offset-wrong-after-vmware-suspension/157711)

<div class="topic-metadata">

**Author:** [@Peter\_K\_Chan](https://www.ruby-forum.com/u/Peter_K_Chan)\
**Replies:** 10\
**Last updated:** [May 13, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/jruby-time-offset-wrong-after-vmware-suspension/157711 "2009-05-13T15:49:17Z")

</div>

I noticed something interesting when I suspended a VMWare virtual machine running an active JRuby program. It seems like JRuby is not aware of time change during suspension: Before suspension: java.util.Date.new.to…

---

## [Ruby 1.9.1-p129: gem installation error?](https://www.ruby-forum.com/t/ruby-1-9-1-p129-gem-installation-error/167868)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p129-gem-installation-error/167868 "2009-05-13T13:21:13Z")

</div>

Hi, after building 1.9.1-p129 on cygwin I got 13:12:42 ~$ gem19 install RedCloth WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legacy indexes degrading performance. ERROR: While executing gem…

---

## [Converting UTF-8 to entities like &#x525B;](https://www.ruby-forum.com/t/converting-utf-8-to-entities-like-x525b/167563)

<div class="topic-metadata">

**Author:** [@jianlin](https://www.ruby-forum.com/u/jianlin)\
**Replies:** 14\
**Last updated:** [May 13, 2009, 11:51am UTC](https://www.ruby-forum.com/t/converting-utf-8-to-entities-like-x525b/167563 "2009-05-13T11:51:04Z")

</div>

I was trying to convert UTF-8 content into a series of entities like 剛 so that whatever the page encoding is, the characters would show… so I used something like this: \<% begin t = ‘’ s = Iconv.conv(“UTF-32”, “UTF…

---

## [Minor problem with 1.9 compile](https://www.ruby-forum.com/t/minor-problem-with-1-9-compile/167841)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [May 13, 2009, 8:44am UTC](https://www.ruby-forum.com/t/minor-problem-with-1-9-compile/167841 "2009-05-13T08:44:44Z")

</div>

I’m following instructions “Install Alongside Ruby 1.8.x- -Upgrading to Ruby 1.9.1” at I’m sitting in the dir where I’ve unpacked the source, and I’m now trying to run the configuration script. But…it appears to be a…

---

## [Want some information](https://www.ruby-forum.com/t/want-some-information/167782)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 4\
**Last updated:** [May 13, 2009, 8:44am UTC](https://www.ruby-forum.com/t/want-some-information/167782 "2009-05-13T08:44:05Z")

</div>

Hi, I want to know about authentication in ruby. Is it possible to scrap html of those sites which require basic authentication. eg. I want to scrap the profile html page of a user. But in order to get to that page I…

---

## [Question on redefining the File.join mechanism](https://www.ruby-forum.com/t/question-on-redefining-the-file-join-mechanism/167791)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 7\
**Last updated:** [May 13, 2009, 8:35am UTC](https://www.ruby-forum.com/t/question-on-redefining-the-file-join-mechanism/167791 "2009-05-13T08:35:55Z")

</div>

I’m running Ruby over WindowsXP-Pro/SP2. So I wanted File.join to use backslash. I tried: class WFile \< File def join(arg1, arg2) super.join(arg1, arg2).gsub(///, ‘\\’) end end but WFile.join(s1,s2) didn’t work. …

---

## [Inheritance in ruby](https://www.ruby-forum.com/t/inheritance-in-ruby/167772)

<div class="topic-metadata">

**Author:** [@jarodzz](https://www.ruby-forum.com/u/jarodzz)\
**Replies:** 4\
**Last updated:** [May 13, 2009, 7:00am UTC](https://www.ruby-forum.com/t/inheritance-in-ruby/167772 "2009-05-13T07:00:54Z")

</div>

Hi, all. I’m really new to Ruby. Got this error: class Page @url="" def initialize puts "going to "+@url end end class MainPage \< Page @url = “Main” end class LoginPage \< Page @url = “Login” end every tim…

---

## [Rubytest.vim 0.9.5 released](https://www.ruby-forum.com/t/rubytest-vim-0-9-5-released/167840)

<div class="topic-metadata">

**Author:** [@flowerborn](https://www.ruby-forum.com/u/flowerborn)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 5:58am UTC](https://www.ruby-forum.com/t/rubytest-vim-0-9-5-released/167840 "2009-05-13T05:58:18Z")

</div>

Hi guys, I’m pleased to announce that rubytest.vim 0.9.5 is just released. Rubytest.vim is a vim (http://www.vim.org) plugin, which helps you to run many kinds of ruby test (including vanilla test, rspec, shoulda etc…

---

## [Only able to capture last exception](https://www.ruby-forum.com/t/only-able-to-capture-last-exception/167839)

<div class="topic-metadata">

**Author:** [@Jeremy\_Schneider](https://www.ruby-forum.com/u/Jeremy_Schneider)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 5:18am UTC](https://www.ruby-forum.com/t/only-able-to-capture-last-exception/167839 "2009-05-13T05:18:31Z")

</div>

I am writing a script to validate some documents against an XSD. When a document does not validate, I want to provide all the available information about the reason(s) why it does not validate. My problem is that it …

---

## [Imap\_processor 1.0 Released](https://www.ruby-forum.com/t/imap-processor-1-0-released/167837)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 5:16am UTC](https://www.ruby-forum.com/t/imap-processor-1-0-released/167837 "2009-05-13T05:16:46Z")

</div>

imap\_processor version 1.0 has been released! http://seattlerb.rubyforge.org/imap\_processor IMAPProcessor is a client for processing messages on an IMAP server. It provides some basic mechanisms for connecting to an…

---

## [PKCS7 error](https://www.ruby-forum.com/t/pkcs7-error/167793)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 3\
**Last updated:** [May 13, 2009, 3:55am UTC](https://www.ruby-forum.com/t/pkcs7-error/167793 "2009-05-13T03:55:29Z")

</div>

Jruby 1.2.0 Solaris 10 x86 Tomcat 5.5 jruby-openssl 0.3 Getting the following error in catalina.out, anyone seen this before? is thsi related to jruby-openssl ? Caused by: java.lang.ClassCastException: org.bouncyc…

---

## [Embedding a library into a method](https://www.ruby-forum.com/t/embedding-a-library-into-a-method/167826)

<div class="topic-metadata">

**Author:** [@Mathspeedy](https://www.ruby-forum.com/u/Mathspeedy)\
**Replies:** 3\
**Last updated:** [May 13, 2009, 3:31am UTC](https://www.ruby-forum.com/t/embedding-a-library-into-a-method/167826 "2009-05-13T03:31:16Z")

</div>

Hi all, I wanted to embed the Net::Telnet into a method, just look my code … #CODE start here #!/usr/bin/ruby require “net/telnet” class VictimInfo attr\_accessor :ip, :port #ask for Victim infos def initialize( ) …

---

## [Ruby interaction sessions](https://www.ruby-forum.com/t/ruby-interaction-sessions/167834)

<div class="topic-metadata">

**Author:** [@andriyhnativ](https://www.ruby-forum.com/u/andriyhnativ)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 3:27am UTC](https://www.ruby-forum.com/t/ruby-interaction-sessions/167834 "2009-05-13T03:27:18Z")

</div>

Who knows, where I can get access to Ruby interaction sessions? Maybe there are some log files with histories of interaction sessions? For now, does not matter what type of code.

---

## [Gui](https://www.ruby-forum.com/t/gui/167807)

<div class="topic-metadata">

**Author:** [@willcosgrove](https://www.ruby-forum.com/u/willcosgrove)\
**Replies:** 6\
**Last updated:** [May 13, 2009, 1:59am UTC](https://www.ruby-forum.com/t/gui/167807 "2009-05-13T01:59:54Z")

</div>

What is the best way to make a simple GUI with ruby for Windows? I’ve been using shoes ( http://shoooes.net ) but I was wondering if there was another way? Or is this how most people make a GUI with ruby?

---

## [Trouble getting dynamic values fed to my javascript](https://www.ruby-forum.com/t/trouble-getting-dynamic-values-fed-to-my-javascript/167819)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [May 13, 2009, 12:11am UTC](https://www.ruby-forum.com/t/trouble-getting-dynamic-values-fed-to-my-javascript/167819 "2009-05-13T00:11:37Z")

</div>

Say, I usually have .rhtml/eruby access to all my values, but I’m seeing this weird case, possibly because I’m using https instead of http (I cannot think of anything else) that doesn’t allow the values from \<%= $x %\>…

---

## [Calling methons in subclass on extend](https://www.ruby-forum.com/t/calling-methons-in-subclass-on-extend/167821)

<div class="topic-metadata">

**Author:** [@sshaikh](https://www.ruby-forum.com/u/sshaikh)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 12:07am UTC](https://www.ruby-forum.com/t/calling-methons-in-subclass-on-extend/167821 "2009-05-13T00:07:06Z")

</div>

In Rails, the Tableless plugin allows you to define tableless models: class A \< ActiveRecord::Base include Mod tableless :columns =\> \[\[:id, :int\]\] column :name, :string end I’m not clear what you call these methods…

---

## [Access denied (java.lang.RuntimePermission getClassLoader)](https://www.ruby-forum.com/t/access-denied-java-lang-runtimepermission-getclassloader/167801)

<div class="topic-metadata">

**Author:** [@Michal\_Hantl](https://www.ruby-forum.com/u/Michal_Hantl)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/access-denied-java-lang-runtimepermission-getclassloader/167801 "2009-05-12T23:08:59Z")

</div>

Hi guys, i just started playing with JRuby a while ago and so far im loving it. I began experimenting with JRuby inside an applet and it worked right from the start and i was happily building. heres the progress http…

---

## [Interop question](https://www.ruby-forum.com/t/interop-question/167753)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 5\
**Last updated:** [May 12, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/interop-question/167753 "2009-05-12T22:57:48Z")

</div>

Let’s say I have these interfaces public interface IWeapon{ void Attack(IWarrior warrior); int Damage(); } public interface IWarrior { int Id { get; } string Name { get; set; } bool IsKilledBy(IWeapon w…

---

## [Ruby 1.9.1-p128 is out](https://www.ruby-forum.com/t/ruby-1-9-1-p128-is-out/167751)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 4\
**Last updated:** [May 12, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p128-is-out/167751 "2009-05-12T22:42:28Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Good afternoon (JST). Ruby 1.9.1-p128 just has been released. This is a patch level release for Ruby 1.9.1. This fixes many bugs and two security vulnerabilities. This re…

---

## [How to export WebPage Label's to Excel](https://www.ruby-forum.com/t/how-to-export-webpage-labels-to-excel/167799)

<div class="topic-metadata">

**Author:** [@rasein](https://www.ruby-forum.com/u/rasein)\
**Replies:** 1\
**Last updated:** [May 12, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/how-to-export-webpage-labels-to-excel/167799 "2009-05-12T22:25:28Z")

</div>

Hi All, i need to get the Label of the TextBox, Radio button, List…and export it to Excel; Eg: my page has 4 textbox, 2 list,2 radio, r checkbox…my job is write ruby and grab the label from the website and export it …

---

## [Mobile apps?](https://www.ruby-forum.com/t/mobile-apps/167193)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 9\
**Last updated:** [May 12, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/mobile-apps/167193 "2009-05-12T21:12:37Z")

</div>

Is it possible to write apps for iphone and android with jruby? How about symbian or blackberry?

---

## [Bug : For builtin types, Ruby methods should get precedence over CLR methods](https://www.ruby-forum.com/t/bug-for-builtin-types-ruby-methods-should-get-precedence-over-clr-methods/167804)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/bug-for-builtin-types-ruby-methods-should-get-precedence-over-clr-methods/167804 "2009-05-12T19:32:45Z")

</div>

I added the comment below to http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1082. Pure Ruby programs which use names like to\_string, get\_type, equals, etc will run into the bug, and the chances of this hap…

---

## [On the Niceties of Asking For what You Want (was Re: Want some information....)](https://www.ruby-forum.com/t/on-the-niceties-of-asking-for-what-you-want-was-re-want-some-information/167790)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 5\
**Last updated:** [May 12, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/on-the-niceties-of-asking-for-what-you-want-was-re-want-some-information/167790 "2009-05-12T18:54:00Z")

</div>

On Tue, May 12, 2009 at 8:59 AM, Robert K. removed\_email\_address@domain.invalid wrote: 2009/5/12 Arun K. removed\_email\_address@domain.invalid: I want to know about authentication in ruby. Is it possible to scrap ht…

---

## [Export to Excel from SciTE Result Log](https://www.ruby-forum.com/t/export-to-excel-from-scite-result-log/167507)

<div class="topic-metadata">

**Author:** [@rasein](https://www.ruby-forum.com/u/rasein)\
**Replies:** 7\
**Last updated:** [May 12, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/export-to-excel-from-scite-result-log/167507 "2009-05-12T17:19:49Z")

</div>

Hi All, i am new to Ruby, i wondering is ther any way to export to Excel from SciTE log My code … …code continues elements = get\_text\_fields(ie) elements.each{|e| p 'Name - ’ + e.name p 'Value - ’ + e.value … …

---

## [\[ANN\] activerecord-jdbc-adapter 0.9 released](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-9-released/154267)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 1\
**Last updated:** [May 12, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-9-released/154267 "2009-05-12T16:42:07Z")

</div>

Hi everyone, I’m pleased to announce the release of activerecord-jdbc-adapter 0.9. This release should be fully compatible with Rails 2.2. In particular, I’ve added code in the adapter to detect when you use a JNDI c…

---

## [(mandriva,eclipse,Qt) elementary problem : signals and slots](https://www.ruby-forum.com/t/mandriva-eclipse-qt-elementary-problem-signals-and-slots/167725)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 6\
**Last updated:** [May 12, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/mandriva-eclipse-qt-elementary-problem-signals-and-slots/167725 "2009-05-12T16:22:03Z")

</div>

hi, I would like to make a little program using Qt : it’s a displayer / converter between farenheit and celsius degrees. I also want to use QtDesigner. I made a little widget with QtDesigner, and this widget contains…

---

## [Jruby on Rails on Tomcat](https://www.ruby-forum.com/t/jruby-on-rails-on-tomcat/166764)

<div class="topic-metadata">

**Author:** [@zelo](https://www.ruby-forum.com/u/zelo)\
**Replies:** 5\
**Last updated:** [May 12, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-on-tomcat/166764 "2009-05-12T14:51:39Z")

</div>

Hi everybody I need your help to deploy a JRuby application on Tomcat I created the war file and copy to the Tomcat webapps folder Then I see my first page but without colour, background etc… and all my link aren’t g…

---

## [Tk Progress Bar color](https://www.ruby-forum.com/t/tk-progress-bar-color/167597)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/tk-progress-bar-color/167597 "2009-05-12T14:15:51Z")

</div>

Anyone know how to change the color of the Tk progress bar? Everything I try just ends up with: /usr/lib/ruby/1.8/tk.rb:2762:in \`\_\_invoke’: unknown option “-colors” But all the documentation stats that it does have a…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=827)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=829)
