# Ruby

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

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

---

## [Ruby TKentry](https://www.ruby-forum.com/t/ruby-tkentry/116603)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 4\
**Last updated:** [October 13, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/ruby-tkentry/116603 "2007-10-13T22:56:25Z")

</div>

So, i have been programming for about a month or so and i decided to try out a GUI for some of my programs. I just started using ruby tk. I found some tutroials, but there not very detailed. I have been fooling around…

---

## [Migrating RubyForge to new hardware](https://www.ruby-forum.com/t/migrating-rubyforge-to-new-hardware/116825)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 6\
**Last updated:** [October 13, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/migrating-rubyforge-to-new-hardware/116825 "2007-10-13T20:44:11Z")

</div>

Hello all - We’re migrating RubyForge to a new server this evening. This will mean a spot of downtime for various things, but hopefully not too much. Thanks to Tim B. for getting us a nice new server! Yours, Tom

---

## [Better way to kill files?](https://www.ruby-forum.com/t/better-way-to-kill-files/117139)

<div class="topic-metadata">

**Author:** [@corywilkerson](https://www.ruby-forum.com/u/corywilkerson)\
**Replies:** 3\
**Last updated:** [October 13, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/better-way-to-kill-files/117139 "2007-10-13T20:43:00Z")

</div>

Purpose here is to find all files \> 5 hours old in a directory and wipe them… Of course I could just write a shell script but I wanted to leverage ruby…or, rather, needed to leverage ruby…not real familiar with the F…

---

## [Syntax error when redefining \>\> operator to take a block](https://www.ruby-forum.com/t/syntax-error-when-redefining-operator-to-take-a-block/117028)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 8\
**Last updated:** [October 13, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/syntax-error-when-redefining-operator-to-take-a-block/117028 "2007-10-13T20:15:29Z")

</div>

I’m trying to redefine the \>\> operator for a particular class such that it takes a block as its argument. It works if I invoke the redifined \>\> operator using “.” syntax, but causes a syntax error otherwise. This code…

---

## [Finding shared elements between to arrays](https://www.ruby-forum.com/t/finding-shared-elements-between-to-arrays/116809)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 15\
**Last updated:** [October 13, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/finding-shared-elements-between-to-arrays/116809 "2007-10-13T20:06:06Z")

</div>

Hi I am wondering if there is a really smart built in way to get an array which has the elements shared by two other arrays? I made two “solutions” myself, but I am wondering what other people are using, and if there…

---

## [Launching torrents](https://www.ruby-forum.com/t/launching-torrents/117132)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/launching-torrents/117132 "2007-10-13T19:40:57Z")

</div>

Hi, I’ve wrote a tiny program in Ruby to help me with my torrents. Here is my blog post on that: This is my second program in Ruby and I would like to know what could be improved about it. Performance is not an is…

---

## [print$B$G$N(B$,$B$N5sF0(B](https://www.ruby-forum.com/t/print-b-g-n-b-b-n5sf0-b/117136)

<div class="topic-metadata">

**Author:** [@eklerni](https://www.ruby-forum.com/u/eklerni)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/print-b-g-n-b-b-n5sf0-b/117136 "2007-10-13T19:09:20Z")

</div>

eklernie$B$G$9!#e(B e$B%j%U%!%l%s%9%^%K%e%"%kJT=8$K5$$E$$$?$3$H$K$D$$$F$N\<ALd$G$9!#e(B 1.9.0e$B$G$Oe(Bprinte$B$G$Ne(B$,e$B$N5sF0$,0J2\<$N$h$&$KJQ$o$C$F$$$^$9!#e(B $, = “” $\\ = “” print “input1”,“input2” #ruby 1.8.6 …

---

## [Jrubyc.bat](https://www.ruby-forum.com/t/jrubyc-bat/116967)

<div class="topic-metadata">

**Author:** [@rjst](https://www.ruby-forum.com/u/rjst)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/jrubyc-bat/116967 "2007-10-13T17:59:45Z")

</div>

Hi, Just noticed that there isn't an jrubyc.bat. By the way, does anyone have an ant or rake tak to call jrubyc ? thanks, Ricardo To unsubscribe from this list please visit: http://xircles.codehaus.org/manage\_emai…

---

## [Accessing Java HashMap with Integer keys](https://www.ruby-forum.com/t/accessing-java-hashmap-with-integer-keys/117135)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [October 13, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/accessing-java-hashmap-with-integer-keys/117135 "2007-10-13T17:48:13Z")

</div>

Hi: In the following program, the first ‘puts’ works but the second ‘puts’ returns a nil. If I am accessing a java HashMap that has java.lang.Integer keys, is there a simpler way to get values out of the map than t…

---

## [Anyone get the Arachno Ruby debugger working?](https://www.ruby-forum.com/t/anyone-get-the-arachno-ruby-debugger-working/92104)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 4\
**Last updated:** [October 13, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/anyone-get-the-arachno-ruby-debugger-working/92104 "2007-10-13T17:35:51Z")

</div>

I’ve downloaded a trial of Arachno Ruby and like it a lot. Code completion works exceptionally well compared to others I’ve tried and it’s a nice looking app. However, I can’t get the debugger to work. Anybody have an…

---

## [Strategy for unit testing user input?](https://www.ruby-forum.com/t/strategy-for-unit-testing-user-input/116292)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/strategy-for-unit-testing-user-input/116292 "2007-10-13T17:19:17Z")

</div>

Hi, I have a program that prompts the user on the command line to enter some data. What are some ways to unit test the method that obtains the input?

---

## [Create custom network packet](https://www.ruby-forum.com/t/create-custom-network-packet/117124)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 3\
**Last updated:** [October 13, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/create-custom-network-packet/117124 "2007-10-13T17:15:17Z")

</div>

hi @all I would like to create a custom network packet with: layer 2: ethernet layer 3: ip At first, I want to create a ip packet and set some header fields (for example the TOS-byte) by myself. After that, I take t…

---

## [ANN: English 0.1](https://www.ruby-forum.com/t/ann-english-0-1/117072)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 16\
**Last updated:** [October 13, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/ann-english-0-1/117072 "2007-10-13T15:47:33Z")

</div>

English 0.1 http://english.rubyforge.org The initial release of English has hit the streets. English is a Facets spin-off project --containing all the libraries related to working with the English language and langua…

---

## [Binding\_of\_caller](https://www.ruby-forum.com/t/binding-of-caller/116097)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 4\
**Last updated:** [October 13, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/binding-of-caller/116097 "2007-10-13T14:54:58Z")

</div>

Moin, moin! I didn’t find a topic which tells me, if a method “binding\_of\_caller” is planned for Ruby’s future. There was a method available via a library, but it doesn’t work anymore, because it was based on a bug (a…

---

## [Open-uri used by threads cause uninitialized constant OpenURI::Net](https://www.ruby-forum.com/t/open-uri-used-by-threads-cause-uninitialized-constant-openuri-net/116928)

<div class="topic-metadata">

**Author:** [@Ken\_Date](https://www.ruby-forum.com/u/Ken_Date)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/open-uri-used-by-threads-cause-uninitialized-constant-openuri-net/116928 "2007-10-13T13:34:52Z")

</div>

e$B$3$s$K$A$O!#0KC#$H?=$7$^$9!#e(B e$BJ#?t%9%l%C%I$Ge(B open-uri e$B$Ne(B open e$B$r;H$&$H!"e(B uninitialized constant OpenURI::Net (NameError) e$B$K$J$j$^$9!#e(B open-uri e$B$,%a%=%C%IFb$Ge(B net/http e$B$re(B requir…

---

## [IronRuby on Mono](https://www.ruby-forum.com/t/ironruby-on-mono/116580)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/ironruby-on-mono/116580 "2007-10-13T12:55:07Z")

</div>

If you want to compile or to run IronRuby on Mono, the following information should be useful. NAnt build file is available here: http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/ When you run rbx.exe after buil…

---

## [I don't like my code -- what can I do?](https://www.ruby-forum.com/t/i-dont-like-my-code-what-can-i-do/117090)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 7\
**Last updated:** [October 13, 2007, 12:38pm UTC](https://www.ruby-forum.com/t/i-dont-like-my-code-what-can-i-do/117090 "2007-10-13T12:38:10Z")

</div>

(Disclaimer: I’m using Rails, but my issue isn’t with Rails. I also find the quality of posts on the Ruby forum of slightly higher quality more frequently than the Rails side. Also, this is a long post…) I’m programmi…

---

## [Basic question: how to use Enumerable#each\_slice](https://www.ruby-forum.com/t/basic-question-how-to-use-enumerable-each-slice/117125)

<div class="topic-metadata">

**Author:** [@goal1860](https://www.ruby-forum.com/u/goal1860)\
**Replies:** 1\
**Last updated:** [October 13, 2007, 12:35pm UTC](https://www.ruby-forum.com/t/basic-question-how-to-use-enumerable-each-slice/117125 "2007-10-13T12:35:50Z")

</div>

This are examples from library documentation (1…10).each\_slice(3) {|a| p a} (1…10).each\_cons(3) {|a| p a} but when I run them in fxri, got such errors: undefined method \`each\_slice’ for 1…10:Range Do I need to requi…

---

## [Obfuscator for Ruby/RoR](https://www.ruby-forum.com/t/obfuscator-for-ruby-ror/116606)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 35\
**Last updated:** [October 13, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/obfuscator-for-ruby-ror/116606 "2007-10-13T12:08:54Z")

</div>

Hello, I need to make my code unreadable, in Java(j2me) i used some programs(obfuscators) to do it. does ruby has this? Thanks

---

## [HELP - From SQL to Ruby](https://www.ruby-forum.com/t/help-from-sql-to-ruby/116866)

<div class="topic-metadata">

**Author:** [@luciosan](https://www.ruby-forum.com/u/luciosan)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 11:15am UTC](https://www.ruby-forum.com/t/help-from-sql-to-ruby/116866 "2007-10-13T11:15:41Z")

</div>

Hi How I can execute this query on Ruby? SELECT \* FROM table\_1 T WHERE T.document\_id not in (SELECT distinct documnet\_id FROM binary\_files); Now, I execute without proble the second part of query (SELECT distinct …

---

## [SQLite version and sqlite3-ruby](https://www.ruby-forum.com/t/sqlite-version-and-sqlite3-ruby/117094)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 1\
**Last updated:** [October 13, 2007, 8:50am UTC](https://www.ruby-forum.com/t/sqlite-version-and-sqlite3-ruby/117094 "2007-10-13T08:50:46Z")

</div>

When i run a ruby script with a MacOS X 5MacPorts) version of SQLite (3.3.15) i get an error : SQLite3::SQLException: no such function: get\_zy\_string BUT this function is used successfully in my mobile phone, then, th…

---

## [Execution stops once exception is encountered](https://www.ruby-forum.com/t/execution-stops-once-exception-is-encountered/117120)

<div class="topic-metadata">

**Author:** [@vishwanath](https://www.ruby-forum.com/u/vishwanath)\
**Replies:** 3\
**Last updated:** [October 13, 2007, 7:16am UTC](https://www.ruby-forum.com/t/execution-stops-once-exception-is-encountered/117120 "2007-10-13T07:16:44Z")

</div>

Hi all, I am using ruby and watir to test my web application. I wanna run watir script 24 x 7 without stopping. The problem is that the ruby stops execution each time it encounters an exception for e.g if it fails to…

---

## [Jruby on Rails - Too many files open](https://www.ruby-forum.com/t/jruby-on-rails-too-many-files-open/116962)

<div class="topic-metadata">

**Author:** [@raughan](https://www.ruby-forum.com/u/raughan)\
**Replies:** 3\
**Last updated:** [October 13, 2007, 7:04am UTC](https://www.ruby-forum.com/t/jruby-on-rails-too-many-files-open/116962 "2007-10-13T07:04:27Z")

</div>

Hi, I have simple Rails app running on Jruby-1.0.1 on Tomcat 5 on Linux. Every 10 days or so, it crashes because the process has too many open files. I restarted my application two days ago, and this morning using ls…

---

## [Inter-Process Messaging](https://www.ruby-forum.com/t/inter-process-messaging/116841)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 33\
**Last updated:** [October 13, 2007, 5:29am UTC](https://www.ruby-forum.com/t/inter-process-messaging/116841 "2007-10-13T05:29:49Z")

</div>

What are the possibilities in ruby for passing information from one process to another? Specifically, I’m thinking of messaging between a parent process and its forked child. Right now I can think of some messaging pr…

---

## [Dasd](https://www.ruby-forum.com/t/dasd/117116)

<div class="topic-metadata">

**Author:** [@luu\_trung\_hieu](https://www.ruby-forum.com/u/luu_trung_hieu)\
**Replies:** 1\
**Last updated:** [October 13, 2007, 5:25am UTC](https://www.ruby-forum.com/t/dasd/117116 "2007-10-13T05:25:58Z")

</div>

sdsada

---

## [Generated codes](https://www.ruby-forum.com/t/generated-codes/116838)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 1\
**Last updated:** [October 13, 2007, 4:13am UTC](https://www.ruby-forum.com/t/generated-codes/116838 "2007-10-13T04:13:48Z")

</div>

There are some generated codes in IronRuby SVN. Are scripts to generate them available? FYI: For generated files under microsoft.sciprting, files under Src/Scripts in IronPython 2.0 Alpha 4 release can be used. But n…

---

## [IronRuby on Mono HOWTO](https://www.ruby-forum.com/t/ironruby-on-mono-howto/117114)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 0\
**Last updated:** [October 13, 2007, 4:10am UTC](https://www.ruby-forum.com/t/ironruby-on-mono-howto/117114 "2007-10-13T04:10:53Z")

</div>

Thanks to nudging by Charles, I’ve put together a HOWTO for IronRuby on Mono, describing my setup. I’m using NAnt for now until Rakefile is fixed. All relevant files are on the following address (and will be as I upda…

---

## [Wtf? gem command vanished](https://www.ruby-forum.com/t/wtf-gem-command-vanished/117030)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 15\
**Last updated:** [October 13, 2007, 4:03am UTC](https://www.ruby-forum.com/t/wtf-gem-command-vanished/117030 "2007-10-13T04:03:52Z")

</div>

Did gems change significantly recently? If not, my computer went nuts. – Giles B. Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com/

---

## [Calling protected super methods in inheritance heirachy](https://www.ruby-forum.com/t/calling-protected-super-methods-in-inheritance-heirachy/116946)

<div class="topic-metadata">

**Author:** [@simon\_jenkins](https://www.ruby-forum.com/u/simon_jenkins)\
**Replies:** 2\
**Last updated:** [October 13, 2007, 1:35am UTC](https://www.ruby-forum.com/t/calling-protected-super-methods-in-inheritance-heirachy/116946 "2007-10-13T01:35:59Z")

</div>

I recall a while ago some talk around calling protected methods in a parent java class from a child ruby class. The example was in relation to paintComponent and looked something like this class Cursor \< javax.swing…

---

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

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 1\
**Last updated:** [October 13, 2007, 1:05am UTC](https://www.ruby-forum.com/t/version-2/117103 "2007-10-13T01:05:33Z")

</div>

What features are supposedly in version 2 of Ruby? -Ron

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

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