# Ruby

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

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

---

## [Syntax error with array interpolation](https://www.ruby-forum.com/t/syntax-error-with-array-interpolation/107706)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/syntax-error-with-array-interpolation/107706 "2007-06-25T17:03:27Z")

</div>

Below is a code snippet which gives me some headache: def headache yield(\*(foo(1)),“bar”) end def foo(n) \[n,n+2,n+5\] end headache { |a,b,c,d| puts a.to\_s; puts b.to\_s; puts c.to\_s; puts d } I had expected that th…

---

## [Windows binary gems?](https://www.ruby-forum.com/t/windows-binary-gems/107708)

<div class="topic-metadata">

**Author:** [@sams](https://www.ruby-forum.com/u/sams)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/windows-binary-gems/107708 "2007-06-25T16:42:05Z")

</div>

The whole VC6 vs VS8+ issue on Windows confuses me. Does anyone have a definitive answer on how to deliver binary extensions on Windows? Is the VS8+ compiler “safe” to use with a 1-click-installer installation?

---

## [Recall: Syntax error with array interpolation](https://www.ruby-forum.com/t/recall-syntax-error-with-array-interpolation/107707)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/recall-syntax-error-with-array-interpolation/107707 "2007-06-25T16:36:57Z")

</div>

Ronald F. would like to recall the message, “Syntax error with array interpolation”.

---

## [SNMP oid error](https://www.ruby-forum.com/t/snmp-oid-error/107691)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/snmp-oid-error/107691 "2007-06-25T15:08:03Z")

</div>

Hi, I’m using SNMP module into a simple script. I would like retrieve interfaces MAC addresses by using oid “1.3.6.1.2.1.2.2.1.6” : using snmpwalk it works fine snmpwalk -v 1 -r 1 -t 2 -c public 127.0.0.1 .1.3.6.1.…

---

## [Snmp error](https://www.ruby-forum.com/t/snmp-error/107698)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/snmp-error/107698 "2007-06-25T14:47:05Z")

</div>

Hi, I’m using the SNMP module to retrieve interfaces mac addresses (oid 1.3.6.1.2.1.2.2.1.6). Snmpwalk works fine snmpwalk -v 1 -r 1 -t 2 -c public 127.0.0.1 .1.3.6.1.2.1.2.2.1.6.1 IF-MIB::ifPhysAddress.1 = STRING: 0…

---

## [ANN: Remedy IT announces draft Ruby CORBA Language Mapping](https://www.ruby-forum.com/t/ann-remedy-it-announces-draft-ruby-corba-language-mapping/107699)

<div class="topic-metadata">

**Author:** [@johnny\_w](https://www.ruby-forum.com/u/johnny_w)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/ann-remedy-it-announces-draft-ruby-corba-language-mapping/107699 "2007-06-25T14:26:51Z")

</div>

Hello, Remedy IT is pleased to announce the first draft of the Ruby CORBA Language Mapping. This language mapping describes the mapping of OMG IDL constructs to the Ruby programming language. This draft mapping has…

---

## [Ruby Developers in Palestine](https://www.ruby-forum.com/t/ruby-developers-in-palestine/107694)

<div class="topic-metadata">

**Author:** [@nkamel](https://www.ruby-forum.com/u/nkamel)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/ruby-developers-in-palestine/107694 "2007-06-25T13:52:39Z")

</div>

Hi Are You a Ruby Developer living in Palestine or outside somewhere in the world? Feel free to contact me. removed\_email\_address@domain.invalid 0599732791

---

## [RMagick-Is it possible to read the resolution of the image?](https://www.ruby-forum.com/t/rmagick-is-it-possible-to-read-the-resolution-of-the-image/107686)

<div class="topic-metadata">

**Author:** [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/rmagick-is-it-possible-to-read-the-resolution-of-the-image/107686 "2007-06-25T13:32:32Z")

</div>

Hi, Is it possible to read the resolution of the image when the user uploads a image file? I was going thru. RMagick docs, but i could not find anything. Any help is appreciated !!! Regards, Ashwin Kumar

---

## [Newbie needs help! Strange error in code](https://www.ruby-forum.com/t/newbie-needs-help-strange-error-in-code/107683)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 11:33am UTC](https://www.ruby-forum.com/t/newbie-needs-help-strange-error-in-code/107683 "2007-06-25T11:33:37Z")

</div>

Hi, I am very new to Ruby and yesterday I managed to get a simple server operating which told me the time. I tried to extend this by adding in a simple myvar = gets.chomp! and a print myvar in place of the date output…

---

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

<div class="topic-metadata">

**Author:** [@Andy\_Kehl](https://www.ruby-forum.com/u/Andy_Kehl)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 9:57am UTC](https://www.ruby-forum.com/t/no-subject/107682 "2007-06-25T09:57:45Z")

</div>

help

---

## [Mechanize 0.6.9 Released](https://www.ruby-forum.com/t/mechanize-0-6-9-released/107678)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 8:10am UTC](https://www.ruby-forum.com/t/mechanize-0-6-9-released/107678 "2007-06-25T08:10:21Z")

</div>

mechanize version 0.6.9 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, …

---

## [How could i have broken uri?](https://www.ruby-forum.com/t/how-could-i-have-broken-uri/107676)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 8:01am UTC](https://www.ruby-forum.com/t/how-could-i-have-broken-uri/107676 "2007-06-25T08:01:19Z")

</div>

My little spider/scraper thing happily iterated through a couple dozen tail numbers and then said: /usr/local/lib/ruby/1.8/uri/common.rb:432:in split': bad URI(is not URI?): http://registry.faa.gov/aircraftinquiry/nnum…

---

## [Updating running ruby scripts](https://www.ruby-forum.com/t/updating-running-ruby-scripts/107674)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 7:40am UTC](https://www.ruby-forum.com/t/updating-running-ruby-scripts/107674 "2007-06-25T07:40:11Z")

</div>

Hi, I’ve got a few small ruby scripts that run every 15 minutes or so from cron that do processing from a database. I was wondering if it is dangerous to update these programs (basically an svn update) while they ar…

---

## [SVN command not executing correctly through ruby script](https://www.ruby-forum.com/t/svn-command-not-executing-correctly-through-ruby-script/107668)

<div class="topic-metadata">

**Author:** [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Replies:** 3\
**Last updated:** [June 25, 2007, 7:35am UTC](https://www.ruby-forum.com/t/svn-command-not-executing-correctly-through-ruby-script/107668 "2007-06-25T07:35:39Z")

</div>

Hello, Im trying to get some code working from the book “Everyday Scripting with Ruby for Teams, Testers, and You” by Brian M… The code resides on page 85. Basically, whats happening is that Im loading this method i…

---

## [Problem installing fxruby on Linux with gems](https://www.ruby-forum.com/t/problem-installing-fxruby-on-linux-with-gems/107672)

<div class="topic-metadata">

**Author:** [@rinda](https://www.ruby-forum.com/u/rinda)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 6:21am UTC](https://www.ruby-forum.com/t/problem-installing-fxruby-on-linux-with-gems/107672 "2007-06-25T06:21:43Z")

</div>

In my Windows, with ruby one click installer, I can do this: require ‘fox16’ But in Ubuntu 7.04, I can not do that. irb(main):001:0\> require ‘rubygems’ =\> true irb(main):002:0\> require ‘fox16’ LoadError: no such fi…

---

## [Eruby and mod\_ruby](https://www.ruby-forum.com/t/eruby-and-mod-ruby/107589)

<div class="topic-metadata">

**Author:** [@zaki](https://www.ruby-forum.com/u/zaki)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 5:27am UTC](https://www.ruby-forum.com/t/eruby-and-mod-ruby/107589 "2007-06-25T05:27:27Z")

</div>

Hi everyone, Can someone explain to me what the (performance) difference between eruby, mod\_ruby, erb, erubis, etc is? I have been struggling to find up-to-date information, but most of the talks date back to 2002. I…

---

## [Secondary user groups](https://www.ruby-forum.com/t/secondary-user-groups/107607)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 3\
**Last updated:** [June 25, 2007, 4:42am UTC](https://www.ruby-forum.com/t/secondary-user-groups/107607 "2007-06-25T04:42:30Z")

</div>

require ‘etc’ Etc.getpwnam(user) or, using Daniel B.'s std-admin library\_ require ‘sys/admin’ Sys::Admin.get\_user(user) allows me to get a struct with the user’s primary group. However, I need to obtain the list of…

---

## [Variables to call methods in ruby](https://www.ruby-forum.com/t/variables-to-call-methods-in-ruby/107661)

<div class="topic-metadata">

**Author:** [@Harnish](https://www.ruby-forum.com/u/Harnish)\
**Replies:** 8\
**Last updated:** [June 25, 2007, 4:13am UTC](https://www.ruby-forum.com/t/variables-to-call-methods-in-ruby/107661 "2007-06-25T04:13:28Z")

</div>

Hi, This is Harnish. I was just wondering if I could call methods using variables? As for example: testfunc = “func” class Test def self.func puts “hello there…!” end end Test. Essentially I want to call Test…

---

## [Insert marshall'd data into mysql](https://www.ruby-forum.com/t/insert-marshalld-data-into-mysql/107665)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 4\
**Last updated:** [June 25, 2007, 4:10am UTC](https://www.ruby-forum.com/t/insert-marshalld-data-into-mysql/107665 "2007-06-25T04:10:28Z")

</div>

Hey all… what methods can I use to safely insert Ruby marshall’d data into mysql? Thanks Aaron

---

## [Unit Testing Custom Validation Method](https://www.ruby-forum.com/t/unit-testing-custom-validation-method/107451)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 1:06am UTC](https://www.ruby-forum.com/t/unit-testing-custom-validation-method/107451 "2007-06-25T01:06:11Z")

</div>

Hey there I’ve written a custom validation method (to validate an email address). It looks like module ActiveRecord module Validations module ClassMethods def validates\_as\_email ... end end end end I’v…

---

## [Trying to start with Ruby, and Rails, seperately](https://www.ruby-forum.com/t/trying-to-start-with-ruby-and-rails-seperately/107043)

<div class="topic-metadata">

**Author:** [@ededed](https://www.ruby-forum.com/u/ededed)\
**Replies:** 9\
**Last updated:** [June 24, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/trying-to-start-with-ruby-and-rails-seperately/107043 "2007-06-24T22:36:56Z")

</div>

Hi, I’m looking to start learning Ruby, and Rails, but one at a time. I am seeking opinions on how I should start… what resources I should be using, what programs, what the best set up for learning is… and then how …

---

## [Html to plain text](https://www.ruby-forum.com/t/html-to-plain-text/107660)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 4\
**Last updated:** [June 24, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/html-to-plain-text/107660 "2007-06-24T22:17:54Z")

</div>

Okay, I have played with Hpricot and I am a convert. Amazing stuff. I am struggling up to speed and I can’t find what must be a basic function. I’ve scraped the FAA site and they store all their stuff wrapped in td’s,…

---

## [Regexp questions](https://www.ruby-forum.com/t/regexp-questions/107609)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 4\
**Last updated:** [June 24, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/regexp-questions/107609 "2007-06-24T20:21:39Z")

</div>

I’m converting a big Python program to Ruby which uses lots of regexps, and I’m getting some odd errors. One problem seems to be that \\1 in the replacement string doesn’t always work. Are there any known “gotchas” be…

---

## [Error installing gem](https://www.ruby-forum.com/t/error-installing-gem/107570)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 24, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/error-installing-gem/107570 "2007-06-24T20:05:35Z")

</div>

Hello everybody ! I just tried to install the “neuro”-gem. But the install process fails with an exception: C:\\Windows\\system32\>gem install neuro -y Building native extensions. This could take a while… ERROR: Whil…

---

## [Signal handling problem in ruby](https://www.ruby-forum.com/t/signal-handling-problem-in-ruby/107617)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 1\
**Last updated:** [June 24, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/signal-handling-problem-in-ruby/107617 "2007-06-24T17:48:20Z")

</div>

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/220937 I presume I am running into similar problem but this time with ruby 1.8.6(2007-03-13 patchlevel 0) \[i386-mswin32\] (under windows). Basically my progra…

---

## [Ruby 1.9 : What is the use for Proc#yield](https://www.ruby-forum.com/t/ruby-1-9-what-is-the-use-for-proc-yield/107610)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 3\
**Last updated:** [June 24, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/ruby-1-9-what-is-the-use-for-proc-yield/107610 "2007-06-24T16:53:14Z")

</div>

I’m reading through Mauricio’s list of changes\[0\] to Ruby 1.9 and having trouble with understanding the point of Proc#yield Invokes the block, setting the block’s parameters to the values in params in the same manner…

---

## [0\*\*2 causes division by zero](https://www.ruby-forum.com/t/0-2-causes-division-by-zero/107579)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [June 24, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/0-2-causes-division-by-zero/107579 "2007-06-24T16:52:14Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B ruby 1.9 e$B$Ge(B 0\*\*2 e$B$rI\>2A$9$k$He(B SIGFPE e$B$GMn$A$^$9!#e(B $ ./ruby -e ‘0\*\*2’ e$BIbF0\>.?tE@1i;;Nc30$G$9e(B e$B$3$s$J46$8$G$7$g$&$+!#$D$$$G$KM\>7W$J:GE,2=$bF~$l$F$\_$^$7$?$,!"e(B e$BM\>7W…

---

## [Problem executing example code from XRuby (was Re: where to](https://www.ruby-forum.com/t/problem-executing-example-code-from-xruby-was-re-where-to/107413)

<div class="topic-metadata">

**Author:** [@JesSSSSs\_Gabriel\_y\_S](https://www.ruby-forum.com/u/JesSSSSs_Gabriel_y_S)\
**Replies:** 1\
**Last updated:** [June 24, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/problem-executing-example-code-from-xruby-was-re-where-to/107413 "2007-06-24T16:26:10Z")

</div>

On 6/21/07, Axel E. removed\_email\_address@domain.invalid wrote: It sounds to me that you get this error because you expect Ruby to behave like Java … right? If so, could you help me on a Ruby/Java problem for which …

---

## [Changing enum\_obj](https://www.ruby-forum.com/t/changing-enum-obj/107619)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 10\
**Last updated:** [June 24, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/changing-enum-obj/107619 "2007-06-24T15:03:56Z")

</div>

Anyway to change an Enumerator’s enum\_obj in place? Enumerator doesn’t seem to support the #collect! method. T.

---

## [Non-blocking IO & Maxima](https://www.ruby-forum.com/t/non-blocking-io-maxima/107611)

<div class="topic-metadata">

**Author:** [@mindtriggerz](https://www.ruby-forum.com/u/mindtriggerz)\
**Replies:** 2\
**Last updated:** [June 24, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/non-blocking-io-maxima/107611 "2007-06-24T14:13:52Z")

</div>

Ok, here’s something that seems wierd. While writing some code to call Maxima (http://maxima.sourceforge.net/) from Ruby, I wrote the following: class IO Read a line without blocking. If there isn’t a line to be rea…

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

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