# Ruby

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

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

---

## [Simple question: compare words](https://www.ruby-forum.com/t/simple-question-compare-words/175710)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 6\
**Last updated:** [September 18, 2009, 9:07am UTC](https://www.ruby-forum.com/t/simple-question-compare-words/175710 "2009-09-18T09:07:22Z")

</div>

I want to compare same words in a and b then, I wrote this, $ye $bu a = “ali”, “bel”, “del”,“en” b = “ali”,“bas”,“del”,“sx”,“en”,“sz”,“zen” for xa in a $ye= xa end b.each do |bx| $bu = bx if $ye == $bu puts “…

---

## [Best practices for managing gem\_home/gem\_path on OSX to coexist with MRI?](https://www.ruby-forum.com/t/best-practices-for-managing-gem-home-gem-path-on-osx-to-coexist-with-mri/175655)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 11\
**Last updated:** [September 18, 2009, 1:10am UTC](https://www.ruby-forum.com/t/best-practices-for-managing-gem-home-gem-path-on-osx-to-coexist-with-mri/175655 "2009-09-18T01:10:57Z")

</div>

What is the best way to manage gems on a box (OSX Leopard) that will run both MRI and JRuby? Do you install JRuby gems separately under JRuby’s gem home? How do people manage your GEM\_HOME and GEM\_PATH? Do you manag…

---

## [Scrubyt anyone?](https://www.ruby-forum.com/t/scrubyt-anyone/175642)

<div class="topic-metadata">

**Author:** [@Audrey\_A\_Lee](https://www.ruby-forum.com/u/Audrey_A_Lee)\
**Replies:** 4\
**Last updated:** [September 17, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/scrubyt-anyone/175642 "2009-09-17T23:50:12Z")

</div>

Hi, Are any of you using scrubyt? Scrubyt has a forum but it seems near death. But, this mail-list has a good group of very sharp and knowledgeable rubyists. I have installed the scrubyt demos: git clone git://git…

---

## [URI.regexp buggy for detecting links?](https://www.ruby-forum.com/t/uri-regexp-buggy-for-detecting-links/175696)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/uri-regexp-buggy-for-detecting-links/175696 "2009-09-17T22:06:16Z")

</div>

Hey list, we use URI.regexp(\[‘ftp’,‘http’,‘https’,‘ftp’,‘mailto’,‘see’\]) to detect links in a text. But if a link is entered with brackets e.g. this is a text (http://www.link.com), the closing bracket is also format…

---

## [How to bind canvas events to tags?](https://www.ruby-forum.com/t/how-to-bind-canvas-events-to-tags/175249)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 6\
**Last updated:** [September 17, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/how-to-bind-canvas-events-to-tags/175249 "2009-09-17T22:01:19Z")

</div>

Hello, In Perl/Tk, I can use $canv-\>bind("foobar", '\<1\>' =\> sub { xxxx; }); to bind a canvas event to all items with the “foobar” tag. This is a very powerful construct, so I’d like to use it in ruby, too. But r…

---

## [How to fetch Cookie from response](https://www.ruby-forum.com/t/how-to-fetch-cookie-from-response/175693)

<div class="topic-metadata">

**Author:** [@freephoneid](https://www.ruby-forum.com/u/freephoneid)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/how-to-fetch-cookie-from-response/175693 "2009-09-17T21:57:14Z")

</div>

Hi, I’m trying to write a program which will try to login to my web site by passing user & password. The site is in ASP.net for which I’m trying to authenticate. Somehow, I’m having problem with fetching cookies from…

---

## [Windows XP RubyFile.link issue](https://www.ruby-forum.com/t/windows-xp-rubyfile-link-issue/175686)

<div class="topic-metadata">

**Author:** [@zach](https://www.ruby-forum.com/u/zach)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/windows-xp-rubyfile-link-issue/175686 "2009-09-17T20:05:23Z")

</div>

Hi all, I am a bit new to the ruby world but I have an issue where I am trying to run a db:load rake task and i get this error(full trace below) – create\_table(“addresses”, {:force=\>true}) rake aborted! link() funct…

---

## [Need help to understand URI](https://www.ruby-forum.com/t/need-help-to-understand-uri/175679)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/need-help-to-understand-uri/175679 "2009-09-17T16:11:12Z")

</div>

I’m trying to understand different parts of a URI. URI#parse() uses URI#split(). But I don’t understand which component is which. There are nine components. scheme, userinfo, host, port, registry, path, opaque, quer…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/175677)

<div class="topic-metadata">

**Author:** [@Nikhil\_Kadadi](https://www.ruby-forum.com/u/Nikhil_Kadadi)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/unsubscribe/175677 "2009-09-17T15:52:28Z")

</div>

unsubscribe

---

## [Zlib::BufError on Windows Server 2003](https://www.ruby-forum.com/t/zlib-buferror-on-windows-server-2003/175549)

<div class="topic-metadata">

**Author:** [@stamu](https://www.ruby-forum.com/u/stamu)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/zlib-buferror-on-windows-server-2003/175549 "2009-09-17T14:55:10Z")

</div>

Im trying to set Redmine to Windows Server 2003R2 SP2. I set Ruby, Gems, but when Im installing rake or rails or other gem I get error ERROR: While executing gem … (Zlib::BufError) buffer error Command “gem update…

---

## [Mixing Ruby/JRuby while developing a rails app?](https://www.ruby-forum.com/t/mixing-ruby-jruby-while-developing-a-rails-app/175651)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 6\
**Last updated:** [September 17, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/mixing-ruby-jruby-while-developing-a-rails-app/175651 "2009-09-17T13:13:15Z")

</div>

I’ve been trying to find a good answer to this, but have been coming up empty handed… I love JRuby and have one production rails app out there using it now, with a second on the way. My question, however, is about u…

---

## [Itterate over an Array Extracting Data](https://www.ruby-forum.com/t/itterate-over-an-array-extracting-data/175667)

<div class="topic-metadata">

**Author:** [@danielr](https://www.ruby-forum.com/u/danielr)\
**Replies:** 7\
**Last updated:** [September 17, 2009, 11:55am UTC](https://www.ruby-forum.com/t/itterate-over-an-array-extracting-data/175667 "2009-09-17T11:55:59Z")

</div>

So I have the following array people = \[“Employee 1”, “Secretary”, “Male”, “54”\] \[“Employee 2”, “Manager”, “Female”, “44”\] \[“Employee 3”, “Chef”, “Female”, “22”\] I would like to iterate over this array pulling out j…

---

## [Failing to require win32/eventlog](https://www.ruby-forum.com/t/failing-to-require-win32-eventlog/175669)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 11:40am UTC](https://www.ruby-forum.com/t/failing-to-require-win32-eventlog/175669 "2009-09-17T11:40:45Z")

</div>

Hi, Im using a German Microsoft XP and I am trying to get access to the windows event log. Unfortunelty, Im getting the following error stack: C:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.1/lib/windows/api.rb: 338…

---

## [EventMachine with REST](https://www.ruby-forum.com/t/eventmachine-with-rest/175665)

<div class="topic-metadata">

**Author:** [@kingston](https://www.ruby-forum.com/u/kingston)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 11:33am UTC](https://www.ruby-forum.com/t/eventmachine-with-rest/175665 "2009-09-17T11:33:09Z")

</div>

Hello I recently started working on Event Machine and its still the early days. I had started a service(a small server) running on port 8001 using Event Machine. Currently,I want to pass a given querystring with m…

---

## [Win32 service - daemon](https://www.ruby-forum.com/t/win32-service-daemon/175527)

<div class="topic-metadata">

**Author:** [@i8igmac](https://www.ruby-forum.com/u/i8igmac)\
**Replies:** 5\
**Last updated:** [September 17, 2009, 11:09am UTC](https://www.ruby-forum.com/t/win32-service-daemon/175527 "2009-09-17T11:09:57Z")

</div>

i think i understand how the process works, require “rubygems” require “win32/service” require ‘win32/daemon’ include Win32 Create a new service Service.delete(‘netcat’) Service.create(‘netcat’, nil, :service\_type…

---

## [Gem instal package](https://www.ruby-forum.com/t/gem-instal-package/175658)

<div class="topic-metadata">

**Author:** [@i8igmac](https://www.ruby-forum.com/u/i8igmac)\
**Replies:** 4\
**Last updated:** [September 17, 2009, 10:25am UTC](https://www.ruby-forum.com/t/gem-instal-package/175658 "2009-09-17T10:25:49Z")

</div>

This never works for me, the disered package is installed but when i attempt to use it ruby install ocra ruby ocra.rb test.rb ‘ruby: No such file or directory – ocra.rb (LoadError)’ whats the secret?

---

## [Marshal gives error when dumping and loading array with two regexps in latest ruby 1.9](https://www.ruby-forum.com/t/marshal-gives-error-when-dumping-and-loading-array-with-two-regexps-in-latest-ruby-1-9/175601)

<div class="topic-metadata">

**Author:** [@crocco](https://www.ruby-forum.com/u/crocco)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 10:21am UTC](https://www.ruby-forum.com/t/marshal-gives-error-when-dumping-and-loading-array-with-two-regexps-in-latest-ruby-1-9/175601 "2009-09-17T10:21:43Z")

</div>

I just upgraded my ruby 1.9 to the latest stable version (ruby 1.9.1-p243), and now I’m facing a strange issue. The problem is that attempting to use Marshal to dump and then load back an array containing two Regexps…

---

## [Audio file de-/encoding question](https://www.ruby-forum.com/t/audio-file-de-encoding-question/175643)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 1\
**Last updated:** [September 17, 2009, 9:26am UTC](https://www.ruby-forum.com/t/audio-file-de-encoding-question/175643 "2009-09-17T09:26:41Z")

</div>

Dear all, I need to convert some \*wav files to their spectrum to be able to change some of the frequencies and loudnesses in them and to re-encode these afterwards as \*wav files. Can you recommend any Ruby libraries …

---

## [String to array](https://www.ruby-forum.com/t/string-to-array/175623)

<div class="topic-metadata">

**Author:** [@rereis](https://www.ruby-forum.com/u/rereis)\
**Replies:** 14\
**Last updated:** [September 17, 2009, 9:14am UTC](https://www.ruby-forum.com/t/string-to-array/175623 "2009-09-17T09:14:23Z")

</div>

Hello all, I have a string “apple-orange-grape”. I need to create a array that will look like \[“apple-orange-grape”,“orange-grape”,“grape”\] thanks

---

## [\[Bug #2036\] AIX 5L 5.2$B$K$F!"(Bruby-1.8.7-p174$B$N%S%k%I;~$K(Bmake test$B$r$9$k$H%(%i!\<$K$J$C$](https://www.ruby-forum.com/t/bug-2036-aix-5l-5-2-b-k-f-bruby-1-8-7-p174-b-n-s-k-i-k-bmake-test-b-r-9-k-h-i-k-j-c/174878)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSS\_SS\_SSSS](https://www.ruby-forum.com/u/SSSSSSSSSSS_SS_SSSS)\
**Replies:** 12\
**Last updated:** [September 17, 2009, 8:13am UTC](https://www.ruby-forum.com/t/bug-2036-aix-5l-5-2-b-k-f-bruby-1-8-7-p174-b-n-s-k-i-k-bmake-test-b-r-9-k-h-i-k-j-c/174878 "2009-09-17T08:13:31Z")

</div>

Bug #2036: AIX 5L 5.2e$B$K$F!"e(Bruby-1.8.7-p174e$B$N%S%k%I;~$Ke(Bmake teste$B$r$9$k$H%(%i!\<$K$J$C$?!#e(Bnot ok float 7 – ./sample/test.rb:1232 http://redmine.ruby-lang.org/issues/show/2036 e$B5/I\<\<Te(B: e$BOBLoe(B e…

---

## [MiniTest](https://www.ruby-forum.com/t/minitest/175657)

<div class="topic-metadata">

**Author:** [@george\_thomas](https://www.ruby-forum.com/u/george_thomas)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 7:54am UTC](https://www.ruby-forum.com/t/minitest/175657 "2009-09-17T07:54:21Z")

</div>

Hi, I am relatively new to Ruby and I couldn’t make MiniTest to execute the test. The code I am trying to is as follows Require the win32ole library:loade require ‘rubygems’ require ‘win32ole’ require ‘minitest/uni…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/175653)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 4:58am UTC](https://www.ruby-forum.com/t/unsubscribe/175653 "2009-09-17T04:58:38Z")

</div>

unsubscribe

---

## [Type checking function parameters](https://www.ruby-forum.com/t/type-checking-function-parameters/174857)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 21\
**Last updated:** [September 17, 2009, 4:13am UTC](https://www.ruby-forum.com/t/type-checking-function-parameters/174857 "2009-09-17T04:13:10Z")

</div>

More or less all my functions look something like def foo bar baz quux if not bar.is\_a? String or not baz.is\_a? FunkyDinosaur or not quux.respond\_to? “getEatenByFunkyDinosaur” #complain about errors w/ raise or app …

---

## [OS Fingerprinting with Ruby](https://www.ruby-forum.com/t/os-fingerprinting-with-ruby/175629)

<div class="topic-metadata">

**Author:** [@joemanfoo](https://www.ruby-forum.com/u/joemanfoo)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 1:00am UTC](https://www.ruby-forum.com/t/os-fingerprinting-with-ruby/175629 "2009-09-17T01:00:58Z")

</div>

I’m working my way into learning some basic socket programming. I would like to incorporate some sort of nmap-like functionality, namely, OS fingerprinting. Is this possible to do without relying on the actual nmap …

---

## [Openjdk or sun-java jvm?](https://www.ruby-forum.com/t/openjdk-or-sun-java-jvm/175644)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 12:56am UTC](https://www.ruby-forum.com/t/openjdk-or-sun-java-jvm/175644 "2009-09-17T00:56:17Z")

</div>

I’m running my jruby applcations on a debian amd64 linux system and I’ve installed openjdk. It’s ok or it’s better sun-java? To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [Ohm - Object-hash mapping library for Redis](https://www.ruby-forum.com/t/ohm-object-hash-mapping-library-for-redis/175622)

<div class="topic-metadata">

**Author:** [@mmaher](https://www.ruby-forum.com/u/mmaher)\
**Replies:** 3\
**Last updated:** [September 16, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/ohm-object-hash-mapping-library-for-redis/175622 "2009-09-16T22:52:11Z")

</div>

We’ve been using it in production for a while now, and it’s also included in Monk (http://monkrb.com) as the default ORM. Ohm is a library for storing objects in Redis, a persistent key-value database. It includes an …

---

## [Import utc in Time](https://www.ruby-forum.com/t/import-utc-in-time/175624)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [September 16, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/import-utc-in-time/175624 "2009-09-16T21:58:19Z")

</div>

Hi, i’m using facebooker for receiving facebook’s events. I receive the time of the event in utc format. how can i import it in a Time object in other words a= Time.now.utc how can i import a in a Time object?? thi…

---

## [Find.find, limited recursion](https://www.ruby-forum.com/t/find-find-limited-recursion/175576)

<div class="topic-metadata">

**Author:** [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Replies:** 7\
**Last updated:** [September 16, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/find-find-limited-recursion/175576 "2009-09-16T21:55:59Z")

</div>

Hi all, I’m working on a script that’s currently using Find.find to process a complete directory tree of files and directories … .however I needed specific behavior, and I’m still fairly new to this… Basically it wor…

---

## [Socket hang in thread](https://www.ruby-forum.com/t/socket-hang-in-thread/175578)

<div class="topic-metadata">

**Author:** [@oliver-peng](https://www.ruby-forum.com/u/oliver-peng)\
**Replies:** 1\
**Last updated:** [September 16, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/socket-hang-in-thread/175578 "2009-09-16T21:49:03Z")

</div>

Design a thread and in the thread start a new TCPServer and get income string. Start irb in Windows cmd: irb(main):001:0\> require ‘socket’ =\> true irb(main):002:0\> irb(main):003:0\* class TestServe \< Thread irb(mai…

---

## [Array of Hashes in an array of hashes - Complicated!](https://www.ruby-forum.com/t/array-of-hashes-in-an-array-of-hashes-complicated/175567)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 16\
**Last updated:** [September 16, 2009, 7:53pm UTC](https://www.ruby-forum.com/t/array-of-hashes-in-an-array-of-hashes-complicated/175567 "2009-09-16T19:53:26Z")

</div>

I have an unique problem that I can’t solve. I am sorry this is long, but the details are needed to solve it I think. The reason I have to use an array of hashes that sometimes has an array of a hashes in it is as fo…

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

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