# Ruby

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

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

---

## [Predefined variable to represent the ruby installation path?](https://www.ruby-forum.com/t/predefined-variable-to-represent-the-ruby-installation-path/79136)

<div class="topic-metadata">

**Author:** [@oliviabean](https://www.ruby-forum.com/u/oliviabean)\
**Replies:** 4\
**Last updated:** [December 13, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/predefined-variable-to-represent-the-ruby-installation-path/79136 "2006-12-13T14:20:21Z")

</div>

Is there a Predefined variable that represent the ruby installation path(on which directory ruby is installed)?

---

## [RedNails Released](https://www.ruby-forum.com/t/rednails-released/79228)

<div class="topic-metadata">

**Author:** [@Zev\_B](https://www.ruby-forum.com/u/Zev_B)\
**Replies:** 0\
**Last updated:** [December 13, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/rednails-released/79228 "2006-12-13T14:02:17Z")

</div>

RedNails is template driven data scraping API. http://rednails.rubyforge.org RedNails uses a template to create a regular expression that catches user marked variables. When a string of data is passed to RedNails it …

---

## [Create a Matrix](https://www.ruby-forum.com/t/create-a-matrix/79224)

<div class="topic-metadata">

**Author:** [@christopherl](https://www.ruby-forum.com/u/christopherl)\
**Replies:** 2\
**Last updated:** [December 13, 2006, 1:11pm UTC](https://www.ruby-forum.com/t/create-a-matrix/79224 "2006-12-13T13:11:02Z")

</div>

I was trying to create an n by n zero matrix, by calling the class Matrix: Matrix.zero(2). I got the error message: uninitialized constant Matrix (NameError), something I miss?

---

## [Hpricot selective text modification](https://www.ruby-forum.com/t/hpricot-selective-text-modification/79221)

<div class="topic-metadata">

**Author:** [@Siddharth\_Karandika](https://www.ruby-forum.com/u/Siddharth_Karandika)\
**Replies:** 5\
**Last updated:** [December 13, 2006, 12:26pm UTC](https://www.ruby-forum.com/t/hpricot-selective-text-modification/79221 "2006-12-13T12:26:07Z")

</div>

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/207625 is an answer to most of my requirements, except one. How can I do a selective traverse\_text so that I can skip text of specific tags? One option was …

---

## [Libxml and CDATA](https://www.ruby-forum.com/t/libxml-and-cdata/79199)

<div class="topic-metadata">

**Author:** [@thomasmaas](https://www.ruby-forum.com/u/thomasmaas)\
**Replies:** 1\
**Last updated:** [December 13, 2006, 11:28am UTC](https://www.ruby-forum.com/t/libxml-and-cdata/79199 "2006-12-13T11:28:00Z")

</div>

Hi, I need to add a CDATA element to an XML document. The libxml API documentation says that I can use Node.new\_cdata, but this doesn’t work here for some reason (Ubuntu with libxml-ruby 0.3.4-4): “undefined method ‘…

---

## [Storage binding](https://www.ruby-forum.com/t/storage-binding/79192)

<div class="topic-metadata">

**Author:** [@cannac](https://www.ruby-forum.com/u/cannac)\
**Replies:** 4\
**Last updated:** [December 13, 2006, 11:01am UTC](https://www.ruby-forum.com/t/storage-binding/79192 "2006-12-13T11:01:54Z")

</div>

Hi, I have also some another thing in Ruby that I am not sure about. What kind of storage binding is used in Ruby, as far as I understand there are no static variables (i’m not sure again), then Ruby uses both stack-…

---

## [Ruby/Informix 0.4.0 released](https://www.ruby-forum.com/t/ruby-informix-0-4-0-released/79216)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 0\
**Last updated:** [December 13, 2006, 10:37am UTC](https://www.ruby-forum.com/t/ruby-informix-0-4-0-released/79216 "2006-12-13T10:37:52Z")

</div>

Ruby/Informix is a Ruby extension for connecting to IBM Informix Dynamic Server, written in ESQL/C. It is being developed and heavily tested on Solaris/SPARC. It has been reported to work on Linux Fedora, SuSE Linux, …

---

## [Passing Proc as a parameter](https://www.ruby-forum.com/t/passing-proc-as-a-parameter/79189)

<div class="topic-metadata">

**Author:** [@cannac](https://www.ruby-forum.com/u/cannac)\
**Replies:** 3\
**Last updated:** [December 13, 2006, 2:27am UTC](https://www.ruby-forum.com/t/passing-proc-as-a-parameter/79189 "2006-12-13T02:27:23Z")

</div>

Hi, I’m a new user of Ruby, and trying to learn its features. But I have a difficulty to understand Proc class. What will be the referencing environment when we pass Proc as a parameter? and other question, how can …

---

## [Hiding or exposing metaprogramming, was Re: How do I catch a](https://www.ruby-forum.com/t/hiding-or-exposing-metaprogramming-was-re-how-do-i-catch-a/79188)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 0\
**Last updated:** [December 13, 2006, 12:51am UTC](https://www.ruby-forum.com/t/hiding-or-exposing-metaprogramming-was-re-how-do-i-catch-a/79188 "2006-12-13T00:51:11Z")

</div>

Actually I think this is a pretty interesting question, although I think “novice programmers” and “mediocre programmers” is pretty counter-productive terminology, especially when sometimes it’s you yourself using your…

---

## [Mkmf.rb question](https://www.ruby-forum.com/t/mkmf-rb-question/79172)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 1\
**Last updated:** [December 12, 2006, 10:50pm UTC](https://www.ruby-forum.com/t/mkmf-rb-question/79172 "2006-12-12T22:50:53Z")

</div>

I keep getting lost in the mkmf code, so I was hoping to find a guide. I have an extension that under Windows will use an external dll, but under Unix the files are linked directly into the extension. So my question i…

---

## [Quiz 105 Solution - now with Trees!](https://www.ruby-forum.com/t/quiz-105-solution-now-with-trees/79178)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [December 12, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/quiz-105-solution-now-with-trees/79178 "2006-12-12T22:08:45Z")

</div>

Its not quite as clean as I’d like but there are other things I should be doing… class Tournament attr\_reader :list def initialize players raise “Must be more than one player in the tournament!” if players \< 2 @p…

---

## [Using the SaveAs in Excel not working with Ruby](https://www.ruby-forum.com/t/using-the-saveas-in-excel-not-working-with-ruby/79142)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [December 12, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/using-the-saveas-in-excel-not-working-with-ruby/79142 "2006-12-12T22:00:43Z")

</div>

Hi; I need to save an Excel Spreadsheet with Ruby. I used the Save AND SaveAs methods, but each time I get prompted “Do you want to save the changes you made…” How can I save the workbook without this prompt. In addi…

---

## [Else inside rescue is useless?](https://www.ruby-forum.com/t/else-inside-rescue-is-useless/79001)

<div class="topic-metadata">

**Author:** [@cap](https://www.ruby-forum.com/u/cap)\
**Replies:** 19\
**Last updated:** [December 12, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/else-inside-rescue-is-useless/79001 "2006-12-12T18:02:56Z")

</div>

http://www.awprofessional.com/bookstore/product.asp?isbn=0672328844&rl=1 The “The ruby way” book said but actually, I found the “else” clause is only executed when there is no exception been thrown,such as : begin …

---

## [Base64 and MD5 fun](https://www.ruby-forum.com/t/base64-and-md5-fun/79111)

<div class="topic-metadata">

**Author:** [@Dane\_J](https://www.ruby-forum.com/u/Dane_J)\
**Replies:** 2\
**Last updated:** [December 12, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/base64-and-md5-fun/79111 "2006-12-12T18:00:56Z")

</div>

I’m trying to implement the auth-md5 authentication scheme in the SyncML spec but have hit a very confusing snag that’s been baking my noodle. The digest setup is fairly simple (in theory): base64(md5(base64(md5(“use…

---

## [\[ONLINE GAME\] Ruby Core + Php FrontEnd (open)](https://www.ruby-forum.com/t/online-game-ruby-core-php-frontend-open/78857)

<div class="topic-metadata">

**Author:** [@flaab](https://www.ruby-forum.com/u/flaab)\
**Replies:** 16\
**Last updated:** [December 12, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/online-game-ruby-core-php-frontend-open/78857 "2006-12-12T17:20:44Z")

</div>

Good afternoon everyone. I’ve been thinking around this for a long time. I want to program a Online Estrategy Game (sort of Ogame style) and I just had technical problems. But since i learned ruby I think i might just…

---

## [FXRuby 1.6.4: what's the trick?](https://www.ruby-forum.com/t/fxruby-1-6-4-whats-the-trick/79120)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 1\
**Last updated:** [December 12, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/fxruby-1-6-4-whats-the-trick/79120 "2006-12-12T16:54:39Z")

</div>

I’ve got fox-1.6.20 up and running and tested. I’ve got fxscintilla-1.63 up and running and tested. I try to install fxruby-1.6.4 (both the gem and from raw source) and I can’t get it to compile. Both methods (gem …

---

## [Non-useless mode for YAML::Syck::Map.children\_with\_index?](https://www.ruby-forum.com/t/non-useless-mode-for-yaml-map-children-with-index/79109)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 3\
**Last updated:** [December 12, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/non-useless-mode-for-yaml-map-children-with-index/79109 "2006-12-12T16:30:35Z")

</div>

Rubistas: Here’s a complete working sample illustrating the issue in YAML::Syck, or its documentation: require 'yaml' y = YAML.parse("i: b\\na: sequence") p y.kind # \<-- :seq y.children\_with\_index.each do |me\_nil, m…

---

## [Help building ruby on osx](https://www.ruby-forum.com/t/help-building-ruby-on-osx/79104)

<div class="topic-metadata">

**Author:** [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Replies:** 2\
**Last updated:** [December 12, 2006, 3:56pm UTC](https://www.ruby-forum.com/t/help-building-ruby-on-osx/79104 "2006-12-12T15:56:45Z")

</div>

I need to get some help compiling ruby 1.8.5-p2 on my MacBook Pro. Where would be a good place to post my build log and the errors I get when running ‘make test-all’? What other info will be helpful to provide? Tha…

---

## [Nitro + Og 0.41.0 Maintenance release](https://www.ruby-forum.com/t/nitro-og-0-41-0-maintenance-release/79130)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 0\
**Last updated:** [December 12, 2006, 11:57am UTC](https://www.ruby-forum.com/t/nitro-og-0-41-0-maintenance-release/79130 "2006-12-12T11:57:50Z")

</div>

Hello everyone, New versions of Nitro (Web Application Framework) and Og (Object Relational Mapping) were released: Homepage: http://www.nitroproject.org Download: http://rubyforge.org/projects/ nitro Mailing List: h…

---

## [A few questions about rq (2.4.0)](https://www.ruby-forum.com/t/a-few-questions-about-rq-2-4-0/79129)

<div class="topic-metadata">

**Author:** [@Urban\_H](https://www.ruby-forum.com/u/Urban_H)\
**Replies:** 0\
**Last updated:** [December 12, 2006, 11:31am UTC](https://www.ruby-forum.com/t/a-few-questions-about-rq-2-4-0/79129 "2006-12-12T11:31:50Z")

</div>

Hej! I’m not sure this mailing list is the best place to as questions about rq (ruby queue), but I didn’t want to to bother Ara personally (especially since no one else would know about the answers I got). Somehow …

---

## [Is there something like Regexp#match\_all](https://www.ruby-forum.com/t/is-there-something-like-regexp-match-all/79057)

<div class="topic-metadata">

**Author:** [@schacke](https://www.ruby-forum.com/u/schacke)\
**Replies:** 5\
**Last updated:** [December 12, 2006, 11:15am UTC](https://www.ruby-forum.com/t/is-there-something-like-regexp-match-all/79057 "2006-12-12T11:15:47Z")

</div>

Hi, is there a possibility to return all the matches of a regexp? or in other words is there a way to apply a block to all matches at once? Something like String#gsub but where I can specifiy what to do with the matc…

---

## [Odd result when attempting to use Mechanize in parallel with](https://www.ruby-forum.com/t/odd-result-when-attempting-to-use-mechanize-in-parallel-with/78643)

<div class="topic-metadata">

**Author:** [@croxmeister](https://www.ruby-forum.com/u/croxmeister)\
**Replies:** 4\
**Last updated:** [December 12, 2006, 10:21am UTC](https://www.ruby-forum.com/t/odd-result-when-attempting-to-use-mechanize-in-parallel-with/78643 "2006-12-12T10:21:39Z")

</div>

I wrote a simple tool to iterate a network to try and find web servers running on specific ports. We have a lot of devices & software with a web UI, and I thought that this would be a handy way to find them, and even …

---

## [Re: Suggestions for a date picker that supports mm/yyyy](https://www.ruby-forum.com/t/re-suggestions-for-a-date-picker-that-supports-mm-yyyy/79074)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [December 12, 2006, 5:31am UTC](https://www.ruby-forum.com/t/re-suggestions-for-a-date-picker-that-supports-mm-yyyy/79074 "2006-12-12T05:31:14Z")

</div>

From: Jason V. \[mailto:removed\_email\_address@domain.invalid\] Sent: Monday, December 11, 2006 4:30 PM To: ruby-talk ML Subject: Suggestions for a date picker that supports mm/yyyy Does anyone have some suggestions fo…

---

## [Smalltalk resources for ruby hackers?](https://www.ruby-forum.com/t/smalltalk-resources-for-ruby-hackers/78461)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 9\
**Last updated:** [December 12, 2006, 5:03am UTC](https://www.ruby-forum.com/t/smalltalk-resources-for-ruby-hackers/78461 "2006-12-12T05:03:12Z")

</div>

I’ve been coding in Ruby almost exclusively for about six months, and playing with advanced features. My background is a little Ruby, a little Python, a little Java, and a ton of Perl. Any advice on learning Smalltalk…

---

## [Inserting surrounding scope into singelton method definition](https://www.ruby-forum.com/t/inserting-surrounding-scope-into-singelton-method-definition/79076)

<div class="topic-metadata">

**Author:** [@Sebastia](https://www.ruby-forum.com/u/Sebastia)\
**Replies:** 4\
**Last updated:** [December 12, 2006, 3:23am UTC](https://www.ruby-forum.com/t/inserting-surrounding-scope-into-singelton-method-definition/79076 "2006-12-12T03:23:02Z")

</div>

I have a sorted array (in this case, an ActiveRecord result set) that i want to give awareness of its sorting state. I defined a singelton method on the array but i can’t figure out how to insert a value from the surr…

---

## [\[ANN\] Rassmalog 1.0.0](https://www.ruby-forum.com/t/ann-rassmalog-1-0-0/79096)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [December 12, 2006, 3:20am UTC](https://www.ruby-forum.com/t/ann-rassmalog-1-0-0/79096 "2006-12-12T03:20:45Z")

</div>

Version 1.0.0 (2006-12-11) http://rassmalog.rubyforge.org = Introduction Rassmalog is a static blog engine based on RSS 2.0, YAML, and Textile…

---

## [Installing Ruby on rails](https://www.ruby-forum.com/t/installing-ruby-on-rails/79077)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 1\
**Last updated:** [December 12, 2006, 1:34am UTC](https://www.ruby-forum.com/t/installing-ruby-on-rails/79077 "2006-12-12T01:34:51Z")

</div>

Ive just tried to get started with ruby on rails downloaded the installer for windows and managed to start the server, but in every tutorial it states that the doc root is accessed at http://127.0.0.1:3000 however i c…

---

## [Suggestions for a date picker that supports mm/yyyy](https://www.ruby-forum.com/t/suggestions-for-a-date-picker-that-supports-mm-yyyy/79070)

<div class="topic-metadata">

**Author:** [@vinsonizer](https://www.ruby-forum.com/u/vinsonizer)\
**Replies:** 2\
**Last updated:** [December 12, 2006, 1:34am UTC](https://www.ruby-forum.com/t/suggestions-for-a-date-picker-that-supports-mm-yyyy/79070 "2006-12-12T01:34:51Z")

</div>

Does anyone have some suggestions for a date picker that supports mm/yyyy. Also, does anyone know the “best” way to validate a mm/yyyy as “valid”? Meaning this month or the future? Thanks, Jason

---

## [Question on IO objects, initialize, and yaml](https://www.ruby-forum.com/t/question-on-io-objects-initialize-and-yaml/78936)

<div class="topic-metadata">

**Author:** [@scorintha](https://www.ruby-forum.com/u/scorintha)\
**Replies:** 5\
**Last updated:** [December 12, 2006, 1:08am UTC](https://www.ruby-forum.com/t/question-on-io-objects-initialize-and-yaml/78936 "2006-12-12T01:08:46Z")

</div>

Say I have a class with pseudo code as follows: class Test def initialize @a=1 @b=File.open(“file+Time.now or similar”) end end Now, imagine that I use this class for a while and then I want to dump it to a YAML…

---

## [Private methods in Ruby](https://www.ruby-forum.com/t/private-methods-in-ruby/79071)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 1\
**Last updated:** [December 12, 2006, 1:06am UTC](https://www.ruby-forum.com/t/private-methods-in-ruby/79071 "2006-12-12T01:06:45Z")

</div>

\##Won’t work method #1 class Foobar private def foo; p “Foobar”; end end class Baz \< Foobar def blah; foo; end end baz = Baz.new baz.foo Work method #2 class Foobar private def foo; p “Foobar”; end end …

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

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