# Ruby

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

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

---

## [What's the difference between copying and sharing in closure](https://www.ruby-forum.com/t/whats-the-difference-between-copying-and-sharing-in-closure/102065)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 8\
**Last updated:** [February 7, 2006, 7:19pm UTC](https://www.ruby-forum.com/t/whats-the-difference-between-copying-and-sharing-in-closure/102065 "2006-02-07T19:19:16Z")

</div>

Hello! I read an interview article with matz about closure. (artima - Blocks and Closures in Ruby) He mentioned that Ruby’s closure is a real closure like Lisp. Local variables are shared between a method and a closu…

---

## [Job Vacancy RoR](https://www.ruby-forum.com/t/job-vacancy-ror/100163)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [February 7, 2006, 7:13pm UTC](https://www.ruby-forum.com/t/job-vacancy-ror/100163 "2006-02-07T19:13:04Z")

</div>

I am part of a small Agency that supplies contractors to clients. A fairly new client in San Francisco (SOMA), needs an experienced (at least one complete commercial project) Ruby on Rails Software Engineer. Additiona…

---

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

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 2\
**Last updated:** [February 7, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/garbage-collection/53494 "2006-02-07T18:28:50Z")

</div>

I haven’t a copy of the code yet but a friend of mine was bemoaning his efforts to create an application in ruby (conversion from python) and ran into a problem. He discards a LOT of objects during the final steps of …

---

## [IO#reopen bug in 1.8.4?](https://www.ruby-forum.com/t/io-reopen-bug-in-1-8-4/102059)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 1\
**Last updated:** [February 7, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/io-reopen-bug-in-1-8-4/102059 "2006-02-07T17:57:56Z")

</div>

Greetings list, $stdout.fileno =\> 1 $stderr.fileno =\> 2 $stderr.reopen($stdout) $stderr.fileno =\> 2 Shouldn’t that last line evaluate to 1? BTW, it does indeed redirect STDERR to STDOUT, it’s just that the #fileno …

---

## [Lazy evaluation?](https://www.ruby-forum.com/t/lazy-evaluation/101962)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 7\
**Last updated:** [February 7, 2006, 4:18pm UTC](https://www.ruby-forum.com/t/lazy-evaluation/101962 "2006-02-07T16:18:00Z")

</div>

Could someone explain why this code works: def repeat(condition) puts "condition: #{condition}" yield retry if not condition end j=0 repeat (j \>= 10) do puts j j+=1 end puts "after loop, j = #{j}" I’d have ex…

---

## [Basic oO :: First Class Object](https://www.ruby-forum.com/t/basic-oo-first-class-object/101928)

<div class="topic-metadata">

**Author:** [@jansenh](https://www.ruby-forum.com/u/jansenh)\
**Replies:** 4\
**Last updated:** [February 7, 2006, 3:22pm UTC](https://www.ruby-forum.com/t/basic-oo-first-class-object/101928 "2006-02-07T15:22:40Z")

</div>

Hi all. What is a First Class Object, explained in Ruby context? regards, Henning

---

## [Feeling sharp? Sort an array subset in place](https://www.ruby-forum.com/t/feeling-sharp-sort-an-array-subset-in-place/101930)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 5\
**Last updated:** [February 7, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/feeling-sharp-sort-an-array-subset-in-place/101930 "2006-02-07T15:13:00Z")

</div>

Here’s the situation: I have an array and I’d like to sort certain elements in place – without touching the others. Unsorted array contents: 3 \<-- sort me! x 1 \<-- sort me! y 2 \<-- sort me! Sorted array contents …

---

## [Excel spreadsheet](https://www.ruby-forum.com/t/excel-spreadsheet/101852)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 5\
**Last updated:** [February 7, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/excel-spreadsheet/101852 "2006-02-07T15:06:49Z")

</div>

Hello, Is it possible to access Excel spreadsheets through ruby? If so is there somewhere a code example I can have a look at? Thanks, Bernd

---

## [Seeking Continuations Links](https://www.ruby-forum.com/t/seeking-continuations-links/99896)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 11\
**Last updated:** [February 7, 2006, 2:33pm UTC](https://www.ruby-forum.com/t/seeking-continuations-links/99896 "2006-02-07T14:33:05Z")

</div>

Myself and a few others are trying to get together a “Playing Around with Continuations” project. As a start, we are collecting any resources we can find about them. If you have links to any continuations related mat…

---

## [Re: FXSplashWindow usage question](https://www.ruby-forum.com/t/re-fxsplashwindow-usage-question/102032)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 7, 2006, 1:56pm UTC](https://www.ruby-forum.com/t/re-fxsplashwindow-usage-question/102032 "2006-02-07T13:56:33Z")

</div>

Dear lopex, thank you very much!! That did it. Best regards, Axel

---

## [Ruby-nuby bytes question](https://www.ruby-forum.com/t/ruby-nuby-bytes-question/101976)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 7, 2006, 12:54pm UTC](https://www.ruby-forum.com/t/ruby-nuby-bytes-question/101976 "2006-02-07T12:54:59Z")

</div>

Hi all, I’d like to convert an int to a byte array in Ruby. In C# you can do this: byte\[\] b = BitConverter.GetBytes(BufferLength); Any tips for the ruby equivalent gratefully received :slight\_smile: Thanks Steven

---

## [FXSplashWindow usage question](https://www.ruby-forum.com/t/fxsplashwindow-usage-question/102834)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 7, 2006, 12:45pm UTC](https://www.ruby-forum.com/t/fxsplashwindow-usage-question/102834 "2006-02-07T12:45:51Z")

</div>

Dear lopex, dear all, thank you for suggesting FXSplashWindow. Unfortunately, I have not been able to use it so far – these are my very first steps in FXRuby (not in Ruby, though). The code below is combined from the…

---

## [Odba 1.0.2](https://www.ruby-forum.com/t/odba-1-0-2/102004)

<div class="topic-metadata">

**Author:** [@spreadsheet](https://www.ruby-forum.com/u/spreadsheet)\
**Replies:** 0\
**Last updated:** [February 7, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/odba-1-0-2/102004 "2006-02-07T12:36:35Z")

</div>

Hi everyone! I’ve just uploaded a new release of ODBA, the Object Database Access Layer What’'s new? Influenced by Lou V.'s feedback and real-world requirements in one of our projects, I’ve added a ConditionIndex, w…

---

## [Ruby Weekly News 30th January - 5th February 2006](https://www.ruby-forum.com/t/ruby-weekly-news-30th-january-5th-february-2006/101935)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-30th-january-5th-february-2006/101935 "2006-02-07T10:54:45Z")

</div>

http://www.rubyweeklynews.org/20060205.html Ruby Weekly News 30th January - 5th February 2006 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup / Ruby fo…

---

## [Timeout](https://www.ruby-forum.com/t/timeout/101927)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 7, 2006, 10:09am UTC](https://www.ruby-forum.com/t/timeout/101927 "2006-02-07T10:09:05Z")

</div>

Does Ruby’s Timeout know about time spent outside of Ruby’s interpreter? For instance, will it call Timeout in the model of long syscalls (ie, blocking io which is taking too long). If not, what is the best way to te…

---

## [Ruby design patterns and idioms](https://www.ruby-forum.com/t/ruby-design-patterns-and-idioms/101849)

<div class="topic-metadata">

**Author:** [@giaco](https://www.ruby-forum.com/u/giaco)\
**Replies:** 5\
**Last updated:** [February 7, 2006, 6:28am UTC](https://www.ruby-forum.com/t/ruby-design-patterns-and-idioms/101849 "2006-02-07T06:28:16Z")

</div>

I’ve read Design Patterns and similar material. While I’ve certainly picked up some good ideas, it seems that most of the techniques are simply the normal ruby way, or are only necessary for lower level languages and …

---

## [Openssl encrypt / decrypt question](https://www.ruby-forum.com/t/openssl-encrypt-decrypt-question/53478)

<div class="topic-metadata">

**Author:** [@Aynon\_Ehmouse](https://www.ruby-forum.com/u/Aynon_Ehmouse)\
**Replies:** 0\
**Last updated:** [February 7, 2006, 4:06am UTC](https://www.ruby-forum.com/t/openssl-encrypt-decrypt-question/53478 "2006-02-07T04:06:12Z")

</div>

Hi all, I’m attempting to encrypt and decrypt a string, and am having some issues with the decrypt side. I’m using ruby 1.8.4 on gentoo. My code looks something like this: -----code starts----- require ‘openssl’ Lo…

---

## [Looking for shared, extendable Whiteboard plugin in browser](https://www.ruby-forum.com/t/looking-for-shared-extendable-whiteboard-plugin-in-browser/53452)

<div class="topic-metadata">

**Author:** [@sapzz](https://www.ruby-forum.com/u/sapzz)\
**Replies:** 2\
**Last updated:** [February 7, 2006, 3:57am UTC](https://www.ruby-forum.com/t/looking-for-shared-extendable-whiteboard-plugin-in-browser/53452 "2006-02-07T03:57:09Z")

</div>

Hi all, I am building a network application which will enable peer to peer communication.The application is build using ruby on rails. I am attempting to build a white board which will allow simultaneous and syncrono…

---

## [Ruby MySQL help](https://www.ruby-forum.com/t/ruby-mysql-help/101752)

<div class="topic-metadata">

**Author:** [@mac](https://www.ruby-forum.com/u/mac)\
**Replies:** 1\
**Last updated:** [February 7, 2006, 3:32am UTC](https://www.ruby-forum.com/t/ruby-mysql-help/101752 "2006-02-07T03:32:52Z")

</div>

Hello, I am trying to use MySQL on my Windows XP professionsla box. I have installed MySQL 5.0.18-nt version and ruby 1.8.2 (2004-12-25) \[i386-mswin32\]. When I run the test script from ruby-mysql, i get the followin…

---

## [Intros to Python for Rubyists?](https://www.ruby-forum.com/t/intros-to-python-for-rubyists/101753)

<div class="topic-metadata">

**Author:** [@dnorton](https://www.ruby-forum.com/u/dnorton)\
**Replies:** 3\
**Last updated:** [February 7, 2006, 2:06am UTC](https://www.ruby-forum.com/t/intros-to-python-for-rubyists/101753 "2006-02-07T02:06:59Z")

</div>

Hi all, Don’t worry, I’m not jumping ship, I’m just going to have to do a project for a class in Python and I want to give myself as large an advantage as possible. Does anyone have any Python tutorials that explain …

---

## [Creating classes only when needed?](https://www.ruby-forum.com/t/creating-classes-only-when-needed/101804)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 2\
**Last updated:** [February 7, 2006, 1:36am UTC](https://www.ruby-forum.com/t/creating-classes-only-when-needed/101804 "2006-02-07T01:36:34Z")

</div>

Hello, I am fairly new to ruby and need some help I am structuring my code using classes. The application I work on requires input data. This data may require all or some of the classes I create. Instead of having a…

---

## [Ruby subverion bindings](https://www.ruby-forum.com/t/ruby-subverion-bindings/100729)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 7, 2006, 1:33am UTC](https://www.ruby-forum.com/t/ruby-subverion-bindings/100729 "2006-02-07T01:33:33Z")

</div>

Has anybody used them? I’m talking about the new 1.3 release. The python examples in the subversion book don’t exactly help and I am sorely missing installation instructions. I have 0 (read this zero) SWIG experience …

---

## [Debian, gem(?) , and libraries](https://www.ruby-forum.com/t/debian-gem-and-libraries/100923)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [February 7, 2006, 1:05am UTC](https://www.ruby-forum.com/t/debian-gem-and-libraries/100923 "2006-02-07T01:05:55Z")

</div>

Hello all, I’m using Ruby on Debian GNU/Linux. Ruby itself and its standard library were installed as Debian packages. Now, I want to add Ruby libraries which aren’t standard part of Ruby. What do people do? I h…

---

## [Install mysql-ruby on RHEL](https://www.ruby-forum.com/t/install-mysql-ruby-on-rhel/101054)

<div class="topic-metadata">

**Author:** [@Richard\_Navarrete](https://www.ruby-forum.com/u/Richard_Navarrete)\
**Replies:** 10\
**Last updated:** [February 7, 2006, 1:05am UTC](https://www.ruby-forum.com/t/install-mysql-ruby-on-rhel/101054 "2006-02-07T01:05:55Z")

</div>

Howdy, I’ve successfully installed ruby-rails-mysql on my powerbook, on our Windows server, but am missing something on our Linux box. Ruby is installed (1.8.4), so is rails (0.8.11). And I got the “Congratulations,…

---

## [Ruby on Rails -- WEBrick OK, Apache isn't](https://www.ruby-forum.com/t/ruby-on-rails-webrick-ok-apache-isnt/101803)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 7, 2006, 12:17am UTC](https://www.ruby-forum.com/t/ruby-on-rails-webrick-ok-apache-isnt/101803 "2006-02-07T00:17:05Z")

</div>

I’m trying to get a Ruby on Rails application to work under Apache. It works fine when run under WEBrick (via “ruby script/server”). I copied the “public” directory (as well as “lib”, “app”, and “config”) to my pref…

---

## [Re: FXRuby question](https://www.ruby-forum.com/t/re-fxruby-question/101802)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 7, 2006, 12:13am UTC](https://www.ruby-forum.com/t/re-fxruby-question/101802 "2006-02-07T00:13:44Z")

</div>

Dear lopex, dear all, thank you for suggesting FXSplashWindow. Unfortunately, I have not been able to use it so far – these are my very first steps in FXRuby (not in Ruby, though). The code below is combined from the…

---

## [Logging with rake](https://www.ruby-forum.com/t/logging-with-rake/53159)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 7\
**Last updated:** [February 7, 2006, 12:06am UTC](https://www.ruby-forum.com/t/logging-with-rake/53159 "2006-02-07T00:06:41Z")

</div>

Hi list, Howto capture stdout + stderr from jobs invoked with rake? I run rake from cron. I have a def log(msg) str = Time.now.to\_s + ": " + msg + “\\n” file = $settings\[‘logfile’\] File.open(file, ‘a+’) {|f| f.writ…

---

## [Korean Code Page Support for REXML](https://www.ruby-forum.com/t/korean-code-page-support-for-rexml/101755)

<div class="topic-metadata">

**Author:** [@robert.wilder](https://www.ruby-forum.com/u/robert.wilder)\
**Replies:** 0\
**Last updated:** [February 6, 2006, 11:24pm UTC](https://www.ruby-forum.com/t/korean-code-page-support-for-rexml/101755 "2006-02-06T23:24:09Z")

</div>

Hello, I am working with localized information for several languages (German, French, Japanese) and have written a lot of ruby tools to localize my software to support these languages. Now I have to add support for K…

---

## [Inheritence of aliases methods - suprise!](https://www.ruby-forum.com/t/inheritence-of-aliases-methods-suprise/53467)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 6, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/inheritence-of-aliases-methods-suprise/53467 "2006-02-06T22:59:48Z")

</div>

this suprised me today: harp:~ \> cat a.rb class A def assertion raise NotImplementedError end alias\_method "assertion?", "assertion" end class B \< A def assertion true end end B::new.ass…

---

## [Attention, all YAML fans](https://www.ruby-forum.com/t/attention-all-yaml-fans/101704)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 0\
**Last updated:** [February 6, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/attention-all-yaml-fans/101704 "2006-02-06T22:10:27Z")

</div>

Attention, all YAML fans! You might want to know I couldn’t bear this shameful omission, and added a YAML representation of having two cows to demonstrate just how more readable and concise it is than both XML varian…

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

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