# Ruby

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

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

---

## [Error Compiling Ruby 1.8.4 on AIX 5.2](https://www.ruby-forum.com/t/error-compiling-ruby-1-8-4-on-aix-5-2/58257)

<div class="topic-metadata">

**Author:** [@WeytensS\_Randy\_J](https://www.ruby-forum.com/u/WeytensS_Randy_J)\
**Replies:** 1\
**Last updated:** [April 21, 2006, 7:43am UTC](https://www.ruby-forum.com/t/error-compiling-ruby-1-8-4-on-aix-5-2/58257 "2006-04-21T07:43:31Z")

</div>

I have a question about compiling Ruby. I’m new to this list so kindly let me know if I need to send this question to another mailing list. I’m attempting to compile Ruby 1.8.4 on an AIX 5.2 OS. I’m ran ./configure,…

---

## [Strange problem with PTY.spawn()](https://www.ruby-forum.com/t/strange-problem-with-pty-spawn/57394)

<div class="topic-metadata">

**Author:** [@Reto\_S](https://www.ruby-forum.com/u/Reto_S)\
**Replies:** 12\
**Last updated:** [April 21, 2006, 7:31am UTC](https://www.ruby-forum.com/t/strange-problem-with-pty-spawn/57394 "2006-04-21T07:31:09Z")

</div>

Hi I’ve some troubles using PTY on a Solais 8 System: | $ ruby1.8 -rpty -e ‘PTY.spawn("/bin/telnet testsite1"); ’ | -e:1:in \`spawn’: can’t get Master/Slave device (RuntimeError) | from -e:1 The system: | …

---

## [Segmentation Fault](https://www.ruby-forum.com/t/segmentation-fault/58361)

<div class="topic-metadata">

**Author:** [@McDevittS\_Chris](https://www.ruby-forum.com/u/McDevittS_Chris)\
**Replies:** 3\
**Last updated:** [April 21, 2006, 7:21am UTC](https://www.ruby-forum.com/t/segmentation-fault/58361 "2006-04-21T07:21:51Z")

</div>

Hi, I am trying to install the oracle drivers for ruby: ruby-oci8-0.1.14-mswin32.rb When I run the script I get: C:\\downloads\>ruby ruby-oci8-0.1.14-mswin32.rb Copy OCI8.rb to c:/ruby/lib/ruby/site\_ruby/1.8/DBD/OCI8 …

---

## [Basic OO ideas](https://www.ruby-forum.com/t/basic-oo-ideas/94111)

<div class="topic-metadata">

**Author:** [@snow-templar](https://www.ruby-forum.com/u/snow-templar)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 4:45am UTC](https://www.ruby-forum.com/t/basic-oo-ideas/94111 "2006-04-21T04:45:45Z")

</div>

HI all, Still struggling with writing a basic bot for rrobots. Thought I would ask for some advice - given the following information, how (and why) would you structure your classes and methods (general info fine, no…

---

## [CHM of documentation (core/stdlib)?](https://www.ruby-forum.com/t/chm-of-documentation-core-stdlib/58375)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 5\
**Last updated:** [April 21, 2006, 4:08am UTC](https://www.ruby-forum.com/t/chm-of-documentation-core-stdlib/58375 "2006-04-21T04:08:46Z")

</div>

Hi all - Is there a CHM of the docs? I’ve googled and googled and haven’t found it… am I just not seeing it? Thanks!

---

## [Re: Questions about copying using FileUtils](https://www.ruby-forum.com/t/re-questions-about-copying-using-fileutils/58389)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 3:08am UTC](https://www.ruby-forum.com/t/re-questions-about-copying-using-fileutils/58389 "2006-04-21T03:08:07Z")

</div>

Peter B. wrote last Thursday, April 20, 2006 10:42 PM: As a related question, do all iterators, like my “each” below, require an “end?” maybe we ask first “what is a block?” :slight\_smile: Dir.chdir(“c:/scripts/ruby/te…

---

## [Re: Write Out Then Read In Hash of Two-element Arrays](https://www.ruby-forum.com/t/re-write-out-then-read-in-hash-of-two-element-arrays/94109)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [April 21, 2006, 2:28am UTC](https://www.ruby-forum.com/t/re-write-out-then-read-in-hash-of-two-element-arrays/94109 "2006-04-21T02:28:39Z")

</div>

David B. wrote last Friday, April 21, 2006 2:52 AM: Uh, how ro I find documentation about unit test? it is built-in in ruby. there are lots of docs on it since it is one of the most loved among rubyist :slight\_smile: …

---

## [Windows Client/Linux Server IDE for Ruby?](https://www.ruby-forum.com/t/windows-client-linux-server-ide-for-ruby/58331)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 8\
**Last updated:** [April 21, 2006, 12:08am UTC](https://www.ruby-forum.com/t/windows-client-linux-server-ide-for-ruby/58331 "2006-04-21T00:08:13Z")

</div>

I presently use ssh & vi to program in ruby/rails, typically from a remote location on my WinXPpro laptop to a CentOS-4.3 Linux development box. I have not in the past used any IDE for anything more than casual testi…

---

## [Converting IP range to array of IP's](https://www.ruby-forum.com/t/converting-ip-range-to-array-of-ips/58338)

<div class="topic-metadata">

**Author:** [@kris](https://www.ruby-forum.com/u/kris)\
**Replies:** 13\
**Last updated:** [April 21, 2006, 12:08am UTC](https://www.ruby-forum.com/t/converting-ip-range-to-array-of-ips/58338 "2006-04-21T00:08:07Z")

</div>

I’m looking to convert an IP string (ranges, subnet masks or wild-carded IP’s) in to an array of IP strings: eg. “192.168.1.1 - 192.168.1.5” =\> \[“192.168.1.1”, “192.168.1.2”, “192.168.1.3”, “192.168.1.4”, “192.168.1.5…

---

## [Re: Refactoring (#75)](https://www.ruby-forum.com/t/re-refactoring-75/94104)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 0\
**Last updated:** [April 20, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/re-refactoring-75/94104 "2006-04-20T23:43:24Z")

</div>

Very sweet, thanks! I’m catching on now. These examples really help. Steve

---

## [Re: Refactoring (#75)](https://www.ruby-forum.com/t/re-refactoring-75/94103)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 0\
**Last updated:** [April 20, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/re-refactoring-75/94103 "2006-04-20T23:40:22Z")

</div>

Great example, thanks. See I would have had navigate\_to take a screen name as parameter without even thinking about it, due to my lack of experience with method missing. Of course I use the Rails find\_ methods all …

---

## [Helper for method pipelines?](https://www.ruby-forum.com/t/helper-for-method-pipelines/58277)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [April 20, 2006, 10:20pm UTC](https://www.ruby-forum.com/t/helper-for-method-pipelines/58277 "2006-04-20T22:20:20Z")

</div>

Here is a minor coding problem that I suspect is common enough to have an idiomatic solution. I just don’t know what that solution is. If you know of a more Rubyish way, please let me know. Here’s the problem. Say …

---

## [Ruby Don't E4X](https://www.ruby-forum.com/t/ruby-dont-e4x/94102)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 20, 2006, 10:14pm UTC](https://www.ruby-forum.com/t/ruby-dont-e4x/94102 "2006-04-20T22:14:14Z")

</div>

I began work on an implementation of E4X for Ruby. I decided to tackle the problem from two ends. I began with a literal translation of the Javascript-esque pseudo-code given in the specification in order to obtain a…

---

## [Net/http](https://www.ruby-forum.com/t/net-http/94100)

<div class="topic-metadata">

**Author:** [@String\_numecalSval](https://www.ruby-forum.com/u/String_numecalSval)\
**Replies:** 2\
**Last updated:** [April 20, 2006, 9:18pm UTC](https://www.ruby-forum.com/t/net-http/94100 "2006-04-20T21:18:29Z")

</div>

Hello I can create a server in ruby…that server need listening in port 80 wait for requisition, but i dont have idea, How I do that? Thank’s

---

## [Write Out Then Read In Hash of Two-element Arrays](https://www.ruby-forum.com/t/write-out-then-read-in-hash-of-two-element-arrays/58294)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 5\
**Last updated:** [April 20, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/write-out-then-read-in-hash-of-two-element-arrays/58294 "2006-04-20T20:58:36Z")

</div>

Kind All, I wonder if one of you knowledgeble folks can steer me in he right direction: I’m trying to get a hash I’ve created read back in after after writing it out to a file, so that it is exactly the same afterwar…

---

## [Re: Refactoring (#75)](https://www.ruby-forum.com/t/re-refactoring-75/58328)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 7\
**Last updated:** [April 20, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/re-refactoring-75/58328 "2006-04-20T20:53:51Z")

</div>

James, Great summary. Wish I had participated in the quiz! I liked Dave B.'s ‘Removed Unused Scope’ example. Would you (or someone else) care to give examples of ‘Replace Similar Methods with Metaprogrammed Definit…

---

## [Re: Write Out Then Read In Hash of Two-element Arrays](https://www.ruby-forum.com/t/re-write-out-then-read-in-hash-of-two-element-arrays/58299)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [April 20, 2006, 8:51pm UTC](https://www.ruby-forum.com/t/re-write-out-then-read-in-hash-of-two-element-arrays/58299 "2006-04-20T20:51:36Z")

</div>

David B. wrote last Thursday, April 20, 2006 5:01 PM: … fileOut.puts(histHash\[i\]) ^^^^^ there is a problem here. consider… irb(main):003:0\> puts \[10,1\] 10 1 =\> nil irb(main):004:0\> puts \[10,1\].to…

---

## [NYC Ruby Job Fair =?iso-8859-1?q?=8B?= April 25th](https://www.ruby-forum.com/t/nyc-ruby-job-fair-iso-8859-1-q-8b-april-25th/58345)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 7\
**Last updated:** [April 20, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/nyc-ruby-job-fair-iso-8859-1-q-8b-april-25th/58345 "2006-04-20T20:22:48Z")

</div>

=== NYC Ruby Job Fair – April 25th The NYC Ruby meetings lately have looked a lot like middle school dances. On one side of the room is people saying, “Gee, I wish I could work full-time doing Ruby or Ruby on Rails.”…

---

## [Hi List](https://www.ruby-forum.com/t/hi-list/94094)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 20, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/hi-list/94094 "2006-04-20T20:04:23Z")

</div>

Can you hear me now? T.

---

## [Ruby subversion bindings](https://www.ruby-forum.com/t/ruby-subversion-bindings/58241)

<div class="topic-metadata">

**Author:** [@Pieter\_E](https://www.ruby-forum.com/u/Pieter_E)\
**Replies:** 2\
**Last updated:** [April 20, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/ruby-subversion-bindings/58241 "2006-04-20T19:27:09Z")

</div>

Dear all, I’m trying to run one of the examples included with the Ruby Subversion bindings: $ svnlook.rb repos tree /usr/lib/ruby/site\_ruby/1.8/svn/util.rb:58:in svn\_repos\_fs\_wrapper': uninitialized constant Svn::Cli…

---

## [Re: Write Out Then Read In Hash of Two-element Arrays](https://www.ruby-forum.com/t/re-write-out-then-read-in-hash-of-two-element-arrays/58298)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 4\
**Last updated:** [April 20, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/re-write-out-then-read-in-hash-of-two-element-arrays/58298 "2006-04-20T18:33:46Z")

</div>

Well, your primary problem is that you write both elements of the arrays on separat lines. When reading you will read more lines than you expect (twice as much to be correct). So an easy fix would be to write using f…

---

## [Re: Getting Ruby 1.9](https://www.ruby-forum.com/t/re-getting-ruby-1-9/94097)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [April 20, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/re-getting-ruby-1-9/94097 "2006-04-20T18:10:00Z")

</div>

B\> Is this posted on ruby-lang.org somewhere? Guy Decoux I only see the 1.8.x repo. How do I get 1.9? Or is HEAD the 1.9 repo? Thanks, Dan

---

## [Getting Ruby 1.9](https://www.ruby-forum.com/t/getting-ruby-1-9/58334)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [April 20, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/getting-ruby-1-9/58334 "2006-04-20T17:54:42Z")

</div>

Hi all, I’ve fumbled around enough. How do I get the Ruby 1.9 source? Is this posted on ruby-lang.org somewhere? All I really want is an updated parsedate.rb … Thanks, Dan

---

## [Understanding the behavior of Method#to\_proc](https://www.ruby-forum.com/t/understanding-the-behavior-of-method-to-proc/58197)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 8\
**Last updated:** [April 20, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/understanding-the-behavior-of-method-to-proc/58197 "2006-04-20T17:48:36Z")

</div>

Hello all, Some things are unclear to me about Method#to\_proc. I understand the following: plus = 12.method("+") p plus.call(13) # prints 25 newplus = plus.unbind.bind(20) p newplus.call(13) # prints 33 Although …

---

## [Questions about copying using FileUtils](https://www.ruby-forum.com/t/questions-about-copying-using-fileutils/58321)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 5\
**Last updated:** [April 20, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/questions-about-copying-using-fileutils/58321 "2006-04-20T17:20:58Z")

</div>

Hello, Can someone please help me with the following script? It doesn’t work, and yields the message below this script. My “puts” is just for testing, to see if it sees the files. The “puts” works fine when I don’t in…

---

## [Win32 Serial Communications, maybe using mscomm.ocx](https://www.ruby-forum.com/t/win32-serial-communications-maybe-using-mscomm-ocx/58115)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 5\
**Last updated:** [April 20, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/win32-serial-communications-maybe-using-mscomm-ocx/58115 "2006-04-20T16:59:08Z")

</div>

Hello All, It’s good to get back to the RT Mailing List! I'm looking for examples of using the mscomm control with this code: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/35355 I’m working on a project…

---

## [Refactoring (#75)](https://www.ruby-forum.com/t/refactoring-75/94092)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 20, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/refactoring-75/94092 "2006-04-20T16:09:46Z")

</div>

Hopefully this quiz caused some of us to read Martin F.'s Refactoring. I know it did exactly that for me, though it has been on my want-to-read list for some time now. I’m half-way through it now and I can only rec…

---

## [Ruby draw fullscreen windows](https://www.ruby-forum.com/t/ruby-draw-fullscreen-windows/57975)

<div class="topic-metadata">

**Author:** [@RedShift](https://www.ruby-forum.com/u/RedShift)\
**Replies:** 1\
**Last updated:** [April 20, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/ruby-draw-fullscreen-windows/57975 "2006-04-20T16:03:35Z")

</div>

Hello Seeing the current state of “mediacenter” software, I decided to write my own. For playing multimedia, I decided on xine-lib using http://xiron.sourceforge.net/ I still need one thing though, something to draw …

---

## [Array#each Looping Gotcha](https://www.ruby-forum.com/t/array-each-looping-gotcha/58253)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 7\
**Last updated:** [April 20, 2006, 11:44am UTC](https://www.ruby-forum.com/t/array-each-looping-gotcha/58253 "2006-04-20T11:44:12Z")

</div>

I think I’ve found a gotcha. Really, it should be expected behavior, but it wasn’t immediately obvious to me, so I thought it’s at least worth mentioning. Let’s say you want to iterate through an array and delete any …

---

## [\[ANN\] Ruby/DLX 0.8.2 Released](https://www.ruby-forum.com/t/ann-ruby-dlx-0-8-2-released/58297)

<div class="topic-metadata">

**Author:** [@dpy](https://www.ruby-forum.com/u/dpy)\
**Replies:** 0\
**Last updated:** [April 20, 2006, 11:32am UTC](https://www.ruby-forum.com/t/ann-ruby-dlx-0-8-2-released/58297 "2006-04-20T11:32:30Z")

</div>

It is my pleasure to announce that: Ruby/DLX 0.8.2 is now available for download from rubyforge.org. (Links at the bottom of this message) Short Description: “No more ruby-C-extensions needed to use the shared C libr…

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

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