# Ruby

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

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

---

## [Jruby, profligacy](https://www.ruby-forum.com/t/jruby-profligacy/153680)

<div class="topic-metadata">

**Author:** [@Einar\_MagnSSSSs\_Bos](https://www.ruby-forum.com/u/Einar_MagnSSSSs_Bos)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/jruby-profligacy/153680 "2008-11-20T16:12:12Z")

</div>

I am trying to test out profligacy for GUI as it seems to make it reasonably simple to use swing. http://ihate.rubyforge.org/profligacy/lel.html taking their examples I can get them to run although I had to gem unpack …

---

## [What would you like to know about JRuby?](https://www.ruby-forum.com/t/what-would-you-like-to-know-about-jruby/152528)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 21\
**Last updated:** [November 20, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/what-would-you-like-to-know-about-jruby/152528 "2008-11-20T15:35:39Z")

</div>

Tom Enebo and I are putting together our JRuby presentation for RubyConf, and there’s just too much stuff to fit into 45 minutes. So what areas would people most like to hear about? Rails (or Merb, Rack, etc) deploym…

---

## [How to use fastercsv to get rows as hashes?](https://www.ruby-forum.com/t/how-to-use-fastercsv-to-get-rows-as-hashes/153719)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 2\
**Last updated:** [November 20, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/how-to-use-fastercsv-to-get-rows-as-hashes/153719 "2008-11-20T15:14:48Z")

</div>

Hi - I’m fairly new to ruby and trying to read a csv file using the fastercsv gem. I managed to read the rows arrays of data using: require ‘fastercsv’ def read\_csv path\_to\_file = “/home/work/some\_file.csv” open the…

---

## [Implementing mvc - using observer pattern - beginner to OOP](https://www.ruby-forum.com/t/implementing-mvc-using-observer-pattern-beginner-to-oop/152852)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 10\
**Last updated:** [November 20, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/implementing-mvc-using-observer-pattern-beginner-to-oop/152852 "2008-11-20T15:13:19Z")

</div>

Hi I started making a simple command line todo list application as a way to get better at OOP. I decided to use a flat file db gem called kirbybase. Anyway the more I started programming it, the more it started to re…

---

## [How the Ruby's super work in finding method?](https://www.ruby-forum.com/t/how-the-rubys-super-work-in-finding-method/153683)

<div class="topic-metadata">

**Author:** [@qianjigui](https://www.ruby-forum.com/u/qianjigui)\
**Replies:** 2\
**Last updated:** [November 20, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/how-the-rubys-super-work-in-finding-method/153683 "2008-11-20T14:40:33Z")

</div>

When one method defined in many places, I want to use the super to invoke them one by one. This is the code: ######################################### module M def report( a = 4, b =5) p “M report begin: a=#{a},b=#{…

---

## [Build hash by iterating](https://www.ruby-forum.com/t/build-hash-by-iterating/153629)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 14\
**Last updated:** [November 20, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/build-hash-by-iterating/153629 "2008-11-20T14:28:52Z")

</div>

I am building a hash this way: h = {} i = 0 j = 24 while i \< 15 do h\[i\] = j i += 1 j += 6 end =\> {5=\>54, 11=\>90, 0=\>24, 6=\>60, 12=\>96, 1=\>30, 7=\>66, 13=\>102, 2=\>36, 8=\>72, 14=\>108, 3=\>42, 9=\>78, 4=\>48, 10=\>84} …

---

## [Error message, hide class name](https://www.ruby-forum.com/t/error-message-hide-class-name/153641)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [November 20, 2008, 10:58am UTC](https://www.ruby-forum.com/t/error-message-hide-class-name/153641 "2008-11-20T10:58:49Z")

</div>

irb(main):005:0\> class X irb(main):006:1\> def inspect irb(main):007:2\> “hey” irb(main):008:2\> end irb(main):009:1\> end =\> nil irb(main):010:0\> x = X.new.nomethod NoMethodError: undefined method \`nomethod’ …

---

## [JRuby on Android (from: What would you like to know about Jruby?)](https://www.ruby-forum.com/t/jruby-on-android-from-what-would-you-like-to-know-about-jruby/153608)

<div class="topic-metadata">

**Author:** [@skade](https://www.ruby-forum.com/u/skade)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 8:07am UTC](https://www.ruby-forum.com/t/jruby-on-android-from-what-would-you-like-to-know-about-jruby/153608 "2008-11-20T08:07:46Z")

</div>

In “What would you like to know about Jruby?”, Charles wrote: We get a lot of questions about whether JRuby could work on Android et al, and though we’re not working on it it’s most definitely possible. Is this jus…

---

## [Updated XML benchmarks](https://www.ruby-forum.com/t/updated-xml-benchmarks/153688)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 1\
**Last updated:** [November 20, 2008, 7:33am UTC](https://www.ruby-forum.com/t/updated-xml-benchmarks/153688 "2008-11-20T07:33:15Z")

</div>

I’ve updated my simple ruby xml benchmark which measures the time to open a 98k XML document and count one type of leaf element (466 entries) 100 times. https://svn.concord.org/svn/projects/trunk/common/ruby/xml\_bench…

---

## [Mechanize 0.8.5 Released](https://www.ruby-forum.com/t/mechanize-0-8-5-released/153694)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [November 20, 2008, 7:05am UTC](https://www.ruby-forum.com/t/mechanize-0-8-5-released/153694 "2008-11-20T07:05:47Z")

</div>

mechanize version 0.8.5 has been released! http://mechanize.rubyforge.org/ http://github.com/tenderlove/mechanize/tree/master The Mechanize library is used for automating interaction with websites. Mechanize automati…

---

## [Is there another method like .next?](https://www.ruby-forum.com/t/is-there-another-method-like-next/153681)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 5:49am UTC](https://www.ruby-forum.com/t/is-there-another-method-like-next/153681 "2008-11-20T05:49:46Z")

</div>

I was looking for a way to iterate through the ascii values and was trying to get it to not go from “9” to “10” or “Z” to “AA”. Evidently the string method .next always returns digits for digits and letters for lette…

---

## [Library for writing ODF files](https://www.ruby-forum.com/t/library-for-writing-odf-files/153570)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 5:21am UTC](https://www.ruby-forum.com/t/library-for-writing-odf-files/153570 "2008-11-20T05:21:42Z")

</div>

Last week I needed to generate a report in the format of an ODF spreadsheet and couldn’t find a suitable Ruby library for outputing ODF. There is something called RubyODF (at http://rubyforge.org/projects/rubyodf/ ),…

---

## [SVN Revision 175 pushed](https://www.ruby-forum.com/t/svn-revision-175-pushed/153679)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [November 20, 2008, 2:04am UTC](https://www.ruby-forum.com/t/svn-revision-175-pushed/153679 "2008-11-20T02:04:34Z")

</div>

This is the same as today’s release, and the tag. JD http://blog.jredville.com

---

## [IronRuby 1.0 Alpha 2](https://www.ruby-forum.com/t/ironruby-1-0-alpha-2/153666)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 2:01am UTC](https://www.ruby-forum.com/t/ironruby-1-0-alpha-2/153666 "2008-11-20T02:01:38Z")

</div>

Announcing the release of IronRuby 1.0 Alpha 2. You can download it on RubyForge (http://rubyforge.org/frs/?group\_id=4359), I will have a tag in SVN soon. Notable features: the inclusion of iirb.bat, igem.bat, irails.…

---

## [Jruby nuby guide](https://www.ruby-forum.com/t/jruby-nuby-guide/153635)

<div class="topic-metadata">

**Author:** [@Marlon\_M](https://www.ruby-forum.com/u/Marlon_M)\
**Replies:** 2\
**Last updated:** [November 20, 2008, 1:19am UTC](https://www.ruby-forum.com/t/jruby-nuby-guide/153635 "2008-11-20T01:19:32Z")

</div>

Hi all, I’ve been messing around with jruby on and off for a couple of months. Currently, I use linux vm’s, passenger fusion and matz’s ruby to deploy. Our company is mostly microsoft and it would be nice to be ab…

---

## [Overhead using evalScriptlet](https://www.ruby-forum.com/t/overhead-using-evalscriptlet/153628)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 2\
**Last updated:** [November 20, 2008, 1:12am UTC](https://www.ruby-forum.com/t/overhead-using-evalscriptlet/153628 "2008-11-20T01:12:31Z")

</div>

When using jruby code in a java project by calling “evalScriptlet” are there any significant overheads involved in the call? Is it practical and efficient to use only a java main class with the rest of the projec…

---

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

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 2\
**Last updated:** [November 20, 2008, 12:22am UTC](https://www.ruby-forum.com/t/help-with-partial/153665 "2008-11-20T00:22:19Z")

</div>

First and foremost sorry if my english is not the best. In my application I have a view whit tickets and i can select it one to one with a button. The selected tickets go to another view that shows me the tickets i ha…

---

## [How do you run ruby on windows](https://www.ruby-forum.com/t/how-do-you-run-ruby-on-windows/153663)

<div class="topic-metadata">

**Author:** [@equinox](https://www.ruby-forum.com/u/equinox)\
**Replies:** 6\
**Last updated:** [November 19, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/how-do-you-run-ruby-on-windows/153663 "2008-11-19T23:24:08Z")

</div>

Okay so I’ve downloaded the One-Click Ruby Installer for Windows and installed it well under C:\\Program Files\\ruby and now what do I need to do to use it? I’ve gone into the command line and try to execute some comman…

---

## [I don't like specs, should I change my point of view?](https://www.ruby-forum.com/t/i-dont-like-specs-should-i-change-my-point-of-view/153522)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 17\
**Last updated:** [November 19, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/i-dont-like-specs-should-i-change-my-point-of-view/153522 "2008-11-19T22:13:06Z")

</div>

Hello, I’m not trolling. I don’t like specs (RSpec) : everytime I had a look to specs I felt it was only syntaxic sugar driven by a big machinery and I continued to write classic unit tests. But I’ve seen more and mor…

---

## [Re: Trouble running 'rubyscript2exe' for compiling my code](https://www.ruby-forum.com/t/re-trouble-running-rubyscript2exe-for-compiling-my-code/153660)

<div class="topic-metadata">

**Author:** [@Jacob\_Lyles](https://www.ruby-forum.com/u/Jacob_Lyles)\
**Replies:** 0\
**Last updated:** [November 19, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/re-trouble-running-rubyscript2exe-for-compiling-my-code/153660 "2008-11-19T21:46:28Z")

</div>

I’m also trying to solve the dreaded (RC=256) error when I try to compile using Rubyscript2exe. As I understand the problem, Ruby has an imposed limit of 256 characters for commands passed to Ruby (Tell me if my under…

---

## [Should is the new Must?](https://www.ruby-forum.com/t/should-is-the-new-must/153535)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 20\
**Last updated:** [November 19, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/should-is-the-new-must/153535 "2008-11-19T21:12:50Z")

</div>

Why did ‘should’ become the going nomenclature of BDD framworks? ‘Should’ connotes ‘ought’, as if something ought to do xyz, but doesn’t necessarily have to. I don’t know about you, but I don’t write my tests/specs th…

---

## [Help with Screen Scraper!](https://www.ruby-forum.com/t/help-with-screen-scraper/153651)

<div class="topic-metadata">

**Author:** [@stockwet](https://www.ruby-forum.com/u/stockwet)\
**Replies:** 0\
**Last updated:** [November 19, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/help-with-screen-scraper/153651 "2008-11-19T20:52:44Z")

</div>

Hi, I need some help with a simple screen scraper app. Here’s how it works: I open a connection to a url I look for a specific string When I get the string, I do something with it Important: I’m polling a url looking …

---

## [When will the ruby 2.0 be released?](https://www.ruby-forum.com/t/when-will-the-ruby-2-0-be-released/153396)

<div class="topic-metadata">

**Author:** [@Rockydd](https://www.ruby-forum.com/u/Rockydd)\
**Replies:** 5\
**Last updated:** [November 19, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/when-will-the-ruby-2-0-be-released/153396 "2008-11-19T19:10:54Z")

</div>

guys, I didn’t find the schedule in the official site. Thanks.

---

## [Active Directory and Ruby](https://www.ruby-forum.com/t/active-directory-and-ruby/153538)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 6\
**Last updated:** [November 19, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/active-directory-and-ruby/153538 "2008-11-19T19:08:40Z")

</div>

Hi everyone, I want retrieve a list of all users from a Active Directory. How can I do that? I’m running this script on the AD Server. Regards

---

## [Selected field assignment](https://www.ruby-forum.com/t/selected-field-assignment/153540)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 7\
**Last updated:** [November 19, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/selected-field-assignment/153540 "2008-11-19T18:40:56Z")

</div>

Hi, I’m grabbing the owner and file names from find . -perm -g+r -ls which has ls -dgils output like, 6744065 8 -rw-r–r-- 1 kleb users 289 Nov 30 2007 Ruby/README with something like, find\_re…

---

## [License issue when shipping together(Re: \[jruby-user\] JRuby invocation through JSR223 aprox 17x fast](https://www.ruby-forum.com/t/license-issue-when-shipping-together-re-jruby-user-jruby-invocation-through-jsr223-aprox-17x-fast/153630)

<div class="topic-metadata">

**Author:** [@Yoko\_H](https://www.ruby-forum.com/u/Yoko_H)\
**Replies:** 1\
**Last updated:** [November 19, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/license-issue-when-shipping-together-re-jruby-user-jruby-invocation-through-jsr223-aprox-17x-fast/153630 "2008-11-19T17:47:28Z")

</div>

Hi, I asked at scripting.dev.java.net and researched about a license issue of JSR 223 engine for shipping together with JRuby. JSR 223 engines released at java.net have BSD style license with Sun’s copyright while JR…

---

## [Ever heared of XRuby before?](https://www.ruby-forum.com/t/ever-heared-of-xruby-before/153578)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 4\
**Last updated:** [November 19, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/ever-heared-of-xruby-before/153578 "2008-11-19T17:35:44Z")

</div>

Hi all, I just stumbled above XRuby http://xruby.com/default.aspx. I played around a little with quite some metaprogramming tricks, but I could not make it fail. I was quite surprised, to find a working? Ruby impleme…

---

## [Postgres-pr](https://www.ruby-forum.com/t/postgres-pr/153636)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [November 19, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/postgres-pr/153636 "2008-11-19T17:25:24Z")

</div>

I discovered, quite by accident, that the postgres-pr project is alive once more and that a new release of the gem (0.5.0) was made on November 3rd. of this year. I was wondering if anyone here is using this gem and …

---

## [How can I invoke the 'include' in the class instance function](https://www.ruby-forum.com/t/how-can-i-invoke-the-include-in-the-class-instance-function/153625)

<div class="topic-metadata">

**Author:** [@Jarod\_Z](https://www.ruby-forum.com/u/Jarod_Z)\
**Replies:** 2\
**Last updated:** [November 19, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/how-can-i-invoke-the-include-in-the-class-instance-function/153625 "2008-11-19T16:40:35Z")

</div>

For same reason, I want to invoke the ‘include’ in the class instance function. The code like this: class QQ module QQ\_Elem def print\_elem puts “elem” end end def test include QQ\_Elem print\_elem puts “test” …

---

## [RegExp problem](https://www.ruby-forum.com/t/regexp-problem/153609)

<div class="topic-metadata">

**Author:** [@manchoman](https://www.ruby-forum.com/u/manchoman)\
**Replies:** 7\
**Last updated:** [November 19, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/regexp-problem/153609 "2008-11-19T15:41:33Z")

</div>

Hy, I would like to know how to extract a string delimited by too identical characters from an another string(of any length). ex string=“rzerze@foo@rezrzgrtez” how to get (or match) the foo string thanks for your hel…

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

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