# Ruby

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

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

---

## [Time To Pick the Mongrel BUGS Mascot!](https://www.ruby-forum.com/t/time-to-pick-the-mongrel-bugs-mascot/96613)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 30\
**Last updated:** [July 1, 2006, 2:10am UTC](https://www.ruby-forum.com/t/time-to-pick-the-mongrel-bugs-mascot/96613 "2006-07-01T02:10:51Z")

</div>

Bradley Taylor shot me this goldmine of ugly ugly ugly dogs: http://www.sonoma-marinfair.org/uglydogvote.shtml I have to use one of these for the Mongrel BUGS Mascot. He’ll go on our bug list page and replace the lit…

---

## [Puzzled on the MatchData](https://www.ruby-forum.com/t/puzzled-on-the-matchdata/96709)

<div class="topic-metadata">

**Author:** [@vcivelek](https://www.ruby-forum.com/u/vcivelek)\
**Replies:** 1\
**Last updated:** [July 1, 2006, 12:21am UTC](https://www.ruby-forum.com/t/puzzled-on-the-matchdata/96709 "2006-07-01T00:21:38Z")

</div>

Hi, I have a question… Why the below snippet, \[“foo”,“bar”,“baz”\].each do |s| m = /^ba(.\*?)$/.match(s) puts m\[0\] end gives the following error? test.rb:8: undefined method \`\[\]’ for nil:NilClass (NoMethodError) R…

---

## [Gems not found - what is the standard](https://www.ruby-forum.com/t/gems-not-found-what-is-the-standard/96583)

<div class="topic-metadata">

**Author:** [@lanny](https://www.ruby-forum.com/u/lanny)\
**Replies:** 16\
**Last updated:** [June 30, 2006, 10:04pm UTC](https://www.ruby-forum.com/t/gems-not-found-what-is-the-standard/96583 "2006-06-30T22:04:15Z")

</div>

I have Ruby installed on AIX. When running an application (typo in this case) I received no sch file to load message … I found it was looking for redcloth. I found the gem in my gems library. After I ran ruby setup.rb…

---

## [Rational about the Gem package format?](https://www.ruby-forum.com/t/rational-about-the-gem-package-format/96635)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 30, 2006, 9:59pm UTC](https://www.ruby-forum.com/t/rational-about-the-gem-package-format/96635 "2006-06-30T21:59:36Z")

</div>

I was just wondering about the rational behind the format of gem packages. It seems rather odd that the package is a tar of data.tar.gz metadata.gz Why not just have the metadata stored in with the data and not worry …

---

## [Reflection brakes encapsulation](https://www.ruby-forum.com/t/reflection-brakes-encapsulation/96537)

<div class="topic-metadata">

**Author:** [@keyster](https://www.ruby-forum.com/u/keyster)\
**Replies:** 4\
**Last updated:** [June 30, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/reflection-brakes-encapsulation/96537 "2006-06-30T19:58:04Z")

</div>

I recently started off learning Ruby using the version 1.8.4 of the Ruby interpreter. After some time spent on trying out different Ruby’s specific features I now may say that it has really impressed me. It’s fun and …

---

## [TurboVision port?](https://www.ruby-forum.com/t/turbovision-port/63813)

<div class="topic-metadata">

**Author:** [@MiG](https://www.ruby-forum.com/u/MiG)\
**Replies:** 2\
**Last updated:** [June 30, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/turbovision-port/63813 "2006-06-30T18:46:56Z")

</div>

Hello, has anyone ported TurboVision into Ruby? (project tvision seems to be dead) I’ve found opensource C++ TVision library at I think it would be more usable than lowlevel Ncurses. thank you, mig

---

## [Re: Is a block converted to a Proc object before yield?](https://www.ruby-forum.com/t/re-is-a-block-converted-to-a-proc-object-before-yield/96568)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 30, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/re-is-a-block-converted-to-a-proc-object-before-yield/96568 "2006-06-30T18:28:03Z")

</div>

Matz, I want to take this opportunity to thank you for making me a happy programmer with Ruby. Sam Can I second that motion?!?!? I was a programming burn-out. I was broken by a lifetime of shitty projects and sh…

---

## [Useful inconcistency in calling foo vs. foo= private methods](https://www.ruby-forum.com/t/useful-inconcistency-in-calling-foo-vs-foo-private-methods/96662)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 1\
**Last updated:** [June 30, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/useful-inconcistency-in-calling-foo-vs-foo-private-methods/96662 "2006-06-30T16:48:18Z")

</div>

Hi This is an interesting sort of useful gotcha I recently stumbled upon: class Foo private def bar p ‘#bar called’ end def bar=(val) p ‘#bar= called’ end end irb(main):002:0\> foo = Foo.new irb(main):003:0\> f…

---

## [Re: Time To Pick the Mongrel BUGS Mascot!](https://www.ruby-forum.com/t/re-time-to-pick-the-mongrel-bugs-mascot/96651)

<div class="topic-metadata">

**Author:** [@William\_SBillS\_Froe](https://www.ruby-forum.com/u/William_SBillS_Froe)\
**Replies:** 0\
**Last updated:** [June 30, 2006, 3:44pm UTC](https://www.ruby-forum.com/t/re-time-to-pick-the-mongrel-bugs-mascot/96651 "2006-06-30T15:44:19Z")

</div>

+1 for Rascal

---

## [Periodic retrieval fo stdout](https://www.ruby-forum.com/t/periodic-retrieval-fo-stdout/96617)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 1\
**Last updated:** [June 30, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/periodic-retrieval-fo-stdout/96617 "2006-06-30T15:15:22Z")

</div>

Hi, I am using Open3.popen to run a make command which takes 5-10 mins to complete. I have put the popen command in a Thread.new {}. However, it is still getting blocked (I have a UI written in FXRuby). I want to r…

---

## [REXML and Excel XML :)](https://www.ruby-forum.com/t/rexml-and-excel-xml/96317)

<div class="topic-metadata">

**Author:** [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Replies:** 4\
**Last updated:** [June 30, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/rexml-and-excel-xml/96317 "2006-06-30T14:12:31Z")

</div>

I set myself the task of being able to parse a random xml file generated by Excel 2003 and I’m having odd problems which I can’t really understand. ---- Question Setup ---- Excel defines two element each with their o…

---

## [Re: Symbol#to\_proc is just so beautiful](https://www.ruby-forum.com/t/re-symbol-to-proc-is-just-so-beautiful/94060)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 6\
**Last updated:** [June 30, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/re-symbol-to-proc-is-just-so-beautiful/94060 "2006-06-30T13:53:53Z")

</div>

def to\_proc end \[1, 2, 3\].all? &:positive? =\> true \[-1, 2, 3\].all? &:positive? =\> false It’s just so damn beautiful! There must be a way to ditch that ‘&’ somehow. I’d prefer this: \[1,2,3\].all?(:positive?) Da…

---

## [What do we want to add to RubyForge (was: RubyForge in Ruby?](https://www.ruby-forum.com/t/what-do-we-want-to-add-to-rubyforge-was-rubyforge-in-ruby/64379)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 6\
**Last updated:** [June 30, 2006, 11:56am UTC](https://www.ruby-forum.com/t/what-do-we-want-to-add-to-rubyforge-was-rubyforge-in-ruby/64379 "2006-06-30T11:56:00Z")

</div>

Folks, I started this thread… please let me take a shot at summarizing people’s points: Rewriting GForge in Ruby for RubyForge is a waste of time and a religious persuit because it splits the development of an exis…

---

## [Prime mark for method wrapping](https://www.ruby-forum.com/t/prime-mark-for-method-wrapping/96631)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 30, 2006, 11:55am UTC](https://www.ruby-forum.com/t/prime-mark-for-method-wrapping/96631 "2006-06-30T11:55:48Z")

</div>

Had a thought today about the idiom: alias :foo\_without\_bar, :foo def foo … foo\_withiout\_bar … end First let me point out that Rails recently invented a further bent on this: def foo\_with\_bar … foo\_withiout\_ba…

---

## [XML in ruby](https://www.ruby-forum.com/t/xml-in-ruby/96436)

<div class="topic-metadata">

**Author:** [@Pedro\_CSSSSrte-Real](https://www.ruby-forum.com/u/Pedro_CSSSSrte-Real)\
**Replies:** 11\
**Last updated:** [June 30, 2006, 11:49am UTC](https://www.ruby-forum.com/t/xml-in-ruby/96436 "2006-06-30T11:49:38Z")

</div>

What do you usually use to work with XML in ruby. REXML seems to be too slow and libxml too buggy. Any other option I should try? Thanks, Pedro.

---

## [IRB, Windows and International Keyboards](https://www.ruby-forum.com/t/irb-windows-and-international-keyboards/96543)

<div class="topic-metadata">

**Author:** [@Robert\_MannI](https://www.ruby-forum.com/u/Robert_MannI)\
**Replies:** 3\
**Last updated:** [June 30, 2006, 8:21am UTC](https://www.ruby-forum.com/t/irb-windows-and-international-keyboards/96543 "2006-06-30T08:21:52Z")

</div>

Hello! I have a hungarian keyboard on a windows machine. When I go into IRB, I can only type characters as if I had an English standard keyboard hooked in. Hence I can’t type any special characters properly. Is ther…

---

## [Ruby thread feat. win32 message cycle](https://www.ruby-forum.com/t/ruby-thread-feat-win32-message-cycle/96603)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokS\_She](https://www.ruby-forum.com/u/Victor_SZverokS_She)\
**Replies:** 8\
**Last updated:** [June 30, 2006, 6:26am UTC](https://www.ruby-forum.com/t/ruby-thread-feat-win32-message-cycle/96603 "2006-06-30T06:26:18Z")

</div>

Hi all. I’ve tried the simple code: Thread.new{ runMessageCycle} puts ‘here’ where runMessageCycle is a simple C extension method with Win32 message cycle: static VALUE run(VALUE \_self) { MSG msg; while (::GetMe…

---

## [Flexible graph library - sans hash](https://www.ruby-forum.com/t/flexible-graph-library-sans-hash/96440)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [June 30, 2006, 2:53am UTC](https://www.ruby-forum.com/t/flexible-graph-library-sans-hash/96440 "2006-06-30T02:53:35Z")

</div>

anyone out there know of a graph library that doesn’t use a hash in the impl, thereby restricting only one edge from u --\>\> v? i’ve used rgl extensively in the past but it uses a hash under the hood and has this res…

---

## [\[ANN\] Radiant CMS 0.5 - Grindstone](https://www.ruby-forum.com/t/ann-radiant-cms-0-5-grindstone/96598)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 0\
**Last updated:** [June 30, 2006, 2:47am UTC](https://www.ruby-forum.com/t/ann-radiant-cms-0-5-grindstone/96598 "2006-06-30T02:47:26Z")

</div>

Last night I quietly rolled out the first official release of Radiant: 0.5 - Grindstone. This release was a stability release mostly targeted toward making it easy for people to download and get started with Radiant. …

---

## [\<\< for Hash?](https://www.ruby-forum.com/t/for-hash/96100)

<div class="topic-metadata">

**Author:** [@saikun](https://www.ruby-forum.com/u/saikun)\
**Replies:** 16\
**Last updated:** [June 30, 2006, 1:05am UTC](https://www.ruby-forum.com/t/for-hash/96100 "2006-06-30T01:05:52Z")

</div>

class Hash def \<\<(arg) self.merge!(arg) end end Eg, thing = { :foo =\> 1, } thing \<\< { :bar =\> 2, :baz =\> 3, } thing #=\> {:foo=\>1, :bar=\>2, :baz=\>3 } Of course it overwrites existing keys. I think it’s a lit…

---

## [Re: Unicode roadmap?](https://www.ruby-forum.com/t/re-unicode-roadmap/96301)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 36\
**Last updated:** [June 30, 2006, 12:25am UTC](https://www.ruby-forum.com/t/re-unicode-roadmap/96301 "2006-06-30T00:25:41Z")

</div>

real-world example where you’d want to access particular characters of a string. If that is the case, then why doesn’t Ruby remove all substring notation? Because it would be a disaster. You want real world exa…

---

## [Remove all illegal chars form string](https://www.ruby-forum.com/t/remove-all-illegal-chars-form-string/96378)

<div class="topic-metadata">

**Author:** [@thomas\_coopman](https://www.ruby-forum.com/u/thomas_coopman)\
**Replies:** 28\
**Last updated:** [June 30, 2006, 12:10am UTC](https://www.ruby-forum.com/t/remove-all-illegal-chars-form-string/96378 "2006-06-30T00:10:31Z")

</div>

Hi, Is there a simple way to remove all but the legal chars from a string. where the legal chars are for example: a-z A-Z 0-9 So everything should be removed from the string but these characters. “exam@p Le3|§” --\> …

---

## [Munich.rb -- User Group Meeting in Munich, Germany](https://www.ruby-forum.com/t/munich-rb-user-group-meeting-in-munich-germany/96579)

<div class="topic-metadata">

**Author:** [@Urban\_H](https://www.ruby-forum.com/u/Urban_H)\
**Replies:** 0\
**Last updated:** [June 29, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/munich-rb-user-group-meeting-in-munich-germany/96579 "2006-06-29T22:15:42Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hej, Austin Z. will be in Munich some time in July and I’d like to organize a meeting with the local Ruby people. If you have time on July 15th or 16th please contact me…

---

## [While modifiers have a scoping bug?!](https://www.ruby-forum.com/t/while-modifiers-have-a-scoping-bug/96434)

<div class="topic-metadata">

**Author:** [@beev](https://www.ruby-forum.com/u/beev)\
**Replies:** 3\
**Last updated:** [June 29, 2006, 10:09pm UTC](https://www.ruby-forum.com/t/while-modifiers-have-a-scoping-bug/96434 "2006-06-29T22:09:06Z")

</div>

irb\> puts(line) while line = gets this is test line \[EOF\] NameError: undefined local variable or method \`line’ for main:Object from (irb):1 The Pickaxe says on page 354 that unless the expression (on the left of th…

---

## [Arrays, symbols and association - looking for better idiom](https://www.ruby-forum.com/t/arrays-symbols-and-association-looking-for-better-idiom/96435)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [June 29, 2006, 7:26pm UTC](https://www.ruby-forum.com/t/arrays-symbols-and-association-looking-for-better-idiom/96435 "2006-06-29T19:26:48Z")

</div>

Hi all, I’m trying to associate non-symbol arguments with the most immediately previous symbol. The solution below works, but I suspect there’s an easier way: def test(\*args) hash = {} current = nil args.each{ |a…

---

## [Eigenclass not extensible?](https://www.ruby-forum.com/t/eigenclass-not-extensible/96431)

<div class="topic-metadata">

**Author:** [@zenzei](https://www.ruby-forum.com/u/zenzei)\
**Replies:** 11\
**Last updated:** [June 29, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/eigenclass-not-extensible/96431 "2006-06-29T19:10:55Z")

</div>

… in the particular case where the method already exists. == Example class Cls; end class Cls2; end def Cls.somemethod “defined in Cls” end Cls.somemethod #=\> “defined in Cls” module Mod def somemethod “defined…

---

## [System command and silent output?](https://www.ruby-forum.com/t/system-command-and-silent-output/96565)

<div class="topic-metadata">

**Author:** [@roggan](https://www.ruby-forum.com/u/roggan)\
**Replies:** 2\
**Last updated:** [June 29, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/system-command-and-silent-output/96565 "2006-06-29T19:07:45Z")

</div>

Im using ruby for a build script here and im doing things like: system “del #{filePath} /s /q” however I dont want to see the result of that, currently it shows a zillion files on the console output ive tried to do …

---

## [Pp Pascal (#84)](https://www.ruby-forum.com/t/pp-pascal-84/96544)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 5\
**Last updated:** [June 29, 2006, 6:11pm UTC](https://www.ruby-forum.com/t/pp-pascal-84/96544 "2006-06-29T18:11:11Z")

</div>

My wife, Dana, is the one working through Learning to Program and the reason I added the note to the quiz. Those watching the solutions will know that she did submit, but she also told me in a private message: But …

---

## [Command line with regexp same as script but didn't work](https://www.ruby-forum.com/t/command-line-with-regexp-same-as-script-but-didnt-work/96548)

<div class="topic-metadata">

**Author:** [@agouti](https://www.ruby-forum.com/u/agouti)\
**Replies:** 2\
**Last updated:** [June 29, 2006, 5:24pm UTC](https://www.ruby-forum.com/t/command-line-with-regexp-same-as-script-but-didnt-work/96548 "2006-06-29T17:24:31Z")

</div>

hello ! i have to comment a link in lots html pages of a static site (with tables everywere ) : with my little ruby script : while get gsub(/()/, '') print end it ok , but when i try try with command line : c…

---

## [\[BUG\] bug in variable assignment](https://www.ruby-forum.com/t/bug-bug-in-variable-assignment/96553)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [June 29, 2006, 5:18pm UTC](https://www.ruby-forum.com/t/bug-bug-in-variable-assignment/96553 "2006-06-29T17:18:14Z")

</div>

e$B$5$-$\[$I$N$^$D$b$H$5$s$N%3%\_%C%H$+$i!“e(Btest-all e$B$GMn$A$k$3$He(B e$B$,$”$k$h$&$K$J$C$F$$$k$h$&$G$9!#e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-trunk-pth/summary.html#20060629T231106 e$B\<j85$G$bM…

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

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