# Ruby

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

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

---

## [Re: String#slice! doc bug?](https://www.ruby-forum.com/t/re-string-slice-doc-bug/79981)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/re-string-slice-doc-bug/79981 "2006-12-20T20:59:46Z")

</div>

From: Daniel B. \[mailto:removed\_email\_address@domain.invalid\] The docs for String#slice! say, “The forms that take a Fixnum will raise an IndexError if the value is out of range.” Perhaps the docs are describing wha…

---

## [Re: Grabbing quoted substrings](https://www.ruby-forum.com/t/re-grabbing-quoted-substrings/80010)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/re-grabbing-quoted-substrings/80010 "2006-12-20T20:45:43Z")

</div>

From: Tom W. \[mailto:removed\_email\_address@domain.invalid\] \[“x”, “y”, “z”, …, “mach”\] Though that will capture the surrounding quotes as well, which was not specified in the requirements. Oops, so it wasn’t. …

---

## [Audio conversion in Windows, FLAC to MP3, etc](https://www.ruby-forum.com/t/audio-conversion-in-windows-flac-to-mp3-etc/80009)

<div class="topic-metadata">

**Author:** [@djlewis](https://www.ruby-forum.com/u/djlewis)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/audio-conversion-in-windows-flac-to-mp3-etc/80009 "2006-12-20T20:45:43Z")

</div>

Any thoughts on how to do this in Ruby? I’ve tried hooking to the dbPowerAmp DLL but there are problems that seem kinda inscrutable (see message http://tinyurl.com/y9r86h). Too bad, because that’s what I use interact…

---

## [Wxruby2-preview 0.0.38 & wxSugar 0.1.3](https://www.ruby-forum.com/t/wxruby2-preview-0-0-38-wxsugar-0-1-3/79949)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/wxruby2-preview-0-0-38-wxsugar-0-1-3/79949 "2006-12-20T20:41:39Z")

</div>

wxruby2-preview 0.0.38 is now available as source and binary gems for Windows, Linux and OS X from: https://rubyforge.org/frs/?group\_id=35&release\_id=8430 There’s also a recent new release of wxSugar, as a ruby gem or…

---

## [Re: Grabbing quoted substrings](https://www.ruby-forum.com/t/re-grabbing-quoted-substrings/80006)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-grabbing-quoted-substrings/80006 "2006-12-20T20:41:39Z")

</div>

From: mitchell a.scan(/"(\[^"\]+)"/).flatten No need to use flatten if you don’t use the (unnecessary) grouping: a.scan( /"\[^"\]+"/ ) or a.scan( /".+?"/ ) (Both, of course, assuming no escaped backslashes in the con…

---

## [Help with rdoc stdlib on windows 2000](https://www.ruby-forum.com/t/help-with-rdoc-stdlib-on-windows-2000/79870)

<div class="topic-metadata">

**Author:** [@tesla](https://www.ruby-forum.com/u/tesla)\
**Replies:** 3\
**Last updated:** [December 20, 2006, 8:09pm UTC](https://www.ruby-forum.com/t/help-with-rdoc-stdlib-on-windows-2000/79870 "2006-12-20T20:09:24Z")

</div>

Hi, I can’t get any output using rdoc on the stdlib. I am using windows 2000 and ruby 1.8.4. from the one-click installer. I have tried: rdoc c:\\ruby\\lib -f html --op f:\\temp\\rubydocs rdoc c:\\ruby\\lib -f html -o f…

---

## [Ruby-shout installation issue](https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 3\
**Last updated:** [December 20, 2006, 8:05pm UTC](https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913 "2006-12-20T20:05:22Z")

</div>

Hi, I am trying to install ruby-shout(used to serve audio to icecast server) .I have libshout,vorbis and liboggz But I get this error ERROR: While executing gem … (RuntimeError) ERROR: Failed to build gem native ex…

---

## [Re: Simple copy of attributes](https://www.ruby-forum.com/t/re-simple-copy-of-attributes/79971)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/re-simple-copy-of-attributes/79971 "2006-12-20T19:53:20Z")

</div>

From: Trans \[mailto:removed\_email\_address@domain.invalid\] Facets has Kernel#set\_from: bidule.set\_from(biniou, :foo, :bar, :baz) Out of curiosity, why put that in Kernel instead of Object? Actually, what heuristic d…

---

## [What exactly does obj.is\_a? do?](https://www.ruby-forum.com/t/what-exactly-does-obj-is-a-do/79911)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/what-exactly-does-obj-is-a-do/79911 "2006-12-20T19:53:19Z")

</div>

I’ve got a theory that I hope someone familiar with the deep recesses of Ruby’s internals can confirm or deny. According to the API, obj.is\_a? “Returns true if /class/ is the class of /obj/, or if /class/ is one o…

---

## [DRb, Ruby & JRuby - Questions & Issues / dynamic method call](https://www.ruby-forum.com/t/drb-ruby-jruby-questions-issues-dynamic-method-call/79972)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/drb-ruby-jruby-questions-issues-dynamic-method-call/79972 "2006-12-20T19:53:18Z")

</div>

I overview after these examples to ease the pain :slight\_smile: @@connection = Java::Connect(usr,pass) This works: @@connection.getForeignListing.getListing(1441).getStreet #=\> 123 Candy Ln. This works: @@connection.…

---

## [String#slice! doc bug?](https://www.ruby-forum.com/t/string-slice-doc-bug/79998)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/string-slice-doc-bug/79998 "2006-12-20T19:53:18Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, Ruby 1.8.4 and 1.8.5 The docs for String#slice! say, “The forms that take a Fixnum will raise an IndexError if the value is out of range.” However, I cannot dup…

---

## [Re: ruby gotchas](https://www.ruby-forum.com/t/re-ruby-gotchas/79987)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/re-ruby-gotchas/79987 "2006-12-20T19:53:17Z")

</div>

From: Mark G. \[mailto:removed\_email\_address@domain.invalid\] I’ve written up some ruby gotchas that have come up while using ruby. I’m wondering if there are any other gotchas that I should be aware of. The list is a…

---

## [Ruby, Debian, and Media Temple](https://www.ruby-forum.com/t/ruby-debian-and-media-temple/79752)

<div class="topic-metadata">

**Author:** [@trevorturk](https://www.ruby-forum.com/u/trevorturk)\
**Replies:** 5\
**Last updated:** [December 20, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/ruby-debian-and-media-temple/79752 "2006-12-20T19:53:16Z")

</div>

I recently tried to run some Rails plugins (techno-weenie’s White List) that require a version of Ruby greater than the one Debian is currently using. I’m wondering if anyone happens to know if/when Debian might upgra…

---

## [ZenTest autotest problems](https://www.ruby-forum.com/t/zentest-autotest-problems/79553)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 8\
**Last updated:** [December 20, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/zentest-autotest-problems/79553 "2006-12-20T19:53:16Z")

</div>

Hello, I have big troubles using the latest autotest version (3.4.2) My current project passes all the tests under the 3.3.0 version but I get dozens of assertion errors with the 3.4.2 What’s wrong ? Is there somethi…

---

## [RedCloth(foo).to\_text](https://www.ruby-forum.com/t/redcloth-foo-to-text/79983)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/redcloth-foo-to-text/79983 "2006-12-20T19:51:13Z")

</div>

Hi, We have a website where admins can use textile (via RedCloth) to format their content. Now we’d like to provide RSS feeds for same content (as text/plain). But the textile markup doesn’t look very good unrendered…

---

## [Run perl script and capture the output](https://www.ruby-forum.com/t/run-perl-script-and-capture-the-output/79879)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 7:37pm UTC](https://www.ruby-forum.com/t/run-perl-script-and-capture-the-output/79879 "2006-12-20T19:37:10Z")

</div>

Hi all, I need to run a perl script from Ruby and capture its output. I use the following line in Ruby but it fails. Any input will be appreciated. out=perl c:\\\\Perl\\\\self\\\\back1\\.pl Li

---

## [Grabbing quoted substrings](https://www.ruby-forum.com/t/grabbing-quoted-substrings/79944)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 5\
**Last updated:** [December 20, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/grabbing-quoted-substrings/79944 "2006-12-20T19:35:09Z")

</div>

OK, I give up, what’s the elegant method to grab the quoted substrings in the following, a = ‘variables=“x”, “y”, “z”, “rho”, “u”, “v”, “w”, “p/pinf”, “s”, “mach”’ I want an array like, \[“x”, “y”, “z”, …, “mach”\] T…

---

## [RSpec 0.7.5](https://www.ruby-forum.com/t/rspec-0-7-5/79982)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/rspec-0-7-5/79982 "2006-12-20T19:31:09Z")

</div>

The RSpec Development Team is pleased to announce the release of RSpec 0.7.5. This release adds support for Heckle - Seattle’rb’s code mutation tool. There are also several bug fixes to the RSpec core and the RSpec on …

---

## [Undefined method \`to\_sym' for #\<YAML::Syck::MergeKey](https://www.ruby-forum.com/t/undefined-method-to-sym-for-yaml-mergekey/79923)

<div class="topic-metadata">

**Author:** [@Jolly\_Ole\_King\_Want](https://www.ruby-forum.com/u/Jolly_Ole_King_Want)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/undefined-method-to-sym-for-yaml-mergekey/79923 "2006-12-20T19:29:07Z")

</div>

I have a stock gentoo ruby/rails install. I get something like this when I try to use script/generate, rake migrate or script/console and probably others. 0 wicked www/sharkwatch % ./script/console Loading developm…

---

## [File layout best practices for extensions](https://www.ruby-forum.com/t/file-layout-best-practices-for-extensions/79914)

<div class="topic-metadata">

**Author:** [@Robert\_Au](https://www.ruby-forum.com/u/Robert_Au)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/file-layout-best-practices-for-extensions/79914 "2006-12-20T19:29:06Z")

</div>

I’m implementing a module Foo, with classes Foo::W, Foo::X, Foo::Y, and Foo::Z. For various reasons, it is easier to code key parts of Foo::W and Foo::X in C, but the remainder of the code is easier to write in Ruby.…

---

## [UID/EUID subshell solutions](https://www.ruby-forum.com/t/uid-euid-subshell-solutions/79097)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 3\
**Last updated:** [December 20, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/uid-euid-subshell-solutions/79097 "2006-12-20T19:29:04Z")

</div>

Hi, I’m having inconsistent behaviour with running external commands as other users, and the time has apparently come to use something akin to a fork and popen3 to get something approximating consistent bahaviour. I…

---

## [Strategies for writing Ruby applications to be easily distri](https://www.ruby-forum.com/t/strategies-for-writing-ruby-applications-to-be-easily-distri/79976)

<div class="topic-metadata">

**Author:** [@Zev\_B](https://www.ruby-forum.com/u/Zev_B)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/strategies-for-writing-ruby-applications-to-be-easily-distri/79976 "2006-12-20T19:29:04Z")

</div>

Hello, This is mostly a repost of ruby-talk\[229723\] with some clarifications and an appeal for ideas. I have recently attempted to write a RubyGem for the Saikuro project. Unfortunately, I have learned that there is …

---

## [Find all possible container nodes of a given text](https://www.ruby-forum.com/t/find-all-possible-container-nodes-of-a-given-text/79961)

<div class="topic-metadata">

**Author:** [@Sylvain\_T](https://www.ruby-forum.com/u/Sylvain_T)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/find-all-possible-container-nodes-of-a-given-text/79961 "2006-12-20T19:29:03Z")

</div>

hi, I’ve been using ruby for a few weeks and been messing with DOM-like programming using hpricot. I’m looking for an efficient (rubyiish) way to find the set of Node Elements that have a text\_element child contain…

---

## [Re: Chess960 (#106)](https://www.ruby-forum.com/t/re-chess960-106/79920)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/re-chess960-106/79920 "2006-12-20T19:29:02Z")

</div>

Morton G. wrote: Very nice, compact solution. But what programing language is that in the block comment? I don’t recognize it. Regards, Morton Thank you. My solution is Ruby and Haskell at the same time.

---

## [Questions on the ruby faq](https://www.ruby-forum.com/t/questions-on-the-ruby-faq/79979)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/questions-on-the-ruby-faq/79979 "2006-12-20T19:27:02Z")

</div>

Just some general thoughts on the faq (http://www.rubygarden.org/faq/ I guess?) in light of the thread on experienced users and the health of ruby-talk in general: Why isn’t that faq promoted more? I’ve been readin…

---

## [Distributing ruby with Rubyscript2exe - and a path problem?](https://www.ruby-forum.com/t/distributing-ruby-with-rubyscript2exe-and-a-path-problem/79980)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/distributing-ruby-with-rubyscript2exe-and-a-path-problem/79980 "2006-12-20T19:27:01Z")

</div>

Dear all, I am trying to put together an executable file from a ruby script containing an external application (gnuplot), on machines that doesn’t have Ruby nor gnuplot installed, using the way this is described in …

---

## [Fwd: Please Forward: Ruby Quiz Submission (106)](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-106/130594)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-106/130594 "2006-12-20T19:27:00Z")

</div>

Begin forwarded message:

---

## [Module private methods?](https://www.ruby-forum.com/t/module-private-methods/79922)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/module-private-methods/79922 "2006-12-20T19:27:00Z")

</div>

Hello, I guess the subject is silly - but since I need something like Java’s “package private” I have used a similar name. What I would need is an additional access modifier, something like this: Module Foo class Ba…

---

## [TkCanvas](https://www.ruby-forum.com/t/tkcanvas/79815)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 3\
**Last updated:** [December 20, 2006, 7:26pm UTC](https://www.ruby-forum.com/t/tkcanvas/79815 "2006-12-20T19:26:59Z")

</div>

Good morning, I’m trying to translate the example on pp 341-345 in "Mastering Perl/TK’ to Ruby. On page 344 a method $cp-\>CreatePlotAxis(…) is used. Is there a method in TkCanvas that I can use that will produce the …

---

## [Clicking on popup after selecting an item in select list](https://www.ruby-forum.com/t/clicking-on-popup-after-selecting-an-item-in-select-list/79877)

<div class="topic-metadata">

**Author:** [@vikashkumar051](https://www.ruby-forum.com/u/vikashkumar051)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 7:24pm UTC](https://www.ruby-forum.com/t/clicking-on-popup-after-selecting-an-item-in-select-list/79877 "2006-12-20T19:24:55Z")

</div>

I am getting a javascript pop up after I select a value from some drop down list using the select\_list method. Since I can not use click\_no\_wait for a list, how am I supposed to handle the pop up. Can anyone please pr…

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

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