# Ruby

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

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

---

## [Modal dialog is not geting closed second time in RUBY:WATIR](https://www.ruby-forum.com/t/modal-dialog-is-not-geting-closed-second-time-in-ruby-watir/113924)

<div class="topic-metadata">

**Author:** [@chetanpatil](https://www.ruby-forum.com/u/chetanpatil)\
**Replies:** 2\
**Last updated:** [September 6, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/modal-dialog-is-not-geting-closed-second-time-in-ruby-watir/113924 "2007-09-06T16:12:12Z")

</div>

model=$browser.modal\_dialog model.close While closing the forst modal dialog in RUBY : WATIR we used the following code model=$browser.modal\_dialog model.close if we tried to close the same modal dialog second time…

---

## [Hal: Twisting a Rope (#137)](https://www.ruby-forum.com/t/hal-twisting-a-rope-137/113941)

<div class="topic-metadata">

**Author:** [@setiono](https://www.ruby-forum.com/u/setiono)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/hal-twisting-a-rope-137/113941 "2007-09-06T14:56:53Z")

</div>

Hello Gustav, nice to know you. I received your email, but sorry i don’t understand what you are talking about. Im just started to learning programing. Im a novice. Actually i want to ask your favor to help me. I was …

---

## [Typo at Array#cycle documentation](https://www.ruby-forum.com/t/typo-at-array-cycle-documentation/113940)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 2\
**Last updated:** [September 6, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/typo-at-array-cycle-documentation/113940 "2007-09-06T14:33:49Z")

</div>

Yuguie$B$H$$$$$^$9!#e(B Typoe$B$i$7$-$b$N$r8+$D$1$^$7$?!#e(B Index: array.c — array.c (revision 13347) +++ array.c (working copy) @@ -2929,7 +2929,7 @@ Calls block repeatedly forever. a = \["a", "b", "c"\]…

---

## [Lone Star Rubyconf Ticket](https://www.ruby-forum.com/t/lone-star-rubyconf-ticket/113943)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/lone-star-rubyconf-ticket/113943 "2007-09-06T14:06:45Z")

</div>

A member of our local users group has a Lone Star Rubyconf ticket for sale. If you would like to attend, please contact John H.: removed\_email\_address@domain.invalid James Edward G. II

---

## [Backing into numbers with Ruby?](https://www.ruby-forum.com/t/backing-into-numbers-with-ruby/113926)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 8:54am UTC](https://www.ruby-forum.com/t/backing-into-numbers-with-ruby/113926 "2007-09-06T08:54:04Z")

</div>

Are there any apps out there that can try and arrive at n given x criterion? If not, perhaps there is good reason(complexity maybe?). If there is or if anyone has thoughts to share on the topic, I’m very interested. …

---

## [Error during configure DLTK1.0 in eclipse3.3!](https://www.ruby-forum.com/t/error-during-configure-dltk1-0-in-eclipse3-3/113922)

<div class="topic-metadata">

**Author:** [@trptcolin](https://www.ruby-forum.com/u/trptcolin)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 7:28am UTC](https://www.ruby-forum.com/t/error-during-configure-dltk1-0-in-eclipse3-3/113922 "2007-09-06T07:28:57Z")

</div>

Hi, all. I installed DLTK1.0 in eclipse3.3, errors back when I click “Windows=\>Preferences=\>DLTK Ruby=\>Ruby Interpreters”. Error is “The currently displayed page constains invalid values.” I attached errors in the l…

---

## [Ruby Threads question](https://www.ruby-forum.com/t/ruby-threads-question/113913)

<div class="topic-metadata">

**Author:** [@overworked\_phd](https://www.ruby-forum.com/u/overworked_phd)\
**Replies:** 5\
**Last updated:** [September 6, 2007, 6:39am UTC](https://www.ruby-forum.com/t/ruby-threads-question/113913 "2007-09-06T06:39:53Z")

</div>

The following code is a slight modification of the code found at the top of page 136 in the book “Programming Ruby The Pragmatic Programmers’ Guide” by Dave T. with Chad F. and Andy H. #!/usr/bin/ruby -w require ‘net…

---

## [Missing "end" and My least favourite ruby error message](https://www.ruby-forum.com/t/missing-end-and-my-least-favourite-ruby-error-message/113901)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 5\
**Last updated:** [September 6, 2007, 6:28am UTC](https://www.ruby-forum.com/t/missing-end-and-my-least-favourite-ruby-error-message/113901 "2007-09-06T06:28:53Z")

</div>

“syntax error, unexpected $end, expecting kEND” With the line number pointing to the last line of the file. So I was busy doing something when I was interrupted and I dropped an “end” somewhere. No idea where. Sigh!…

---

## [Trouble Sending Emails](https://www.ruby-forum.com/t/trouble-sending-emails/113857)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 4\
**Last updated:** [September 6, 2007, 6:03am UTC](https://www.ruby-forum.com/t/trouble-sending-emails/113857 "2007-09-06T06:03:51Z")

</div>

Hello, I run a script nightly which used to send e-mails when it successfully completed, but it no longer does. I’m not sure which configurations I need to check as I haven’t used net/smtp much (I inherited this scrip…

---

## [Re: Twisting a Rope (#137)](https://www.ruby-forum.com/t/re-twisting-a-rope-137/113918)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 5:47am UTC](https://www.ruby-forum.com/t/re-twisting-a-rope-137/113918 "2007-09-06T05:47:50Z")

</div>

Sorry, forgot to mention: While append modifies the rope in place, normalize returns a new rope.

---

## [Re: Twisting a Rope (#137)](https://www.ruby-forum.com/t/re-twisting-a-rope-137/225966)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 5:38am UTC](https://www.ruby-forum.com/t/re-twisting-a-rope-137/225966 "2007-09-06T05:38:50Z")

</div>

I had a little trouble debugging my solution, and thus I’m turning it in late. I’m also being forced to finish up early, so some of the lesser features sufferred. It implements all three parts (including part 3 subpar…

---

## [Can't rescue Errno::EBADF](https://www.ruby-forum.com/t/cant-rescue-errno-ebadf/113819)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 3\
**Last updated:** [September 6, 2007, 3:34am UTC](https://www.ruby-forum.com/t/cant-rescue-errno-ebadf/113819 "2007-09-06T03:34:36Z")

</div>

Hi, I can’t seem to do a very simple thing: I cannot rescue a Errno::EBADF exception in my code. I know it is a Errno::EBADF exception, since I can rescue it through the generic exception type (Exception) and then I …

---

## [\[rubyosx\] can't build extensions as universal binaries](https://www.ruby-forum.com/t/rubyosx-cant-build-extensions-as-universal-binaries/113895)

<div class="topic-metadata">

**Author:** [@has](https://www.ruby-forum.com/u/has)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/rubyosx-cant-build-extensions-as-universal-binaries/113895 "2007-09-05T23:44:51Z")

</div>

Hi all, I recently installed Ruby 1.8.6 on my PPC and i386 Macs using the Ruby One-Click Installer for OSX (http://rubyosx.rubyforge.org/), replacing my previous manually built architecture-specific Ruby 1.8.5 instal…

---

## [Re: simple get file by filename](https://www.ruby-forum.com/t/re-simple-get-file-by-filename/113891)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/re-simple-get-file-by-filename/113891 "2007-09-05T23:03:16Z")

</div>

A regular expression will do just fine. entries.each do |entry| puts entry if entry =~ /^jpg\_image/ end ----- Original Message ---- From: eggie5 removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_a…

---

## [OpenKomodo](https://www.ruby-forum.com/t/openkomodo/113878)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/openkomodo/113878 "2007-09-05T21:38:07Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Speaking of IDEs, ActiveState folks just announced the Open Komodo project. The details are on their web site – the best starting point is -----BEGIN PGP SIGNATURE----- …

---

## [Please help unable to install hpricot gem](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871)

<div class="topic-metadata">

**Author:** [@boza](https://www.ruby-forum.com/u/boza)\
**Replies:** 8\
**Last updated:** [September 5, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/please-help-unable-to-install-hpricot-gem/113871 "2007-09-05T21:00:09Z")

</div>

Hello everyone, this is my first post, I’m from Costa Rica I’ve been learning ruby for a couple of months now, now to the point. I’ve been trying to install the hpricot gem but every time I get this: Select which gem…

---

## [Accessing ruby 1.9 interpreter from other threads](https://www.ruby-forum.com/t/accessing-ruby-1-9-interpreter-from-other-threads/113175)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/accessing-ruby-1-9-interpreter-from-other-threads/113175 "2007-09-05T20:44:58Z")

</div>

Hi, I seem to recall hearing 1.9 is using native threads now. If so, does that mean it’s now safe for multiple OS threads to call into the 1.9 ruby interpreter, and eval or execute ruby code? (I’m assuming some sort…

---

## [Method switching](https://www.ruby-forum.com/t/method-switching/113861)

<div class="topic-metadata">

**Author:** [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Replies:** 9\
**Last updated:** [September 5, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/method-switching/113861 "2007-09-05T19:30:44Z")

</div>

Ok this probably won’t make any send at all, but lets say i have something like this: def send(a) puts “#{a}\\n” end def colorsend(a) puts “#{colorize(a)}\\n” end def something send “hello” end Ok lets say i hav…

---

## [Getting tk working on ubuntu](https://www.ruby-forum.com/t/getting-tk-working-on-ubuntu/113751)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/getting-tk-working-on-ubuntu/113751 "2007-09-05T19:16:43Z")

</div>

I need some help getting tk working on ubuntu… I reinstalled ruby from source being under the impression that tk would be built-in this time around. i still get: LoadError: no such file to load – tk when i try requir…

---

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

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/test/113856 "2007-09-05T18:26:25Z")

</div>

testing, re-subbed. feel free to ignore

---

## [Learn First?](https://www.ruby-forum.com/t/learn-first/113820)

<div class="topic-metadata">

**Author:** [@BScott](https://www.ruby-forum.com/u/BScott)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/learn-first/113820 "2007-09-05T16:22:59Z")

</div>

Hello, all I’m new to Ruby and I purchased both Agile books for learning Ruby & Rails. I don’t know If I should learn Ruby first or dive into Rails?

---

## [RubyConf 2007 schedule announced! (Registration soon!)](https://www.ruby-forum.com/t/rubyconf-2007-schedule-announced-registration-soon/113851)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/rubyconf-2007-schedule-announced-registration-soon/113851 "2007-09-05T16:16:57Z")

</div>

Hi – The schedule for RubyConf 2007 has been announced; you can see it at: http://www.rubyconf.org/agenda.html Registration to follow soon… David

---

## [FAQ woes](https://www.ruby-forum.com/t/faq-woes/113845)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/faq-woes/113845 "2007-09-05T14:47:41Z")

</div>

The Ruby language FAQ website(s) seemt to be kind of hounted: http://faq.rubygarden.org and http://www.rubycentral.com/faq seem to be again out of order (at least I continually get a “Service temporarily unavailable” …

---

## [Integer overflow in String#\[\]=](https://www.ruby-forum.com/t/integer-overflow-in-string/113841)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/integer-overflow-in-string/113841 "2007-09-05T14:14:36Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B String#\[\]= e$B$K$be(B integer overflow e$B$,B8:\_$7$^$9!#e(B $ cat integer\_overflow.rb p “abc”\[1, 2\*\*31-1\] = “X” $ ruby-1.8 -v integer\_overflow.rb ruby 1.8.6 (2007-09-01 patchle…

---

## [Integer overflow in Array#fill](https://www.ruby-forum.com/t/integer-overflow-in-array-fill/113840)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/integer-overflow-in-array-fill/113840 "2007-09-05T14:07:36Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B Array#fill e$B$G$be(B integer overflow e$B$,5/$-$^$9!#e(B $ cat integer\_overflow.rb a = \[0, 1, 2, 3\] a.fill(10, 1, 2\*\*31-1) p a a = \[0, 1, 2, 3\] a.fill(10, 1, 5) p a $ rub…

---

## [Gateway Messages (was Re: subject line)](https://www.ruby-forum.com/t/gateway-messages-was-re-subject-line/113839)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/gateway-messages-was-re-subject-line/113839 "2007-09-05T14:04:35Z")

</div>

On Sep 5, 2007, at 2:30 AM, Michael W. Ryder wrote: a note about the above as it might be relevant to any decision made. I watch over the newsgroup gateway and I can say that it would not be affected. It uses the h…

---

## [Integer overflow in Array#\[\]=](https://www.ruby-forum.com/t/integer-overflow-in-array/113838)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/integer-overflow-in-array/113838 "2007-09-05T14:03:35Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B Array#\[\]= e$B$Ge(B integer overflow e$B$,H/@8$7$^$9!#e(B $ cat integer\_overflow.rb a = \[0, 1, 2, 3\] a\[1, 2\*\*31-1\] = 10 p a a = \[0, 1, 2, 3\] a\[1, 2\*\*31-2\] = 10 p a $ ruby-1.…

---

## [Integer overflow in Array#\[\]](https://www.ruby-forum.com/t/integer-overflow-in-array/113837)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/integer-overflow-in-array/113837 "2007-09-05T13:58:33Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B integer overflow e$B4XO"$G$9!#$$$/$D$+$"$j$^$9$,J,$1$FEj9F$7$^$9!#e(B e$B$D$.$N$h$&$K$9$k$He(B segv e$B$7$^$9!#e(B $ ruby-1.8 -ve ‘p \[1, 2, 3\]\[1, 2\*\*31-1\]\[100000\]’ ruby 1.8.6 (…

---

## [Embedded vs. Non-embedded Tests](https://www.ruby-forum.com/t/embedded-vs-non-embedded-tests/113774)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 13\
**Last updated:** [September 5, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/embedded-vs-non-embedded-tests/113774 "2007-09-05T13:26:18Z")

</div>

As far as I know, Facets is the only large project that uses embedded unit tests. The tests are housed in block comments, eg. =begin test … =end I have a command line tool that can run the embedded test directly. F…

---

## [Configuration file parser like Config::General for perl](https://www.ruby-forum.com/t/configuration-file-parser-like-config-general-for-perl/113772)

<div class="topic-metadata">

**Author:** [@Tammo\_T](https://www.ruby-forum.com/u/Tammo_T)\
**Replies:** 3\
**Last updated:** [September 5, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/configuration-file-parser-like-config-general-for-perl/113772 "2007-09-05T12:41:01Z")

</div>

Hello, I have the problem, that in a project I am working in the configuration files are in a apache config file like format. This is a mixture of XML-Format and normal config format like name example use “for te…

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

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