# Ruby

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

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

---

## [Ruby mentoring](https://www.ruby-forum.com/t/ruby-mentoring/136556)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 5\
**Last updated:** [May 6, 2008, 9:48am UTC](https://www.ruby-forum.com/t/ruby-mentoring/136556 "2008-05-06T09:48:08Z")

</div>

Luka luka’s recent messages here to the list have made me note something: there’s a lot of redundancy in answering questions on the mailing list because someone asks and a dozen people answer. (Too, I’ve noticed that…

---

## [Ruby has to be interpreted line by line in runtime, does this affect Ruby's execution efficiency ba](https://www.ruby-forum.com/t/ruby-has-to-be-interpreted-line-by-line-in-runtime-does-this-affect-rubys-execution-efficiency-ba/136761)

<div class="topic-metadata">

**Author:** [@Erwin\_M](https://www.ruby-forum.com/u/Erwin_M)\
**Replies:** 3\
**Last updated:** [May 6, 2008, 9:15am UTC](https://www.ruby-forum.com/t/ruby-has-to-be-interpreted-line-by-line-in-runtime-does-this-affect-rubys-execution-efficiency-ba/136761 "2008-05-06T09:15:07Z")

</div>

Why doesn’t the inventor design a better approach to avoid this problem?

---

## [Hash question](https://www.ruby-forum.com/t/hash-question/136684)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 5\
**Last updated:** [May 6, 2008, 8:42am UTC](https://www.ruby-forum.com/t/hash-question/136684 "2008-05-06T08:42:25Z")

</div>

I would like to return only part of hash as hash object. Example: h = { “a” =\> 100, “b” =\> 200, “c” =\> 300 } result = h.somemethod(‘a’,‘c’) should result in { “a” =\> 100, “c” =\> 200} Is this already build in Hash obj…

---

## [Debugging IR](https://www.ruby-forum.com/t/debugging-ir/133077)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 8\
**Last updated:** [May 6, 2008, 8:01am UTC](https://www.ruby-forum.com/t/debugging-ir/133077 "2008-05-06T08:01:47Z")

</div>

Hi all, I’ve been following IR since pre-alpha and have enjoyed being able to play with .NET within Ruby. Since the beginning, the one thing that I’ve been most looking forward to has been debugging. I’ve seen that s…

---

## [JDBC Oracle](https://www.ruby-forum.com/t/jdbc-oracle/136502)

<div class="topic-metadata">

**Author:** [@lgas](https://www.ruby-forum.com/u/lgas)\
**Replies:** 3\
**Last updated:** [May 6, 2008, 7:40am UTC](https://www.ruby-forum.com/t/jdbc-oracle/136502 "2008-05-06T07:40:05Z")

</div>

Hi, Iâ€™m trying to migrate the AR script on to Oracle database. Im using jdbc adapter. There are number of functions defined in jdbc\_oracle.rb, but when I call them (eg: rename\_column(â€¦)) in my AR script, it says …

---

## [Possible regular expression](https://www.ruby-forum.com/t/possible-regular-expression/136747)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 4\
**Last updated:** [May 6, 2008, 6:33am UTC](https://www.ruby-forum.com/t/possible-regular-expression/136747 "2008-05-06T06:33:35Z")

</div>

Ruby’s regular expression engine appears to act incorrectly when given a non-greedy match-range of the form {m,n}? Take this example: “Age: 21” =~ /Age.{0,60}: (\[\\w\]+)/ This returns 0, as expected and $1 is set to “2…

---

## [FastXml 0.1.91 - first real release](https://www.ruby-forum.com/t/fastxml-0-1-91-first-real-release/136760)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 0\
**Last updated:** [May 6, 2008, 6:31am UTC](https://www.ruby-forum.com/t/fastxml-0-1-91-first-real-release/136760 "2008-05-06T06:31:32Z")

</div>

= FastXml, a simple fast xml library using libxml and libxslt == Overview FastXml is: not standalone, it requires libxml and libxslt it attempts to provide the speediest xml parsing library available for ruby it …

---

## [JRuby and -XstartOnFirstThread on carbon](https://www.ruby-forum.com/t/jruby-and-xstartonfirstthread-on-carbon/136757)

<div class="topic-metadata">

**Author:** [@Ketan\_Padegaonkar](https://www.ruby-forum.com/u/Ketan_Padegaonkar)\
**Replies:** 0\
**Last updated:** [May 6, 2008, 6:17am UTC](https://www.ruby-forum.com/t/jruby-and-xstartonfirstthread-on-carbon/136757 "2008-05-06T06:17:30Z")

</div>

JRuby fails to start, without any errors on the console, when - XstartOnFirstThread or (-J-XstartOnFirstThread) is used as a jvm option on carbon. This has already been asked here (http://www.nabble.com/Problem-using…

---

## [Help with array](https://www.ruby-forum.com/t/help-with-array/136717)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 3\
**Last updated:** [May 6, 2008, 5:40am UTC](https://www.ruby-forum.com/t/help-with-array/136717 "2008-05-06T05:40:40Z")

</div>

Team, On my never ending saga to learn Ruby, I am trying to write a program to solve Sudoku puzzles. Given a multidimensional array (9x9) I am trying to inspect each row and each column as follows: Assume the follow…

---

## [Extending Array and assigning to self](https://www.ruby-forum.com/t/extending-array-and-assigning-to-self/136741)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 4\
**Last updated:** [May 6, 2008, 4:49am UTC](https://www.ruby-forum.com/t/extending-array-and-assigning-to-self/136741 "2008-05-06T04:49:02Z")

</div>

I’ve got this class that is essentially an array with a few things added. Here’s some of it: class Pages def initialize @content = \[\] end def import(file, page\_delimiter = ’') @content = file.read.split page\_delim…

---

## [ANN: DevFi podcast #1 - Buy/Build/Fork - with an interview of Dan Berger, forker of Ruby](https://www.ruby-forum.com/t/ann-devfi-podcast-1-buy-build-fork-with-an-interview-of-dan-berger-forker-of-ruby/136728)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 4:25am UTC](https://www.ruby-forum.com/t/ann-devfi-podcast-1-buy-build-fork-with-an-interview-of-dan-berger-forker-of-ruby/136728 "2008-05-06T04:25:04Z")

</div>

Peter J. and I have started a podcast on software development and becoming a better developer. While we’re not focused on Ruby, our first episode, about buying vs. building vs. forking, includes an interview with Dan…

---

## [Get rid of "... XX levels..." in error backtrace](https://www.ruby-forum.com/t/get-rid-of-xx-levels-in-error-backtrace/136724)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokS\_She](https://www.ruby-forum.com/u/Victor_SZverokS_She)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 1:47am UTC](https://www.ruby-forum.com/t/get-rid-of-xx-levels-in-error-backtrace/136724 "2008-05-06T01:47:44Z")

</div>

Hello all. The question seems simple, but I can’t neither found interpreter switch nor documentation/discussion about: Can I get rid of those “… XX levels…” in error message backtraces and receive full backtrace, ev…

---

## [Doodle 0.1.4 Released](https://www.ruby-forum.com/t/doodle-0-1-4-released/136743)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [May 6, 2008, 1:30am UTC](https://www.ruby-forum.com/t/doodle-0-1-4-released/136743 "2008-05-06T01:30:43Z")

</div>

doodle version 0.1.4 has been released. http://doodle.rubyforge.org Doodle is a gem for simplifying the definition of Ruby classes by making attributes and their properties more declarative. Doodle is eco-friendly: …

---

## [Need more help with Ruby and C](https://www.ruby-forum.com/t/need-more-help-with-ruby-and-c/136648)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 6\
**Last updated:** [May 5, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/need-more-help-with-ruby-and-c/136648 "2008-05-05T23:42:18Z")

</div>

Hello all, So I have something like the following in my C file: static VALUE rb\_cBar; static VALUE foo\_new() { VALUE new\_foo; … return new\_foo; } static VALUE execute(VALUE foos) { VALUE foo = rb\_ary\_entry(foos,…

---

## [This Week in Ruby (May 5, 2008)](https://www.ruby-forum.com/t/this-week-in-ruby-may-5-2008/136726)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 0\
**Last updated:** [May 5, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/this-week-in-ruby-may-5-2008/136726 "2008-05-05T22:10:39Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, here you can find the sixth edition of “This Week in Ruby”: Cheers, Antonio http://antoniocangiano.com - Zen and the Art of Programming http://stacktrace.i…

---

## [Log4r housekeeping](https://www.ruby-forum.com/t/log4r-housekeeping/135586)

<div class="topic-metadata">

**Author:** [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/log4r-housekeeping/135586 "2008-05-05T22:01:12Z")

</div>

Can I get log4r to change te log filename each day so that it is more easily housekept?

---

## [Capistrano on CentOS won't go](https://www.ruby-forum.com/t/capistrano-on-centos-wont-go/136718)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/capistrano-on-centos-wont-go/136718 "2008-05-05T21:55:16Z")

</div>

\[bary@miller ~\]$ cap -T /usr/lib/ruby/site\_ruby/1.8/rubygems.rb:523:in report\_activate\_error': Could not find RubyGem net-scp (\>= 1.0.0) (Gem::LoadError) from /usr/lib/ruby/site\_ruby/1.8/rubygems.rb:131:inactivate’ fro…

---

## [List links in a DIV using watir module](https://www.ruby-forum.com/t/list-links-in-a-div-using-watir-module/116635)

<div class="topic-metadata">

**Author:** [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 8:53pm UTC](https://www.ruby-forum.com/t/list-links-in-a-div-using-watir-module/116635 "2008-05-05T20:53:52Z")

</div>

Using the watir module, is there a way to show all the hyperlinks in a DIV? Can you please provide some code snippets?

---

## [CodeReview Question about diff file](https://www.ruby-forum.com/t/codereview-question-about-diff-file/136708)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/codereview-question-about-diff-file/136708 "2008-05-05T20:12:39Z")

</div>

First let me say I really like seeing the diff files for the shelvesets that the IronRuby team has been sending with the CodeReview emails to provide context. My question is this: how is tfpt used to generate those. …

---

## [Rb++ / rbgccxml 0.1 released!](https://www.ruby-forum.com/t/rb-rbgccxml-0-1-released/136706)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [May 5, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/rb-rbgccxml-0-1-released/136706 "2008-05-05T19:33:34Z")

</div>

Announcing the rb++ / rbgccxml Ruby extension generation framework! For anyone who wants an alternative to SWIG for generating Ruby extensions from C++ header files, look no further. == Project Documentation: http://…

---

## [How would you design regexps in the integer domain?](https://www.ruby-forum.com/t/how-would-you-design-regexps-in-the-integer-domain/136666)

<div class="topic-metadata">

**Author:** [@andreas\_l](https://www.ruby-forum.com/u/andreas_l)\
**Replies:** 12\
**Last updated:** [May 5, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/how-would-you-design-regexps-in-the-integer-domain/136666 "2008-05-05T19:12:49Z")

</div>

I’m trying to come up with a clean way to specify regexps in the integer domain. I.e. instead of describing a pattern of characters (as in normal regexps) one describes patterns of integers (“17 followed by 3 or 15” r…

---

## [Code Review: Ruby custom actions, various bug fixes](https://www.ruby-forum.com/t/code-review-ruby-custom-actions-various-bug-fixes/136664)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/code-review-ruby-custom-actions-various-bug-fixes/136664 "2008-05-05T18:48:09Z")

</div>

tfpt review /shelveset:Super17;REDMOND\\tomat DLR changes: Removes InvokeMethodAttributes. Makes ActionExpression factory public - it's needed by a custom Ruby action (ProtocolConverterAction). Ruby…

---

## [Help with rb\_iv\_set](https://www.ruby-forum.com/t/help-with-rb-iv-set/136647)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 4\
**Last updated:** [May 5, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/help-with-rb-iv-set/136647 "2008-05-05T18:36:21Z")

</div>

Hello all, I’m trying to use rb\_iv\_set to set a double value in a C extension I’m writing. rb\_iv\_set(self, “@voltage”, 1.01); This doesn’t seem to work, as I get a ‘0’ instead of ‘1.01’. If I use rb\_float\_new(1.01)…

---

## [String copy-on-write question](https://www.ruby-forum.com/t/string-copy-on-write-question/136699)

<div class="topic-metadata">

**Author:** [@larsch](https://www.ruby-forum.com/u/larsch)\
**Replies:** 4\
**Last updated:** [May 5, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/string-copy-on-write-question/136699 "2008-05-05T18:35:09Z")

</div>

Hello group, Ruby implements copy-on-write for strings, so you can do stuff like this very cheaply: str = 0.chr \* (2\*\*24) # 16MiB allocated str\[100…-1\] # this costs only a small amount of memory How come this opti…

---

## [Apache2 conf and mod\_ruby (mac os x 10.4.11)](https://www.ruby-forum.com/t/apache2-conf-and-mod-ruby-mac-os-x-10-4-11/136053)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 14\
**Last updated:** [May 5, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/apache2-conf-and-mod-ruby-mac-os-x-10-4-11/136053 "2008-05-05T18:22:26Z")

</div>

in my httpd.conf i have : LoadModule ruby\_module libexec/httpd/mod\_ruby.so … AddModule mod\_ruby.c and : for Apache::RubyRun RubyRequire apache/ruby-run exec files under /ruby as ruby scripts. \<Location /rub…

---

## [Recursive dup](https://www.ruby-forum.com/t/recursive-dup/136690)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [May 5, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/recursive-dup/136690 "2008-05-05T17:52:49Z")

</div>

Hi, it seems that “dup” method is not recursive, so if we do: obj\_b = obj\_a.dup then all the attributes of obj\_b will be a exact copy of attributes of obj\_a, and not references. But if an attribute of obj\_a is an obj…

---

## [Problem using Ruby classes from within a monkey patched Java class](https://www.ruby-forum.com/t/problem-using-ruby-classes-from-within-a-monkey-patched-java-class/136696)

<div class="topic-metadata">

**Author:** [@Tyler\_J](https://www.ruby-forum.com/u/Tyler_J)\
**Replies:** 0\
**Last updated:** [May 5, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/problem-using-ruby-classes-from-within-a-monkey-patched-java-class/136696 "2008-05-05T17:36:16Z")

</div>

Infrequently we’re seeing this exception from one of our runtimes (never all of them): wrong number of arguments (1 for 0) file:/usr/local/jboss-4.0.5-cluster/server/node1/tmp/deploy/tmp31413mmh.ear-contents/mmh-web-m…

---

## [Problem using System command in ruby](https://www.ruby-forum.com/t/problem-using-system-command-in-ruby/136652)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 10\
**Last updated:** [May 5, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/problem-using-system-command-in-ruby/136652 "2008-05-05T16:23:21Z")

</div>

HI All I am using WIndows gem “winclicker” to run windows properties. The code is as follows: " require ‘watir/winClicker’ system (“D:”) system (“cd ruby”) system (“cd Temp”) system (“ruby trial.rb”) " I am try…

---

## [4/29 Press Release - What Will the Web 2.0 Upgrade of the Entire Internet Mean To You?](https://www.ruby-forum.com/t/4-29-press-release-what-will-the-web-2-0-upgrade-of-the-entire-internet-mean-to-you/136639)

<div class="topic-metadata">

**Author:** [@Sapemota](https://www.ruby-forum.com/u/Sapemota)\
**Replies:** 7\
**Last updated:** [May 5, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/4-29-press-release-what-will-the-web-2-0-upgrade-of-the-entire-internet-mean-to-you/136639 "2008-05-05T15:41:01Z")

</div>

This really helps paint such a clear picture as to what the Web 2.0 Upgrade is: Company has NEW TECHNOLOGY that they say will CHANGE the ENTIRE INTERNET in 12 months. You may hear this from a lot of start-up technolo…

---

## [Ruby Class documentation](https://www.ruby-forum.com/t/ruby-class-documentation/136581)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 4\
**Last updated:** [May 5, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/ruby-class-documentation/136581 "2008-05-05T14:36:18Z")

</div>

Hi, I noticed that when I save an internet resource to my local disk, ruby keeps the file open until the program terminates. After some searching I noticed that close method should be called after you’re done with the …

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

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