# Ruby

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

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

---

## [EventMachine: dynamic "client" connections](https://www.ruby-forum.com/t/eventmachine-dynamic-client-connections/179119)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 2\
**Last updated:** [November 18, 2009, 2:49am UTC](https://www.ruby-forum.com/t/eventmachine-dynamic-client-connections/179119 "2009-11-18T02:49:32Z")

</div>

Thanks for reading this and thanks in advance if you provide any help! I’m new to Ruby. Trying to write a distributed file system consisting of a Metadata Server (MS), Object Servers (OS), and clients. I’m able to b…

---

## [Help with parsing](https://www.ruby-forum.com/t/help-with-parsing/179121)

<div class="topic-metadata">

**Author:** [@mayur\_sk](https://www.ruby-forum.com/u/mayur_sk)\
**Replies:** 5\
**Last updated:** [November 18, 2009, 2:15am UTC](https://www.ruby-forum.com/t/help-with-parsing/179121 "2009-11-18T02:15:36Z")

</div>

Hi , i am new to ruby and can anybody tell me way i can parse a tab delimited text file and convert it into a hash. thank you.

---

## [Asynchronous http POST?](https://www.ruby-forum.com/t/asynchronous-http-post/175247)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 13\
**Last updated:** [November 18, 2009, 2:06am UTC](https://www.ruby-forum.com/t/asynchronous-http-post/175247 "2009-11-18T02:06:33Z")

</div>

Hey everyone, I’m new to Ruby and to the mailing list, so go easy. Basically, I have to POST to a certain url, then I wait for a response. The catch is that I have to do this to two urls at once. Both of them may resp…

---

## [Review: Fix](https://www.ruby-forum.com/t/review-fix/179118)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 1:45am UTC](https://www.ruby-forum.com/t/review-fix/179118 "2009-11-18T01:45:45Z")

</div>

fpt review /shelveset:regex;sborde Implements Kernel.srand with no parameters Changes RubyRegex to not clone the input string when being used for String#scan, and to share the cloned string when possible. Without the …

---

## [Object.to\_yaml works but .to\_yaml fails](https://www.ruby-forum.com/t/object-to-yaml-works-but-to-yaml-fails/179116)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 12:36am UTC](https://www.ruby-forum.com/t/object-to-yaml-works-but-to-yaml-fails/179116 "2009-11-18T00:36:06Z")

</div>

I’ve implemented a custom to\_yaml method for an object. When I call to\_yaml on the object everything works as expected. rb(main):008:0\> puts area.to\_yaml Area Description: Deltana, Tanana Flats Polygons: \[\] Geocodes: …

---

## [Cucumber with Sinatra::Base](https://www.ruby-forum.com/t/cucumber-with-sinatra-base/179110)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 1\
**Last updated:** [November 17, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/cucumber-with-sinatra-base/179110 "2009-11-17T23:33:28Z")

</div>

(Or where I could post questions on Sinatra?) Hi – I’ve got Sinatra working with Cucumber using the docs on Sinatra’s page, but I really want to set my app up using Sinatra::Base, and have config.ru mount my separate …

---

## [Directory path](https://www.ruby-forum.com/t/directory-path/179109)

<div class="topic-metadata">

**Author:** [@folke](https://www.ruby-forum.com/u/folke)\
**Replies:** 5\
**Last updated:** [November 17, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/directory-path/179109 "2009-11-17T22:37:43Z")

</div>

Hello, I hope someone can help me because I can’t figure out what’s wrong. Here’s a part of my code: directory = ‘/Volumes/Home Directory/Media/Film/TV-serier/Supernatural/SÃ¤song 5’ files = Dir.entries("#{directory}…

---

## [Special characters in csv header using fastercsv](https://www.ruby-forum.com/t/special-characters-in-csv-header-using-fastercsv/179099)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 16\
**Last updated:** [November 17, 2009, 9:56pm UTC](https://www.ruby-forum.com/t/special-characters-in-csv-header-using-fastercsv/179099 "2009-11-17T21:56:23Z")

</div>

Hello all, I’m kind of new to fastercsv and only have 2 months with Ruby on Rails. So this my sound a little newbie. First, I read a csv file (approx. 6,000 lines). This file comes from a different department, so I h…

---

## [Newbie question: Defining a numeric type](https://www.ruby-forum.com/t/newbie-question-defining-a-numeric-type/179023)

<div class="topic-metadata">

**Author:** [@Seebs](https://www.ruby-forum.com/u/Seebs)\
**Replies:** 31\
**Last updated:** [November 17, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/newbie-question-defining-a-numeric-type/179023 "2009-11-17T21:11:15Z")

</div>

I have a type which has a bit of internal magic, but fundamentally, I want it to behave for most purposes like the value it yields from to\_i/to\_int. Basically, is there a way to avoid having to write +, -, etcetera, …

---

## [Meaning of '!(...' EG: "myObject.parse!(argv)" ..?](https://www.ruby-forum.com/t/meaning-of-eg-myobject-parse-argv/179073)

<div class="topic-metadata">

**Author:** [@michelle1](https://www.ruby-forum.com/u/michelle1)\
**Replies:** 8\
**Last updated:** [November 17, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/meaning-of-eg-myobject-parse-argv/179073 "2009-11-17T21:07:09Z")

</div>

Hi there, QUESTION: Whilst “parse(argv)” is obvious, what does “opts.parse!(argv)” do in the below code? And what is the word use to describe doing this? CONTEXT: I am looking at a class called ‘Options’ whose job i…

---

## [Linguistics 1.0.8](https://www.ruby-forum.com/t/linguistics-1-0-8/179107)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/linguistics-1-0-8/179107 "2009-11-17T20:57:12Z")

</div>

Version 1.0.8 of the Ruby Linguistics framework has been released. Linguistics is a library for adding natural language generation in any language to Ruby classes. It includes a generic language-independant front end,…

---

## [JRuby 1.4.0 - RubyThread leak on adopted thread death](https://www.ruby-forum.com/t/jruby-1-4-0-rubythread-leak-on-adopted-thread-death/179104)

<div class="topic-metadata">

**Author:** [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Replies:** 1\
**Last updated:** [November 17, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/jruby-1-4-0-rubythread-leak-on-adopted-thread-death/179104 "2009-11-17T19:59:49Z")

</div>

Hi, I’m summarising here some discussion we’ve had in another thread about leaks of RubyThread objects that showed up using the JRuby-Rack JMS support, since it seems like the issue is in core JRuby, rather than in J…

---

## [Advice on setup on Mac](https://www.ruby-forum.com/t/advice-on-setup-on-mac/179026)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 10\
**Last updated:** [November 17, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/advice-on-setup-on-mac/179026 "2009-11-17T16:46:05Z")

</div>

\[Apologies if this appears as 2 posts – my last post never seemed to make it through\] I just setup NetBeans for Ruby on my Mac (quite like it so far). I’m familiar to Ruby, getting back to it after a break. I will be …

---

## [Ruby.bat?](https://www.ruby-forum.com/t/ruby-bat/178323)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 5\
**Last updated:** [November 17, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/ruby-bat/178323 "2009-11-17T16:35:59Z")

</div>

Any chance of jruby also naming itself ruby? Then things like pik run ruby install gem\_name would work on windows \[currently it works for everything except jruby, which must be special cased\]. Thanks! -r

---

## [Excuse me](https://www.ruby-forum.com/t/excuse-me/179091)

<div class="topic-metadata">

**Author:** [@ricos](https://www.ruby-forum.com/u/ricos)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 1:17pm UTC](https://www.ruby-forum.com/t/excuse-me/179091 "2009-11-17T13:17:10Z")

</div>

Sorry for previous email. Wrong destination.

---

## [\# matome 24u](https://www.ruby-forum.com/t/matome-24u/179090)

<div class="topic-metadata">

**Author:** [@ricos](https://www.ruby-forum.com/u/ricos)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 1:14pm UTC](https://www.ruby-forum.com/t/matome-24u/179090 "2009-11-17T13:14:14Z")

</div>

matome 24u

---

## [Found Senryu (#224)](https://www.ruby-forum.com/t/found-senryu-224/178938)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [November 17, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/found-senryu-224/178938 "2009-11-17T12:59:36Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [How to run a specific TestUnit if the file contain two Test::Unit::TestCase classes?](https://www.ruby-forum.com/t/how-to-run-a-specific-testunit-if-the-file-contain-two-test-testcase-classes/179041)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [November 17, 2009, 10:57am UTC](https://www.ruby-forum.com/t/how-to-run-a-specific-testunit-if-the-file-contain-two-test-testcase-classes/179041 "2009-11-17T10:57:17Z")

</div>

Hi, I’ve a file with two classes: class Test1 \< Test::Unit::TestCase def test\_aaa … end end class Test2 \< Test::Unit::TestCase def test\_aaa … end end How could I run just the “test\_aaa” of the Test1 class? If…

---

## [JRuby 1.4: possible Set#each\_with\_index or Enumerator issue](https://www.ruby-forum.com/t/jruby-1-4-possible-set-each-with-index-or-enumerator-issue/179035)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 2\
**Last updated:** [November 17, 2009, 10:02am UTC](https://www.ruby-forum.com/t/jruby-1-4-possible-set-each-with-index-or-enumerator-issue/179035 "2009-11-17T10:02:16Z")

</div>

Iâ€™m trying to have Set#pairs (as implemented in the attachment) to work under JRuby (both --1.8 and --1.9), but fail miserably. Iâ€™m using the backports gemÂ¹ to get 1.9â€™s Enumerator in 1.8. Â¹ GitHub - marcandre…

---

## [Ruby Inline over two times slower under 1.9 than under 1.8?](https://www.ruby-forum.com/t/ruby-inline-over-two-times-slower-under-1-9-than-under-1-8/178383)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 12\
**Last updated:** [November 17, 2009, 9:47am UTC](https://www.ruby-forum.com/t/ruby-inline-over-two-times-slower-under-1-9-than-under-1-8/178383 "2009-11-17T09:47:03Z")

</div>

Iâ€™m starting to dip my toes in non-Ruby coding (for performance reasons) and began with looking at the (simplest) choice of Ruby Inline. Interestingly, while my own number-crunching code seems to be generally three …

---

## [Activerecord going slow (not in rails...) (VERY slow)](https://www.ruby-forum.com/t/activerecord-going-slow-not-in-rails-very-slow/179037)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 4\
**Last updated:** [November 17, 2009, 9:31am UTC](https://www.ruby-forum.com/t/activerecord-going-slow-not-in-rails-very-slow/179037 "2009-11-17T09:31:13Z")

</div>

Active record is taking 7+ seconds to save one item! I’m using activerecord not in rails. I have a object that inherits ActiveRecord::Base mapped to a table in mysql with 5 string columns and 3 text columns (and auto…

---

## [\[ANN\] Rumai 3.1.1](https://www.ruby-forum.com/t/ann-rumai-3-1-1/179078)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 9:29am UTC](https://www.ruby-forum.com/t/ann-rumai-3-1-1/179078 "2009-11-17T09:29:43Z")

</div>

Rumai 3.1.1 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. Version 3.1.1 (2009-1…

---

## [\[ANN\] Rumai 3.1.1](https://www.ruby-forum.com/t/ann-rumai-3-1-1/179077)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 9:22am UTC](https://www.ruby-forum.com/t/ann-rumai-3-1-1/179077 "2009-11-17T09:22:50Z")

</div>

Rumai 3.1.1 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. Version 3.1.1 (2009-1…

---

## [IO#read for socket (SocketStream.cs)](https://www.ruby-forum.com/t/io-read-for-socket-socketstream-cs/179038)

<div class="topic-metadata">

**Author:** [@SSSBSOS7SbSHS1SsSSS](https://www.ruby-forum.com/u/SSSBSOS7SbSHS1SsSSS)\
**Replies:** 3\
**Last updated:** [November 17, 2009, 7:23am UTC](https://www.ruby-forum.com/t/io-read-for-socket-socketstream-cs/179038 "2009-11-17T07:23:03Z")

</div>

Hello, I’m kenichi hashimoto. I’m Japanese. I don’t write english well. I modified the IronRuby Libirary for reading from the socket to run the script of the druby-library. The druby library is contained the standar…

---

## [Rename files... permission](https://www.ruby-forum.com/t/rename-files-permission/179067)

<div class="topic-metadata">

**Author:** [@folke](https://www.ruby-forum.com/u/folke)\
**Replies:** 4\
**Last updated:** [November 17, 2009, 6:53am UTC](https://www.ruby-forum.com/t/rename-files-permission/179067 "2009-11-17T06:53:12Z")

</div>

Hello! I’m trying to rename a couple of files. Here my code: (0…files.size).each do |i| File.rename(files\[i\], episodeList\[i\]) end I get the error-messege “Permission denied - Permission denied - . or S05 E09 - The …

---

## [\[Bug:1.9\] config.guess returns "i386" on Mac OSX 10.5.4](https://www.ruby-forum.com/t/bug-1-9-config-guess-returns-i386-on-mac-osx-10-5-4/145631)

<div class="topic-metadata">

**Author:** [@Takao\_K](https://www.ruby-forum.com/u/Takao_K)\
**Replies:** 2\
**Last updated:** [November 17, 2009, 5:51am UTC](https://www.ruby-forum.com/t/bug-1-9-config-guess-returns-i386-on-mac-osx-10-5-4/145631 "2009-11-17T05:51:08Z")

</div>

e$B9bHx9(\<#$G$9!#e(B trunk e$B$Ne(B r18741 e$B$G=$@5$5$l$?e(B config.guess e$B$,!"e(B Mac OSX 10.5.4 e$B$N4D6-$G!Ve(Bi386-apple-darwin9.4.0e$B!W$rJV$7$^$9!#e(B r18741 e$B$h$jA0$O!Ve(Bi686-apple-darwin9.4.0e$B!W$rJV$7…

---

## [Some information about it](https://www.ruby-forum.com/t/some-information-about-it/179033)

<div class="topic-metadata">

**Author:** [@GilbertKeerthi](https://www.ruby-forum.com/u/GilbertKeerthi)\
**Replies:** 1\
**Last updated:** [November 17, 2009, 4:30am UTC](https://www.ruby-forum.com/t/some-information-about-it/179033 "2009-11-17T04:30:21Z")

</div>

What is meant by Quick link integration? how can i access? if anybody knows about this, help me. advance Thankz…

---

## [Re: Found Senryu (#224)](https://www.ruby-forum.com/t/re-found-senryu-224/179065)

<div class="topic-metadata">

**Author:** [@wkm](https://www.ruby-forum.com/u/wkm)\
**Replies:** 0\
**Last updated:** [November 16, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/re-found-senryu-224/179065 "2009-11-16T22:04:05Z")

</div>

I would have loved to have done this quiz but: I had no idea where to start with a ‘syllable-counting’ algorithm Yeah, that stumped me too. I felt like it was cheating a bit to use the Lingua::EN package. But inter…

---

## [Errno::ENOMEM reading a device in Ruby, not in Java though](https://www.ruby-forum.com/t/errno-enomem-reading-a-device-in-ruby-not-in-java-though/158861)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 9\
**Last updated:** [November 16, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/errno-enomem-reading-a-device-in-ruby-not-in-java-though/158861 "2009-11-16T21:04:17Z")

</div>

Question on how to avoid an Errno::ENOMEM Currently if I open a tape device from my machine \[/dev/st2\] in ruby reading the second file from it results in: read.rb:2:in \`read’: Cannot allocate memory - /dev/st2 (Errno:…

---

## [Need help to detect error](https://www.ruby-forum.com/t/need-help-to-detect-error/178782)

<div class="topic-metadata">

**Author:** [@VSSS\_ctor\_AdriSSSSn](https://www.ruby-forum.com/u/VSSS_ctor_AdriSSSSn)\
**Replies:** 4\
**Last updated:** [November 16, 2009, 9:00pm UTC](https://www.ruby-forum.com/t/need-help-to-detect-error/178782 "2009-11-16T21:00:52Z")

</div>

I don’t know what am I doing wrong, can anyone help me? These two programs look very similar, but they yield different results. Can anyone confirm this “error”? ========================================================…

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

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