# Ruby

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

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

---

## [Problem filling textarea using watir](https://www.ruby-forum.com/t/problem-filling-textarea-using-watir/136674)

<div class="topic-metadata">

**Author:** [@devabrat](https://www.ruby-forum.com/u/devabrat)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/problem-filling-textarea-using-watir/136674 "2008-05-05T14:16:03Z")

</div>

When trying to fill text area after filling a text field i am getting this error ““Can’t move focus to the control because it is invisible, not enabled, or o f a type that does not accept the focus. HRESULT error co…

---

## [What to cover for a TDD and BDD toolkit/course?](https://www.ruby-forum.com/t/what-to-cover-for-a-tdd-and-bdd-toolkit-course/136561)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/what-to-cover-for-a-tdd-and-bdd-toolkit-course/136561 "2008-05-05T13:47:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I’ve volunteered to create a new course for Satish T.'s rubylearning.org. I want to cover rather basic stuff in regard to TDD and BDD, and the tools tying into Test/Beha…

---

## [Automating Modal dialog close](https://www.ruby-forum.com/t/automating-modal-dialog-close/136671)

<div class="topic-metadata">

**Author:** [@devabrat](https://www.ruby-forum.com/u/devabrat)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 11:46am UTC](https://www.ruby-forum.com/t/automating-modal-dialog-close/136671 "2008-05-05T11:46:13Z")

</div>

Hi When we click Move/Copy button on Outlook webaccess through watir ,Ruby then we get a Move/Copy Web Dialog While it is open i cannot work on the main browser window so I could know that it is Modal Now when I am …

---

## [Repeated parameter in the INI file](https://www.ruby-forum.com/t/repeated-parameter-in-the-ini-file/136467)

<div class="topic-metadata">

**Author:** [@Deepu](https://www.ruby-forum.com/u/Deepu)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 10:02am UTC](https://www.ruby-forum.com/t/repeated-parameter-in-the-ini-file/136467 "2008-05-05T10:02:22Z")

</div>

Hi all, I, trying to make a configuration file system with ruby. In the configuration file the same parameter may appear multiple times. This is allowed and how to handle such a situation with ini library. The prese…

---

## [$B%9%l%C%ICf$N(B IO#flush $B$GI=\<($,Mp$l$k(B](https://www.ruby-forum.com/t/b-9-l-c-icf-n-b-io-flush-b-gi-mp-l-k-b/136661)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 0\
**Last updated:** [May 5, 2008, 9:45am UTC](https://www.ruby-forum.com/t/b-9-l-c-icf-n-b-io-flush-b-gi-mp-l-k-b/136661 "2008-05-05T09:45:12Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B e$B%9%l%C%ICf$GJ8;z?t$,e(B PIPE\_BUF e$B$N#2G\\0J\>e$NJ8;zNs$re(B IO#flush e$B$7$?\>l9g!“J8;zNs$,ES@Z$l$k$3$H$,$”$j$^$9!#e(B e$B$^$?F1MM$KJ8;z?t$,e(B PIPE\_BUF e$B0J\>e$NJ8;zNs$G$Oe(B e$B=PNO$KM\>J,…

---

## [Patch for defined?(C && 0) / defined?(super())](https://www.ruby-forum.com/t/patch-for-defined-c-0-defined-super/136659)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 0\
**Last updated:** [May 5, 2008, 9:43am UTC](https://www.ruby-forum.com/t/patch-for-defined-c-0-defined-super/136659 "2008-05-05T09:43:27Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B defined? C && 0 e$B$de(B defined?(super()) e$B$,e(B BUG e$B$GMn$A$J$$$h$&$K$9$k%Q%C%A$r=q$-$^$7$?!#e(B e$B$^$?!“e(Bdefined?(super()) e$B$N%3%s%Q%$%k7k2L$r8+$F$\_$k$He(B NODE\_SUPER e$B$,e(B “ex…

---

## [New user problem about xmpp4r](https://www.ruby-forum.com/t/new-user-problem-about-xmpp4r/133454)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 4\
**Last updated:** [May 5, 2008, 8:56am UTC](https://www.ruby-forum.com/t/new-user-problem-about-xmpp4r/133454 "2008-05-05T08:56:40Z")

</div>

Hi. I’m mew user of xmpp4r. After I install xmpp4r and xmpp4r-sample completely. and I go to C:\\Program Files\\Ruby\\lib\\ruby\\gems\\1.8\\gems\\xmpp4r-0.3.2\\data\\doc\\xmpp4r\\examples\\basic that I found many example program …

---

## [Insns.def:922: warning: \`klass' might be used uninitialized in this function](https://www.ruby-forum.com/t/insns-def-warning-klass-might-be-used-uninitialized-in-this-function/136653)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 5, 2008, 6:52am UTC](https://www.ruby-forum.com/t/insns-def-warning-klass-might-be-used-uninitialized-in-this-function/136653 "2008-05-05T06:52:08Z")

</div>

e$B0J2\<$N7Y9p$,A}$($F$$$^$9!#e(B -vm.inc:727: warning: unused variable flag' +vm.inc:717: warning: unused variable flag’ +In file included from vm.c:1028: +insns.def:922: warning: \`klass’ might be used uninitialized i…

---

## [Matrix-element extractor -- How to define it](https://www.ruby-forum.com/t/matrix-element-extractor-how-to-define-it/136578)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 5\
**Last updated:** [May 5, 2008, 5:40am UTC](https://www.ruby-forum.com/t/matrix-element-extractor-how-to-define-it/136578 "2008-05-05T05:40:49Z")

</div>

Hi, I defined and populated a 9x9 matrix (Array of Arrays) of strings, m I defined an element-extractor: class Array def get(i,j) line =self\[i-1\] char = line\[j-1\] end end To get the first element of the second r…

---

## [Backreferences in case statements](https://www.ruby-forum.com/t/backreferences-in-case-statements/136560)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [May 5, 2008, 2:48am UTC](https://www.ruby-forum.com/t/backreferences-in-case-statements/136560 "2008-05-05T02:48:56Z")

</div>

Hi, I am not sure if this is possible. I have a case statement which checks for a regular expression. For example: case text when /(abc)(.)/ when /(xyz)(.)/ end In the above snippet how can I use the instance vari…

---

## [Don't wait for Exception in threads](https://www.ruby-forum.com/t/dont-wait-for-exception-in-threads/136629)

<div class="topic-metadata">

**Author:** [@emilsverige](https://www.ruby-forum.com/u/emilsverige)\
**Replies:** 3\
**Last updated:** [May 4, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/dont-wait-for-exception-in-threads/136629 "2008-05-04T21:07:42Z")

</div>

I have two threads running in parallell, like this: #################### t1=Thread.new{ 50.times{ p “thread one” sleep 0.1 } } t2=Thread.new{ p “thread two” raise “error in thread two” } t1.join t2.join ###…

---

## [FastRI, Error on full-text search](https://www.ruby-forum.com/t/fastri-error-on-full-text-search/136628)

<div class="topic-metadata">

**Author:** [@Daniel\_SchSSSSmer](https://www.ruby-forum.com/u/Daniel_SchSSSSmer)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/fastri-error-on-full-text-search/136628 "2008-05-04T20:05:42Z")

</div>

Hi, every time I use FastRI’s full-text search, I get an error: fastri-server -b Indexing RI docs for fastri version 0.3.1.1. Indexing RI docs for rubygems version 1.1.1. Building index. Indexed: 9065 methods 1584…

---

## [Array combination check](https://www.ruby-forum.com/t/array-combination-check/136612)

<div class="topic-metadata">

**Author:** [@kaepora](https://www.ruby-forum.com/u/kaepora)\
**Replies:** 8\
**Last updated:** [May 4, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/array-combination-check/136612 "2008-05-04T15:28:42Z")

</div>

Hey everyone, I have an array called bunny. I want to check every single combination of the strings inside bunny against a string called cow and see if it matches, starting from the smallest combination to the largest…

---

## [StringIO#readlines(nil)](https://www.ruby-forum.com/t/stringio-readlines-nil/136616)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/stringio-readlines-nil/136616 "2008-05-04T14:59:15Z")

</div>

e$B0J2\<$N$h$&$Ke(B StringIO#readlines e$B$Ke(B nil e$B$rM?$($k$He(B TypeError e$B$K$J$j$^$9!#e(B % ./ruby -rstringio -e ‘p StringIO.new(“a\\nb\\n”).readlines(nil)’ -e:1:in readlines': can't convert nil into String (Typ…

---

## [@a?, @a! interpolation](https://www.ruby-forum.com/t/a-a-interpolation/136607)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 12:28pm UTC](https://www.ruby-forum.com/t/a-a-interpolation/136607 "2008-05-04T12:28:14Z")

</div>

e$B0J2\<$N$h$&$K!"e(B@a?, @a! e$B$,%$%s%9%?%s%9JQ?t$H$5$l$k$N$OJQ$G$Oe(B e$B$J$$$G$7$g$&$+!#e(B % ./ruby -ve ‘@a = “x”; p “\[#@a?\]\[#@a!\]”’ ruby 1.9.0 (2008-05-02 revision 16286) \[i686-linux\] -e:1: warning: instance var…

---

## [The story of Ruby and Python in Silverlight](https://www.ruby-forum.com/t/the-story-of-ruby-and-python-in-silverlight/136608)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 10:30am UTC](https://www.ruby-forum.com/t/the-story-of-ruby-and-python-in-silverlight/136608 "2008-05-04T10:30:23Z")

</div>

http://lists.ironpython.com/pipermail/users-ironpython.com/2008-March/006559.html This is a really old thread from Michael on the IronPython Discussions list, but while looking through old mail I found it and realized …

---

## [Thread.current.key? nil](https://www.ruby-forum.com/t/thread-current-key-nil/136601)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 9:34am UTC](https://www.ruby-forum.com/t/thread-current-key-nil/136601 "2008-05-04T09:34:40Z")

</div>

e$B0J2\<$N$h$&$K!“e(BThread.current.key? nil e$B$N5sF0$,%9%l%C%IJQ?t$,e(B e$B$”$k$+$I$&$+$GJQ$o$j$^$9!#e(B % ./ruby -ve ’ p Thread.current.key? nil Thread.current\[:a\] = 1 p Thread.current.key? nil ’ ruby 1.9.0 (200…

---

## ["bb".tr\_s("^a", "c")](https://www.ruby-forum.com/t/bb-tr-s-a-c/136599)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 8:18am UTC](https://www.ruby-forum.com/t/bb-tr-s-a-c/136599 "2008-05-04T08:18:25Z")

</div>

e$B0J2\<$N$h$&$Ke(B “bb”.tr\_s("^a", “c”) e$B$,e(B “cc” e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘p “bb”.tr\_s("^a", “c”)’ ruby 1.9.0 (2008-05-02 revision 16285) \[i686-linux\] “cc” 1.8 e$B$G$Oe(B “c” e$B$K$J$j$^$9!#e(B % ruby-1.…

---

## [Ruby 1.9 wishlist](https://www.ruby-forum.com/t/ruby-1-9-wishlist/136495)

<div class="topic-metadata">

**Author:** [@coderrr](https://www.ruby-forum.com/u/coderrr)\
**Replies:** 15\
**Last updated:** [May 4, 2008, 6:40am UTC](https://www.ruby-forum.com/t/ruby-1-9-wishlist/136495 "2008-05-04T06:40:44Z")

</div>

Hey I just put together a list of stuff I totally wish Ruby had and I think would make a lot of people’s lives better. In the order of importance: rescue/ensure available in all blocks arr.each do |e| e.do\_somethin…

---

## [Str.each\_line("")](https://www.ruby-forum.com/t/str-each-line/136595)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 5:54am UTC](https://www.ruby-forum.com/t/str-each-line/136595 "2008-05-04T05:54:34Z")

</div>

each\_line e$B$K6h@Z$j$H$7$F6uJ8;zNs$rM?$($k$N$O%Q%i%0%i%U%b!\<%Ie(B e$B$H$$$&$d$D$GJ#?t$NO"B3$7$?2~9T$r6h@Z$j$H$9$k$b$N$@$C$?$H;W$&e(B e$B$N$G$9$,!"$R$H$D$N2~9T$G6h@Z$i$l$F$7$^$$$^$9!#e(B % ./ruby -ve ‘“a\\nb\\n\\nc\\nd\\n”…

---

## [Module ::M in a module](https://www.ruby-forum.com/t/module-m-in-a-module/136593)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 4:40am UTC](https://www.ruby-forum.com/t/module-m-in-a-module/136593 "2008-05-04T04:40:56Z")

</div>

e$B0J2\<$N$h$&$K!"e(Bmodule M2 e$B$NCf$Ke(B module ::M e$B$H=q$$$?;~!"e(B :: e$B$OL5;k$5$l$Fe(B M2::M e$B$,Dj5A$5$l$k$h$&$G$9!#e(B % ./ruby -ve ’ module M def self.m() p :m end end module M2 module ::M p self p M…

---

## [A ? b : c](https://www.ruby-forum.com/t/a-b-c/136551)

<div class="topic-metadata">

**Author:** [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Replies:** 12\
**Last updated:** [May 4, 2008, 4:01am UTC](https://www.ruby-forum.com/t/a-b-c/136551 "2008-05-04T04:01:06Z")

</div>

Hi all! please explain, what is it? what he is doing? example: x = 6 y = x == 5 ? 0 : 2 puts y // prints 2 or: x == 5 ? puts(“one”) : puts(“two”) # Prints two thanks.

---

## [FTP and/or RIO (module) connection problem](https://www.ruby-forum.com/t/ftp-and-or-rio-module-connection-problem/136586)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/ftp-and-or-rio-module-connection-problem/136586 "2008-05-03T23:59:38Z")

</div>

I wrote a script to download a bunch of files from an FTP site and it uses the module RIO to actually copy it to the HD. And every random amount of files the script gets the error “An established connection was aborte…

---

## [Error compiling ruby under AIX 5.3 with GCC during the make phase](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 3\
**Last updated:** [May 3, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572 "2008-05-03T23:49:32Z")

</div>

Team, I was trying to compile ruby 1.8.6-p114 under AIX 5.3 with gcc version 4.2.0. During the make phase I received the following error: … rbconfig.rb updated compiling Win32API compiling bigdecimal mkdir -p …/……

---

## [Ruby Hash/Array to\_yaml is slow](https://www.ruby-forum.com/t/ruby-hash-array-to-yaml-is-slow/136536)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/ruby-hash-array-to-yaml-is-slow/136536 "2008-05-03T22:12:33Z")

</div>

I try to convert a ruby array(contains hash and array) to yaml and it takes 60 seconds to perform the job and it consumes a lot of memory and full cpu usage(almost 100%). The ruby object is very big and it will produc…

---

## [Why there is not "replace" method for Fixnum?](https://www.ruby-forum.com/t/why-there-is-not-replace-method-for-fixnum/136568)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 9\
**Last updated:** [May 3, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/why-there-is-not-replace-method-for-fixnum/136568 "2008-05-03T21:35:33Z")

</div>

Hi, using String#replace I can “simulate” a pointer (thanks to David A. for the explanation): a = “orignal a value” b = a b = “new value” a =\> “original a value” b =\> “new value” This is obvious: after the new …

---

## [Friday Status Update](https://www.ruby-forum.com/t/friday-status-update/136516)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 8\
**Last updated:** [May 3, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/friday-status-update/136516 "2008-05-03T20:10:49Z")

</div>

Like we talked about earlier, let’s give an update on what we are working on I’m working on hacking optparse to work so that we can update to the newest Rubinius spec’s. Then I’ll be closing out a whole slew of bugs. …

---

## [RMagick 2.3.0](https://www.ruby-forum.com/t/rmagick-2-3-0/133289)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 10\
**Last updated:** [May 3, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/rmagick-2-3-0/133289 "2008-05-03T18:36:35Z")

</div>

I’ve just uploaded RMagick 2.3.0. This release adds two new methods to the Image class. The encipher method produces an enciphered version of an image. The decipher method produces a deciphered version of an enciphere…

---

## [Something straange with cgi](https://www.ruby-forum.com/t/something-straange-with-cgi/136492)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 4\
**Last updated:** [May 3, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/something-straange-with-cgi/136492 "2008-05-03T18:20:59Z")

</div>

i have a cgi reading a post cgi\[‘search’\] the value is the name of file which might exists under “/path/to” because i’m a newbie with cgi, i want to print only if the file exist or not : file="/Users/yt/man/#{cgi\[‘se…

---

## [(-1).div(2.0)](https://www.ruby-forum.com/t/1-div-2-0/136559)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/1-div-2-0/136559 "2008-05-03T17:44:30Z")

</div>

(-1).div(2.0) e$B$,e(B 0 e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘p((-1).div(2.0))’ ruby 1.9.0 (2008-05-02 revision 16277) \[i686-linux\] 0 e$B$7$+$7!"e(B(-1).divmod(2.0) e$B$de(B (-1).div(2) e$B$HHf3S$9$k$H!"e(B-1 e$B$,e(B …

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

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