# Ruby

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

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

---

## [A tip about using Hash - and a documentation request](https://www.ruby-forum.com/t/a-tip-about-using-hash-and-a-documentation-request/82898)

<div class="topic-metadata">

**Author:** [@pervel](https://www.ruby-forum.com/u/pervel)\
**Replies:** 5\
**Last updated:** [January 22, 2007, 11:09am UTC](https://www.ruby-forum.com/t/a-tip-about-using-hash-and-a-documentation-request/82898 "2007-01-22T11:09:44Z")

</div>

I just spent several hours of investigating a problem that I had when using instances of my own class as keys in a Hash. If you, like me, have experience with this from a language like Java, you know that you have to …

---

## [Learning Japanese](https://www.ruby-forum.com/t/learning-japanese/82727)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 11\
**Last updated:** [January 22, 2007, 8:59am UTC](https://www.ruby-forum.com/t/learning-japanese/82727 "2007-01-22T08:59:11Z")

</div>

Thanks to Ruby I’ve learned a lot recently about programming languages and it has widen my universe of things I want to learn. These things include Japanese. I’ve compiled a set of URLs to sites of Japanese tutorials. …

---

## [Ruby-lang down?](https://www.ruby-forum.com/t/ruby-lang-down/82902)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 2\
**Last updated:** [January 22, 2007, 8:22am UTC](https://www.ruby-forum.com/t/ruby-lang-down/82902 "2007-01-22T08:22:06Z")

</div>

Can anyone else out there in interweb land confirm ruby-lang is down?

---

## [Tricky: converting path into a Hash](https://www.ruby-forum.com/t/tricky-converting-path-into-a-hash/82880)

<div class="topic-metadata">

**Author:** [@Robert\_MannI](https://www.ruby-forum.com/u/Robert_MannI)\
**Replies:** 12\
**Last updated:** [January 22, 2007, 5:10am UTC](https://www.ruby-forum.com/t/tricky-converting-path-into-a-hash/82880 "2007-01-22T05:10:51Z")

</div>

Hello! I am wondering if the mighty ruby crowd has a brilliant idea for a tricky problem I am solving. I need to store a path as a tree in a hash. Given: a/b/c I want the Hash: { ‘a’ =\> { ‘b’ =\> { ‘c’ =\> { } } } …

---

## [Ograph 0.0.1 Released](https://www.ruby-forum.com/t/ograph-0-0-1-released/82787)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 1\
**Last updated:** [January 22, 2007, 4:21am UTC](https://www.ruby-forum.com/t/ograph-0-0-1-released/82787 "2007-01-22T04:21:49Z")

</div>

ograph version 0.0.1 has been released! http://seattlerb.rubyforge.org/ ObjectGraph will output Graphviz dot files of your objects in memory. It will ferret out your instance variables and enumerate over your enumera…

---

## [Automatically Determining "Requires" and "Provides" informat](https://www.ruby-forum.com/t/automatically-determining-requires-and-provides-informat/82326)

<div class="topic-metadata">

**Author:** [@Scott\_Parkerson](https://www.ruby-forum.com/u/Scott_Parkerson)\
**Replies:** 3\
**Last updated:** [January 22, 2007, 4:11am UTC](https://www.ruby-forum.com/t/automatically-determining-requires-and-provides-informat/82326 "2007-01-22T04:11:47Z")

</div>

I’m looking to write a script that examines one or more scripts written in Ruby and programatically determine the following: What does each script provide? Specifically, what classes are defined, whether they are in…

---

## [Ruby to java or java to ruby converter](https://www.ruby-forum.com/t/ruby-to-java-or-java-to-ruby-converter/82847)

<div class="topic-metadata">

**Author:** [@vinoddas](https://www.ruby-forum.com/u/vinoddas)\
**Replies:** 7\
**Last updated:** [January 22, 2007, 3:18am UTC](https://www.ruby-forum.com/t/ruby-to-java-or-java-to-ruby-converter/82847 "2007-01-22T03:18:41Z")

</div>

hi, am a newbie to ruby and was wondering whether there is any ruby2java or java2ruby converter? we are planning to compare both the languages based on some benchmarks…so thought a converter would come in handy. any …

---

## [Method Auto Completion (#110)](https://www.ruby-forum.com/t/method-auto-completion-110/82358)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 6\
**Last updated:** [January 22, 2007, 2:50am UTC](https://www.ruby-forum.com/t/method-auto-completion-110/82358 "2007-01-22T02:50:39Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Another wierd error whilst installing gems?](https://www.ruby-forum.com/t/another-wierd-error-whilst-installing-gems/82876)

<div class="topic-metadata">

**Author:** [@libsfan01](https://www.ruby-forum.com/u/libsfan01)\
**Replies:** 1\
**Last updated:** [January 22, 2007, 2:31am UTC](https://www.ruby-forum.com/t/another-wierd-error-whilst-installing-gems/82876 "2007-01-22T02:31:37Z")

</div>

what could cause this error in terminal when updating gems? Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem … (Errno::EACCES) Permission denied - /usr/lib/ruby/gems/1.8/cache…

---

## [Ruby extension tutorial](https://www.ruby-forum.com/t/ruby-extension-tutorial/82865)

<div class="topic-metadata">

**Author:** [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Replies:** 1\
**Last updated:** [January 22, 2007, 1:35am UTC](https://www.ruby-forum.com/t/ruby-extension-tutorial/82865 "2007-01-22T01:35:32Z")

</div>

Hi, I just finished a tutorial about writing simple ruby extensions. I was hoping you guys could give me some feedback on what you think about it. If you find any mistakes (code, spelling, grammar and explanation), I …

---

## [Ruby-GetText-Package-1.9.0](https://www.ruby-forum.com/t/ruby-gettext-package-1-9-0/82863)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 1\
**Last updated:** [January 22, 2007, 1:00am UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-9-0/82863 "2007-01-22T01:00:06Z")

</div>

Hi, Ruby-GetText-Package-1.9.0 is now available. Changes Support Catalan(ca), Esperanto(eo) Update translations: zh\_CN, zh\_TW, cs, nl, en, de, el, es, ja, ko, pt\_BR, ru. Support Ruby on Rails-1.2.1. Code cleanup and…

---

## [Serial Port Control with Ruby win32serial-0.5](https://www.ruby-forum.com/t/serial-port-control-with-ruby-win32serial-0-5/82800)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 22, 2007, 12:50am UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby-win32serial-0-5/82800 "2007-01-22T00:50:29Z")

</div>

I have downloaded win32serial-0.5 and am trying to install in a Windows XP machine. The readme file list the following steps: \[How to install\] unzip win32serial-x.x.zip ruby extconf.rb make (or nmake) make install …

---

## [Strange error msg when i run "ruby script/server "in my new](https://www.ruby-forum.com/t/strange-error-msg-when-i-run-ruby-script-server-in-my-new/82862)

<div class="topic-metadata">

**Author:** [@libsfan01](https://www.ruby-forum.com/u/libsfan01)\
**Replies:** 0\
**Last updated:** [January 22, 2007, 12:26am UTC](https://www.ruby-forum.com/t/strange-error-msg-when-i-run-ruby-script-server-in-my-new/82862 "2007-01-22T00:26:25Z")

</div>

i just installed ruby and rails but i get this error msg when i run “ruby script/server” in my new site: Cannot find gem for Rails ~\>1.2.1.0: Install the missing gem with ‘gem install -v=1.2.1 rails’, or change envir…

---

## [Ruby Cookbook - problem recipe](https://www.ruby-forum.com/t/ruby-cookbook-problem-recipe/82852)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 0\
**Last updated:** [January 21, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/ruby-cookbook-problem-recipe/82852 "2007-01-21T22:16:07Z")

</div>

Skipping through the Ruby Cookbook (Carlson & Richardson) I tried out the rubyTk stopwatch program, which worked fine, then tried the GTK version. I typed it in more or less verbatim but could not run it because the …

---

## [Ruby coding guidelines?](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813)

<div class="topic-metadata">

**Author:** [@Stefano\_Z](https://www.ruby-forum.com/u/Stefano_Z)\
**Replies:** 5\
**Last updated:** [January 21, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/ruby-coding-guidelines/82813 "2007-01-21T22:07:04Z")

</div>

Is there in the Ruby community anything like “ruby coding convention”? Google returns two interesting links: http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention The Unofficial Ruby Usage G…

---

## [Anybody here using ActiveRDF?](https://www.ruby-forum.com/t/anybody-here-using-activerdf/82820)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 3\
**Last updated:** [January 21, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/anybody-here-using-activerdf/82820 "2007-01-21T21:46:59Z")

</div>

hi you all, I’m starting working with ActiveRDF and I have very simple newbie questions. Is anybody here using it to ask my questions before I send them to the ActiveRDF mailing list? Thanks

---

## [Getting the version number for rubygems?](https://www.ruby-forum.com/t/getting-the-version-number-for-rubygems/82801)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 21\
**Last updated:** [January 21, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/getting-the-version-number-for-rubygems/82801 "2007-01-21T21:31:56Z")

</div>

Hi, In ruport I have a tool that generates a bunch of boilerplate code for folks, and in it, I use require\_gem to lock the files down to a specific version of Ruport. I’d like to make this friendly to RubyGems 0.9.1 …

---

## [What am i doing wrong?](https://www.ruby-forum.com/t/what-am-i-doing-wrong/82808)

<div class="topic-metadata">

**Author:** [@noob2everything](https://www.ruby-forum.com/u/noob2everything)\
**Replies:** 8\
**Last updated:** [January 21, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/what-am-i-doing-wrong/82808 "2007-01-21T21:27:55Z")

</div>

I realize this is an extremely noobish question, but i’m stuck and can’t seem to figure it out (aside from some very simple HTML, i know nothing about programming). I’m trying to follow Chris P. guide here: http://pi…

---

## [Fwd: Please Forward: Rubyquiz Submission (CORRECTED)](https://www.ruby-forum.com/t/fwd-please-forward-rubyquiz-submission-corrected/229079)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 21, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-rubyquiz-submission-corrected/229079 "2007-01-21T21:23:55Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229120)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 21, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229120 "2007-01-21T21:22:54Z")

</div>

Begin forwarded message:

---

## [Dbus bindings](https://www.ruby-forum.com/t/dbus-bindings/99419)

<div class="topic-metadata">

**Author:** [@Eyal\_O](https://www.ruby-forum.com/u/Eyal_O)\
**Replies:** 2\
**Last updated:** [January 21, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/dbus-bindings/99419 "2007-01-21T21:16:14Z")

</div>

Hi, I’d like to use dbus from ruby, I found dbus-ruby \[1\] but it seems old (01/2005) and deserted. It does not compile on my Ubuntu system; I think because the dbus api changed significantly and dbus-ruby is no longer …

---

## [Gsub and backslashes](https://www.ruby-forum.com/t/gsub-and-backslashes/82828)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 4\
**Last updated:** [January 21, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/gsub-and-backslashes/82828 "2007-01-21T21:06:51Z")

</div>

Say I want to replace all occurrences of \\ in a string with \\: test = “a string with \\ a backslash” puts test.gsub(/\\/, “\\\\”) #no worky =\> a string with \\ a backslash puts test.gsub(/\\/, “\\\\\\”) #why does this work? …

---

## [Inspect...and modify a proc object?](https://www.ruby-forum.com/t/inspect-and-modify-a-proc-object/81971)

<div class="topic-metadata">

**Author:** [@littleears](https://www.ruby-forum.com/u/littleears)\
**Replies:** 5\
**Last updated:** [January 21, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/inspect-and-modify-a-proc-object/81971 "2007-01-21T20:54:47Z")

</div>

I’m trying to understand proc objects. Can you inspect them? Is there anyway to walk through the original context? Is there anyway to identify the objects or classes involved, and what method is being invoked, with wh…

---

## [YAML::Syck fault tolerance](https://www.ruby-forum.com/t/yaml-syck-fault-tolerance/82724)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 2\
**Last updated:** [January 21, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/yaml-syck-fault-tolerance/82724 "2007-01-21T17:46:20Z")

</div>

Ruboids: I need to read a block of YAML and recover gracefully if it fails. The current loader apparently throws away all the representation it loaded at error time. Is there some way to get the representation loade…

---

## [IP Routing table - RTNETLINK - sockets](https://www.ruby-forum.com/t/ip-routing-table-rtnetlink-sockets/82827)

<div class="topic-metadata">

**Author:** [@bobk](https://www.ruby-forum.com/u/bobk)\
**Replies:** 0\
**Last updated:** [January 21, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/ip-routing-table-rtnetlink-sockets/82827 "2007-01-21T16:30:37Z")

</div>

I wish to manipulate the routing table in Linux without having to make system calls out to ‘route’. I know that in C this can be done by using a socket and RTNETLINK. How can I accomplish this in Ruby? This is for an …

---

## [Ruby installation winders PATH issue](https://www.ruby-forum.com/t/ruby-installation-winders-path-issue/82773)

<div class="topic-metadata">

**Author:** [@beelzebozo](https://www.ruby-forum.com/u/beelzebozo)\
**Replies:** 2\
**Last updated:** [January 21, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/ruby-installation-winders-path-issue/82773 "2007-01-21T14:51:00Z")

</div>

Hello I’ve installed ruby from the one click installer on a windows xp home ed laptop. Everything works ok if I call ruby directly c:\\ruby\\bin\\ruby. However ruby is not making it to my path. This is probably more of a…

---

## [Newbie quesiton about inheritance single table](https://www.ruby-forum.com/t/newbie-quesiton-about-inheritance-single-table/82822)

<div class="topic-metadata">

**Author:** [@tobias](https://www.ruby-forum.com/u/tobias)\
**Replies:** 1\
**Last updated:** [January 21, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/newbie-quesiton-about-inheritance-single-table/82822 "2007-01-21T14:27:58Z")

</div>

Hello ng, person.rb: class Person \< ActiveRecord::Base def initialize(mytype) @type=mytype.to\_s end def self.find\_employee find(:all, :conditions =\> “type=‘Employee’’”) end end class Employee \< Person def ini…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/82817)

<div class="topic-metadata">

**Author:** [@w\_wg](https://www.ruby-forum.com/u/w_wg)\
**Replies:** 0\
**Last updated:** [January 21, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/no-subject/82817 "2007-01-21T12:54:52Z")

</div>

unsubscribe

---

## [Dhaka-2.0.0](https://www.ruby-forum.com/t/dhaka-2-0-0/82812)

<div class="topic-metadata">

**Author:** [@Mushfeq\_K](https://www.ruby-forum.com/u/Mushfeq_K)\
**Replies:** 1\
**Last updated:** [January 21, 2007, 10:06am UTC](https://www.ruby-forum.com/t/dhaka-2-0-0/82812 "2007-01-21T10:06:33Z")

</div>

There’s a new tutorial on creating a small interpreter at http://dhaka.rubyforge.org/chittagong.html (note: this won’t make any sense if you don’t read the other, easier, examples). This has now become part of the tes…

---

## [Eclipse IDE](https://www.ruby-forum.com/t/eclipse-ide/81498)

<div class="topic-metadata">

**Author:** [@tnjnew](https://www.ruby-forum.com/u/tnjnew)\
**Replies:** 5\
**Last updated:** [January 21, 2007, 7:50am UTC](https://www.ruby-forum.com/t/eclipse-ide/81498 "2007-01-21T07:50:24Z")

</div>

hi, How i work ruby in eclipse IDE. Is they provide any api for ruby… Thanks & Regards, kumar

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

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