# Ruby

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

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

---

## [\[ANN\] Ruby-VPI 16.0.1](https://www.ruby-forum.com/t/ann-ruby-vpi-16-0-1/105246)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 27, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-16-0-1/105246 "2007-05-27T23:51:43Z")

</div>

Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI and a platform for unit testing, rapid prototyping, and systems integration of Verilog modules through Ruby. It lets you create complex Verilog test benches e…

---

## [Trouble installing/configuring RadRails on XP](https://www.ruby-forum.com/t/trouble-installing-configuring-radrails-on-xp/105243)

<div class="topic-metadata">

**Author:** [@r.g](https://www.ruby-forum.com/u/r.g)\
**Replies:** 0\
**Last updated:** [May 27, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/trouble-installing-configuring-radrails-on-xp/105243 "2007-05-27T22:45:56Z")

</div>

Hello, (I apologize if this isn’t the right place to post this.) I’m trying to get RadRails up and running on Eclipse 3.2 on Windows XP. I followed the instructions at \<Aptana.com | Axway Integrating\_RadRails\_with\_A…

---

## [Ruby has not been added to LSB 3.2 (but both Perl and Python](https://www.ruby-forum.com/t/ruby-has-not-been-added-to-lsb-3-2-but-both-perl-and-python/105163)

<div class="topic-metadata">

**Author:** [@GinTon](https://www.ruby-forum.com/u/GinTon)\
**Replies:** 8\
**Last updated:** [May 27, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/ruby-has-not-been-added-to-lsb-3-2-but-both-perl-and-python/105163 "2007-05-27T22:37:56Z")

</div>

I’ve seen that the next version of LSB 3.2 (will be released on June, 2007) will add Perl and Python but not Ruby. That mean that the next Linux distributions that follow the LSB standard as Debian or Ubuntu will have…

---

## [Passing DBI parameters as an array](https://www.ruby-forum.com/t/passing-dbi-parameters-as-an-array/105232)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 27, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/passing-dbi-parameters-as-an-array/105232 "2007-05-27T20:04:06Z")

</div>

Hi I am dynamically creating an insert statement for a database that I want DBI to execute. In the first part of my example below I am passing each value I want escaped to the database handlers “do” method as a separ…

---

## [Compiling Ruby + Extensions under the 'Windows SDK'](https://www.ruby-forum.com/t/compiling-ruby-extensions-under-the-windows-sdk/105233)

<div class="topic-metadata">

**Author:** [@axees335](https://www.ruby-forum.com/u/axees335)\
**Replies:** 0\
**Last updated:** [May 27, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/compiling-ruby-extensions-under-the-windows-sdk/105233 "2007-05-27T19:46:40Z")

</div>

I’ve been working through a build system with the aim of providing a build system which can build ruby (and provide a build environment for ruby inline) on win32, using the Windows SDK (the same compiler as vs 2005). …

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 27, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229108 "2007-05-27T19:22:38Z")

</div>

Begin forwarded message:

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 27, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/197298 "2007-05-27T19:21:38Z")

</div>

Begin forwarded message:

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 27, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/136649 "2007-05-27T19:19:38Z")

</div>

Begin forwarded message:

---

## [Response.End / Exit equivalent in Ruby?](https://www.ruby-forum.com/t/response-end-exit-equivalent-in-ruby/105224)

<div class="topic-metadata">

