# Ruby

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

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

---

## [Weird deadlock message](https://www.ruby-forum.com/t/weird-deadlock-message/143398)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [July 18, 2008, 6:39am UTC](https://www.ruby-forum.com/t/weird-deadlock-message/143398 "2008-07-18T06:39:44Z")

</div>

So…I run an app with three threads running, it churns for awhile, then… ./lib/logger.rb:88:in flush': Thread(0x346fc): deadlock (fatal) from ./lib/logger.rb:88:inlog’ from driver.rb:547:in go' from driver.rb:784:indoA…

---

## [CGI anomaly associated with access to a Rails Active Record outside of rails](https://www.ruby-forum.com/t/cgi-anomaly-associated-with-access-to-a-rails-active-record-outside-of-rails/143069)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [July 18, 2008, 6:38am UTC](https://www.ruby-forum.com/t/cgi-anomaly-associated-with-access-to-a-rails-active-record-outside-of-rails/143069 "2008-07-18T06:38:58Z")

</div>

So, I’m not sure I will have the energy to do other than just mention this with barely specific details, and I already understand that this kind of thing is expected to be a little ticklish at this time, but… I’m us…

---

## [Current File in Mac](https://www.ruby-forum.com/t/current-file-in-mac/143406)

<div class="topic-metadata">

