# Ruby

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

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

---

## [Some help with script](https://www.ruby-forum.com/t/some-help-with-script/82238)

<div class="topic-metadata">

**Author:** [@R.Smits](https://www.ruby-forum.com/u/R.Smits)\
**Replies:** 3\
**Last updated:** [January 18, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/some-help-with-script/82238 "2007-01-18T14:58:37Z")

</div>

Hello, I am not good with ruby , but I must change something in a script. Can someone help me in the right direction ? def initialize # This is the directory where amavisd-new stores the quarantined emails. @direc…

---

## [Random RoutingError](https://www.ruby-forum.com/t/random-routingerror/82225)

<div class="topic-metadata">

**Author:** [@jverger](https://www.ruby-forum.com/u/jverger)\
**Replies:** 1\
**Last updated:** [January 18, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/random-routingerror/82225 "2007-01-18T12:24:32Z")

</div>

Hi, I’m getting “Page Cannot be Found” error. The funny (let’s call it funny :slight\_smile: ) is that is random. When I restart the server, I can log in into my web properly. After a few minutes and server “log in’s”…

---

## [Printing 2 dimensionl hash problem](https://www.ruby-forum.com/t/printing-2-dimensionl-hash-problem/82211)

<div class="topic-metadata">

**Author:** [@Krekna\_M](https://www.ruby-forum.com/u/Krekna_M)\
**Replies:** 4\
**Last updated:** [January 18, 2007, 11:53am UTC](https://www.ruby-forum.com/t/printing-2-dimensionl-hash-problem/82211 "2007-01-18T11:53:22Z")

</div>

Hi, busy with my script, I am trying to print my hash, which is built up as follows: hash: key = A, value = \[1,2,3\] key = B, value = \[4,5,6\] etc. I try this: @h.each do |key,value| print key, " is ", value.each …

---

## [RubyForge offline](https://www.ruby-forum.com/t/rubyforge-offline/82228)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [January 18, 2007, 11:43am UTC](https://www.ruby-forum.com/t/rubyforge-offline/82228 "2007-01-18T11:43:15Z")

</div>

Hello all - RubyForge went down at 0433 this morning. I’m investigating now. Yours, Tom

---

## [Securley Transmit Data](https://www.ruby-forum.com/t/securley-transmit-data/82202)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 7\
**Last updated:** [January 18, 2007, 11:18am UTC](https://www.ruby-forum.com/t/securley-transmit-data/82202 "2007-01-18T11:18:11Z")

</div>

Hi everyone, Being very unfamiliar with encryption and secure transmission I’m at a loss of how to do this. I need to get info from my system to a clients (with many such transactions for different clients) securel…

---

## [ObjectSpace.define\_finalizer does not run some procedure str](https://www.ruby-forum.com/t/objectspace-define-finalizer-does-not-run-some-procedure-str/82181)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [January 18, 2007, 10:40am UTC](https://www.ruby-forum.com/t/objectspace-define-finalizer-does-not-run-some-procedure-str/82181 "2007-01-18T10:40:59Z")

</div>

I have Ruby 182-15 on WinXP When I run the code below only the first finalizer runs. The others two don’t seem to run. I found similar posts on other sites, but no solutions. You can duplicate the first and it runs…

---

## [Random RoutingError](https://www.ruby-forum.com/t/random-routingerror/82216)

<div class="topic-metadata">

**Author:** [@jverger](https://www.ruby-forum.com/u/jverger)\
**Replies:** 0\
**Last updated:** [January 18, 2007, 9:37am UTC](https://www.ruby-forum.com/t/random-routingerror/82216 "2007-01-18T09:37:47Z")

</div>

Hi, I'm getting "Page Cannot be Found" error. The funny (let's call it funny :) ) is that is random. When I restart the server, I can log in into my web properly. After a few minutes and server "log in's", it shows "P…

---

## [Eventmachine - pure Ruby port](https://www.ruby-forum.com/t/eventmachine-pure-ruby-port/82126)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 6\
**Last updated:** [January 18, 2007, 4:43am UTC](https://www.ruby-forum.com/t/eventmachine-pure-ruby-port/82126 "2007-01-18T04:43:27Z")

</div>

There was talk this past fall of a pure Ruby port of Eventmachine that Francis was working on. Is there any status updates? I peeked in the mailing list archive for Eventmachine but didn’t seen anything new in there…

---

## [Rubyforge uploading and docs](https://www.ruby-forum.com/t/rubyforge-uploading-and-docs/102983)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 5\
**Last updated:** [January 18, 2007, 3:48am UTC](https://www.ruby-forum.com/t/rubyforge-uploading-and-docs/102983 "2007-01-18T03:48:21Z")

</div>

I’m wondering what are people using to upload rubyforge projects. I’m basically looking for something that will easily allow me to upload the ri documentation into rubyforge (this is a pain to do manually, afaik).

---

## [Ruby && PDF generation](https://www.ruby-forum.com/t/ruby-pdf-generation/82122)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 3\
**Last updated:** [January 18, 2007, 3:38am UTC](https://www.ruby-forum.com/t/ruby-pdf-generation/82122 "2007-01-18T03:38:15Z")

</div>

I cannot recall if I’ve posted this link before; regardless, anyone who wishes to generate PDF output from ruby may be interested in this. Some very good examples ( source and output ). http://libharu.sourceforge.net…

---

## [About win32 native thread](https://www.ruby-forum.com/t/about-win32-native-thread/81924)

<div class="topic-metadata">

**Author:** [@wangdong](https://www.ruby-forum.com/u/wangdong)\
**Replies:** 3\
**Last updated:** [January 18, 2007, 3:21am UTC](https://www.ruby-forum.com/t/about-win32-native-thread/81924 "2007-01-18T03:21:13Z")

</div>

Is there any reliable win32 thread lib?

---

## [RubyForge website](https://www.ruby-forum.com/t/rubyforge-website/81968)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 2\
**Last updated:** [January 18, 2007, 2:52am UTC](https://www.ruby-forum.com/t/rubyforge-website/81968 "2007-01-18T02:52:11Z")

</div>

A lot of projects in RubyForge have no website, other than the “Hopefully coming soon…” message. Might I suggest that the site default to the RDoc of that gem (or gems)? Advantages: Every project has a site letting…

---

## [Where is $: defined?](https://www.ruby-forum.com/t/where-is-defined/82138)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 17, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/where-is-defined/82138 "2007-01-17T23:49:56Z")

</div>

I’m installing my own ruby but need to use the other gnu tools from my co-worker, who has ruby too. I 'm doing this to try stuff first before I ask him to install it in his ruby, which is our standard. However, my ru…

---

## [Const initialization](https://www.ruby-forum.com/t/const-initialization/82185)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 2\
**Last updated:** [January 17, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/const-initialization/82185 "2007-01-17T23:09:48Z")

</div>

I think ruby does something strange when it decides if certain constants have been initialized or not. Take this simple case: #test.rb require ‘const’ require ‘/home/dave/foo/const’ #const.rb DAVE=1 When I run thi…

---

## [Net::SFTP transferring 200mb+ file problems](https://www.ruby-forum.com/t/net-sftp-transferring-200mb-file-problems/82117)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 1\
**Last updated:** [January 17, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/net-sftp-transferring-200mb-file-problems/82117 "2007-01-17T22:59:47Z")

</div>

Hi, I’m using the Net::SSH and Net::SFTP gems. One part of my application transfers a very large file (200-300mb) via sftp. When this file get’s transferred, I notice that the memory usage balloons to 400M! Is this …

---

## [Really Simple Ruby AJAX tutorial](https://www.ruby-forum.com/t/really-simple-ruby-ajax-tutorial/81958)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [January 17, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/really-simple-ruby-ajax-tutorial/81958 "2007-01-17T22:17:38Z")

</div>

Hi, I’m looking for a really simple AJAX tutuorial that covers the basic mechanics. I’m imagining something that only needs the standard Ruby libraries (rather than needing additional gems: Rails / Nitro / etc). Anyo…

---

## [Re: The Ruby Soundtrack](https://www.ruby-forum.com/t/re-the-ruby-soundtrack/82023)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 6\
**Last updated:** [January 17, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/re-the-ruby-soundtrack/82023 "2007-01-17T21:34:29Z")

</div>

For us here in the U.S., our national anthem starts out with the words “Oh say, can you C”. There’s not a lot that can top that. Frank

---

## [ActiveRecord find\_by\_\*() - how does it work?](https://www.ruby-forum.com/t/activerecord-find-by-how-does-it-work/82131)

<div class="topic-metadata">

**Author:** [@escoz](https://www.ruby-forum.com/u/escoz)\
**Replies:** 10\
**Last updated:** [January 17, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/activerecord-find-by-how-does-it-work/82131 "2007-01-17T20:42:12Z")

</div>

Hi guys! I’ve been trying to understand how the find\_by\_\*() method on ActiveRecord works, but couldn’t find anything that could help. I think that you guys can probably help me on that. On Active Record, you can make…

---

## [Ruby on Mac OS X](https://www.ruby-forum.com/t/ruby-on-mac-os-x/81862)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 10\
**Last updated:** [January 17, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/ruby-on-mac-os-x/81862 "2007-01-17T20:27:22Z")

</div>

Looking for pointers to installation guides for Ruby on Mac OS X. Just switched from the PC (I have my first working week behind me :slight\_smile: ) and I don’t want to go back. I played around with the apple installe…

---

## [Minor RAA tweak - longer project names](https://www.ruby-forum.com/t/minor-raa-tweak-longer-project-names/82133)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/minor-raa-tweak-longer-project-names/82133 "2007-01-17T19:50:57Z")

</div>

Hi, Any chance we could get the project name limit increased from 15 to 32 on the RAA? Some folks, myself included, like to have the gem spec name match the RAA project name. In some cases, this isn’t possible becau…

---

## [Output to mysql db](https://www.ruby-forum.com/t/output-to-mysql-db/82129)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 17, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/output-to-mysql-db/82129 "2007-01-17T19:36:26Z")

</div>

Hello, Very new to Ruby and I’m curious if this is possible… I have the following code which is returning a chunk of html that I want. Right now, all it does is print to the screen. Is it possible to have the outpu…

---

## [Getopt/Declare v1.20](https://www.ruby-forum.com/t/getopt-declare-v1-20/82081)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 6\
**Last updated:** [January 17, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/getopt-declare-v1-20/82081 "2007-01-17T18:35:45Z")

</div>

Getopt::Declare - Declaratively Expressed Command-Line Arguments via Regular Expressions Getopt::Declare is yet another command-line argument parser, one which is specifically designed to be powerful but exceptionally…

---

## [Passing math method to another method?](https://www.ruby-forum.com/t/passing-math-method-to-another-method/82107)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 11\
**Last updated:** [January 17, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/passing-math-method-to-another-method/82107 "2007-01-17T18:25:40Z")

</div>

I’m trying to figure out how to pass methods such as: +, -, \*\*, ^ to a method and evaluate. For example, def test(a, b, to\_do) return a.send(to\_do(b)) end puts test(1, 2, “+”) #should return 3 puts test(3, 3, “^”…

---

## [Images in FXRuby](https://www.ruby-forum.com/t/images-in-fxruby/82045)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 3\
**Last updated:** [January 17, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/images-in-fxruby/82045 "2007-01-17T17:20:53Z")

</div>

I’m new to FXRuby, and I’m having a problem with displaying images. I’m simply trying to display an image in a vertical scroll window, with the end result being a program that shows multiple images with vertical scro…

---

## [Irb\> require 'fcgi.so' =\> 'no such file to load' error](https://www.ruby-forum.com/t/irb-require-fcgi-so-no-such-file-to-load-error/81950)

<div class="topic-metadata">

**Author:** [@DocPneumo](https://www.ruby-forum.com/u/DocPneumo)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/irb-require-fcgi-so-no-such-file-to-load-error/81950 "2007-01-17T17:01:13Z")

</div>

5th try I submitted a shorter version of this yesterday but it does not seem to have ever shown up. I have a fresh install of Ruby, RubyGems, FastCGI and ruby-fcgi (gem install fcgi). I’ve done this under fc4 & fc5. …

---

## [RFC2822::EmailAddress](https://www.ruby-forum.com/t/rfc2822-emailaddress/82096)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/rfc2822-emailaddress/82096 "2007-01-17T16:38:08Z")

</div>

I am checking email addresses using RFC2822::EmailAddress address =~ RFC2822::EmailAddress seems to work fine, but I wonder why an email address like : me@somewhere is accepeted… there is no domain is it right ? tf…

---

## [Application error](https://www.ruby-forum.com/t/application-error/82119)

<div class="topic-metadata">

**Author:** [@microtime](https://www.ruby-forum.com/u/microtime)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/application-error/82119 "2007-01-17T16:31:07Z")

</div>

the page display this message…:Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html i have search the group and found this solution : …

---

## [Ruby on Rails Software Engineer Opportunity-Baltimore, MD](https://www.ruby-forum.com/t/ruby-on-rails-software-engineer-opportunity-baltimore-md/82115)

<div class="topic-metadata">

**Author:** [@BLK](https://www.ruby-forum.com/u/BLK)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-software-engineer-opportunity-baltimore-md/82115 "2007-01-17T16:05:58Z")

</div>

I am in the process of recruiting for a firm located in the Baltimore, MD area that are seeking Ruby on Rails Senior Software Engineers. After reviewing your online information, I would love the opportunity to speak w…

---

## [Japanese mailing list](https://www.ruby-forum.com/t/japanese-mailing-list/82111)

<div class="topic-metadata">

**Author:** [@harry](https://www.ruby-forum.com/u/harry)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/japanese-mailing-list/82111 "2007-01-17T15:50:54Z")

</div>

I have posted a few (23 so far) English translations of some subject titles from the Japanese mailing list. I would like to translate some of the threads. But I want to get permission to do so. Take a look if you are …

---

## [Determine arguments passed to a method at runtime](https://www.ruby-forum.com/t/determine-arguments-passed-to-a-method-at-runtime/82103)

<div class="topic-metadata">

**Author:** [@Alfonso](https://www.ruby-forum.com/u/Alfonso)\
**Replies:** 0\
**Last updated:** [January 17, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/determine-arguments-passed-to-a-method-at-runtime/82103 "2007-01-17T13:41:18Z")

</div>

Is that possible? What I want to do is, using RMagick, create a ImageList with the gifs containded in a folder, so the script would first record the names, and then pass them to the constructor of the ImageList. It wo…

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

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