# Ruby

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

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

---

## [Testing scheme flawed; correction plan OK?](https://www.ruby-forum.com/t/testing-scheme-flawed-correction-plan-ok/78341)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 0\
**Last updated:** [December 5, 2006, 3:06am UTC](https://www.ruby-forum.com/t/testing-scheme-flawed-correction-plan-ok/78341 "2006-12-05T03:06:00Z")

</div>

Hi, My Setup Program defines class | Test case requires Program for test method Roman1 =\> Roman | tc\_TestA.rb =\> Roman1 =\> testA Roman2 =\> Roman | tc\_TestB.rb =\> Roman2 =\> testB Roman3 =\> Roman | tc\_TestC…

---

## [Ruby Tk and Threads error](https://www.ruby-forum.com/t/ruby-tk-and-threads-error/77808)

<div class="topic-metadata">

**Author:** [@jorge\_santiago](https://www.ruby-forum.com/u/jorge_santiago)\
**Replies:** 4\
**Last updated:** [December 5, 2006, 2:47am UTC](https://www.ruby-forum.com/t/ruby-tk-and-threads-error/77808 "2006-12-05T02:47:59Z")

</div>

Hi, I’m coding an application with Ruby and RubyTk that draws a huge amount of lines on a TkcCanvas. I split the drawing code in a new thread so the main interface remains responsive to the user to cancel the operati…

---

## [Registration open for erubycon](https://www.ruby-forum.com/t/registration-open-for-erubycon/78339)

<div class="topic-metadata">

**Author:** [@Joe\_OBrien](https://www.ruby-forum.com/u/Joe_OBrien)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 2:43am UTC](https://www.ruby-forum.com/t/registration-open-for-erubycon/78339 "2006-12-05T02:43:58Z")

</div>

Registration is open for erubycon (http://erubycon.com), the first conference specifically for demonstrating ruby’s place in the Enterprise world. Early bird registration runs until January 9. The speaker list continu…

---

## [How to use a String obj both in Proc.new and for puts](https://www.ruby-forum.com/t/how-to-use-a-string-obj-both-in-proc-new-and-for-puts/78268)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 3\
**Last updated:** [December 5, 2006, 12:35am UTC](https://www.ruby-forum.com/t/how-to-use-a-string-obj-both-in-proc-new-and-for-puts/78268 "2006-12-05T00:35:37Z")

</div>

Hi All, In the appended code I duplicate the text so I can both display it and define a new Proc. Is there away I can use, say, text = ‘\[\*1…n\].join(", ")’ in the body of the Proc spec. and thus simply puts text? T…

---

## [Swig, Ruby, C++ question](https://www.ruby-forum.com/t/swig-ruby-c-question/78307)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [December 5, 2006, 12:07am UTC](https://www.ruby-forum.com/t/swig-ruby-c-question/78307 "2006-12-05T00:07:36Z")

</div>

Hi all, Solaris 10 swig 1.3.21 Sun Studio 11 I’m trying my hand at SWIG here. I’ve read over SWIG and Ruby, but I’m confused as to how to setup the interface file so that I get a class. I don’t want a module, if…

---

## [Specifying a gem version](https://www.ruby-forum.com/t/specifying-a-gem-version/78264)

<div class="topic-metadata">

**Author:** [@madscene](https://www.ruby-forum.com/u/madscene)\
**Replies:** 1\
**Last updated:** [December 4, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/specifying-a-gem-version/78264 "2006-12-04T23:35:30Z")

</div>

I’m new to ruby so I have no clue what I’m doing yet here. I downloaded active\_merchant code and attempted to run some tests using active\_support 1.3.1. That work just fine for me. I upgraded rails to 1.2rc1 and it…

---

## [Threads and class variables](https://www.ruby-forum.com/t/threads-and-class-variables/78310)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 2\
**Last updated:** [December 4, 2006, 10:58pm UTC](https://www.ruby-forum.com/t/threads-and-class-variables/78310 "2006-12-04T22:58:54Z")

</div>

I am trying to run 3 threads of a process using 3 sets of data. The process is run from a class I made but for some reason when this certain class method is called it seems to be getting the same data from each thread…

---

## [Dangerous speed skating](https://www.ruby-forum.com/t/dangerous-speed-skating/78308)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 4, 2006, 9:45pm UTC](https://www.ruby-forum.com/t/dangerous-speed-skating/78308 "2006-12-04T21:45:09Z")

</div>

hi all- if any of you guys are planning on running redlights on your roller blades you should talk to joel first - he should be able to wire your helmet up with a little cpu running some ruby code that’ll warn you i…

---

## [Ruby web servers, threads and sessions](https://www.ruby-forum.com/t/ruby-web-servers-threads-and-sessions/78283)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 5\
**Last updated:** [December 4, 2006, 9:41pm UTC](https://www.ruby-forum.com/t/ruby-web-servers-threads-and-sessions/78283 "2006-12-04T21:41:09Z")

</div>

Is there a pure ruby web server that can start a thread that performs some task and store it in a session allowing the user to control the task from the browser? Similar to a what I can do with a java web server?

---

## [How to make "generic" YAML calls?](https://www.ruby-forum.com/t/how-to-make-generic-yaml-calls/77840)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [December 4, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/how-to-make-generic-yaml-calls/77840 "2006-12-04T21:21:02Z")

</div>

Hi, I have a Test.Yaml file like; This: Thing: Foo That: Thing: Bar My program works with this code; require ‘yaml’ LocalTree = YAML.load\_file(“test.yaml”) puts LocalTree\[“This”\]\[“Thing”\] puts LocalTree\[“That”\]…

---

## [Utilizing dlls in windows programming?](https://www.ruby-forum.com/t/utilizing-dlls-in-windows-programming/78229)

<div class="topic-metadata">

**Author:** [@warhero](https://www.ruby-forum.com/u/warhero)\
**Replies:** 2\
**Last updated:** [December 4, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/utilizing-dlls-in-windows-programming/78229 "2006-12-04T21:00:56Z")

</div>

This is a two part question: I have been reading the pick-axe book and was reading the chapter on ruby and windows. I was reading documentation on the DL library. (is library the correct term for that?), but my questi…

---

## [BUG: ruby-mode.el : '/=' operator breaks following indentati](https://www.ruby-forum.com/t/bug-ruby-mode-el-operator-breaks-following-indentati/77725)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 7\
**Last updated:** [December 4, 2006, 7:32pm UTC](https://www.ruby-forum.com/t/bug-ruby-mode-el-operator-breaks-following-indentati/77725 "2006-12-04T19:32:15Z")

</div>

Using emacs 21.4, ruby-mode.el from Ruby 1.8.5 (byte-compiled), if I open a file with the following code … def foo x /= y bar end …move the cursor to the word “bar” and press Tab, nothing happens! If I replace “/=…

---

## [Gtk::ProgressBar set\_fraction doesn't work](https://www.ruby-forum.com/t/gtk-progressbar-set-fraction-doesnt-work/78168)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 8\
**Last updated:** [December 4, 2006, 7:32pm UTC](https://www.ruby-forum.com/t/gtk-progressbar-set-fraction-doesnt-work/78168 "2006-12-04T19:32:14Z")

</div>

Hello, i have some problems with the Gtk::ProgressBar. I download a file and i want to show a progressbar. The method below creates a new dialog with a bar and starts the download for each file. The puts-line work ver…

---

## [Help, my 'case/when' code doesn't work](https://www.ruby-forum.com/t/help-my-case-when-code-doesnt-work/78267)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 5\
**Last updated:** [December 4, 2006, 7:22pm UTC](https://www.ruby-forum.com/t/help-my-case-when-code-doesnt-work/78267 "2006-12-04T19:22:05Z")

</div>

I’ve been using ruby for several months now so imagine my surprise when I wrote something using the ‘case’ construct and I discovered that I didn’t understand how to use it! What’s worse is that even after looking thr…

---

## [I'm searching for a ruby-programming penfriend](https://www.ruby-forum.com/t/im-searching-for-a-ruby-programming-penfriend/78165)

<div class="topic-metadata">

**Author:** [@anselmthecrack](https://www.ruby-forum.com/u/anselmthecrack)\
**Replies:** 3\
**Last updated:** [December 4, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/im-searching-for-a-ruby-programming-penfriend/78165 "2006-12-04T18:43:47Z")

</div>

Hello! I know this post doesn’t really fit into here, because there isn’t really an off-topic forum where i could post. I’m searching for an English (or from an english-speaking coutry) penfriend who can programm rub…

---

## [Testing use of binding: got spurious error message](https://www.ruby-forum.com/t/testing-use-of-binding-got-spurious-error-message/78209)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 2\
**Last updated:** [December 4, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/testing-use-of-binding-got-spurious-error-message/78209 "2006-12-04T18:31:54Z")

</div>

Hi All, The program below ends with eval(…) producing an error message, as shown in the comments at the end of the code. How can I direct the offending output to a “bit bucket”? Thanks in Advance, Richard class M…

---

## [Intermittant problem with Hpricot](https://www.ruby-forum.com/t/intermittant-problem-with-hpricot/78185)

<div class="topic-metadata">

**Author:** [@demallien](https://www.ruby-forum.com/u/demallien)\
**Replies:** 9\
**Last updated:** [December 4, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/intermittant-problem-with-hpricot/78185 "2006-12-04T18:05:50Z")

</div>

I’ve run into a wierd problem with the Hpricot gem. I don’t know if this is a problem with gems in general on my system, or if it’s specific to Hpricot, so I’m posting here. Basically I have code as follows: require…

---

## [Testing the Gateway](https://www.ruby-forum.com/t/testing-the-gateway/78255)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [December 4, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/testing-the-gateway/78255 "2006-12-04T17:05:40Z")

</div>

Please ignore. James Edward G. II

---

## [Redefine a module function in a method](https://www.ruby-forum.com/t/redefine-a-module-function-in-a-method/78257)

<div class="topic-metadata">

**Author:** [@mangoosta](https://www.ruby-forum.com/u/mangoosta)\
**Replies:** 1\
**Last updated:** [December 4, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/redefine-a-module-function-in-a-method/78257 "2006-12-04T16:37:34Z")

</div>

Hi all, I would like to redefine a mofule function in a method, play with my module and redefine this function with original one. I can’t find a way to do this because I can’t open a module in a method.

---

## [Module#constants excluding superclass](https://www.ruby-forum.com/t/module-constants-excluding-superclass/78253)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 4\
**Last updated:** [December 4, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/module-constants-excluding-superclass/78253 "2006-12-04T16:27:33Z")

</div>

e$B$J$+$@$G$9!#e(B http://jp.rubyist.net/magazine/?0017-CodeReview#l16 e$B$K$"$C$?7oe(B e$B$N%Q%C%A$G$9!#e(B e$B$\`$7$m!"$=$&$$$&\>l9g$Oe(B const\_get, const\_defined? e$B$r;H$C$F$/$l!"e(B e$B$H$$$$$?$$5$$b$7$^$9$,!#e(B …

---

## [What's the current standing of Rant vs. Rake?](https://www.ruby-forum.com/t/whats-the-current-standing-of-rant-vs-rake/77856)

<div class="topic-metadata">

**Author:** [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Replies:** 4\
**Last updated:** [December 4, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/whats-the-current-standing-of-rant-vs-rake/77856 "2006-12-04T15:13:20Z")

</div>

Rake seems to be used widely and extensively. Rails uses it pretty extensively, as do quite a few of the tools I’m currently reviewing for the purposes of another thread \[1\]. So what about Rant \[2\]? It’s certainly not…

---

## [How to populate a 2D array data into Excel using WIN32OLE](https://www.ruby-forum.com/t/how-to-populate-a-2d-array-data-into-excel-using-win32ole/78234)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [December 4, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/how-to-populate-a-2d-array-data-into-excel-using-win32ole/78234 "2006-12-04T15:01:19Z")

</div>

Hi all, I process a raw data file into a 2D array. The only way I can think of to populate it into Excel is to use the following lines, which is obviously not a good way: worksheet.Range(“A1:L1”).Value= f\_2D\_array\[0…

---

## [Getting the source code of a block](https://www.ruby-forum.com/t/getting-the-source-code-of-a-block/78238)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 7\
**Last updated:** [December 4, 2006, 2:55pm UTC](https://www.ruby-forum.com/t/getting-the-source-code-of-a-block/78238 "2006-12-04T14:55:18Z")

</div>

Hello, Is the following thing possible somehow? def foo(&bar) do\_something\_with(bar) end baz = foo { puts ‘hello’; i +=1; fluff(ork) } now, baz should contain the string “puts ‘hello’; i +=1; fluff(ork)” since I …

---

## [FastRI, handling identical class names and methods](https://www.ruby-forum.com/t/fastri-handling-identical-class-names-and-methods/78216)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [December 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/fastri-handling-identical-class-names-and-methods/78216 "2006-12-04T14:45:16Z")

</div>

Hi, FastRI 0.2.1 Ruby 1.8.5 Windows XP With FastRI (or rather, fri) how do you distinguish a lookup on classes with identical names and methods (and no namespace to distinguish them)? For example, I have the Pathna…

---

## [Segmentation fault, proc, eval, long string](https://www.ruby-forum.com/t/segmentation-fault-proc-eval-long-string/77792)

<div class="topic-metadata">

**Author:** [@bobh](https://www.ruby-forum.com/u/bobh)\
**Replies:** 26\
**Last updated:** [December 4, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/segmentation-fault-proc-eval-long-string/77792 "2006-12-04T14:37:15Z")

</div>

Hi, I’m getting a ‘Segmentation fault’ in ruby 1.8.5 running on debian in a Xen VPS. The same code running on OS X and a different version of linux has no problems. The process to get this is maybe a little strange. …

---

## [Why this script doesn't work?](https://www.ruby-forum.com/t/why-this-script-doesnt-work/78219)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [December 4, 2006, 10:34am UTC](https://www.ruby-forum.com/t/why-this-script-doesnt-work/78219 "2006-12-04T10:34:08Z")

</div>

Hi all, I copy a script from WIN32OLE documentation and run it. I find that Ruby complains it at line cells = sheets.cells(“A1:A5”). Do I miss something? Thanks, Li require ‘win32ole’ excel = WIN32OLE.new(‘Exc…

---

## [Mailing list question?](https://www.ruby-forum.com/t/mailing-list-question/78176)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 5\
**Last updated:** [December 4, 2006, 9:26am UTC](https://www.ruby-forum.com/t/mailing-list-question/78176 "2006-12-04T09:26:38Z")

</div>

Hi all, I just join another list at ruby-talk. I send the post to the following address only removed\_email\_address@domain.invalid But they all appear in someone else post. How to avoid this problem? Thanks, Li

---

## [Method overloading like Java?](https://www.ruby-forum.com/t/method-overloading-like-java/78215)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 11\
**Last updated:** [December 4, 2006, 9:26am UTC](https://www.ruby-forum.com/t/method-overloading-like-java/78215 "2006-12-04T09:26:37Z")

</div>

In Java, you could write the following code: public void foo(int x) { /\* do something\*/ } public void foo(String x) { /\* do something\*/ } int x1 String x2 foo(x1) foo(x2) The 2nd to last line would call the firs…

---

## [Library to read/write TAR files](https://www.ruby-forum.com/t/library-to-read-write-tar-files/77830)

<div class="topic-metadata">

**Author:** [@mangoosta](https://www.ruby-forum.com/u/mangoosta)\
**Replies:** 7\
**Last updated:** [December 4, 2006, 8:54am UTC](https://www.ruby-forum.com/t/library-to-read-write-tar-files/77830 "2006-12-04T08:54:35Z")

</div>

Hello, I’m looking for a library to read/write TAR files. I’ve had a look on RubyForge and searched for one on Google but found nothing (except an old library that doesn’t seem to be maintained anymore). Does anyone …

---

## [Is RUBY what I'm looking for?](https://www.ruby-forum.com/t/is-ruby-what-im-looking-for/77864)

<div class="topic-metadata">

**Author:** [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Replies:** 2\
**Last updated:** [December 4, 2006, 7:52am UTC](https://www.ruby-forum.com/t/is-ruby-what-im-looking-for/77864 "2006-12-04T07:52:54Z")

</div>

Hello!!! I have a question, that I hope someone will answer according to what I expect, or basically to what I’m asking. I’m a Graphic designer completely new to programmnig languages, but I’ve been studying hard the…

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

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