# Ruby

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

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

---

## [Getoptlong question](https://www.ruby-forum.com/t/getoptlong-question/77843)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 5\
**Last updated:** [March 7, 2006, 4:20pm UTC](https://www.ruby-forum.com/t/getoptlong-question/77843 "2006-03-07T16:20:58Z")

</div>

This has been bugging me for weeks now, intermittently. By all accounts I’ve read, this getoptlong code should work require ‘getoptlong’ opts = GetoptLong.new( \[“–devel”,“-d”,GetoptLong::NO\_ARGUMENT\], \[“–getpass”,“-…

---

## [Re: Path management in ruby](https://www.ruby-forum.com/t/re-path-management-in-ruby/77845)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/re-path-management-in-ruby/77845 "2006-03-07T16:05:45Z")

</div>

give you all the features of File, FileUtils, and more. -Payton Just a quick correction - pathname is part of the stdlib, pathname2 is not. Regards, Dan

---

## [Path management in ruby](https://www.ruby-forum.com/t/path-management-in-ruby/77231)

<div class="topic-metadata">

**Author:** [@zimba.tm](https://www.ruby-forum.com/u/zimba.tm)\
**Replies:** 1\
**Last updated:** [March 7, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/path-management-in-ruby/77231 "2006-03-07T15:16:24Z")

</div>

Hi list, While playing and coding with ruby, I found it often useful to have a better way to handle paths that in the actual version. I think it would be nice to have an unified way to manage paths. $:.class =\> Arr…

---

## [Gems, setup.rb and the 'data/' directory](https://www.ruby-forum.com/t/gems-setup-rb-and-the-data-directory/77405)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [March 7, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/gems-setup-rb-and-the-data-directory/77405 "2006-03-07T14:21:24Z")

</div>

Okay, so what’s the solution? setup.rb will install anything in a projects data/ directory to the appropriate system directory. And then one can expect to find it there using the rbconfig constant. But how do I find t…

---

## [Can REXML handle long XML](https://www.ruby-forum.com/t/can-rexml-handle-long-xml/77658)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 2\
**Last updated:** [March 7, 2006, 1:35pm UTC](https://www.ruby-forum.com/t/can-rexml-handle-long-xml/77658 "2006-03-07T13:35:31Z")

</div>

I have a long chunk of XML - about 32k. REXML::Document.new(x) gives me an “”. Yet I double checked the xml in a validator (by File.write x into a file, and then loading it), and it validates fine. Any ideas?

---

## [Hiring Ruby's](https://www.ruby-forum.com/t/hiring-rubys/77749)

<div class="topic-metadata">

**Author:** [@sjoerd](https://www.ruby-forum.com/u/sjoerd)\
**Replies:** 2\
**Last updated:** [March 7, 2006, 12:38pm UTC](https://www.ruby-forum.com/t/hiring-rubys/77749 "2006-03-07T12:38:14Z")

</div>

Hi guys, can somebody help me by telling where i can post some Ruby work for freelancers? thx.

---

## [Ruby Weekly News 20th February - 5th March 2006](https://www.ruby-forum.com/t/ruby-weekly-news-20th-february-5th-march-2006/77750)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 11:15am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-20th-february-5th-march-2006/77750 "2006-03-07T11:15:41Z")

</div>

http://www.rubyweeklynews.org/20060305.html Ruby Weekly News 20th February - 5th March 2006 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup / Ruby foru…

---

## [Best praxis to wrap methods?](https://www.ruby-forum.com/t/best-praxis-to-wrap-methods/54507)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 3\
**Last updated:** [March 7, 2006, 11:03am UTC](https://www.ruby-forum.com/t/best-praxis-to-wrap-methods/54507 "2006-03-07T11:03:33Z")

</div>

hello fellow rubyists, is there an elegant way to define a singleton method from a given symbol without using eval? what i am doing is this: def make\_wrapper object, method eval %{ def object.#{method} # do somethi…

---

## [Re: breaking out of self implemented each](https://www.ruby-forum.com/t/re-breaking-out-of-self-implemented-each/54508)

<div class="topic-metadata">

**Author:** [@Geert\_F](https://www.ruby-forum.com/u/Geert_F)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/re-breaking-out-of-self-implemented-each/54508 "2006-03-07T10:48:17Z")

</div>

SORRY,PLEASE IGNORE THIS MAIL. I MADE A MISTAKE, IT DOES WORK AS SHOULD BE. Greetigns, Geert.

---

## [Breaking out of self implemented each](https://www.ruby-forum.com/t/breaking-out-of-self-implemented-each/77746)

<div class="topic-metadata">

**Author:** [@Geert\_F](https://www.ruby-forum.com/u/Geert_F)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 10:45am UTC](https://www.ruby-forum.com/t/breaking-out-of-self-implemented-each/77746 "2006-03-07T10:45:15Z")

</div>

Hello, I implemented a #each method in a C extension and uses rb\_yield for each iteration of the #each method. Apparently, the break functionality to interupt the normal #each iterations does not work when using my ow…

---

## [Hack to work around eval scoping?](https://www.ruby-forum.com/t/hack-to-work-around-eval-scoping/77706)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 1\
**Last updated:** [March 7, 2006, 10:36am UTC](https://www.ruby-forum.com/t/hack-to-work-around-eval-scoping/77706 "2006-03-07T10:36:07Z")

</div>

I’ve learned that in 1.8 eval is scoped like a block… I’m wondering how I might get around that? For a little background, here’s what I’m working on. Essentially an erb script of Ruby examples, that lists code and ou…

---

## [Threads and exceptions](https://www.ruby-forum.com/t/threads-and-exceptions/54499)

<div class="topic-metadata">

**Author:** [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Replies:** 1\
**Last updated:** [March 7, 2006, 9:02am UTC](https://www.ruby-forum.com/t/threads-and-exceptions/54499 "2006-03-07T09:02:03Z")

</div>

I’ve built a small web service using webrick. The service runs on a separate thread. When it gets an exception it, apparently, dies…it being the thread. Is there a way to catch the exception without the thread exitin…

---

## [Searched: A \*very\* simple email program](https://www.ruby-forum.com/t/searched-a-very-simple-email-program/54501)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 1\
**Last updated:** [March 7, 2006, 8:59am UTC](https://www.ruby-forum.com/t/searched-a-very-simple-email-program/54501 "2006-03-07T08:59:02Z")

</div>

Hi, for an older person, who does not want to fiddle with all the bells and whistles of email clients I am looking for a very simple and easy to use email receive-and-send solution. I thought of putting DSL (DSL=Damn…

---

## [Removing All Traces of Drawn Widgets From Ruby/Tk Canvas](https://www.ruby-forum.com/t/removing-all-traces-of-drawn-widgets-from-ruby-tk-canvas/54504)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 8:34am UTC](https://www.ruby-forum.com/t/removing-all-traces-of-drawn-widgets-from-ruby-tk-canvas/54504 "2006-03-07T08:34:45Z")

</div>

Greetings Ruby Community: Question: How do I effectively erase a filled rectangle to reveal the RubyTk canvas’ background “color” beneath it? I’m having a tough time trying to "remove’ all traces of the filled widget…

---

## [Help - just a few lines of code needed](https://www.ruby-forum.com/t/help-just-a-few-lines-of-code-needed/77614)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 7, 2006, 7:49am UTC](https://www.ruby-forum.com/t/help-just-a-few-lines-of-code-needed/77614 "2006-03-07T07:49:35Z")

</div>

Hi I hope someone can help me out with a very SIMPLE program about whole-string permutations. That is: given a list of strings, the required outcome is a complete set of all their possible permutations. It’s like ch…

---

## [Compiling Ruby 1.8.4 on AIX HOWTO and Binaries](https://www.ruby-forum.com/t/compiling-ruby-1-8-4-on-aix-howto-and-binaries/77662)

<div class="topic-metadata">

**Author:** [@gibbons](https://www.ruby-forum.com/u/gibbons)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 7:22am UTC](https://www.ruby-forum.com/t/compiling-ruby-1-8-4-on-aix-howto-and-binaries/77662 "2006-03-07T07:22:27Z")

</div>

Greetings! First of all, I’m new to the list and to Ruby. Hopefully this is the right place to post this, if not please let me know. Prior to this post, I searched the net looking for information on pre- built binari…

---

## [Ruby/ROR Free One-day Workshop](https://www.ruby-forum.com/t/ruby-ror-free-one-day-workshop/77659)

<div class="topic-metadata">

**Author:** [@dibya](https://www.ruby-forum.com/u/dibya)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 6:55am UTC](https://www.ruby-forum.com/t/ruby-ror-free-one-day-workshop/77659 "2006-03-07T06:55:18Z")

</div>

PuneRuby group in association with Reevik Technologies Pvt.Ltd,Pune,India is pleased to announce the following ‘free’ workshop for Ruby enthusiasts. Venue: SymbiosisInstitute of Computer Studies and Research, 7th Flo…

---

## [Erubis 1.1.0 - an implementation of eRuby](https://www.ruby-forum.com/t/erubis-1-1-0-an-implementation-of-eruby/54472)

<div class="topic-metadata">

**Author:** [@kwatch](https://www.ruby-forum.com/u/kwatch)\
**Replies:** 1\
**Last updated:** [March 7, 2006, 3:53am UTC](https://www.ruby-forum.com/t/erubis-1-1-0-an-implementation-of-eruby/54472 "2006-03-07T03:53:57Z")

</div>

I have released Erubis 1.1.0. http://rubyforge.org/projects/erubis/ Erubis is an implementation of eRuby. It has the following features: Auto sanitizing support Embedded pattern changeable (default ‘\<% %\>’) Auto tri…

---

## [Is the reliable-msg gem really reliable?](https://www.ruby-forum.com/t/is-the-reliable-msg-gem-really-reliable/77618)

<div class="topic-metadata">

**Author:** [@hackdaddy](https://www.ruby-forum.com/u/hackdaddy)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 3:30am UTC](https://www.ruby-forum.com/t/is-the-reliable-msg-gem-really-reliable/77618 "2006-03-07T03:30:57Z")

</div>

I’m trying to use reliable-msg gem, but I’m getting a lot of warnings and strange errors. The documentation is very sparse and seems dated. The lack of good documentation and versioning is going to kill the chances o…

---

## [Non-blocking KitchenSink](https://www.ruby-forum.com/t/non-blocking-kitchensink/54410)

<div class="topic-metadata">

**Author:** [@hackdaddy](https://www.ruby-forum.com/u/hackdaddy)\
**Replies:** 6\
**Last updated:** [March 7, 2006, 2:38am UTC](https://www.ruby-forum.com/t/non-blocking-kitchensink/54410 "2006-03-07T02:38:35Z")

</div>

I am a recent convert and I am very impressed by the productivity gains from Ruby. I would like to basically throw the kitchen sink into the Ruby scripts I am creating. I need to use Webrick, SOAP client, SOAP server…

---

## [Drb load limit](https://www.ruby-forum.com/t/drb-load-limit/76083)

<div class="topic-metadata">

**Author:** [@jdonnell](https://www.ruby-forum.com/u/jdonnell)\
**Replies:** 3\
**Last updated:** [March 7, 2006, 1:56am UTC](https://www.ruby-forum.com/t/drb-load-limit/76083 "2006-03-07T01:56:20Z")

</div>

I am trying to get a simple drb server/client to work, but I am getting DRb::DRbConnError: too large packet 50331648 and can’t figure out why. Anyone have any ideas? my code follows server class SentenceWrapper def r…

---

## [Ruby Array -\> String Conversion Issue](https://www.ruby-forum.com/t/ruby-array-string-conversion-issue/77371)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 2\
**Last updated:** [March 7, 2006, 1:44am UTC](https://www.ruby-forum.com/t/ruby-array-string-conversion-issue/77371 "2006-03-07T01:44:55Z")

</div>

(Newbie Alert!) I have a CGI script that takes an address and tries to put it as hidden form data on a new page. “post” is a hash of POST data. \[“addr1”, “addr2”, “city”, “state”, “zip”, “country”\].each do |part| put…

---

## [What is the best way to iterate through two containers of th](https://www.ruby-forum.com/t/what-is-the-best-way-to-iterate-through-two-containers-of-th/77480)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 13\
**Last updated:** [March 7, 2006, 1:20am UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-iterate-through-two-containers-of-th/77480 "2006-03-07T01:20:06Z")

</div>

If I have two containers c1 and c2 of the same length, what is the proper “Ruby way” to do this: c1.length.times {|i| access c1\[i\], c2\[i\] } I like that Ruby container classes provide their own iterators, but what I …

---

## [Re: blog -- Sorry meant to send it to my coworker not the ma](https://www.ruby-forum.com/t/re-blog-sorry-meant-to-send-it-to-my-coworker-not-the-ma/54492)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 12:16am UTC](https://www.ruby-forum.com/t/re-blog-sorry-meant-to-send-it-to-my-coworker-not-the-ma/54492 "2006-03-07T00:16:28Z")

</div>

Hello all, Sorry for the spam. I meant to send it to my coworker and ruby-talk and Rasmussen are right next to each other :frowning: . Bernd

---

## [Getting more descriptive ERB errors](https://www.ruby-forum.com/t/getting-more-descriptive-erb-errors/77540)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 0\
**Last updated:** [March 7, 2006, 12:16am UTC](https://www.ruby-forum.com/t/getting-more-descriptive-erb-errors/77540 "2006-03-07T00:16:23Z")

</div>

I see that Rails provides very useful and descriptive ERB errors, showing exactly which part of the template caused the error. Is there anyway I can get this behavior for general (non rails/ActionView) erb templates? …

---

## [Blog](https://www.ruby-forum.com/t/blog/77507)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 1\
**Last updated:** [March 6, 2006, 11:55pm UTC](https://www.ruby-forum.com/t/blog/77507 "2006-03-06T23:55:13Z")

</div>

Hey Thad, Here is my blog http://26dot2milesforlive.blogspot.com/ http://26dot2milesforlive.blogspot.com/ Bernd

---

## [Pthreads on HPUX](https://www.ruby-forum.com/t/pthreads-on-hpux/75231)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [March 6, 2006, 11:55pm UTC](https://www.ruby-forum.com/t/pthreads-on-hpux/75231 "2006-03-06T23:55:13Z")

</div>

There are some historical references to a problem with compiling Ruby with pthread support for HPUX: http://www.codecomments.com/archive327-2005-4-470857.html Although there is also a report here that it works: http:…

---

## [Method\_missing](https://www.ruby-forum.com/t/method-missing/77504)

<div class="topic-metadata">

**Author:** [@robertj](https://www.ruby-forum.com/u/robertj)\
**Replies:** 1\
**Last updated:** [March 6, 2006, 11:52pm UTC](https://www.ruby-forum.com/t/method-missing/77504 "2006-03-06T23:52:12Z")

</div>

hi, is there a way to find out if a method was called using parens or not. that is there some hidden parameter that tells me someinstance.foo or someinstance.foo() maybe the ruby docs is missing the following? :sli…

---

## [Bug in postgres-pr](https://www.ruby-forum.com/t/bug-in-postgres-pr/77508)

<div class="topic-metadata">

**Author:** [@ngoc](https://www.ruby-forum.com/u/ngoc)\
**Replies:** 0\
**Last updated:** [March 6, 2006, 11:49pm UTC](https://www.ruby-forum.com/t/bug-in-postgres-pr/77508 "2006-03-06T23:49:11Z")

</div>

Hi I think there is bug in postgres-pr for windows xp. I use command ‘gem install postgres-pr --remote’. But ‘DBI.available\_drivers’ does not show anything of Postgres. It shows only: dbi:ODBC: dbi:Oracle: dbi:Pro…

---

## [If File.exist? does not work](https://www.ruby-forum.com/t/if-file-exist-does-not-work/77408)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 2\
**Last updated:** [March 6, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/if-file-exist-does-not-work/77408 "2006-03-06T22:57:04Z")

</div>

I got like: if File.exist? “#{RAILS\_ROOT}/public/images/#{property.id}/middle/#{image.name}” File.unlink “#{RAILS\_ROOT}/public/images/#{property.id}/middle/#{image.name}” end why it does not work ? error No such …

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

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