# Ruby

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

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

---

## [Rails benchmarks for JRuby](https://www.ruby-forum.com/t/rails-benchmarks-for-jruby/138211)

<div class="topic-metadata">

**Author:** [@Tyler\_J](https://www.ruby-forum.com/u/Tyler_J)\
**Replies:** 13\
**Last updated:** [May 29, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/rails-benchmarks-for-jruby/138211 "2008-05-29T16:18:10Z")

</div>

Hello everyone, I put together the beginnings of a rails benchmark suite in response to some discussions on the list. I don’t have a ton of bench suites right now as I haven’t been very successful in identifying any …

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/138967)

<div class="topic-metadata">

**Author:** [@dirk](https://www.ruby-forum.com/u/dirk)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/unsubscribe/138967 "2008-05-29T15:45:38Z")

</div>

unsubscribe

---

## [No joy linking java classes](https://www.ruby-forum.com/t/no-joy-linking-java-classes/138965)

<div class="topic-metadata">

**Author:** [@Meredith\_Gregory](https://www.ruby-forum.com/u/Meredith_Gregory)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/no-joy-linking-java-classes/138965 "2008-05-29T15:16:03Z")

</div>

JRubycons, i’m trying to call – from jruby – a java class i’ve developed. i’ve got the class archived in a jar file; but, every procedure i can find for using java code from jruby fails. i’ve included my latest atte…

---

## [Looking for a way to access ActiveRecord data in a rails app from another non-rails app with $SAFE=1](https://www.ruby-forum.com/t/looking-for-a-way-to-access-activerecord-data-in-a-rails-app-from-another-non-rails-app-with-safe-1/138936)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/looking-for-a-way-to-access-activerecord-data-in-a-rails-app-from-another-non-rails-app-with-safe-1/138936 "2008-05-29T14:23:48Z")

</div>

I only need to read the data, but I want to use AR if I can, because it’s what everything in the rails app uses, and I want to keep the whole area as simple and maintainable as possible. I don’t see anything in Rails…

---

## [GServer send/receive limit](https://www.ruby-forum.com/t/gserver-send-receive-limit/138897)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/gserver-send-receive-limit/138897 "2008-05-29T14:02:30Z")

</div>

Team, Is there a limit on the amount of data transmitted via GServer? I am playing some code snipped found on the web, which I changed to send the output of a command from the server to the client. However, I have n…

---

## [Invalid read may occur when raising an exception to a thread that waits for mutex](https://www.ruby-forum.com/t/invalid-read-may-occur-when-raising-an-exception-to-a-thread-that-waits-for-mutex/138863)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/invalid-read-may-occur-when-raising-an-exception-to-a-thread-that-waits-for-mutex/138863 "2008-05-29T13:37:43Z")

</div>

e$B1sF#$G$9!#e(B e$B0J2\<$N$h$&$K$9$k$H%O%s%0$9$k$3$H$,$"$j$^$9!#e(B $ ./ruby -ve ’ N = 10 m = \[Mutex.new\] m.first.lock t = Thread.new do begin m.first.lock # (1) rescue loop { } # (3) end end sleep 1 t.rais…

---

## [How do I remove version 1.8.5 so that 1.8.6 will work on os](https://www.ruby-forum.com/t/how-do-i-remove-version-1-8-5-so-that-1-8-6-will-work-on-os/138915)

<div class="topic-metadata">

**Author:** [@robblovell](https://www.ruby-forum.com/u/robblovell)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/how-do-i-remove-version-1-8-5-so-that-1-8-6-will-work-on-os/138915 "2008-05-29T13:27:37Z")

</div>

I have two ruby installs on os X after migrating from tiger to leopard. The old one, version 1.8.5 is active and doesn’t work, the new one, version 1.8.6 is installed, but not active. How do I correct the situation? …

---

## [Subclass of hash, that times last read](https://www.ruby-forum.com/t/subclass-of-hash-that-times-last-read/138899)

<div class="topic-metadata">

**Author:** [@bor\_S](https://www.ruby-forum.com/u/bor_S)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 1:20pm UTC](https://www.ruby-forum.com/t/subclass-of-hash-that-times-last-read/138899 "2008-05-29T13:20:09Z")

</div>

Hi all. I’m rather unfamiliar with the subclass / superclass principle, but I just tried to write one. The result is below here, and should be a hash-like class, with the exception that it stores the last-accessed tim…

---

## [Mailing List Test](https://www.ruby-forum.com/t/mailing-list-test/138879)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/mailing-list-test/138879 "2008-05-29T12:18:53Z")

</div>

Hi, is the list processor still alive? robert

---

## [OOP in Ruby?](https://www.ruby-forum.com/t/oop-in-ruby/138408)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 38\
**Last updated:** [May 29, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/oop-in-ruby/138408 "2008-05-29T12:14:08Z")

</div>

Hi, Anyone know of any good resources regarding OOP in Ruby? Aidy

---

## [Not really a Ruby question, but](https://www.ruby-forum.com/t/not-really-a-ruby-question-but/138904)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 9:22am UTC](https://www.ruby-forum.com/t/not-really-a-ruby-question-but/138904 "2008-05-29T09:22:21Z")

</div>

Hello, I’m using a Ruby script to grab some data from an Oracle database via an ODBC connection. Everything works great, but I want to select a certain date range when I query the database. However, the date is in a …

---

## [Hpricot$B$G%(%i!\<(B](https://www.ruby-forum.com/t/hpricot-b-g-i-b/138939)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 6:19am UTC](https://www.ruby-forum.com/t/hpricot-b-g-i-b/138939 "2008-05-29T06:19:42Z")

</div>

e$B$k$S$-$A$G$9!#e(B Ruby 1.8.7e$B$@$H!"30It%i%$%V%i%j$G$9$,e(BHpricote$B$G%(%i!\<$K$J$j$^$9!#e(B require ‘rubygems’ require ‘hpricot’ require ‘open-uri’ RUBY\_VERSION # =\> “1.8.6” RUBY\_RELEASE\_DA…

---

## [Find/Replace In Files Using Lookup Table](https://www.ruby-forum.com/t/find-replace-in-files-using-lookup-table/138923)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 5:49am UTC](https://www.ruby-forum.com/t/find-replace-in-files-using-lookup-table/138923 "2008-05-29T05:49:49Z")

</div>

I have a directory full of HTML files. Some have anchor tags (), some do not. I also have a tab- delimited text file with—among other things—an ID, title, and filename. What I need to do is create a script that will: …

---

## [Rgss](https://www.ruby-forum.com/t/rgss/138931)

<div class="topic-metadata">

**Author:** [@seth666](https://www.ruby-forum.com/u/seth666)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 5:02am UTC](https://www.ruby-forum.com/t/rgss/138931 "2008-05-29T05:02:27Z")

</div>

Hello everyone, I’m new to Ruby, and only heard about it through RGSS (ruby game scripting system). I have a program called RPGVX (or RPG Maker VX) that uses Ruby scripting to customize certain aspects of the game. I…

---

## [Win32-pipe 0.2.0](https://www.ruby-forum.com/t/win32-pipe-0-2-0/138937)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 4:41am UTC](https://www.ruby-forum.com/t/win32-pipe-0-2-0/138937 "2008-05-29T04:41:23Z")

</div>

Hi all, The Win32 Utils Team is happy to announce the release version 0.2.0 of the win32-pipe library. = What is it? An interface for named pipes on MS Windows. = What’s new? Now pure Ruby. Major interface change.…

---

## [Ruby-opengl gem uses ruby1.9, even from gem1.8](https://www.ruby-forum.com/t/ruby-opengl-gem-uses-ruby1-9-even-from-gem1-8/138846)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 4:12am UTC](https://www.ruby-forum.com/t/ruby-opengl-gem-uses-ruby1-9-even-from-gem1-8/138846 "2008-05-29T04:12:06Z")

</div>

This is on an Ubuntu Hardy system, on x86\_64. Both Ruby 1.8 and 1.9 are installed. I was tracking down the lack of ruby.h, which surprised me, as ruby1.8-dev is installed. Scrolling up even further, though, and somet…

---

## [JRuby 1.1.x + Merb = Not generating the app](https://www.ruby-forum.com/t/jruby-1-1-x-merb-not-generating-the-app/137527)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 3:46am UTC](https://www.ruby-forum.com/t/jruby-1-1-x-merb-not-generating-the-app/137527 "2008-05-29T03:46:56Z")

</div>

I tried generating a template Merb (0.9.3) app using JRuby 1.1.1 and 1.1 as: bin/jruby -S merb-gen app hello and the command returns without generating any files or error message. What’s missing ? -Arun Application…

---

## [Code Review: YamlChanges1](https://www.ruby-forum.com/t/code-review-yamlchanges1/138930)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 2:40am UTC](https://www.ruby-forum.com/t/code-review-yamlchanges1/138930 "2008-05-29T02:40:14Z")

</div>

tfpt review “/shelveset:YamlChanges1;REDMOND\\curth” Make YAML use RubyArray, Hash and MutableString instead of CLR native types.

---

## [Code Review: Trace](https://www.ruby-forum.com/t/code-review-trace/138928)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 2:22am UTC](https://www.ruby-forum.com/t/code-review-trace/138928 "2008-05-29T02:22:40Z")

</div>

tfpt review “/shelveset:Trace;REDMOND\\tomat” Basic implementation of Kernel#set\_trace\_func that allows to trace Ruby method calls. Tomas

---

## [Mystified by a YAML/AR interaction...?](https://www.ruby-forum.com/t/mystified-by-a-yaml-ar-interaction/138929)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 2:21am UTC](https://www.ruby-forum.com/t/mystified-by-a-yaml-ar-interaction/138929 "2008-05-29T02:21:30Z")

</div>

I’ve got the following sequence which when run interactively yields a working connection to my Active Record ORM where I can get data: env = 'production' dbymlspec = "#{RAILSBASEDIR}/config/database.yml" conf = YAML…

---

## [Rails tool, advice much appreciated](https://www.ruby-forum.com/t/rails-tool-advice-much-appreciated/138814)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 9\
**Last updated:** [May 29, 2008, 1:35am UTC](https://www.ruby-forum.com/t/rails-tool-advice-much-appreciated/138814 "2008-05-29T01:35:15Z")

</div>

This a free resource for learning/finding info on Ruby on Rails: http://www.yoyobrain.com/cardboxes/preview/863 If you click on “Try a learning drill” the site will quiz you on Rails information to help you memorize-…

---

## [Xmalloc and xfree](https://www.ruby-forum.com/t/xmalloc-and-xfree/138888)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 12:29am UTC](https://www.ruby-forum.com/t/xmalloc-and-xfree/138888 "2008-05-29T00:29:40Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bxmalloc e$B$G3NJ\]$7$?%a%b%j$O!$e(Bxfree e$B$G2rJ|$9$k$Y$-$+$H;W$&$N$G$9$,!$e(B e$B8=:\_$Ne(B trunk e$B$K$Oe(B free e$B$G2rJ|$9$k%3!\<%I$,BgNL$K$"$j$^$9!%e(B e$B!!$3$l$r$-$A$s$H$9$k%Q%C%A$r…

---

## [Active Record Connection works from script, but not from Apache CGI...?](https://www.ruby-forum.com/t/active-record-connection-works-from-script-but-not-from-apache-cgi/138914)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/active-record-connection-works-from-script-but-not-from-apache-cgi/138914 "2008-05-28T23:15:39Z")

</div>

ActiveRecord::Base.establish\_connection(@@DBCfg\[RAILS\_ENV\]) where my little @@DBCfg\[RAILS\_ENV\] demonstrably has the correct path to the local rails directory representing the data I want to get. But, I’m failing on t…

---

## [Calling instance method when module included](https://www.ruby-forum.com/t/calling-instance-method-when-module-included/138913)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/calling-instance-method-when-module-included/138913 "2008-05-28T23:01:09Z")

</div>

Hi all, Maybe a silly question, but is it possible to call instance methods on an object when you’ve included a module? Or maybe I’m having the wrong approach and somebody can point me in the right direction? I’m now…

---

## [New Beta of PickAxe3](https://www.ruby-forum.com/t/new-beta-of-pickaxe3/138891)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 4\
**Last updated:** [May 28, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/new-beta-of-pickaxe3/138891 "2008-05-28T21:23:10Z")

</div>

I’ve been thinking long and hard about the tutorial section of the PickAxe. It’s the section of the book that seems to create the most emotion in readers: most folks seem to like the unconventional style (starting wit…

---

## [JRuby 1.1.2 Released](https://www.ruby-forum.com/t/jruby-1-1-2-released/138829)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/jruby-1-1-2-released/138829 "2008-05-28T21:19:37Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1.2! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1.2 is the second point release of JRuby 1.1. The fixes in this …

---

## [Code Review: Kernel](https://www.ruby-forum.com/t/code-review-kernel/138901)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/code-review-kernel/138901 "2008-05-28T20:44:11Z")

</div>

tfpt review “/shelveset:Kernel;REDMOND\\tomat” Defines Kernel type stub in Core and renames Kernel type in libraries to KernelOps. This way, the Kernel module could be identified in both Core and libraries by the Kern…

---

## [Racc](https://www.ruby-forum.com/t/racc/138898)

<div class="topic-metadata">

**Author:** [@gremio](https://www.ruby-forum.com/u/gremio)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/racc/138898 "2008-05-28T20:43:36Z")

</div>

I have found in testing that parsers built using RACC are about twice as slow in JRuby as in MRI (and slightly slower in 1.1.2 than in 1.1). Most of the difference appears to be due to the fact that MRI benefits from a …

---

## [Tests not running in shoplet project](https://www.ruby-forum.com/t/tests-not-running-in-shoplet-project/138896)

<div class="topic-metadata">

**Author:** [@jraines](https://www.ruby-forum.com/u/jraines)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/tests-not-running-in-shoplet-project/138896 "2008-05-28T18:53:35Z")

</div>

I’m working through Ola B.'s book but I’m using jruby 1.1.2 and Rails 2.0.2 (not sure if this should go in the Rails forum or not) When I try to run the simplest tests it finishes in 0.0010 seconds and claims to have …

---

## [Roby 0.7 Released](https://www.ruby-forum.com/t/roby-0-7-released/138892)

<div class="topic-metadata">

**Author:** [@Sylvain\_J](https://www.ruby-forum.com/u/Sylvain_J)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/roby-0-7-released/138892 "2008-05-28T18:35:01Z")

</div>

roby version 0.7 has been released! http://roby.rubyforge.org (documentation, including installation instructions) http://www.rubyforge.org/projects/roby (project page: bug trackers, …) \<http://github.com/doudou/ro…

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

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