# Ruby

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

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

---

## [Question about RAGI and Rails](https://www.ruby-forum.com/t/question-about-ragi-and-rails/101604)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 0\
**Last updated:** [August 6, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/question-about-ragi-and-rails/101604 "2006-08-06T18:53:09Z")

</div>

Hello there all. i just got started with ruby. i got the pickaxe book from amazon yesterday. The main reason i got into ruby was for RAGI ( the asterisk api ). From the tutorials, there is a lot of emphesis on using…

---

## [Whitespace matters in instance\_eval? I'm confused](https://www.ruby-forum.com/t/whitespace-matters-in-instance-eval-im-confused/101564)

<div class="topic-metadata">

**Author:** [@Harold\_H](https://www.ruby-forum.com/u/Harold_H)\
**Replies:** 3\
**Last updated:** [August 6, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/whitespace-matters-in-instance-eval-im-confused/101564 "2006-08-06T17:53:04Z")

</div>

irb(main):001:0\> foo = Object.new =\> #Object:0x2b9bb88 irb(main):002:0\> foo.instance\_eval “3.times{ puts ‘boom’ }” boom boom boom =\> 3 irb(main):003:0\> foo.instance\_eval “3.times{ puts ‘boom’ \\n}” boom boom boo…

---

## [Challenge with FasterCSV](https://www.ruby-forum.com/t/challenge-with-fastercsv/101505)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 6, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/challenge-with-fastercsv/101505 "2006-08-06T17:07:55Z")

</div>

HI How can i define the header to be in the 3row of the the array loaded After the array is loaded can i redefine the header. for eg in the following cod require “faster\_csv” arr\_of\_arrs = FasterCSV.read(“c:\\temp\\Qu…

---

## [Problem with RDoc](https://www.ruby-forum.com/t/problem-with-rdoc/101474)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 4\
**Last updated:** [August 6, 2006, 4:49pm UTC](https://www.ruby-forum.com/t/problem-with-rdoc/101474 "2006-08-06T16:49:53Z")

</div>

I have discovered an issue with RDoc that may or may not be old news, Say I have a folder with a file named my\_class.rb and a subfolder named my\_class. Within the my\_class folder are two files named a.rb and b.rb. a.r…

---

## [Inheritance with class-variables](https://www.ruby-forum.com/t/inheritance-with-class-variables/101535)

<div class="topic-metadata">

**Author:** [@yoche2001](https://www.ruby-forum.com/u/yoche2001)\
**Replies:** 6\
**Last updated:** [August 6, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/inheritance-with-class-variables/101535 "2006-08-06T16:24:25Z")

</div>

Hi, I am quite new into ruby and stumbled over some strange (at least to me) behavior. Have a look and guess what the output of this code might be: class Animal @@temperature = 0 def info\_temperature puts “My body…

---

## [Qt/Ruby bindings for Qt 4?](https://www.ruby-forum.com/t/qt-ruby-bindings-for-qt-4/101579)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 3\
**Last updated:** [August 6, 2006, 4:07pm UTC](https://www.ruby-forum.com/t/qt-ruby-bindings-for-qt-4/101579 "2006-08-06T16:07:13Z")

</div>

Hi, I see on http://raa.ruby-lang.org/project/qtruby/ that there not much activitity with this project. Qt 4 is apparently still not supported. Are the bindings available elsewhere maybe? Philippe

---

## [Defining array constant](https://www.ruby-forum.com/t/defining-array-constant/101589)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 6, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/defining-array-constant/101589 "2006-08-06T15:16:47Z")

</div>

Hi, I need to define two constant of array type, what is the recommended way to do that? rb\_define\_const(module, “MASK”, …mask value…is float\[4\]\[4\]); rb\_define\_const(module, “LIGHTTINT”, …color value…is float\[3\]); I…

---

## [How to tell when IO::popen is finished?](https://www.ruby-forum.com/t/how-to-tell-when-io-popen-is-finished/101208)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 13\
**Last updated:** [August 6, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/how-to-tell-when-io-popen-is-finished/101208 "2006-08-06T14:58:45Z")

</div>

Hi, I’ve just installed and had some success with the gnuplot library. I’m saving the output to a png file (plot.terminal “png”) and this all works well, but when I try to use the file it isn’t finished writing it ye…

---

## [Threads and system calls](https://www.ruby-forum.com/t/threads-and-system-calls/101566)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 6\
**Last updated:** [August 6, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/threads-and-system-calls/101566 "2006-08-06T14:08:22Z")

</div>

I’m curious how ruby threads would do for a threaded network server. Will reading/writing sockets in one thread block other threads? In this application clients connect to the server via ssl and a simple line protoco…

---

## [How do you create MySQL5 stored procedures?](https://www.ruby-forum.com/t/how-do-you-create-mysql5-stored-procedures/101546)

<div class="topic-metadata">

**Author:** [@tesla](https://www.ruby-forum.com/u/tesla)\
**Replies:** 2\
**Last updated:** [August 6, 2006, 1:37pm UTC](https://www.ruby-forum.com/t/how-do-you-create-mysql5-stored-procedures/101546 "2006-08-06T13:37:40Z")

</div>

I have figured out how to call MySQL5 stored procedures but would like to know if it is possible to create them using DBI. I have seen example of all the major databases but nothing on the syntax for MySQL5. -Tesla

---

## [Magic/xml library for easy XML processing](https://www.ruby-forum.com/t/magic-xml-library-for-easy-xml-processing/101468)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 6\
**Last updated:** [August 6, 2006, 12:55pm UTC](https://www.ruby-forum.com/t/magic-xml-library-for-easy-xml-processing/101468 "2006-08-06T12:55:38Z")

</div>

Hello, Some of you may be interested in a new library for XML processing. It is inspired by languages designed just for XML-processing like CDuce and to some extend by Perl’s XML::Twig. Basically easy things should b…

---

## [Re: Drb / ActiveRecord as Application Server for Qt/Ruby cli](https://www.ruby-forum.com/t/re-drb-activerecord-as-application-server-for-qt-ruby-cli/101574)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 0\
**Last updated:** [August 6, 2006, 10:58am UTC](https://www.ruby-forum.com/t/re-drb-activerecord-as-application-server-for-qt-ruby-cli/101574 "2006-08-06T10:58:34Z")

</div>

Adam K. wrote: On Aug 4, 2006, at 12:20 PM, Philippe L. wrote: I prefer a 3-tier approach, with all the buisness logic on the server, just like you would do with J2EE. Centralisation of code is a good thing I think…

---

## [RFuzz 0.7 -- Win32, Bug Fix, Browser Begins](https://www.ruby-forum.com/t/rfuzz-0-7-win32-bug-fix-browser-begins/101460)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 6\
**Last updated:** [August 6, 2006, 9:49am UTC](https://www.ruby-forum.com/t/rfuzz-0-7-win32-bug-fix-browser-begins/101460 "2006-08-06T09:49:32Z")

</div>

Hello Everyone, Another release of RFuzz to announce: http://rfuzz.rubyforge.org/ DESCRIPTION RFuzz is an HTTP client library that you can use in combination with a random junk generator to conduct fuzzing tests aga…

---

## [Pandora 0.4.3 Release](https://www.ruby-forum.com/t/pandora-0-4-3-release/101552)

<div class="topic-metadata">

**Author:** [@Julian\_ISKamil](https://www.ruby-forum.com/u/Julian_ISKamil)\
**Replies:** 3\
**Last updated:** [August 6, 2006, 3:37am UTC](https://www.ruby-forum.com/t/pandora-0-4-3-release/101552 "2006-08-06T03:37:14Z")

</div>

I am pleased to announce that Pandora 0.4.3 is now available to the general public. Since the last beta release, the code has been updated to include a new search function, common book sidebar, site-wide menu, and a f…

---

## [No rdoc for RubyInline?](https://www.ruby-forum.com/t/no-rdoc-for-rubyinline/101541)

<div class="topic-metadata">

**Author:** [@lists](https://www.ruby-forum.com/u/lists)\
**Replies:** 0\
**Last updated:** [August 5, 2006, 11:51pm UTC](https://www.ruby-forum.com/t/no-rdoc-for-rubyinline/101541 "2006-08-05T23:51:40Z")

</div>

Hi, I’m probably just being dense, but RubyInline doesn’t appear to have installed any rdoc stuff, and my attempts to do so manually fail: % gem -v 0.9.0 % ls gem env gempath/doc/RubyInline-3.5.0 % % sudo gem rdoc …

---

## [Re: Drb / ActiveRecord as Application Server for Qt/Ruby cli](https://www.ruby-forum.com/t/re-drb-activerecord-as-application-server-for-qt-ruby-cli/101414)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 2\
**Last updated:** [August 5, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/re-drb-activerecord-as-application-server-for-qt-ruby-cli/101414 "2006-08-05T23:03:37Z")

</div>

Logan C. wrote: Distributed Ruby Server Is it safe and robust, anyway, on an intranet composed of a hundred across the network, why even have a server / client architecture? Just stick the AR code in the “Client” …

---

## [How to execute an external program - Ruby equivalents to PHP](https://www.ruby-forum.com/t/how-to-execute-an-external-program-ruby-equivalents-to-php/101536)

<div class="topic-metadata">

**Author:** [@tesla](https://www.ruby-forum.com/u/tesla)\
**Replies:** 4\
**Last updated:** [August 5, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/how-to-execute-an-external-program-ruby-equivalents-to-php/101536 "2006-08-05T22:48:35Z")

</div>

PHP has these: shell\_exec – Execute command via shell and return the complete output as a string system – Execute an external program and display the output passthru – Execute an external program and display raw out…

---

## [Why can't I catch this exception?](https://www.ruby-forum.com/t/why-cant-i-catch-this-exception/101496)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 4\
**Last updated:** [August 5, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/why-cant-i-catch-this-exception/101496 "2006-08-05T22:18:35Z")

</div>

(this is in the context of Rails, buts its primarily a Ruby question dealing with exception handling) This is driving me nuts - I’m tracking down a bug in ActionPack that causes rails to do a 500 error with no info, o…

---

## [Extending ruby with ocaml](https://www.ruby-forum.com/t/extending-ruby-with-ocaml/101291)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 5, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/extending-ruby-with-ocaml/101291 "2006-08-05T21:39:33Z")

</div>

this has seen the list before but, seeing all the interest in ocaml recently i thought i’d post it again http://sciruby.codeforpeople.com/sr.cgi/ProjectIdeas/RubyOCaml have at it! -a

---

## [Smoking hash-ish: Letter mapping](https://www.ruby-forum.com/t/smoking-hash-ish-letter-mapping/101534)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 4\
**Last updated:** [August 5, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/smoking-hash-ish-letter-mapping/101534 "2006-08-05T21:09:29Z")

</div>

Hi, for a very simplistic encryption program I want to build a hash, which should be dynamically build (not hardcoded). The input of the method which should do the job will be a range of any meaningful input, say: pa…

---

## [Rake: How to keep proceeding if one command fails?](https://www.ruby-forum.com/t/rake-how-to-keep-proceeding-if-one-command-fails/102827)

<div class="topic-metadata">

**Author:** [@luc](https://www.ruby-forum.com/u/luc)\
**Replies:** 1\
**Last updated:** [August 5, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/rake-how-to-keep-proceeding-if-one-command-fails/102827 "2006-08-05T19:51:24Z")

</div>

Hi All, Could you tell me how I could do to have rake to run all the tasks no matter the result of the previous one(s)? ex: file ‘xxx.c’ =\> \[‘xxx.h’\] do if(sh(blablabla)) puts “do this” else puts “do this” end e…

---

## [Glade & ruby-gnome2](https://www.ruby-forum.com/t/glade-ruby-gnome2/101447)

<div class="topic-metadata">

**Author:** [@momo](https://www.ruby-forum.com/u/momo)\
**Replies:** 4\
**Last updated:** [August 5, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/glade-ruby-gnome2/101447 "2006-08-05T19:06:21Z")

</div>

hi all, i’m starting with ruby and ruby-gnome2, im trying to develop a simple aplication with glade and i generate the ruby file using ruby-glade-create-template which is included in my linux distro. the application …

---

## [Iâ?m having a hard time learning ruby](https://www.ruby-forum.com/t/ia-m-having-a-hard-time-learning-ruby/101254)

<div class="topic-metadata">

**Author:** [@imaqaguy](https://www.ruby-forum.com/u/imaqaguy)\
**Replies:** 30\
**Last updated:** [August 5, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/ia-m-having-a-hard-time-learning-ruby/101254 "2006-08-05T17:42:16Z")

</div>

For starters, just do you know where Iâ??m coming from: I have little to no programming experience, except for some C and VB classes I took 6 years ago, which I did fine in. My biggest hurdle getting started with ruby…

---

## [ICFP and OOPSLA in Portland, Oregon](https://www.ruby-forum.com/t/icfp-and-oopsla-in-portland-oregon/101513)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 0\
**Last updated:** [August 5, 2006, 5:27pm UTC](https://www.ruby-forum.com/t/icfp-and-oopsla-in-portland-oregon/101513 "2006-08-05T17:27:14Z")

</div>

For those of you who didn’t get in to RubyConf or who didn’t attend OSCON/FOSCON, there are a couple more opportunities to visit my home town in the context of programming languages. Second of all, there’s OOPSLA, rou…

---

## [Writing from 3 sources to 1 file](https://www.ruby-forum.com/t/writing-from-3-sources-to-1-file/101477)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [August 5, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/writing-from-3-sources-to-1-file/101477 "2006-08-05T16:33:10Z")

</div>

i’ve an app with 2 daemons, i’d like to write all the log messages to the same file. then i suppose i need to lock the file when one source is writing and wait the file is unlocked for the other ? how this could be d…

---

## [Help for reader for NETGEAR DG834GT](https://www.ruby-forum.com/t/help-for-reader-for-netgear-dg834gt/100618)

<div class="topic-metadata">

**Author:** [@enzo](https://www.ruby-forum.com/u/enzo)\
**Replies:** 4\
**Last updated:** [August 5, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/help-for-reader-for-netgear-dg834gt/100618 "2006-08-05T15:59:39Z")

</div>

Hi. I don’t find the error this script should read the SNR margin of my adsl line from router and write it on txt file… like this but without window but there is an error in the script Can you help me? require ‘o…

---

## [Re: Is there a way to avoid having the library slurp-read th](https://www.ruby-forum.com/t/re-is-there-a-way-to-avoid-having-the-library-slurp-read-th/101352)

<div class="topic-metadata">

**Author:** [@kivle](https://www.ruby-forum.com/u/kivle)\
**Replies:** 4\
**Last updated:** [August 5, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/re-is-there-a-way-to-avoid-having-the-library-slurp-read-th/101352 "2006-08-05T15:15:05Z")

</div>

Hi depesz, I’ve looked for things like that, but it doesn’t seem like they’ve been exposed in the Ruby API. If I try to make a DBI prepared statement, it will just slurp-read the first time I call execute on it. The n…

---

## [Ruby GUI and VisualBasic](https://www.ruby-forum.com/t/ruby-gui-and-visualbasic/100170)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 6\
**Last updated:** [August 5, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/ruby-gui-and-visualbasic/100170 "2006-08-05T14:18:03Z")

</div>

Is there a Ruby GUI environment like the one with VisualBasic, where one can drag &drop widgets to a screen coordinate? Thanks Victor

---

## [Log4r gem install : Unrecognized directive 'nodoc'](https://www.ruby-forum.com/t/log4r-gem-install-unrecognized-directive-nodoc/101501)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 5, 2006, 11:56am UTC](https://www.ruby-forum.com/t/log4r-gem-install-unrecognized-directive-nodoc/101501 "2006-08-05T11:56:58Z")

</div>

Log4r seems to be installed however at rdoc level i get a bunch of messages : src/log4r/base.rb:2:7: Unrecognized directive ‘nodoc’ rdoc seems to work also, localy ))

---

## [Simple Reading, Deleting and Writing to Files](https://www.ruby-forum.com/t/simple-reading-deleting-and-writing-to-files/101476)

<div class="topic-metadata">

**Author:** [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Replies:** 4\
**Last updated:** [August 5, 2006, 10:50am UTC](https://www.ruby-forum.com/t/simple-reading-deleting-and-writing-to-files/101476 "2006-08-05T10:50:55Z")

</div>

i have done some research, but can’t see anything that explains simple file writing. eventually, i may end using rexml, but for now i just want to use a simple text file. ip.txt contains three lines of text. they ar…

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

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