# Ruby

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

[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:** 900

---

## [Must MS-Excel be installed on the machine to ONLY read an MS](https://www.ruby-forum.com/t/must-ms-excel-be-installed-on-the-machine-to-only-read-an-ms/160274)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 3\
**Last updated:** [February 13, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/must-ms-excel-be-installed-on-the-machine-to-only-read-an-ms/160274 "2009-02-13T17:13:22Z")

</div>

Must MS-Excel be installed on the machine to ONLY read an MS-Excel worksheet file (e.g. TEST.XLS) with Ruby (using Ruby’s win32ole library)?

---

## [How to wait with timeout on conditional variable in ruby 1.9](https://www.ruby-forum.com/t/how-to-wait-with-timeout-on-conditional-variable-in-ruby-1-9/160258)

<div class="topic-metadata">

**Author:** [@sharat](https://www.ruby-forum.com/u/sharat)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/how-to-wait-with-timeout-on-conditional-variable-in-ruby-1-9/160258 "2009-02-13T14:25:54Z")

</div>

Earlier in ruby 1.8 we could use code cond.wait(3) But with moving to 1.9, it raises exception " Timeout is not yet implemented" in monitor.rb Any plan to implement it in near future or is there any work around. Reg…

---

## [Boolean and to\_clr\_type](https://www.ruby-forum.com/t/boolean-and-to-clr-type/160195)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 2\
**Last updated:** [February 13, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/boolean-and-to-clr-type/160195 "2009-02-13T14:19:48Z")

</div>

I’m working with a windows form application using IronRuby. I’m hitting a snag when using DataSets. I have a DataColumn that I want to be a boolean. But I can’t figure out how to set the DataType properly. Numerics ar…

---

## [Error handling in Ruby scripts](https://www.ruby-forum.com/t/error-handling-in-ruby-scripts/160197)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [February 13, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/error-handling-in-ruby-scripts/160197 "2009-02-13T13:32:08Z")

</div>

Hi, Can someone please help me with exception handling? I’ve written some classes and scripts that I’ve used for a year or two. But now, I’m having to use them with many thousands of files at once, and, even though t…

---

## [Rb\_protect / rb\_eval\_string and the GC in Ruby 1.8.7](https://www.ruby-forum.com/t/rb-protect-rb-eval-string-and-the-gc-in-ruby-1-8-7/160245)

<div class="topic-metadata">

**Author:** [@tobias](https://www.ruby-forum.com/u/tobias)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 11:26am UTC](https://www.ruby-forum.com/t/rb-protect-rb-eval-string-and-the-gc-in-ruby-1-8-7/160245 "2009-02-13T11:26:53Z")

</div>

Hi! At the moment I’m trying to extend an application with embedded Ruby and therefore try to understand the garbage collection mechanisms. For a simple class that just prints when it’s ctor and dtor are called, I’ve…

---

## [Autofocus system](https://www.ruby-forum.com/t/autofocus-system/160205)

<div class="topic-metadata">

**Author:** [@CBlair1986](https://www.ruby-forum.com/u/CBlair1986)\
**Replies:** 1\
**Last updated:** [February 13, 2009, 9:48am UTC](https://www.ruby-forum.com/t/autofocus-system/160205 "2009-02-13T09:48:03Z")

</div>

I came across an interesting, simple, and intuitive system to get things done, described here: http://www.markforster.net/autofocus-system/ I wrote a dirt-simple commandline script to use this system on my linux lapt…

---

## [Query on XmlConfigFile](https://www.ruby-forum.com/t/query-on-xmlconfigfile/160228)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 7:35am UTC](https://www.ruby-forum.com/t/query-on-xmlconfigfile/160228 "2009-02-13T07:35:02Z")

</div>

I am using XmlConfigFile from as under http://www.cs.ualberta.ca/~schofiel/xml-configfile/xml-configfile.html I was dissappointed not to find any Q&A in the ruby forum about this Simple and Easy Ruby+XML utility. For…

---

## [Bug fixing between gem releases](https://www.ruby-forum.com/t/bug-fixing-between-gem-releases/160227)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 6:52am UTC](https://www.ruby-forum.com/t/bug-fixing-between-gem-releases/160227 "2009-02-13T06:52:53Z")

</div>

Not sure how to word this … I’ve release my first gem. So now when I am doing bug fixes, since my code points to the gem (earlier it had a path statement in the first line), should i be recreating and installing the…

---

## [How to solve xmlsimple.rb warning: already initialized const](https://www.ruby-forum.com/t/how-to-solve-xmlsimple-rb-warning-already-initialized-const/160216)

<div class="topic-metadata">

**Author:** [@johnroyworld](https://www.ruby-forum.com/u/johnroyworld)\
**Replies:** 2\
**Last updated:** [February 13, 2009, 5:54am UTC](https://www.ruby-forum.com/t/how-to-solve-xmlsimple-rb-warning-already-initialized-const/160216 "2009-02-13T05:54:35Z")

</div>

hi all, I am new to ruby on rails with ubuntu server and i got this warning below in every time i run my script. Any advice would be appreciated. Thanks! /usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initializ…

---

## [Proposal: Module#method\_adding](https://www.ruby-forum.com/t/proposal-module-method-adding/159965)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 7\
**Last updated:** [February 13, 2009, 4:22am UTC](https://www.ruby-forum.com/t/proposal-module-method-adding/159965 "2009-02-13T04:22:03Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!:#!$e(Basakusa.rb e$B$G\<r$r0{$s$G$?$s$G$9$,!$e(BModule#method\_adding e$B$H$+!$$=$&e(B e$B$$$&%a%=%C%I$H$$$&$N$O$I$&$G$7$g$&$+!%e(B e$B%a%=%C%I$,Dj5A$5$l$kD\>A0$K8F$P$le(B e$B$k%a%=%C%I$G$9!%…

---

## [\[Bug:trunk\] I can modify literals](https://www.ruby-forum.com/t/bug-trunk-i-can-modify-literals/159986)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 12\
**Last updated:** [February 13, 2009, 12:05am UTC](https://www.ruby-forum.com/t/bug-trunk-i-can-modify-literals/159986 "2009-02-13T00:05:50Z")

</div>

e$B1sF#$G$9!#e(B ObjectSpace e$B$r;H$&$H\<o!9$N%j%F%i%k$r=q$-49$($k$3$H$,$G$-$F$7$^$&$h$&$G$9$,!"e(B e$B;EMM$G$7$g$&$+!#e(B def foo “foobarbaz” end ObjectSpace.each\_object(String) do |s| s.replace(“evil”) if /foob…

---

## [\[ANN\] Inochi 0.3.0](https://www.ruby-forum.com/t/ann-inochi-0-3-0/160208)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [February 12, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/ann-inochi-0-3-0/160208 "2009-02-12T23:51:59Z")

</div>

Inochi 0.3.0 Gives life to RubyGems-based software http://snk.tuxfamily.org/lib/inochi Inochi is an infrastructure for \[1\]RubyGems-based software projects that encourages…

---

## [Better way to do this?](https://www.ruby-forum.com/t/better-way-to-do-this/160204)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 3\
**Last updated:** [February 12, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/better-way-to-do-this/160204 "2009-02-12T23:50:01Z")

</div>

Hi, I seem to be repeating myself in the following little bit: if (!@options\[:namespace\].nil?) namespace\_options = @options\[:namespace\] root.add\_namespace(namespace\_options\[:namespace\], namespace\_options\[:value\]) e…

---

## [\[Bug #1150\] calling instance\_eval in extended library cause exception](https://www.ruby-forum.com/t/bug-1150-calling-instance-eval-in-extended-library-cause-exception/160182)

<div class="topic-metadata">

**Author:** [@Akio\_T](https://www.ruby-forum.com/u/Akio_T)\
**Replies:** 1\
**Last updated:** [February 12, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/bug-1150-calling-instance-eval-in-extended-library-cause-exception/160182 "2009-02-12T22:34:15Z")

</div>

Bug #1150: calling instance\_eval in extended library cause exception http://redmine.ruby-lang.org/issues/show/1150 e$B5/I\<\<Te(B: Akio T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.1 ruby -v: ru…

---

## [Samizdat 0.6.2: Security, Plugins, Flowplayer](https://www.ruby-forum.com/t/samizdat-0-6-2-security-plugins-flowplayer/160172)

<div class="topic-metadata">

**Author:** [@kmeaw](https://www.ruby-forum.com/u/kmeaw)\
**Replies:** 3\
**Last updated:** [February 12, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/samizdat-0-6-2-security-plugins-flowplayer/160172 "2009-02-12T21:25:25Z")

</div>

Dedication Samizdat 0.6.2 release is dedicated to the memory of Stanislav Markelov and Anastasia Baburova, activists murdered in Moscow on January 19, 2009. What is Samizdat? Samizdat is a generic RDF-based engine f…

---

## [Redefine modules?](https://www.ruby-forum.com/t/redefine-modules/160059)

<div class="topic-metadata">

**Author:** [@SSstan-S](https://www.ruby-forum.com/u/SSstan-S)\
**Replies:** 4\
**Last updated:** [February 12, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/redefine-modules/160059 "2009-02-12T20:02:59Z")

</div>

Hi, I am quite new to Ruby and make some experiences with modules and classes. I have defined a module and an inner class with the same name (Cucc) and a static method (x) for the class. Then I made a redefinition (o…

---

## [\* before string](https://www.ruby-forum.com/t/before-string/160183)

<div class="topic-metadata">

**Author:** [@jonatas](https://www.ruby-forum.com/u/jonatas)\
**Replies:** 6\
**Last updated:** [February 12, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/before-string/160183 "2009-02-12T19:49:49Z")

</div>

Hi, I’m looking for cucumber/generators and didn’t understand why use ‘\*’ before string on initialize method. I put it on irb and the result is the same. class NamedArg attr\_reader :name def initialize(s) @name, @…

---

## [Arrays and Hashes processing :pls help](https://www.ruby-forum.com/t/arrays-and-hashes-processing-pls-help/160184)

<div class="topic-metadata">

**Author:** [@jags](https://www.ruby-forum.com/u/jags)\
**Replies:** 5\
**Last updated:** [February 12, 2009, 7:25pm UTC](https://www.ruby-forum.com/t/arrays-and-hashes-processing-pls-help/160184 "2009-02-12T19:25:46Z")

</div>

hi friends i have a long array with structure like this \[\[“377”, “838”\], \[“377”, “990”\], \[“377”, “991”\], \[“377”, “992”\], \[“378”, “840”\], \[“378”, “841”\], \[“378”, “842”\], \[“378”, “843”\], \[“378”, “844”\]\] how can …

---

## [Manually built library to be required?](https://www.ruby-forum.com/t/manually-built-library-to-be-required/160189)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [February 12, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/manually-built-library-to-be-required/160189 "2009-02-12T19:23:24Z")

</div>

I manually built the Chipmunk ruby library, and now I have this directory list: Chipmunk-4.1.0/ruby And in this ‘ruby’ dir is a bunch of .c, .o, .h, and a .bundle. I can 'require ‘chipmunk’ when I am in the ruby dir, …

---

## [Doubt in Ruby](https://www.ruby-forum.com/t/doubt-in-ruby/160190)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 0\
**Last updated:** [February 12, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/doubt-in-ruby/160190 "2009-02-12T19:20:55Z")

</div>

Hi, Is there any plugin is there for keep tracking of all the information like when the file is created and when it is updated and by whom If anybody knows solution plz reply me

---

## [How to auth apache before soap request](https://www.ruby-forum.com/t/how-to-auth-apache-before-soap-request/160187)

<div class="topic-metadata">

**Author:** [@amichelin](https://www.ruby-forum.com/u/amichelin)\
**Replies:** 0\
**Last updated:** [February 12, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/how-to-auth-apache-before-soap-request/160187 "2009-02-12T18:12:47Z")

</div>

hi : I am new to ruby. I am doing some work wiht soap. I create a webservice server with php and a client with ruby. The problem is that wdsl file is place in a subfolder that the parent is protected by apache authe…

---

## [\[Bug #1146\] TestSocket#test\_udp\_server hangs when configure --with-lookup-order-hack=INET](https://www.ruby-forum.com/t/bug-1146-testsocket-test-udp-server-hangs-when-configure-with-lookup-order-hack-inet/160136)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [February 12, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/bug-1146-testsocket-test-udp-server-hangs-when-configure-with-lookup-order-hack-inet/160136 "2009-02-12T15:28:11Z")

</div>

Bug #1146: TestSocket#test\_udp\_server hangs when configure –with-lookup-order-hack=INET http://redmine.ruby-lang.org/issues/show/1146 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal rub…

---

## [WebServices in Rails](https://www.ruby-forum.com/t/webservices-in-rails/160170)

<div class="topic-metadata">

**Author:** [@BanaganapalleS\_Zafe](https://www.ruby-forum.com/u/BanaganapalleS_Zafe)\
**Replies:** 1\
**Last updated:** [February 12, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/webservices-in-rails/160170 "2009-02-12T15:16:22Z")

</div>

Hi, I am looking at options for implementing webservices in ROR. Can somebody suggest If Rails is Production ready for webservices. Is it scalable for a large set of requests in a day ? I have read somewhere WS02 pro…

---

## [String comparisions](https://www.ruby-forum.com/t/string-comparisions/160159)

<div class="topic-metadata">

**Author:** [@talib](https://www.ruby-forum.com/u/talib)\
**Replies:** 4\
**Last updated:** [February 12, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/string-comparisions/160159 "2009-02-12T14:16:15Z")

</div>

Experts, I have a requirement of comparing string and getting the difference out For Example : strOne = “Hello, this is a test” strTwo = “Hello, this is a test forum” This should result that word “forum” is extra. A…

---

## [Trunk $B$,(B compile error $B$7$^$9(B](https://www.ruby-forum.com/t/trunk-b-b-compile-error-b-7-9-b/160168)

<div class="topic-metadata">

**Author:** [@nagachika](https://www.ruby-forum.com/u/nagachika)\
**Replies:** 0\
**Last updated:** [February 12, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/trunk-b-b-compile-error-b-7-9-b/160168 "2009-02-12T14:03:49Z")

</div>

nagachika e$B$H?=$7$^$9!#e(B e$B8=:\_e(B(e$B%j%S%8%g%se(B: 22255)trunk e$B$N%=!\<%9%D%j!\<$re(B Mac OS X e$B$G%3%s%Q%$%k$7$h$&$He(B e$B$9$k$H%3%s%Q%$%k%(%i!\<$K$J$j$^$9!#e(B e$B;HMQ$7$?e(B gcc e$B$N%P!\<%8%g%s$Oe(B 4.0.1 …

---

## [Method to get string combinations](https://www.ruby-forum.com/t/method-to-get-string-combinations/160054)

<div class="topic-metadata">

**Author:** [@sol](https://www.ruby-forum.com/u/sol)\
**Replies:** 8\
**Last updated:** [February 12, 2009, 10:55am UTC](https://www.ruby-forum.com/t/method-to-get-string-combinations/160054 "2009-02-12T10:55:51Z")

</div>

Hi, I have a text like this: “This {is|was} a {good|nice} day” and want to generate possible combinations like: This is a good day This was a good day This is a nice day This was a nice day I tried using zsh func…

---

## [Jira Listeners](https://www.ruby-forum.com/t/jira-listeners/160123)

<div class="topic-metadata">

**Author:** [@azraelnewtype](https://www.ruby-forum.com/u/azraelnewtype)\
**Replies:** 1\
**Last updated:** [February 12, 2009, 10:50am UTC](https://www.ruby-forum.com/t/jira-listeners/160123 "2009-02-12T10:50:47Z")

</div>

Has anybody played around with writing any Jira Listeners in JRuby? We are using Jira at work, and I wanted to create a custom Listener in JRuby - since I know that the Jruby devs use Jira, I thought maybe someone had…

---

## [Program system-tray without use ruby files](https://www.ruby-forum.com/t/program-system-tray-without-use-ruby-files/160152)

<div class="topic-metadata">

**Author:** [@rei](https://www.ruby-forum.com/u/rei)\
**Replies:** 0\
**Last updated:** [February 12, 2009, 10:26am UTC](https://www.ruby-forum.com/t/program-system-tray-without-use-ruby-files/160152 "2009-02-12T10:26:02Z")

</div>

Hello ! I make a game, and I would put my game program in the system tray. But I can’t use all the ruby files. If I put vrtray and vrcontrol in my game directory, I must put vruby and others files with them. Is a li…

---

## [Slide Show (S9) Gem V0.7 - Now JRuby Compatible - JRuby: Ready for Action Sample Online](https://www.ruby-forum.com/t/slide-show-s9-gem-v0-7-now-jruby-compatible-jruby-ready-for-action-sample-online/160119)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 2\
**Last updated:** [February 12, 2009, 10:19am UTC](https://www.ruby-forum.com/t/slide-show-s9-gem-v0-7-now-jruby-compatible-jruby-ready-for-action-sample-online/160119 "2009-02-12T10:19:44Z")

</div>

Hello, I updated the slideshow and removed some (optional) dependencies used for syntax highlighting\[1\] and now the slideshow gem works out-of-the-box with JRuby. Just issue: $ jruby -S gem install slideshow or sim…

---

## [Installing mongrel](https://www.ruby-forum.com/t/installing-mongrel/160128)

<div class="topic-metadata">

**Author:** [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Replies:** 1\
**Last updated:** [February 12, 2009, 10:04am UTC](https://www.ruby-forum.com/t/installing-mongrel/160128 "2009-02-12T10:04:27Z")

</div>

Hey I am having some trouble install the mongrel gem. I am using ruby 1.9.1 Here is the stack trace i get when i try the install. Any ideas? Snowflake:/usr/local/src/rubygems-1.3.1 stewart$ sudo gem install mongrel …

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

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