# Ruby

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

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

---

## [Code syntax comma usage](https://www.ruby-forum.com/t/code-syntax-comma-usage/160334)

<div class="topic-metadata">

**Author:** [@mz512](https://www.ruby-forum.com/u/mz512)\
**Replies:** 12\
**Last updated:** [February 15, 2009, 8:00am UTC](https://www.ruby-forum.com/t/code-syntax-comma-usage/160334 "2009-02-15T08:00:34Z")

</div>

That I can see; Pragmatic Programming Ruby’s, index, has reference to all sorts of symbols, but I can’t find a explanation for a ‘,’ seperator such as used in the following: var1 = 1; p var1 #=\> 1 var2 = 2; p var2 #=\>…

---

## [Simple ruby project layout question](https://www.ruby-forum.com/t/simple-ruby-project-layout-question/160329)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 8\
**Last updated:** [February 15, 2009, 2:24am UTC](https://www.ruby-forum.com/t/simple-ruby-project-layout-question/160329 "2009-02-15T02:24:42Z")

</div>

Trying to get up to standards, here. Reading about project layout in Programming Ruby (3rd ed)., where reference is made to “…some strong Ruby conventions, first seen in Minero A.’s setup.rb and later enshrined in the…

---

## [\[ANN\] ERBook 6.1.0](https://www.ruby-forum.com/t/ann-erbook-6-1-0/160346)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 1:53am UTC](https://www.ruby-forum.com/t/ann-erbook-6-1-0/160346 "2009-02-15T01:53:49Z")

</div>

ERBook 6.1.0 Extensible document processor based on eRuby http://snk.tuxfamily.org/lib/erbook/ ERBook is an extensible document processor that emits \[1\]any document you can im…

---

## [Changing email settings](https://www.ruby-forum.com/t/changing-email-settings/160330)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 1\
**Last updated:** [February 15, 2009, 1:01am UTC](https://www.ruby-forum.com/t/changing-email-settings/160330 "2009-02-15T01:01:03Z")

</div>

Greetings, Can anybody tell me what I need to do to change my email address for this list? I’ve successfully changed the settings at comp.lang.ruby and ruby-talk-google and am getting digests from both at the new em…

---

## [\[Feature:1.9\] {Array,Enumerable}#uniq\_by, #uniq\_by!](https://www.ruby-forum.com/t/feature-1-9-array-enumerable-uniq-by-uniq-by/160260)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 4\
**Last updated:** [February 14, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/feature-1-9-array-enumerable-uniq-by-uniq-by/160260 "2009-02-14T23:01:26Z")

</div>

e$B$J$+$@$G$9!#e(B e$B%V%m%C%/$NCM$K$7$?$,$C$F0l0U$N$b$N$rA\*$V!"e(BArray#uniq\_bye$B$H$$$&$Ne(B e$B$O$I$&$G$7$g$&$+!#e(B Index: array.c — array.c (revision 22100) +++ array.c (working copy) @@ -2875,13 +2875,40 @@ …

---

## [Hongli's merge sort benchmark runs 2x faster in JRuby/Ruby 1.9](https://www.ruby-forum.com/t/honglis-merge-sort-benchmark-runs-2x-faster-in-jruby-ruby-1-9/159490)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [February 14, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/honglis-merge-sort-benchmark-runs-2x-faster-in-jruby-ruby-1-9/159490 "2009-02-14T22:20:07Z")

</div>

I wrapped Hongli’s simple merge sort benchmark described here: http://izumi.plan99.net/blog/index.php/2008/01/17/ruby-vs-php-performance in Ruby’s Benchmark library and did a more detailed comparison of 1.8.6, 1.9 tru…

---

## [Strange constant resolution behaviour after Class#dup](https://www.ruby-forum.com/t/strange-constant-resolution-behaviour-after-class-dup/160339)

<div class="topic-metadata">

**Author:** [@mthomas](https://www.ruby-forum.com/u/mthomas)\
**Replies:** 0\
**Last updated:** [February 14, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/strange-constant-resolution-behaviour-after-class-dup/160339 "2009-02-14T22:08:49Z")

</div>

Hello, the following code produces different results when executed with Ruby 1.8.6 on Windows and Fedora 9: class A def call\_b\_with\_dup B.dup.new.b end def call\_b\_without\_dup B.new.b end end class B def b XX…

---

## [While vs loop](https://www.ruby-forum.com/t/while-vs-loop/160310)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 4\
**Last updated:** [February 14, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/while-vs-loop/160310 "2009-02-14T20:35:10Z")

</div>

what is the Difference between loop and while in ruby ? loop do end while 1 end

---

## [How to require more than one thing from the command line](https://www.ruby-forum.com/t/how-to-require-more-than-one-thing-from-the-command-line/158563)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 8\
**Last updated:** [February 14, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/how-to-require-more-than-one-thing-from-the-command-line/158563 "2009-02-14T19:10:30Z")

</div>

Is there a way to do this? $ ruby -rrubygems -rfacets -e ‘3’ ruby: no such file to load – facets (LoadError) Also is there a way to do something like $ ruby -e ‘initialization code’ filename.rb ? Thanks! -=r

---

## [\[Feature #1159\] StringScanner $B$KJ8;z%Y!\<%9$G$N%$%s%G%C%/%9$rJV$9%a%=%C%I$,$\[$7$$(B](https://www.ruby-forum.com/t/feature-1159-stringscanner-b-kj8-z-y-9-g-n-s-g-c-9-rjv-9-a-c-i-7-b/160314)

<div class="topic-metadata">

**Author:** [@Akira\_M](https://www.ruby-forum.com/u/Akira_M)\
**Replies:** 4\
**Last updated:** [February 14, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/feature-1159-stringscanner-b-kj8-z-y-9-g-n-s-g-c-9-rjv-9-a-c-i-7-b/160314 "2009-02-14T18:54:15Z")

</div>

Feature #1159: StringScanner e$B$KJ8;z%Y!\<%9$G$N%$%s%G%C%/%9$rJV$9%a%=%C%I$,$\[$7$$e(B http://redmine.ruby-lang.org/issues/show/1159 e$B5/I\<\<Te(B: Akira M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B:…

---

## [Latest news on MacRuby and HotCocoa](https://www.ruby-forum.com/t/latest-news-on-macruby-and-hotcocoa/160332)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [February 14, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/latest-news-on-macruby-and-hotcocoa/160332 "2009-02-14T18:27:54Z")

</div>

I was intrigued by the talks on MacRuby and HotCocoa at RubyConf '08. Sadly I’ve seen no updates on macruby.org regarding news on either project. Anybody know what’s going on with these? Are they still in active de…

---

## [Recommendations for localization on Ruby 1.9?](https://www.ruby-forum.com/t/recommendations-for-localization-on-ruby-1-9/160203)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 4\
**Last updated:** [February 14, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/recommendations-for-localization-on-ruby-1-9/160203 "2009-02-14T15:28:30Z")

</div>

Hi folks, I am researching localization techniques for the ‘Reducing Cultural Barriers’ chapter in my book. Does anyone have experience with a library they like which works on Ruby 1.9? Although I have some experien…

---

## [Ruby string function](https://www.ruby-forum.com/t/ruby-string-function/160309)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 1\
**Last updated:** [February 14, 2009, 8:08am UTC](https://www.ruby-forum.com/t/ruby-string-function/160309 "2009-02-14T08:08:26Z")

</div>

hi i am writing code in ruby which for converting amjad\_alI\_khAn\\khamAj-4.amjad\_alI\_khAn.zakir\_hussain\_and\_the\_maestros\_3.mp3 format from file to Zakir Hussain And The Maestros 3\\Khamaj 4 - Amjad Ali K. (Zakir Hussa…

---

## [1.9 on Vista, would like tips, best practices](https://www.ruby-forum.com/t/1-9-on-vista-would-like-tips-best-practices/160130)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 7\
**Last updated:** [February 14, 2009, 6:24am UTC](https://www.ruby-forum.com/t/1-9-on-vista-would-like-tips-best-practices/160130 "2009-02-14T06:24:56Z")

</div>

I was wondering what is the best way to install 1.9.1 on MS Vista. Do I need to install ming? Also, what library concerns do I need to be aware of? I’m a little averse to using VMware (to mimic a linux install), bu…

---

## [$KCODE and encodings](https://www.ruby-forum.com/t/kcode-and-encodings/160305)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 3\
**Last updated:** [February 14, 2009, 3:48am UTC](https://www.ruby-forum.com/t/kcode-and-encodings/160305 "2009-02-14T03:48:58Z")

</div>

I was searching for string encoding issues in Ruby. Here is the summary of what I learnt, in case its useful to anyone else of if anyone has any corrections to this. Ruby 1.8 support for encoding: A comment lik…

---

## [\[Feature:1.9\] Enumerable#uniq](https://www.ruby-forum.com/t/feature-1-9-enumerable-uniq/160259)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 3\
**Last updated:** [February 14, 2009, 3:02am UTC](https://www.ruby-forum.com/t/feature-1-9-enumerable-uniq/160259 "2009-02-14T03:02:37Z")

</div>

e$B$J$+$@$G$9!#e(B Arraye$B$@$1$G$J$/!“e(BEnumerablee$B$K$be(Buniqe$B$,$”$C$F$b$$$$$s$8$c$J$$$G$7$ge(B e$B$&$+!#e(B Index: enum.c — enum.c (revision 22100) +++ enum.c (working copy) @@ -1794,4 +1794,29 @@ enum\_cyc…

---

## [Ruby GUI Survey: Results](https://www.ruby-forum.com/t/ruby-gui-survey-results/159928)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 12\
**Last updated:** [February 14, 2009, 12:48am UTC](https://www.ruby-forum.com/t/ruby-gui-survey-results/159928 "2009-02-14T00:48:38Z")

</div>

The results of the survey of Ruby GUI programming carried out at the end of last year are now available at http://www.pressure.to/ruby\_gui\_survey/ == SUMMARY OF FINDINGS The survey received a total of 399 responses…

---

## [Bug in converting float to int?](https://www.ruby-forum.com/t/bug-in-converting-float-to-int/160223)

<div class="topic-metadata">

**Author:** [@renian](https://www.ruby-forum.com/u/renian)\
**Replies:** 8\
**Last updated:** [February 14, 2009, 12:36am UTC](https://www.ruby-forum.com/t/bug-in-converting-float-to-int/160223 "2009-02-14T00:36:20Z")

</div>

I just tried this on 1.8.6. Is this a bug or am I missing something? a=10.12 =\> 10.12 (a\*100).to\_i =\> 1011 And if this is in fact intended behavior, how can I actually get the results I want? (Converting dol…

---

## [Performance tips](https://www.ruby-forum.com/t/performance-tips/134445)

<div class="topic-metadata">

**Author:** [@Vince\_F](https://www.ruby-forum.com/u/Vince_F)\
**Replies:** 13\
**Last updated:** [February 14, 2009, 12:28am UTC](https://www.ruby-forum.com/t/performance-tips/134445 "2009-02-14T00:28:05Z")

</div>

Hi all, I’ve been using ruby for about 2 years, but only recently got around trying and learning it well. Is there some central repository I can get performance tips/discussions such as the one posted here: http:/…

---

## [Throwing Exceptions defined in Ruby from C#](https://www.ruby-forum.com/t/throwing-exceptions-defined-in-ruby-from-c/160173)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 9\
**Last updated:** [February 13, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/throwing-exceptions-defined-in-ruby-from-c/160173 "2009-02-13T21:57:23Z")

</div>

Hi, I’m refactoring and polishing the source code of my port of json/ext to IronRuby (it’s feature complete by now) but I’m wondering if there is a better way to throw an Exception defined in ruby from C# compared to…

---

## [How to set GEM\_PATH in warbler?](https://www.ruby-forum.com/t/how-to-set-gem-path-in-warbler/160270)

<div class="topic-metadata">

**Author:** [@jmurillo](https://www.ruby-forum.com/u/jmurillo)\
**Replies:** 4\
**Last updated:** [February 13, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/how-to-set-gem-path-in-warbler/160270 "2009-02-13T21:18:06Z")

</div>

Is it possible to set a different GEM\_PATH for a .war created in warble? I want to share the gems directory among many applications on the same server. I have tried many options and none worked in warble.rb putting…

---

## [Save The Date: Gotham Ruby Conference 2009](https://www.ruby-forum.com/t/save-the-date-gotham-ruby-conference-2009/160293)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/save-the-date-gotham-ruby-conference-2009/160293 "2009-02-13T20:56:50Z")

</div>

Fellow Rubyists, The GoRuCo team is proud to announce this year’s Gotham Ruby Conference will be held on Saturday, May 30th 2009. The venue will be the same location as last year’s at Pace University, located in down…

---

## [If you are happy with the direction of Ruby 1.8.7+, respond](https://www.ruby-forum.com/t/if-you-are-happy-with-the-direction-of-ruby-1-8-7-respond/160091)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 30\
**Last updated:** [February 13, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/if-you-are-happy-with-the-direction-of-ruby-1-8-7-respond/160091 "2009-02-13T20:25:35Z")

</div>

I am setting up two threads in the hopes that we can see names attached to opinions about the decision to break backwards compatibility between Ruby 1.8.6 and Ruby 1.8.7+ This one is for those who wish that Ruby 1.8 w…

---

## [Need Gem name](https://www.ruby-forum.com/t/need-gem-name/160235)

<div class="topic-metadata">

**Author:** [@shanmu](https://www.ruby-forum.com/u/shanmu)\
**Replies:** 2\
**Last updated:** [February 13, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/need-gem-name/160235 "2009-02-13T19:14:02Z")

</div>

Hi all, can someone help me with gem name to extract in ical format. I ve tried vpim & ical. Is there any other gem available for this? Thanks, Shanmu

---

## [Scratch that task.. some file paths have changed](https://www.ruby-forum.com/t/scratch-that-task-some-file-paths-have-changed/160281)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/scratch-that-task-some-file-paths-have-changed/160281 "2009-02-13T18:15:15Z")

</div>

That package task was what worked earlier this week. It looks like some of the paths have changed… I’ll fix it and update my repo.

---

## [SQLite as a Log?](https://www.ruby-forum.com/t/sqlite-as-a-log/160210)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 11\
**Last updated:** [February 13, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/sqlite-as-a-log/160210 "2009-02-13T18:09:54Z")

</div>

In a current project we’re discussing using SQLite for all application logging. This is a heavy multiprocessing environment, which was one of our reasons for considering it. We also love the idea of structured queri…

---

## [Changing font color from current font color to black color](https://www.ruby-forum.com/t/changing-font-color-from-current-font-color-to-black-color/160280)

<div class="topic-metadata">

**Author:** [@kamaljeetsinghsaini](https://www.ruby-forum.com/u/kamaljeetsinghsaini)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/changing-font-color-from-current-font-color-to-black-color/160280 "2009-02-13T17:59:39Z")

</div>

Hi, Is it possible using RMagic, that if you have a image file “.bmp” and that file got “hello” in red color or any other color and to change that color to black color. Example of the image attached. How we can do tha…

---

## [Revised package.rake](https://www.ruby-forum.com/t/revised-package-rake/160282)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/revised-package-rake/160282 "2009-02-13T17:56:56Z")

</div>

Hi, In my mono branch I use the following package task. It allows me to package up IronRuby and control the search paths. The problem with the previous task was that it shelled out to windows with windows specific …

---

## [How to retrive first 10 items from hash in ruby?](https://www.ruby-forum.com/t/how-to-retrive-first-10-items-from-hash-in-ruby/160252)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 10\
**Last updated:** [February 13, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/how-to-retrive-first-10-items-from-hash-in-ruby/160252 "2009-02-13T17:39:50Z")

</div>

Hello All, I am new to programming, i have little problem with hash. I want to retrieve first 10 items(key value pairs) from given hash{} hashTable = {“a” =\> 1, “b” =\> 5, “c” =\> 2, “d” =\> 6, “e” =\> 4, “f” =\> 7, “g” =\> …

---

## [Help reading data from a file](https://www.ruby-forum.com/t/help-reading-data-from-a-file/160221)

<div class="topic-metadata">

**Author:** [@zoephoenix](https://www.ruby-forum.com/u/zoephoenix)\
**Replies:** 5\
**Last updated:** [February 13, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/help-reading-data-from-a-file/160221 "2009-02-13T17:15:02Z")

</div>

I have a ruby program that I use to generate text files from a single array’s data, but what I would like to do is be able to have it generate files from multiple arrays and save them in a different folder when it sta…

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

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