# Ruby

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

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

---

## [Using the PowerLoom reasoning system with JRuby](https://www.ruby-forum.com/t/using-the-powerloom-reasoning-system-with-jruby/116159)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 1:40am UTC](https://www.ruby-forum.com/t/using-the-powerloom-reasoning-system-with-jruby/116159 "2007-10-03T01:40:51Z")

</div>

I just wrote a complete example, including all required source code and a Makefile, on my AI blog: http://markwatson.com/aiblog/2007/10/using-powerloom-reasoning-system-with.html JRuby continues to please me: fantasti…

---

## [Config files](https://www.ruby-forum.com/t/config-files/116064)

<div class="topic-metadata">

**Author:** [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Replies:** 8\
**Last updated:** [October 3, 2007, 1:01am UTC](https://www.ruby-forum.com/t/config-files/116064 "2007-10-03T01:01:05Z")

</div>

I am writing an application that will read and grab values from a configuration file. I am wondering what peoples opinions are on what to use. YAML? XML? Does anyone have any preference? Are any better then the others…

---

## [How to add a jar to war.rb that's not in the maven repositories?](https://www.ruby-forum.com/t/how-to-add-a-jar-to-war-rb-thats-not-in-the-maven-repositories/116156)

<div class="topic-metadata">

**Author:** [@Forrest\_C](https://www.ruby-forum.com/u/Forrest_C)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 12:47am UTC](https://www.ruby-forum.com/t/how-to-add-a-jar-to-war-rb-thats-not-in-the-maven-repositories/116156 "2007-10-03T00:47:38Z")

</div>

So I want to add the oracle jdbc jar and can’t use maven\_library. I also won’t have access to the ultimate destination app server lib dir (weblogic in this case), so I’d like to add it to the war. What’s the right way…

---

## [Help running IronRuby tests](https://www.ruby-forum.com/t/help-running-ironruby-tests/116151)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/help-running-ironruby-tests/116151 "2007-10-02T23:29:49Z")

</div>

I’d like to know how to run the unit tests, so I can check if my change broke anything. The test harness is a little weird, in that it wants a bunch of strange environment variables and paths. For example, trying “rub…

---

## [A = Dog.new # a is not a pointer and not a reference?](https://www.ruby-forum.com/t/a-dog-new-a-is-not-a-pointer-and-not-a-reference/115879)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 55\
**Last updated:** [October 2, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/a-dog-new-a-is-not-a-pointer-and-not-a-reference/115879 "2007-10-02T23:01:42Z")

</div>

when we say a = Dog.new(“lulu”) Now a is not really a pointer, because we don’t need to dereference it to use it, like (\*a).color = “red” a-\>color = “red” When we use a.color, it is like a reference in C++ implicit…

---

## [How can I uninstall Ruby? Need to reinstall - please help!](https://www.ruby-forum.com/t/how-can-i-uninstall-ruby-need-to-reinstall-please-help/115931)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/how-can-i-uninstall-ruby-need-to-reinstall-please-help/115931 "2007-10-02T22:47:38Z")

</div>

My Ruby installation doesn’t recognize “gets”, among other things, so I’m assuming that my Ruby installation is somehow corrupt. I’d like to completely remove Ruby from my Windows system, and do a clean reinstall. Ca…

---

## [A question about threads](https://www.ruby-forum.com/t/a-question-about-threads/116129)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/a-question-about-threads/116129 "2007-10-02T22:26:26Z")

</div>

What do I need to do to make the following code write the input from each thread to all other active threads? I can’t figure out how to access the list of threads in GServer. #Begin Test Server require ‘GServer’ cla…

---

## [Net::POP3 and Firewall](https://www.ruby-forum.com/t/net-pop3-and-firewall/116116)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/net-pop3-and-firewall/116116 "2007-10-02T21:58:58Z")

</div>

Hi, I’m trying to use Net::POP3 from behind a firewall and I can’t get past this error C:/ruby/lib/ruby/1.8/net/protocol.rb:206:in \`initialize’: Bad file descriptor - connect(2) (Errno::EBADF) I had a similar error …

---

## [Hashes](https://www.ruby-forum.com/t/hashes/116140)

<div class="topic-metadata">

**Author:** [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/hashes/116140 "2007-10-02T21:54:45Z")

</div>

I want to create a large hash kind of information field… basically i have a room (with a specific name, topic, nicknames and id) it might look like this name = room1 topic = room1 topic nicks = \[nick1, nick2, nick3 …

---

## [App works in Ruby on Rails but not on JRuby](https://www.ruby-forum.com/t/app-works-in-ruby-on-rails-but-not-on-jruby/116143)

<div class="topic-metadata">

**Author:** [@jrubylearner](https://www.ruby-forum.com/u/jrubylearner)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/app-works-in-ruby-on-rails-but-not-on-jruby/116143 "2007-10-02T21:28:55Z")

</div>

When I run my application initially developed and deployed on Ruby on rails, it runs fine. But when I run the same application using Jruby it throws following error. Please help Processing EmployeeController#index (fo…

---

## [Syncing gems between computers](https://www.ruby-forum.com/t/syncing-gems-between-computers/116138)

<div class="topic-metadata">

**Author:** [@ebeard](https://www.ruby-forum.com/u/ebeard)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/syncing-gems-between-computers/116138 "2007-10-02T20:27:24Z")

</div>

Before I write my own capistrano task I was wondering how others sync gems from one computer to another? I want to be able to run a ruby program on multiple computers but not get bogged down in hand parsing the outpu…

---

## [Confession: I never learned CS](https://www.ruby-forum.com/t/confession-i-never-learned-cs/115621)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 24\
**Last updated:** [October 2, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/confession-i-never-learned-cs/115621 "2007-10-02T19:51:06Z")

</div>

I was thinking about my “Detecting number ranges” question and the various answers to it; I was also reading Steve Yegge’s old but excellent “five essential phone-screen questions” (steve yegge - five-essential-phone…

---

## [A mechanism for specifying static type signatures (NOT STATIC TYPING)](https://www.ruby-forum.com/t/a-mechanism-for-specifying-static-type-signatures-not-static-typing/115919)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/a-mechanism-for-specifying-static-type-signatures-not-static-typing/115919 "2007-10-02T19:35:11Z")

</div>

JRuby’s main compiler is complete, so I’m starting to kick around ideas for a second compiler. The goal of the second compiler would be to produce normal-looking Java classes that are actually just Ruby code underneat…

---

## [Canonical Array#append to hang hook](https://www.ruby-forum.com/t/canonical-array-append-to-hang-hook/115945)

<div class="topic-metadata">

**Author:** [@larstico](https://www.ruby-forum.com/u/larstico)\
**Replies:** 9\
**Last updated:** [October 2, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/canonical-array-append-to-hang-hook/115945 "2007-10-02T19:33:13Z")

</div>

I have a class which inherit from Array. I want to perform some task each time something is append to an instance of this class. The problem is: there are so many way to append something to an array. For example: clas…

---

## [Variable scope in GServer](https://www.ruby-forum.com/t/variable-scope-in-gserver/116111)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/variable-scope-in-gserver/116111 "2007-10-02T19:16:27Z")

</div>

(Repost) Thank you for the correction Bertram, I’ve never used a mailing list before and it didn’t occur to me. Hopefully it’s in the right place now. I’m having a bit of a problem accessing variables in an instance o…

---

## [A different type of reference (shocked)](https://www.ruby-forum.com/t/a-different-type-of-reference-shocked/115809)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 18\
**Last updated:** [October 2, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/a-different-type-of-reference-shocked/115809 "2007-10-02T19:06:31Z")

</div>

Before, when I say Ruby’s reference to an object a = Car.new b = a i was saying a is a reference to a Car object. and b is now the same reference to that object. I mean it the very traditional pointer way: int a = …

---

## [A work day becomes a fun day](https://www.ruby-forum.com/t/a-work-day-becomes-a-fun-day/116127)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/a-work-day-becomes-a-fun-day/116127 "2007-10-02T19:03:00Z")

</div>

I wonder if folks like to share experience on this one, Do you find after using Ruby, a work day becomes a fun day?

---

## [OneClickInstaller/RubyGems problems](https://www.ruby-forum.com/t/oneclickinstaller-rubygems-problems/115596)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 15\
**Last updated:** [October 2, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/oneclickinstaller-rubygems-problems/115596 "2007-10-02T18:41:18Z")

</div>

Is there anything you have to do after installing the Windows OneClickInstaller? I did so and then tried to use RubyGems with now success. First I tried: gem install rubyscript2exe but got getaddrinfo: no address as…

---

## [JRuby feeds form Yahoo pipes](https://www.ruby-forum.com/t/jruby-feeds-form-yahoo-pipes/116130)

<div class="topic-metadata">

**Author:** [@RaphaSSSSl\_Valyi](https://www.ruby-forum.com/u/RaphaSSSSl_Valyi)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/jruby-feeds-form-yahoo-pipes/116130 "2007-10-02T18:28:23Z")

</div>

Hi all, If like me you are tired from crawling the web to search JRuby breaking news or JRuby new crazy usages, now you can just subscribe to this Yahoo Pipes feed I made: http://pipes.yahoo.com/pipes/pipe.info?\_id…

---

## [Working RubyGems on Windows](https://www.ruby-forum.com/t/working-rubygems-on-windows/116034)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 8\
**Last updated:** [October 2, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/working-rubygems-on-windows/116034 "2007-10-02T18:23:04Z")

</div>

I really need to get RubyGems working on Windows. Versions 0.9.2, 0.9.4 and current trunk all fail. Can someone recommend a solution. Is there an old version that I can install that’s sure to work? Thanks, T.

---

## [Question re: modules and class variable scope](https://www.ruby-forum.com/t/question-re-modules-and-class-variable-scope/115228)

<div class="topic-metadata">

**Author:** [@gotascii](https://www.ruby-forum.com/u/gotascii)\
**Replies:** 10\
**Last updated:** [October 2, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/question-re-modules-and-class-variable-scope/115228 "2007-10-02T17:18:34Z")

</div>

I spent some time trying to find an answer to this but haven’t found an explanation I understand. Could someone tell me what is going on here: module Mod def self.append\_features(base) base.extend ClassMethods supe…

---

## [Help in my own gsub design](https://www.ruby-forum.com/t/help-in-my-own-gsub-design/116109)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/help-in-my-own-gsub-design/116109 "2007-10-02T17:16:14Z")

</div>

I don’t use it very often, rather copying from example, but it’s so useful that I should learn how to write it I’d appreciate any guru tip on how to proceed once the problem is on the paper : example : INPUT STRINGS …

---

## [Can't install mongrel](https://www.ruby-forum.com/t/cant-install-mongrel/115887)

<div class="topic-metadata">

**Author:** [@alce](https://www.ruby-forum.com/u/alce)\
**Replies:** 12\
**Last updated:** [October 2, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/cant-install-mongrel/115887 "2007-10-02T16:56:17Z")

</div>

Hi guys! I’m a Rails Developer and I’m beginning with JRuby on Rails. I’m reading (and enjoying) 0la Bini’s new book, and when I tryed to install mongrel’s gem, i get this error: Error opening script file: extconf.r…

---

## [Finding files with regular expressions](https://www.ruby-forum.com/t/finding-files-with-regular-expressions/116110)

<div class="topic-metadata">

**Author:** [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Replies:** 8\
**Last updated:** [October 2, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/finding-files-with-regular-expressions/116110 "2007-10-02T16:45:21Z")

</div>

Hi, i am having troubles figuring this out: I want to search in a directory for files, matching a certain regular expression. The script should not return true or false, but should give me a list (array) of filenames …

---

## [Stupid error on blocks](https://www.ruby-forum.com/t/stupid-error-on-blocks/116068)

<div class="topic-metadata">

**Author:** [@fbrubacher](https://www.ruby-forum.com/u/fbrubacher)\
**Replies:** 9\
**Last updated:** [October 2, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/stupid-error-on-blocks/116068 "2007-10-02T16:31:00Z")

</div>

Hi all , I’m working in Rails but I’m sure this is a 100% Ruby question. I’m trying to use define\_method for the first time, it takes the name of the method and a block. I want to make multiple\_methods each one with …

---

## [Error in Loop!](https://www.ruby-forum.com/t/error-in-loop/116114)

<div class="topic-metadata">

**Author:** [@jngo](https://www.ruby-forum.com/u/jngo)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/error-in-loop/116114 "2007-10-02T15:54:39Z")

</div>

Hi Everyone! I keep getting the following error message for this line of the below code: mat1\[r,c\] \<\< this\_record.chomp(",").strip() I have been racking my brain but can’t see a sollution - have used this line befor…

---

## [Question on bottleneck of ruby](https://www.ruby-forum.com/t/question-on-bottleneck-of-ruby/113881)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 26\
**Last updated:** [October 2, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/question-on-bottleneck-of-ruby/113881 "2007-10-02T15:33:30Z")

</div>

Question: if I made the statement “Ruby is slower than some other interpreted languages” almost anyone could agree with it (slower computationally, not programmer time-wise). So my question is…where is the bottleneck?…

---

## [Gem Developer Guide](https://www.ruby-forum.com/t/gem-developer-guide/116001)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 11\
**Last updated:** [October 2, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/gem-developer-guide/116001 "2007-10-02T15:15:16Z")

</div>

Hello. Can someone tell me where is the developer guide to the ruby gems? Thnaks!

---

## [Ipaddr](https://www.ruby-forum.com/t/ipaddr/115874)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/ipaddr/115874 "2007-10-02T13:17:55Z")

</div>

e$B@\>;3OB9-$G$9!#e(B ipaddre$B$Ge(B IPAddr.new(“127.0.0.0/8”).include?(“127.0.0.1”) e$B$,e(Bfalsee$B$K$J$C$FG:$s$@$3$H$,$"$k$N$G!"J8;zNs$b\<+F0$GJQ49$7$Fe(B e$B$&$1$D$1$F$/$l$k$H4r$7$$$N$G$O$J$$$+$H;W$$$^$9!#e(B e$B:…

---

## [Passing dynamic parameter in a bloc](https://www.ruby-forum.com/t/passing-dynamic-parameter-in-a-bloc/116008)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/passing-dynamic-parameter-in-a-bloc/116008 "2007-10-02T12:27:23Z")

</div>

in a RoR plugin, I am passing a string parameter (column name) i.e ‘karma’ as the sort parameter: User.select { |u| u.id \> 20 }.sort\_by { |u| u.id } “SELECT \* FROM users WHERE (users.karma \> 20) ORDER BY users.karma” …

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

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