# Ruby

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

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

---

## [Software for web-based private discussion groups](https://www.ruby-forum.com/t/software-for-web-based-private-discussion-groups/142113)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 1\
**Last updated:** [July 3, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/software-for-web-based-private-discussion-groups/142113 "2008-07-03T16:06:58Z")

</div>

Dear all, I’d like to set up a web-based discussion group for some 20-50 people. It should be possible to restrict access to some of the messages, as it is finance-related … Can you recommend a software written in …

---

## [\[Feature:trunk\] test-coverage measurement](https://www.ruby-forum.com/t/feature-trunk-test-coverage-measurement/141774)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 6\
**Last updated:** [July 3, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/feature-trunk-test-coverage-measurement/141774 "2008-07-03T14:57:46Z")

</div>

é è—¤ã§ã™ã€‚ Ruby æœ¬ä½“ã«ã‚«ãƒãƒ¬ãƒƒã‚¸æ¸¬å®šæ©Ÿèƒ½ã‚’æä¾›ã™ã‚‹ã®ã¯ã©ã†ã§ã—ã‚‡ã†ã‹ã€‚ å…·ä½“çš„ã«ã¯ã€ã‚½ãƒ¼ã‚¹ã”ã¨ã®å„è¡Œã®å®Ÿè¡Œå›žæ•°ã‚’è¡¨ã™å®šæ•° COVERAGE\_\_ ã‚’ å°Žå…¥ã—ãŸã„ã§ã™ã€‚SC…

---

## [Design Pattern for RUBY Beginner Learner](https://www.ruby-forum.com/t/design-pattern-for-ruby-beginner-learner/142030)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 6\
**Last updated:** [July 3, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/design-pattern-for-ruby-beginner-learner/142030 "2008-07-03T14:52:30Z")

</div>

Dear Ruby Folk, Do you know a good Ruby Design Pattern Tutorials Site or Documents? I am still in beginner level in Ruby but… for my school i need to know in the following ruby design pattern. Visitor Pattern Compos…

---

## [Yet another regexp problem](https://www.ruby-forum.com/t/yet-another-regexp-problem/142095)

<div class="topic-metadata">