**Author:** [@yeago](https://www.ruby-forum.com/u/yeago)\
**Replies:** 1\
**Last updated:** [May 27, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/response-end-exit-equivalent-in-ruby/105224 "2007-05-27T18:10:32Z")

</div>

If the user types in junk, I’d like to return the user to the original page. Can’t seem to do it. How is this typically handled? def getBody url begin open(url) do |file| @body = file.read end rescue SystemCallEr…

---

## [Ruby Script for Mega Millions Quickpick](https://www.ruby-forum.com/t/ruby-script-for-mega-millions-quickpick/105223)

<div class="topic-metadata">

**Author:** [@holybins](https://www.ruby-forum.com/u/holybins)\
**Replies:** 1\
**Last updated:** [May 27, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/ruby-script-for-mega-millions-quickpick/105223 "2007-05-27T17:39:30Z")

</div>

I wrote a little ruby script that takes the mega millions drawing history from www.megamillions.com, and then makes a quickpick with the most picked numbers. It’s not the most intelligent thing, so any advice on how t…

---

## [Return a "complete" class](https://www.ruby-forum.com/t/return-a-complete-class/105225)

<div class="topic-metadata">

**Author:** [@lordbyte](https://www.ruby-forum.com/u/lordbyte)\
**Replies:** 1\
**Last updated:** [May 27, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/return-a-complete-class/105225 "2007-05-27T17:15:28Z")

</div>

Hi! I have some problems with doing some kind of “my own controller” in Ruby when returning a complete class. Let’s say we start with the following: I have a … … model called Asset which has several attributes and …

---

## [Local variables vs. methods](https://www.ruby-forum.com/t/local-variables-vs-methods/105170)

<div class="topic-metadata">

**Author:** [@earthtree](https://www.ruby-forum.com/u/earthtree)\
**Replies:** 17\
**Last updated:** [May 27, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/local-variables-vs-methods/105170 "2007-05-27T16:45:25Z")

</div>

Hi there, I’ve been playing around with Ruby for a while, but there’s still one particular feature of the language that doesn’t make sense to me. If you write a class containing a method and a class with the same name…

---

## [List for answers of Pine's Book?](https://www.ruby-forum.com/t/list-for-answers-of-pines-book/105171)

<div class="topic-metadata">

**Author:** [@Samuel\_Coddler](https://www.ruby-forum.com/u/Samuel_Coddler)\
**Replies:** 1\
**Last updated:** [May 27, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/list-for-answers-of-pines-book/105171 "2007-05-27T16:27:24Z")

</div>

Hi, I just started to learn programming. Ruby is my first language. I’m looking for a comprehensive list of answers to quizzes in Chris P.'s Book “Learn to Program”. I think I’m tackling non-ruby specific issues, so …

---

## [BackgrounDRb behavoir](https://www.ruby-forum.com/t/backgroundrb-behavoir/105196)

<div class="topic-metadata">

**Author:** [@yeago](https://www.ruby-forum.com/u/yeago)\
**Replies:** 2\
**Last updated:** [May 27, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/backgroundrb-behavoir/105196 "2007-05-27T15:51:37Z")

</div>

Call me confused. I call the following: MiddleMan.schedule\_worker( :class =\> :update\_friends\_worker, :job\_key =\> :schedule\_test, :worker\_method =\> :arg\_method, :worker\_method\_args =\> “my argument to arg\_method”, :t…

---

## [Gsub + loop](https://www.ruby-forum.com/t/gsub-loop/105154)

<div class="topic-metadata">

**Author:** [@eleo](https://www.ruby-forum.com/u/eleo)\
**Replies:** 3\
**Last updated:** [May 27, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/gsub-loop/105154 "2007-05-27T13:50:23Z")

</div>

This question actually pertains to a Rails app but it’s more of a general Ruby question so I’ll ask it here. Within a body of text I’m trying to match URLs for youtube/google/myspace/etc videos and replace them with t…

---

## [Strange behavior of String.scan](https://www.ruby-forum.com/t/strange-behavior-of-string-scan/105210)

<div class="topic-metadata">

**Author:** [@HSSSSvard\_Moen](https://www.ruby-forum.com/u/HSSSSvard_Moen)\
**Replies:** 6\
**Last updated:** [May 27, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/strange-behavior-of-string-scan/105210 "2007-05-27T13:26:00Z")

</div>

When I use String.scan with a block and just one group the result ends up as an array. More than one group works as expected. A small example to demonstrate: –ruby code start– data = ’ lb method member observed m…

---

## [Rcairo 1.5.0](https://www.ruby-forum.com/t/rcairo-1-5-0/105212)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [May 27, 2007, 10:32am UTC](https://www.ruby-forum.com/t/rcairo-1-5-0/105212 "2007-05-27T10:32:40Z")

</div>

Hi, I released rcairo 1.5.0 that has many API improvements: http://cairographics.org/releases/rcairo-1.5.0.tar.gz http://cairographics.org/releases/rcairo-1.5.0.tar.gz.md5 47ed7b603f41abc9e828fa9f8585f02b rcairo-1.5…

---

## [Passing proc objects to ruby extensions](https://www.ruby-forum.com/t/passing-proc-objects-to-ruby-extensions/105176)

<div class="topic-metadata">

**Author:** [@stutrail](https://www.ruby-forum.com/u/stutrail)\
**Replies:** 1\
**Last updated:** [May 27, 2007, 8:36am UTC](https://www.ruby-forum.com/t/passing-proc-objects-to-ruby-extensions/105176 "2007-05-27T08:36:30Z")

</div>

Hi list! Its a been a while since I was around here, but I remember it being the place to ask these sorts of questions, especially since Yarv has now merged into real Ruby. How does a proc object get passed when writi…

---

## [Querying persistent ruby objects in memory](https://www.ruby-forum.com/t/querying-persistent-ruby-objects-in-memory/105188)

<div class="topic-metadata">

**Author:** [@braver](https://www.ruby-forum.com/u/braver)\
**Replies:** 5\
**Last updated:** [May 27, 2007, 8:12am UTC](https://www.ruby-forum.com/t/querying-persistent-ruby-objects-in-memory/105188 "2007-05-27T08:12:28Z")

</div>

I have a data-mining task which loads data as a big XML tree (10+ MB) and then reorganizes it. Even loading it with Hpricot takes 10-20 seconds. I don’t want to do it for every manilupation I want to try, especially…

---

## [Ruby, fastcgi and lighttpd](https://www.ruby-forum.com/t/ruby-fastcgi-and-lighttpd/105204)

<div class="topic-metadata">

**Author:** [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Replies:** 2\
**Last updated:** [May 27, 2007, 8:05am UTC](https://www.ruby-forum.com/t/ruby-fastcgi-and-lighttpd/105204 "2007-05-27T08:05:27Z")

</div>

hi, i want to use lighttpd + ruby + fastcgi to build web apps. Not the entire RoR framework (for the present projects) I can’t seem to find a procedure to build this, in terms of system configuration, namely lighttpd…

---

## [Re : Yet Another Software Challenge --\> jumping too fast to](https://www.ruby-forum.com/t/re-yet-another-software-challenge-jumping-too-fast-to/104200)

<div class="topic-metadata">

**Author:** [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Replies:** 1\
**Last updated:** [May 27, 2007, 6:39am UTC](https://www.ruby-forum.com/t/re-yet-another-software-challenge-jumping-too-fast-to/104200 "2007-05-27T06:39:24Z")

</div>

Sorry about my previous mail, It was early in the morning and I jumped too fast to conclusion without reading the code properly,… Eric. Eric TORREBORRE tel: +81 (0)90 5580 3280 e-mail: removed\_email\_address@domai…

---

## [Can you make sense of this Array issue](https://www.ruby-forum.com/t/can-you-make-sense-of-this-array-issue/105183)

<div class="topic-metadata">

**Author:** [@roland](https://www.ruby-forum.com/u/roland)\
**Replies:** 4\
**Last updated:** [May 27, 2007, 4:13am UTC](https://www.ruby-forum.com/t/can-you-make-sense-of-this-array-issue/105183 "2007-05-27T04:13:15Z")

</div>

I want to have an array, say 5x5 with all nils unless set to something else. However, when I set m\[0\]\[0\] to 0 … all 0 indices are set to zero… Hmm… never asked for that to be the case. There’s some funky stuff going…

---

## [RMagick OS X installation script beta release](https://www.ruby-forum.com/t/rmagick-os-x-installation-script-beta-release/105191)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/rmagick-os-x-installation-script-beta-release/105191 "2007-05-26T23:59:53Z")

</div>

I’ve kept the alpha releases of this script low-key but I’ve gotten good feedback from several people lately, so I guess it’s ready for beta. This Ruby script installs the current release of RMagick on OS X 10.4. As p…

---

## [Image manipulation library](https://www.ruby-forum.com/t/image-manipulation-library/105185)

<div class="topic-metadata">

**Author:** [@Miroslaw](https://www.ruby-forum.com/u/Miroslaw)\
**Replies:** 2\
**Last updated:** [May 26, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/image-manipulation-library/105185 "2007-05-26T23:20:50Z")

</div>

Hi, I am new to Ruby. Is there a library to manipulate GIF/JPG/… file as an array? Maybe something like GD library or Tcl photo command. Regards

---

## [Rxml](https://www.ruby-forum.com/t/rxml/105153)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 26, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/rxml/105153 "2007-05-26T23:01:48Z")

</div>

Hai I have one question that is ,can i call rxml file from ordinary ruby class file? If it is just tell me its very urgent ok Bye By P.S.Hussain

---

## [Read binary .dat file?](https://www.ruby-forum.com/t/read-binary-dat-file/105005)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [May 26, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/read-binary-dat-file/105005 "2007-05-26T20:03:29Z")

</div>

I found a PERL script to read a dataflex database file. But I don’t know PERL. Any suggestions to translate to ruby? Is there a ruby script like this around? -thanks. Here is the PERL Script: use File::Binary ; use…

---

## [Global Array?](https://www.ruby-forum.com/t/global-array/105141)

<div class="topic-metadata">

**Author:** [@yeago](https://www.ruby-forum.com/u/yeago)\
**Replies:** 6\
**Last updated:** [May 26, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/global-array/105141 "2007-05-26T19:52:28Z")

</div>

I’ve got a class which calls itself several times (recursive). While this class is calling itself, I want it to be appending a global array ( \<\< ). I can’t figure out how to make the array itself global, so for now ea…

---

## [Partial Regular Expression Matching](https://www.ruby-forum.com/t/partial-regular-expression-matching/104759)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 10\
**Last updated:** [May 26, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/partial-regular-expression-matching/104759 "2007-05-26T17:46:16Z")

</div>

I would like to identify partial matching of a regular expression, for a stream of input, as described in the pcrepartial(3) manpage. Is this possible with ruby Regexp, or would I have to wrap (a piece of) pcre? (or i…

---

## [Ruby Math (nPr, nCr)](https://www.ruby-forum.com/t/ruby-math-npr-ncr/105137)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 4\
**Last updated:** [May 26, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/ruby-math-npr-ncr/105137 "2007-05-26T16:11:09Z")

</div>

What’s that? You want me to ask more questions? Sure! So I’m writing a pascals triangle program. My goal is to write it in fewer lines than those on the RubyQuiz site. My idea is to use more math, and less programming…

---

## [Mocking Net::HTTP](https://www.ruby-forum.com/t/mocking-net-http/105091)

<div class="topic-metadata">

**Author:** [@Enrique\_Comba\_R](https://www.ruby-forum.com/u/Enrique_Comba_R)\
**Replies:** 8\
**Last updated:** [May 26, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/mocking-net-http/105091 "2007-05-26T15:48:07Z")

</div>

I am currently finishing up a release of Rannel, a library for sending sms messages through the open source SMS/WAP Gateway Kannel. I have a couple of Unit tests that assure that the commands are send correctly to Kan…

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

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