# Ruby

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

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

---

## [Re: Non-declared variables](https://www.ruby-forum.com/t/re-non-declared-variables/72340)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 6\
**Last updated:** [October 16, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/re-non-declared-variables/72340 "2006-10-16T18:43:05Z")

</div>

From: Avatar \[mailto:removed\_email\_address@domain.invalid\] Are there real tangible benefits that non-declared, dynamically typed (at binding time) variables provide? Or do dynamic variables simply create less compile…

---

## [Using classes problem](https://www.ruby-forum.com/t/using-classes-problem/72358)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/using-classes-problem/72358 "2006-10-16T18:34:59Z")

</div>

I am trying to use a class that I wrote in another file, and it doesn’t seem to want to work. At the beginning of the file that I do \[require ‘classname’\] with the single quotes, but when I try running the program I g…

---

## [Re: Non-declared variables](https://www.ruby-forum.com/t/re-non-declared-variables/72343)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/re-non-declared-variables/72343 "2006-10-16T17:34:28Z")

</div>

From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] for those of you using vim, the completion feature virtually eliminates this kind of bug. Similarly with TextMate and its auto…

---

## ["Good Ideas, Through the Looking Glass"](https://www.ruby-forum.com/t/good-ideas-through-the-looking-glass/72260)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 5\
**Last updated:** [October 16, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/good-ideas-through-the-looking-glass/72260 "2006-10-16T17:14:19Z")

</div>

Some folks here might find this interesting: Abstract An entire potpourri of ideas is listed from the past decades of Computer Science and Computer Technology. Widely acclaimed at their time, many have lost in sple…

---

## [Passing the data from a tkEntry widgit to a variable](https://www.ruby-forum.com/t/passing-the-data-from-a-tkentry-widgit-to-a-variable/72006)

<div class="topic-metadata">

