# Ruby

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

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

---

## [GlassFish gem 1.0.0 available](https://www.ruby-forum.com/t/glassfish-gem-1-0-0-available/180069)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 1\
**Last updated:** [December 11, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/glassfish-gem-1-0-0-available/180069 "2009-12-11T17:31:26Z")

</div>

This is 1.0.0 release of GlassFish gem. This release is based on GlassFish v3 final https://glassfish.dev.java.net/downloads/v3-final.html release. Checkout the release notes http://glassfishgem.rubyforge.org/ and r…

---

## [Test::Unit - Ruby Unit Testing Framework Questions](https://www.ruby-forum.com/t/test-unit-ruby-unit-testing-framework-questions/177716)

<div class="topic-metadata">

**Author:** [@musty](https://www.ruby-forum.com/u/musty)\
**Replies:** 2\
**Last updated:** [December 11, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/test-unit-ruby-unit-testing-framework-questions/177716 "2009-12-11T16:21:01Z")

</div>

Recently, we collected several (29) Selenium Ruby scripts and put them into a unit test that runs whenever thereâ€™s a build of our product. Thatâ€™s been reasonably successful, but our developers would like more. Sp…

---

## [Java ByteArrayOutputStream to Ruby String](https://www.ruby-forum.com/t/java-bytearrayoutputstream-to-ruby-string/180086)

<div class="topic-metadata">

**Author:** [@Paul\_F\_Fraser](https://www.ruby-forum.com/u/Paul_F_Fraser)\
**Replies:** 1\
**Last updated:** [December 11, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/java-bytearrayoutputstream-to-ruby-string/180086 "2009-12-11T15:20:19Z")

</div>

Hi, If coded as follows:- str = String.from\_java\_bytes(byte\_array\_output\_stream.to\_byte\_array) Presumably, the output stream is copied to a java byte array, and the byte array is either cast or copied to the ruby str…

---

## [How to check if operation returns an error](https://www.ruby-forum.com/t/how-to-check-if-operation-returns-an-error/179911)

<div class="topic-metadata">

**Author:** [@lordcrap](https://www.ruby-forum.com/u/lordcrap)\
**Replies:** 3\
**Last updated:** [December 11, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/how-to-check-if-operation-returns-an-error/179911 "2009-12-11T14:37:00Z")

</div>

Hi all, I started learning ruby two weeks ago and I’m loving it. I’m coding some date/time program to practice at the moment and I hit a wall. I need a way to ask ruby whether or not a certain operation will return an…

---

## [Solve this ruby problem](https://www.ruby-forum.com/t/solve-this-ruby-problem/180094)

<div class="topic-metadata">

**Author:** [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Replies:** 4\
**Last updated:** [December 11, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/solve-this-ruby-problem/180094 "2009-12-11T12:38:03Z")

</div>

below are the command and the error shows by complier: class MyLogger private\_class\_method :new @@logger = nil def MyLogger.create @@logger = new unless @@logger @@logger end end MyLogger.create.id the error is…

---

## [Jruby yaml](https://www.ruby-forum.com/t/jruby-yaml/179947)

<div class="topic-metadata">

**Author:** [@dalton](https://www.ruby-forum.com/u/dalton)\
**Replies:** 7\
**Last updated:** [December 11, 2009, 10:41am UTC](https://www.ruby-forum.com/t/jruby-yaml/179947 "2009-12-11T10:41:08Z")

</div>

Hi there, is someone using yaml in jruby? I am looking for the best library solution at the moment and testing around a bit. The ruby core classes are working very good, except the fact that the to\_yaml method doesn’t …

---

## [Help me solve the problem in linux](https://www.ruby-forum.com/t/help-me-solve-the-problem-in-linux/180093)

<div class="topic-metadata">

**Author:** [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Replies:** 0\
**Last updated:** [December 11, 2009, 10:15am UTC](https://www.ruby-forum.com/t/help-me-solve-the-problem-in-linux/180093 "2009-12-11T10:15:20Z")

</div>

below are the command and the error show when compile… class MyLogger private\_class\_method :new @@logger = nil def MyLogger.create @@logger = new unless @@logger @@logger end end the error shows as follow: 1.rb…

---

## [Tk buttons with images?](https://www.ruby-forum.com/t/tk-buttons-with-images/180077)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 1\
**Last updated:** [December 11, 2009, 6:17am UTC](https://www.ruby-forum.com/t/tk-buttons-with-images/180077 "2009-12-11T06:17:10Z")

</div>

Hello Ive been playing around with ruby Tk to build a UI for a few new music ruby apps I was wondering if anyone knew how to get a image to display for a button? Ive looked around but didn’t find any real world exampl…

---

## [Using OCRA, FXRuby and pdf-writer problem](https://www.ruby-forum.com/t/using-ocra-fxruby-and-pdf-writer-problem/226056)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 6\
**Last updated:** [December 11, 2009, 4:41am UTC](https://www.ruby-forum.com/t/using-ocra-fxruby-and-pdf-writer-problem/226056 "2009-12-11T04:41:53Z")

</div>

Hello all, I made a simple salary calculator as practice using FXRuby, OCRA to create an .exe file and pdf-writer to generate a small “report” with the results of the calculation. The program runs fine when run with …

---

## [\[ANN\] Ruby/GSL-ng 0.1.0](https://www.ruby-forum.com/t/ann-ruby-gsl-ng-0-1-0/180079)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 0\
**Last updated:** [December 11, 2009, 1:15am UTC](https://www.ruby-forum.com/t/ann-ruby-gsl-ng-0-1-0/180079 "2009-12-11T01:15:25Z")

</div>

=Introduction= This is a GSL (GNU Scientific Library) wrapper for Ruby. While others exist (ruby-gsl and rb-gsl), they’re either not completely documented in RDoc or simply too complex to extend and maintain. =Why? (…

---

## [Any Array method to delete elements and return them?](https://www.ruby-forum.com/t/any-array-method-to-delete-elements-and-return-them/180078)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [December 11, 2009, 12:19am UTC](https://www.ruby-forum.com/t/any-array-method-to-delete-elements-and-return-them/180078 "2009-12-11T00:19:37Z")

</div>

Hi, I’ve an array like this: a = \[1,2,3,“aaa”,“bbb”,4,“ccc”\] I want to remove from the array all the Strings, but also want these Strings in a new Array. Array#delete\_if of Array#reject! is not valid because they de…

---

## [Compiling Ruby 1.9.1 on AIX 5.3](https://www.ruby-forum.com/t/compiling-ruby-1-9-1-on-aix-5-3/180075)

<div class="topic-metadata">

**Author:** [@rbaibich](https://www.ruby-forum.com/u/rbaibich)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/compiling-ruby-1-9-1-on-aix-5-3/180075 "2009-12-10T23:34:40Z")

</div>

Hello, Running the Ruby configure on AIX returns the following error: checking for size\_t… yes checking size of size\_t… configure: error: in \`/ruby-1.9.1-p376’: configure: error: cannot compute sizeof (size\_t) Any i…

---

## [Gem installation problem on windows](https://www.ruby-forum.com/t/gem-installation-problem-on-windows/180067)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/gem-installation-problem-on-windows/180067 "2009-12-10T21:05:56Z")

</div>

i have installed ruby successfully. When i am installing any gem then it shows the error the trace is give as below:- please give the solution . Thanks in advance C:\\Documents and Settings\\karriren\>gem install rhode…

---

## [Can't start mongrel\_rails service on win2003](https://www.ruby-forum.com/t/cant-start-mongrel-rails-service-on-win2003/180068)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/cant-start-mongrel-rails-service-on-win2003/180068 "2009-12-10T20:50:43Z")

</div>

I can’t start mongrel server as a service on win2003. mongrel\_rails start \[options\] works, but if I want install it as a service i get error: C:\\ror\\app\>mongrel\_rails service::install -N app -e development -p 30 10 …

---

## [\[Bug #2447\] reduce GC pressure by symbol table without String instance](https://www.ruby-forum.com/t/bug-2447-reduce-gc-pressure-by-symbol-table-without-string-instance/179879)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 4\
**Last updated:** [December 10, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/bug-2447-reduce-gc-pressure-by-symbol-table-without-string-instance/179879 "2009-12-10T18:25:00Z")

</div>

Bug #2447: reduce GC pressure by symbol table without String instance http://redmine.ruby-lang.org/issues/show/2447 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sasada, e$…

---

## [Openssl doesn't support DES3 cipher algorithm (used for paypal transactions)](https://www.ruby-forum.com/t/openssl-doesnt-support-des3-cipher-algorithm-used-for-paypal-transactions/180066)

<div class="topic-metadata">

**Author:** [@Yahoo](https://www.ruby-forum.com/u/Yahoo)\
**Replies:** 3\
**Last updated:** [December 10, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/openssl-doesnt-support-des3-cipher-algorithm-used-for-paypal-transactions/180066 "2009-12-10T17:53:59Z")

</div>

Hi, I’ve a Rails application running on Torquebox / JRuby 1.4.0 / jruby\_openssl 0.6. I cannot do paypal transaction because jruby\_openssl gem doesn’t support DES3 cipher algorithm. Does someone know how to solve thi…

---

## [Strange StateMachine behaviour](https://www.ruby-forum.com/t/strange-statemachine-behaviour/180047)

<div class="topic-metadata">

**Author:** [@ErkA](https://www.ruby-forum.com/u/ErkA)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/strange-statemachine-behaviour/180047 "2009-12-10T17:44:10Z")

</div>

hello I’ve strange problem with state machine in my model state\_machine :user\_state, :initial =\> :unconfirmed do state :unconfirmed, :value =\> 0 state :confirmed, :value =\> 1 state :trusted, :value =\> 2 event :veri…

---

## [How do I ensure that File.write finished?](https://www.ruby-forum.com/t/how-do-i-ensure-that-file-write-finished/180053)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 4\
**Last updated:** [December 10, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/how-do-i-ensure-that-file-write-finished/180053 "2009-12-10T16:53:10Z")

</div>

Hi there. I am trying to make a form to update the values in a yml file (my applications configuration file). This is working kind of fine. Sometimes it works, sometimes not. I have confirmed (through logging) that a…

---

## [File.exist? mystery](https://www.ruby-forum.com/t/file-exist-mystery/180054)

<div class="topic-metadata">

**Author:** [@thebugslayer](https://www.ruby-forum.com/u/thebugslayer)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/file-exist-mystery/180054 "2009-12-10T14:43:10Z")

</div>

Hi there, The following seems very odd to me (file doesn’t exist after I created it!). Is there something I did wrong? irb(main):056:0\* File.open(’/tmp/test.txt’, ‘w’) { |f| f.write(‘hello’) } =\> 5 irb(main):057:0\> …

---

## [PDF::Writer and rubyw](https://www.ruby-forum.com/t/pdf-writer-and-rubyw/180060)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/pdf-writer-and-rubyw/180060 "2009-12-10T14:13:07Z")

</div>

Hi all, Has anyone used PDF::Writer successfully with RubyW? THey don’t seem to work well together, my programs simply terminate as soon as they are executed. Removing require ‘pdf/writer’ solves the problem. Ple…

---

## [Call for proposals - RubyConf India 2010](https://www.ruby-forum.com/t/call-for-proposals-rubyconf-india-2010/180059)

<div class="topic-metadata">

**Author:** [@kaiwren](https://www.ruby-forum.com/u/kaiwren)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 2:08pm UTC](https://www.ruby-forum.com/t/call-for-proposals-rubyconf-india-2010/180059 "2009-12-10T14:08:38Z")

</div>

Hello everyone, The Call for Proposals for talks at RubyConf India 2010 is now open. If there any Ruby communities that you are a member of, please do cross post this information to them. Here are the details, quote…

---

## [Call for proposals - RubyConf India 2010](https://www.ruby-forum.com/t/call-for-proposals-rubyconf-india-2010/180056)

<div class="topic-metadata">

**Author:** [@CSKSPonnappa](https://www.ruby-forum.com/u/CSKSPonnappa)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/call-for-proposals-rubyconf-india-2010/180056 "2009-12-10T13:57:30Z")

</div>

Hello everyone, The Call for Proposals for talks at RubyConf India 2010 is now open. If there any Ruby communities that you are a member of, please do cross post this information to them. Here are the details, quoted…

---

## [Scruffy issue](https://www.ruby-forum.com/t/scruffy-issue/180052)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/scruffy-issue/180052 "2009-12-10T13:48:17Z")

</div>

Hi, I am not sure why, but I can’t get results out of scruffy. At best, it produces an empty image even from the example code (Running Ubunutu 9.10). What worries me, is that my output looks basically like the one on…

---

## [Which is better?](https://www.ruby-forum.com/t/which-is-better/179978)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 6\
**Last updated:** [December 10, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/which-is-better/179978 "2009-12-10T13:19:28Z")

</div>

Hi, I want to delete the numbers in a string, for example, x=“abcd1234” I have two ways: x.gsub! /\\d+/,"" x\[/\\d+/\]="" Which one is better? I personally prefer the second one. Thanks.

---

## [Multicast and windows](https://www.ruby-forum.com/t/multicast-and-windows/179995)

<div class="topic-metadata">

**Author:** [@raubarede](https://www.ruby-forum.com/u/raubarede)\
**Replies:** 8\
**Last updated:** [December 10, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/multicast-and-windows/179995 "2009-12-10T12:50:24Z")

</div>

report for trying IP multicast with ruby 1.8 / iron ruby / jruby : sending datagramme : ok for all receiving datagramme : ok for iron ruby, no reception for ruby 1.8, error with jruby test sending datagramme : r…

---

## [Lanja kodaka](https://www.ruby-forum.com/t/lanja-kodaka/180050)

<div class="topic-metadata">

**Author:** [@Connecting\_World](https://www.ruby-forum.com/u/Connecting_World)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 11:40am UTC](https://www.ruby-forum.com/t/lanja-kodaka/180050 "2009-12-10T11:40:34Z")

</div>

LANJA KODAKA GUDHA MOOSUKONI KINDA WEBSITE CHOOSI NAARCHUKO . http://knowledgeatheaven.blogspot.com/2009/09/welcome-to-home-page.html

---

## [Zbatery - Rack HTTP server without a fork stuck in it](https://www.ruby-forum.com/t/zbatery-rack-http-server-without-a-fork-stuck-in-it/180049)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 10:19am UTC](https://www.ruby-forum.com/t/zbatery-rack-http-server-without-a-fork-stuck-in-it/180049 "2009-12-10T10:19:48Z")

</div>

Zbatery is an HTTP server for Rack applications on systems that either do not support fork(), or have no memory (nor need) to run the master/worker model. It is based on Rainbows! (which is based on Unicorn (which is…

---

## [Flog 2.3.0 Released](https://www.ruby-forum.com/t/flog-2-3-0-released/180039)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 9:44am UTC](https://www.ruby-forum.com/t/flog-2-3-0-released/180039 "2009-12-10T09:44:40Z")

</div>

flog version 2.3.0 has been released! http://ruby.sadi.st/ http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is i…

---

## [Haml](https://www.ruby-forum.com/t/haml/179972)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 8\
**Last updated:** [December 10, 2009, 8:42am UTC](https://www.ruby-forum.com/t/haml/179972 "2009-12-10T08:42:38Z")

</div>

I am starting to look at haml and was wondering if there is anything else like this out there that make working with html easier? – Kind Regards, Rajinder Y. http://DevMentor.org Do Good! - Share Freely

---

## [Chain Method in Class with Method in Module](https://www.ruby-forum.com/t/chain-method-in-class-with-method-in-module/180042)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 3\
**Last updated:** [December 10, 2009, 8:36am UTC](https://www.ruby-forum.com/t/chain-method-in-class-with-method-in-module/180042 "2009-12-10T08:36:47Z")

</div>

I’d like to chain setup in a unit test, so that it calls a method in a module BEFORE running through the setup code. I’d like to do it without having to put super() in the test’s setup method. module MyModule module…

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

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