# Ruby

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

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

---

## [foxGUIb 0.6 released](https://www.ruby-forum.com/t/foxguib-0-6-released/61421)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 2\
**Last updated:** [May 24, 2006, 7:44am UTC](https://www.ruby-forum.com/t/foxguib-0-6-released/61421 "2006-05-24T07:44:10Z")

</div>

dear (FX)Ruby hackers, i am proud to be able to announce the release of foxGUIb 0.6. check out the home page at http://fox-tool.rubyforge.org for details. there is also a small surprise for you which will be announced …

---

## [Test::Unit Patch that allows test methods to be executed seq](https://www.ruby-forum.com/t/test-unit-patch-that-allows-test-methods-to-be-executed-seq/95090)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [May 24, 2006, 7:20am UTC](https://www.ruby-forum.com/t/test-unit-patch-that-allows-test-methods-to-be-executed-seq/95090 "2006-05-24T07:20:04Z")

</div>

This patch to Test::Unit allows you to create TestCases whose test methods will be executed in the order you’ve defined them, rather than alphabetically, which is what Test::Unit does today. http://wiki.openqa.org/dis…

---

## [New article at RC&S: If It's Not Nailed Down, Steal It: Patt](https://www.ruby-forum.com/t/new-article-at-rc-s-if-its-not-nailed-down-steal-it-patt/61405)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [May 24, 2006, 5:20am UTC](https://www.ruby-forum.com/t/new-article-at-rc-s-if-its-not-nailed-down-steal-it-patt/61405 "2006-05-24T05:20:09Z")

</div>

Topher Cyll has written an outstanding article for Ruby Code & Style\[0\]. “If It’s Not Nailed Down, Steal It: Pattern Matching, S-Expressions, and Domain Specific Languages in Ruby.” Summary: There’s a whole world of …

---

## [Re: Zed and Luis drop the bomb on Ruby's poor performance](https://www.ruby-forum.com/t/re-zed-and-luis-drop-the-bomb-on-rubys-poor-performance/95188)

<div class="topic-metadata">

**Author:** [@DEBAUNS\_STEVE\_SAG-C](https://www.ruby-forum.com/u/DEBAUNS_STEVE_SAG-C)\
**Replies:** 0\
**Last updated:** [May 24, 2006, 5:07am UTC](https://www.ruby-forum.com/t/re-zed-and-luis-drop-the-bomb-on-rubys-poor-performance/95188 "2006-05-24T05:07:53Z")

</div>

What scares (excites?) me is that this looks almost close enough to work already. I am both fascinated and horrified. My beautiful Ruby!!! Scarred by the Lisp-rape of a thousand parentheses. I can’t watch. sd

---

## [Embedding ruby in aolserver (Was: Re: segfault when calling](https://www.ruby-forum.com/t/embedding-ruby-in-aolserver-was-re-segfault-when-calling/95106)

<div class="topic-metadata">

**Author:** [@Mark\_Aufflick](https://www.ruby-forum.com/u/Mark_Aufflick)\
**Replies:** 4\
**Last updated:** [May 24, 2006, 4:28am UTC](https://www.ruby-forum.com/t/embedding-ruby-in-aolserver-was-re-segfault-when-calling/95106 "2006-05-24T04:28:06Z")

</div>

Hmm I see. That could be a bit of a problem for my application given that aolserver is highly threaded. I’d have to make a pool of interpreters and supervise access to them to ensure only one thread is using each inte…

---

## [Re: Proposing: A new Ruby Windows installer](https://www.ruby-forum.com/t/re-proposing-a-new-ruby-windows-installer/95173)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 3:15am UTC](https://www.ruby-forum.com/t/re-proposing-a-new-ruby-windows-installer/95173 "2006-05-24T03:15:42Z")

</div>

\-----Original Message----- From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] On Behalf Of Enterprise A. Sent: Tuesday, May 23, 2006 12:40 PM To: ruby-talk ML Subject: Proposin…

---

## [Re: win32 eventlog change\_notify and tail's not tailing in o](https://www.ruby-forum.com/t/re-win32-eventlog-change-notify-and-tails-not-tailing-in-o/61449)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [May 24, 2006, 2:43am UTC](https://www.ruby-forum.com/t/re-win32-eventlog-change-notify-and-tails-not-tailing-in-o/61449 "2006-05-24T02:43:45Z")

</div>

Park H. \[mailto:removed\_email\_address@domain.invalid\] : Refer to http://rubyforge.org/pipermail/win32utils-devel/2006-May/000571.html I recommend you to wait the announcement of new win32-eventlog package before i…

---

## [Re: Atomic File.copy from Linux to Windows shared drive](https://www.ruby-forum.com/t/re-atomic-file-copy-from-linux-to-windows-shared-drive/95181)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [May 24, 2006, 2:37am UTC](https://www.ruby-forum.com/t/re-atomic-file-copy-from-linux-to-windows-shared-drive/95181 "2006-05-24T02:37:32Z")

</div>

The problem is that File.rename is raising Errno::EXDEV errors, and simply ignoring those won’t work. Shouldn’t it be: File.copy(‘temp.txt’, ‘/X/temp.bak’) File.rename(’/X/temp.bak’, ‘/X/temp.txt’) Whoops! Yeah,…

---

## [Writing a interpreter extension](https://www.ruby-forum.com/t/writing-a-interpreter-extension/61035)

<div class="topic-metadata">

**Author:** [@kris](https://www.ruby-forum.com/u/kris)\
**Replies:** 49\
**Last updated:** [May 24, 2006, 2:06am UTC](https://www.ruby-forum.com/t/writing-a-interpreter-extension/61035 "2006-05-24T02:06:35Z")

</div>

When writing a interpreter extension are there any hooks in to the different stages of interpretation? In particular I would like to pre-process the ruby file/class being interpreted. Is a ruby class block loaded from…

---

## [Using rb\_str\_insert from c](https://www.ruby-forum.com/t/using-rb-str-insert-from-c/61432)

<div class="topic-metadata">

**Author:** [@splashlin](https://www.ruby-forum.com/u/splashlin)\
**Replies:** 3\
**Last updated:** [May 24, 2006, 1:23am UTC](https://www.ruby-forum.com/t/using-rb-str-insert-from-c/61432 "2006-05-24T01:23:12Z")

</div>

Hi all, The function: static VALUE rb\_str\_insert(VALUE, VALUE, VALUE) is defined in string.c but is static and so is not avalible to me to call directly on my string. I have a feeling rb\_funcall is my answer but I …

---

## [Re: How to "go to" in a RUBY script . .](https://www.ruby-forum.com/t/re-how-to-go-to-in-a-ruby-script/60935)

<div class="topic-metadata">

**Author:** [@DEBAUNS\_STEVE\_SAG-C](https://www.ruby-forum.com/u/DEBAUNS_STEVE_SAG-C)\
**Replies:** 27\
**Last updated:** [May 23, 2006, 11:39pm UTC](https://www.ruby-forum.com/t/re-how-to-go-to-in-a-ruby-script/60935 "2006-05-23T23:39:25Z")

</div>

To everyone else: I’ll distract him, while y’all get a rope. :wink: sd

---

## [Atomic File.copy from Linux to Windows shared drive](https://www.ruby-forum.com/t/atomic-file-copy-from-linux-to-windows-shared-drive/95179)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [May 23, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/atomic-file-copy-from-linux-to-windows-shared-drive/95179 "2006-05-23T23:20:23Z")

</div>

Hi all, We’ve got a Linux box that runs some reports. When the reports are finished they’re supposed to be copied to a public drive setup via Samba, with a Samba client on the Linux box and a Samba server setup on a…

---

## [Anobject question](https://www.ruby-forum.com/t/anobject-question/61409)

<div class="topic-metadata">

**Author:** [@narizona](https://www.ruby-forum.com/u/narizona)\
**Replies:** 3\
**Last updated:** [May 23, 2006, 10:58pm UTC](https://www.ruby-forum.com/t/anobject-question/61409 "2006-05-23T22:58:16Z")

</div>

In prag ruby the purchased copy, the following code fragment is shown. Look at where I added the \>\>\>\>. That line VU.new(@volume.succ). What I think it should do is create a new object instance of the class. What it…

---

## [Regexp help: Matching HTML having trouble w/greediness](https://www.ruby-forum.com/t/regexp-help-matching-html-having-trouble-w-greediness/61398)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [May 23, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/regexp-help-matching-html-having-trouble-w-greediness/61398 "2006-05-23T22:21:03Z")

</div>

All, I am attempting to do some matching on some HTML. Here’s what I want: I want to be able to match any tag which is of the form \<area …\> that does NOT contain a “mailto:” href. The grouping is for some substitu…

---

## [URUG/UtahValley.rb meeting tonight (last call)](https://www.ruby-forum.com/t/urug-utahvalley-rb-meeting-tonight-last-call/61401)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [May 23, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/urug-utahvalley-rb-meeting-tonight-last-call/61401 "2006-05-23T20:22:40Z")

</div>

Tonight (May 23rd), the utahvalley.rb is getting together at 7PM (MDT) in room 120 of the TMCB (building 80 on the map here: http://map.byu.edu/Map.html – flash required). As previously announced, we’re going to work…

---

## [Mongrel 0.3.13 Pre-Release Update -- Yep, Again](https://www.ruby-forum.com/t/mongrel-0-3-13-pre-release-update-yep-again/61366)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 1\
**Last updated:** [May 23, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/mongrel-0-3-13-pre-release-update-yep-again/61366 "2006-05-23T20:16:24Z")

</div>

Hi Folks, This is another pre-release announcement with lots of goodies for people to test and play with. At this rate the 0.3.13 release may just turn into 0.4. GETTING IT Pretty simple, just gem install mongrel …

---

## [Fun with Time#to\_s and locale](https://www.ruby-forum.com/t/fun-with-time-to-s-and-locale/95171)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 23, 2006, 7:54pm UTC](https://www.ruby-forum.com/t/fun-with-time-to-s-and-locale/95171 "2006-05-23T19:54:33Z")

</div>

Hi all, I was futzing around with Time objects and locale. Searching the archives I didn’t really see anything that let me get Time objects back in the locale string that I want. Did I reinvent the wheel? require ‘…

---

## [Closing the Scary Door -- Differentiating Modules from Class](https://www.ruby-forum.com/t/closing-the-scary-door-differentiating-modules-from-class/95169)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 23, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/closing-the-scary-door-differentiating-modules-from-class/95169 "2006-05-23T19:36:17Z")

</div>

NOTE I originally wrote this back in Aug. '05. I’m taking down my blog, so I just want to put this “on the record”. This is purely a theoretical consideration, of course, nontheless I think it’s interesting enough to …

---

## [Re: Compiling ruby - cannot find install-sh or install.sh](https://www.ruby-forum.com/t/re-compiling-ruby-cannot-find-install-sh-or-install-sh/95139)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [May 23, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/re-compiling-ruby-cannot-find-install-sh-or-install-sh/95139 "2006-05-23T19:17:39Z")

</div>

I’ve compiled ruby in the past using MingGW / MSYS on Windows, but for some reason I’m now getting an error when doing the “./configure” command, which is “configure: error: cannot find install-sh or install.sh” us…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/95167)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 0\
**Last updated:** [May 23, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/no-subject/95167 "2006-05-23T18:43:56Z")

</div>

\-------- Forwarded Message -------- From: Charlie B. removed\_email\_address@domain.invalid Subject: Re: Shameless plug of my web 2.0 app Date: Tue, 23 May 2006 12:04:32 -0400 Your site definitely doesn’t fall into the…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/95166)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 0\
**Last updated:** [May 23, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/no-subject/95166 "2006-05-23T18:43:42Z")

</div>

\-------- Forwarded Message -------- From: Charlie B. removed\_email\_address@domain.invalid Subject: Re: program writing Date: Tue, 23 May 2006 10:50:40 -0400 I like to create a tool. My first ruby tool was a little t…

---

## [Program writing](https://www.ruby-forum.com/t/program-writing/61299)

<div class="topic-metadata">

**Author:** [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Replies:** 21\
**Last updated:** [May 23, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/program-writing/61299 "2006-05-23T18:09:37Z")

</div>

i think i understand the basic syntax of ruby, now what do i do with it? I open up my text editor and draw a blank. How do i get ideas and actually start programming? Its alot of different than poetry or art where i c…

---

## [Read File Into An Array](https://www.ruby-forum.com/t/read-file-into-an-array/61378)

<div class="topic-metadata">

**Author:** [@bc90141](https://www.ruby-forum.com/u/bc90141)\
**Replies:** 10\
**Last updated:** [May 23, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/read-file-into-an-array/61378 "2006-05-23T18:09:21Z")

</div>

Hi, I want to read a file into an array. I’m using the following code: contentsArray = Array.new f = File.open(“filenamehere”) or die “Unable to open file…” contentsArray = filenamehere.each\_line { |line| } However…

---

## [Creating Hash of Arrays](https://www.ruby-forum.com/t/creating-hash-of-arrays/61300)

<div class="topic-metadata">

**Author:** [@Paul\_DSKraus](https://www.ruby-forum.com/u/Paul_DSKraus)\
**Replies:** 7\
**Last updated:** [May 23, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/creating-hash-of-arrays/61300 "2006-05-23T18:06:13Z")

</div>

How can I create a hash that contains an array for its value? How can I then loop through the hash keys and intern the contained arrays. Pseudo Code myhash\[‘customercode’\]\[0\]=Firstname myhash\[‘customercode’\]\[1\]=M.I …

---

## [Performance characteristics of Ruby constructs](https://www.ruby-forum.com/t/performance-characteristics-of-ruby-constructs/61326)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 5\
**Last updated:** [May 23, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/performance-characteristics-of-ruby-constructs/61326 "2006-05-23T17:59:36Z")

</div>

Hi. I’m right in the situation where I would like to find out some performance characteristics for various parts of Ruby, to optimize an application. Is there any resources available for this? To make it concrete, le…

---

## [Shameless plug of my web 2.0 app](https://www.ruby-forum.com/t/shameless-plug-of-my-web-2-0-app/95159)

<div class="topic-metadata">

**Author:** [@jojojobbins](https://www.ruby-forum.com/u/jojojobbins)\
**Replies:** 11\
**Last updated:** [May 23, 2006, 5:25pm UTC](https://www.ruby-forum.com/t/shameless-plug-of-my-web-2-0-app/95159 "2006-05-23T17:25:11Z")

</div>

Apologies if this is out of place. I just wanted to mention to the list that I’ve completed my first Ruby on Rails app and wanted to show it to you guys. The site is The Best Stuff in the World! which you can reach he…

---

## [Re: Read File Into An Array](https://www.ruby-forum.com/t/re-read-file-into-an-array/61380)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 23, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/re-read-file-into-an-array/61380 "2006-05-23T16:39:59Z")

</div>

I want to read a file into an array. I’m using the following code: contentsArray = Array.new f = File.open(“filenamehere”) or die “Unable to open file…” contentsArray = filenamehere.each\_line { |line| } However, it…

---

## [Format strings?](https://www.ruby-forum.com/t/format-strings/61375)

<div class="topic-metadata">

**Author:** [@Vlad\_GALU](https://www.ruby-forum.com/u/Vlad_GALU)\
**Replies:** 7\
**Last updated:** [May 23, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/format-strings/61375 "2006-05-23T16:36:04Z")

</div>

Having an int object, let’s say the value is 2, I’d like to print it out as “0002”. I miss C’s format strings. Any hints ? Thanks in advance.

---

## [Substituting with a find counter . .](https://www.ruby-forum.com/t/substituting-with-a-find-counter/61373)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [May 23, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/substituting-with-a-find-counter/61373 "2006-05-23T16:23:13Z")

</div>

In this gsub block, I’d like to save the searched parenthetical data, indicated by (.\*) in line 2. The script works, but, instead of getting the parenthetical data, I’m getting “$1.” Very literal, but, not what I want…

---

## [I call Ducktype Violation on #to\_proc! :)](https://www.ruby-forum.com/t/i-call-ducktype-violation-on-to-proc/95057)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 19\
**Last updated:** [May 23, 2006, 3:25pm UTC](https://www.ruby-forum.com/t/i-call-ducktype-violation-on-to-proc/95057 "2006-05-23T15:25:20Z")

</div>

Trying to be just ducky… class X def to\_proc self end def call “x” end end x = X.new def y( &b ) b.call end y(&x) TypeError: X#to\_proc should return Proc from (irb):14 Why isn’t it enough that it x respon…

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

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