# Ruby

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

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

---

## [Magic/xml vs XML/Query](https://www.ruby-forum.com/t/magic-xml-vs-xml-query/102351)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/magic-xml-vs-xml-query/102351 "2006-08-15T14:15:44Z")

</div>

Hello, Some of you may be interested in it. I recoded solutions for W3C’s XML Query Use Cases ( http://www.w3.org/TR/xquery-use-cases/ ) using magic/xml. Pretty-printed problems and solutions can be found at http://…

---

## [Pretty-printing Ruby code to HTML](https://www.ruby-forum.com/t/pretty-printing-ruby-code-to-html/64653)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 7\
**Last updated:** [August 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/pretty-printing-ruby-code-to-html/64653 "2006-08-15T14:15:37Z")

</div>

Hello, I need to pretty print some Ruby code into HTML. Any pointers :slight\_smile: ?

---

## [\[ANN\] Radiant CMS 0.5.1 - Gemdust](https://www.ruby-forum.com/t/ann-radiant-cms-0-5-1-gemdust/64633)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 6\
**Last updated:** [August 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/ann-radiant-cms-0-5-1-gemdust/64633 "2006-08-15T14:15:33Z")

</div>

I am pleased to announce the release of Radiant 0.5.1 Gemdust: http://radiantcms.org/download/ This is primarily a security update. A critical security vulnerability has been discovered in Rails 1.1.5. It is therefore…

---

## [Odd Net::FTP behavior](https://www.ruby-forum.com/t/odd-net-ftp-behavior/102339)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/odd-net-ftp-behavior/102339 "2006-08-15T14:15:18Z")

</div>

Here’s my (simple) code. This has worked fine in the past; now even this simple example fails for me. It gets as far as creating an empty file, then it hangs and times out. This is Ruby 1.8.4 on FC4, talking to anoth…

---

## [Array Building idiom](https://www.ruby-forum.com/t/array-building-idiom/102333)

<div class="topic-metadata">

**Author:** [@John-Mason\_PSShack](https://www.ruby-forum.com/u/John-Mason_PSShack)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/array-building-idiom/102333 "2006-08-15T14:15:11Z")

</div>

What other idioms do you use for: a=\[\]; 10.times{a\<\<callme() } Array.new(10).map{ callme() } Note: callme() returns a new value with each call. Do I understand correctly that the former will be illegal under 1.9.1? J…

---

## [Method arguments](https://www.ruby-forum.com/t/method-arguments/102079)

<div class="topic-metadata">

**Author:** [@sard](https://www.ruby-forum.com/u/sard)\
**Replies:** 7\
**Last updated:** [August 15, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/method-arguments/102079 "2006-08-15T14:14:47Z")

</div>

Is there a way to refer to the arguments passed to a function, so I can avoid re-stating the argument inside it like the example below? puts “this is a test”\[4…“this is a test”.length\]

---

## [Ruby and Oracle 10g](https://www.ruby-forum.com/t/ruby-and-oracle-10g/64664)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/ruby-and-oracle-10g/64664 "2006-08-15T14:14:39Z")

</div>

Is it possible to use Ruby to connect to an oracle 10g db? The latest stable class seems to be Ruby/OCI8. Cheers Aidy

---

## [Hash key to var name of value hash key value](https://www.ruby-forum.com/t/hash-key-to-var-name-of-value-hash-key-value/64640)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/hash-key-to-var-name-of-value-hash-key-value/64640 "2006-08-15T14:14:19Z")

</div>

i’d like to now if their is a simpler way to do that : IN\_NEWS=@h\[‘IN\_NEWS’\] because here i do have to know their is a key of name “IN\_NEWS” want i want is to affet the value of all the @h\[‘key\_name’\] to the variable…

---

## [rBATIS - alternative ORM for Ruby / Rails (via Martin Fowler](https://www.ruby-forum.com/t/rbatis-alternative-orm-for-ruby-rails-via-martin-fowler/102321)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/rbatis-alternative-orm-for-ruby-rails-via-martin-fowler/102321 "2006-08-15T14:14:09Z")

</div>

Hi, Regarding this - \[ You need to read a bit down the para to reach the part about iBATIS and rBATIS - but read the entire (short) article, its worth reading, IMO. \] has anyone used rBATIS, and can share their …

---

## [Is it a better way to build?](https://www.ruby-forum.com/t/is-it-a-better-way-to-build/64665)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/is-it-a-better-way-to-build/64665 "2006-08-15T14:13:58Z")

</div>

Yesterday, as I beat myself with my old what-to-name-it-where-to-put-it stick :wink: I touched on idea loosely derived on the script/ dir “Railism”. So I tried it out just to see if it could work and indeed it does. T…

---

## [Codegolf - Writing a Brainf\*ck interpreter](https://www.ruby-forum.com/t/codegolf-writing-a-brainf-ck-interpreter/101780)

<div class="topic-metadata">

**Author:** [@fsommers](https://www.ruby-forum.com/u/fsommers)\
**Replies:** 13\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/codegolf-writing-a-brainf-ck-interpreter/101780 "2006-08-15T14:13:56Z")

</div>

Hi, I stumbled over this funny site called CodeGolf.com and tried my luck on one of their problems “Writing a Brainf\*ck” Interpreter (http://www.codegolf.com/competition/index/8). I have a working solution, but it is…

---

## [Proper Case (#89)](https://www.ruby-forum.com/t/proper-case-89/64662)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/proper-case-89/64662 "2006-08-15T14:13:54Z")

</div>

I’m sad no one but the quiz creator himself gave this problem a shot. This is a very real problem with all manner of source texts and fixing it is tricky. There was even a discussion on the mailing list about how you…

---

## [Adding MonitorMixin causes compile failure when initialize t](https://www.ruby-forum.com/t/adding-monitormixin-causes-compile-failure-when-initialize-t/64666)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/adding-monitormixin-causes-compile-failure-when-initialize-t/64666 "2006-08-15T14:13:49Z")

</div>

Hi, I am a relative newbie in Ruby and I need to do some simple thread based programs. In the new pickaxe book I saw this code for enabling a synchronized block using a MonitorMixin require ‘monitor’ class Counter …

---

## [Does ":" have an anolog in another language?](https://www.ruby-forum.com/t/does-have-an-anolog-in-another-language/100414)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 27\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/does-have-an-anolog-in-another-language/100414 "2006-08-15T14:13:27Z")

</div>

does the colon operator have an anolog in say, Java or C++ ? It seems to be a reference pointer. Am i mistaken in assuming this? Thanks, Ike

---

## [O'REILLY radar Q206](https://www.ruby-forum.com/t/oreilly-radar-q206/64646)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/oreilly-radar-q206/64646 "2006-08-15T14:13:24Z")

</div>

From Tims blog: A few high-level observations: C# book sales continues to gain on Java, with a 49% unit sales increase compared to Java’s 10% decrease. Ruby continues its momentum, and is the fastest-growing pro…

---

## [Net/telnet](https://www.ruby-forum.com/t/net-telnet/64649)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/net-telnet/64649 "2006-08-15T14:13:23Z")

</div>

Hi all: I was unable to start “su -” after open telnet conexion. I got: :-================ Timeout::Error ===================== C:\\ruby\\lib\\ruby\\1.8/net/telnet.rb:551:in waitfor' raise TimeoutError, "timed out while w…

---

## [Extending String call with a #copy!(n)](https://www.ruby-forum.com/t/extending-string-call-with-a-copy-n/64652)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [August 15, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/extending-string-call-with-a-copy-n/64652 "2006-08-15T14:13:11Z")

</div>

i’ve allready extendy String class by a #copy(n) like that : class String def copy(n) out="" (1…n).each {|i| out+=self} return out end end however i’d like to extend also String with a #copy!(n) (in place which …

---

## [Info on continuations / callcc?](https://www.ruby-forum.com/t/info-on-continuations-callcc/101902)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 8\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/info-on-continuations-callcc/101902 "2006-08-15T14:12:34Z")

</div>

Hi, I am Googling and will do more, found some stuff, but interested to get viewpoints of list members on: Continuations in Ruby / the callcc keyword. Saw a few URLs which had some info, some of which I understood. B…

---

## [Starting](https://www.ruby-forum.com/t/starting/64647)

<div class="topic-metadata">

**Author:** [@giuseppe](https://www.ruby-forum.com/u/giuseppe)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/starting/64647 "2006-08-15T14:12:22Z")

</div>

For start Ruby P.ming what I do? Book, software, tutorial… Is Ruby better language now? bye and thanks for your reply giuseppe

---

## [Application design advice](https://www.ruby-forum.com/t/application-design-advice/64560)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/application-design-advice/64560 "2006-08-15T14:12:21Z")

</div>

I’m using the Eventmachine framework and being fairly new to ruby am wondering about the best way to structure my code. Being an event based framework there is a lot of jumping around in the code from one callback to…

---

## [Why can't I alias\_method :remove\_method?](https://www.ruby-forum.com/t/why-cant-i-alias-method-remove-method/64641)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/why-cant-i-alias-method-remove-method/64641 "2006-08-15T14:12:16Z")

</div>

irb(main):001:0\> class Foo irb(main):002:1\> alias\_method :old\_remove\_method, :remove\_method irb(main):003:1\> end NameError: undefined method remove\_method' for classFoo’ from (irb):2:in \`alias\_method’ from (irb):2 B…

---

## [Irb Rake::Application#help messes up readline](https://www.ruby-forum.com/t/irb-rake-application-help-messes-up-readline/64648)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/irb-rake-application-help-messes-up-readline/64648 "2006-08-15T14:12:16Z")

</div>

Hi, config: ruby 1.8.4, irb 0.9.5 (with inputrc.euro env) First reproduce this: irb(main):001:0\> help “help” Output is OK. But now use up arrow to display last command (help “help”), then try to just delete the spac…

---

## [Irb output](https://www.ruby-forum.com/t/irb-output/64506)

<div class="topic-metadata">

**Author:** [@newyorkdolluk](https://www.ruby-forum.com/u/newyorkdolluk)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/irb-output/64506 "2006-08-15T14:12:14Z")

</div>

hi, i have a ruby/watir script that i evoke from irb containing the following lines: ie\_attach = Watir::IE.attach(:url, /text/) ie\_attach.show\_links this will attach to an open browser containing a webpage with ‘tex…

---

## [Emacs Semantic for Ruby?](https://www.ruby-forum.com/t/emacs-semantic-for-ruby/64534)

<div class="topic-metadata">

**Author:** [@llasram](https://www.ruby-forum.com/u/llasram)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/emacs-semantic-for-ruby/64534 "2006-08-15T14:12:13Z")

</div>

Hi, I was wondering if anyone here happened to be working on a Ruby parser for the Emacs “Semantic” package\[1\]. I’ve found a few relevant messages on this ML from 2002 and a few on the semantic ML from 2004, but not…

---

## [Allocator undefined for Bignum](https://www.ruby-forum.com/t/allocator-undefined-for-bignum/64636)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/allocator-undefined-for-bignum/64636 "2006-08-15T14:12:06Z")

</div>

in a yaml file i do have “Time.new.to\_i” and get the following error for those fields : TypeError: allocator undefined for Bignum method transfer in yaml.rb at line 133 method load in yaml.rb at line 133 at top le…

---

## [Proper Case (#89)](https://www.ruby-forum.com/t/proper-case-89/101363)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 27\
**Last updated:** [August 15, 2006, 2:12pm UTC](https://www.ruby-forum.com/t/proper-case-89/101363 "2006-08-15T14:12:03Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Does Ruby have a built-in SMS Class?](https://www.ruby-forum.com/t/does-ruby-have-a-built-in-sms-class/64514)

<div class="topic-metadata">

**Author:** [@trupti](https://www.ruby-forum.com/u/trupti)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:10pm UTC](https://www.ruby-forum.com/t/does-ruby-have-a-built-in-sms-class/64514 "2006-08-15T14:10:36Z")

</div>

Can we send SMS using a ruby script from a PC to a mobile?? Does Ruby have a built-in SMS class? I would appreciate if you could post some sample code or references for the same. Thanks

---

## [What am I missing with this closure example?](https://www.ruby-forum.com/t/what-am-i-missing-with-this-closure-example/54303)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:09pm UTC](https://www.ruby-forum.com/t/what-am-i-missing-with-this-closure-example/54303 "2006-08-15T14:09:57Z")

</div>

Hello! Since my last question about closure(http://groups.google.com/group/comp.lang.ruby/browse\_frm/thread/0d7e258107e1683e/12e182a6ff493232?hl=en#12e182a6ff493232) I am testing my understanding making some examples. …

---

## [GtkTrayICon](https://www.ruby-forum.com/t/gtktrayicon/102265)

<div class="topic-metadata">

**Author:** [@seatmanu](https://www.ruby-forum.com/u/seatmanu)\
**Replies:** 0\
**Last updated:** [August 14, 2006, 7:58am UTC](https://www.ruby-forum.com/t/gtktrayicon/102265 "2006-08-14T07:58:33Z")

</div>

CAn someone give me an example of GTKTrayIcon? I saw some people talking about it but cannot post to that forum it seems. http://www.ruby-forum.com/topic/76230 Thanks Manu

---

## [Stderr capture on Windows](https://www.ruby-forum.com/t/stderr-capture-on-windows/102234)

<div class="topic-metadata">

**Author:** [@sard](https://www.ruby-forum.com/u/sard)\
**Replies:** 5\
**Last updated:** [August 13, 2006, 10:09pm UTC](https://www.ruby-forum.com/t/stderr-capture-on-windows/102234 "2006-08-13T22:09:17Z")

</div>

Is it possible to capture stderr on Windows? Backtick seems to ignore it, and require “open3” stdin, stdout, stderr = Open3.popen3(‘dir’) gives me “the fork() function is unimplemented on this machine (NotImplement…

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

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