# Ruby

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

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

---

## [Is faster using abbreviated parameter names?](https://www.ruby-forum.com/t/is-faster-using-abbreviated-parameter-names/161829)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 7\
**Last updated:** [March 3, 2009, 12:07am UTC](https://www.ruby-forum.com/t/is-faster-using-abbreviated-parameter-names/161829 "2009-03-03T00:07:26Z")

</div>

Hi, a simple question: a) def hello(string) # stuff with ‘string’ end b) def hello(s) # stuff with ‘s’ end Will be b) faster since the parameter name contains less letters?

---

## [Priorities for JRuby 1.3](https://www.ruby-forum.com/t/priorities-for-jruby-1-3/161680)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 16\
**Last updated:** [March 3, 2009, 12:01am UTC](https://www.ruby-forum.com/t/priorities-for-jruby-1-3/161680 "2009-03-03T00:01:35Z")

</div>

With JRuby 1.2 almost out the door, we should talk a bit about where to go with JRuby 1.3. There’s always more work to do, but in this case there’s a few directions we could probably go. Some obvious items will contin…

---

## [Doodle 0.2.2 Released](https://www.ruby-forum.com/t/doodle-0-2-2-released/161837)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/doodle-0-2-2-released/161837 "2009-03-02T23:41:00Z")

</div>

doodle version 0.2.2 has been released! http://doodle.rubyforge.org Doodle is a gem for simplifying the definition of Ruby classes by making attributes and their properties more declarative. Doodle is eco-friendly: …

---

## [Ruby beginner Problem](https://www.ruby-forum.com/t/ruby-beginner-problem/161697)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 17\
**Last updated:** [March 2, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/ruby-beginner-problem/161697 "2009-03-02T22:35:40Z")

</div>

I get the following error message when running the code below: undefine method ‘bottles \_of\_beer’ for #Bottles:0x2be1e1c (NoMethodError) To change this template, choose Tools | Templates and open the template in the e…

---

## [Requesting feedback on Gibberish::Simple, a tiny Ruby 1.9 localization lib](https://www.ruby-forum.com/t/requesting-feedback-on-gibberish-simple-a-tiny-ruby-1-9-localization-lib/161753)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 3\
**Last updated:** [March 2, 2009, 9:33pm UTC](https://www.ruby-forum.com/t/requesting-feedback-on-gibberish-simple-a-tiny-ruby-1-9-localization-lib/161753 "2009-03-02T21:33:29Z")

</div>

Hi folks, While writing a section on localization for my book\[0\], I noticed that there doesn’t seem to be a localization system that works out of the box on Ruby 1.9. The changes to get either Ruby-GetText\[1\] or Gibb…

---

## [Passing a method as a paramter](https://www.ruby-forum.com/t/passing-a-method-as-a-paramter/161772)

<div class="topic-metadata">

**Author:** [@sackerson](https://www.ruby-forum.com/u/sackerson)\
**Replies:** 12\
**Last updated:** [March 2, 2009, 9:23pm UTC](https://www.ruby-forum.com/t/passing-a-method-as-a-paramter/161772 "2009-03-02T21:23:40Z")

</div>

I’m probably missing some basic Ruby syntax, but I’m relatively new to Ruby and can’t figure this out from the various references I’ve looked at I’d like to use this nifty test helper: Calls creation\_method with nil …

---

## [Ruby.h error on OS X](https://www.ruby-forum.com/t/ruby-h-error-on-os-x/161812)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 1\
**Last updated:** [March 2, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/ruby-h-error-on-os-x/161812 "2009-03-02T20:46:49Z")

</div>

Has anyone else had problems with the ruby 1.9.1 development headers on OS X? $ echo ‘#include “ruby.h”’ \>main.c $ gcc -c main.c In file included from /Users/jeff/usr/include/ruby/ruby.h:1125, from /Users/jeff/usr/i…

---

## [ANN: Sequel 2.11.0 Released](https://www.ruby-forum.com/t/ann-sequel-2-11-0-released/161821)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/ann-sequel-2-11-0-released/161821 "2009-03-02T20:04:31Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but…

---

## [JRuby on Android and Java ME](https://www.ruby-forum.com/t/jruby-on-android-and-java-me/161559)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 2\
**Last updated:** [March 2, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/jruby-on-android-and-java-me/161559 "2009-03-02T19:56:45Z")

</div>

I realized I had not posted anything here about two new developments this week. First, I have gotten JRuby running successfully on Android, using the SDK and emulator: I’m calling the project Ruboto. So far this is…

---

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

<div class="topic-metadata">

**Author:** [@swozniak](https://www.ruby-forum.com/u/swozniak)\
**Replies:** 7\
**Last updated:** [March 2, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/what-does-this-statement-do/161795 "2009-03-02T18:15:54Z")

</div>

Hi Guys, I have been wondering what does this statement do and what does it set. It interferes with my methods\_missing handler: {code} class MyClass something = “something else” end {code}

---

## [Magic - a new project for ironruby-contrib](https://www.ruby-forum.com/t/magic-a-new-project-for-ironruby-contrib/161814)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/magic-a-new-project-for-ironruby-contrib/161814 "2009-03-02T18:10:01Z")

</div>

Hi, I extracted a gem called Magic from my IronRuby UI experiments. It’s on GitHub here: GitHub - thbar/magic: IronRuby sugar for WPF, Silverlight and Windows Forms. with a decent README (also see the main spec here: …

---

## [Last days of early-bird for Atlanta Ruby Training (April 1-3)](https://www.ruby-forum.com/t/last-days-of-early-bird-for-atlanta-ruby-training-april-1-3/161808)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/last-days-of-early-bird-for-atlanta-ruby-training-april-1-3/161808 "2009-03-02T17:18:36Z")

</div>

Hi all – We’ve got a great training event coming up in Atlanta: Ruby language training with me, Jeremy McAnally, and Rick O… Early-bird registration ends on March 6. The training is April 1-3, and you can find more i…

---

## [How to read csv file which has :quote\_char in data field](https://www.ruby-forum.com/t/how-to-read-csv-file-which-has-quote-char-in-data-field/161804)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 1\
**Last updated:** [March 2, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/how-to-read-csv-file-which-has-quote-char-in-data-field/161804 "2009-03-02T17:11:27Z")

</div>

How to do this using fastercsv? i want to read data from a csv file and save it into the database. my file xyz.csv contains following line ,“xyz”, i want o/p of above row as follows nil,nil,nil,nil,"“xyz”", nil,nil…

---

## [Rub 1.9: "inline rescue" doesn't work?](https://www.ruby-forum.com/t/rub-1-9-inline-rescue-doesnt-work/161747)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 10\
**Last updated:** [March 2, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/rub-1-9-inline-rescue-doesnt-work/161747 "2009-03-02T16:55:28Z")

</div>

Hi, is there any explanation for the folowing big difference between the same code in 1.8 and 1.9?: 1.8) aaa = 123.capitalize rescue 444 =\> 444 1.9) aaa = 123.capitalize rescue 444 NoMethodError: undefined method…

---

## [How to group visitors using hours](https://www.ruby-forum.com/t/how-to-group-visitors-using-hours/161782)

<div class="topic-metadata">

**Author:** [@brazov](https://www.ruby-forum.com/u/brazov)\
**Replies:** 2\
**Last updated:** [March 2, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/how-to-group-visitors-using-hours/161782 "2009-03-02T15:39:12Z")

</div>

Hi, I’ve got this problem, I have a Visitor class that keep tracks of visitors. Each visitor has “created\_at” field. I’d like to group them by hours using “created\_at” I came up with this solution, but I’m not very h…

---

## [Question about jruby command line call implementation](https://www.ruby-forum.com/t/question-about-jruby-command-line-call-implementation/161381)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 2\
**Last updated:** [March 2, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/question-about-jruby-command-line-call-implementation/161381 "2009-03-02T15:17:24Z")

</div>

On the groovy list I was asking why one of my calls to the shell using groovy’s String.execute() method wasn’t working. I got this response: “At least for question #1, you can’t “cd” to a dir in Java, and Groovy inhe…

---

## [Internet Connectivity,Website accessibility in WATIR](https://www.ruby-forum.com/t/internet-connectivity-website-accessibility-in-watir/161790)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/internet-connectivity-website-accessibility-in-watir/161790 "2009-03-02T14:31:23Z")

</div>

How to check the following things while using WATIR 1\] Internet Connection failure while processing 2\] website page is not accessible

---

## [What Ruby version to use on Windows for a 1.2.x RoR app?](https://www.ruby-forum.com/t/what-ruby-version-to-use-on-windows-for-a-1-2-x-ror-app/160895)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 19\
**Last updated:** [March 2, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/what-ruby-version-to-use-on-windows-for-a-1-2-x-ror-app/160895 "2009-03-02T14:26:49Z")

</div>

hi there! this might sound like a rant, but i’m just desperate :frowning: i was running my app with ruby 1.8.5p52 for quite a while and the mongrel processes were quite memory stable as well as the dRB process for fe…

---

## [Where to report rubygems bugs](https://www.ruby-forum.com/t/where-to-report-rubygems-bugs/161661)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [March 2, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/where-to-report-rubygems-bugs/161661 "2009-03-02T13:45:11Z")

</div>

I’ve traditionally reported rubygems bugs to http://rubyforge.org/tracker/?atid=575&group\_id=126&func=browse however redmine.ruby-lang.org is now an option \[and I sometimes feel like I"m submitting to deaf ears at the…

---

## [Frozen OpenStruct allows modification](https://www.ruby-forum.com/t/frozen-openstruct-allows-modification/160324)

<div class="topic-metadata">

**Author:** [@bhz](https://www.ruby-forum.com/u/bhz)\
**Replies:** 9\
**Last updated:** [March 2, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/frozen-openstruct-allows-modification/160324 "2009-03-02T12:58:45Z")

</div>

Why does OpenStruct allow modification after it has been frozen? Output is 20 in both ruby 1.8.6 and 1.9: require ‘ostruct’ a = OpenStruct.new() a.foo = 10 a.freeze() a.foo = 20 puts a.foo

---

## [Test/ruby/test\_m17n.rb dumps core](https://www.ruby-forum.com/t/test-ruby-test-m17n-rb-dumps-core/161601)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 1\
**Last updated:** [March 2, 2009, 11:48am UTC](https://www.ruby-forum.com/t/test-ruby-test-m17n-rb-dumps-core/161601 "2009-03-02T11:48:06Z")

</div>

ã¾ã¤ã‚‚ã¨ ã‚†ãã²ã‚ã§ã™ testã§SEGVã—ã¾ã™ã€‚ã§ã€ã©ã†ã‚„ã‚‰æ–‡å­—åˆ—ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆã®klassãƒ•ã‚£ãƒ¼ ãƒ«ãƒ‰ãŒå£Šã‚Œã¦ã„ã‚‹ã‚ˆã†ã§ã™ã€‚ãƒªãƒ†ãƒ©ãƒ«ã®klassã‚’ã„ã˜ã£ãŸæ™‚ã«ãªã« ã‹å•é¡ŒãŒ…

---

## [$LOAD\_PATH best practice?](https://www.ruby-forum.com/t/load-path-best-practice/161748)

<div class="topic-metadata">

**Author:** [@Burdette\_Lamar](https://www.ruby-forum.com/u/Burdette_Lamar)\
**Replies:** 3\
**Last updated:** [March 2, 2009, 11:25am UTC](https://www.ruby-forum.com/t/load-path-best-practice/161748 "2009-03-02T11:25:43Z")

</div>

The local filetree corresponding to source control is not in the same location on all machines. Therefore, the needed Ruby $LOAD\_PATH varies from one machine to another. I can control this from a script of course. I…

---

## [DNS MX lookup issue: local machine returned as MX for an non-existant domain!](https://www.ruby-forum.com/t/dns-mx-lookup-issue-local-machine-returned-as-mx-for-an-non-existant-domain/161061)

<div class="topic-metadata">

**Author:** [@Yves-Eric](https://www.ruby-forum.com/u/Yves-Eric)\
**Replies:** 7\
**Last updated:** [March 2, 2009, 9:55am UTC](https://www.ruby-forum.com/t/dns-mx-lookup-issue-local-machine-returned-as-mx-for-an-non-existant-domain/161061 "2009-03-02T09:55:03Z")

</div>

Hi all, Trying to do some email domain validation, I am facing a weird issue when looking up an MX entry. Here is a three-liner test code: require ‘resolv’ domain = “i-dont-exist-iutjdfuyoxfugy.com” Resolv::DNS.open…

---

## [C wcwidth equivalent in Ruby 1.9](https://www.ruby-forum.com/t/c-wcwidth-equivalent-in-ruby-1-9/161769)

<div class="topic-metadata">

**Author:** [@phasis](https://www.ruby-forum.com/u/phasis)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 9:54am UTC](https://www.ruby-forum.com/t/c-wcwidth-equivalent-in-ruby-1-9/161769 "2009-03-02T09:54:03Z")

</div>

Hi, I want to know if there is an equivalent to the C function wcwidth in ruby 1.9. wcwidth is a function determine columns needed for a wide character. If not exists, how can I implement the wcwidth method? Any hel…

---

## [Error when running script](https://www.ruby-forum.com/t/error-when-running-script/161733)

<div class="topic-metadata">

**Author:** [@bwinborg](https://www.ruby-forum.com/u/bwinborg)\
**Replies:** 9\
**Last updated:** [March 2, 2009, 7:36am UTC](https://www.ruby-forum.com/t/error-when-running-script/161733 "2009-03-02T07:36:13Z")

</div>

This is the script, it’s intent is to read all Error logs.txt files in a directory or just the text files that are listed. Find all the lines that contain the word “error” and all the lines that contain the word “warn…

---

## [Mime-types 1.16 Released](https://www.ruby-forum.com/t/mime-types-1-16-released/161758)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 6:55am UTC](https://www.ruby-forum.com/t/mime-types-1-16-released/161758 "2009-03-02T06:55:17Z")

</div>

After an excessive amount of time, I’ve released MIME::Types 1.16. The primary purpose of this release is compatibility with Ruby 1.9.1, but I haven’t ignored the latest IANA registered types. I have also picked up a …

---

## [Doodle 0.2.0 Released](https://www.ruby-forum.com/t/doodle-0-2-0-released/161752)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [March 2, 2009, 4:49am UTC](https://www.ruby-forum.com/t/doodle-0-2-0-released/161752 "2009-03-02T04:49:37Z")

</div>

doodle version 0.2.0 has been released! http://doodle.rubyforge.org Doodle is a gem for simplifying the definition of Ruby classes by making attributes and their properties more declarative. Doodle is eco-friendly: …

---

## [Gets the broadcast address of an IP address](https://www.ruby-forum.com/t/gets-the-broadcast-address-of-an-ip-address/161666)

<div class="topic-metadata">

**Author:** [@sai](https://www.ruby-forum.com/u/sai)\
**Replies:** 5\
**Last updated:** [March 2, 2009, 12:01am UTC](https://www.ruby-forum.com/t/gets-the-broadcast-address-of-an-ip-address/161666 "2009-03-02T00:01:44Z")

</div>

Hi Ruby communauty. I am trying to broadcast a message using UDPSocket on destination port 10000. My code is: client = UDPSocket.new client.connect Socket.gethostname, 10000 client.setsockopt(Socket::SOL\_SOCKET, So…

---

## [Getting started in VB?](https://www.ruby-forum.com/t/getting-started-in-vb/161396)

<div class="topic-metadata">

**Author:** [@x-enterprises](https://www.ruby-forum.com/u/x-enterprises)\
**Replies:** 9\
**Last updated:** [March 1, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/getting-started-in-vb/161396 "2009-03-01T23:47:39Z")

</div>

I’d like to use IronRuby to make some applications extensible, but I’m having some problems getting started: Here’s code I run when you click a button: runtime = ScriptRuntime.CreateFromConfiguration() runtime.Execut…

---

## [Game of Life (#193)](https://www.ruby-forum.com/t/game-of-life-193/160894)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 7\
**Last updated:** [March 1, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/game-of-life-193/160894 "2009-03-01T22:44:35Z")

</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…

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

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