# Ruby

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

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

---

## [Extracting instance variables from a block?](https://www.ruby-forum.com/t/extracting-instance-variables-from-a-block/101810)

<div class="topic-metadata">

**Author:** [@azraelnewtype](https://www.ruby-forum.com/u/azraelnewtype)\
**Replies:** 3\
**Last updated:** [August 8, 2006, 5:37am UTC](https://www.ruby-forum.com/t/extracting-instance-variables-from-a-block/101810 "2006-08-08T05:37:15Z")

</div>

Hello fellow Rubyists, I am writing a tiny custom web framework, similar in nature to web.py (http://webpy.org/). However, I’d like someone with better metaprogramming-foo to help me clean up some syntax a bit. Here’…

---

## [Dispatching requests in SOAP](https://www.ruby-forum.com/t/dispatching-requests-in-soap/101728)

<div class="topic-metadata">

**Author:** [@rickthemick](https://www.ruby-forum.com/u/rickthemick)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 5:07am UTC](https://www.ruby-forum.com/t/dispatching-requests-in-soap/101728 "2006-08-08T05:07:48Z")

</div>

Hi! I have built a small SOAP server and wonders and have a few questions. I included the code below if it is of interest! What is the best trick to get these requests spawned into new threads/processes so that t…

---

## [European Rubyists: Thank You!](https://www.ruby-forum.com/t/european-rubyists-thank-you/101811)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 4:49am UTC](https://www.ruby-forum.com/t/european-rubyists-thank-you/101811 "2006-08-08T04:49:46Z")

</div>

Well, I’m back from Europe – I have been for the last six days or so, but I’ve been catching up – and I wanted to thank the hospitality of the European Rubyists that I met. I wrote a bit more on this on my blog: http:…

---

## [Mechanize iframes](https://www.ruby-forum.com/t/mechanize-iframes/101775)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 3:40am UTC](https://www.ruby-forum.com/t/mechanize-iframes/101775 "2006-08-08T03:40:41Z")

</div>

Hi, could anyone give me an idea how can I get any element inside iframe using mechanize? i get irb(main):026:0\> page.iframes =\> \[‘view\_frame’ → /something?some\_id=1234\] how can I fill form, click on links inside t…

---

## [FreeBSD specific issue with gems and ports](https://www.ruby-forum.com/t/freebsd-specific-issue-with-gems-and-ports/101689)

<div class="topic-metadata">

**Author:** [@viciu](https://www.ruby-forum.com/u/viciu)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 3:10am UTC](https://www.ruby-forum.com/t/freebsd-specific-issue-with-gems-and-ports/101689 "2006-08-08T03:10:39Z")

</div>

Hi! This is FreeBSD specific issue. Maybe someone who uses FreeBSD could help me with this: I wonder if there is any ‘recommended’ way of installing Ruby’s gems not wrapped in separated port? I have on 5.5 box instal…

---

## [Mechanize](https://www.ruby-forum.com/t/mechanize/101471)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 8\
**Last updated:** [August 8, 2006, 2:37am UTC](https://www.ruby-forum.com/t/mechanize/101471 "2006-08-08T02:37:36Z")

</div>

I’m trying to figure out how to use Mechanize to get the data out of a select list in a page. The docs aren’t too clear on the steps needed to do that. Anyone have a good reference for me to use so that I can do this…

---

## [I'll have the duck!](https://www.ruby-forum.com/t/ill-have-the-duck/99547)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 101\
**Last updated:** [August 8, 2006, 2:31am UTC](https://www.ruby-forum.com/t/ill-have-the-duck/99547 "2006-08-08T02:31:35Z")

</div>

I promised myself I’d shut-up for awhile, maybe I still should, but I just couldn’t help myself with this one… Today I wrote data = data.transform but I meant to write data = transform(data) While I knew data would…

---

## [Speaking of T-shirts](https://www.ruby-forum.com/t/speaking-of-t-shirts/101064)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 4\
**Last updated:** [August 8, 2006, 2:07am UTC](https://www.ruby-forum.com/t/speaking-of-t-shirts/101064 "2006-08-08T02:07:34Z")

</div>

The other day in a fit of insomnia I designed the “Ruby geek” symbol. It’s based on ESR’s thing (some of you may cringe). You know, the floater from Conway’s Game of Life. See Ruby.shop : The Mathom-House Cheers, H…

---

## [Ruby stable branch is....1.9?](https://www.ruby-forum.com/t/ruby-stable-branch-is-1-9/101292)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 17\
**Last updated:** [August 8, 2006, 1:40am UTC](https://www.ruby-forum.com/t/ruby-stable-branch-is-1-9/101292 "2006-08-08T01:40:32Z")

</div>

I downloaded what I thought was the 1.8.5 stable branch from ruby-lang.org tonight. Here’s what I got: ruby -v ruby 1.9.0 (2006-08-04) \[i686-linux\] Matz, is there something you want to tell us? :slight\_smile: Da…

---

## [Mysql gem installation](https://www.ruby-forum.com/t/mysql-gem-installation/101772)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 1:19am UTC](https://www.ruby-forum.com/t/mysql-gem-installation/101772 "2006-08-08T01:19:29Z")

</div>

Thanking everyone for all the help I’ve been given to this point, I’m trying to get the mysql interface for ruby installed. I first tried using the distribution (Ubuntu breezy) apt-get to install the libmysql-ruby. It…

---

## [Open4-0.5.0](https://www.ruby-forum.com/t/open4-0-5-0/101793)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 8, 2006, 1:07am UTC](https://www.ruby-forum.com/t/open4-0-5-0/101793 "2006-08-08T01:07:29Z")

</div>

URIS http://rubyforge.org/projects/codeforpeople/ http://www.codeforpeople.com/lib/ruby/ SYNOPSIS open child process with handles on pid, stdin, stdout, and stderr: manage child processes and their io handles easil…

---

## [DateTime.sec\_fraction and day\_fraction\_to\_time return incorr](https://www.ruby-forum.com/t/datetime-sec-fraction-and-day-fraction-to-time-return-incorr/101740)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 12:10am UTC](https://www.ruby-forum.com/t/datetime-sec-fraction-and-day-fraction-to-time-return-incorr/101740 "2006-08-08T00:10:25Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B$U$J$P$5$s$,8+$F$i$C$7$c$k$h$&$@$+$iJ9$$$F$\*$3$&!#e(B \[ruby-core:08512\]e$B$Ke(B require ‘date’ t = DateTime.parse(‘2006-08-03 14:22:44.500’) p t.to\_s puts t.sec =\> 44 puts t.s…

---

## [Off the wall question](https://www.ruby-forum.com/t/off-the-wall-question/101695)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 12:01am UTC](https://www.ruby-forum.com/t/off-the-wall-question/101695 "2006-08-08T00:01:25Z")

</div>

I found myself wondering if anyone has written any kind of rubyinline in reverse. What I’m talking about is a tool that could process some of the core ruby source files like array.c, hash.c etc., and produce equivalen…

---

## [How to recognize which child process has just ended?](https://www.ruby-forum.com/t/how-to-recognize-which-child-process-has-just-ended/101743)

<div class="topic-metadata">

**Author:** [@wookie](https://www.ruby-forum.com/u/wookie)\
**Replies:** 5\
**Last updated:** [August 7, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/how-to-recognize-which-child-process-has-just-ended/101743 "2006-08-07T23:32:05Z")

</div>

Hi! The piece of software I’m working on now needs to fork child processes and execute different programs (which terminate themselves). Also, some child processes need to be killed/stopped/resumed and action needs to …

---

## [Re: Ruby Cookbook](https://www.ruby-forum.com/t/re-ruby-cookbook/101720)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 1\
**Last updated:** [August 7, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/re-ruby-cookbook/101720 "2006-08-07T23:31:21Z")

</div>

As someone with a visual disability who uses a talking computer system, I wish to personally commend the accessibility of publications by the Pragmatic Programmers site. When a book is only published in hard copy, it…

---

## [Problem with Ruby Installation](https://www.ruby-forum.com/t/problem-with-ruby-installation/101626)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 10\
**Last updated:** [August 7, 2006, 9:49pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-installation/101626 "2006-08-07T21:49:15Z")

</div>

I’m running Ubuntu Breezy. Because of some problems with the version of Rails distributed with it, I’ve compiled ruby 1.8.4 and installed it - and have removed the version from the distribution. I’m now getting the er…

---

## [Ruby-Perl IPC messaging API (idea from SOAP)](https://www.ruby-forum.com/t/ruby-perl-ipc-messaging-api-idea-from-soap/101715)

<div class="topic-metadata">

**Author:** [@rickthemick](https://www.ruby-forum.com/u/rickthemick)\
**Replies:** 3\
**Last updated:** [August 7, 2006, 9:25pm UTC](https://www.ruby-forum.com/t/ruby-perl-ipc-messaging-api-idea-from-soap/101715 "2006-08-07T21:25:21Z")

</div>

Hi! I want to something like SOAP but with local IPC (dont want to use HTTP and dont want to waste ports). In my case I want to be able to start Perl-scripts from Ruby without having to parse some strange self-invent…

---

## [Select box question](https://www.ruby-forum.com/t/select-box-question/101759)

<div class="topic-metadata">

**Author:** [@Shanan\_S](https://www.ruby-forum.com/u/Shanan_S)\
**Replies:** 2\
**Last updated:** [August 7, 2006, 9:19pm UTC](https://www.ruby-forum.com/t/select-box-question/101759 "2006-08-07T21:19:12Z")

</div>

Hi, Yet another newbie here… I’m writing an appliction in Rails, and I’ve Ajaxified my select boxes so they update dynamically. I used the “observe\_field” method to monitor changes to my select box. I find that it’…

---

## [Using Test::Unit to automate reporting of failures](https://www.ruby-forum.com/t/using-test-unit-to-automate-reporting-of-failures/101729)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 7, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/using-test-unit-to-automate-reporting-of-failures/101729 "2006-08-07T21:13:11Z")

</div>

I’m using Test::Unit along with the Watir framework to run tests against my website. I would like to be able to do 2 things: Pass in a “server” parameter to allow the tests to be run against the developement, stagin…

---

## [Strange NoMethodError](https://www.ruby-forum.com/t/strange-nomethoderror/101712)

<div class="topic-metadata">

**Author:** [@Holger\_B](https://www.ruby-forum.com/u/Holger_B)\
**Replies:** 2\
**Last updated:** [August 7, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/strange-nomethoderror/101712 "2006-08-07T20:52:10Z")

</div>

Hi, In the following test script (similar to pickaxe p. 700 ): require ‘net/http’ require ‘uri’ def fetch (uri\_str, limit=10) fail ‘http redirect limit exceeded’ if limit.zero? response = Net::HTTP.get\_response(URI…

---

## [Simple question: combine a quoted string into a single token](https://www.ruby-forum.com/t/simple-question-combine-a-quoted-string-into-a-single-token/101747)

<div class="topic-metadata">

**Author:** [@Squeamizh](https://www.ruby-forum.com/u/Squeamizh)\
**Replies:** 2\
**Last updated:** [August 7, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/simple-question-combine-a-quoted-string-into-a-single-token/101747 "2006-08-07T20:37:06Z")

</div>

Hi, I have a program which separates each line of a text file into tokens, using whitespace as a delimiter (I do this with String.split). This suits my needs for the most part, but now I need the ability to treat qu…

---

## [RubyScript2Exe 0.5.1](https://www.ruby-forum.com/t/rubyscript2exe-0-5-1/101632)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 5\
**Last updated:** [August 7, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-0-5-1/101632 "2006-08-07T19:31:00Z")

</div>

I’ve just released RubyScript2Exe 0.5.1. RubyScript2Exe transforms your Ruby application into a standalone, compressed Windows, Linux or Mac OS X (Darwin) executable. You can look at it as a “compiler”. Not in the se…

---

## [Ruby Reports 0.4.21 Released](https://www.ruby-forum.com/t/ruby-reports-0-4-21-released/101736)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [August 7, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-21-released/101736 "2006-08-07T18:48:55Z")

</div>

= Ruby Reports 0.4.21 : The “Probably Broken” Edition = This is the 8th release since the start of Google’s Summer of Code == What is Ruport? == Ruby Reports is a library and soon-to-be framework for doing business r…

---

## [Mkerb.org - Milwaukee RUG Meeting this Wednesday August 9 at](https://www.ruby-forum.com/t/mkerb-org-milwaukee-rug-meeting-this-wednesday-august-9-at/101735)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [August 7, 2006, 6:36pm UTC](https://www.ruby-forum.com/t/mkerb-org-milwaukee-rug-meeting-this-wednesday-august-9-at/101735 "2006-08-07T18:36:53Z")

</div>

Did you know that Milwaukee has a RUG? The Milwaukee RUG (http://www.mkerb.org) promoting Ruby and Rails in the Greater Milwaukee Area. Come and join us on our next adventure. Date: August 9, 2006 Time: 5:30 - 7:30…

---

## [Can't install rubygems - but getting closer](https://www.ruby-forum.com/t/cant-install-rubygems-but-getting-closer/101714)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [August 7, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/cant-install-rubygems-but-getting-closer/101714 "2006-08-07T18:01:54Z")

</div>

I’m runniing Ubuntu Breezy. The distributed version of ruby is 1.8.3 which is incompatible with the current rails. As a result, I’m trying to get things up outside of apt. I have ruby installed - compiled to install t…

---

## [FxRuby FxChoiceBox segfault](https://www.ruby-forum.com/t/fxruby-fxchoicebox-segfault/101717)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 3\
**Last updated:** [August 7, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/fxruby-fxchoicebox-segfault/101717 "2006-08-07T17:57:48Z")

</div>

Hello! I am trying the following: puts FXChoiceBox.ask(@app, 0, “Export to database?”, “#{exp.devices.length} records accepted, #{exp.rejected} records rejected.\\n” + “Would you like to continue with the export?”, n…

---

## [For performance, write it in C#](https://www.ruby-forum.com/t/for-performance-write-it-in-c/101110)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 10\
**Last updated:** [August 7, 2006, 5:18pm UTC](https://www.ruby-forum.com/t/for-performance-write-it-in-c/101110 "2006-08-07T17:18:43Z")

</div>

I can’t resist jumping on this one. The attached file requires John Lam’s excellent RubyCLR library (http://www.rubyclr.com) ruby latins.rb user system total real 5 squares, ruby 4.156000 0.04700…

---

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

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 7, 2006, 5:06pm UTC](https://www.ruby-forum.com/t/no-subject/101558 "2006-08-07T17:06:41Z")

</div>

e$B$J$+$@$G$9!#e(B http://pc8.2ch.net/test/read.cgi/tech/1154077799/176-177 e$B$G=P$Fe(B e$B$$$?OC$G$9$,!";09\`1i;;;R$N%3%m%s$N8e$m$K$O2~9T$rCV$1$^$9$,!"A0e(B e$B$K$O5v$5$l$^$;$s!#e(Bperle$B$G$O$I$A$i$be(BOKe$B$N$h$&$G…

---

## [Create directory on a remote machine](https://www.ruby-forum.com/t/create-directory-on-a-remote-machine/101713)

<div class="topic-metadata">

**Author:** [@chuvisco](https://www.ruby-forum.com/u/chuvisco)\
**Replies:** 0\
**Last updated:** [August 7, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/create-directory-on-a-remote-machine/101713 "2006-08-07T16:44:19Z")

</div>

Hello, Does anybody know how can I create folders and files on a remote machine running Win NT? I was thinking about using RubySmb, but the project isn’t updated since 2002, besides, it have to be compiled yet. Is th…

---

## [Obtaining source for 1.8.5 and 1.9?](https://www.ruby-forum.com/t/obtaining-source-for-1-8-5-and-1-9/101387)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 7, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/obtaining-source-for-1-8-5-and-1-9/101387 "2006-08-07T16:21:34Z")

</div>

I’m trying to set up my test system so I can get the latest source for both Ruby 1.8.5 and 1.9.x. How do I set up my CVS/SVN client to do that? By the way, I’ve been running the Gentoo Ruby 1.8.5 pre1 for some time n…

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

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