# Ruby

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

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

---

## [How to develop on OS X + debugger problems](https://www.ruby-forum.com/t/how-to-develop-on-os-x-debugger-problems/71772)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 22, 2006, 7:48pm UTC](https://www.ruby-forum.com/t/how-to-develop-on-os-x-debugger-problems/71772 "2006-02-22T19:48:04Z")

</div>

Hi, I just started developing Ruby on OS X and didn’t find any good IDEs. What is the best way to do it? I absolutely need a debugger. Currently, I am using Eclipse with the RDT plugin, but all I get when stepping is…

---

## [Nested arrays](https://www.ruby-forum.com/t/nested-arrays/71970)

<div class="topic-metadata">

**Author:** [@Mathias](https://www.ruby-forum.com/u/Mathias)\
**Replies:** 2\
**Last updated:** [February 22, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/nested-arrays/71970 "2006-02-22T19:45:03Z")

</div>

Hi, I’m new to this gem called ruby, but having difficulties generating nested arrays. Why is: var = Array.new(p, Array.new(q, 0)) not the same as: var = Array.new§ {Array.new(q, 0)} ?? (I know the later one works, b…

---

## [Using RMagick to extract IPTC data from JPEG file](https://www.ruby-forum.com/t/using-rmagick-to-extract-iptc-data-from-jpeg-file/71259)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSmy](https://www.ruby-forum.com/u/JSSSSrSSSSmy)\
**Replies:** 8\
**Last updated:** [February 22, 2006, 7:20pm UTC](https://www.ruby-forum.com/t/using-rmagick-to-extract-iptc-data-from-jpeg-file/71259 "2006-02-22T19:20:43Z")

</div>

Hi all, I’m relatively new to Ruby and RMagick. I want to extract IPTC information from JPEG files. Elements that I’ve already found are : From RMagick, iptc\_profile : RMagick 1.15.0: class Image (attribute methods) …

---

## [Re: puts behaviour](https://www.ruby-forum.com/t/re-puts-behaviour/71886)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [February 22, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/re-puts-behaviour/71886 "2006-02-22T19:15:22Z")

</div>

\-----Original Message----- From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] On Behalf Of James B. Sent: Wednesday, February 22, 2006 9:29 AM To: ruby-talk ML Subject: puts be…

---

## [A small refractory problem](https://www.ruby-forum.com/t/a-small-refractory-problem/71841)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 7\
**Last updated:** [February 22, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/a-small-refractory-problem/71841 "2006-02-22T19:01:39Z")

</div>

I have this code: def move(sourcedir,globspec,targetdir,suf=nil) if sourcedir.kindof?(self.class) then sourcedir = sourcedir.path end sourcedir = File.expand\_path(sourcedir.to\_s) if !self.validpath?(sourcedir) then r…

---

## [How does one get a String representation of an Array (not to](https://www.ruby-forum.com/t/how-does-one-get-a-string-representation-of-an-array-not-to/71928)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 22, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/how-does-one-get-a-string-representation-of-an-array-not-to/71928 "2006-02-22T18:59:28Z")

</div>

Hi all (I know about to\_s — that isn’t what this post is about!) Say I have an array that I create with: a = \[1, 2, \[3, 4\], 5\] At the irb prompt, Ruby replies: =\> \[1, 2, \[3, 4\], 5\] So how do I get a String containi…

---

## [Install into $HOME fails](https://www.ruby-forum.com/t/install-into-home-fails/54043)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 22, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/install-into-home-fails/54043 "2006-02-22T18:50:15Z")

</div>

I don’t know how to install Ruby into my home directory. Looking at the Makefile, I thought that make prefix=$HOME install should do the job, but make still tries to install into /usr/local (which fails because I don…

---

## [Dirty ranges](https://www.ruby-forum.com/t/dirty-ranges/70863)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [February 22, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/dirty-ranges/70863 "2006-02-22T18:41:09Z")

</div>

I’m a new Ruby user (currently at page 68 of Programming Ruby !) and having found something weird, I wonder if either a) “you have already found a bug, report it” or b) “yeah, yeah, we all know that this is a bit weir…

---

## [Subversion Handy Backup, rev 9](https://www.ruby-forum.com/t/subversion-handy-backup-rev-9/71926)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 0\
**Last updated:** [February 22, 2006, 6:37pm UTC](https://www.ruby-forum.com/t/subversion-handy-backup-rev-9/71926 "2006-02-22T18:37:52Z")

</div>

http://handy.rubyforge.org/ A daily cronjob that does this: creates a hotcopy of your subversion repository. compresses the hotcopy. uploads it to a ftp site. notifies the admin about status. I run this on an old P12…

---

## [I'm SYCKened by the SYCK tutorial I found](https://www.ruby-forum.com/t/im-syckened-by-the-syck-tutorial-i-found/70862)

<div class="topic-metadata">

**Author:** [@Asfand\_Yar\_Q](https://www.ruby-forum.com/u/Asfand_Yar_Q)\
**Replies:** 2\
**Last updated:** [February 22, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/im-syckened-by-the-syck-tutorial-i-found/70862 "2006-02-22T18:01:07Z")

</div>

I am SYCK with disgust… I did a search for ‘syck tutorial’ (without the quotes) on google - and the first search item that came up? “suck cock tutorial - suckcocktutorial” Ahem. That .why character is behind this, …

---

## [Checking for gems that need to be updated](https://www.ruby-forum.com/t/checking-for-gems-that-need-to-be-updated/71649)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 4\
**Last updated:** [February 22, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/checking-for-gems-that-need-to-be-updated/71649 "2006-02-22T16:59:25Z")

</div>

Is there an easy way to list which installed gems are out of date? Basically it would look at the local gems, compare them to the latest remote versions, and just show me if there’s a newer version available. Pat

---

## [Blocks / Closures](https://www.ruby-forum.com/t/blocks-closures/54044)

<div class="topic-metadata">

**Author:** [@Picklegnome](https://www.ruby-forum.com/u/Picklegnome)\
**Replies:** 13\
**Last updated:** [February 22, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/blocks-closures/54044 "2006-02-22T16:28:40Z")

</div>

I’ve just been looking into Ruby in the last few days, and I must say it does look promising. However, many of the tutorials and other resources I’ve been looking at use blocks. Having done some research, I’m beginnin…

---

## [Simple mail send ... CGI or ActionMailer?](https://www.ruby-forum.com/t/simple-mail-send-cgi-or-actionmailer/71616)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 8\
**Last updated:** [February 22, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/simple-mail-send-cgi-or-actionmailer/71616 "2006-02-22T16:01:00Z")

</div>

I want to send some mail using ruby as the CGI. I have no trouble creating the parsing code. What I need is a quick easy way to send the mail. Does the overhead of using ActionMailer under Rails work here. The mail …

---

## [Keeping up with Ruby?](https://www.ruby-forum.com/t/keeping-up-with-ruby/54052)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 2\
**Last updated:** [February 22, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/keeping-up-with-ruby/54052 "2006-02-22T15:41:09Z")

</div>

Is there a way to find what extensions / libraries of Ruby code are installed in any given Ruby installation and the location of their respective Ruby Code. I am having trouble with a systematic method produce RDoc …

---

## [Question about String.unpack](https://www.ruby-forum.com/t/question-about-string-unpack/54042)

<div class="topic-metadata">

**Author:** [@cowboy\_x](https://www.ruby-forum.com/u/cowboy_x)\
**Replies:** 8\
**Last updated:** [February 22, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/question-about-string-unpack/54042 "2006-02-22T14:45:48Z")

</div>

Hi, Say i’ve a C struct like that: typedef struct { char name\[30\]; double size; int age; char stuff; } enreg\_t; This record is written in a file that i want to re-read with a Ruby script (just a toy example… to …

---

## [Need: hierarchic data structure](https://www.ruby-forum.com/t/need-hierarchic-data-structure/71437)

<div class="topic-metadata">

**Author:** [@henon](https://www.ruby-forum.com/u/henon)\
**Replies:** 4\
**Last updated:** [February 22, 2006, 1:54pm UTC](https://www.ruby-forum.com/t/need-hierarchic-data-structure/71437 "2006-02-22T13:54:34Z")

</div>

hi, i am searching for an implementation of a hierarchic datastructure that behaves similar to a file system except that get of an inexistent path returns nil and set of an unexistent path creates the required nodes …

---

## [Need for threads](https://www.ruby-forum.com/t/need-for-threads/54053)

<div class="topic-metadata">

**Author:** [@tony\_summerfelt](https://www.ruby-forum.com/u/tony_summerfelt)\
**Replies:** 5\
**Last updated:** [February 22, 2006, 1:51pm UTC](https://www.ruby-forum.com/t/need-for-threads/54053 "2006-02-22T13:51:30Z")

</div>

a discussion of tcl threads came up in that newsgroup. one of the posts stopped me cold. the msg boiled down to: on a single non-ht cpu if your program can’t do soemthnig while waiting on a resource there’s no real ne…

---

## [ANN: Second drop of RubyCLR bridge](https://www.ruby-forum.com/t/ann-second-drop-of-rubyclr-bridge/71129)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 9\
**Last updated:** [February 22, 2006, 1:29pm UTC](https://www.ruby-forum.com/t/ann-second-drop-of-rubyclr-bridge/71129 "2006-02-22T13:29:02Z")

</div>

This is a much more complete drop of the bridge: http://www.iunknown.com/articles/2006/02/20/second-drop-of-rubyclr To show off its features, I’ve built a non-trivial all-Ruby Windows Forms 2.0 RSS Reader application…

---

## [How can I evaluate and visualize code instead of running it](https://www.ruby-forum.com/t/how-can-i-evaluate-and-visualize-code-instead-of-running-it/71214)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 5\
**Last updated:** [February 22, 2006, 11:30am UTC](https://www.ruby-forum.com/t/how-can-i-evaluate-and-visualize-code-instead-of-running-it/71214 "2006-02-22T11:30:05Z")

</div>

I am using a tree and traversing down a tree to generate opengl code How could I easily list the opengl code that I am generating, instead of running it? def applytransform GL.PushMatrix(); GL.Translate(@Translation)…

---

## [Newbie: need suggestion for "the ruby way"](https://www.ruby-forum.com/t/newbie-need-suggestion-for-the-ruby-way/71125)

<div class="topic-metadata">

**Author:** [@kiol](https://www.ruby-forum.com/u/kiol)\
**Replies:** 4\
**Last updated:** [February 22, 2006, 11:24am UTC](https://www.ruby-forum.com/t/newbie-need-suggestion-for-the-ruby-way/71125 "2006-02-22T11:24:01Z")

</div>

I write some code for generate file index for a directory.like this: #!/usr/local/bin/ruby def parse\_options(args) require ‘optparse’ require ‘ostruct’ options = OpenStruct.new opts = OptionParser.new(“Usage: genin…

---

## [Excel file modification without win32ole](https://www.ruby-forum.com/t/excel-file-modification-without-win32ole/70529)

<div class="topic-metadata">

**Author:** [@Julius\_de\_Bruijn](https://www.ruby-forum.com/u/Julius_de_Bruijn)\
**Replies:** 3\
**Last updated:** [February 22, 2006, 7:53am UTC](https://www.ruby-forum.com/t/excel-file-modification-without-win32ole/70529 "2006-02-22T07:53:55Z")

</div>

Greetings, I’ve been coding some internal tools for my company with Ruby for several months and I’d like to distribute some of those tools to other employees too. I have one specific tool, which does some calculatio…

---

## [Converting Integer to binary string](https://www.ruby-forum.com/t/converting-integer-to-binary-string/71732)

<div class="topic-metadata">

**Author:** [@Harold\_H](https://www.ruby-forum.com/u/Harold_H)\
**Replies:** 2\
**Last updated:** [February 22, 2006, 7:26am UTC](https://www.ruby-forum.com/t/converting-integer-to-binary-string/71732 "2006-02-22T07:26:29Z")

</div>

Hello all, I tried searching the list for this, but didn’t see the answer anywhere. A lot of people trying to do the opposite, but… :slight\_smile: I’d like to convert the Integer 585 to the string “1001001001” I see …

---

## [Force at\_exit/ensure NOT to run](https://www.ruby-forum.com/t/force-at-exit-ensure-not-to-run/71729)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 22, 2006, 6:47am UTC](https://www.ruby-forum.com/t/force-at-exit-ensure-not-to-run/71729 "2006-02-22T06:47:51Z")

</div>

i’m trying to debug something and thought i could prevent some at\_exit and ensure blocks from running by doing a Process::kill -9, Process::pid but, apparently, i’m wrong. shouldn’t this work? if not what might? t…

---

## [DB2 Driver on RHEL 4 x86\_64](https://www.ruby-forum.com/t/db2-driver-on-rhel-4-x86-64/70952)

<div class="topic-metadata">

**Author:** [@Costas](https://www.ruby-forum.com/u/Costas)\
**Replies:** 1\
**Last updated:** [February 22, 2006, 1:33am UTC](https://www.ruby-forum.com/t/db2-driver-on-rhel-4-x86-64/70952 "2006-02-22T01:33:52Z")

</div>

Having some trouble getting the Ruby/DB2 Driver going on my x86\_64 box… FWIW, I’m using DB2 8.1, and have set DB2DIR=/opt/IBM/db2/V8.1 ; I’m pretty sure the path is correct, and I’m installing as root. I’m trying to…

---

## [YAML's handling of Bignum's in 1.8.4](https://www.ruby-forum.com/t/yamls-handling-of-bignums-in-1-8-4/71126)

<div class="topic-metadata">

**Author:** [@Ron\_M](https://www.ruby-forum.com/u/Ron_M)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/yamls-handling-of-bignums-in-1-8-4/71126 "2006-02-21T23:43:46Z")

</div>

Is there any reason why 1.8.4’s YAML exposes what seems to be an implementation detail of how many bits it takes to overflow into a Bignum. It seems for interoperability with other languages that use yaml, it’d be ve…

---

## [Re: Eating CPAN - Was Port A Library](https://www.ruby-forum.com/t/re-eating-cpan-was-port-a-library/71612)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 10:42pm UTC](https://www.ruby-forum.com/t/re-eating-cpan-was-port-a-library/71612 "2006-02-21T22:42:30Z")

</div>

much better. Which are the most important/useful libraries? I might like to try my hand at one. Steve There is The Phalanx 100 - qa.perl.org, but most of those already exist in one form or another in Ruby or on…

---

## [Classes and OO design - help](https://www.ruby-forum.com/t/classes-and-oo-design-help/70473)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 10\
**Last updated:** [February 21, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/classes-and-oo-design-help/70473 "2006-02-21T22:26:57Z")

</div>

Hello Everybody, First of all, thank you so much for participating to this list and help poor Ruby newbies like me! I feel the need to start this email with an apology. I am a terrible programmer. Ruby is the only t…

---

## [Re: system() help](https://www.ruby-forum.com/t/re-system-help/71577)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/re-system-help/71577 "2006-02-21T21:46:50Z")

</div>

system() does not do anyting with stdout or stdin, and it returns true or false depending on the command exit code. If you want to collect the program’s stdin, the easiest way would be to use backquotes: @myresult = l…

---

## [Re: system() help](https://www.ruby-forum.com/t/re-system-help/71576)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/re-system-help/71576 "2006-02-21T21:46:49Z")

</div>

require “open3” stdin, stdout, stderr = Open3.popen3(‘man ruby’) (You don’t have to use stdin if you don’t want to) Use the block form. :slight\_smile: Open3.popen3(‘man ruby’){ |stdin, stdout, stderr| … } Closes…

---

## [System() help](https://www.ruby-forum.com/t/system-help/71573)

<div class="topic-metadata">

**Author:** [@zaq](https://www.ruby-forum.com/u/zaq)\
**Replies:** 2\
**Last updated:** [February 21, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/system-help/71573 "2006-02-21T21:40:46Z")

</div>

are there any docs describing how to get stderr vs stdout from a system()? @myresult = system(mycmd) works only if I have stdout returned but not stderr. thanks

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

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