# Ruby

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

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

---

## [Code Review: Issues with Thread#kill and raising exception from ensure clause](https://www.ruby-forum.com/t/code-review-issues-with-thread-kill-and-raising-exception-from-ensure-clause/157365)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [January 10, 2009, 7:29am UTC](https://www.ruby-forum.com/t/code-review-issues-with-thread-kill-and-raising-exception-from-ensure-clause/157365 "2009-01-10T07:29:12Z")

</div>

tfpt review “/shelveset:kill;REDMOND\\sborde” Comment : Added more tests for Thread#kill, and fixed bugs that were exposed. Throwing an exception from the ensure clause exposes new code paths. Ruby allows Thread#kill…

---

## [IronRuby and XNA. Super and Generics](https://www.ruby-forum.com/t/ironruby-and-xna-super-and-generics/154170)

<div class="topic-metadata">

**Author:** [@Dudu\_BaiSSSSo](https://www.ruby-forum.com/u/Dudu_BaiSSSSo)\
**Replies:** 27\
**Last updated:** [January 10, 2009, 4:41am UTC](https://www.ruby-forum.com/t/ironruby-and-xna-super-and-generics/154170 "2009-01-10T04:41:29Z")

</div>

Hi guys! Im playing with XNA trying to run the simplest xna example: To show a SpriteBatch on screen. After some tests I found some problems: 1- The “Microsoft::Xna::Framework::Game” expects that we implement some m…

---

## [Finding a range of lines from a text document](https://www.ruby-forum.com/t/finding-a-range-of-lines-from-a-text-document/157339)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 3\
**Last updated:** [January 10, 2009, 4:21am UTC](https://www.ruby-forum.com/t/finding-a-range-of-lines-from-a-text-document/157339 "2009-01-10T04:21:33Z")

</div>

Can anyone help me? ill try and keep it short and to the point. wish : to be able to grab select lines from a text document which meet some criteria. current idea: simply read the file as one big string and use a rege…

---

## [Misleading error message calling private method](https://www.ruby-forum.com/t/misleading-error-message-calling-private-method/157337)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 3\
**Last updated:** [January 10, 2009, 12:48am UTC](https://www.ruby-forum.com/t/misleading-error-message-calling-private-method/157337 "2009-01-10T00:48:04Z")

</div>

Hello, IronRuby throws misleading error message, when I call private method of the C# class. C# public class Cls { private void private\_method() {} } Ruby: Cls.new.private\_method Output: #\<ArgumentError: wrong…

---

## [Howto for compiling in 32-bit?](https://www.ruby-forum.com/t/howto-for-compiling-in-32-bit/157361)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/howto-for-compiling-in-32-bit/157361 "2009-01-09T23:20:46Z")

</div>

Anybody know of a HOWTO for compiling a 32-bit binary \[like ruby\] in a 64-bit OS like…ubuntu on a 64 bit machine? Thanks much. -r

---

## [Using a method as input to another method](https://www.ruby-forum.com/t/using-a-method-as-input-to-another-method/157351)

<div class="topic-metadata">

**Author:** [@phoenixia](https://www.ruby-forum.com/u/phoenixia)\
**Replies:** 4\
**Last updated:** [January 9, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/using-a-method-as-input-to-another-method/157351 "2009-01-09T22:16:48Z")

</div>

Hi, I was wondering if it was possible to do something like the following: class A def b stuff end def c stuff end def d(x) self.x end end Then use thing.d(a) with thing an instance of A? Basically, given a…

---

## [Calling overloaded methods](https://www.ruby-forum.com/t/calling-overloaded-methods/157342)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/calling-overloaded-methods/157342 "2009-01-09T21:12:03Z")

</div>

Hello, C# public class Cls { public void foo(object a) { Console.WriteLine(“foo #1”); } public void foo(object\[\] a) { Console.WriteLine(“foo #2”); } } Ruby: Cls.new.foo(7) Cls.new.foo(\[3, 4\]) Output: foo #1 …

---

## [\[SECURITY\] Rack 0.9.1, a modular Ruby webserver interface](https://www.ruby-forum.com/t/security-rack-0-9-1-a-modular-ruby-webserver-interface/157350)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/security-rack-0-9-1-a-modular-ruby-webserver-interface/157350 "2009-01-09T18:01:54Z")

</div>

Hello, Today we release Rack 0.9.1. This release is a security release, it only fixes directory traversal exploits in Rack::File and Rack::Directory, dating back to Rack 0.3. Updating is highly recommended if you u…

---

## [Updating to gem version 1.3.1 on Ubuntu 8.04](https://www.ruby-forum.com/t/updating-to-gem-version-1-3-1-on-ubuntu-8-04/157344)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/updating-to-gem-version-1-3-1-on-ubuntu-8-04/157344 "2009-01-09T17:51:25Z")

</div>

I see someone else is having problems updating to gem version 1.3.1 on Ubuntu 8.04. But my problem is different. I’ve updated OK and in the gem list --local I see ruby-gems-update 1.3.1 but gem -v still returns 1.2.0.…

---

## [How to realize that a TCPSocket doesn't give any more lines as answer?](https://www.ruby-forum.com/t/how-to-realize-that-a-tcpsocket-doesnt-give-any-more-lines-as-answer/157242)

<div class="topic-metadata">

**Author:** [@saboteur](https://www.ruby-forum.com/u/saboteur)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/how-to-realize-that-a-tcpsocket-doesnt-give-any-more-lines-as-answer/157242 "2009-01-09T15:22:39Z")

</div>

Hi, I’m writing a little tcp-client which connects to a tcp-server, sends a command and recieves an answer. If I do something like that: #!/usr/bin/env ruby $VERBOSE=true require ‘socket’ … begin socket = TCPSock…

---

## [A quick Mac OSX question](https://www.ruby-forum.com/t/a-quick-mac-osx-question/157322)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/a-quick-mac-osx-question/157322 "2009-01-09T13:30:46Z")

</div>

Does mac osx supports the “2\>&1” syntax to redirect stderr? In other words, does the following line of code work as expected in mac osx? output = some\_command 2\>&1

---

## [Detecting kill messages](https://www.ruby-forum.com/t/detecting-kill-messages/157327)

<div class="topic-metadata">

**Author:** [@masterperas](https://www.ruby-forum.com/u/masterperas)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/detecting-kill-messages/157327 "2009-01-09T13:26:04Z")

</div>

If im running a console application, something simple looping on the user input, is there anyway i can detect that the application is shutting down from a OS kill message?

---

## [Seconds between two dates](https://www.ruby-forum.com/t/seconds-between-two-dates/157326)

<div class="topic-metadata">

**Author:** [@fredini](https://www.ruby-forum.com/u/fredini)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/seconds-between-two-dates/157326 "2009-01-09T12:55:26Z")

</div>

How could I get the seconds between two dates ion Ruby? I need the seconds remaining from the current date and a date in the future. date1: current date, for example 2009-01-09 17:00:00 date 2 : 2009-05-08 17:00:00 H…

---

## [Disable\\enable Adobe Flash in the browser](https://www.ruby-forum.com/t/disable-enable-adobe-flash-in-the-browser/157325)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 12:27pm UTC](https://www.ruby-forum.com/t/disable-enable-adobe-flash-in-the-browser/157325 "2009-01-09T12:27:54Z")

</div>

Hi, Can anyone give me some direction as to whether it is possible to disable\\enable Adobe Flash in IE and Firefox through Ruby? Regards Aidy

---

## [Local variables: Ruby vs. IronRuby difference?](https://www.ruby-forum.com/t/local-variables-ruby-vs-ironruby-difference/157271)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 5\
**Last updated:** [January 9, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/local-variables-ruby-vs-ironruby-difference/157271 "2009-01-09T12:22:49Z")

</div>

Hello, Ruby: irb(main):001:0\> foo = 3 =\> 3 irb(main):002:0\> foo =\> 3 IronRuby: foo = 3 =\> 3 foo :0: undefined method \`foo’ for main:Object (NoMethodError) Any idea, why this error thrown by IronRuby? …

---

## [SVN \_\_AND\_\_ Git revisions pushed](https://www.ruby-forum.com/t/svn-and-git-revisions-pushed/157309)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 11:56am UTC](https://www.ruby-forum.com/t/svn-and-git-revisions-pushed/157309 "2009-01-09T11:56:07Z")

</div>

My changes went in this morning, so I have pushed SVN 183 and Git revision 69815c7. Two things: Git may be in a bad state due to CRLF issues and casing. Can I get a confirmation that it compiles and runs? T…

---

## [Detect when a Ruby program exits](https://www.ruby-forum.com/t/detect-when-a-ruby-program-exits/157320)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 11:50am UTC](https://www.ruby-forum.com/t/detect-when-a-ruby-program-exits/157320 "2009-01-09T11:50:15Z")

</div>

Hi all, Is there a way to have your code notified when a Ruby process is terminated? I’m looking for a way to serialize a bunch of in-memory data to disk automatically when a Rails app is shut down. I might be better…

---

## [About Array methods](https://www.ruby-forum.com/t/about-array-methods/157278)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 10:10am UTC](https://www.ruby-forum.com/t/about-array-methods/157278 "2009-01-09T10:10:48Z")

</div>

l = \[1,2,3,4,5\] head = l\[0…2\] p head # =\> \[1,2,3\] p l # =\> \[1,2,3,4,5\] I want ‘\[4,5\]’ Is that method in Array?

---

## [Code Review: rakefix2](https://www.ruby-forum.com/t/code-review-rakefix2/157303)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 9:39am UTC](https://www.ruby-forum.com/t/code-review-rakefix2/157303 "2009-01-09T09:39:08Z")

</div>

FYI, Going in via direct commit tfpt review “/shelveset:rakefix2;REDMOND\\jdeville” Comment : More changes for git

---

## [ActiveFacts 0.7.0 released](https://www.ruby-forum.com/t/activefacts-0-7-0-released/157286)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 6:00am UTC](https://www.ruby-forum.com/t/activefacts-0-7-0-released/157286 "2009-01-09T06:00:46Z")

</div>

After two years in stealth mode, ActiveFacts is ready for you to try. This project implements the CQL language for Semantic Modeling. This enables your data to be designed, expressed and queried in a completely natura…

---

## [Rhodes 0.2 released](https://www.ruby-forum.com/t/rhodes-0-2-released/157287)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 5:25am UTC](https://www.ruby-forum.com/t/rhodes-0-2-released/157287 "2009-01-09T05:25:38Z")

</div>

0.2 Release of Rhodes – the open source mobile application framework Rhomobile announces the 0.2 release of Rhodes, an open source framework for building apps for smartphone operating systems: iPhone, Windows Mobile, …

---

## [Rake-compiler 0.3.1 Released](https://www.ruby-forum.com/t/rake-compiler-0-3-1-released/157279)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 4:06am UTC](https://www.ruby-forum.com/t/rake-compiler-0-3-1-released/157279 "2009-01-09T04:06:42Z")

</div>

rake-compiler version 0.3.1 has been released! http://github.com/luislavena/rake-compiler http://rubyforge.org/projects/rake-compiler = rake-compiler rake-compiler aims to help Gem developers while dealing with Ruby …

---

## [Re: local variables: Ruby vs. IronRuby difference?](https://www.ruby-forum.com/t/re-local-variables-ruby-vs-ironruby-difference/157276)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 2:57am UTC](https://www.ruby-forum.com/t/re-local-variables-ruby-vs-ironruby-difference/157276 "2009-01-09T02:57:38Z")

</div>

I’ll be pushing it out tonight. JD

---

## [Code factoring problem](https://www.ruby-forum.com/t/code-factoring-problem/157254)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [January 9, 2009, 1:41am UTC](https://www.ruby-forum.com/t/code-factoring-problem/157254 "2009-01-09T01:41:42Z")

</div>

Hi all, I use FxRuby to do some GUI programing. I define a method to handle the same stuff if a button is either selected(SEL\_COMMAND) or ‘enter’ key is pressed (SEL\_KEYPRESS). Since the codes for each event are the …

---

## [Ruby & Windows and Dir() EINVAL bug?](https://www.ruby-forum.com/t/ruby-windows-and-dir-einval-bug/157232)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [January 9, 2009, 12:55am UTC](https://www.ruby-forum.com/t/ruby-windows-and-dir-einval-bug/157232 "2009-01-09T00:55:19Z")

</div>

Hello, I am using Ruby 1.8.6-26 on Windows. I have this little test script: system(“dir x:\\.\\Radeloff\\Projects\\DATA\\NLCD\_2001\\landcover \\nlcd\_fg11”) serverDirName = “x:/./Radeloff/Projects/DATA\_NLCD\_2001/landcover/ …

---

## [Passing to with drb](https://www.ruby-forum.com/t/passing-to-with-drb/157219)

<div class="topic-metadata">

**Author:** [@Larz](https://www.ruby-forum.com/u/Larz)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/passing-to-with-drb/157219 "2009-01-08T23:05:43Z")

</div>

I’ve been finding it easiest to pass hashes and arrays to DRb processes because of what it can marshal. It would be nice if I could pass a Struct or something as hash notation is extra verbose and I’d like to be able …

---

## [Code Review: rakefixes](https://www.ruby-forum.com/t/code-review-rakefixes/157259)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/code-review-rakefixes/157259 "2009-01-08T22:39:18Z")

</div>

FYI. Going in as a direct commit. tfpt review “/shelveset:rakefixes;REDMOND\\jdeville” Comment : fixes some versioning and file ignores for Git integration

---

## [Re: a good career choice?](https://www.ruby-forum.com/t/re-a-good-career-choice/157241)

<div class="topic-metadata">

**Author:** [@imhotep\_al-basiel](https://www.ruby-forum.com/u/imhotep_al-basiel)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/re-a-good-career-choice/157241 "2009-01-08T22:16:57Z")

</div>

c++ /java -vb-will get you work always ----- Original Message ----- From: “Tim G.” To: removed\_email\_address@domain.invalid Subject: Re: a good career choice ? Date: Fri, 9 Jan 2009 03:04:44 +0900 Larz wrote: On …

---

## [The 'other' mailing list](https://www.ruby-forum.com/t/the-other-mailing-list/157246)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/the-other-mailing-list/157246 "2009-01-08T21:49:55Z")

</div>

I know this is the wrong place but I can’t subscribe to the rails mailing list from http://lists.rubyonrails.org/mailman/listinfo/rails I’ve been trying for a few days now but I am getting no response. Could someone p…

---

## [RD -\> RDoc conversion](https://www.ruby-forum.com/t/rd-rdoc-conversion/157231)

<div class="topic-metadata">

**Author:** [@Jakub\_PavlSSS\_k\_jn](https://www.ruby-forum.com/u/Jakub_PavlSSS_k_jn)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/rd-rdoc-conversion/157231 "2009-01-08T21:05:42Z")

</div>

Good evening (at least in central Europe), does anybody know about a tool which converts RD documentation to RDoc? I mean inline documentation in source files. It doesn’t have to have any advanced features - convertin…

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

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