**Author:** [@shaman](https://www.ruby-forum.com/u/shaman)\
**Replies:** 8\
**Last updated:** [July 3, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/yet-another-regexp-problem/142095 "2008-07-03T13:36:24Z")

</div>

Hello- I need to match any string which contain: any 3 letters any 3 digits but\_not\_123 any 3 letters so: xxx765xxx should match vvv123vvv should be omitted is it possible to write proper regular expression? Reg…

---

## [Nested methods good or bad design](https://www.ruby-forum.com/t/nested-methods-good-or-bad-design/141797)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 14\
**Last updated:** [July 3, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/nested-methods-good-or-bad-design/141797 "2008-07-03T13:35:48Z")

</div>

=begin Hey chaps, Is it bad practice to have nested methods? I’m sure that it would result in messey/cluttered code. Does any one actually code like that at all? Not really -essential- as everything is working, (even…

---

## [Load xml data in a html file](https://www.ruby-forum.com/t/load-xml-data-in-a-html-file/142101)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/load-xml-data-in-a-html-file/142101 "2008-07-03T13:22:38Z")

</div>

I have in a xml file a hard disk folders/files structure new.txt 1234 … I want to load that xml file in a hmtl one so that:in the left of the html page i have a frame with a hmtl tree to simulate a navigation …

---

## [Is it normal to be kicked out of irb?](https://www.ruby-forum.com/t/is-it-normal-to-be-kicked-out-of-irb/142072)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 1\
**Last updated:** [July 3, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/is-it-normal-to-be-kicked-out-of-irb/142072 "2008-07-03T12:35:20Z")

</div>

Is it normal to be kicked off of irb when a Fatal error occurs ? I was kicked of of it while testing this (kicked off != code halt with an exception): $ irb irb(main):001:0\> def is\_prime?(n); (“1” \* n) !~ /^1?$|^(11+…

---

## [Re: any 3 letters](https://www.ruby-forum.com/t/re-any-3-letters/142096)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/re-any-3-letters/142096 "2008-07-03T12:30:39Z")

</div>

xxx765xxx should match vvv123vvv should be omitted is it possible to write proper regular expression? Yes, it’s possible, but you may find it less mind-bending just to use two regular expressions: puts “match” if…

---

## [Taint mechanism](https://www.ruby-forum.com/t/taint-mechanism/141987)

<div class="topic-metadata">

**Author:** [@rvork](https://www.ruby-forum.com/u/rvork)\
**Replies:** 3\
**Last updated:** [July 3, 2008, 11:58am UTC](https://www.ruby-forum.com/t/taint-mechanism/141987 "2008-07-03T11:58:14Z")

</div>

Hi everyone, I would like to ask a few question about the taint mechanism of ruby. It seems that ruby taint mechanism doesn’t care about indirect dataflow to propagate the taint. For instance, if you got : myVar1 = A…

---

## [Detecting a connection loss && other network questions](https://www.ruby-forum.com/t/detecting-a-connection-loss-other-network-questions/142090)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 11:34am UTC](https://www.ruby-forum.com/t/detecting-a-connection-loss-other-network-questions/142090 "2008-07-03T11:34:18Z")

</div>

Hello all, I’m trying to get acquainted with network programming in Ruby and I’m facing several problems. The biggest 2 are How do I detect a connection loss when it happens while the client is blocking, waiting fo…

---

## [To down the cool trisha! images!](https://www.ruby-forum.com/t/to-down-the-cool-trisha-images/142089)

<div class="topic-metadata">

**Author:** [@simbu](https://www.ruby-forum.com/u/simbu)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 11:12am UTC](https://www.ruby-forum.com/t/to-down-the-cool-trisha-images/142089 "2008-07-03T11:12:06Z")

</div>

TO DOWN THE COOL TRISHA!! IMAGES!!! TO DOWNLOAD THE KUSALAN AND IMAGES ON RASIYA, MUMTHAJ,STEYA,… TO THE COMEDY IN THE NEW FILM AND THE THEME OF THE STORIES AND TALIORS OF NEW FILM ON HINDI ALSO… SO WANT MORE!!! CL…

---

## [Problem building Ruby from sources](https://www.ruby-forum.com/t/problem-building-ruby-from-sources/142019)

<div class="topic-metadata">

**Author:** [@kurtus](https://www.ruby-forum.com/u/kurtus)\
**Replies:** 4\
**Last updated:** [July 3, 2008, 11:11am UTC](https://www.ruby-forum.com/t/problem-building-ruby-from-sources/142019 "2008-07-03T11:11:33Z")

</div>

Hello, I am having a problem building Ruby from sources (checked out latest version with Subversion from repository). I tried it for Ubunty 8.04 and Cygwin. In both cases I got an error while running make: echo execu…

---

## [Statistician I (#167)](https://www.ruby-forum.com/t/statistician-i-167/141612)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 12\
**Last updated:** [July 3, 2008, 10:12am UTC](https://www.ruby-forum.com/t/statistician-i-167/141612 "2008-07-03T10:12:11Z")

</div>

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

---

## [Code Review: YamlRegex](https://www.ruby-forum.com/t/code-review-yamlregex/141963)

<div class="topic-metadata">

**Author:** [@Oleg\_T](https://www.ruby-forum.com/u/Oleg_T)\
**Replies:** 3\
**Last updated:** [July 3, 2008, 7:28am UTC](https://www.ruby-forum.com/t/code-review-yamlregex/141963 "2008-07-03T07:28:44Z")

</div>

tfpt review “/shelveset:YamlRegex;REDMOND\\olegtk” Comment : Fixes Ruby Regex support: implements RubyRegex.taguri() and loading regex from yaml. Implements loading literal Ruby ranges. Adds couple useful RubyUtils.…

---

## [Worthwhile to build a gem?](https://www.ruby-forum.com/t/worthwhile-to-build-a-gem/142050)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [July 3, 2008, 7:17am UTC](https://www.ruby-forum.com/t/worthwhile-to-build-a-gem/142050 "2008-07-03T07:17:37Z")

</div>

I have a project where a number of internally-developed Ruby libraries will need to be installed on numerous machines. Small apps will then be written using this set of libraries almost like a framework really. Is it …

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/141992)

<div class="topic-metadata">

**Author:** [@ntokozo\_mdletshe](https://www.ruby-forum.com/u/ntokozo_mdletshe)\
**Replies:** 2\
**Last updated:** [July 3, 2008, 6:33am UTC](https://www.ruby-forum.com/t/no-subject/141992 "2008-07-03T06:33:12Z")

</div>

i nid help with Write a Ruby program that askes for your name and id number from the command line. Then the program must check if the ID number is a valid south african ID number according to the specification on b…

---

## [Require system](https://www.ruby-forum.com/t/require-system/142063)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 4:14am UTC](https://www.ruby-forum.com/t/require-system/142063 "2008-07-03T04:14:25Z")

</div>

Was thinking about the way libraries are required, and the potential for load conflicts. Of course, if anyone has ever run into it this I’m sure they worked around it ASAP, but I think it’s good take a look at these p…

---

## [Need help for regular expression](https://www.ruby-forum.com/t/need-help-for-regular-expression/142051)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [July 3, 2008, 1:20am UTC](https://www.ruby-forum.com/t/need-help-for-regular-expression/142051 "2008-07-03T01:20:48Z")

</div>

Hi all, I wonder what is the regular expression for this line. What I try to do is to remove “(some text here)” from a long string. Thanks, Li string=…(some text here)…

---

## [Ruby idiom a ||= b means?](https://www.ruby-forum.com/t/ruby-idiom-a-b-means/196733)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 4\
**Last updated:** [July 3, 2008, 12:11am UTC](https://www.ruby-forum.com/t/ruby-idiom-a-b-means/196733 "2008-07-03T00:11:00Z")

</div>

What does the ruby idiom a ||= b mean? Thanks, Ratnavel

---

## [Datenum and timenum](https://www.ruby-forum.com/t/datenum-and-timenum/142038)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/datenum-and-timenum/142038 "2008-07-02T20:51:03Z")

</div>

are there any libraries that generates the datenum and timenum based on input. appreciate any help seede

---

## [Rolling a JRuby desktop application](https://www.ruby-forum.com/t/rolling-a-jruby-desktop-application/142032)

<div class="topic-metadata">

**Author:** [@Matt\_Fletcher](https://www.ruby-forum.com/u/Matt_Fletcher)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/rolling-a-jruby-desktop-application/142032 "2008-07-02T19:59:20Z")

</div>

Atomic Object has been developing several JRuby desktop applications over the last year. I just got finished writing up how we transform a JRuby project on the filesystem into a single, executable jar file that we de…

---

## [Summer Rails training courses from Ruby Power and Light, in Edison, NJ](https://www.ruby-forum.com/t/summer-rails-training-courses-from-ruby-power-and-light-in-edison-nj/142026)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/summer-rails-training-courses-from-ruby-power-and-light-in-edison-nj/142026 "2008-07-02T18:39:56Z")

</div>

Hi everyone – A little bit of date and course shuffling has taken place, with the following very pleasing results: Ruby Power and Light will be offering the following courses, both held in the training facilities of …

---

## [Boolean mysql error](https://www.ruby-forum.com/t/boolean-mysql-error/141898)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/boolean-mysql-error/141898 "2008-07-02T17:14:21Z")

</div>

Hello, I ran into a bug/issue where running rake db:migrate under JRuby with a mysql DB and a type of boolean produces the following error. Is this a known bug/issue with rake under JRuby ? Rake Output (0.8.1): – a…

---

## [Missing zlib on latest ruby version](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967)

<div class="topic-metadata">

**Author:** [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967 "2008-07-02T16:57:11Z")

</div>

You all know the error. missing require, blah blah. Seriously, nothing new here. here’s the scoop But I found that zlib was missing from the latest ruby version on my Ubuntu. I download and install from source the lat…

---

## [Rb\_during\_gc](https://www.ruby-forum.com/t/rb-during-gc/142005)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/rb-during-gc/142005 "2008-07-02T16:39:56Z")

</div>

e$B=uED$G$9!#e(B e$B3HD%%i%$%V%i%jB&$Ge(BGCe$BCf$+$I$&$+$rH=CG$9$ke(BRubye$B$Ne(BAPI rb\_during\_gc()e$B$re(B e$B\<h$j9~$s$G$$$?$@$1$J$$$G$7$g$&$+!)e(B rb\_during\_gce$B$N%Q%C%A$O!"e(B\[ruby-dev:35313\]e$B$Ge(Bartone$B$5$s$…

---

## [Weird results with YAML using anchors and sequences](https://www.ruby-forum.com/t/weird-results-with-yaml-using-anchors-and-sequences/142011)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/weird-results-with-yaml-using-anchors-and-sequences/142011 "2008-07-02T16:30:53Z")

</div>

Hello everybody! I’ve been using YAML more extensively lately, and hit a wall today. I tried to narrow the problem to the minium here: http://pastie.org/private/xmrb0lztt4g46ankvow On the pastie, you can see the usag…

---

## [\[BUG\] test\_win32ole\_event.rb in trunk](https://www.ruby-forum.com/t/bug-test-win32ole-event-rb-in-trunk/141793)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 21\
**Last updated:** [July 2, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/bug-test-win32ole-event-rb-in-trunk/141793 "2008-07-02T15:35:43Z")

</div>

e$B=uED$G$9!#e(B e$B$A$g$C$H$h$/$o$+$i$J$$$N$G65$($F$/$@$5$$!#e(B cygwine$B4D6-$G!"e(Bmake test-all TESTS=win32ole e$B$H$9$k$H0J2\<$N$h$&$Ke(BBUGe$B$K$J$j$^$7$?!#e(B /work/svn/ruby/trunk/test/win32ole/test\_win32ole\_ev…

---

## [Workarounds for ruby 1.8.6 segmentations faults](https://www.ruby-forum.com/t/workarounds-for-ruby-1-8-6-segmentations-faults/141945)

<div class="topic-metadata">

**Author:** [@liquid\_rails](https://www.ruby-forum.com/u/liquid_rails)\
**Replies:** 11\
**Last updated:** [July 2, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/workarounds-for-ruby-1-8-6-segmentations-faults/141945 "2008-07-02T15:28:41Z")

</div>

Hi, I am running Rails 2.1.0 and ruby-1.8.6 (2008-06-20 patchlevel 230 \[i686-linux\]. I am experiencing the same segmentation faults that several others are who are running this version or ruby. Can anyone recommend…

---

## [Arithmetic oddity](https://www.ruby-forum.com/t/arithmetic-oddity/141994)

<div class="topic-metadata">

**Author:** [@kookymind](https://www.ruby-forum.com/u/kookymind)\
**Replies:** 7\
**Last updated:** [July 2, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/arithmetic-oddity/141994 "2008-07-02T15:28:28Z")

</div>

l = \[1.0, 1.0, 2.0\*\*0.5\] =\> \[1.0, 1.0, 1.4142135623731\] s = l.map {|e| e\*\*2} =\> \[1.0, 1.0, 2.0\] puts ‘foo’ if s\[2\] == s\[1\] + s\[0\] =\> nil puts ‘foo’ if 2.0 == 1.0 + 1.0 foo =\> nil Does anyone know why s…

---

## [Hash#select returns an array but Hash#reject returns a hash](https://www.ruby-forum.com/t/hash-select-returns-an-array-but-hash-reject-returns-a-hash/141875)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 20\
**Last updated:** [July 2, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/hash-select-returns-an-array-but-hash-reject-returns-a-hash/141875 "2008-07-02T14:53:30Z")

</div>

Hello, Is there any design reason for select returning an array and reject returning a hash? Why this disparity? Thank you, Jayanth

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

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