# Ruby

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

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

---

## [New to ruby - extended NArray library install](https://www.ruby-forum.com/t/new-to-ruby-extended-narray-library-install/92325)

<div class="topic-metadata">

**Author:** [@altomajo](https://www.ruby-forum.com/u/altomajo)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/new-to-ruby-extended-narray-library-install/92325 "2007-04-18T14:16:26Z")

</div>

Hi there, I am new to Ruby. I have been struggling to install the “NArray” library for large matrix manipulation in Ruby (http://narray.rubyforge.org/index.html.en) but I can’t get it to work. I am running Mac OS 10.…

---

## [Date Photo Taken image property in Jpegs?](https://www.ruby-forum.com/t/date-photo-taken-image-property-in-jpegs/92334)

<div class="topic-metadata">

**Author:** [@Nic\_D](https://www.ruby-forum.com/u/Nic_D)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 2:12pm UTC](https://www.ruby-forum.com/t/date-photo-taken-image-property-in-jpegs/92334 "2007-04-18T14:12:23Z")

</div>

Hi, I’m writing a utility which must be capable of processing embedded property values (metadata) that some digital cameras add to the Jpeg photos they produce, like for instance the Date Photo Taken, Camera Model, F…

---

## [Northern VA Ruby User's Group April meeting](https://www.ruby-forum.com/t/northern-va-ruby-users-group-april-meeting/92338)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/northern-va-ruby-users-group-april-meeting/92338 "2007-04-18T12:49:34Z")

</div>

Hello world - If you’re in the northern Virginia area, come on by the NovaRUG meeting this evening. Paul Stadig is presenting on screen scraping and Ray Daly will be talking about RSS. Directions and details are he…

---

## [Nil in evaluations](https://www.ruby-forum.com/t/nil-in-evaluations/92308)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 18, 2007, 11:57am UTC](https://www.ruby-forum.com/t/nil-in-evaluations/92308 "2007-04-18T11:57:26Z")

</div>

Problem: I have functions that sometimes evaluate to nil and cause my program to crash in comparisons, etc. For example g(x) and f(x) either could be nill in the following: if g(x) \> f(x) p “not reached” else p “a…

---

## [How to call a SP](https://www.ruby-forum.com/t/how-to-call-a-sp/92337)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 11:40am UTC](https://www.ruby-forum.com/t/how-to-call-a-sp/92337 "2007-04-18T11:40:24Z")

</div>

Hi , I want to write some ruby script to call a DB2 SP. I have tired ruby\_db2, but it doesn’t work for me. Can you give me some instruction. Thanks very much.

---

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

<div class="topic-metadata">

**Author:** [@Manoj\_P\_M](https://www.ruby-forum.com/u/Manoj_P_M)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 9:20am UTC](https://www.ruby-forum.com/t/mechanize/88902 "2007-04-18T09:20:32Z")

</div>

Hi, I am using mechanize library to do automated form posting. Unfortunately it doesn’t seem to work for only gumtree. Below is the snippet of code that I am using. xxxxx represent the acutual post id and ziz valu…

---

## [Exec with string in variables?](https://www.ruby-forum.com/t/exec-with-string-in-variables/92259)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 3\
**Last updated:** [April 18, 2007, 7:33am UTC](https://www.ruby-forum.com/t/exec-with-string-in-variables/92259 "2007-04-18T07:33:03Z")

</div>

Hi, i have something like this and more in perl and would transform it to ruby. First i changed system to exec and than the points to plus , but the strings which are in the scalar’s seems not be applied in the ex…

---

## [Problem: insert data in two tables from an input form](https://www.ruby-forum.com/t/problem-insert-data-in-two-tables-from-an-input-form/92313)

<div class="topic-metadata">

**Author:** [@MdSRuhul\_A](https://www.ruby-forum.com/u/MdSRuhul_A)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 5:37am UTC](https://www.ruby-forum.com/t/problem-insert-data-in-two-tables-from-an-input-form/92313 "2007-04-18T05:37:58Z")

</div>

Hi guys, I have two tables. Table1: output\_columns (3 columns) Table2: file\_datas (2 columns) In any table I can search, show, edit data. But how can I insert data in two table? In my input form there are 5 i…

---

## [Problem: insert data in two tables from an input form](https://www.ruby-forum.com/t/problem-insert-data-in-two-tables-from-an-input-form/92311)

<div class="topic-metadata">

**Author:** [@MdSRuhul\_A](https://www.ruby-forum.com/u/MdSRuhul_A)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 5:34am UTC](https://www.ruby-forum.com/t/problem-insert-data-in-two-tables-from-an-input-form/92311 "2007-04-18T05:34:58Z")

</div>

Hi guys, I have two tables. Table1: output\_columns (3 columns) Table2: file\_datas (2 columns) In any table I can search, show, edit data. But how can I insert data in two table? In my input form there are 5 i…

---

## [Text processing library](https://www.ruby-forum.com/t/text-processing-library/92227)

<div class="topic-metadata">

**Author:** [@sdsykes](https://www.ruby-forum.com/u/sdsykes)\
**Replies:** 9\
**Last updated:** [April 18, 2007, 5:08am UTC](https://www.ruby-forum.com/t/text-processing-library/92227 "2007-04-18T05:08:57Z")

</div>

Hi, So I’ve been digging into Ruby for the past week, and I’ve come across an interesting problem that I want to solve with my new friend. Only I don’t want to reinvent the wheel. So here’s the problem: I have a CS…

---

## [How to build Ruby on MinGW?](https://www.ruby-forum.com/t/how-to-build-ruby-on-mingw/92293)

<div class="topic-metadata">

**Author:** [@toby](https://www.ruby-forum.com/u/toby)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 4:46am UTC](https://www.ruby-forum.com/t/how-to-build-ruby-on-mingw/92293 "2007-04-18T04:46:54Z")

</div>

Hi all, Does anyone have a howto or instruction list on how to build Ruby 1.8.x (preferably .6) under MinGW with binary extensions e.g. Zlib and OpenSSL? I can’t find any docs/articles on that and the one from ruby-l…

---

## [DBI connection problem](https://www.ruby-forum.com/t/dbi-connection-problem/86854)

<div class="topic-metadata">

**Author:** [@reis](https://www.ruby-forum.com/u/reis)\
**Replies:** 5\
**Last updated:** [April 18, 2007, 2:18am UTC](https://www.ruby-forum.com/t/dbi-connection-problem/86854 "2007-04-18T02:18:18Z")

</div>

I’m trying to use dbi to connect to MySQL 4.0.18 on windows XP professional. I have used a test with this code simple.rb - simple MySQL script using Ruby DBI module require “dbi” begin connect to the MySQL server d…

---

## [DBI is thread safe?](https://www.ruby-forum.com/t/dbi-is-thread-safe/92297)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 12:02am UTC](https://www.ruby-forum.com/t/dbi-is-thread-safe/92297 "2007-04-18T00:02:05Z")

</div>

Hey Folks, Does anyone know if DBI is thread-safe? Googling around I couldn’t find any information in the wilds … nor on the project home page (http://ruby-dbi.rubyforge.org/)… Sonny.

---

## [Regular Expression Question](https://www.ruby-forum.com/t/regular-expression-question/92205)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/regular-expression-question/92205 "2007-04-17T21:48:22Z")

</div>

I have been reading The Ruby Way and am confused by the temperature conversion sample program on page 14. The line in question is abort “#{temp} is not a valid number.” if temp !~ /-?\\d+/ What I do not understand is …

---

## [How to have a default argument](https://www.ruby-forum.com/t/how-to-have-a-default-argument/92277)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 12\
**Last updated:** [April 17, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/how-to-have-a-default-argument/92277 "2007-04-17T21:26:20Z")

</div>

hello all, i have a function that sometimes needs to be passed a variable, but sometimes not. def get\_some\_records(year) get records for year process them return result end the thing is, i already have it written…

---

## [Ruby19 crash in cygwin](https://www.ruby-forum.com/t/ruby19-crash-in-cygwin/92282)

<div class="topic-metadata">

**Author:** [@S\_ai\_S](https://www.ruby-forum.com/u/S_ai_S)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/ruby19-crash-in-cygwin/92282 "2007-04-17T20:16:34Z")

</div>

Not sure if this is the appropriate forum for this: I compiled ruby 1.9 from trunk on cygwin (gcc 3.4.4), default configure options save for ‘19’ suffix. The interpreter crashes when it tries to read a program: gdb …

---

## [Re: new](https://www.ruby-forum.com/t/re-new/92275)

<div class="topic-metadata">

**Author:** [@Nic\_D](https://www.ruby-forum.com/u/Nic_D)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/re-new/92275 "2007-04-17T19:35:02Z")

</div>

Try Notepad

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/92274 "2007-04-17T19:02:57Z")

</div>

Begin forwarded message:

---

## [How to install freeimage on windows xp](https://www.ruby-forum.com/t/how-to-install-freeimage-on-windows-xp/89207)

<div class="topic-metadata">

**Author:** [@schaf88](https://www.ruby-forum.com/u/schaf88)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/how-to-install-freeimage-on-windows-xp/89207 "2007-04-17T18:47:02Z")

</div>

hey I have to install imagescience and so I also have to install freeimage. I’m using windows xp. when i tried “start -\> run -\> regsvr32 FreeImage.dll” I got “FreeImage.dll was loaded, but the DllRegisterServer entry…

---

## [Regular expression help 2](https://www.ruby-forum.com/t/regular-expression-help-2/92271)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [April 17, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/regular-expression-help-2/92271 "2007-04-17T18:46:55Z")

</div>

Okay had such a great response before and learned lots but how about another question? have some strings such as: blahblah /\* comment / blahblah blah blah blah blah blah / comment etc \*/ And i want just the blahbl…

---

## [Slow ruby regexes](https://www.ruby-forum.com/t/slow-ruby-regexes/91591)

<div class="topic-metadata">

**Author:** [@emmanuel](https://www.ruby-forum.com/u/emmanuel)\
**Replies:** 47\
**Last updated:** [April 17, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/slow-ruby-regexes/91591 "2007-04-17T18:10:49Z")

</div>

Hello i’ve been reading this article, wich has a few benchmarks (inclding a ruby related one) and many theorical explanations of regex matching algorithms: http://swtch.com/~rsc/regexp/regexp1.html I became a little …

---

## [ZenTest 3.5.1 Released](https://www.ruby-forum.com/t/zentest-3-5-1-released/92266)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/zentest-3-5-1-released/92266 "2007-04-17T17:51:47Z")

</div>

ZenTest version 3.5.1 has been released! zentest | software projects | by ryan davis ZenTest provides 4 different tools and 1 library: zentest, unit\_diff, autotest, multiruby, and Test::Rails. ZenTest scans your targ…

---

## [How to redefine puts in .rbw files](https://www.ruby-forum.com/t/how-to-redefine-puts-in-rbw-files/92262)

<div class="topic-metadata">

**Author:** [@Jano\_S](https://www.ruby-forum.com/u/Jano_S)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/how-to-redefine-puts-in-rbw-files/92262 "2007-04-17T17:47:46Z")

</div>

(I’m ccing ruby-talk so that you might get more answers) From http://rubyforge.org/tracker/?func=detail&atid=715&aid=9018&group\_id=167 Date: 2007-04-17 17:09 Sender: M Jessick What is the ruby-ish way to protect any…

---

## [How to check if the logfile of a Logger instance is closed?](https://www.ruby-forum.com/t/how-to-check-if-the-logfile-of-a-logger-instance-is-closed/92258)

<div class="topic-metadata">

**Author:** [@ChrisKaelin](https://www.ruby-forum.com/u/ChrisKaelin)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/how-to-check-if-the-logfile-of-a-logger-instance-is-closed/92258 "2007-04-17T17:25:41Z")

</div>

If I do: l = Logger.new(“testlog”) l.close now if I want to close it again, I get: IOError: closed stream So far, I have checked for this error (by rescue clause), to see, if the logfile is already closed. Is there…

---

## [Regular expression help](https://www.ruby-forum.com/t/regular-expression-help/92256)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [April 17, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/regular-expression-help/92256 "2007-04-17T16:41:34Z")

</div>

I have a line such as: #define BLAH 10 or #include “BLAH.h” and I’m going around in circles trying to just get the ‘include’ or ‘define’ bit…anyone can help me? Thanks Bob.

---

## [Install rubygems-0.9.2 on mswin32 binary of ruby-1.8.6](https://www.ruby-forum.com/t/install-rubygems-0-9-2-on-mswin32-binary-of-ruby-1-8-6/92249)

<div class="topic-metadata">

**Author:** [@Kis\_GellSSSSrt\_Imre](https://www.ruby-forum.com/u/Kis_GellSSSSrt_Imre)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/install-rubygems-0-9-2-on-mswin32-binary-of-ruby-1-8-6/92249 "2007-04-17T15:42:25Z")

</div>

Hello ! I try to install rubygems on windows binary but i an error occured: and i get a popup window that zlib.dll not found. i get zlib1.dll (from official site) and run setup.rb again, that tell me ssleay32.dll no…

---

## [Could gems upgrade ruby itself?](https://www.ruby-forum.com/t/could-gems-upgrade-ruby-itself/92239)

<div class="topic-metadata">

**Author:** [@kernel1983](https://www.ruby-forum.com/u/kernel1983)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/could-gems-upgrade-ruby-itself/92239 "2007-04-17T15:32:24Z")

</div>

gems can install and upgrade almost everything for me! but I wonder if it could upgrade ruby itself? I’m using ruby 1.82(OS X pre-installed) and I’m too lazy for things upgraded

---

## [Erubycon :: Enterprise Ruby Conference in Columbus, OH July](https://www.ruby-forum.com/t/erubycon-enterprise-ruby-conference-in-columbus-oh-july/92251)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/erubycon-enterprise-ruby-conference-in-columbus-oh-july/92251 "2007-04-17T14:31:09Z")

</div>

erubycon, July 16-18 The first conference dedicated to displaying Ruby’s place in the enterprise has new dates and a new, lower price. What? erubycon.com - Enterprise Ruby Conference How much? $249 \* Where? …

---

## [ARGV and unit tests: different problem](https://www.ruby-forum.com/t/argv-and-unit-tests-different-problem/92215)

<div class="topic-metadata">

**Author:** [@yuricake](https://www.ruby-forum.com/u/yuricake)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 10:24am UTC](https://www.ruby-forum.com/t/argv-and-unit-tests-different-problem/92215 "2007-04-17T10:24:41Z")

</div>

Hello, I am experiencing the following strange problem (this is present in ruby versions 1.8.5 and 1.8.6): if I rely on the test suites to be run automatically, the ARGV variable is no longer present inside the testc…

---

## [Why the 'next' call within the Proc obj created by 'lambda'](https://www.ruby-forum.com/t/why-the-next-call-within-the-proc-obj-created-by-lambda/92143)

<div class="topic-metadata">

**Author:** [@FindSun](https://www.ruby-forum.com/u/FindSun)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 9:52am UTC](https://www.ruby-forum.com/t/why-the-next-call-within-the-proc-obj-created-by-lambda/92143 "2007-04-17T09:52:38Z")

</div>

Hi, guys, I am one of the chinese translators for “Programming Ruby 2nd”. And one reader in China reported that the ‘next’ call within the Proc obj created by ‘lambda’ always returns nil, instead of the specified val…

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

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