# Ruby

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

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

---

## [Problems with finding tk](https://www.ruby-forum.com/t/problems-with-finding-tk/120442)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/problems-with-finding-tk/120442 "2007-11-16T23:49:13Z")

</div>

Ruby still doesn’t recognize tk. A helpful person suggested that I install Advance Tcl, which I did. But still no recognition. I looked in /usr/lib/ruby /usr/local/lib/ruby for any trace of tk and found none. Lat…

---

## [Re: Alternative Ruby grammar ( & Treetop)](https://www.ruby-forum.com/t/re-alternative-ruby-grammar-treetop/120441)

<div class="topic-metadata">

**Author:** [@philthompson](https://www.ruby-forum.com/u/philthompson)\
**Replies:** 0\
**Last updated:** [November 16, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/re-alternative-ruby-grammar-treetop/120441 "2007-11-16T23:16:04Z")

</div>

On 11/16/07, Ryan D. removed\_email\_address@domain.invalid wrote: there is no complete ruby parser based on antlr yet that I know of. treetop is not a ruby parser, it is a ruby parser generator (like antlr). I just …

---

## [OpenStruct, OpenObject both seg fault, this does not, anything wrong?](https://www.ruby-forum.com/t/openstruct-openobject-both-seg-fault-this-does-not-anything-wrong/120431)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/openstruct-openobject-both-seg-fault-this-does-not-anything-wrong/120431 "2007-11-16T22:23:24Z")

</div>

Ok, I am using 1.8.6 p110 with rails 1.2.5 and I use alot of OpenStructs. Well, it seg faults pretty regularly: 0.upto(100) {|n| member.driver\_process\_member} /usr/lib/ruby/1.8/ostruct.rb:75: \[BUG\] Segmentation fau…

---

## [Cmd line: gem install rails -r -y](https://www.ruby-forum.com/t/cmd-line-gem-install-rails-r-y/120426)

<div class="topic-metadata">

**Author:** [@forever](https://www.ruby-forum.com/u/forever)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/cmd-line-gem-install-rails-r-y/120426 "2007-11-16T21:45:21Z")

</div>

Hi I have just started reading Ruby On Rails For Dummies and once I installed ruby184-20.exe I was told to enter the following cmd line: gem install rails -r -y There is a screenshot in the book of how the installatio…

---

## [Google translate ruby client api 0.1](https://www.ruby-forum.com/t/google-translate-ruby-client-api-0-1/120351)

<div class="topic-metadata">

**Author:** [@sishen](https://www.ruby-forum.com/u/sishen)\
**Replies:** 7\
**Last updated:** [November 16, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/google-translate-ruby-client-api-0-1/120351 "2007-11-16T21:04:20Z")

</div>

Hi, guys. I wrote a ruby client api fro google translate service, then i can get the answer directly from the terminal, instead of the browser. It’s really convenient for me. Enjoy it, :slight\_smile: Install sudo …

---

## [What is the correct way to check for existence of virtual class?](https://www.ruby-forum.com/t/what-is-the-correct-way-to-check-for-existence-of-virtual-class/120394)

<div class="topic-metadata">

**Author:** [@Voroztsov\_A](https://www.ruby-forum.com/u/Voroztsov_A)\
**Replies:** 3\
**Last updated:** [November 16, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/what-is-the-correct-way-to-check-for-existence-of-virtual-class/120394 "2007-11-16T20:14:34Z")

</div>

One can write: class Object def singleton\_class class \<\<self; self; end rescue nil end end puts “aaa”.singleton\_class puts 8.singleton\_class Is it the assumed way to do the job? Is there any special method in r…

---

## [Ruby+Glade+notebook-widget](https://www.ruby-forum.com/t/ruby-glade-notebook-widget/120410)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/ruby-glade-notebook-widget/120410 "2007-11-16T20:05:43Z")

</div>

Hi, I wanted to test ruby-glade. So I created a main window with a notebook and added 3 tabs. Than I converted it with ruby-glade-create-template and started it. But I always see just the last Tab I created. The other …

---

## [Accessing instance variables from an inherited class](https://www.ruby-forum.com/t/accessing-instance-variables-from-an-inherited-class/120417)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/accessing-instance-variables-from-an-inherited-class/120417 "2007-11-16T18:53:30Z")

</div>

Hi, The below code accesses the value of an instance variable class Object\_References attr\_reader :obj\_1, :obj\_2 def initialize @obj\_1 = “Object\_1” @obj\_2 = “Object\_2” end end ref = Object\_References.new puts r…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/120185)

<div class="topic-metadata">

**Author:** [@Charleno\_P](https://www.ruby-forum.com/u/Charleno_P)\
**Replies:** 3\
**Last updated:** [November 16, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/unsubscribe/120185 "2007-11-16T18:21:53Z")

</div>

I want unsubscribe of this mailing list, please!

---

## [Railroad problem](https://www.ruby-forum.com/t/railroad-problem/120399)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/railroad-problem/120399 "2007-11-16T15:54:40Z")

</div>

Hi all, Got struck up with this. Please help. The actual requirement is that I am trying to generate a model diagram thru the railroad which I have installed in my machine. I use both oracle and postgre db’s …

---

## [Xmlrpc problems](https://www.ruby-forum.com/t/xmlrpc-problems/120300)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 9\
**Last updated:** [November 16, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/xmlrpc-problems/120300 "2007-11-16T15:47:57Z")

</div>

Hi @all I would like to call a method asynchron on a other pc with xmlrpc 1.7.16! For the background: I’ve 2 computers (sender / receiver) in my network and I would like to sniff the networktraffic from sender to rec…

---

## [Beginner needs help](https://www.ruby-forum.com/t/beginner-needs-help/120206)

<div class="topic-metadata">

**Author:** [@caesarsalad](https://www.ruby-forum.com/u/caesarsalad)\
**Replies:** 5\
**Last updated:** [November 16, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/beginner-needs-help/120206 "2007-11-16T15:43:12Z")

</div>

Hey everyone! I’ve recently got in touch with the Ruby programming language and thought it was very interesting and useful, way better than a ton of other languages. Anyway, I need some help on a few things: Is the…

---

## [Bignum#odd?, Bignum#even? (for trunk)](https://www.ruby-forum.com/t/bignum-odd-bignum-even-for-trunk/120395)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 0\
**Last updated:** [November 16, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/bignum-odd-bignum-even-for-trunk/120395 "2007-11-16T14:56:37Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B e$B$I$&$;$J$i!"$H;W$C$Fe(BBignum#odd?, Bignum#even?e$B$bIU$1B-$7$^$7$?!#e(B e$B\<j85$G$Oe(B3e$BG\<eB.$/$J$k$h$&$G$9!#e(B Index: bignum.c — bignum.c (revision 13949) +++ bignum.c (working c…

---

## [ActiveRecord Problem](https://www.ruby-forum.com/t/activerecord-problem/120378)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/activerecord-problem/120378 "2007-11-16T14:05:40Z")

</div>

Hey! ich habe folgende tabellen in meiner sqlite datenbank: users (\[pk\] id, username…) courses (\[pk\] id, coursename…) users\_courses (\[pk\] users\_id, \[pk\] courses\_id, score) ich mÃ¶chte die n:m beziehung zwischen user…

---

## [Integer#odd?, Integer#even?, Integer#pred for 1.8](https://www.ruby-forum.com/t/integer-odd-integer-even-integer-pred-for-1-8/120388)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/integer-odd-integer-even-integer-pred-for-1-8/120388 "2007-11-16T13:59:07Z")

</div>

e$B$U$He(B 1.9 e$B$Ne(B test\_integer.rb e$B$re(B 1.8 e$B$GF0$+$=$&$H$7$?$i!"%a%=%Ce(B e$B%I$,B-$j$J$+$C$?$N$Ge(B Integer#odd?, Integer#even?, Integer#pred e$B$re(B backport e$B$7$F$7$^$C$?$s$G$9$,!"$I$&$G$9$+$M!#e(B …

---

## [Xampl project - Is it still alive](https://www.ruby-forum.com/t/xampl-project-is-it-still-alive/120380)

<div class="topic-metadata">

**Author:** [@zxem](https://www.ruby-forum.com/u/zxem)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/xampl-project-is-it-still-alive/120380 "2007-11-16T13:45:38Z")

</div>

Hi all, I trying to use a Ruby XML binding tool. XAMPLE seems the only choice. The last update for this project http://rubyforge.org/projects/xampl/ is at Nov, 2005. Is this project dead? Or could you suggest anothe…

---

## [Meeting Michigan/Indiana/Georgia Rubyists?](https://www.ruby-forum.com/t/meeting-michigan-indiana-georgia-rubyists/120384)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 0\
**Last updated:** [November 16, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/meeting-michigan-indiana-georgia-rubyists/120384 "2007-11-16T12:08:18Z")

</div>

(Second try, since it didn’t seem to get through on the first try) Hello, Rubyists! I’m traveling to the US from December to February, and since I don’t have that chance often, it’d be nice to meet some of you guys in…

---

## [Constant name resolution and module\_eval](https://www.ruby-forum.com/t/constant-name-resolution-and-module-eval/120370)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 11:26am UTC](https://www.ruby-forum.com/t/constant-name-resolution-and-module-eval/120370 "2007-11-16T11:26:06Z")

</div>

I’m trying to understand well the rules for constant name resolution. By now what I have is: (1) A constant is first looked up in the current module, then recursively in its mixins (ancestors). Then go up to the pare…

---

## [Use escape character for rdco](https://www.ruby-forum.com/t/use-escape-character-for-rdco/120374)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 0\
**Last updated:** [November 16, 2007, 11:11am UTC](https://www.ruby-forum.com/t/use-escape-character-for-rdco/120374 "2007-11-16T11:11:18Z")

</div>

Hi All I tried to create ruby documentation for my classes. At some point I encountered the following Arguments +params\[:text\]+:: bla bla Which doesn’t work. The rdoc has problems with the \[:text\] part. Any suggest…

---

## ["&prock", not "&block"](https://www.ruby-forum.com/t/prock-not-block/120237)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 7\
**Last updated:** [November 16, 2007, 11:01am UTC](https://www.ruby-forum.com/t/prock-not-block/120237 "2007-11-16T11:01:41Z")

</div>

In all of the code below, “prock” by itself is always a proc, while the combination “&prock” is always a block: def my\_proc &prock # accepts a block prock # returns a proc end prock = my\_proc { p "H…

---

## [Oci adpater and Oracle](https://www.ruby-forum.com/t/oci-adpater-and-oracle/120066)

<div class="topic-metadata">

**Author:** [@kayros](https://www.ruby-forum.com/u/kayros)\
**Replies:** 4\
**Last updated:** [November 16, 2007, 10:55am UTC](https://www.ruby-forum.com/t/oci-adpater-and-oracle/120066 "2007-11-16T10:55:34Z")

</div>

trying to use ruby (1.8.6) and activerecord(1.15.3) with oci adapter. Tried this code : require ‘active\_record’ ActiveRecord::Base.establish\_connection( :adapter =\> “oci”, :username =\> “scott”, :password =\> “ross”, …

---

## [Sql managing](https://www.ruby-forum.com/t/sql-managing/120360)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 10:14am UTC](https://www.ruby-forum.com/t/sql-managing/120360 "2007-11-16T10:14:28Z")

</div>

So i have postgres setup and the database is working all fine and dandy, but heres my issues. The basic framework contains users, groups, events, and projects. I want to give users the ability to join the groups event…

---

## [Anyway to make grep take a regular string?](https://www.ruby-forum.com/t/anyway-to-make-grep-take-a-regular-string/120361)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 3\
**Last updated:** [November 16, 2007, 9:32am UTC](https://www.ruby-forum.com/t/anyway-to-make-grep-take-a-regular-string/120361 "2007-11-16T09:32:53Z")

</div>

I know grep needs to take an regular expression. Is there anyway to have it take a regular string instead? without using regular expressions?

---

## [Can someone show me how to use ARGV with my class?](https://www.ruby-forum.com/t/can-someone-show-me-how-to-use-argv-with-my-class/120367)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 9:24am UTC](https://www.ruby-forum.com/t/can-someone-show-me-how-to-use-argv-with-my-class/120367 "2007-11-16T09:24:04Z")

</div>

I’m trying to write an command line program. For instance if I have a class like this with 1 method class Coolest Program coolest\_method (a,b) puts a + b end end How do I program it so it runs in command line? so…

---

## [Recursion help](https://www.ruby-forum.com/t/recursion-help/120227)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 8\
**Last updated:** [November 16, 2007, 9:12am UTC](https://www.ruby-forum.com/t/recursion-help/120227 "2007-11-16T09:12:56Z")

</div>

I suck at recursion, and I need some help understanding where I’m going wrong here. I have a script that reads a file, then creates an excel form file. Here’s the program. puts “Enter file name” filename = gets.chom…

---

## [Test::Unit::Reporter](https://www.ruby-forum.com/t/test-reporter/120366)

<div class="topic-metadata">

**Author:** [@Jesper\_Eskilson](https://www.ruby-forum.com/u/Jesper_Eskilson)\
**Replies:** 0\
**Last updated:** [November 16, 2007, 8:55am UTC](https://www.ruby-forum.com/t/test-reporter/120366 "2007-11-16T08:55:22Z")

</div>

Hi all, What’s the status of Test::Unit::Reporter? I’m trying to communicate Test::Unit test results to a CruiseControl server, but I can’t get it to work. The project page at rubyforge.org http://rubyforge.org/proje…

---

## [Stripping the extensions off of a file](https://www.ruby-forum.com/t/stripping-the-extensions-off-of-a-file/120357)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 5:45am UTC](https://www.ruby-forum.com/t/stripping-the-extensions-off-of-a-file/120357 "2007-11-16T05:45:24Z")

</div>

I’m building a program that goes thru a file structure, and it will find the longest filename and biggest files. Find.find(directory) do |f| file\_sizes\[File.size(f)\]= f if File.file?(f) file\_stripper = File.basename…

---

## [Compile ruby under windows xp with MinGW](https://www.ruby-forum.com/t/compile-ruby-under-windows-xp-with-mingw/120263)

<div class="topic-metadata">

**Author:** [@lars\_S](https://www.ruby-forum.com/u/lars_S)\
**Replies:** 4\
**Last updated:** [November 16, 2007, 5:41am UTC](https://www.ruby-forum.com/t/compile-ruby-under-windows-xp-with-mingw/120263 "2007-11-16T05:41:17Z")

</div>

dear rubyians, I tried to compile ruby under windows xp with MinGW. firstly I copied and renamed the GNUMakefile.in out of cygwin directory into the src root directory. After that I successfully run ./configure in or…

---

## [Version string](https://www.ruby-forum.com/t/version-string/120068)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 5\
**Last updated:** [November 16, 2007, 5:37am UTC](https://www.ruby-forum.com/t/version-string/120068 "2007-11-16T05:37:12Z")

</div>

e$B!!$5$5$@$G$9!%e(B ruby --version e$B$G=PNO$5$l$k!$\<!$N$h$&$JJ8;zNse(B e$B!Ve(Bruby 1.9.0 (2007-11-13 patchlevel 0) \[i686-linux\]e$B!W$re(B Ruby e$BFb$G4Je(B e$BC1$K;2\>H$9$k$?$a$NJ}K!!JDj?t!)!K$r2C$($k$N$O$I$&$G$7$g…

---

## [From rails 1.x to rails 2.x : basic case not working](https://www.ruby-forum.com/t/from-rails-1-x-to-rails-2-x-basic-case-not-working/120353)

<div class="topic-metadata">

**Author:** [@three\_diamonds](https://www.ruby-forum.com/u/three_diamonds)\
**Replies:** 1\
**Last updated:** [November 16, 2007, 5:24am UTC](https://www.ruby-forum.com/t/from-rails-1-x-to-rails-2-x-basic-case-not-working/120353 "2007-11-16T05:24:27Z")

</div>

Hello, I’m trying to make a new application using a legacy database. The table I’m testing on doesn’t use rails conventions : the name is not pluralized and the primary key isn’t named “id” I created a new project us…

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

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