# Ruby

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

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

---

## [Trying to open a Lucene-built index with Ferret](https://www.ruby-forum.com/t/trying-to-open-a-lucene-built-index-with-ferret/152347)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 4\
**Last updated:** [November 3, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/trying-to-open-a-lucene-built-index-with-ferret/152347 "2008-11-03T13:25:49Z")

</div>

But its wipes out the existing index and creates a new empty one - the pages for Ferret are currently unavailable - just wondering anybody else has come across this? Is the ‘create=\>false’ just not working or do I hav…

---

## [Hpricot not returning the right html?](https://www.ruby-forum.com/t/hpricot-not-returning-the-right-html/151897)

<div class="topic-metadata">

**Author:** [@monstars99](https://www.ruby-forum.com/u/monstars99)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/hpricot-not-returning-the-right-html/151897 "2008-11-03T12:34:19Z")

</div>

Hi when i get this url http://www.basketball-bund.net/index.jsp?Action=100&Verband=100 it shows a table with basketball info at page 1 if i want to go to page 2 this is the working url http://www.basketball-bund.net…

---

## [Contributing the activerecord-jdbc](https://www.ruby-forum.com/t/contributing-the-activerecord-jdbc/152359)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 11:22am UTC](https://www.ruby-forum.com/t/contributing-the-activerecord-jdbc/152359 "2008-11-03T11:22:21Z")

</div>

I’m currently working with activerecord-jdbc, and it’s not clear what the best method of contributing to the project is. What is the primary development tree? GitHub - nicksieger/activerecord-jdbc-adapter: ActiveRecor…

---

## [Ruby1.9: lazy versions of Enumerator#select and friends?](https://www.ruby-forum.com/t/ruby1-9-lazy-versions-of-enumerator-select-and-friends/152338)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 11\
**Last updated:** [November 3, 2008, 9:57am UTC](https://www.ruby-forum.com/t/ruby1-9-lazy-versions-of-enumerator-select-and-friends/152338 "2008-11-03T09:57:02Z")

</div>

I’ve been having a play with Enumerators in ruby 1.9, in particular adding ‘lazy’ versions of those methods in Enumerable which normally return arrays. Here’s a proof-of-concept implementation: module Enumerable def …

---

## [Code Review: Methods6](https://www.ruby-forum.com/t/code-review-methods6/152369)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 8:44am UTC](https://www.ruby-forum.com/t/code-review-methods6/152369 "2008-11-03T08:44:47Z")

</div>

tfpt review “/shelveset:Methods6;REDMOND\\tomat” Comment : Fixes bugs: method aliasing - aliased method has its own method attributes, module\_function, private, public, protected: the attributes were not set …

---

## [Private visibility for class method](https://www.ruby-forum.com/t/private-visibility-for-class-method/152333)

<div class="topic-metadata">

**Author:** [@lianliming](https://www.ruby-forum.com/u/lianliming)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 8:35am UTC](https://www.ruby-forum.com/t/private-visibility-for-class-method/152333 "2008-11-03T08:35:26Z")

</div>

I got to learn that “private” label in a class definition doesn’t apply to class methods. But I saw many existed source code defining class methods after “private” label. For example, in the book “Agile Web D. with Ra…

---

## [\[Bug #705\] sample/test.rb:1829: \[BUG\] Segmentation fault](https://www.ruby-forum.com/t/bug-705-sample-test-rb-bug-segmentation-fault/152275)

<div class="topic-metadata">

**Author:** [@pegacorn\_jp](https://www.ruby-forum.com/u/pegacorn_jp)\
**Replies:** 6\
**Last updated:** [November 3, 2008, 7:57am UTC](https://www.ruby-forum.com/t/bug-705-sample-test-rb-bug-segmentation-fault/152275 "2008-11-03T07:57:59Z")

</div>

Bug #705: sample/test.rb:1829: \[BUG\] Segmentation fault http://redmine.ruby-lang.org/issues/show/705 e$B5/I\<\<Te(B: pegacorn jp e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High r19078 e$B0J9\_e(B SEGV e$B$7$^$9!#e(B D:\\work…

---

## [Re: Running specs fails](https://www.ruby-forum.com/t/re-running-specs-fails/152366)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 6:16am UTC](https://www.ruby-forum.com/t/re-running-specs-fails/152366 "2008-11-03T06:16:17Z")

</div>

I’m trying to update the specs and tags. I don’t remember that one failing, but I could have missed it. Can you identify what is failing in the specs? Thanks JD

---

## [Complex Inheritance Issue](https://www.ruby-forum.com/t/complex-inheritance-issue/152354)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 6:13am UTC](https://www.ruby-forum.com/t/complex-inheritance-issue/152354 "2008-11-03T06:13:21Z")

</div>

I have this test case which throws an error: class Templates\_IronRuby\_CustomBaseClass\_haml\<NHaml::Tests::CustomTemplate4\[System::Collections::Generic::List\[System::Collections::Generic::List\[System::Int32\]\]\] System.In…

---

## [Running specs fails](https://www.ruby-forum.com/t/running-specs-fails/152364)

<div class="topic-metadata">

**Author:** [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 6:05am UTC](https://www.ruby-forum.com/t/running-specs-fails/152364 "2008-11-03T06:05:45Z")

</div>

Hi, I’m getting errors when running “rake test” on my local ironruby build (running on Windows Vista). The output ends as follows: Array#delete removes elements that are #== to object Process is terminated due to …

---

## [Ruby Tk on Windows Vista](https://www.ruby-forum.com/t/ruby-tk-on-windows-vista/152352)

<div class="topic-metadata">

**Author:** [@farmerss](https://www.ruby-forum.com/u/farmerss)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 1:46am UTC](https://www.ruby-forum.com/t/ruby-tk-on-windows-vista/152352 "2008-11-03T01:46:49Z")

</div>

Hi, I just installed the current version of ActiveTcl 8.5 from ActiveState. I then installed Ruby 1.8.6-27 Release Candidate 1 with the automatic Windows installer. If I try to run the program require ‘tcltklib’ I g…

---

## [RMagick 2.7.1 released](https://www.ruby-forum.com/t/rmagick-2-7-1-released/152348)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [November 3, 2008, 12:40am UTC](https://www.ruby-forum.com/t/rmagick-2-7-1-released/152348 "2008-11-03T00:40:36Z")

</div>

RMagick 2.7.1 adds a new exception class called Magick::FatalImageMagickException. RMagick raises this exception when ImageMagick reports a fatal (unrecoverable) error. I added support for a special “user” option that…

---

## [UnicodeUtils 0.2.0 - more Unicode for Ruby 1.9](https://www.ruby-forum.com/t/unicodeutils-0-2-0-more-unicode-for-ruby-1-9/152349)

<div class="topic-metadata">

**Author:** [@stefanl38](https://www.ruby-forum.com/u/stefanl38)\
**Replies:** 0\
**Last updated:** [November 2, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/unicodeutils-0-2-0-more-unicode-for-ruby-1-9/152349 "2008-11-02T23:43:50Z")

</div>

UnicodeUtils is a pure Ruby library that provides additional Unicode string manipulation functions for Ruby 1.9. Install with RubyGems: $ gem install unicode\_utils Online documentation: http://unicode-utils.rubyforge…

---

## [Reek 0.3.0 Released](https://www.ruby-forum.com/t/reek-0-3-0-released/152346)

<div class="topic-metadata">

**Author:** [@Kevin\_Rutherford](https://www.ruby-forum.com/u/Kevin_Rutherford)\
**Replies:** 0\
**Last updated:** [November 2, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/reek-0-3-0-released/152346 "2008-11-02T23:09:20Z")

</div>

reek version 0.3.0 has been released! http://reek.rubyforge.org reek detects smells in Ruby code Changes: 0.3.0 2008-11-02 Minor enhancements: New smell: first naive checks for Control Couple reek now only chec…

---

## [Max threads on Tomcat with Jruby](https://www.ruby-forum.com/t/max-threads-on-tomcat-with-jruby/152248)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 6\
**Last updated:** [November 2, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/max-threads-on-tomcat-with-jruby/152248 "2008-11-02T17:36:49Z")

</div>

Getting the following error on Tomcat, anyone know how to address this? Should I be receiving this ? SEVERE: All threads (200) are currently busy, waiting. Increase maxThreads (200) or check the servlet status Thx …

---

## [RubyInline, RDoc comment for C inline method](https://www.ruby-forum.com/t/rubyinline-rdoc-comment-for-c-inline-method/152334)

<div class="topic-metadata">

**Author:** [@Daniel\_SchSSSSmer](https://www.ruby-forum.com/u/Daniel_SchSSSSmer)\
**Replies:** 0\
**Last updated:** [November 2, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/rubyinline-rdoc-comment-for-c-inline-method/152334 "2008-11-02T16:05:30Z")

</div>

Hi, I am playing around with RubyInline and want to include a “inlined” C method to the API documentation generated by rdoc. Here is an minimal example: ---- a.rb ---- require ‘inline’ class A Method A.a1 inline d…

---

## [Implementing the SongList the container](https://www.ruby-forum.com/t/implementing-the-songlist-the-container/152330)

<div class="topic-metadata">

**Author:** [@edipofederle](https://www.ruby-forum.com/u/edipofederle)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/implementing-the-songlist-the-container/152330 "2008-11-02T15:01:31Z")

</div>

Hi, I’m trying to test one example of “Programming Ruby” - Implementing the SongList the container, I do not know if I am making sure the class would be something like this: Code in Annex But return SongList.rb:20: u…

---

## [Pass array methods for](https://www.ruby-forum.com/t/pass-array-methods-for/152318)

<div class="topic-metadata">

**Author:** [@edipofederle](https://www.ruby-forum.com/u/edipofederle)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 11:45am UTC](https://www.ruby-forum.com/t/pass-array-methods-for/152318 "2008-11-02T11:45:30Z")

</div>

Hello I am looking to do a class with two methods, a push and a pop, how do I define the methods for receiving the “array”, something the user insert a choice given the array, then enter for example with “a” method an…

---

## [Add RUNRUBYOPT in mswin32 Makefile.sub](https://www.ruby-forum.com/t/add-runrubyopt-in-mswin32-makefile-sub/152290)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 4\
**Last updated:** [November 2, 2008, 11:23am UTC](https://www.ruby-forum.com/t/add-runrubyopt-in-mswin32-makefile-sub/152290 "2008-11-02T11:23:16Z")

</div>

e$B=uED$G$9!#e(B mswin32e$BHG$G!"%F%9%H$9$k$H$-$Ke(BRUNRUBYOPTe$B$r;XDj$G$-$k$h$&$K$9$ke(B e$B%Q%C%A$G$9!#e(B e$B$d$j$?$+$C$?$3$H$O!"e(Bcygwin e$B$de(B mingw32 e$B$HF1MM$Ke(B nmake test-all TESTS=win32ole RUNRUBYOPT=…

---

## [How to access to local variables in enclosing scopes?](https://www.ruby-forum.com/t/how-to-access-to-local-variables-in-enclosing-scopes/152241)

<div class="topic-metadata">

**Author:** [@Yuh-Ruey\_C](https://www.ruby-forum.com/u/Yuh-Ruey_C)\
**Replies:** 33\
**Last updated:** [November 2, 2008, 5:55am UTC](https://www.ruby-forum.com/t/how-to-access-to-local-variables-in-enclosing-scopes/152241 "2008-11-02T05:55:21Z")

</div>

I’m familiar with other popular scripting languages (JS and Python), and I’m struggling to figure out Ruby’s (inanely) complex scoping mechanisms. My questions are within the following example: x = 10 def foo how t…

---

## [Meow 2.1.0 Released](https://www.ruby-forum.com/t/meow-2-1-0-released/152322)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [November 2, 2008, 5:22am UTC](https://www.ruby-forum.com/t/meow-2-1-0-released/152322 "2008-11-02T05:22:03Z")

</div>

meow version 2.1.0 has been released! http://meow.rubyforge.org/ Send Growl notifications via Ruby. Changes: 2.1.0 2 Minor enhancements Autotest integration. Just add this to your .autotest file: require ‘meo…

---

## [AJAX page.call not working](https://www.ruby-forum.com/t/ajax-page-call-not-working/152313)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 4:13am UTC](https://www.ruby-forum.com/t/ajax-page-call-not-working/152313 "2008-11-02T04:13:56Z")

</div>

Hi Everyone, I need your help. I have created a form that makes an Ajax call to submit the data. It is working fine on 1 page of the site ( Contact | Trip Outlook Travel Buddy) and same code is not working properly …

---

## [Problems with regular expressions and parenthesis](https://www.ruby-forum.com/t/problems-with-regular-expressions-and-parenthesis/152311)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 3\
**Last updated:** [November 2, 2008, 2:27am UTC](https://www.ruby-forum.com/t/problems-with-regular-expressions-and-parenthesis/152311 "2008-11-02T02:27:58Z")

</div>

hi, i’m having some trouble with regular expressions in ruby. If I have a regular expression like this: ^(\[\\x20-\\x7E\]|\\w){1,40}$, it will crash ruby if there are more than forty characters in it. I don’t understand …

---

## [Another require question](https://www.ruby-forum.com/t/another-require-question/152316)

<div class="topic-metadata">

**Author:** [@devros](https://www.ruby-forum.com/u/devros)\
**Replies:** 1\
**Last updated:** [November 1, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/another-require-question/152316 "2008-11-01T23:11:54Z")

</div>

I’ve been learning Ruby for 2 weeks and of course I like it. However, ‘file.open(path)’ returns this error in the SciTE editor: “undefined local variable or method \`math’ for main:Object (NameError)” I try to…

---

## [Indexed arrays, delete\_if, and performance](https://www.ruby-forum.com/t/indexed-arrays-delete-if-and-performance/152283)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 5\
**Last updated:** [November 1, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/indexed-arrays-delete-if-and-performance/152283 "2008-11-01T23:10:43Z")

</div>

Dear all, My application uses a calendar which I’m populating using an array of indexed RollingEvent objects. A RollingEvent is one of a series, multiplied from its original Event’s repeat options (daily, weekly, for…

---

## [Code Review: ArrayOfT](https://www.ruby-forum.com/t/code-review-arrayoft/152309)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [November 1, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/code-review-arrayoft/152309 "2008-11-01T22:26:45Z")

</div>

tfpt review “/shelveset:ArrayOfT;REDMOND\\tomat” Comment : Enables simple array type creation: require ‘mscorlib’ =\> true System::Array.of(Fixnum) =\> System::Int32\[\] System::Array.of(Fixnum).new(10) =\> …

---

## [N-dimensional array in Ruby](https://www.ruby-forum.com/t/n-dimensional-array-in-ruby/152265)

<div class="topic-metadata">

**Author:** [@christian](https://www.ruby-forum.com/u/christian)\
**Replies:** 6\
**Last updated:** [November 1, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/n-dimensional-array-in-ruby/152265 "2008-11-01T18:04:55Z")

</div>

Hi, i have a little Java problem, I want to solve using Ruby. Therefor I need an n-dimensional array. In Java it looks like this: double dArray\[\]\[\]\[\] = new double\[x.length()+1\]\[y.length()+1\]\[x.length() +y.length()+3\]…

---

## [Please correct my Hpricot troubles](https://www.ruby-forum.com/t/please-correct-my-hpricot-troubles/152296)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/please-correct-my-hpricot-troubles/152296 "2008-11-01T14:39:30Z")

</div>

Hello, I need some help using hpricot. I’m trying simply to print out the each link within “ul.class-name” for a CSV file. ref: http://code.whytheluckystiff.net/hpricot/wiki/HpricotCssSearch sample source for search …

---

## [Mack Framework 0.8.1 Released](https://www.ruby-forum.com/t/mack-framework-0-8-1-released/152291)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/mack-framework-0-8-1-released/152291 "2008-11-01T13:42:56Z")

</div>

This week the Mack Framework reached version 0.8.1. Amongst other things in the release there is now support for Portlets. Portlets encapsulate a whole Mack application, from controllers to views to models to configur…

---

## [Data Structs in Ruby](https://www.ruby-forum.com/t/data-structs-in-ruby/152247)

<div class="topic-metadata">

**Author:** [@edipofederle](https://www.ruby-forum.com/u/edipofederle)\
**Replies:** 3\
**Last updated:** [November 1, 2008, 11:15am UTC](https://www.ruby-forum.com/t/data-structs-in-ruby/152247 "2008-11-01T11:15:31Z")

</div>

Hello, How would the implementation of such a stack or queue, and Ruby, already has something “ready” to handle … Thakns. I sorry but my english is not very good.

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

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