# Ruby

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

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

---

## [Best way to get a class object from its name?](https://www.ruby-forum.com/t/best-way-to-get-a-class-object-from-its-name/86519)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [February 22, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/best-way-to-get-a-class-object-from-its-name/86519 "2007-02-22T22:41:56Z")

</div>

All, In my Rails app., I’m doing something like this: eval("#{requested\_controller\_class}.respond\_to?(‘session\_data\_not\_needed\_by?’)") where requested\_controller\_class is the name of an existing (controller) class. I…

---

## [Newbie question eruby dbi](https://www.ruby-forum.com/t/newbie-question-eruby-dbi/86514)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 3\
**Last updated:** [February 22, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/newbie-question-eruby-dbi/86514 "2007-02-22T22:10:53Z")

</div>

Hi List I’ve spent the last couple days doing tutorials and so far I’m loving Ruby. My main function will be to use eruby on a web site. I’ve been able to get many things working but one I’m stumped on one so I’m hop…

---

## [Fwd: FXRuby - slow FXDirDialog when accessing network direct](https://www.ruby-forum.com/t/fwd-fxruby-slow-fxdirdialog-when-accessing-network-direct/86512)

<div class="topic-metadata">

**Author:** [@Jon\_Egil\_Stand](https://www.ruby-forum.com/u/Jon_Egil_Stand)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/fwd-fxruby-slow-fxdirdialog-when-accessing-network-direct/86512 "2007-02-22T21:49:48Z")

</div>

I don’t have an answer, but you might want to post your question to the FOX Users’ Mailing List as well – whatever’s going on in your situation is definitely something that’s outside the scope of the Ruby binding. T…

---

## [MiniExiftool 0.2.0 released](https://www.ruby-forum.com/t/miniexiftool-0-2-0-released/86510)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/miniexiftool-0-2-0-released/86510 "2007-02-22T21:25:45Z")

</div>

MiniExiftool version 0.2.0 released! http://miniexiftool.rubyforge.org/ MiniExiftool is a wrapper library for the Exiftool command-line application (www.sno.phy.queensu.ca/~phil/exiftool/) written by Phil Harvay. One…

---

## [FXRuby - slow FXDirDialog when accessing network directory](https://www.ruby-forum.com/t/fxruby-slow-fxdirdialog-when-accessing-network-directory/86335)

<div class="topic-metadata">

**Author:** [@Jon\_Egil\_Stand](https://www.ruby-forum.com/u/Jon_Egil_Stand)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/fxruby-slow-fxdirdialog-when-accessing-network-directory/86335 "2007-02-22T20:13:37Z")

</div>

Greetings My intentions with this post is not to bash FXRuby, which I find very enjoyable, but to learn and perhaps circumvent a problem. In a windows environment we’re using some network disks. Access is quite snapp…

---

## [Ruby debug-options?](https://www.ruby-forum.com/t/ruby-debug-options/86493)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/ruby-debug-options/86493 "2007-02-22T18:47:27Z")

</div>

Greetings, I’m trying to use the ruby debugger, as in… ruby -r debug \[debug-options\] \[programfile\] \[program-arguments\] … as described in Pick Axe. I’m having some troubles, my script makes use of the Rails ActiveReco…

---

## [Handle ArgumentError to resume loop at next iteration](https://www.ruby-forum.com/t/handle-argumenterror-to-resume-loop-at-next-iteration/86483)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/handle-argumenterror-to-resume-loop-at-next-iteration/86483 "2007-02-22T18:18:23Z")

</div>

Hi, still a noob, and still hacking a script to traverse photo directories to populate a mysql db with various photo metadata. nearly there, but having trouble handling an error from DateTime that dies on a file that …

---

## [Housie (#114)](https://www.ruby-forum.com/t/housie-114/86489)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/housie-114/86489 "2007-02-22T18:04:20Z")

</div>

Eric I. said it best in a note attached to his solution: I really enjoyed this quiz. On the surface it seems relatively simple. But there are some important subtleties. This is the realization I came to as well. Wh…

---

## [Searched Files -- Now Display in UI](https://www.ruby-forum.com/t/searched-files-now-display-in-ui/86463)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/searched-files-now-display-in-ui/86463 "2007-02-22T18:01:19Z")

</div>

Hi All: I made a small simple program to search for regular expressions interactively in inputted particular directory and its sub- directories. Its a simple short program in Ruby (one of my Initial ones). I direct …

---

## [Re: class local instance variable](https://www.ruby-forum.com/t/re-class-local-instance-variable/85831)

<div class="topic-metadata">

**Author:** [@Park\_Ji-In](https://www.ruby-forum.com/u/Park_Ji-In)\
**Replies:** 4\
**Last updated:** [February 22, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/re-class-local-instance-variable/85831 "2007-02-22T17:33:15Z")

</div>

ã“ã‚“ã°ã‚“ã¯ã€‚æœ´ èŠå° ã¨ç”³ã—ã¾ã™ã€‚ åˆã‚ã¦ãªã®ã§ã©ã†ã‹ã‚ˆã‚ã—ããŠé¡˜ã„ã—ã¾ã™ã€‚ æ¬¡ã®ã‚ˆã†ãªcodeã‚’å®Ÿè¡Œã—ã¦ã¿ã¾ã—ãŸã€‚ ã™ã‚‹ã¨ã€ mithrandir@losrorien ~/ruby/ruby-svn/trunk $…

---

## [SQL Server 2005 connection problems in XP](https://www.ruby-forum.com/t/sql-server-2005-connection-problems-in-xp/86399)

<div class="topic-metadata">

**Author:** [@gissell](https://www.ruby-forum.com/u/gissell)\
**Replies:** 3\
**Last updated:** [February 22, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/sql-server-2005-connection-problems-in-xp/86399 "2007-02-22T15:33:21Z")

</div>

Hello everyone, I have been looking all over to see if I can get my problem resolved and alas, I have not been successful. Could someone help? I am trying to connect to a database in XP that resides on a SQL Server 2…

---

## [Making Ruby faster](https://www.ruby-forum.com/t/making-ruby-faster/86291)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 9\
**Last updated:** [February 22, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/making-ruby-faster/86291 "2007-02-22T15:27:42Z")

</div>

Here’s a patch that makes Ruby interpretter slightly faster (~3%) by optimizing a few commonly used functions (rb\_call0, st\_\*, fix\_equal): http://zabor.org/taw/ruby-performance-patch-2007-02-21.patch.gz And here’s a …

---

## [Linda primer?](https://www.ruby-forum.com/t/linda-primer/86382)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 4\
**Last updated:** [February 22, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/linda-primer/86382 "2007-02-22T14:26:31Z")

</div>

I’ve been trying to find out some info on Ruby’s “Rinda”. I’m familar with DRb, but not Rinda/Linda. All the materials I can find on the web seem to say something along the lines of: “Rinda is just like Java’s Linda,…

---

## [Weird behaviour escaping special characters in a string](https://www.ruby-forum.com/t/weird-behaviour-escaping-special-characters-in-a-string/86363)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 7\
**Last updated:** [February 22, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/weird-behaviour-escaping-special-characters-in-a-string/86363 "2007-02-22T14:18:30Z")

</div>

This instance method added to the String class returns a copy of the receiver with occurrences of \\ replaced with \\, and occurrences of ’ replaced with ': class String def to\_source\_string gsub(/(\\|’)/, ‘\\\\\\1’) end …

---

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

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 6\
**Last updated:** [February 22, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/re-ruby-tail/86446 "2007-02-22T14:15:30Z")

</div>

Actually, I am not sure how this would work. If I do this, I get no output from the file: tail -f sim.out So there is something basic I am missing here. Any help? TIA, Phy ----- Original Message ---- From: Kevin…

---

## [Screencast for installing Ruby on OS X](https://www.ruby-forum.com/t/screencast-for-installing-ruby-on-os-x/86212)

<div class="topic-metadata">

**Author:** [@twerth](https://www.ruby-forum.com/u/twerth)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/screencast-for-installing-ruby-on-os-x/86212 "2007-02-22T13:07:20Z")

</div>

I’ve created a screencast showing how to install Ruby and Ruby on Rails from a new install of OS X Tiger. I found that a lot of tutorials out there skip little steps that cause people to get stuck, so I figured a scre…

---

## [Rexml - StreamListener - Where I am in the XML?](https://www.ruby-forum.com/t/rexml-streamlistener-where-i-am-in-the-xml/86385)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 22, 2007, 11:56am UTC](https://www.ruby-forum.com/t/rexml-streamlistener-where-i-am-in-the-xml/86385 "2007-02-22T11:56:15Z")

</div>

Hi, I’m using REXML::StreamListener to analyze a big xml file. My ruby code looks like this: — code start here — require ‘rexml/document’ require ‘rexml/streamlistener’ class MyListener include REXML::StreamListen…

---

## [Passing optional argument to win32 ole subsystem](https://www.ruby-forum.com/t/passing-optional-argument-to-win32-ole-subsystem/86418)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 11:43am UTC](https://www.ruby-forum.com/t/passing-optional-argument-to-win32-ole-subsystem/86418 "2007-02-22T11:43:12Z")

</div>

Hi all, I am trying to embed a html document in Excel document using Win32OLE. The VBA Excel reference talks about this by using the OleObject Add method. However I am not sure how do I pass the optional argument in …

---

## [Gtkmozembed on windows](https://www.ruby-forum.com/t/gtkmozembed-on-windows/86186)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 3\
**Last updated:** [February 22, 2007, 11:25am UTC](https://www.ruby-forum.com/t/gtkmozembed-on-windows/86186 "2007-02-22T11:25:10Z")

</div>

Hi ho :-), we have a problem using gtkmozembed on Windows. The following software is installed now: Ruby GTK+ 2.8 (gimp works) Ruby-Gnome2 Did we missed anything? irb(main):001:0\> require ‘gtk2’ =\> true irb(main)…

---

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

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 11:24am UTC](https://www.ruby-forum.com/t/re-ruby-tail/86452 "2007-02-22T11:24:10Z")

</div>

Benj, how would that work? TIA, Phy ----- Original Message ---- From: “removed\_email\_address@domain.invalid” removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Thursda…

---

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

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 11:20am UTC](https://www.ruby-forum.com/t/re-ruby-tail/86451 "2007-02-22T11:20:09Z")

</div>

Wow thats really cool!!! ----- Original Message ---- From: Alex Y. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Thursday, February 22, 2007 1:59:39 AM Subject: Re:…

---

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

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 10:39am UTC](https://www.ruby-forum.com/t/re-ruby-tail/86445 "2007-02-22T10:39:01Z")

</div>

The issue there is that how do I detect new output and then capture that output as in tail -f ? ----- Original Message ---- From: Kevin J. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@d…

---

## [Un-include?](https://www.ruby-forum.com/t/un-include/86259)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 7:48am UTC](https://www.ruby-forum.com/t/un-include/86259 "2007-02-22T07:48:39Z")

</div>

I have this object which has “include” declared. I want to, in certain situations, not have the include happen. I can turn it off with an “if” or an “unless”, but is there any way to actually just yank the include out…

---

## [Ruby, Curses, Threading, and Sleeping](https://www.ruby-forum.com/t/ruby-curses-threading-and-sleeping/86282)

<div class="topic-metadata">

**Author:** [@badcherry](https://www.ruby-forum.com/u/badcherry)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 6:25am UTC](https://www.ruby-forum.com/t/ruby-curses-threading-and-sleeping/86282 "2007-02-22T06:25:35Z")

</div>

I’m attempting to get a curses application running in a threaded environment to handle input with no delay. This is needed for portability reasons. I have found though that in a threaded ruby environment that whenev…

---

## [Parser as an alternative to RegExen](https://www.ruby-forum.com/t/parser-as-an-alternative-to-regexen/86415)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 6\
**Last updated:** [February 22, 2007, 5:33am UTC](https://www.ruby-forum.com/t/parser-as-an-alternative-to-regexen/86415 "2007-02-22T05:33:32Z")

</div>

I’m parsing a large file, currently using compound regexen: PREAMBLE = ‘AA’ USERID = ‘\\d{8}’ USER\_HELLO = “#{PREMABLE}(#{USERID})” Is there a simple way to do this using a parser such as ANTLR? I’ve never used one …

---

## [Truble with Gosu](https://www.ruby-forum.com/t/truble-with-gosu/86425)

<div class="topic-metadata">

**Author:** [@laber](https://www.ruby-forum.com/u/laber)\
**Replies:** 0\
**Last updated:** [February 22, 2007, 5:20am UTC](https://www.ruby-forum.com/t/truble-with-gosu/86425 "2007-02-22T05:20:31Z")

</div>

Hi everybody! As a relatively new Linux user, I’m having troubles running Gosu library (http://www.raschke.de/julian/gosu/) in Linux (Ubuntu 6.06 Dapper). After a painful -for a newbie- process of installing dependen…

---

## [Simple web site - Rails, Nitro, Others?](https://www.ruby-forum.com/t/simple-web-site-rails-nitro-others/86423)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 4:53am UTC](https://www.ruby-forum.com/t/simple-web-site-rails-nitro-others/86423 "2007-02-22T04:53:30Z")

</div>

Hi, I’ve developed a mid-sized web application in rails, but I’m not sure rails is the right choice for my latest project. I need to put together a web site with a handful of pages and a few dynamic elements driven b…

---

## [Regex group without capture](https://www.ruby-forum.com/t/regex-group-without-capture/86422)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 4:30am UTC](https://www.ruby-forum.com/t/regex-group-without-capture/86422 "2007-02-22T04:30:27Z")

</div>

Is there a way to make a regex group without capturing the group (in Perl I believe it’s possible, can’t find any docs how to do this in Ruby)

---

## [Services of ruby-lang.org will be stopped](https://www.ruby-forum.com/t/services-of-ruby-lang-org-will-be-stopped/86312)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 4:15am UTC](https://www.ruby-forum.com/t/services-of-ruby-lang-org-will-be-stopped/86312 "2007-02-22T04:15:25Z")

</div>

Hi, The IP address of the server will be changed on Thu Feb 22 03:00:00 UTC 2007, and WWW/FTP/ML and Anonymous CVS services will be stopped in a few minutes. Sorry for inconvenience. Shugo

---

## [Rails - engineering documentation](https://www.ruby-forum.com/t/rails-engineering-documentation/86313)

<div class="topic-metadata">

**Author:** [@Patrick\_Finnegan](https://www.ruby-forum.com/u/Patrick_Finnegan)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 2:35am UTC](https://www.ruby-forum.com/t/rails-engineering-documentation/86313 "2007-02-22T02:35:19Z")

</div>

Can anyone recommend a good source for Ruby On Rails documentation that describes the engineering behind the automation of the HTML form generation and database access process. Most of the publications I have seen are…

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

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