# Ruby

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

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

---

## [My Script/Console Won't work](https://www.ruby-forum.com/t/my-script-console-wont-work/84097)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 4\
**Last updated:** [February 1, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/my-script-console-wont-work/84097 "2007-02-01T15:43:20Z")

</div>

I was rolling on Instant Rails, and it didn’t work there, figured I’d install the latest 1.8.5 in a new directory, still won’t run. it says “ruby: No such file or directory – script/console (LoadError)” somebody help…

---

## [I love net/ssh library](https://www.ruby-forum.com/t/i-love-net-ssh-library/83940)

<div class="topic-metadata">

**Author:** [@haws](https://www.ruby-forum.com/u/haws)\
**Replies:** 1\
**Last updated:** [February 1, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/i-love-net-ssh-library/83940 "2007-02-01T15:22:26Z")

</div>

I just wish i had discovered this earlier - i can automate so much stuff now :smiley: Syncronize my winxp clock with server’s require ‘rubygems’ require ‘net/ssh’ Net::SSH.start( ‘servidor’, ‘hugo’ ) do |session| in…

---

## [Sending FCGI requests \*from\* Ruby](https://www.ruby-forum.com/t/sending-fcgi-requests-from-ruby/84103)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [February 1, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/sending-fcgi-requests-from-ruby/84103 "2007-02-01T13:21:14Z")

</div>

Writing FCGI apps in Ruby, which are spawned from Apache or lighttpd, is straightforward enough. What I want to know is, what’s the best way which a Ruby program can invoke other FCGI apps and send requests to them? …

---

## [Load script with binmode](https://www.ruby-forum.com/t/load-script-with-binmode/84095)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 0\
**Last updated:** [February 1, 2007, 11:34am UTC](https://www.ruby-forum.com/t/load-script-with-binmode/84095 "2007-02-01T11:34:58Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B Golfe$B$C$F$F5$IU$$$?$N$G$9$,!“e(BWindowse$B$G$O%9%/%j%W%HCf$Ke(B\\032(^Z) e$B$,4^$^$l$F$$$k$H!”$=$3$G%9%/%j%W%H$NFI$9~$$,=N;$7$F$7$^$$e(B e$B$^$9!#e(B e$B$=$s$J%9%/%j%…

---

## [Howto parse or eval a config-file?](https://www.ruby-forum.com/t/howto-parse-or-eval-a-config-file/83925)

<div class="topic-metadata">

**Author:** [@ChrisKaelin](https://www.ruby-forum.com/u/ChrisKaelin)\
**Replies:** 6\
**Last updated:** [February 1, 2007, 11:10am UTC](https://www.ruby-forum.com/t/howto-parse-or-eval-a-config-file/83925 "2007-02-01T11:10:55Z")

</div>

I’m currently looking for a simple way to parse a configuration file in a ruby-script. Is eval a good way to do that? YAML seems a bit an overkill to learn for such a small task… Thanks in advance for any suggestions. …

---

## [soap/wsdlDriver get service methods ONLY](https://www.ruby-forum.com/t/soap-wsdldriver-get-service-methods-only/83740)

<div class="topic-metadata">

**Author:** [@chucky](https://www.ruby-forum.com/u/chucky)\
**Replies:** 1\
**Last updated:** [February 1, 2007, 9:38am UTC](https://www.ruby-forum.com/t/soap-wsdldriver-get-service-methods-only/83740 "2007-02-01T09:38:44Z")

</div>

Hi, There is possible by using soap/wsdlDriver to display ONLY methods from the current service ? For ex: wsdl=“http://localhost:8080/axis/services/Version?wsdl” driver=SOAP::WSDLDriverFactory.new(wsdl).create\_rpc\_d…

---

## [Can't get Apache2 to i interpret my ruby file](https://www.ruby-forum.com/t/cant-get-apache2-to-i-interpret-my-ruby-file/84080)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 1, 2007, 7:24am UTC](https://www.ruby-forum.com/t/cant-get-apache2-to-i-interpret-my-ruby-file/84080 "2007-02-01T07:24:47Z")

</div>

Hi, I have Apache 2.2 installed on my Fedora Core 5 Linux machine. I created this file, “test.rb” at my public document root #!/usr/local/bin/ruby print “Content-type: text/html\\r\\n\\r\\n” print “Hello everybody!!!\\r…

---

## [FastRI 0.3.0: standalone mode (qri, DRb not needed), additio](https://www.ruby-forum.com/t/fastri-0-3-0-standalone-mode-qri-drb-not-needed-additio/83744)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 12\
**Last updated:** [February 1, 2007, 6:07am UTC](https://www.ruby-forum.com/t/fastri-0-3-0-standalone-mode-qri-drb-not-needed-additio/83744 "2007-02-01T06:07:39Z")

</div>

FastRI is an alternative to the ri documentation browser for Ruby. As of 0.3.0, FastRI can operate in standalone mode (without using a DRb server, see below), so it can now fully replace ri for most intents and purpos…

---

## [Helper file for Generators?](https://www.ruby-forum.com/t/helper-file-for-generators/84069)

<div class="topic-metadata">

**Author:** [@Michael\_Cowden](https://www.ruby-forum.com/u/Michael_Cowden)\
**Replies:** 0\
**Last updated:** [February 1, 2007, 3:14am UTC](https://www.ruby-forum.com/t/helper-file-for-generators/84069 "2007-02-01T03:14:30Z")

</div>

Is there a way to create a module for use with your generator templates, simpliar to the way rails uses Helper Modules with rhtml files? Thanks, -Michael Cowden StoryRight.com removed\_email\_address@domain.invalid …

---

## [Process-per-connection with drb](https://www.ruby-forum.com/t/process-per-connection-with-drb/83941)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [February 1, 2007, 2:08am UTC](https://www.ruby-forum.com/t/process-per-connection-with-drb/83941 "2007-02-01T02:08:27Z")

</div>

Reading through drb.rb, I see that drb uses a thread-per-connection model. I have some C++ extensions that I want to provide access to via a drb server. Unfortunately, these extensions are not safe to use with ruby’…

---

## [Thread dead lock/fatal](https://www.ruby-forum.com/t/thread-dead-lock-fatal/84065)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [February 1, 2007, 12:05am UTC](https://www.ruby-forum.com/t/thread-dead-lock-fatal/84065 "2007-02-01T00:05:18Z")

</div>

Hello, I am using 1.8.5p20 (Dec 2006) of ruby using the pickaxe book example of extending GServer and I have come across a fatal that is perhaps my fault. I run the example code (below) on RHEE30 x86\_64 (ruby is 32b) …

---

## [Transpose](https://www.ruby-forum.com/t/transpose/84059)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 3\
**Last updated:** [January 31, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/transpose/84059 "2007-01-31T23:01:12Z")

</div>

This occurred to me while lying sick in bed… robert@fussel /cygdrive/c/Temp $ ruby dd.rb \[\[“foo”, “bar”, “baz”, “biz”\], \[1, 2, 3, 4\], \[100, 200, 300, 400\]\] \[\[“foo”, 1, 100\], \[“bar”, 2, 200\], \[“baz”, 3, 300\], \[“biz”, …

---

## [Accesing the name of an instance from within an method](https://www.ruby-forum.com/t/accesing-the-name-of-an-instance-from-within-an-method/83852)

<div class="topic-metadata">

**Author:** [@Gerald\_E](https://www.ruby-forum.com/u/Gerald_E)\
**Replies:** 10\
**Last updated:** [January 31, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/accesing-the-name-of-an-instance-from-within-an-method/83852 "2007-01-31T22:32:09Z")

</div>

Hi all, I am wondering if it is possible to access the name of an instance from within a method. What I would like to do is something similar to this class Someclass def say\_hi puts "Hi I am" + self.name e…

---

## [Openssl - cant find the ruby bindings](https://www.ruby-forum.com/t/openssl-cant-find-the-ruby-bindings/84053)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 2\
**Last updated:** [January 31, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/openssl-cant-find-the-ruby-bindings/84053 "2007-01-31T22:17:07Z")

</div>

I’m getting this error when trying to run a rails app: /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in \`gem\_original\_require’: no such file to load – openssl (MissingSourceFile) I cant find any sites th…

---

## [Counting Toothpicks (#111)](https://www.ruby-forum.com/t/counting-toothpicks-111/83475)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 53\
**Last updated:** [January 31, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/counting-toothpicks-111/83475 "2007-01-31T22:13:07Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Fastthread-0.6.3](https://www.ruby-forum.com/t/fastthread-0-6-3/83440)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 3\
**Last updated:** [January 31, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/fastthread-0-6-3/83440 "2007-01-31T21:19:03Z")

</div>

Quick note! fastthread 0.6.3 has been released to address a minor compatibility issue with ConditionVariable – as with the original thread.rb, ConditionVariable can now be used with any mutex class implementing Mutex…

---

## [Alias callback](https://www.ruby-forum.com/t/alias-callback/83887)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 3\
**Last updated:** [January 31, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/alias-callback/83887 "2007-01-31T20:51:02Z")

</div>

How does one reflect on alias definitions. Using #method\_added only gives you the name of the alias being defined --as if it were a new method. And it’s not possible to override ‘alias’ b/c it’s not a real method. Id…

---

## [Trollop 1.1 released](https://www.ruby-forum.com/t/trollop-1-1-released/83967)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 8\
**Last updated:** [January 31, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/trollop-1-1-released/83967 "2007-01-31T20:40:00Z")

</div>

Trollop version 1.1 has been released! http://trollop.rubyforge.org Trollop is YAFCLAP — yet another fine commandline argument processing library for Ruby. Trollop is designed to provide the maximal amount of GNU-sty…

---

## [Regexp captures](https://www.ruby-forum.com/t/regexp-captures/83927)

<div class="topic-metadata">

**Author:** [@el-gato](https://www.ruby-forum.com/u/el-gato)\
**Replies:** 3\
**Last updated:** [January 31, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/regexp-captures/83927 "2007-01-31T20:33:52Z")

</div>

I find myself doing something like this a lot lately: where result is most often the textual output of a %x{command} (c = result.match(/id: (\\d+)/)) ? c.captures.first : result.scan(/error: (.\*)/).to\_s Is there a smoo…

---

## [Parsing indented plain text](https://www.ruby-forum.com/t/parsing-indented-plain-text/84038)

<div class="topic-metadata">

**Author:** [@B\_Mills](https://www.ruby-forum.com/u/B_Mills)\
**Replies:** 1\
**Last updated:** [January 31, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/parsing-indented-plain-text/84038 "2007-01-31T18:33:47Z")

</div>

Hi. I’m still kind of new to Ruby and scripting in general, and am trying to select specific entries from the plain text output of the Apple System Profiler which arranges data like this: Network: Internal Modem: …

---

## [Railsforall.org - a non-profit for the promotion of Ruby on](https://www.ruby-forum.com/t/railsforall-org-a-non-profit-for-the-promotion-of-ruby-on/84028)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [January 31, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/railsforall-org-a-non-profit-for-the-promotion-of-ruby-on/84028 "2007-01-31T17:18:56Z")

</div>

Good morning. We have launched the initial Railsforall.org site, located at http://www.railsforall.org, with a full launch planned within the next month or two. Visit the site and sign up to be notified of the officia…

---

## [Process-per-connection with drb](https://www.ruby-forum.com/t/process-per-connection-with-drb/102669)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [January 31, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/process-per-connection-with-drb/102669 "2007-01-31T17:06:35Z")

</div>

Reading through drb.rb, I see that drb uses a thread-per-connection model. I have some C++ extensions that I want to provide access to via a drb server. Unfortunately, these extensions are not safe to use with ruby’…

---

## [Test (please ignore)](https://www.ruby-forum.com/t/test-please-ignore/84025)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [January 31, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/test-please-ignore/84025 "2007-01-31T17:03:35Z")

</div>

… experiencing problems getting mail delivered to the ML again. :frowning: Paul

---

## [FireWatir 1.0.1 released](https://www.ruby-forum.com/t/firewatir-1-0-1-released/83189)

<div class="topic-metadata">

**Author:** [@Angrez](https://www.ruby-forum.com/u/Angrez)\
**Replies:** 15\
**Last updated:** [January 31, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/firewatir-1-0-1-released/83189 "2007-01-31T16:10:29Z")

</div>

Hi, We have released FireWatir version 1.0.1 For new features and future enhancements please go through release notes at Google Code Archive - Long-term storage for Google Code Project Hosting. . Main features of thi…

---

## [\[ADV\] MountainWest RubyConf (more info)](https://www.ruby-forum.com/t/adv-mountainwest-rubyconf-more-info/84018)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [January 31, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/adv-mountainwest-rubyconf-more-info/84018 "2007-01-31T15:15:22Z")

</div>

One of the things that I’m most excited to have as part of the 2007 MountainWest RubyConf is the second Alternative Ruby Implementors’ Summit and Panel – I wrote a bit more about it here: The rest of the speakers an…

---

## [Mechanize: find form with 'id' rather than 'name'?](https://www.ruby-forum.com/t/mechanize-find-form-with-id-rather-than-name/83999)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 4\
**Last updated:** [January 31, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/mechanize-find-form-with-id-rather-than-name/83999 "2007-01-31T15:12:22Z")

</div>

This is what I am doing: my\_form = doc.forms.with.name(formname).first This is what I want: my\_form = doc.forms.with.id(id\_string).first but somehow Mechanize does not like it. Maybe because id collides with Object.…

---

## [Language poll: which one on the JVM?](https://www.ruby-forum.com/t/language-poll-which-one-on-the-jvm/83725)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 1\
**Last updated:** [January 31, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/language-poll-which-one-on-the-jvm/83725 "2007-01-31T14:50:20Z")

</div>

Yes, another poll. People love to read into these numbers I guess. I suppose you can guess which one I’m excited to run on the JVM, but vote for whatever you like. Maybe you’re a big Groovy fan. Maybe you’d love to se…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/84011)

<div class="topic-metadata">

**Author:** [@Miroslaw\_M](https://www.ruby-forum.com/u/Miroslaw_M)\
**Replies:** 0\
**Last updated:** [January 31, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/no-subject/84011 "2007-01-31T14:13:16Z")

</div>

summary \[25\]

---

## [London Ruby User Group - Monday, February 12th](https://www.ruby-forum.com/t/london-ruby-user-group-monday-february-12th/84003)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [January 31, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/london-ruby-user-group-monday-february-12th/84003 "2007-01-31T12:49:07Z")

</div>

Hi all, Details for the London Ruby U. Group February meeting are now up, all over the internet: February 2007 Meeting | London Ruby User Group http://skillsmatter.com/lrug London Ruby User Group (LRUG) February Meet…

---

## [Testing local vars and exceptions](https://www.ruby-forum.com/t/testing-local-vars-and-exceptions/83980)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 1\
**Last updated:** [January 31, 2007, 12:35pm UTC](https://www.ruby-forum.com/t/testing-local-vars-and-exceptions/83980 "2007-01-31T12:35:04Z")

</div>

Hi Two questions: I’m new to testing, so my apologies if this is really basic, but is there anyway to test the value of a local variable in my unit tests? So far I’ve been making everything instance vars that don’t …

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

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