# Ruby

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

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

---

## [\[Bug #3123\] uninitialized constant Object::C (NameError)](https://www.ruby-forum.com/t/bug-3123-uninitialized-constant-object-c-nameerror/186673)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 5\
**Last updated:** [June 12, 2010, 7:16am UTC](https://www.ruby-forum.com/t/bug-3123-uninitialized-constant-object-c-nameerror/186673 "2010-06-12T07:16:23Z")

</div>

Bug #3123: uninitialized constant Object::C (NameError) http://redmine.ruby-lang.org/issues/show/3123 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version…

---

## [Looking for ORM for 'legacy' database](https://www.ruby-forum.com/t/looking-for-orm-for-legacy-database/189641)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 27\
**Last updated:** [June 12, 2010, 3:59am UTC](https://www.ruby-forum.com/t/looking-for-orm-for-legacy-database/189641 "2010-06-12T03:59:45Z")

</div>

I feel I should start with some pre-emptive apologies. I used to subscribe to this list, but haven’t been reading it for a year or so, so I may have missed the answer to my question. (I did try finding it in the list …

---

## [Mechanize output:strange number](https://www.ruby-forum.com/t/mechanize-output-strange-number/189991)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 5\
**Last updated:** [June 12, 2010, 3:20am UTC](https://www.ruby-forum.com/t/mechanize-output-strange-number/189991 "2010-06-12T03:20:32Z")

</div>

require ‘mechanize’ agent = WWW::Mechanize.new page = agent.get(‘http://hd.openv.com/tv\_play-hddoc\_20090703\_7064487.html’) i get the following output: #\<WWW::Mechanize::Page::Link “\\347\\210\\261\\345\\215\\241\\346\\261\\…

---

## [Gem mechanize local file](https://www.ruby-forum.com/t/gem-mechanize-local-file/190020)

<div class="topic-metadata">

**Author:** [@razta](https://www.ruby-forum.com/u/razta)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 1:45am UTC](https://www.ruby-forum.com/t/gem-mechanize-local-file/190020 "2010-06-12T01:45:48Z")

</div>

Hi, I am looking at using the mechanize gem to parse HTML. The HTML has already been downloaded by the spider gem. What I want to do is load the HTML response from the spider into mechanize. I’ve looked through mecha…

---

## [Split an array of object by first letter](https://www.ruby-forum.com/t/split-an-array-of-object-by-first-letter/189984)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 5\
**Last updated:** [June 12, 2010, 12:36am UTC](https://www.ruby-forum.com/t/split-an-array-of-object-by-first-letter/189984 "2010-06-12T00:36:40Z")

</div>

Hi, I have an array of brands and I need to split this array by brand name first letter. How can I do that? Greg

---

## [Slower with 1.9 client](https://www.ruby-forum.com/t/slower-with-1-9-client/190049)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [June 12, 2010, 12:28am UTC](https://www.ruby-forum.com/t/slower-with-1-9-client/190049 "2010-06-12T00:28:50Z")

</div>

I noticed this code: for i in 1…10000000 do; end for me with 1.8 client takes 1.7s, and 1.9 client takes 2.0s Is this expected? Reportable to JIRA? Thanks. -rp

---

## [Unicorn 0.990.0 - inching towards 1.0](https://www.ruby-forum.com/t/unicorn-0-990-0-inching-towards-1-0/189819)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 1\
**Last updated:** [June 11, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/unicorn-0-990-0-inching-towards-1-0/189819 "2010-06-11T22:38:26Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

## [Comparing objects](https://www.ruby-forum.com/t/comparing-objects/189616)

<div class="topic-metadata">

**Author:** [@andersonleite](https://www.ruby-forum.com/u/andersonleite)\
**Replies:** 47\
**Last updated:** [June 11, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/comparing-objects/189616 "2010-06-11T21:56:52Z")

</div>

How can I compare two objects and get true if some of his atributes are equals ? I need to compare two arrays of users, and get and third array just with the matches. I found the “&” method that work for Fixnuns and S…

---

## [Business hours processing](https://www.ruby-forum.com/t/business-hours-processing/190032)

<div class="topic-metadata">

**Author:** [@slawosz](https://www.ruby-forum.com/u/slawosz)\
**Replies:** 4\
**Last updated:** [June 11, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/business-hours-processing/190032 "2010-06-11T20:57:44Z")

</div>

Hi, I need to determine how many business hours left to some Time. Do you know any library with this feature? SÅ‚awosz

---

## [Retrieve the name of current running method](https://www.ruby-forum.com/t/retrieve-the-name-of-current-running-method/190028)

<div class="topic-metadata">

**Author:** [@walle](https://www.ruby-forum.com/u/walle)\
**Replies:** 2\
**Last updated:** [June 11, 2010, 6:17pm UTC](https://www.ruby-forum.com/t/retrieve-the-name-of-current-running-method/190028 "2010-06-11T18:17:20Z")

</div>

Hey, short question. Is it possible you retrieve the name of the current running method? //Walle

---

## [Logger raises Bad File Descriptor error with JRuby 1.5.0](https://www.ruby-forum.com/t/logger-raises-bad-file-descriptor-error-with-jruby-1-5-0/188097)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 8\
**Last updated:** [June 11, 2010, 6:04pm UTC](https://www.ruby-forum.com/t/logger-raises-bad-file-descriptor-error-with-jruby-1-5-0/188097 "2010-06-11T18:04:27Z")

</div>

Hi list, I’ve just been trying to give the latest release (RC3) a spin, but I’ve been getting this error: Exception in thread “4285567@qtp0-0” /home/nick/bin/…/lib/jruby/lib/ruby/1.8/logger.rb:504:in \`write’: Bad …

---

## [EGM96 geoid calculator](https://www.ruby-forum.com/t/egm96-geoid-calculator/190027)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 5:56pm UTC](https://www.ruby-forum.com/t/egm96-geoid-calculator/190027 "2010-06-11T17:56:50Z")

</div>

Greetings, Is there an EGM96 Geoid calculator out there in Ruby? See this for example: Does GeoRuby do this, and I just couldn’t find the right method name? Regards, Dan

---

## [Why private #binding?](https://www.ruby-forum.com/t/why-private-binding/189936)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 12\
**Last updated:** [June 11, 2010, 4:17pm UTC](https://www.ruby-forum.com/t/why-private-binding/189936 "2010-06-11T16:17:54Z")

</div>

Why is #binding a private method? I end up doing a lot of this: class Scope def binding binding end end In order to setup a scope for ERB evaluation, among other uses.

---

## [\[Bug #3384\] ext/openssl: avoid to use cast](https://www.ruby-forum.com/t/bug-3384-ext-openssl-avoid-to-use-cast/189590)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 5\
**Last updated:** [June 11, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/bug-3384-ext-openssl-avoid-to-use-cast/189590 "2010-06-11T16:05:00Z")

</div>

Bug #3384: ext/openssl: avoid to use cast http://redmine.ruby-lang.org/issues/show/3384 e$B5/I\<\<Te(B: Takahiro K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) \[i486-…

---

## [Creating a gem structure for command line program](https://www.ruby-forum.com/t/creating-a-gem-structure-for-command-line-program/190004)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 7\
**Last updated:** [June 11, 2010, 12:48pm UTC](https://www.ruby-forum.com/t/creating-a-gem-structure-for-command-line-program/190004 "2010-06-11T12:48:13Z")

</div>

I’ve written a command line program. Would like to distribute it as a gem. I’ve run jeweler and generated a structure. However, I am not sure how to go about it. My project consists of one main file (lets call it ma…

---

## [Rest-graph 1.3.0 - A super simple Facebook Open Graph API client](https://www.ruby-forum.com/t/rest-graph-1-3-0-a-super-simple-facebook-open-graph-api-client/190016)

<div class="topic-metadata">

**Author:** [@Lin\_Jen-Shin](https://www.ruby-forum.com/u/Lin_Jen-Shin)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/rest-graph-1-3-0-a-super-simple-facebook-open-graph-api-client/190016 "2010-06-11T12:37:05Z")

</div>

= rest-graph 1.3.0 by Cardinal Blue ( http://cardinalblue.com ) == LINKS: GitHub - cardinalblue/rest-graph: A lightweight Facebook Graph API client rest-graph | RubyGems.org | your community gem host http://rdoc.info…

---

## [Case when and class](https://www.ruby-forum.com/t/case-when-and-class/190002)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 7\
**Last updated:** [June 11, 2010, 10:59am UTC](https://www.ruby-forum.com/t/case-when-and-class/190002 "2010-06-11T10:59:55Z")

</div>

I’ve found in case / when if the case is about a class : case my\_var.class when String then puts my\_var when Array then my\_var.each {|v| puts v} end doesn’t work i do have to use : case my\_var.class.to\_s when ‘St…

---

## [Rails generating foreign key of different size](https://www.ruby-forum.com/t/rails-generating-foreign-key-of-different-size/190010)

<div class="topic-metadata">

**Author:** [@MichSSSSle\_Garoche](https://www.ruby-forum.com/u/MichSSSSle_Garoche)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 10:16am UTC](https://www.ruby-forum.com/t/rails-generating-foreign-key-of-different-size/190010 "2010-06-11T10:16:35Z")

</div>

Hello, Using jruby 1.5.1, rails 2.3.8, activerecord-jdbc-adapter-0.9.7-java, jdbc-mysq-5.0.4 on Mac OS X Leopard, I’ve issued the following commands to create a basic rails application with an association: jruby -S r…

---

## [Mongrel is getting Terminate](https://www.ruby-forum.com/t/mongrel-is-getting-terminate/190005)

<div class="topic-metadata">

**Author:** [@sumantacaptain](https://www.ruby-forum.com/u/sumantacaptain)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 9:25am UTC](https://www.ruby-forum.com/t/mongrel-is-getting-terminate/190005 "2010-06-11T09:25:41Z")

</div>

Dear All, I am facing a problem - when I am hitting http://localhost:3000/login\_c to enter to our system, webrick/mongrel quiting from command prompt. “” C:\\Obs\>mongrel\_rails start \*\* Starting Mongrel listening at 0…

---

## [Unicorn 0.991.0 - startup improvements](https://www.ruby-forum.com/t/unicorn-0-991-0-startup-improvements/189994)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 4:31am UTC](https://www.ruby-forum.com/t/unicorn-0-991-0-startup-improvements/189994 "2010-06-11T04:31:53Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

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

<div class="topic-metadata">

**Author:** [@lalawawa](https://www.ruby-forum.com/u/lalawawa)\
**Replies:** 5\
**Last updated:** [June 11, 2010, 2:47am UTC](https://www.ruby-forum.com/t/newbie-question/189868 "2010-06-11T02:47:43Z")

</div>

In perl, one is able to sort of ‘declare’ variables by mentioning them in ‘my’ statements. Then, if you say ‘use strict;’, no variables that weren’t previously thus ‘declared’ are allowed. This is useful in that it …

---

## [Numbering array values \[multidimentional?!\]](https://www.ruby-forum.com/t/numbering-array-values-multidimentional/189988)

<div class="topic-metadata">

**Author:** [@razta](https://www.ruby-forum.com/u/razta)\
**Replies:** 2\
**Last updated:** [June 11, 2010, 1:14am UTC](https://www.ruby-forum.com/t/numbering-array-values-multidimentional/189988 "2010-06-11T01:14:09Z")

</div>

Hi, I’m very new to Ruby (2 days), I’m mostly used to Python/PHP/C++. What would be ideal would be a multidimensional array however from what I have read Ruby does not support multidimensional arrays. I want to be ab…

---

## [How to Display ./configure options from compiled Ruby?](https://www.ruby-forum.com/t/how-to-display-configure-options-from-compiled-ruby/189982)

<div class="topic-metadata">

**Author:** [@kscott](https://www.ruby-forum.com/u/kscott)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 11:09pm UTC](https://www.ruby-forum.com/t/how-to-display-configure-options-from-compiled-ruby/189982 "2010-06-10T23:09:10Z")

</div>

Hi, With perl you can run “perl -V” to see the configuration options. Is there an equivalent for Ruby? I’d like to build a Ruby binary using the same options as one that I have already. Thanks, Ken

---

## [Speeding up "require 'rubygems'"](https://www.ruby-forum.com/t/speeding-up-require-rubygems/184143)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [June 10, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/speeding-up-require-rubygems/184143 "2010-06-10T19:18:42Z")

</div>

Thought I’d post here in case others have any feedback… “loading rubygems takes quite awhile on jruby” So gents, what can we do? Seems that yyparse takes a small chunk of time (benchmarking a file that just does lo…

---

## [Question about testing self.inherited](https://www.ruby-forum.com/t/question-about-testing-self-inherited/189975)

<div class="topic-metadata">

**Author:** [@JesSSSSs\_Gabriel\_y\_S](https://www.ruby-forum.com/u/JesSSSSs_Gabriel_y_S)\
**Replies:** 3\
**Last updated:** [June 10, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/question-about-testing-self-inherited/189975 "2010-06-10T19:18:15Z")

</div>

Hi, I have a class that keeps track of its subclasses using the self.inherited hook: module GameFramework class Game attr\_accessor :event\_handler @available\_games = \[\] class \<\< self attr\_reader :available\_games …

---

## [Rdoc-data 2.5.1 Released](https://www.ruby-forum.com/t/rdoc-data-2-5-1-released/186158)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 7:13pm UTC](https://www.ruby-forum.com/t/rdoc-data-2-5-1-released/186158 "2010-06-10T19:13:19Z")

</div>

rdoc-data contains core ri data for use with RDoc 2.5 To install run gem install rdoc-data followed by rdoc-data. This will allow you to look up RDoc for core and standard library files like Kernel, Array or Date. r…

---

## [RVM Snow Leopard](https://www.ruby-forum.com/t/rvm-snow-leopard/189974)

<div class="topic-metadata">

**Author:** [@kfmfe04](https://www.ruby-forum.com/u/kfmfe04)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 7:08pm UTC](https://www.ruby-forum.com/t/rvm-snow-leopard/189974 "2010-06-10T19:08:53Z")

</div>

I just put in a new disk and I would like to install rvm in /usr/local/rvm. On my old disk I was able to do this by installing ruby 1.9.2dev and then installing the rvm gem. The install script in rvm want to put it i…

---

## [Slower than 1.9.2 report](https://www.ruby-forum.com/t/slower-than-1-9-2-report/189721)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [June 10, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/slower-than-1-9-2-report/189721 "2010-06-10T18:19:29Z")

</div>

Well, since you suggested reporting when jruby was slower than 1.9.2… http://betterlogic.com/roger/?p=2866 lists how it is basically slower for rails. At least the server version, anyway. So there’s your report. NB…

---

## [Photos](https://www.ruby-forum.com/t/photos/189921)

<div class="topic-metadata">

**Author:** [@teknopartz](https://www.ruby-forum.com/u/teknopartz)\
**Replies:** 3\
**Last updated:** [June 10, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/photos/189921 "2010-06-10T17:10:44Z")

</div>

Another thing… I have an existing folder full of photos that need to be shared by numerous users (all sperate credentials). How can I give 1000’s of accounts the ability to browse and use the same images? Jeremy

---

## [\[Job\] On-site Position in Washington, DC](https://www.ruby-forum.com/t/job-on-site-position-in-washington-dc/189959)

<div class="topic-metadata">

**Author:** [@venka10](https://www.ruby-forum.com/u/venka10)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/job-on-site-position-in-washington-dc/189959 "2010-06-10T16:58:53Z")

</div>

Software Engineer The incumbent Software Engineer (Intermediate) will perform technical analysis, design, and development of Ruby on Rail applications. He or she will work closely with a team of developers. Specific j…

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

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