# Ruby

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

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

---

## [RubyKaigi2010: CRuby Commiter Invitation](https://www.ruby-forum.com/t/rubykaigi2010-cruby-commiter-invitation/189060)

<div class="topic-metadata">

**Author:** [@Eito\_Katagiri](https://www.ruby-forum.com/u/Eito_Katagiri)\
**Replies:** 1\
**Last updated:** [June 5, 2010, 11:00am UTC](https://www.ruby-forum.com/t/rubykaigi2010-cruby-commiter-invitation/189060 "2010-06-05T11:00:02Z")

</div>

To all CRuby commiters, Like last year, the RubyKaigi Executive Committee would like to invite all CRuby committers to RubyKaigi 2010 that will be held in Tsukuba, Japan from August 27 to August 29, 2010. Please con…

---

## [Io\_splice 2.0.0 - IO::Splice.copy\_stream added!](https://www.ruby-forum.com/t/io-splice-2-0-0-io-splice-copy-stream-added/189692)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 10:54am UTC](https://www.ruby-forum.com/t/io-splice-2-0-0-io-splice-copy-stream-added/189692 "2010-06-05T10:54:46Z")

</div>

The splice family of Linux system calls can transfer data between file descriptors without the need to copy data into userspace. Instead of a userspace buffer, they rely on an ordinary Unix pipe as a kernel-level buf…

---

## [Parsing geonames](https://www.ruby-forum.com/t/parsing-geonames/189515)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 15\
**Last updated:** [June 5, 2010, 8:32am UTC](https://www.ruby-forum.com/t/parsing-geonames/189515 "2010-06-05T08:32:33Z")

</div>

A Ruby newbie having trouble getting results back from geonames #!/usr/bin/env ruby require “rubygems” require ‘geonames’ places\_nearby = Geonames::WebService.find\_nearby\_place\_name 41.505928,-81.594582 p places\_ne…

---

## [Method\_defined? does what exactly?](https://www.ruby-forum.com/t/method-defined-does-what-exactly/189650)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 7\
**Last updated:** [June 5, 2010, 6:36am UTC](https://www.ruby-forum.com/t/method-defined-does-what-exactly/189650 "2010-06-05T06:36:01Z")

</div>

Ruby 1.9.2-head p require\_relative(‘foo’) module Kernel p method\_defined?(:require\_relative) end produces true false Huh?

---

## [Ruby breakpoint has weird idea of what local\_variables are?](https://www.ruby-forum.com/t/ruby-breakpoint-has-weird-idea-of-what-local-variables-are/189429)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [June 5, 2010, 4:10am UTC](https://www.ruby-forum.com/t/ruby-breakpoint-has-weird-idea-of-what-local-variables-are/189429 "2010-06-05T04:10:17Z")

</div>

Hi, I’ve got a 7-liner: require ‘rubygems’ require ‘breakpoint’ a = ‘aaa’ b = ‘bbb’ breakpoint c = ‘ccc’ In a Command window, I’ve got: K:\_Projects\\Ruby\_Ruby\_Tests\\TestBreakpoint\>ruby TestBreakpoint.rb Executin…

---

## [Pack('m') and Windows files](https://www.ruby-forum.com/t/pack-m-and-windows-files/189686)

<div class="topic-metadata">

**Author:** [@syntaxerrormmm](https://www.ruby-forum.com/u/syntaxerrormmm)\
**Replies:** 3\
**Last updated:** [June 5, 2010, 4:02am UTC](https://www.ruby-forum.com/t/pack-m-and-windows-files/189686 "2010-06-05T04:02:44Z")

</div>

Hi all, first post here, hope to ask things the right way :slight\_smile: I’m using Ruby from RubyInstaller, 1.9.1-p243. I’m trying to send a .txt file (which notepad++ says it’s Dos/Windows with ANSI encoding) via em…

---

## [Broken pipe (Errno::EPIPE)](https://www.ruby-forum.com/t/broken-pipe-errno-epipe/189605)

<div class="topic-metadata">

**Author:** [@lucky1234](https://www.ruby-forum.com/u/lucky1234)\
**Replies:** 1\
**Last updated:** [June 5, 2010, 12:13am UTC](https://www.ruby-forum.com/t/broken-pipe-errno-epipe/189605 "2010-06-05T00:13:46Z")

</div>

Hi i have declared action mailer in my ruby file. am sending mail but while sending giving error is /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_view/renderable.rb:77: command not found: /usr/sbin/sendmail -…

---

## [Building JRuby 1.5.0 fails](https://www.ruby-forum.com/t/building-jruby-1-5-0-fails/189299)

<div class="topic-metadata">

**Author:** [@Erno\_M](https://www.ruby-forum.com/u/Erno_M)\
**Replies:** 7\
**Last updated:** [June 4, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/building-jruby-1-5-0-fails/189299 "2010-06-04T19:55:35Z")

</div>

Hi folks, As you may know we build JRuby from sources as part of the NetBeans build process. After upgrading to JRuby 1.5 building JRuby fails on Gentoo, which prevents providing an NB ebuild for Gentoo. Below is the …

---

## [What's next?](https://www.ruby-forum.com/t/whats-next/188427)

<div class="topic-metadata">

**Author:** [@Martin\_Smith](https://www.ruby-forum.com/u/Martin_Smith)\
**Replies:** 39\
**Last updated:** [June 4, 2010, 6:02pm UTC](https://www.ruby-forum.com/t/whats-next/188427 "2010-06-04T18:02:37Z")

</div>

Hey Guys, Now that IronRuby 1.0 has shipped (congrats!!), what’s next on the docket? :slight\_smile: I’m not trying to pressure you guys! Just excited about the future. The feature i’d love to see most would be pre-co…

---

## [Checking hash tables values in multithread environment](https://www.ruby-forum.com/t/checking-hash-tables-values-in-multithread-environment/189662)

<div class="topic-metadata">

**Author:** [@pollopoop92](https://www.ruby-forum.com/u/pollopoop92)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/checking-hash-tables-values-in-multithread-environment/189662 "2010-06-04T17:49:09Z")

</div>

hi list, i’m trying to create a system where i have a producer-consumer paradigm but with threads. Now i already created a mutex. My mainly problem is that the producer get output from many hosts and i have to store …

---

## [Samples/irb-applet.html failed to load](https://www.ruby-forum.com/t/samples-irb-applet-html-failed-to-load/189621)

<div class="topic-metadata">

**Author:** [@thebugslayer](https://www.ruby-forum.com/u/thebugslayer)\
**Replies:** 1\
**Last updated:** [June 4, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/samples-irb-applet-html-failed-to-load/189621 "2010-06-04T17:01:09Z")

</div>

Hi list, I just tried the jruby-1.5.0/samples/irb- applet.html, and it failed. I have to change the html file with correct archive name and add LOAD\_PATH to make it load successfully. Perhaps someone want to update …

---

## [Package jruby scripts as a jar](https://www.ruby-forum.com/t/package-jruby-scripts-as-a-jar/189564)

<div class="topic-metadata">

**Author:** [@Tommy\_C](https://www.ruby-forum.com/u/Tommy_C)\
**Replies:** 2\
**Last updated:** [June 4, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/package-jruby-scripts-as-a-jar/189564 "2010-06-04T16:18:58Z")

</div>

I have a command line jruby script that I want to package as a jar so any java user without jruby can run it like: java -jar my-jruby-app.jar arg1 I saw this link to build a custom jruby jar but i want to be able to …

---

## [Assert\_raise question](https://www.ruby-forum.com/t/assert-raise-question/54578)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 9\
**Last updated:** [June 4, 2010, 3:54pm UTC](https://www.ruby-forum.com/t/assert-raise-question/54578 "2010-06-04T15:54:49Z")

</div>

Currently, assert\_raise expects you to know exactly what kind of exception is going to be thrown by raise. Basically it tests to see if exception.class == expected.class. I think a more appropriate behavior would b…

---

## [Play funny games](https://www.ruby-forum.com/t/play-funny-games/189656)

<div class="topic-metadata">

**Author:** [@KAJOL](https://www.ruby-forum.com/u/KAJOL)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 3:40pm UTC](https://www.ruby-forum.com/t/play-funny-games/189656 "2010-06-04T15:40:55Z")

</div>

PLAY CAR RACE GAMES:- PLAY CAR RACE GAMES ON MY WEB SITE AND ENJOY UR MIND FRESH AND U CAN DOWN LOAD ALSO MY GAMES VISIT http://andhraonlinegames.blogspot.Scom

---

## [Unexpected length of Â£ (pound) character?](https://www.ruby-forum.com/t/unexpected-length-of-a-pound-character/189644)

<div class="topic-metadata">

**Author:** [@anthonys](https://www.ruby-forum.com/u/anthonys)\
**Replies:** 4\
**Last updated:** [June 4, 2010, 3:04pm UTC](https://www.ruby-forum.com/t/unexpected-length-of-a-pound-character/189644 "2010-06-04T15:04:02Z")

</div>

Hi, Today I came across an issue with a customer custom report which was out by 1 char over 40 or so lines. At first thought I had incorrectly limited the field length, however the problem is only present where there…

---

## [Escape character with decimal value](https://www.ruby-forum.com/t/escape-character-with-decimal-value/189617)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [June 4, 2010, 12:55pm UTC](https://www.ruby-forum.com/t/escape-character-with-decimal-value/189617 "2010-06-04T12:55:50Z")

</div>

I’m familiar with “\\xnn” to escape a hex value in a string. Is there any way to escape a character with a decimal value? “#{197.chr}” works but doesn’t seem like an escape per se… Thanks. -r

---

## [Active Directory in Ruby on rails](https://www.ruby-forum.com/t/active-directory-in-ruby-on-rails/189092)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 2\
**Last updated:** [June 4, 2010, 11:18am UTC](https://www.ruby-forum.com/t/active-directory-in-ruby-on-rails/189092 "2010-06-04T11:18:43Z")

</div>

Hi All, What is Active Directory authentication?. How to use in Ruby on rails?. Regards, Periyasamy.R

---

## [Rainbows! 0.94.0 - one eight ate my homework!](https://www.ruby-forum.com/t/rainbows-0-94-0-one-eight-ate-my-homework/189635)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 10:54am UTC](https://www.ruby-forum.com/t/rainbows-0-94-0-one-eight-ate-my-homework/189635 "2010-06-04T10:54:03Z")

</div>

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily b…

---

## [\[bug:trunk\] Re: \[ruby-cvs:35358\] Ruby:r28148 (trunk, ruby\_1\_9\_2): \* ext/dl/cfunc.c (rb\_dlcfunc\_inspe](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-35358-ruby-r28148-trunk-ruby-1-9-2-ext-dl-cfunc-c-rb-dlcfunc-inspe/189624)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 1\
**Last updated:** [June 4, 2010, 3:47am UTC](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-35358-ruby-r28148-trunk-ruby-1-9-2-ext-dl-cfunc-c-rb-dlcfunc-inspe/189624 "2010-06-04T03:47:22Z")

</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:35358\] Ruby:r28148 (trunk, ruby\_1\_9\_2): \* ext/dl/cfunc.c (rb\_dlcfunc\_inspect): suppress warnings by” on Jun.03,2010 19:34:02, removed\_email\_addres…

---

## [Group email address typo in Google group mirror?](https://www.ruby-forum.com/t/group-email-address-typo-in-google-group-mirror/189619)

<div class="topic-metadata">

**Author:** [@thebugslayer](https://www.ruby-forum.com/u/thebugslayer)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 1:50am UTC](https://www.ruby-forum.com/t/group-email-address-typo-in-google-group-mirror/189619 "2010-06-04T01:50:54Z")

</div>

Hi, Looking at http://groups.google.com/group/jruby-users, shouldn’t removed\_email\_address@domain.invalid be removed\_email\_address@domain.invalid instead, or this intentional? /Z

---

## [Gmail\_contacts 2.0 Released](https://www.ruby-forum.com/t/gmail-contacts-2-0-released/189618)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 1:38am UTC](https://www.ruby-forum.com/t/gmail-contacts-2-0-released/189618 "2010-06-04T01:38:01Z")

</div>

gmail\_contacts version 2.0 has been released! http://seattlerb.rubyforge.org/gmail\_contacts Simple Gmail contacts extraction using GData. gmail\_contacts development was sponsored by AT&T Interactive. Changes: 2.0 …

---

## [Find whole words in excel](https://www.ruby-forum.com/t/find-whole-words-in-excel/130437)

<div class="topic-metadata">

**Author:** [@meena](https://www.ruby-forum.com/u/meena)\
**Replies:** 2\
**Last updated:** [June 4, 2010, 12:21am UTC](https://www.ruby-forum.com/t/find-whole-words-in-excel/130437 "2010-06-04T00:21:36Z")

</div>

I am trying to locate a column name in excel and i am using the “find” method. But it seems to be doing a partial match (instead of whole word match). I have two columns in my excel “ParentOrgId” and “OrgId” , when i …

---

## [Code Review: gitsync](https://www.ruby-forum.com/t/code-review-gitsync/189613)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/code-review-gitsync/189613 "2010-06-03T23:43:18Z")

</div>

tfpt review “/shelveset:gitsync;REDMOND\\jdeville” Comment : sync from git: commit 31501e7cac50ec624590d180b7da9fdec7d1a12f Author: Jim D. removed\_email\_address@domain.invalid Date: Wed Jun 2 14:57:55 2010 -0700 …

---

## [Indows XP SP2, Ruby 1.9.1: unable to install ruby-debug-ide](https://www.ruby-forum.com/t/indows-xp-sp2-ruby-1-9-1-unable-to-install-ruby-debug-ide/189609)

<div class="topic-metadata">

**Author:** [@techy\_bolek](https://www.ruby-forum.com/u/techy_bolek)\
**Replies:** 2\
**Last updated:** [June 3, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/indows-xp-sp2-ruby-1-9-1-unable-to-install-ruby-debug-ide/189609 "2010-06-03T22:58:33Z")

</div>

On my Windows XP SP2 I got Ruby 1.9.1 I downloaded from http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html. Trying to install ruby-debug-ide but get and error. The plugin ends up not being installed. C…

---

## [RubyArray to List\<T\>?](https://www.ruby-forum.com/t/rubyarray-to-list-t/189554)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 2\
**Last updated:** [June 3, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/rubyarray-to-list-t/189554 "2010-06-03T22:10:50Z")

</div>

Hello, I have a block of code which returns me a RubyArray back into C# code. While I can get access to the strongly typed objects inside using reflection, I was wondering if there was any way to get the data back as…

---

## [\[ANN\] Money 3.0.2](https://www.ruby-forum.com/t/ann-money-3-0-2/189607)

<div class="topic-metadata">

**Author:** [@semmons99](https://www.ruby-forum.com/u/semmons99)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/ann-money-3-0-2/189607 "2010-06-03T21:19:20Z")

</div>

Money 3.0.2 Released Added #div, #divmod, #modulo, #% and #remainder methods.

---

## [Geonames DST problem](https://www.ruby-forum.com/t/geonames-dst-problem/189606)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 9:10pm UTC](https://www.ruby-forum.com/t/geonames-dst-problem/189606 "2010-06-03T21:10:09Z")

</div>

The script: #!/usr/bin/env ruby require ‘rubygems’ require ‘geonames’ lat=-54.936772 lon=-67.604408 timezone = Geonames::WebService.timezone lat, lon dst\_offset = timezone.dst\_offset.to\_i # Is this for the day it’…

---

## [Split text into equal characters but keeping whole words](https://www.ruby-forum.com/t/split-text-into-equal-characters-but-keeping-whole-words/189571)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 3\
**Last updated:** [June 3, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/split-text-into-equal-characters-but-keeping-whole-words/189571 "2010-06-03T20:49:28Z")

</div>

Hi, I have text that is petty large. What i want to do is split it into an array of no more than 250 characters per line but finishing on a full word at the end of each line. So if the last word was “ruby” but ‘b’ …

---

## [Dynamicaly define a method which body can contain yield](https://www.ruby-forum.com/t/dynamicaly-define-a-method-which-body-can-contain-yield/189583)

<div class="topic-metadata">

**Author:** [@raubarede](https://www.ruby-forum.com/u/raubarede)\
**Replies:** 4\
**Last updated:** [June 3, 2010, 8:28pm UTC](https://www.ruby-forum.com/t/dynamicaly-define-a-method-which-body-can-contain-yield/189583 "2010-06-03T20:28:54Z")

</div>

Hello, So i try to define a methode by providing a bloc which can contain a yield. I got a error ‘no block given (yield)’ on yield execution Here is my test code : class B def p1 ; puts “p1”; end def p2 ; puts “p…

---

## [Is there a Thin equivalent for JRuby?](https://www.ruby-forum.com/t/is-there-a-thin-equivalent-for-jruby/179771)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 12\
**Last updated:** [June 3, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/is-there-a-thin-equivalent-for-jruby/179771 "2010-06-03T20:19:51Z")

</div>

I recently started reading about the Thin webserver and the evented model it supports. For some stuff we are doing here I would like to investigate this further but with JRuby. Some examples I’ve seen with Thin show…

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

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