# Ruby

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

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

---

## [Ruby help - controlling stdin, stdout](https://www.ruby-forum.com/t/ruby-help-controlling-stdin-stdout/76718)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 3\
**Last updated:** [November 22, 2006, 12:27am UTC](https://www.ruby-forum.com/t/ruby-help-controlling-stdin-stdout/76718 "2006-11-22T00:27:25Z")

</div>

OK, I have a main Ruby program, which i would like to be able to execute other ruby programs from. I would like the main ruby program to simulate the actions of a command prompt (i’m using windows) i.e. i would like t…

---

## [Getting volume names in windows](https://www.ruby-forum.com/t/getting-volume-names-in-windows/76759)

<div class="topic-metadata">

**Author:** [@Alfonso](https://www.ruby-forum.com/u/Alfonso)\
**Replies:** 4\
**Last updated:** [November 22, 2006, 12:11am UTC](https://www.ruby-forum.com/t/getting-volume-names-in-windows/76759 "2006-11-22T00:11:24Z")

</div>

Does anyone knows how can you get the volume name of a drive in windows? I’m writting a program that should get the name of the cd or dvd inserted in the drive. The user selects a directory using a gtk dialog (filecho…

---

## [Is this possible?](https://www.ruby-forum.com/t/is-this-possible/76875)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 3\
**Last updated:** [November 21, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/is-this-possible/76875 "2006-11-21T22:36:36Z")

</div>

Is there anyway to override the STDIN of a ruby program, do that when a command such as ‘gets’ is called somewhere randomly in the program, I am able to control what action is taken. i.e. i don’t want it to block if t…

---

## [Missoula Ruby/Rails Group - December Ruby Tuesday Gathering](https://www.ruby-forum.com/t/missoula-ruby-rails-group-december-ruby-tuesday-gathering/76867)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [November 21, 2006, 8:08pm UTC](https://www.ruby-forum.com/t/missoula-ruby-rails-group-december-ruby-tuesday-gathering/76867 "2006-11-21T20:08:40Z")

</div>

December 5th marks the third Ruby Tuesday gathering of the Missoula Ruby & Ruby on Rails Group. Nothing formal or organized. Just a friendly gathering of enthusiasts to chat about Ruby & RoR and related topics over di…

---

## [Reminder -- MountainWest RubyConf Call for Presenters](https://www.ruby-forum.com/t/reminder-mountainwest-rubyconf-call-for-presenters/76852)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [November 21, 2006, 7:30pm UTC](https://www.ruby-forum.com/t/reminder-mountainwest-rubyconf-call-for-presenters/76852 "2006-11-21T19:30:25Z")

</div>

I just received another presenter submission for the MountainWest RubyConf, which reminded me that I should have sent out a reminder last week. We’re still looking for more submissions. You have until midnight (MST)…

---

## [Piston 1.2.1: import problem corrected](https://www.ruby-forum.com/t/piston-1-2-1-import-problem-corrected/76849)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 0\
**Last updated:** [November 21, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/piston-1-2-1-import-problem-corrected/76849 "2006-11-21T19:00:19Z")

</div>

Hi all ! If you used Piston 1.2.0 and tried to import a new vendor branch, you likely had a problem. This update fixes the problem. From the ChangeLog: Import subcommand would fail with a “svn: Explicit target req…

---

## [RMagick build error...please help](https://www.ruby-forum.com/t/rmagick-build-error-please-help/76845)

<div class="topic-metadata">

**Author:** [@friofool](https://www.ruby-forum.com/u/friofool)\
**Replies:** 1\
**Last updated:** [November 21, 2006, 6:40pm UTC](https://www.ruby-forum.com/t/rmagick-build-error-please-help/76845 "2006-11-21T18:40:07Z")

</div>

Hi, I’m trying to install RMagick and i’got this error : \[root@localhost RMagick-1.14.1\]# make if test -n “”; then RUBYLIBDIR=–rbdir=""; fi; if test -n “”; then RUBYARCHDIR=–sodir=""; fi; /usr/bin/ruby se…

---

## [Text extraction from PDF files (non-European languages)...?](https://www.ruby-forum.com/t/text-extraction-from-pdf-files-non-european-languages/76841)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [November 21, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/text-extraction-from-pdf-files-non-european-languages/76841 "2006-11-21T18:16:06Z")

</div>

Dear all, is there a way of extracting text from a PDF, if the latter is in some non-European language, such as Arabic or Chinese? Under Linux, I have been able to use Ruby in conjunction with pdftotext for English …

---

## [FastRI 0.2.0: full-text searching, smarter search strategies](https://www.ruby-forum.com/t/fastri-0-2-0-full-text-searching-smarter-search-strategies/76030)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 8\
**Last updated:** [November 21, 2006, 5:17pm UTC](https://www.ruby-forum.com/t/fastri-0-2-0-full-text-searching-smarter-search-strategies/76030 "2006-11-21T17:17:16Z")

</div>

FastRI is an alternative to the ri command-line tool. It is much faster, and also allows you to offer RI lookup services over DRb. FastRI is smarter than ri, and can find classes anywhere in the hierarchy without spe…

---

## [Name conversion: search terms?](https://www.ruby-forum.com/t/name-conversion-search-terms/76830)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 3\
**Last updated:** [November 21, 2006, 4:13pm UTC](https://www.ruby-forum.com/t/name-conversion-search-terms/76830 "2006-11-21T16:13:27Z")

</div>

I’m doing some code generation and need to convert from CamelCase to whatever\_this\_is\_called. Wikipedia has a page for CamelCase but not underscore separated words. I’m thinking that someone must have done this alrea…

---

## [Writing disassembler in Ruby](https://www.ruby-forum.com/t/writing-disassembler-in-ruby/76289)

<div class="topic-metadata">

**Author:** [@bigos](https://www.ruby-forum.com/u/bigos)\
**Replies:** 4\
**Last updated:** [November 21, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/writing-disassembler-in-ruby/76289 "2006-11-21T16:11:26Z")

</div>

Hi, This is my first post here. I am interested in writing a disassembler using Ruby. I have attached little example of my experiments with Ruby and ndisasm. Please comment on the code usefulness of it etc. do you k…

---

## [Is there a hook that is called whenever an instance variable](https://www.ruby-forum.com/t/is-there-a-hook-that-is-called-whenever-an-instance-variable/76537)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 3\
**Last updated:** [November 21, 2006, 12:08pm UTC](https://www.ruby-forum.com/t/is-there-a-hook-that-is-called-whenever-an-instance-variable/76537 "2006-11-21T12:08:32Z")

</div>

I’m developing an editing application with full undo/redo, so my objects must log all changes to a history that can be rolled backwards and forwards. This is just crying out for some fancy metaprogramming, and it wou…

---

## [Ruby screen scraping](https://www.ruby-forum.com/t/ruby-screen-scraping/76497)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 27\
**Last updated:** [November 21, 2006, 6:27am UTC](https://www.ruby-forum.com/t/ruby-screen-scraping/76497 "2006-11-21T06:27:31Z")

</div>

Hi, I’m looking at creating a ruby script that will firstly access our cruise control page on localhost and examin the page to see the values on the page, so basically telling us if the build succeeded or failed. Doe…

---

## [Test content string with regex](https://www.ruby-forum.com/t/test-content-string-with-regex/76513)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 8\
**Last updated:** [November 21, 2006, 5:23am UTC](https://www.ruby-forum.com/t/test-content-string-with-regex/76513 "2006-11-21T05:23:22Z")

</div>

Hi All I just tried to test the content of a string, something like this: c = “1234AA” if c.scan( /1234567890/ ) p “OK” else p “NO” end This always returns “OK” :frowning: Any suggestions what goes wrong here. A…

---

## [ADV: Ruby Professional Series](https://www.ruby-forum.com/t/adv-ruby-professional-series/76786)

<div class="topic-metadata">

**Author:** [@Obie\_F](https://www.ruby-forum.com/u/Obie_F)\
**Replies:** 0\
**Last updated:** [November 21, 2006, 4:17am UTC](https://www.ruby-forum.com/t/adv-ruby-professional-series/76786 "2006-11-21T04:17:14Z")

</div>

Addison-Wesley Professional announces its launch of the first book in the Addison-Wesley Professional Ruby Series with Hal F.'s new Second Edition of the classic text, “The Ruby Way”. The series also includes several …

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [November 21, 2006, 2:49am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/76771 "2006-11-21T02:49:06Z")

</div>

Begin forwarded message:

---

## [Compiling ruby/tk on 64 bit Redhat?](https://www.ruby-forum.com/t/compiling-ruby-tk-on-64-bit-redhat/76091)

<div class="topic-metadata">

**Author:** [@fkc\_email-news\_S\_ya](https://www.ruby-forum.com/u/fkc_email-news_S_ya)\
**Replies:** 3\
**Last updated:** [November 21, 2006, 2:35am UTC](https://www.ruby-forum.com/t/compiling-ruby-tk-on-64-bit-redhat/76091 "2006-11-21T02:35:05Z")

</div>

HI All: I"m wondering if anyone has successfully done this. I’m trying to build 1.8.5 with ruby/tk extension. It seems the extconf.rb can’t find XOpen Display. I hand tweaked the makefiles with values from Makefile…

---

## [Pascal & Ruby Link](https://www.ruby-forum.com/t/pascal-ruby-link/76763)

<div class="topic-metadata">

**Author:** [@Jon\_Sawyer](https://www.ruby-forum.com/u/Jon_Sawyer)\
**Replies:** 1\
**Last updated:** [November 21, 2006, 2:05am UTC](https://www.ruby-forum.com/t/pascal-ruby-link/76763 "2006-11-21T02:05:01Z")

</div>

First of all, hello. My name is Jon (BadQuatna) Sawyer and I’m somewhat new to ruby. I am an amateur programmer and program as a hobby, which you may not guess since it consumes so much of my time. I’ve never real…

---

## [New SWIG release](https://www.ruby-forum.com/t/new-swig-release/76768)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 0\
**Last updated:** [November 21, 2006, 1:30am UTC](https://www.ruby-forum.com/t/new-swig-release/76768 "2006-11-21T01:30:56Z")

</div>

For those of you working with SWIG, there is a brand new release with lots of bugfixes. Availability: The release is available for download on Sourceforge at http://prdownloads.sourceforge.net/swig/swig-1.3.31.tar.g…

---

## [Webservices status in rails](https://www.ruby-forum.com/t/webservices-status-in-rails/76748)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 4\
**Last updated:** [November 21, 2006, 1:14am UTC](https://www.ruby-forum.com/t/webservices-status-in-rails/76748 "2006-11-21T01:14:55Z")

</div>

I heard rumors that webservices as they are now in rails was going to change or even be taken out altogether. Anyone know enough about it’s future to say whether it’s a smart idea to start basing a webservice on rail…

---

## [Fast 32 bit ints in ruby?](https://www.ruby-forum.com/t/fast-32-bit-ints-in-ruby/76749)

<div class="topic-metadata">

**Author:** [@devesh](https://www.ruby-forum.com/u/devesh)\
**Replies:** 1\
**Last updated:** [November 21, 2006, 12:12am UTC](https://www.ruby-forum.com/t/fast-32-bit-ints-in-ruby/76749 "2006-11-21T00:12:47Z")

</div>

Hi Folks, I want an efficient implementation of an Ipaddress class. The ones I have seen (for eg: lib/ipaddr.rb) all represent things internally in the form of a Bignum. And that is turning out to be a bottleneck for …

---

## [Rubyforge & mirrors](https://www.ruby-forum.com/t/rubyforge-mirrors/76520)

<div class="topic-metadata">

**Author:** [@frocco](https://www.ruby-forum.com/u/frocco)\
**Replies:** 11\
**Last updated:** [November 20, 2006, 11:46pm UTC](https://www.ruby-forum.com/t/rubyforge-mirrors/76520 "2006-11-20T23:46:43Z")

</div>

Hi, I apologize in advance if this is a typical newbie question and has been answered a million times already. I have searched the group and the internet for a solution but found nothing that works. It looks like rub…

---

## [Fork, trap and exec. Pickaxe typo?](https://www.ruby-forum.com/t/fork-trap-and-exec-pickaxe-typo/76730)

<div class="topic-metadata">

**Author:** [@jashmenn](https://www.ruby-forum.com/u/jashmenn)\
**Replies:** 8\
**Last updated:** [November 20, 2006, 11:18pm UTC](https://www.ruby-forum.com/t/fork-trap-and-exec-pickaxe-typo/76730 "2006-11-20T23:18:35Z")

</div>

Hey All, I got this code straight from the PickAxe: trap(“CLD”) { pid = Process.wait puts “Child pid #{pid}: terminated” exit } exec(“echo ‘hello world’”) if fork == nil But it doesnt word! The CLD trap’ped call …

---

## [Why is slice ignoring my fields at the end of the string?](https://www.ruby-forum.com/t/why-is-slice-ignoring-my-fields-at-the-end-of-the-string/76733)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 3\
**Last updated:** [November 20, 2006, 9:38pm UTC](https://www.ruby-forum.com/t/why-is-slice-ignoring-my-fields-at-the-end-of-the-string/76733 "2006-11-20T21:38:12Z")

</div>

I’m not sure if this is a bug with the slice method, or if I’m just misunderstanding the logic behind it. If I have a string “1,2,3” that I slice into an array, I get 3 values. But if I have “1,2,3,” with a trailing …

---

## [Soap project. RubyCLR vs Jruby vs Soap4r?](https://www.ruby-forum.com/t/soap-project-rubyclr-vs-jruby-vs-soap4r/76542)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 5\
**Last updated:** [November 20, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/soap-project-rubyclr-vs-jruby-vs-soap4r/76542 "2006-11-20T20:41:55Z")

</div>

So I have a couple of weeks to write an application that will integrate with a soap based web service. Unfortunately I have some challenges and very little experience with soap, although I can probably figure things …

---

## [Ruby-prof on amd-64?](https://www.ruby-forum.com/t/ruby-prof-on-amd-64/76725)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 5\
**Last updated:** [November 20, 2006, 8:05pm UTC](https://www.ruby-forum.com/t/ruby-prof-on-amd-64/76725 "2006-11-20T20:05:48Z")

</div>

Hi, has anyone had any success getting ruby-prof working on amd64 linux? Specifically, has anyone managed to deal with this error, or know what it is referring to: /home/dan/ruby$ ruby-prof prime.rb /usr/local/lib/r…

---

## [Gem update for additional gem servers?](https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 3\
**Last updated:** [November 20, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483 "2006-11-20T19:17:40Z")

</div>

Hi, when I install gems from another gem server than rubyforge a ‘gem update’ only finds updates for gems orginating at rubyforge. I know that using the ‘–source’ option helps in this case but is there a way to make …

---

## [How to put array into variables](https://www.ruby-forum.com/t/how-to-put-array-into-variables/76479)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 7\
**Last updated:** [November 20, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/how-to-put-array-into-variables/76479 "2006-11-20T18:55:36Z")

</div>

Hi All I tried to put an array into variables like this s, h = b.scan(/^(\\w+)\\s(\\w+)$/) But for some reason ‘s’ becomes an array and ‘h’ is undefined!! Any suggestions how to put the first result in ‘s’ and de second…

---

## [(Simple?) Why is my rescue clause not catching an exception?](https://www.ruby-forum.com/t/simple-why-is-my-rescue-clause-not-catching-an-exception/76721)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [November 20, 2006, 6:47pm UTC](https://www.ruby-forum.com/t/simple-why-is-my-rescue-clause-not-catching-an-exception/76721 "2006-11-20T18:47:34Z")

</div>

All, I’m using the Net::HTTP module to fetch resources from the Internet in a Rails application. I have a method that does the HTTP request and this action is enclosed in a begin/rescue/end block. However, when I ju…

---

## [Spreadsheet module tests fail](https://www.ruby-forum.com/t/spreadsheet-module-tests-fail/76702)

<div class="topic-metadata">

**Author:** [@el-gato](https://www.ruby-forum.com/u/el-gato)\
**Replies:** 2\
**Last updated:** [November 20, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/spreadsheet-module-tests-fail/76702 "2006-11-20T18:31:20Z")

</div>

I’m trying to use the spreadsheet/excel module by Daniel B., but it’s failing its tests on the olewriter. Any thoughts? ruby test/ts\_all.rb Loaded suite test/ts\_all Started …E/tmp/spreadsheet-0.3.4/lib/spreadsheet/o…

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

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