# Ruby

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

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

---

## [Can you create an object in ruby and register it in the JMX server?](https://www.ruby-forum.com/t/can-you-create-an-object-in-ruby-and-register-it-in-the-jmx-server/141440)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/can-you-create-an-object-in-ruby-and-register-it-in-the-jmx-server/141440 "2008-06-25T22:01:14Z")

</div>

Hi all, I’m relatively new (6 months) to ruby and jruby. At work we are transitioning off of the .net stack to use java, jruby, rails and glassfish for some of our video on demand products (also I’m picking java up …

---

## [SOAP Client](https://www.ruby-forum.com/t/soap-client/141433)

<div class="topic-metadata">

**Author:** [@robertpostill](https://www.ruby-forum.com/u/robertpostill)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/soap-client/141433 "2008-06-25T20:51:12Z")

</div>

I’m a complete SOAP neophyte. I have managed to hack myself part of the way to my goal, so I suppose that’s good. Anyhow, I guess I’ll break this all down so you all can completely understand what’s going on. I’m tryi…

---

## [Using JDBC from JRuby](https://www.ruby-forum.com/t/using-jdbc-from-jruby/140759)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 10\
**Last updated:** [June 25, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/using-jdbc-from-jruby/140759 "2008-06-25T20:23:47Z")

</div>

Dear all, I want to access JDBC from JRuby. How do I do this? Has anyone got a simple sample code on how to do it? Many thanks IMPORTANT NOTICE: The information in this email (and any attachments) is confidential. …

---

## [Is this deterministic or not?](https://www.ruby-forum.com/t/is-this-deterministic-or-not/139201)

<div class="topic-metadata">

**Author:** [@slix](https://www.ruby-forum.com/u/slix)\
**Replies:** 8\
**Last updated:** [June 25, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/is-this-deterministic-or-not/139201 "2008-06-25T19:36:23Z")

</div>

puts “Enter a sentence: " puts gets.split.sort\_by { rand }.join(” ") takes a sentence and scrambles the words. how is this implemented? i tried myself first with a for or while loop and tried if word is not in new\_se…

---

## [File writing](https://www.ruby-forum.com/t/file-writing/141421)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 5\
**Last updated:** [June 25, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/file-writing/141421 "2008-06-25T19:07:40Z")

</div>

Hi, I know you can write to a file using ‘w’, but this erases all the previous data. How can I add new items to an existing document without losing the data? Thanks!

---

## [RackInitializationException: cattr\_accessor](https://www.ruby-forum.com/t/rackinitializationexception-cattr-accessor/141274)

<div class="topic-metadata">

**Author:** [@Caleb\_P](https://www.ruby-forum.com/u/Caleb_P)\
**Replies:** 6\
**Last updated:** [June 25, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/rackinitializationexception-cattr-accessor/141274 "2008-06-25T18:45:10Z")

</div>

I’m trying to run rails in Tomcat using a WAR file created with the warble gem. When I hit the webserver, I get the following error: org.jruby.rack.RackInitializationException: undefined method \`cattr\_accessor’ for Ac…

---

## [Ruby 1.8.6 p230 - really a fix?](https://www.ruby-forum.com/t/ruby-1-8-6-p230-really-a-fix/141387)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p230-really-a-fix/141387 "2008-06-25T18:28:44Z")

</div>

Hello reading http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html I find the current state somewhat unsettling. I have not hit the problem myself so I can only rely on the comments there. These…

---

## [Question on passing blocks](https://www.ruby-forum.com/t/question-on-passing-blocks/141420)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 3\
**Last updated:** [June 25, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/question-on-passing-blocks/141420 "2008-06-25T18:27:34Z")

</div>

In the code below, a block, { x += 1 } is magically passed to thrice ?? or something like that. I don’t understand the usage of the “thrice { iterator }” using {} and why I can’t make a normal block syntax work. The …

---

## [\[Bug:trunk\] Re: \[ruby-cvs:24798\] Ruby:r17573 (trunk): \* parse.y (primary): make functional-style not](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-24798-ruby-r17573-trunk-parse-y-primary-make-functional-style-not/141407)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 6\
**Last updated:** [June 25, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-24798-ruby-r17573-trunk-parse-y-primary-make-functional-style-not/141407 "2008-06-25T17:57:38Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B In message “\[ruby-cvs:24798\] Ruby:r17573 (trunk): \* parse.y (primary): make functional-style not operator to act” on Jun.25,2008 21:55:48, removed\_email\_address@domain.…

---

## [RE: Can't install warbler 0.9.5?](https://www.ruby-forum.com/t/re-cant-install-warbler-0-9-5/141373)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/re-cant-install-warbler-0-9-5/141373 "2008-06-25T17:37:41Z")

</div>

I couldn’t install warbler using gem 1.2.0 This is the error that I get: D:\\master\\ruby\\rubygems-1.2.0\>jruby -S jgem install warbler JRuby limited openssl loaded. gem install jruby-openssl for full support. http://w…

---

## [VM::InstructionSequence.load may dump core](https://www.ruby-forum.com/t/vm-instructionsequence-load-may-dump-core/141412)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/vm-instructionsequence-load-may-dump-core/141412 "2008-06-25T16:40:06Z")

</div>

e$B1sF#$G$9!#e(B VM::InstructionSequence.compile e$B$7$?$b$N$re(B to\_a e$B$7$?$b$N$re(B load e$B$7$Fe(B eval e$B$9$k$HMn$A$k$3$H$,$"$j$^$9!#e(B $ ./ruby -e ’ VM::InstructionSequence.load( VM::InstructionSequence.com…

---

## [Date.parse("28/03/2008") gives error?](https://www.ruby-forum.com/t/date-parse-28-03-2008-gives-error/139856)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 9\
**Last updated:** [June 25, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/date-parse-28-03-2008-gives-error/139856 "2008-06-25T15:35:51Z")

</div>

Hi, Date.parse(“28/03/2008”) gives me an error? I get: ArgumentError: invalid date. Any ideas how to fix this? Versions: Ruby 1.8.6 Rails 2.0.2

---

## [Rex & Racc : howto?](https://www.ruby-forum.com/t/rex-racc-howto/141047)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [June 25, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/rex-racc-howto/141047 "2008-06-25T15:30:34Z")

</div>

Hello. I’m looking for documentation on rex & racc, as what I have found up to now (mainly the homepages and the READMEs) are rather terse. Any pointers or examples of use? Thanks.

---

## [Tomcat optimizations](https://www.ruby-forum.com/t/tomcat-optimizations/141364)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 3\
**Last updated:** [June 25, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/tomcat-optimizations/141364 "2008-06-25T15:07:06Z")

</div>

Are there any recommended tomcat optimizations for running a Jruby rails app under Tomcat ? been getting some heap memory errors and figured i would ask the community as I go through some tuning and tweaking of memo…

---

## [Dbi connection](https://www.ruby-forum.com/t/dbi-connection/141335)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/dbi-connection/141335 "2008-06-25T14:12:37Z")

</div>

Hi, Could anyone please tell me where I place the database name in this connection string require ‘dbi’ server\_name=‘test7’ dbh=DBI.connect(“DBI:ADO:Provider=SQLOLEDB;Data Source=#{server\_name};Integrated Security=…

---

## [Displaying result of \*.rb files on browser](https://www.ruby-forum.com/t/displaying-result-of-rb-files-on-browser/196725)

<div class="topic-metadata">

**Author:** [@vinayhk](https://www.ruby-forum.com/u/vinayhk)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/displaying-result-of-rb-files-on-browser/196725 "2008-06-25T14:04:55Z")

</div>

hi i am new to ruby. i hav installed ruby gems. even webrick server is runing on port 8808. but i am sturked how display result of \*.rb file on browser. can any help me in this please. and ruby gems is installed in “…

---

## [Displaying result of \*.rb files onbrowser](https://www.ruby-forum.com/t/displaying-result-of-rb-files-onbrowser/141400)

<div class="topic-metadata">

**Author:** [@vinayhk](https://www.ruby-forum.com/u/vinayhk)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/displaying-result-of-rb-files-onbrowser/141400 "2008-06-25T14:04:45Z")

</div>

hi i am new to ruby. i hav installed ruby gems. even webrick server is runing on port 8808. but i am sturked how display result of \*.rb file on browser. can any help me in this please. and ruby gems is installed in “…

---

## [New Version of IBM\_DB Rails Adapter/Driver now available](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-now-available/196724)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-now-available/196724 "2008-06-25T12:00:33Z")

</div>

Hi All, New version of IBM\_DB, the Rails Adapter/Driver for IBM DataServers, is now available. This release includes various updates and provides support for Rails-2.1.0. The gem is available for download at http://…

---

## [IncompatibleEncodingError](https://www.ruby-forum.com/t/incompatibleencodingerror/141089)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 7\
**Last updated:** [June 25, 2008, 9:17am UTC](https://www.ruby-forum.com/t/incompatibleencodingerror/141089 "2008-06-25T09:17:32Z")

</div>

e$B?\\F#$G$9!#e(B Ruby 1.9e$B$G$O$?$/$5$s$Ne(B"incompatible encodings: …“e$B$H$$$&Nce(B e$B30$rL$K$9$k$H;W$&$N$G$9$,!”$=$NNc30%/%i%9$re(BArgumentErrore$B$+e(B e$B$ie(BIncompatibleEncodingErrore$B$H$$$&$h$&$J@lMQ$NNc30%…

---

## [Question concerning TkText list](https://www.ruby-forum.com/t/question-concerning-tktext-list/141334)

<div class="topic-metadata">

**Author:** [@rubyman](https://www.ruby-forum.com/u/rubyman)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 8:00am UTC](https://www.ruby-forum.com/t/question-concerning-tktext-list/141334 "2008-06-25T08:00:17Z")

</div>

Hello, I have implemented a list using TkText that holds a list of sales tax rates. I am comparing this list to a list of other rates, which is also implemented via a TkText widget. I was wondering how to highlight …

---

## [File access](https://www.ruby-forum.com/t/file-access/141363)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 7:40am UTC](https://www.ruby-forum.com/t/file-access/141363 "2008-06-25T07:40:25Z")

</div>

Hello, just wondering how I would go about making a file read-only, and writeable only through my program. =D Thanks!

---

## [Upgrading Ruby](https://www.ruby-forum.com/t/upgrading-ruby/141255)

<div class="topic-metadata">

**Author:** [@caliwildman](https://www.ruby-forum.com/u/caliwildman)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 7:03am UTC](https://www.ruby-forum.com/t/upgrading-ruby/141255 "2008-06-25T07:03:56Z")

</div>

I currently have Ruby 1.8.5 and Rails 1.2.3. I want to upgrade Ruby to 1.8.6 and Rails to 2.1. I have a Windows XP development machine and FC6 production box. I can’t find a clean up to upgrade Ruby without blowing aw…

---

## [Regex extracting certain characters](https://www.ruby-forum.com/t/regex-extracting-certain-characters/141281)

<div class="topic-metadata">

**Author:** [@owc](https://www.ruby-forum.com/u/owc)\
**Replies:** 7\
**Last updated:** [June 25, 2008, 7:01am UTC](https://www.ruby-forum.com/t/regex-extracting-certain-characters/141281 "2008-06-25T07:01:47Z")

</div>

Hi everyone, I have 2 path names : C:/Ruby/20080205/2008 C:/Ruby/2008 I need a regular expression which can select just 2008 and utilise the string that contains just 2008 instead of 20080205. I tried using /2008/ …

---

## [Difference between site\_ruby and gems](https://www.ruby-forum.com/t/difference-between-site-ruby-and-gems/141352)

<div class="topic-metadata">

**Author:** [@caliwildman](https://www.ruby-forum.com/u/caliwildman)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 6:57am UTC](https://www.ruby-forum.com/t/difference-between-site-ruby-and-gems/141352 "2008-06-25T06:57:44Z")

</div>

I am trying to understand the difference between site\_ruby (Ruby extensions and libraries) and gems. I read that extensions are generally meant for more low-level type extensions usually written say in C. However, in …

---

## [Waves 0.7.5 (Janus) Release](https://www.ruby-forum.com/t/waves-0-7-5-janus-release/141372)

<div class="topic-metadata">

**Author:** [@danoyoung](https://www.ruby-forum.com/u/danoyoung)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 4:33am UTC](https://www.ruby-forum.com/t/waves-0-7-5-janus-release/141372 "2008-06-25T04:33:53Z")

</div>

The first major release of Waves since our initial release in February is out. Many fixes and improvements, including a test suite. :slight\_smile: All the details can be found at: http://rubywaves.com/waves-0-7-5 A …

---

## [ruby-1.9$B$N%$%s%9%H!\<%kCf$K(Bsegv](https://www.ruby-forum.com/t/ruby-1-9-b-n-s-9-h-kcf-k-bsegv/141370)

<div class="topic-metadata">

**Author:** [@Fujioka](https://www.ruby-forum.com/u/Fujioka)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 4:01am UTC](https://www.ruby-forum.com/t/ruby-1-9-b-n-s-9-h-kcf-k-bsegv/141370 "2008-06-25T04:01:45Z")

</div>

xibbare$B$3$HJ!Eg$NF#2,$G$9!#e(B RubyKaigie$B$O$\*Hh$l$5$^$G$7$?!#e(B MacPortse$B$Ke(B1.9.0-2e$B$,$"$,$C$FMh$?$N$GAaB.%$%s%9%H!\<%ke(B e$B$7$h$&$H$7$?$H$3$m!"e(Brdoce$B$N@8@.Cf$KMn$A$?$N$GJs9p$7$^$9!#e(B e$B4D6-$Oe(B10…

---

## [ruby-1.8.6-p230$B$H(Blargefile.h](https://www.ruby-forum.com/t/ruby-1-8-6-p230-b-h-blargefile-h/141366)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 2:40am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p230-b-h-blargefile-h/141366 "2008-06-25T02:40:59Z")

</div>

e$B$3$s$K$A$O!#e(B ruby-1.8.6-p230e$B$re(Bpkgsrc(2008Q1e$BMQe(B)e$B$K=\`Hw$7$h$&$H$7$F$$$F!"e(Barchdire$B$Ke(B largefile.he$B$H$$$&%U%!%$%k$,%$%s%9%H!\<%k$5$l$F$$$k$N$K5$$,$D$-$^$7$?!#e(B e$B2?$+A}$($?$N$+$H;W$C$?$i%5%$…

---

## [Ruby upgrade in Mac OS X Leopard](https://www.ruby-forum.com/t/ruby-upgrade-in-mac-os-x-leopard/140992)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [June 25, 2008, 12:42am UTC](https://www.ruby-forum.com/t/ruby-upgrade-in-mac-os-x-leopard/140992 "2008-06-25T00:42:17Z")

</div>

Hello guys, I am working with the standard Ruby delivered within Mac OS X Leopard. It is the version 1.8.6 patch level 111. Is it possible to apply patches? or do they come with Mac OS X updates? If I should apply t…

---

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

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 12:32am UTC](https://www.ruby-forum.com/t/problem-with-array-delete/141354 "2008-06-25T00:32:21Z")

</div>

Hi all, In messing around with Array#delete I think I’ve uncovered a problem. Consider this example: class Foo def ==(other) $array.clear false end end arr = \[1, 2, 3\] arr \<\< Foo.new Arr \<\< ‘b’ $array = arr a…

---

## [Can't install warbler 0.9.5?](https://www.ruby-forum.com/t/cant-install-warbler-0-9-5/141336)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 9\
**Last updated:** [June 24, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/cant-install-warbler-0-9-5/141336 "2008-06-24T22:58:44Z")

</div>

I am trying to install warbler 0.9.5 with this command: /tools/jruby-1.1.1/bin/jruby -S gem install warbler -v 0.9.5 JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wik…

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

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