# Ruby

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

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

---

## [Not quite getting it](https://www.ruby-forum.com/t/not-quite-getting-it/137839)

<div class="topic-metadata">

**Author:** [@rogeralsing](https://www.ruby-forum.com/u/rogeralsing)\
**Replies:** 26\
**Last updated:** [May 25, 2008, 8:46am UTC](https://www.ruby-forum.com/t/not-quite-getting-it/137839 "2008-05-25T08:46:01Z")

</div>

Hi, I’m trying to get whats Ruby is all about. I’ve been doing .NET since beta so I’m kind of stuck in the static typed mindset. The parts that I do get: I love metaprogramming, I was able to make a port of my .NET …

---

## [Code Review: Time](https://www.ruby-forum.com/t/code-review-time/138587)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 5:44am UTC](https://www.ruby-forum.com/t/code-review-time/138587 "2008-05-25T05:44:11Z")

</div>

tfpt review “/shelveset:Time;REDMOND\\tomat” Implements missing methods of Time class. Quick fixes hash code calculation for binary data. Tomas

---

## [Code Review: RegexGroupValues](https://www.ruby-forum.com/t/code-review-regexgroupvalues/138586)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 5:18am UTC](https://www.ruby-forum.com/t/code-review-regexgroupvalues/138586 "2008-05-25T05:18:28Z")

</div>

tfpt review “/shelveset:RegexGroupValues;REDMOND\\tomat” Fixes group values - should be nil not an empty string on unsuccessful match. Tomas

---

## [Code Review: RangeFixes](https://www.ruby-forum.com/t/code-review-rangefixes/138584)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 3:54am UTC](https://www.ruby-forum.com/t/code-review-rangefixes/138584 "2008-05-25T03:54:49Z")

</div>

tfpt review “/shelveset:RangeFixes;REDMOND\\tomat” Refactors Array#\[\] and fixes MatchData#\[\] and Strign#to\_i. Tomas

---

## [What is the bes Ruby's book for beginners?](https://www.ruby-forum.com/t/what-is-the-bes-rubys-book-for-beginners/137723)

<div class="topic-metadata">

**Author:** [@rveneroso](https://www.ruby-forum.com/u/rveneroso)\
**Replies:** 19\
**Last updated:** [May 25, 2008, 1:34am UTC](https://www.ruby-forum.com/t/what-is-the-bes-rubys-book-for-beginners/137723 "2008-05-25T01:34:48Z")

</div>

Hi everybody, This is my first message to this forum. I’m interested in learning Ruby and would like to know what book you think I should start with. I’ve worked as a developer for over 17 years and as a Java develop…

---

## [java.lang.NullPointerException at set\_native\_database\_types when using establish\_connection](https://www.ruby-forum.com/t/java-lang-nullpointerexception-at-set-native-database-types-when-using-establish-connection/138581)

<div class="topic-metadata">

**Author:** [@Juan\_PSTarquino](https://www.ruby-forum.com/u/Juan_PSTarquino)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 12:08am UTC](https://www.ruby-forum.com/t/java-lang-nullpointerexception-at-set-native-database-types-when-using-establish-connection/138581 "2008-05-25T00:08:46Z")

</div>

I am sorry I did not put a subject in my previous email. I am getting a very weird error when using ActiveRecord::establish\_connection to establish a connection on the fly to an MS SQL 2005 server database using jdbc…

---

## [Re: IronRuby r112 is out](https://www.ruby-forum.com/t/re-ironruby-r112-is-out/138538)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/re-ironruby-r112-is-out/138538 "2008-05-24T22:47:54Z")

</div>

John, I saw 112 has FileOps implemented so please discard the patch I send in earlier. Let me know if there are any other area you would like me to help with? Thanks. ----- Original Message ---- From: John L. (IRON…

---

## [Levenshtein 0.1.0](https://www.ruby-forum.com/t/levenshtein-0-1-0/138556)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 2\
**Last updated:** [May 24, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/levenshtein-0-1-0/138556 "2008-05-24T19:56:20Z")

</div>

I’ve released the Levenshtein module as a gem. The most expensive part of the algorithm is written in C. But before entering the most expensive part of the algorithm, it tries to optimize as much as possible (in Ruby …

---

## [Code Review: rails-6](https://www.ruby-forum.com/t/code-review-rails-6/138563)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/code-review-rails-6/138563 "2008-05-24T19:31:40Z")

</div>

tfpt review “/shelveset:rails-6;REDMOND\\jflam” Two changes in this shelveset: Implemented Kernel#loop - all specs pass. Fixed implementation of IDictionaryOps#each\* where we incorrectly used foreach() to iterate over…

---

## [Garbage collector](https://www.ruby-forum.com/t/garbage-collector/138557)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/garbage-collector/138557 "2008-05-24T18:46:33Z")

</div>

Does Jruby use a mark and sweep garbage collector like MRI? Or is Jruby’s “insanely better”? Guess I wish ther ewere some benchmarks for it :slight\_smile: Thanks! -R

---

## [\[0\].pack("i4294967296") rescue nil;eval("0.0")](https://www.ruby-forum.com/t/0-pack-i4294967296-rescue-nil-eval-0-0/138551)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/0-pack-i4294967296-rescue-nil-eval-0-0/138551 "2008-05-24T17:11:56Z")

</div>

e$BF1MM$K!"0J2\<$Ge(B warning: Float 0.0 out of range e$B$H$J$k$N$bJQe(B e$B$J$s$8$c$J$$$G$7$g$&$+!#e(B % ./ruby -ve ‘\[0\].pack(“i4294967296”) rescue nil;eval(“0.0”)’ ruby 1.9.0 (2008-05-24 revision 16572) \[i686-linux\] …

---

## [OSX Finder selected files](https://www.ruby-forum.com/t/osx-finder-selected-files/138410)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/osx-finder-selected-files/138410 "2008-05-24T14:48:41Z")

</div>

I’m new to both Ruby and OS X. What I’m aiming for is to rename some files that have been highlighted in Finder. How do I do it? So far I’ve got require ‘rubygems’ require ‘rbosa’ finder = OSA.app(‘Finder’) w = fin…

---

## [Module.===(X,X) is false](https://www.ruby-forum.com/t/module-x-x-is-false/138498)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [May 24, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/module-x-x-is-false/138498 "2008-05-24T13:30:45Z")

</div>

I noticed that: class Foo end Foo === Foo returns false. In particular, I can not do: i = Foo case i when Foo then … end I understand why Module.=== is true when it is, but is there a good reason for it to be …

---

## [BinData (or alternative)](https://www.ruby-forum.com/t/bindata-or-alternative/138543)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/bindata-or-alternative/138543 "2008-05-24T12:08:03Z")

</div>

Is there any documentation out there that shows the full use of this gem (like, for example, how to actually use the “BinData::Choice” class in a non-trivial example)? Alternatively, is there an easier/better-documen…

---

## [ComplexFloat](https://www.ruby-forum.com/t/complexfloat/133994)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 116\
**Last updated:** [May 24, 2008, 11:33am UTC](https://www.ruby-forum.com/t/complexfloat/133994 "2008-05-24T11:33:24Z")

</div>

æ‘ç”°ã§ã™ï¼Ž C99 ã® double \_Complex ã‚’ãƒ©ãƒƒãƒ—ã—ãŸ ComplexFloat ã‚’å®Ÿè£…ã—ã¾ã—ãŸï¼Ž Rev 15910 ã«å¯¾ã™ã‚‹ patch ã‚’æ·»ä»˜ã—ã¾ã™ï¼Ž ã‚µã‚¤ã‚ºãŒãƒ‡ã‚«ã„ã¨ fml ã«æ€’ã‚‰ã‚ŒãŸã®ã§ gzip ã—ã¾ã—ãŸï…

---

## [Ruby observer module](https://www.ruby-forum.com/t/ruby-observer-module/138511)

<div class="topic-metadata">

**Author:** [@S2S2S2](https://www.ruby-forum.com/u/S2S2S2)\
**Replies:** 9\
**Last updated:** [May 24, 2008, 10:50am UTC](https://www.ruby-forum.com/t/ruby-observer-module/138511 "2008-05-24T10:50:37Z")

</div>

Hi, I am reading Design Patterns in Ruby, and was looking at the code of the observer module. On line 184, in notify\_observers, there is a loop on all registered observers: for i in @observer\_peers.dup i.update(\*ar…

---

## [Where can I get Ruby's design architecture details](https://www.ruby-forum.com/t/where-can-i-get-rubys-design-architecture-details/138539)

<div class="topic-metadata">

**Author:** [@Amitraj\_singh\_C](https://www.ruby-forum.com/u/Amitraj_singh_C)\
**Replies:** 4\
**Last updated:** [May 24, 2008, 9:53am UTC](https://www.ruby-forum.com/t/where-can-i-get-rubys-design-architecture-details/138539 "2008-05-24T09:53:46Z")

</div>

Hi all I am new to this forum. Can any one please give me the indication to the links where I can get Ruby’s design architecture details. Also please mention the links which are helpful for ruby developers. Thanks …

---

## [Choosing framework](https://www.ruby-forum.com/t/choosing-framework/138503)

<div class="topic-metadata">

**Author:** [@lamplighter](https://www.ruby-forum.com/u/lamplighter)\
**Replies:** 4\
**Last updated:** [May 24, 2008, 7:37am UTC](https://www.ruby-forum.com/t/choosing-framework/138503 "2008-05-24T07:37:22Z")

</div>

I’m helping a friend who is going to be creating a new web app a hand navigating the technology maze. So far I’ve steered him in the direction of Ruby because it seems that a small team can build a good web app quickl…

---

## [Gps gems](https://www.ruby-forum.com/t/gps-gems/138515)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 7:29am UTC](https://www.ruby-forum.com/t/gps-gems/138515 "2008-05-24T07:29:11Z")

</div>

what’s the deal with the gps gems? gem install gps installs gps-0.0.1 by Nolan D… If you download the gem from http://rubyforge.org/projects/gps then you get gps-0.0.1.5 by Sascha Teske. The licenses are different, s…

---

## [IronRuby / Rails Question](https://www.ruby-forum.com/t/ironruby-rails-question/138161)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 7:22am UTC](https://www.ruby-forum.com/t/ironruby-rails-question/138161 "2008-05-24T07:22:10Z")

</div>

It looks like you’re getting very close to getting rails to run on IronRuby. What is the endgame for this? Is the goal to eventually be able to run a rails app on IIS, so deployment is just as simple as deploying an…

---

## [Got a slightly more ambitious Rails functional test running](https://www.ruby-forum.com/t/got-a-slightly-more-ambitious-rails-functional-test-running/138537)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 6:57am UTC](https://www.ruby-forum.com/t/got-a-slightly-more-ambitious-rails-functional-test-running/138537 "2008-05-24T06:57:37Z")

</div>

Here’s the controller: class SayController \< ApplicationController def hello @name = ‘john’ end end Here’s the view template: Say Hello Hello, \<%= @name%\> Here’s the functional test: require…

---

## [IronRuby r112 is out](https://www.ruby-forum.com/t/ironruby-r112-is-out/138532)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 3:57am UTC](https://www.ruby-forum.com/t/ironruby-r112-is-out/138532 "2008-05-24T03:57:34Z")

</div>

This is the release that we used to run the Rails functional test this afternoon. I had to modify two files in Rails to work around some missing functionality in IronRuby today. I’ve attached these files to this mail. …

---

## [Re: Is it possible from a class to grab the name of the object instance?](https://www.ruby-forum.com/t/re-is-it-possible-from-a-class-to-grab-the-name-of-the-object-instance/138128)

<div class="topic-metadata">

**Author:** [@rubisher](https://www.ruby-forum.com/u/rubisher)\
**Replies:** 4\
**Last updated:** [May 24, 2008, 3:23am UTC](https://www.ruby-forum.com/t/re-is-it-possible-from-a-class-to-grab-the-name-of-the-object-instance/138128 "2008-05-24T03:23:02Z")

</div>

Hello Marcin, self.class.to\_s should work Sorry this return me the class name itself not the instance name? e.g. #!/usr/bin/env ruby class Investment def initialize puts “I’am ALIVE!” iname=self.class.to\_s put…

---

## [Code Review: miscfixes2](https://www.ruby-forum.com/t/code-review-miscfixes2/138528)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 1:19am UTC](https://www.ruby-forum.com/t/code-review-miscfixes2/138528 "2008-05-24T01:19:03Z")

</div>

tfpt review /shelveset:miscfixes2;REDMOND\\tomat Adds Signal class, Kernel#trap, Process#kill stubs. The functionality is not implemented. Fixes attr accessors aliasing. Fixes sockets to deal with 0.0.0.0 IP address. …

---

## [Signal.trap](https://www.ruby-forum.com/t/signal-trap/137932)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 12\
**Last updated:** [May 24, 2008, 1:09am UTC](https://www.ruby-forum.com/t/signal-trap/137932 "2008-05-24T01:09:40Z")

</div>

After various workarounds, I can now run the rails app to the point that it gets through all of the gems infrastructure and starts running actual rails specific code. Unfortunately the first thing that it calls is Si…

---

## [Code Review: CatchThrow](https://www.ruby-forum.com/t/code-review-catchthrow/138517)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/code-review-catchthrow/138517 "2008-05-23T23:45:15Z")

</div>

tfpt review /shelveset:CatchThrow;REDMOND\\tomat Implements Kernel#catch and Kernel#throw. Tomas

---

## [Is it possible from a class to grab the name of the object instance?](https://www.ruby-forum.com/t/is-it-possible-from-a-class-to-grab-the-name-of-the-object-instance/137948)

<div class="topic-metadata">

**Author:** [@rubisher](https://www.ruby-forum.com/u/rubisher)\
**Replies:** 4\
**Last updated:** [May 23, 2008, 11:04pm UTC](https://www.ruby-forum.com/t/is-it-possible-from-a-class-to-grab-the-name-of-the-object-instance/137948 "2008-05-23T23:04:10Z")

</div>

Hello all rubyist, I fall in love of ruby some years ago when I reach to re-write in a couple of days with ruby only a scripts I spent some weeks to write with classical unix tools (awk, sed, grep, …) and the new stu…

---

## [ERROR in ruby gem](https://www.ruby-forum.com/t/error-in-ruby-gem/138442)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/error-in-ruby-gem/138442 "2008-05-23T22:38:49Z")

</div>

I type “gem --help” in the command, there appear the “Bad Command”. Now i cannot install other gem into my computer, any1 can help me?

---

## [Scheduled jobs?](https://www.ruby-forum.com/t/scheduled-jobs/138345)

<div class="topic-metadata">

**Author:** [@Darcy\_S](https://www.ruby-forum.com/u/Darcy_S)\
**Replies:** 6\
**Last updated:** [May 23, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/scheduled-jobs/138345 "2008-05-23T21:27:40Z")

</div>

What’s the recommended approach for running scheduled/periodic jobs in JRuby? I was looking at RailsPeriodicalTaskServlet in Goldspike but since Warbler seems to be going the way of JRuby-Rack I was wondering if anyo…

---

## [I lost /bin](https://www.ruby-forum.com/t/i-lost-bin/138354)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 7\
**Last updated:** [May 23, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/i-lost-bin/138354 "2008-05-23T20:18:10Z")

</div>

I was compiling the ‘fxruby’ gem… I was doing everything ‘sudo’, and I was messing with its Makefile (because it didn’t compile cleanly), ANYWAY, the ‘fxruby’ gem is now installed succesfully. The bad news is that s…

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

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