# Ruby

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

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

---

## [Silencing Standard Error](https://www.ruby-forum.com/t/silencing-standard-error/191276)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [July 13, 2010, 10:47am UTC](https://www.ruby-forum.com/t/silencing-standard-error/191276 "2010-07-13T10:47:05Z")

</div>

Hello, I am new here, so I apologize if this is a lame question. I have googled for quite awhile trying to find out the answer to my question to no avail. In a script, I am issuing this line: returnAddress = \`defaul…

---

## [What about allowing to specify, which end belongs to which start?](https://www.ruby-forum.com/t/what-about-allowing-to-specify-which-end-belongs-to-which-start/191339)

<div class="topic-metadata">

**Author:** [@rbjl](https://www.ruby-forum.com/u/rbjl)\
**Replies:** 23\
**Last updated:** [July 13, 2010, 10:46am UTC](https://www.ruby-forum.com/t/what-about-allowing-to-specify-which-end-belongs-to-which-start/191339 "2010-07-13T10:46:29Z")

</div>

Hi Ruby mailing list, I’ve recently come across a pretty common situation in Ruby: end end end After those parts, you often don’t know, where exactly you have to continue. So what about allowing to specify, whi…

---

## [Are you inderest in cinima................you choose this bag](https://www.ruby-forum.com/t/are-you-inderest-in-cinima-you-choose-this-bag/191472)

<div class="topic-metadata">

**Author:** [@sivaji](https://www.ruby-forum.com/u/sivaji)\
**Replies:** 0\
**Last updated:** [July 13, 2010, 8:40am UTC](https://www.ruby-forum.com/t/are-you-inderest-in-cinima-you-choose-this-bag/191472 "2010-07-13T08:40:38Z")

</div>

http;//www.123maza.com/elaxa/domain-hosting

---

## [IL Caching Strategy](https://www.ruby-forum.com/t/il-caching-strategy/191470)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [July 13, 2010, 6:40am UTC](https://www.ruby-forum.com/t/il-caching-strategy/191470 "2010-07-13T06:40:03Z")

</div>

I remember reading a thread on the IL caching strategy, in particular that a performance optimization was made by not being too aggressive. Unfortunately, I can’t find the thread. What’s the strategy now? How many t…

---

## [Free shell accounts on new ruby-versions.net site](https://www.ruby-forum.com/t/free-shell-accounts-on-new-ruby-versions-net-site/191413)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 2\
**Last updated:** [July 13, 2010, 4:45am UTC](https://www.ruby-forum.com/t/free-shell-accounts-on-new-ruby-versions-net-site/191413 "2010-07-13T04:45:54Z")

</div>

Hi – I’m please to announce the new incarnation of ruby-versions.net, where you can get a free shell account. (See http://www.ruby-versions.net for how.) The server for the new incarnation is generously provided by Bl…

---

## [Arrays and Hashes](https://www.ruby-forum.com/t/arrays-and-hashes/191421)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [July 13, 2010, 4:10am UTC](https://www.ruby-forum.com/t/arrays-and-hashes/191421 "2010-07-13T04:10:47Z")

</div>

In “Why’s poignant guide to Ruby” it mentions the following: Unlike arrays, the items in a hash are not kept in a specific order. Can you clarify on this? Thanks.

---

## [Regex to match similar strings](https://www.ruby-forum.com/t/regex-to-match-similar-strings/191446)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 2\
**Last updated:** [July 13, 2010, 12:32am UTC](https://www.ruby-forum.com/t/regex-to-match-similar-strings/191446 "2010-07-13T00:32:55Z")

</div>

Hi, Im writing some validation code the basically make sure a users login is not too similar to their password. I was thinking a regular expression to match similarities and if they are alike then make the user chang…

---

## [Code Review: WP7CompilationThreshold](https://www.ruby-forum.com/t/code-review-wp7compilationthreshold/191455)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [July 12, 2010, 11:32pm UTC](https://www.ruby-forum.com/t/code-review-wp7compilationthreshold/191455 "2010-07-12T23:32:46Z")

</div>

tfpt review “/shelveset:WP7CompilationThreshold;REDMOND\\tomat” Comment : Make sure we don’t compile code on CF. Tomas

---

## [Substitution](https://www.ruby-forum.com/t/substitution/191438)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [July 12, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/substitution/191438 "2010-07-12T23:31:23Z")

</div>

I have this part of code from “Why’s poignant guide to Ruby” that is intended to make substitution: Note: code\_words here is a hash … idea = gets code\_words.each do |real, code| idea.gsub!(real, code) end … I kn…

---

## [Try Ruby is back online](https://www.ruby-forum.com/t/try-ruby-is-back-online/191441)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 9\
**Last updated:** [July 12, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/try-ruby-is-back-online/191441 "2010-07-12T23:16:23Z")

</div>

Greetings, Some of you may have noticed that Try Ruby was down this weekend. It is now back up. In the downtime, I discovered several things. Try Ruby is not compatible with 1.9.2-\*. I am still looking in to why th…

---

## [How to pass a hash as a param to a method called through eval?](https://www.ruby-forum.com/t/how-to-pass-a-hash-as-a-param-to-a-method-called-through-eval/191395)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 13\
**Last updated:** [July 12, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/how-to-pass-a-hash-as-a-param-to-a-method-called-through-eval/191395 "2010-07-12T20:33:02Z")

</div>

Hi Folks - I’ve got a data-driven app I’m building, and I’d like to be able to read a set of data from a json file, pass that to eval, and have it executed: json: { “action”: “someFunc”, “params”: { “a”: “foo”, “…

---

## [Remove me from the email list](https://www.ruby-forum.com/t/remove-me-from-the-email-list/191430)

<div class="topic-metadata">

**Author:** [@Moises\_S](https://www.ruby-forum.com/u/Moises_S)\
**Replies:** 1\
**Last updated:** [July 12, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/remove-me-from-the-email-list/191430 "2010-07-12T17:06:19Z")

</div>

Hi guys, Can someone remove me from the email list, or tell me how can I do that? Thanks guys

---

## [Lone Star Ruby Conference 2010 Registration is Now Open](https://www.ruby-forum.com/t/lone-star-ruby-conference-2010-registration-is-now-open/191432)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 12, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/lone-star-ruby-conference-2010-registration-is-now-open/191432 "2010-07-12T17:00:28Z")

</div>

Registration for Lone Star Ruby Conference 2010 is now open! The Lone Star Ruby Conference is being held Aug 26-28 in Austin, TX. This year we have Tom Preston-Werner of Github and Blake Mizerany of Heroku as keynote …

---

## [Adding cookies to my http client](https://www.ruby-forum.com/t/adding-cookies-to-my-http-client/191431)

<div class="topic-metadata">

**Author:** [@razta](https://www.ruby-forum.com/u/razta)\
**Replies:** 0\
**Last updated:** [July 12, 2010, 4:48pm UTC](https://www.ruby-forum.com/t/adding-cookies-to-my-http-client/191431 "2010-07-12T16:48:02Z")

</div>

Hi, The following is a modified version of the http client found in the o’reilly ruby cookbook. Does any one know how I can add custom cookies to this? class HTTP # Makes an HTTP reuqest and returns the HTTPRespnse …

---

## [Where can I find shoes?](https://www.ruby-forum.com/t/where-can-i-find-shoes/191289)

<div class="topic-metadata">

**Author:** [@tehdoctor](https://www.ruby-forum.com/u/tehdoctor)\
**Replies:** 5\
**Last updated:** [July 12, 2010, 4:14pm UTC](https://www.ruby-forum.com/t/where-can-i-find-shoes/191289 "2010-07-12T16:14:48Z")

</div>

Hey. Just wondering if anybody knows where I can find Shoes? I’ve searched for it and found nothing. The original website is down and the Google project page doesn’t have it either.

---

## [Ruby float modulus operation](https://www.ruby-forum.com/t/ruby-float-modulus-operation/191414)

<div class="topic-metadata">

**Author:** [@Karthick\_S](https://www.ruby-forum.com/u/Karthick_S)\
**Replies:** 2\
**Last updated:** [July 12, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/ruby-float-modulus-operation/191414 "2010-07-12T16:00:44Z")

</div>

Hi, I am new to ruby and found this while experimenting with ruby. irb(main):010:0\> 5.1%0.5 =\> 0.0999999999999996 irb(main):011:0\> Is this similar to the float related operations that MS Excel has? Karthick S.

---

## [Ironruby and Gentoo Linux](https://www.ruby-forum.com/t/ironruby-and-gentoo-linux/191197)

<div class="topic-metadata">

**Author:** [@Alistair\_B](https://www.ruby-forum.com/u/Alistair_B)\
**Replies:** 8\
**Last updated:** [July 12, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/ironruby-and-gentoo-linux/191197 "2010-07-12T14:00:07Z")

</div>

Hi guys. Im a developer/packager for Gentoo Linux \[1\] and I have been looking at packaging IronRuby. Within gentoo the long-term goal would be to have all 300 ruby packages ( could be anything from gems to applic…

---

## [Library path in order to use gems](https://www.ruby-forum.com/t/library-path-in-order-to-use-gems/191316)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 2\
**Last updated:** [July 12, 2010, 12:47pm UTC](https://www.ruby-forum.com/t/library-path-in-order-to-use-gems/191316 "2010-07-12T12:47:43Z")

</div>

Hi, I’d like my C# hosted IronRuby script to be able to use gems (I install them with igem so they go into the IronRuby directory). I’ve been able to successfully require an installed gem but to do so I had to explic…

---

## [Hash example](https://www.ruby-forum.com/t/hash-example/191412)

<div class="topic-metadata">

**Author:** [@marlon](https://www.ruby-forum.com/u/marlon)\
**Replies:** 2\
**Last updated:** [July 12, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/hash-example/191412 "2010-07-12T12:10:23Z")

</div>

Hello. First of all, I’m reading this ebook, http://www.ruby-doc.org/docs/ProgrammingRuby/ is it a good book? instSection\[‘oboe’\] Â» “woodwind” instSection\[‘cello’\] Â» “string” instSection\[‘bassoon’\] Â» nil A…

---

## [How to convert it into utf-8?](https://www.ruby-forum.com/t/how-to-convert-it-into-utf-8/191382)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 5\
**Last updated:** [July 12, 2010, 10:47am UTC](https://www.ruby-forum.com/t/how-to-convert-it-into-utf-8/191382 "2010-07-12T10:47:38Z")

</div>

in my linux comsole: ghex2 /home/pt/myday there is the first line content AA3F3201861F0000D61F0000 would you mind to tell me how can convert it into utf-8?

---

## [Basic Question: How do you check to see if gets is a number?](https://www.ruby-forum.com/t/basic-question-how-do-you-check-to-see-if-gets-is-a-number/191393)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 7\
**Last updated:** [July 12, 2010, 2:22am UTC](https://www.ruby-forum.com/t/basic-question-how-do-you-check-to-see-if-gets-is-a-number/191393 "2010-07-12T02:22:25Z")

</div>

I wrote a basic script that asks for your age then converts it into months, days and weeks old. I wanted to add some sort of control so that it would return an error if you didn’t enter a number but rather a word or a…

---

## [What does this mean?](https://www.ruby-forum.com/t/what-does-this-mean/191392)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 1\
**Last updated:** [July 12, 2010, 1:53am UTC](https://www.ruby-forum.com/t/what-does-this-mean/191392 "2010-07-12T01:53:44Z")

</div>

I’m just new to ruby, and want to ask about what this means (I got it from Why’s poignant guide to Ruby): http://pastie.org/private/wndhyi2zshltqzwippqb3q

---

## [From functions to classes, where should I start?](https://www.ruby-forum.com/t/from-functions-to-classes-where-should-i-start/191306)

<div class="topic-metadata">

**Author:** [@salamond](https://www.ruby-forum.com/u/salamond)\
**Replies:** 6\
**Last updated:** [July 11, 2010, 9:05pm UTC](https://www.ruby-forum.com/t/from-functions-to-classes-where-should-i-start/191306 "2010-07-11T21:05:13Z")

</div>

Guys, I’m not sure if this is the right place to ask questions like this. I’m a software tester, working for 4.5 years. Most of the work is about manual testing, for 1-2 month per year, I need to write my own scripts…

---

## [Ruby 1.9.2 RC2 is out](https://www.ruby-forum.com/t/ruby-1-9-2-rc2-is-out/191391)

<div class="topic-metadata">

**Author:** [@Yuki\_SSSYugui](https://www.ruby-forum.com/u/Yuki_SSSYugui)\
**Replies:** 0\
**Last updated:** [July 11, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/ruby-1-9-2-rc2-is-out/191391 "2010-07-11T17:19:52Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Ruby 1.9.2 RC2 has just been released. This is the second release candidate of Ruby 1.9.2. Psych library has been fixed since the previous candidate. And some minor…

---

## [Swapping regex libraries](https://www.ruby-forum.com/t/swapping-regex-libraries/191332)

<div class="topic-metadata">

**Author:** [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Replies:** 2\
**Last updated:** [July 11, 2010, 4:50pm UTC](https://www.ruby-forum.com/t/swapping-regex-libraries/191332 "2010-07-11T16:50:36Z")

</div>

I see there is a way in Ruby 1.9.1 to switch to the old regex library from the current Oniguruma library. Is it possible to switch to any others, such as PCRE? Iain

---

## [\[Bug #3515\] FreeBSD wrongly raises ECONNRESET on close(2)](https://www.ruby-forum.com/t/bug-3515-freebsd-wrongly-raises-econnreset-on-close-2/190998)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 11\
**Last updated:** [July 11, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/bug-3515-freebsd-wrongly-raises-econnreset-on-close-2/190998 "2010-07-11T15:24:33Z")

</div>

Bug #3515: FreeBSD wrongly raises ECONNRESET on close(2) http://redmine.ruby-lang.org/issues/show/3515 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core ruby -v: ruby 1.9.3de…

---

## [C Extension rb\_block\_call Weirdness](https://www.ruby-forum.com/t/c-extension-rb-block-call-weirdness/191362)

<div class="topic-metadata">

**Author:** [@asher](https://www.ruby-forum.com/u/asher)\
**Replies:** 1\
**Last updated:** [July 11, 2010, 1:41pm UTC](https://www.ruby-forum.com/t/c-extension-rb-block-call-weirdness/191362 "2010-07-11T13:41:41Z")

</div>

I’ve already posted a description of my problem at Stackoverflow, but realized it might be most appropriate to post here as well, so I will summarize and then link. I am having this problem consistently with 1.9.1-p37…

---

## [Building 1.8.7 on ubuntu 9.10](https://www.ruby-forum.com/t/building-1-8-7-on-ubuntu-9-10/191376)

<div class="topic-metadata">

**Author:** [@msoulier](https://www.ruby-forum.com/u/msoulier)\
**Replies:** 1\
**Last updated:** [July 11, 2010, 6:01am UTC](https://www.ruby-forum.com/t/building-1-8-7-on-ubuntu-9-10/191376 "2010-07-11T06:01:33Z")

</div>

I prefer to make use of my own ruby build for the most part, and for experimentation. I’m running Ubuntu 9.10 and I was surprised when I had issues building ruby 1.8.7 on it. First, I had to dig to find 1.8.7, there w…

---

## [If statements and case statements questions](https://www.ruby-forum.com/t/if-statements-and-case-statements-questions/191356)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 6\
**Last updated:** [July 10, 2010, 6:08pm UTC](https://www.ruby-forum.com/t/if-statements-and-case-statements-questions/191356 "2010-07-10T18:08:54Z")

</div>

I am fairly new to Ruby and programming and had a couple questions about if/else and case statements. I was wondering if there were benefits to using case statements instead of if/elsif/else type statements. Are cas…

---

## [Possible bug in FileUtils::fu\_mkdir (Errno::EEXIST)](https://www.ruby-forum.com/t/possible-bug-in-fileutils-fu-mkdir-errno-eexist/191368)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 10, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/possible-bug-in-fileutils-fu-mkdir-errno-eexist/191368 "2010-07-10T17:34:46Z")

</div>

Hello, We are getting some reports in RubyInstaller project of weird gem installation issues. http://groups.google.com/group/rubyinstaller/browse\_thread/thread/df7b7c217ad7d882 The bug output is the following: ERROR…

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

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