**Author:** [@merrua](https://www.ruby-forum.com/u/merrua)\
**Replies:** 4\
**Last updated:** [October 16, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/passing-the-data-from-a-tkentry-widgit-to-a-variable/72006 "2006-10-16T16:53:37Z")

</div>

I’m a bit confused about this, when you create a TkEntry Widgit on a frame How exactly do you put the data entered into a variable? I want it passed when the user clicks a button. So I was looking at examples and it …

---

## [Another basic question about sorting w/o the sort method](https://www.ruby-forum.com/t/another-basic-question-about-sorting-w-o-the-sort-method/72221)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [October 16, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/another-basic-question-about-sorting-w-o-the-sort-method/72221 "2006-10-16T16:23:47Z")

</div>

Hi, I worked through the exercise in Chris P.'s tutorial where you sort an array without using the sort method (Arrays and Iterators - Learn to Program), and I got a working solution, but I’m curious about how to imp…

---

## [Ruby for Rails p.462-464 - why include vs. extend?](https://www.ruby-forum.com/t/ruby-for-rails-p-462-464-why-include-vs-extend/72285)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 3\
**Last updated:** [October 16, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/ruby-for-rails-p-462-464-why-include-vs-extend/72285 "2006-10-16T16:23:17Z")

</div>

Making my way through Ruby for Rails (excellent book, David), but am puzzled by the explanation of why Rails jumps through hoops to turn Module instance methods into class methods. On p. 463, David represents the situ…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [October 16, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229058 "2006-10-16T16:21:45Z")

</div>

Begin forwarded message:

---

## [Non-declared variables](https://www.ruby-forum.com/t/non-declared-variables/72323)

<div class="topic-metadata">

**Author:** [@Avatar](https://www.ruby-forum.com/u/Avatar)\
**Replies:** 4\
**Last updated:** [October 16, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/non-declared-variables/72323 "2006-10-16T16:05:41Z")

</div>

I would like to hear people’s opinions on the ability to use variables without declaring them in dynamic languages like Ruby. It would seem to me that an argument for non-declared local variables that typically occupy…

---

## [What to do when # Unsubscribe does not work?](https://www.ruby-forum.com/t/what-to-do-when-unsubscribe-does-not-work/72333)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 1\
**Last updated:** [October 16, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/what-to-do-when-unsubscribe-does-not-work/72333 "2006-10-16T15:59:40Z")

</div>

Can anyone offer any suggestions on what to do when # Unsubscribe does not work? I’ve also tried plain old unsubscribe …

---

## [Re: What to do when # Unsubscribe does not work?](https://www.ruby-forum.com/t/re-what-to-do-when-unsubscribe-does-not-work/72335)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/re-what-to-do-when-unsubscribe-does-not-work/72335 "2006-10-16T15:38:53Z")

</div>

\----- Original Message ---- From: David P. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Monday, October 16, 2006 9:28:05 AM Subject: What to do when # Unsubscribe d…

---

## [How do I install Ruby 1.8.4 on my server from source, with a](https://www.ruby-forum.com/t/how-do-i-install-ruby-1-8-4-on-my-server-from-source-with-a/72328)

<div class="topic-metadata">

**Author:** [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/how-do-i-install-ruby-1-8-4-on-my-server-from-source-with-a/72328 "2006-10-16T14:24:29Z")

</div>

Hya folks I’m introducing Ruby to my workplace and tried installing it on our server. We’re using RHEL and the most recent Ruby binary package we have in the repos is 1.8.1 (Yikes indeed). So the question is: what’s …

---

## [Xmpfilter 0.3.0: automagic Test::Unit assertions and RSpec e](https://www.ruby-forum.com/t/xmpfilter-0-3-0-automagic-test-unit-assertions-and-rspec-e/72318)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 1\
**Last updated:** [October 16, 2006, 12:23pm UTC](https://www.ruby-forum.com/t/xmpfilter-0-3-0-automagic-test-unit-assertions-and-rspec-e/72318 "2006-10-16T12:23:48Z")

</div>

xmpfilter can be obtained from eigenclass.org xmpfilter.rb can generate RSpec expectations as of 0.3.0 (thank you, rubykitch!). Overview xmpfilter.rb is a small tool that can be used to generate Test::Unit assertio…

---

## [Rails with FireBird](https://www.ruby-forum.com/t/rails-with-firebird/72306)

<div class="topic-metadata">

**Author:** [@Issara\_J.porn](https://www.ruby-forum.com/u/Issara_J.porn)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 11:57am UTC](https://www.ruby-forum.com/t/rails-with-firebird/72306 "2006-10-16T11:57:45Z")

</div>

Hello People I must to use Rails with Firebird, I try to search it but didn’t have success, any one can help me to show where i can find Firebird adapter for rails thanks Issara Ã¨ LibertÃ

---

## [Strange read behaviour on windows](https://www.ruby-forum.com/t/strange-read-behaviour-on-windows/72293)

<div class="topic-metadata">

**Author:** [@calande](https://www.ruby-forum.com/u/calande)\
**Replies:** 2\
**Last updated:** [October 16, 2006, 11:15am UTC](https://www.ruby-forum.com/t/strange-read-behaviour-on-windows/72293 "2006-10-16T11:15:11Z")

</div>

This is my first post to the ruby mailing lists, so let me first thank all the people who’s wonderful work I’ve made use of – great stuff!. I’ve been trying to upload some large files, using Net::HTTP::Put#body\_stream…

---

## [3d-model import](https://www.ruby-forum.com/t/3d-model-import/72208)

<div class="topic-metadata">

**Author:** [@javra](https://www.ruby-forum.com/u/javra)\
**Replies:** 2\
**Last updated:** [October 16, 2006, 10:29am UTC](https://www.ruby-forum.com/t/3d-model-import/72208 "2006-10-16T10:29:27Z")

</div>

Does anyone know how far OpenGL for Ruby is developed and if it’s possible to import for examle .dxf oder .3ds files? I’m relatively new to Ruby and haven’t found much stuff about 3d in Ruby. Should I change to Java o…

---

## [Re: How do I round off a float to x decimal places](https://www.ruby-forum.com/t/re-how-do-i-round-off-a-float-to-x-decimal-places/72295)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 9:51am UTC](https://www.ruby-forum.com/t/re-how-do-i-round-off-a-float-to-x-decimal-places/72295 "2006-10-16T09:51:24Z")

</div>

Might be a little late but here’s my method round only works on integers so have to multiply the float to by 10000 to round it to 2 decimal places and then correct the position of the decimal by dividing by 100.0 def ro…

---

## [Encrypt large files with ruby openssl or?](https://www.ruby-forum.com/t/encrypt-large-files-with-ruby-openssl-or/72204)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 4\
**Last updated:** [October 16, 2006, 9:43am UTC](https://www.ruby-forum.com/t/encrypt-large-files-with-ruby-openssl-or/72204 "2006-10-16T09:43:23Z")

</div>

It looks like ruby openssl is not intended to encrypt large amount of data (like XML documents) because of: \`private\_encrypt’: data too large for key size (OpenSSL::PKey::RSAError) Since there obvious are tools which …

---

## [Decimal separator](https://www.ruby-forum.com/t/decimal-separator/72291)

<div class="topic-metadata">

**Author:** [@Domas\_S](https://www.ruby-forum.com/u/Domas_S)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 8:21am UTC](https://www.ruby-forum.com/t/decimal-separator/72291 "2006-10-16T08:21:16Z")

</div>

How can I get system decimal separator?

---

## [Newbie - File Rename](https://www.ruby-forum.com/t/newbie-file-rename/72070)

<div class="topic-metadata">

**Author:** [@snoopy](https://www.ruby-forum.com/u/snoopy)\
**Replies:** 5\
**Last updated:** [October 16, 2006, 6:31am UTC](https://www.ruby-forum.com/t/newbie-file-rename/72070 "2006-10-16T06:31:15Z")

</div>

I am obviously missing something. I am simple trying to rename some files with long names to a shorter format. Here are a couple of sample file names: longfilename - 0100.txt, longfilename - 01-1.txt Here is my cod…

---

## [Ruby DateTime and MySQL datetime](https://www.ruby-forum.com/t/ruby-datetime-and-mysql-datetime/72244)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 5\
**Last updated:** [October 16, 2006, 5:04am UTC](https://www.ruby-forum.com/t/ruby-datetime-and-mysql-datetime/72244 "2006-10-16T05:04:57Z")

</div>

I am lost… using sel\_start\_date = DateTime.new(sd.year,sd.month,sd.day,16,0,0) if I display it I have sel\_start\_date.to\_s =\> “2006-10-19T16:00:00Z” but I cannot performed correct searches into my MySQL DB (4.1.23…

---

## [ParseTree and OS X/other newbie OS X questions](https://www.ruby-forum.com/t/parsetree-and-os-x-other-newbie-os-x-questions/72229)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 2\
**Last updated:** [October 16, 2006, 4:58am UTC](https://www.ruby-forum.com/t/parsetree-and-os-x-other-newbie-os-x-questions/72229 "2006-10-16T04:58:57Z")

</div>

Couple of questions from a newbie on OS X (intel PB Pro)… First, ParseTree doesn’t want to install do to compilation issues… mbp:/usr/lib/ruby/gems/1.8/gems/ParseTree-1.6.0 Ken$ sudo rake install Password: (in /usr/l…

---

## [C Extension Cleanup](https://www.ruby-forum.com/t/c-extension-cleanup/72233)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 9\
**Last updated:** [October 16, 2006, 4:08am UTC](https://www.ruby-forum.com/t/c-extension-cleanup/72233 "2006-10-16T04:08:16Z")

</div>

I’m writting a wrapper for a C library\[1\] and need to perform some clean-up when the Ruby process exists. In my Init function, I create a C global variable that needs to be explicitly freed after the garbage collecto…

---

## [Ruby friendly MOM's](https://www.ruby-forum.com/t/ruby-friendly-moms/72253)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 7\
**Last updated:** [October 16, 2006, 2:57am UTC](https://www.ruby-forum.com/t/ruby-friendly-moms/72253 "2006-10-16T02:57:44Z")

</div>

I’ve spent a good deal of time looking for a ruby/python/perl friendly open source reliable messaging system without much luck. I know Francis is working on an AMQP based system, and I’ve taken a look at reliable-mes…

---

## [Ticket (w/o meals) 4-Sale](https://www.ruby-forum.com/t/ticket-w-o-meals-4-sale/72257)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 1\
**Last updated:** [October 16, 2006, 2:43am UTC](https://www.ruby-forum.com/t/ticket-w-o-meals-4-sale/72257 "2006-10-16T02:43:42Z")

</div>

Hello I have a friend who can’t make the conference and would like to sell his ticket. The ticket is without meals and is priced at face value, $125.00. Call or email if you are interested. Jim F. 512 743 4135

---

## [The Ruby Edge - Digg for Ruby and Ruby On Rails](https://www.ruby-forum.com/t/the-ruby-edge-digg-for-ruby-and-ruby-on-rails/72255)

<div class="topic-metadata">

**Author:** [@roschler](https://www.ruby-forum.com/u/roschler)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 1:41am UTC](https://www.ruby-forum.com/t/the-ruby-edge-digg-for-ruby-and-ruby-on-rails/72255 "2006-10-16T01:41:37Z")

</div>

The Ruby Edge is a new community driven web site for Ruby and Ruby On Rails news, tips, tricks, tutorials, books, and jobs. It’s a Digg style site with user voting, commenting, and categorization of user submissions…

---

## [Tables/field names in rails](https://www.ruby-forum.com/t/tables-field-names-in-rails/72226)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 3\
**Last updated:** [October 15, 2006, 11:53pm UTC](https://www.ruby-forum.com/t/tables-field-names-in-rails/72226 "2006-10-15T23:53:21Z")

</div>

Is anyone aware of something which would MAP the table & field names that someone might presently use in a db schema, to the rails requirements? For example, if I have a table called associate, and a table called use…

---

## [Redirect STDOUT](https://www.ruby-forum.com/t/redirect-stdout/72112)

<div class="topic-metadata">

**Author:** [@yong](https://www.ruby-forum.com/u/yong)\
**Replies:** 8\
**Last updated:** [October 15, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/redirect-stdout/72112 "2006-10-15T23:15:14Z")

</div>

Hi all I’m writting a program to detect the cursor position with the vt100 command “\\x1b\[6n”. So I need to redirect STDOUT to a string. How can I do this? Thanks

---

## [A\* (#98)](https://www.ruby-forum.com/t/a-98/225925)

<div class="topic-metadata">

**Author:** [@Boris\_P](https://www.ruby-forum.com/u/Boris_P)\
**Replies:** 0\
**Last updated:** [October 15, 2006, 10:43pm UTC](https://www.ruby-forum.com/t/a-98/225925 "2006-10-15T22:43:12Z")

</div>

Hi, I finally unterstood the algorithm when I read this page: http://www.policyalmanac.org/games/aStarTutorial.htm Best regards, Boris A node represents a tile in the game class Node include Comparable # by total\_…

---

## [A\* (#98)](https://www.ruby-forum.com/t/a-98/229095)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 0\
**Last updated:** [October 15, 2006, 9:37pm UTC](https://www.ruby-forum.com/t/a-98/229095 "2006-10-15T21:37:06Z")

</div>

And here’s my solution - nothing particularl unusua;, beyond the definition of distance I’d mentioned already. I used a simple priority queue of my own design, though this could easily be adapted to use some off-the-…

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

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