# Ruby

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

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

---

## [Problem with Eventmachine](https://www.ruby-forum.com/t/problem-with-eventmachine/167567)

<div class="topic-metadata">

**Author:** [@Joseph\_A](https://www.ruby-forum.com/u/Joseph_A)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 9:34pm UTC](https://www.ruby-forum.com/t/problem-with-eventmachine/167567 "2009-05-09T21:34:13Z")

</div>

I’m trying to use the Juggernaut http://juggernaut.rubyforge.org/ gem for a project and would like to use JRuby. It depends on the JSON and Eventmachine gems. The JSON gem uses a native extension, but they also hav…

---

## [Tweet about groovy vs jruby perf](https://www.ruby-forum.com/t/tweet-about-groovy-vs-jruby-perf/167569)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/tweet-about-groovy-vs-jruby-perf/167569 "2009-05-09T20:36:13Z")

</div>

http://twitter.com/tiagofernandez "comparing #groovy and #jruby equivalent implementations: groovy → 7.251s, jruby → 9.436s (30% slower, not surprisingly)about 3 hours ago from Nambu " thoughts? I had thought groov…

---

## [Ruby 1.8.6 P368 windows binaries](https://www.ruby-forum.com/t/ruby-1-8-6-p368-windows-binaries/167533)

<div class="topic-metadata">

**Author:** [@caliwildman](https://www.ruby-forum.com/u/caliwildman)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p368-windows-binaries/167533 "2009-05-09T19:21:41Z")

</div>

I currently have Ruby 1.8.5. After much discussion on another thread about whether to upgrade to 1.8.7 and decided to go with 1.8.6 instead due to chatter about potential 1.8.7 potential compatibility issues. So to in…

---

## [NilClass and Comparable](https://www.ruby-forum.com/t/nilclass-and-comparable/167528)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 9, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/nilclass-and-comparable/167528 "2009-05-09T18:56:00Z")

</div>

nil==0 =\> false class NilClass include Comparable def \<=\>(other) 0 end end =\> nil \[1,nil,2\].sort ArgumentError: comparison of Fixnum with nil failed from (irb):11:in \`sort’ from (irb):11 p nil \> 2 f…

---

## [Packing a UUID](https://www.ruby-forum.com/t/packing-a-uuid/167530)

<div class="topic-metadata">

**Author:** [@ibw](https://www.ruby-forum.com/u/ibw)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/packing-a-uuid/167530 "2009-05-09T18:28:27Z")

</div>

How can I pack a UUID using the array.pack method? I need to send a UUID through a UDP packet, and I can’t figure out how to do this, or specifically, which directive to use. I tried H and h, but neither really seemed…

---

## [\[ANN\] gettext-2.0.3, gettext\_activerecord-2.0.3, gettext\_rails-2.0.3](https://www.ruby-forum.com/t/ann-gettext-2-0-3-gettext-activerecord-2-0-3-gettext-rails-2-0-3/167572)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/ann-gettext-2-0-3-gettext-activerecord-2-0-3-gettext-rails-2-0-3/167572 "2009-05-09T17:02:52Z")

</div>

Hi, Ruby-GetText-Package-2.0.3 and the families (gettext-2.0.3, gettext\_activerecord-2.0.3 and gettext\_rails-2.0.3) are now available. Ruby-GetText-Package is the library/tools for message localization. gettext - M…

---

## [Locale-2.0.3, locale\_rails-2.0.3](https://www.ruby-forum.com/t/locale-2-0-3-locale-rails-2-0-3/167570)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/locale-2-0-3-locale-rails-2-0-3/167570 "2009-05-09T17:02:17Z")

</div>

Hi, Ruby-Locale(locale-2.0.3) and Ruby-Locale for Ruby on Rails(locale\_rails-2.0.3) are now available. Ruby-Locale is the library to manage/detect various format of locale IDs(language tags), and provide ISO 639-3, …

---

## [\[Bug:1.8\] Tempfile and extended Enumerable](https://www.ruby-forum.com/t/bug-1-8-tempfile-and-extended-enumerable/167510)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/bug-1-8-tempfile-and-extended-enumerable/167510 "2009-05-09T16:30:04Z")

</div>

1.8.8dev e$B$G!"0J2\<$N$h$&$K!"e(BEnumerable e$B$Ke(B each2 e$B$rDj5A$7!“e(B Tempfile e$B$re(B each2 e$B$G7+$jJV$=$&$H$9$k$H!”%V%m%C%/$,8F$P$l$^$;e(B e$B$s!#e(B % cat tst.rb require ‘tempfile’ module Enumerable def…

---

## [\[ANN\] Rumai 2.1.0](https://www.ruby-forum.com/t/ann-rumai-2-1-0/167553)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 9:33am UTC](https://www.ruby-forum.com/t/ann-rumai-2-1-0/167553 "2009-05-09T09:33:30Z")

</div>

Rumai 2.1.0 Ruby interface to the wmii window manager http://snk.tuxfamily.org/lib/rumai/ Rumai is a \[1\]Ruby interface to the \[2\]wmii window manager. \* It excels at dynam…

---

## [\[ANN\] faster\_rubygems: speedup rubygems' load time](https://www.ruby-forum.com/t/ann-faster-rubygems-speedup-rubygems-load-time/167546)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [May 9, 2009, 8:51am UTC](https://www.ruby-forum.com/t/ann-faster-rubygems-speedup-rubygems-load-time/167546 "2009-05-09T08:51:30Z")

</div>

pleased to announce release of faster\_rubygems 0.0.1 description: A helper to dramatically speedup the time it takes to run require ‘rubygems’ inspired by a request from Yehuda K. \[1\] and gem\_prelude (and not knowin…

---

## [Regarding irtests](https://www.ruby-forum.com/t/regarding-irtests/167535)

<div class="topic-metadata">

**Author:** [@Tim\_CSSSDO](https://www.ruby-forum.com/u/Tim_CSSSDO)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 7:37am UTC](https://www.ruby-forum.com/t/regarding-irtests/167535 "2009-05-09T07:37:23Z")

</div>

I just pulled from git today and ran irtests, but there are errors happening. I thought irtests should always be clean? Is this happening to everyone? Thanks! Tim

---

## [Jruby + Rails + SOAP](https://www.ruby-forum.com/t/jruby-rails-soap/167468)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 1:03am UTC](https://www.ruby-forum.com/t/jruby-rails-soap/167468 "2009-05-09T01:03:06Z")

</div>

I am currently using actionwebservice to provide SOAP services in my rails application. The rails soap server is lame. There are several forks of it each of which is addressing one issue or another and nobody seems …

---

## [Wilson 1.1.0 Released! RAWR!](https://www.ruby-forum.com/t/wilson-1-1-0-released-rawr/167526)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 12:53am UTC](https://www.ruby-forum.com/t/wilson-1-1-0-released-rawr/167526 "2009-05-09T00:53:44Z")

</div>

wilson version 1.1.0 has been released! http://rubyforge.org/projects/seattlerb Wilson is a pure ruby x86 assembler. No, really. Worst Idea Evar. Why “wilson”? I wanted to name it “metal”, but there is an existing p…

---

## [A brief history of programming languages](https://www.ruby-forum.com/t/a-brief-history-of-programming-languages/167505)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [May 8, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/a-brief-history-of-programming-languages/167505 "2009-05-08T23:23:48Z")

</div>

I like the nickname “Mad Matz”. :slight\_smile: Dan

---

## [Using the GSL library](https://www.ruby-forum.com/t/using-the-gsl-library/167474)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 4\
**Last updated:** [May 8, 2009, 10:26pm UTC](https://www.ruby-forum.com/t/using-the-gsl-library/167474 "2009-05-08T22:26:07Z")

</div>

I’m trying to get started with the gsl-ruby library - thought I’d start with calculating mean of an array. I’m following the example on http://rb-gsl.rubyforge.org/stats.html. But I run into this: require(“gsl”) =\> t…

---

## [File object. Undefined methods](https://www.ruby-forum.com/t/file-object-undefined-methods/167515)

<div class="topic-metadata">

**Author:** [@kojilab](https://www.ruby-forum.com/u/kojilab)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/file-object-undefined-methods/167515 "2009-05-08T21:50:48Z")

</div>

Hi I’m doing the following in the console of a Rails app file = File.open("#{RAILS\_ROOT}/xml/feed.xml") =\> #\<File:/WebApps/app/xml/feed.xml\> f.dirname NoMethodError: undefined method \`dirname’ for #\<File:/WebAp…

---

## [Character encoding](https://www.ruby-forum.com/t/character-encoding/167513)

<div class="topic-metadata">

**Author:** [@RMan](https://www.ruby-forum.com/u/RMan)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/character-encoding/167513 "2009-05-08T21:09:03Z")

</div>

Hi, I develop with Eclipse and I want to embed the JRuby scripting engine in my application. I have an issue with accented characters and JRuby. I initialize my engine like this: ScriptEngineManager m = new ScriptEn…

---

## [Running autotest](https://www.ruby-forum.com/t/running-autotest/167512)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 2\
**Last updated:** [May 8, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/running-autotest/167512 "2009-05-08T20:55:02Z")

</div>

I can’t get autotest to work with JRuby under cygwin, so now I’m trying in a Windows Command Prompt. It’s having trouble with a line like this: jruby -e “%w\[test/unit test/test\_parser.rb\].each { |f| require f }” It s…

---

## [May Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/may-phoenix-ruby-user-group-meeting/167516)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/may-phoenix-ruby-user-group-meeting/167516 "2009-05-08T20:53:48Z")

</div>

May Phoenix Ruby U. Group Meeting When: Monday, May 1, 2009 6:30pm door open. Laptop power and WiFi available. 7:00pm Showtime 8:30pm Migrate to Four Peaks Brewery Topic: Ruby + Processing: Preston L. of OpenRain …

---

## [Problems with win32ole.so](https://www.ruby-forum.com/t/problems-with-win32ole-so/167483)

<div class="topic-metadata">

**Author:** [@abuyaseen](https://www.ruby-forum.com/u/abuyaseen)\
**Replies:** 4\
**Last updated:** [May 8, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/problems-with-win32ole-so/167483 "2009-05-08T18:27:13Z")

</div>

Hi all, I hope this is the right forum to ask following question. I am testing IronRuby 0.3 and trying to use ruby(ruby 1.8.7 (2008-08-11 patchlevel 72) \[i386-mswin32\]) application which works fine on my XP machine. …

---

## [Get Set-Cookie from Soap response](https://www.ruby-forum.com/t/get-set-cookie-from-soap-response/107918)

<div class="topic-metadata">

**Author:** [@notmatt](https://www.ruby-forum.com/u/notmatt)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/get-set-cookie-from-soap-response/107918 "2009-05-08T17:35:17Z")

</div>

Hi, I’m a newbie to Ruby but need to do a couple of soap requests over https. I found Soap4r and Http-access2. I can send the request and receive the response but from our server. I need to retrieve the Set-Cookie f…

---

## [How to find and close opened file descriptor](https://www.ruby-forum.com/t/how-to-find-and-close-opened-file-descriptor/167419)

<div class="topic-metadata">

**Author:** [@oliver-peng](https://www.ruby-forum.com/u/oliver-peng)\
**Replies:** 6\
**Last updated:** [May 8, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/how-to-find-and-close-opened-file-descriptor/167419 "2009-05-08T17:32:09Z")

</div>

During my testing, I found that ruby doesn’t create IO object for each opened file descriptor which are inherited from parent process. So we have to close all these opened file descriptor except stdin, stdout and stde…

---

## [A few thoughts for ruby](https://www.ruby-forum.com/t/a-few-thoughts-for-ruby/165275)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 22\
**Last updated:** [May 8, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/a-few-thoughts-for-ruby/165275 "2009-05-08T17:27:27Z")

</div>

Thought I’d pass these thoughts by the readers here before sending them to core. They’re my current wish list :slight\_smile: add an Object#in? method to complement the existing Array#include? add some useful list…

---

## [RubyGems 1.3.3](https://www.ruby-forum.com/t/rubygems-1-3-3/167169)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 2\
**Last updated:** [May 8, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/rubygems-1-3-3/167169 "2009-05-08T15:14:33Z")

</div>

= Announce: RubyGems Release 1.3.3 NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no rubygems-update installed. You will need to follow the second set of update instructions if you see “Nothing to…

---

## [I have 1.9.1, win32-service gem looking for 1.8](https://www.ruby-forum.com/t/i-have-1-9-1-win32-service-gem-looking-for-1-8/167446)

<div class="topic-metadata">

**Author:** [@gblakeman](https://www.ruby-forum.com/u/gblakeman)\
**Replies:** 5\
**Last updated:** [May 8, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/i-have-1-9-1-win32-service-gem-looking-for-1-8/167446 "2009-05-08T14:47:47Z")

</div>

I have 1.9.1 installed (from zip). My scripts use the win32-service gem, so installed it with: gem install win32-service This installed the following gems without error: win32-api (1.4.0) win32-service (0.6.1) w…

---

## [No documentation for File's methods?](https://www.ruby-forum.com/t/no-documentation-for-files-methods/167384)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 8\
**Last updated:** [May 8, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/no-documentation-for-files-methods/167384 "2009-05-08T13:47:34Z")

</div>

We can do the following… File.open(‘somefile.txt’) File.foreach(‘somefile’) …and I’m trying to see the documentation for these class methods. So I execute “ri File#open” and “ri File#foreach” and I get nothing. I in…

---

## [Js\_eval vs execScript](https://www.ruby-forum.com/t/js-eval-vs-execscript/166944)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/js-eval-vs-execscript/166944 "2009-05-08T13:36:28Z")

</div>

He guys, I have a problem making any of the following running: Browser.document.js\_eval("alert('boo');"); Browser.document.js\_eval("document.getElementById('ctl00\_cntMainContent\_Txt\_Message\_RTB').value='testing'"); I …

---

## [Computers,laptops and softwares](https://www.ruby-forum.com/t/computers-laptops-and-softwares/167493)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/computers-laptops-and-softwares/167493 "2009-05-08T13:00:37Z")

</div>

more information related about computers,laptops,softwares and anti security visit (http://in-computersandlaptops.blogspot.com

---

## [SOAP how to make a request](https://www.ruby-forum.com/t/soap-how-to-make-a-request/166894)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 4\
**Last updated:** [May 8, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/soap-how-to-make-a-request/166894 "2009-05-08T12:17:33Z")

</div>

Hi, I’m newbie sorry I’m testing a web service, loginCustomer but I don’t know why always returns… failed to login user. This is my code: require “soap/wsdlDriver” WSDL\_URL = “http://myserver/WS/services/Access?wsdl” …

---

## [Understanding { } and block\_given](https://www.ruby-forum.com/t/understanding-and-block-given/167477)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 2\
**Last updated:** [May 8, 2009, 11:56am UTC](https://www.ruby-forum.com/t/understanding-and-block-given/167477 "2009-05-08T11:56:05Z")

</div>

Hello, I have the following: class DSL def DSL.load filename dsl = new dsl.instance\_eval(File.read(filename)) dsl end def to sym,\*args,&block if block\_given? b=class \<\< self;self;end b.instance\_eval { define\_…

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

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