# Ruby

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

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

---

## [Class variables and Constants](https://www.ruby-forum.com/t/class-variables-and-constants/54011)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 7\
**Last updated:** [February 24, 2006, 6:45pm UTC](https://www.ruby-forum.com/t/class-variables-and-constants/54011 "2006-02-24T18:45:35Z")

</div>

Hello people, what is the actual difference between class variables and constants? If I write: #!/usr/local/bin/ruby -w class TonyCantCode @@internal=10 def TonyCantCode::something return @@inter…

---

## [Understanding ruby? need help](https://www.ruby-forum.com/t/understanding-ruby-need-help/70110)

<div class="topic-metadata">

**Author:** [@bbqbaker](https://www.ruby-forum.com/u/bbqbaker)\
**Replies:** 5\
**Last updated:** [February 24, 2006, 5:39pm UTC](https://www.ruby-forum.com/t/understanding-ruby-need-help/70110 "2006-02-24T17:39:23Z")

</div>

I hi, I am new to ruby and bought my first book. i am having sort of difficult time understanding blocks/yeild statements. i am coming from C++. class Array def find for i in 0…size value = self\[i\] return value if…

---

## [Registration now open for Silicon Valley Ruby Conference](https://www.ruby-forum.com/t/registration-now-open-for-silicon-valley-ruby-conference/72847)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/registration-now-open-for-silicon-valley-ruby-conference/72847 "2006-02-24T17:11:10Z")

</div>

Hi everyone – Registration is now open for the upcoming Silicon Valley Ruby Conference, April 22-23. This event is a co-production of SDForum and Ruby Central, Inc. Some FAQ: Is this the same as RubyConf? No, it’s…

---

## [Re: Rubuntu LiveCD I need vim/emacs configs!](https://www.ruby-forum.com/t/re-rubuntu-livecd-i-need-vim-emacs-configs/54103)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 7\
**Last updated:** [February 24, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/re-rubuntu-livecd-i-need-vim-emacs-configs/54103 "2006-02-24T16:25:00Z")

</div>

On Behalf Of Pistos #Well, I was about to toot my own horn, but it looks as though someone #already mentioned it: I would be quite appreciative if you included #Diakonos. :slight\_smile: Hi Pistos, do you have gem f…

---

## [Everything's an object, right?](https://www.ruby-forum.com/t/everythings-an-object-right/72674)

<div class="topic-metadata">

**Author:** [@Nathan\_Morse](https://www.ruby-forum.com/u/Nathan_Morse)\
**Replies:** 6\
**Last updated:** [February 24, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/everythings-an-object-right/72674 "2006-02-24T14:24:12Z")

</div>

I was talking to a coworker today about the Ruby, and we were discussing how in Ruby everything is an object. He wondered if everything was call-by-reference, and my knee jerk reaction was yes. Then I ran the followi…

---

## [Comments on gtk-ruby/main.rb appreciated](https://www.ruby-forum.com/t/comments-on-gtk-ruby-main-rb-appreciated/72792)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/comments-on-gtk-ruby-main-rb-appreciated/72792 "2006-02-24T14:02:47Z")

</div>

I’ve been using ruby-gtk for a few weeks now. Please find attached comments I’ve made about one of the sripts. In order to get me up to speed I’ve looked at the main script for the gtk-demo and boated it with comments…

---

## [Toronto Ruby User Group, 5 Mar 2006 Meeting](https://www.ruby-forum.com/t/toronto-ruby-user-group-5-mar-2006-meeting/72789)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 1:34pm UTC](https://www.ruby-forum.com/t/toronto-ruby-user-group-5-mar-2006-meeting/72789 "2006-02-24T13:34:36Z")

</div>

The March meeting of the Toronto Ruby U. Group is planned for Sunday 5 March 2006, 13:00 at the Linux Caffe. See http:// www.trug.ca/Meetings for more information. Mike – Mike S. removed\_email\_address@domain.invali…

---

## [Class method availble via soap server?](https://www.ruby-forum.com/t/class-method-availble-via-soap-server/54150)

<div class="topic-metadata">

**Author:** [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 12:57pm UTC](https://www.ruby-forum.com/t/class-method-availble-via-soap-server/54150 "2006-02-24T12:57:38Z")

</div>

Hi, does anyone know how to make a Class method available via a soap server? I’d like to do something like; class Server2 \< SOAP::RPC::StandaloneServer def on\_init addmethod(Owner, ‘find’) end end where ‘Owner’ …

---

## [Two Ruby threading questions](https://www.ruby-forum.com/t/two-ruby-threading-questions/72457)

<div class="topic-metadata">

**Author:** [@codeslinger](https://www.ruby-forum.com/u/codeslinger)\
**Replies:** 6\
**Last updated:** [February 24, 2006, 10:35am UTC](https://www.ruby-forum.com/t/two-ruby-threading-questions/72457 "2006-02-24T10:35:20Z")

</div>

Hi all, I have a number of issues that I’m dealing with regarding Ruby threads and I was wondering if someone might point me in the right direction with some or all of them: Is there a commensurate to Java’s setDae…

---

## [Question: is it possible for an extension to convert a block](https://www.ruby-forum.com/t/question-is-it-possible-for-an-extension-to-convert-a-block/72746)

<div class="topic-metadata">

**Author:** [@Jacob\_Repp](https://www.ruby-forum.com/u/Jacob_Repp)\
**Replies:** 1\
**Last updated:** [February 24, 2006, 10:08am UTC](https://www.ruby-forum.com/t/question-is-it-possible-for-an-extension-to-convert-a-block/72746 "2006-02-24T10:08:02Z")

</div>

I want to do this: puts “sending data” sock.send(“HELLO”) { |nbytes| puts “sent #{nbytes} bytes” } puts “processing io completions” queue.process() # calls the above defined block I want to see the following outpo…

---

## [Help with Sha + Base64 for WSSE encoding](https://www.ruby-forum.com/t/help-with-sha-base64-for-wsse-encoding/72493)

<div class="topic-metadata">

**Author:** [@patched](https://www.ruby-forum.com/u/patched)\
**Replies:** 7\
**Last updated:** [February 24, 2006, 9:46am UTC](https://www.ruby-forum.com/t/help-with-sha-base64-for-wsse-encoding/72493 "2006-02-24T09:46:56Z")

</div>

Hello there. I’ve got a numbers puzzle for someone out there. I’m currently trying to implement X-WSSE authentication, which basically means you follow these steps to create a PasswordDigest: Create a random Nonce(o…

---

## [First Pune Ruby Group Meet](https://www.ruby-forum.com/t/first-pune-ruby-group-meet/72749)

<div class="topic-metadata">

**Author:** [@dibya](https://www.ruby-forum.com/u/dibya)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 9:19am UTC](https://www.ruby-forum.com/t/first-pune-ruby-group-meet/72749 "2006-02-24T09:19:42Z")

</div>

Hi, Pune Ruby group is having its first Ruby/Rails meet on 25th Feb 2006 from 1600hrs. We plan to have some talks on: a)Introduction to Ruby and Ruby on Rails b)Agile Development c)Reverse Engineering. The URL fo…

---

## [What's mean? global variables](https://www.ruby-forum.com/t/whats-mean-global-variables/72352)

<div class="topic-metadata">

**Author:** [@BlueFox](https://www.ruby-forum.com/u/BlueFox)\
**Replies:** 3\
**Last updated:** [February 24, 2006, 7:49am UTC](https://www.ruby-forum.com/t/whats-mean-global-variables/72352 "2006-02-24T07:49:13Z")

</div>

in test.rb class Test def greeting “hello world!” end end def test $test ||= Test.new end and somewhere puts test.greeting what is mean of(outside of the class define) def test $test ||= Test.new end and w…

---

## [Ruby plugin for spreadsheet?](https://www.ruby-forum.com/t/ruby-plugin-for-spreadsheet/72606)

<div class="topic-metadata">

**Author:** [@grantspeelman](https://www.ruby-forum.com/u/grantspeelman)\
**Replies:** 3\
**Last updated:** [February 24, 2006, 7:16am UTC](https://www.ruby-forum.com/t/ruby-plugin-for-spreadsheet/72606 "2006-02-24T07:16:05Z")

</div>

I know this may sound insane… but is there anything like a ruby plugin for spreadsheets? Sadly, I guess I’d prefer Excel, but I use OpenOffice alot too. basically, there is always text manipulation of fields I need to …

---

## [Creating Files](https://www.ruby-forum.com/t/creating-files/72671)

<div class="topic-metadata">

**Author:** [@Andy\_Ferra](https://www.ruby-forum.com/u/Andy_Ferra)\
**Replies:** 2\
**Last updated:** [February 24, 2006, 6:00am UTC](https://www.ruby-forum.com/t/creating-files/72671 "2006-02-24T06:00:34Z")

</div>

Could someone please tell me how to create a new file? Thank you.

---

## [Python for Fortran Programmers](https://www.ruby-forum.com/t/python-for-fortran-programmers/69636)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 13\
**Last updated:** [February 24, 2006, 5:35am UTC](https://www.ruby-forum.com/t/python-for-fortran-programmers/69636 "2006-02-24T05:35:37Z")

</div>

It was neat to see Ruby naturally appear under this thread recently on news:comp.lang.fortran http://tinyurl.com/c8vtf

---

## [Nuby - help with Ruby object references](https://www.ruby-forum.com/t/nuby-help-with-ruby-object-references/54138)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 24, 2006, 3:55am UTC](https://www.ruby-forum.com/t/nuby-help-with-ruby-object-references/54138 "2006-02-24T03:55:42Z")

</div>

I’m very new to Ruby (as in, just started yesterday). As a learning exercise I decided to write a short program that would traverse a directory tree and take note of all duplicate files in that tree. I’m using a hash …

---

## [Noob has trouble with io/wait on Windows](https://www.ruby-forum.com/t/noob-has-trouble-with-io-wait-on-windows/54099)

<div class="topic-metadata">

**Author:** [@ledelste](https://www.ruby-forum.com/u/ledelste)\
**Replies:** 2\
**Last updated:** [February 24, 2006, 2:42am UTC](https://www.ruby-forum.com/t/noob-has-trouble-with-io-wait-on-windows/54099 "2006-02-24T02:42:14Z")

</div>

I’m trying to use the “io/wait” library (using “require ‘io/wait’”) but the interpreter won’t load it. I’m a dang newbie and I’ve just installed the 1.8.2 one-click package on Windows. Do I need to do something…

---

## [Ruby on gumstix](https://www.ruby-forum.com/t/ruby-on-gumstix/72215)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 3\
**Last updated:** [February 24, 2006, 1:54am UTC](https://www.ruby-forum.com/t/ruby-on-gumstix/72215 "2006-02-24T01:54:49Z")

</div>

Looks like I will have a chance to play around with a small fleet of Gumstix (http://www.gumstix.org/). Does anyone have any experience with ruby on them? (They have linux 2.6 on flash, Intel XScale processor, and gcc…

---

## [Private methods and self:](https://www.ruby-forum.com/t/private-methods-and-self/54132)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [February 24, 2006, 12:20am UTC](https://www.ruby-forum.com/t/private-methods-and-self/54132 "2006-02-24T00:20:47Z")

</div>

FOR ruby 1.8.4 (2005-12-24) \[i386-linux\]: #-------------------------------------------------------------------------- def foo1 self.bar end def foo2 bar end def bar puts “In bar” end private :bar if FILE == $…

---

## [\[ANN\] SwitchTower 1.0.0](https://www.ruby-forum.com/t/ann-switchtower-1-0-0/70373)

<div class="topic-metadata">

**Author:** [@jamis](https://www.ruby-forum.com/u/jamis)\
**Replies:** 2\
**Last updated:** [February 23, 2006, 11:56pm UTC](https://www.ruby-forum.com/t/ann-switchtower-1-0-0/70373 "2006-02-23T23:56:30Z")

</div>

SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your server…

---

## [Job Posting In Grand Rapids, MI](https://www.ruby-forum.com/t/job-posting-in-grand-rapids-mi/72528)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 1\
**Last updated:** [February 23, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/job-posting-in-grand-rapids-mi/72528 "2006-02-23T23:50:25Z")

</div>

There is a job opening in Grand Rapids, Michigan for a full-time entry-level to intermediate programming position at Market Technologies Inc. (MTI). MTI is a custom software provider which enhances the processes of o…

---

## [Re: C Extensions not working on Windows XP 64](https://www.ruby-forum.com/t/re-c-extensions-not-working-on-windows-xp-64/54133)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 23, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/re-c-extensions-not-working-on-windows-xp-64/54133 "2006-02-23T22:34:28Z")

</div>

to load into ruby on Windows XP. void Init\_simple() { csimple = rb\_define\_class(“simple”,rb\_cObject); Classes are constants. Change that line to: csimple = rb\_define\_class(“Simple”, rb\_cObject); Then create…

---

## [Puts behaviour](https://www.ruby-forum.com/t/puts-behaviour/71883)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 5\
**Last updated:** [February 23, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/puts-behaviour/71883 "2006-02-23T20:56:37Z")

</div>

I have a number of “puts” in my testcase file. When I run my test harness using ruby -w test/testcase.rb the first “puts” in the second method prefixes the output string with a ‘.’ I cannot seem to locate any refere…

---

## [Re: Eating CPAN - Was Port A Library](https://www.ruby-forum.com/t/re-eating-cpan-was-port-a-library/71574)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 6\
**Last updated:** [February 23, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/re-eating-cpan-was-port-a-library/71574 "2006-02-23T19:25:38Z")

</div>

On 2/20/06, Edgardo H. removed\_email\_address@domain.invalid wrote: having Ruby rewrites of the important/useful libraries would be much better. Which are the most important/useful libraries? I might like to try my …

---

## [Eating CPAN - Was Port A Library](https://www.ruby-forum.com/t/eating-cpan-was-port-a-library/53888)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 12\
**Last updated:** [February 23, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/eating-cpan-was-port-a-library/53888 "2006-02-23T19:07:24Z")

</div>

CPAN has 9502 modules. So the suggestion is to port a few. The question is which one. Well CPAN has a notion of a dependency network. Imagine if CPAN module XXX was missing, how many other modules would suddenly not…

---

## [Ruby/Tk : Accessing a Checkbox](https://www.ruby-forum.com/t/ruby-tk-accessing-a-checkbox/72313)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 23, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/ruby-tk-accessing-a-checkbox/72313 "2006-02-23T18:09:45Z")

</div>

How can I find out whether a Checkbox is checked or unchecked in Ruby? Here is my Checkbox definition (hope it is correct): $bpmto\_check=TkCheckButton.new(bpmto\_frame); How can I find the state of the checkbox? I trie…

---

## [How to evaluate file as Ruby code?](https://www.ruby-forum.com/t/how-to-evaluate-file-as-ruby-code/71839)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [February 23, 2006, 5:39pm UTC](https://www.ruby-forum.com/t/how-to-evaluate-file-as-ruby-code/71839 "2006-02-23T17:39:25Z")

</div>

How do I evaluate a text file as a sequence of Ruby statements? (For those who happen to know Perl: I would like to have an equivalent of the Perl ‘do FILENAME’ feature). For example, I have a file “foo” which contain…

---

## [Ruby-GetText-Package-1.2.0](https://www.ruby-forum.com/t/ruby-gettext-package-1-2-0/72426)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [February 23, 2006, 5:27pm UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-2-0/72426 "2006-02-23T17:27:15Z")

</div>

Hi, Ruby-GetText-Package-1.2.0 is now available. Changes Re-implement Locale module and implements Locale::Object, Locale::System, etc. Fix bugs. Apply RDoc Improve to support Ruby on Rails. Add GetText.Nn\_. Add rms…

---

## [Looking forward to being able to answer Ruby quizzes](https://www.ruby-forum.com/t/looking-forward-to-being-able-to-answer-ruby-quizzes/72392)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 1\
**Last updated:** [February 23, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/looking-forward-to-being-able-to-answer-ruby-quizzes/72392 "2006-02-23T17:21:10Z")

</div>

Hello People, The subject says it all: I will consider myself a real Ruby programmer with I am able to answer the quiz questions you post here every week. Going through the previous quizzes’ answers, I just cannot be…

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

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