**Author:** [@superfly](https://www.ruby-forum.com/u/superfly)\
**Replies:** 0\
**Last updated:** [July 18, 2008, 6:18am UTC](https://www.ruby-forum.com/t/current-file-in-mac/143406 "2008-07-18T06:18:03Z")

</div>

Hello everyone, On windows you can do something like this and it pulls that file from the current file the program is located in. “/arrays/concept\_art\_t.yaml” I was wondering if there is anyway to do the same thing o…

---

## [Force timeout net/http](https://www.ruby-forum.com/t/force-timeout-net-http/143321)

<div class="topic-metadata">

**Author:** [@al\_S](https://www.ruby-forum.com/u/al_S)\
**Replies:** 1\
**Last updated:** [July 18, 2008, 2:38am UTC](https://www.ruby-forum.com/t/force-timeout-net-http/143321 "2008-07-18T02:38:25Z")

</div>

Hi List, I’m using net/http module to connect to a list of hosts. How can I force to connect to next host of the list after a timeout? http.open\_timeout = timeout http.read\_timeout = timeout This doesn’t works! :fro…

---

## [Loading ftools.rb automatically](https://www.ruby-forum.com/t/loading-ftools-rb-automatically/143267)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 18, 2008, 1:55am UTC](https://www.ruby-forum.com/t/loading-ftools-rb-automatically/143267 "2008-07-18T01:55:51Z")

</div>

I have Ruby 1.8.5 patch-level xyz and Ruby 1.8.5 with no patch-level on two different machines. The newer version of Ruby that has the patch info autoloads ftools.rb automatically where as the older version of Ruby do…

---

## [Symbolify (#169)](https://www.ruby-forum.com/t/symbolify-169/143386)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/symbolify-169/143386 "2008-07-17T23:21:57Z")

</div>

Apologies for being a bit late… Here’s this week’s summary. The primary point of this week’s quiz was to highlight the ? pseudo-operator… Simply, a character preceded by ? is converted to its ASCII value. (I hesitate…

---

## [Broken Gem installation under OS X 10.5](https://www.ruby-forum.com/t/broken-gem-installation-under-os-x-10-5/143314)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/broken-gem-installation-under-os-x-10-5/143314 "2008-07-17T22:57:22Z")

</div>

Hi, and sorry if this has been asked before - couldn’t find a good solution for the following problem yet… I can’t get some of my gems to work and I know there has been trouble with this and Leopard before - but firs…

---

## [Java and threading](https://www.ruby-forum.com/t/java-and-threading/143275)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 6\
**Last updated:** [July 17, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/java-and-threading/143275 "2008-07-17T22:43:54Z")

</div>

hello, I am seeing some issues where a hung up java process is consuming 100% cpu on 1 of 4 CPUs. This is hanging the JRuby app. Shouldn’t java be threading future requests to be used on other CPUs ? Cpu0 : 0.0…

---

## [Symbolify (#169)](https://www.ruby-forum.com/t/symbolify-169/142799)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 77\
**Last updated:** [July 17, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/symbolify-169/142799 "2008-07-17T21:04:17Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on th…

---

## [Strange issue with jruby rack & rails production settings](https://www.ruby-forum.com/t/strange-issue-with-jruby-rack-rails-production-settings/143351)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 5\
**Last updated:** [July 17, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/strange-issue-with-jruby-rack-rails-production-settings/143351 "2008-07-17T20:57:50Z")

</div>

I need to do more sleuthing on this, but for some reason when I set our app to run in production mode in rails I’m getting this error (see below). Running in development mode is fine. The file its complaining about is…

---

## [App-to-app message exchange](https://www.ruby-forum.com/t/app-to-app-message-exchange/143280)

<div class="topic-metadata">

**Author:** [@karlshea](https://www.ruby-forum.com/u/karlshea)\
**Replies:** 1\
**Last updated:** [July 17, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/app-to-app-message-exchange/143280 "2008-07-17T19:46:04Z")

</div>

I’m probably not using the correct terms, so please excuse… I need to have a ruby app that loops and keeps a serial port open, essentially listening every second or so. then I need to send messages to that serial port…

---

## [Why is this cause an infinite loop?](https://www.ruby-forum.com/t/why-is-this-cause-an-infinite-loop/143352)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 3\
**Last updated:** [July 17, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/why-is-this-cause-an-infinite-loop/143352 "2008-07-17T19:36:40Z")

</div>

Why is this cause an infinite loop? class X def m; “m”; end end class Y \< X def self.method\_added(sym) alias\_method("\_\_#{sym}", sym) remove\_method(sym) end end class Y def m; m; end end Y.new.\_\_m T.

---

## [Barby 0.2.0](https://www.ruby-forum.com/t/barby-0-2-0/143261)

<div class="topic-metadata">

**Author:** [@Tore\_D](https://www.ruby-forum.com/u/Tore_D)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/barby-0-2-0/143261 "2008-07-17T18:00:35Z")

</div>

Barby 0.2.0 has been released. http://tore.darell.no/posts/barby\_0\_2 http://barby.rubyforge.org/ Below is a copy of the announcement from my blog. Barby 0.2 has support for two-dimensional barcodes, and all existing …

---

## [Getting a java connection from ar-jdbc](https://www.ruby-forum.com/t/getting-a-java-connection-from-ar-jdbc/143357)

<div class="topic-metadata">

**Author:** [@rjst](https://www.ruby-forum.com/u/rjst)\
**Replies:** 1\
**Last updated:** [July 17, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/getting-a-java-connection-from-ar-jdbc/143357 "2008-07-17T17:44:11Z")

</div>

Hi, I'm using rails with AR-JDBC. Since my rails apps uses some libraries that require I give them jdbc connections, I’m wondering if there’s a way to get a java db connection from it ? thanks, Ricardo To unsubscri…

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 7\
**Last updated:** [July 17, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/code-review-unni1/143166 "2008-07-17T17:29:32Z")

</div>

tfpt review “/shelveset:unni1;REDMOND\\jdeville” Comment : Patch from Unnikrishnan N. to properly handle File.zero? for ‘NUL’

---

## [Problem with Array](https://www.ruby-forum.com/t/problem-with-array/143349)

<div class="topic-metadata">

**Author:** [@drweb](https://www.ruby-forum.com/u/drweb)\
**Replies:** 1\
**Last updated:** [July 17, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/problem-with-array/143349 "2008-07-17T17:26:01Z")

</div>

Hi! If some one can help me to fix this code. I want to store the value of faulty\_array\[num\] in faulty\_line\[i\] and correct\_array\[num\] in correct\_line\[i\] so that I can access them at later stage. I will be thankful. ……

---

## [Logging 0.9.0 (the "Monkeyful Chimptacular" release)](https://www.ruby-forum.com/t/logging-0-9-0-the-monkeyful-chimptacular-release/143300)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 3\
**Last updated:** [July 17, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/logging-0-9-0-the-monkeyful-chimptacular-release/143300 "2008-07-17T16:42:19Z")

</div>

logging version 0.9.0 by Tim P. http://logging.rubyforge.org/ (the “Monkeyful Chimptacular” release) == DESCRIPTION Logging is a flexible logging library for use in Ruby programs based on the design of Java’s log4…

---

## [RE: Re: \[jruby-dev\] Re: \[jruby-user\] JRuby 1.1.3 by end of week...Nominate problems here](https://www.ruby-forum.com/t/re-re-jruby-dev-re-jruby-user-jruby-1-1-3-by-end-of-week-nominate-problems-here/143306)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 5\
**Last updated:** [July 17, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/re-re-jruby-dev-re-jruby-user-jruby-1-1-3-by-end-of-week-nominate-problems-here/143306 "2008-07-17T16:33:48Z")

</div>

Will the release still be executed this week? I can’t wait to download it. regards

---

## [Help with array](https://www.ruby-forum.com/t/help-with-array/143339)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/help-with-array/143339 "2008-07-17T15:50:56Z")

</div>

Hello team, I am having an issue with the code below. Could you please take a quick look at the highlighted and commented code below and let me know what’s wrong? Thank you Victor input.file group.was=hostname1 ho…

---

## [Sysread error](https://www.ruby-forum.com/t/sysread-error/143326)

<div class="topic-metadata">

**Author:** [@al\_S](https://www.ruby-forum.com/u/al_S)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/sysread-error/143326 "2008-07-17T15:50:07Z")

</div>

Hi List, I wrote a simple script that import a file list of hosts and try to connect. Before the end of the file the script exits with this error: /usr/lib/ruby/1.8/net/protocol.rb:133:in \`sysread’: end of file reach…

---

## [Rdoc defines Hash#method\_missing](https://www.ruby-forum.com/t/rdoc-defines-hash-method-missing/143328)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [July 17, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/rdoc-defines-hash-method-missing/143328 "2008-07-17T12:47:07Z")

</div>

e$B1sF#$G$9!#e(B make test-all e$B$N0J2\<$N%(%i!\<$K$D$$$F$G$9!#e(B Error: test\_starttls(IMAPTest): IOError: closed stream /home/mame/work/ruby19/ruby/.ext/common/openssl/buffering.rb:240:in close' /home/mame/work/r…

---

## [2 questions about my array/range](https://www.ruby-forum.com/t/2-questions-about-my-array-range/143213)

<div class="topic-metadata">

**Author:** [@kain\_nobel](https://www.ruby-forum.com/u/kain_nobel)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/2-questions-about-my-array-range/143213 "2008-07-17T12:11:53Z")

</div>

Okay, so I wrote a script that’ll allow the game player to jump with the touch of a button. This script, I wanted a method that’ll adjust the distance in which the game player jumps, based on the farthest passible til…

---

## [JRubyScriptEngine.invokeMethod](https://www.ruby-forum.com/t/jrubyscriptengine-invokemethod/142672)

<div class="topic-metadata">

**Author:** [@SSSS\_SSSSS\_SS\_SSS\_S](https://www.ruby-forum.com/u/SSSS_SSSSS_SS_SSS_S)\
**Replies:** 4\
**Last updated:** [July 17, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/jrubyscriptengine-invokemethod/142672 "2008-07-17T12:07:53Z")

</div>

Hi, I had couple of queries around invokeMethod of JRubyScriptEngine. Can someone please help me with these? invokeMethod of Invocable interface does not take the Class of the method return type as parameter, henc…

---

## [Getting an object's class definition namespace](https://www.ruby-forum.com/t/getting-an-objects-class-definition-namespace/143320)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 11:15am UTC](https://www.ruby-forum.com/t/getting-an-objects-class-definition-namespace/143320 "2008-07-17T11:15:39Z")

</div>

In a program I module\_eval class definitions into a dynamically created namespace. To run support code later on I need to know the module it was defined in from an instance of the class. Is there any NICE way to repla…

---

## [Continue the execution of a ruby script after a shell comand](https://www.ruby-forum.com/t/continue-the-execution-of-a-ruby-script-after-a-shell-comand/143313)

<div class="topic-metadata">

**Author:** [@bezy44](https://www.ruby-forum.com/u/bezy44)\
**Replies:** 3\
**Last updated:** [July 17, 2008, 10:04am UTC](https://www.ruby-forum.com/t/continue-the-execution-of-a-ruby-script-after-a-shell-comand/143313 "2008-07-17T10:04:20Z")

</div>

Hi, I have a little problem,I will be grateful if someone can help me. So I have this script : puts ‘\*\*\* Beginning of the script ’ path = ‘C:\\another\_script.rb’ exec 'ruby '+path puts ' End of the script \*\*\*’ And …

---

## [Mms2r 2.0.5 Released](https://www.ruby-forum.com/t/mms2r-2-0-5-released/143315)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [July 17, 2008, 9:46am UTC](https://www.ruby-forum.com/t/mms2r-2-0-5-released/143315 "2008-07-17T09:46:00Z")

</div>

(FYI #1, http://peepcode.com/products/mms2r-pdf We wrote a PeepCode book for processing email and MMS using mms2r. We’ve included additional tips like daemonizing Rails to fetch and process email, and a simple email b…

---

## [Write multiple key/value to a row using cvs library](https://www.ruby-forum.com/t/write-multiple-key-value-to-a-row-using-cvs-library/143233)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 4:36am UTC](https://www.ruby-forum.com/t/write-multiple-key-value-to-a-row-using-cvs-library/143233 "2008-07-17T04:36:01Z")

</div>

Hi all, I have a hash containing multiple key/values. I want to wirte all key/value to the same row using cvs library. Is it possible to do that? Now I follow the example from the library and I can only write each ke…

---

## [Refreshing data displayed in browser every 24 hrs](https://www.ruby-forum.com/t/refreshing-data-displayed-in-browser-every-24-hrs/143216)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 4:15am UTC](https://www.ruby-forum.com/t/refreshing-data-displayed-in-browser-every-24-hrs/143216 "2008-07-17T04:15:32Z")

</div>

Hi, I want to refresh the data which is displaying in browser for every 24 hrs is there any solution… plz reply for ex: firstname i am displaying in browser i want to change the firstname every 24 hrs …

---

## [New to Ruby. Specific syntax question](https://www.ruby-forum.com/t/new-to-ruby-specific-syntax-question/143192)

<div class="topic-metadata">

**Author:** [@chonald](https://www.ruby-forum.com/u/chonald)\
**Replies:** 7\
**Last updated:** [July 17, 2008, 4:06am UTC](https://www.ruby-forum.com/t/new-to-ruby-specific-syntax-question/143192 "2008-07-17T04:06:10Z")

</div>

I’m reading through the PickAxe book right now. I’m new to programming, and more specifically, Ruby. Right now I’m looking at a line that says this: fib\_up\_to(1000) {|f| print f, “”} I’m curious about the parts of t…

---

## [Call for Talks - 8th. Jornadas Regionales de Software Libre](https://www.ruby-forum.com/t/call-for-talks-8th-jornadas-regionales-de-software-libre/143301)

<div class="topic-metadata">

**Author:** [@Matias\_Pablo\_B](https://www.ruby-forum.com/u/Matias_Pablo_B)\
**Replies:** 0\
**Last updated:** [July 17, 2008, 3:26am UTC](https://www.ruby-forum.com/t/call-for-talks-8th-jornadas-regionales-de-software-libre/143301 "2008-07-17T03:26:53Z")

</div>

Hi, Sorry about the spanish from below but the meeting is based on a spanish speaking country. Said this, I will like to invite anyone who desires to speak at the conference (English or spanish speaker, other language…

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

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