# Ruby

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

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

---

## [ANN: Sequel 0.2.1 Released](https://www.ruby-forum.com/t/ann-sequel-0-2-1-released/115477)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-2-1-released/115477 "2007-09-25T17:43:59Z")

</div>

Sequel version 0.2.1 has just been released. This release includes a number of major improvements, as well as many bug fixes. Sequel is a lightweight ORM library for Ruby. Sequel provides thread safety, connection poo…

---

## [Parsing through XML with REXML/XPath](https://www.ruby-forum.com/t/parsing-through-xml-with-rexml-xpath/115463)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/parsing-through-xml-with-rexml-xpath/115463 "2007-09-25T17:36:54Z")

</div>

Hi, I need to sort groups of xml data based on the first instances of particular elements down deep in the element structure of documents. regs = \[\] regs = XPath.match(doc, “//registration”) regs.each do |reg| code…

---

## [Sorting IP Addresses](https://www.ruby-forum.com/t/sorting-ip-addresses/115416)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/sorting-ip-addresses/115416 "2007-09-25T16:55:49Z")

</div>

I’m having to sort some IP addresses that are stored in a hash. I came up with the code below to accomplish the task. I have two questions: What if any is a better way to have done this? Given that the hash has to …

---

## [Serve 0.9.0 Released](https://www.ruby-forum.com/t/serve-0-9-0-released/115431)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/serve-0-9-0-released/115431 "2007-09-25T16:47:48Z")

</div>

Serve version 0.9.0 has been released! http://serve.rubyforge.org == What is Serve? Serve is a small Ruby script that makes it easy to start a WEBrick server in any directory. Serve is ideal for HTML prototyping and …

---

## [Midi scheduler in ruby](https://www.ruby-forum.com/t/midi-scheduler-in-ruby/115465)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/midi-scheduler-in-ruby/115465 "2007-09-25T16:45:48Z")

</div>

I am writing ruby wrappers around rtMidi (The RtMidi Tutorial) and need to trigger “note off”. This is the api I wish to implement: @midiout = RtMidi.new(‘port name’) note = 62 velocity = 100 duration = 0.25 …

---

## [Create a class in a class with eval](https://www.ruby-forum.com/t/create-a-class-in-a-class-with-eval/115455)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 4:18pm UTC](https://www.ruby-forum.com/t/create-a-class-in-a-class-with-eval/115455 "2007-09-25T16:18:41Z")

</div>

I need to eval code that will create globally available classes. I tried this : class Test def makeA Module.send(:eval, “class A; end”) # same with: eval “class A; end” puts Test.const\_get(‘A’) # =\> Test::A puts M…

---

## [Can anybody tell me please!](https://www.ruby-forum.com/t/can-anybody-tell-me-please/115432)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/can-anybody-tell-me-please/115432 "2007-09-25T15:14:31Z")

</div>

I have read about Exceptions. While reading all the error,I have faced lot of problems. here I have listed out the more errors. I want to know the uses of all errors. anyone ,who knows very well in exceptions,that pe…

---

## [Erubis 2.4.1 released - a fast and extensible eRuby implemen](https://www.ruby-forum.com/t/erubis-2-4-1-released-a-fast-and-extensible-eruby-implemen/115413)

<div class="topic-metadata">

**Author:** [@kwatch](https://www.ruby-forum.com/u/kwatch)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/erubis-2-4-1-released-a-fast-and-extensible-eruby-implemen/115413 "2007-09-25T14:31:24Z")

</div>

Hi all, I have released Erubis 2.4.1. http://www.kuwata-lab.com/erubis/ Erubis is another eRuby implementation which is very fast and extensible than ERB and eruby. This is a bugfix release. enhancements: - | Ad…

---

## [Exception \`ArgumentError' at (null):0 - NULL pointer given](https://www.ruby-forum.com/t/exception-argumenterror-at-null-0-null-pointer-given/115385)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/exception-argumenterror-at-null-0-null-pointer-given/115385 "2007-09-25T14:16:21Z")

</div>

e$B0J2\<$r\<B9T$7$Fe(B ^C e$B$G3d$j9~$\`$H!"e(BNULL pointer given e$B$H$+2x$7e(B e$B$2$J%a%C%;!\<%8$,=P$^$9!#e(B % ./ruby -de ‘set\_trace\_func(proc {}); sleep’ ^CException Interrupt' at -e:1 - ExceptionArgumentError’ at (…

---

## [Pervasives-1.1.0](https://www.ruby-forum.com/t/pervasives-1-1-0/115425)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 11:35am UTC](https://www.ruby-forum.com/t/pervasives-1-1-0/115425 "2007-09-25T11:35:42Z")

</div>

NAME pervasives.rb SYNOPSIS access to pristine object state. if you don’t metaprogram or write debuggers you probably don’t need it. INSTALL gem install pervasives URIS http://rubyforge.org/projects/codeforpeopl…

---

## [Precedence of \*\*](https://www.ruby-forum.com/t/precedence-of/115441)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 11:18am UTC](https://www.ruby-forum.com/t/precedence-of/115441 "2007-09-25T11:18:40Z")

</div>

I recently discovered that the precedence of \*\* seems to be at variance with the documentation. All tables of precedence for Ruby that I have found (including in the pickaxe) have listed \*\* as just above that of the f…

---

## [Net::SSH expect like interface](https://www.ruby-forum.com/t/net-ssh-expect-like-interface/92984)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:12am UTC](https://www.ruby-forum.com/t/net-ssh-expect-like-interface/92984 "2007-09-25T11:12:39Z")

</div>

Hi All, I have been looking for expect like interface for Net::SSH lib, but apparently there is none. Net::SSH is working fine for me except one place I need to check the scp command prompt and send the password. (In…

---

## [Question about 2005 Ruby critique](https://www.ruby-forum.com/t/question-about-2005-ruby-critique/115408)

<div class="topic-metadata">

**Author:** [@barcaroller](https://www.ruby-forum.com/u/barcaroller)\
**Replies:** 9\
**Last updated:** [September 25, 2007, 9:45am UTC](https://www.ruby-forum.com/t/question-about-2005-ruby-critique/115408 "2007-09-25T09:45:31Z")

</div>

I come from a C/C++/Perl background and I have been reading up on Ruby for a while (no hands-on experience yet, except for a few tutorials). Most of the stuff sounds/looks very positive but I recently found this cri…

---

## [Singapore.rb meeting for Sept 2007](https://www.ruby-forum.com/t/singapore-rb-meeting-for-sept-2007/115430)

<div class="topic-metadata">

**Author:** [@Douglas\_T](https://www.ruby-forum.com/u/Douglas_T)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 8:20am UTC](https://www.ruby-forum.com/t/singapore-rb-meeting-for-sept-2007/115430 "2007-09-25T08:20:20Z")

</div>

Hi folks, Please take note of the details for the next singapore.rb meeting in Sept 2007. It will be held on the 27th of Sept with meeting facilities generously provided by Bezurk.com Seating is limited to 25 people,…

---

## [Problem on compiling ruby in windows](https://www.ruby-forum.com/t/problem-on-compiling-ruby-in-windows/115420)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 7:19am UTC](https://www.ruby-forum.com/t/problem-on-compiling-ruby-in-windows/115420 "2007-09-25T07:19:15Z")

</div>

Hi, I am using the ruby one click installer all the while. Recently, I tried to compile the latest ruby 1.8.6-p110 and I found it is quite painful to compile it in windows. I am able to compile it with VS2003. I can …

---

## [CplusRuby - Gluing C and Ruby](https://www.ruby-forum.com/t/cplusruby-gluing-c-and-ruby/115220)

<div class="topic-metadata">

**Author:** [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Replies:** 21\
**Last updated:** [September 25, 2007, 6:01am UTC](https://www.ruby-forum.com/t/cplusruby-gluing-c-and-ruby/115220 "2007-09-25T06:01:10Z")

</div>

Hi all, I am proud to announce my latest project called CplusRuby. Below I pasted it’s README for further explanation. Alternatively read the following blog article: http://www.ntecs.de/blog/articles/2007/09/21/cplus…

---

## [Optimize T\_OBJECT space](https://www.ruby-forum.com/t/optimize-t-object-space/246513)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 5:48am UTC](https://www.ruby-forum.com/t/optimize-t-object-space/246513 "2007-09-25T05:48:06Z")

</div>

T\_OBJECT e$B$J%$%s%9%?%s%9$G!"%$%s%9%?%s%9JQ?t$NL\>A0$r%/%i%9B&e(B e$B$K;}$?$;$F\>CHq%a%b%j$r:o8:$9$k$N$O$I$&$G$7$g$&$+!#e(B e$B$D$^$j!"%$%s%9%?%s%9$K$O%$%s%9%?%s%9JQ?t$NCM$@$1$rJ\];}$9$kG\[e(B e$BNs$rMQ0U$7!"%/%i%9$K%$%s…

---

## [TCPSocket.new 'Bad file descriptor'](https://www.ruby-forum.com/t/tcpsocket-new-bad-file-descriptor/89365)

<div class="topic-metadata">

**Author:** [@sean\_nakasone](https://www.ruby-forum.com/u/sean_nakasone)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 3:34am UTC](https://www.ruby-forum.com/t/tcpsocket-new-bad-file-descriptor/89365 "2007-09-25T03:34:15Z")

</div>

Here’s my very simple script to open a tcp port and write to it. require ‘socket’ s=TCPSocket.new(“173.30.6.16”, 9990) s.write(“Hello\\n”) s.close The TCPSocket.new returns with: cli.rb:3:in initialize': Bad file de…

---

## [My code hangs](https://www.ruby-forum.com/t/my-code-hangs/115391)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 2:39am UTC](https://www.ruby-forum.com/t/my-code-hangs/115391 "2007-09-25T02:39:50Z")

</div>

it DID (kind of) work and even exit, but only after going through one log, rather than appending ALL of them, formatted, into a file like I wanted, so I added line 13, and a corresponding end at the bottom. …

---

## ['gem update --system' runnaways? requires more than 120mb me](https://www.ruby-forum.com/t/gem-update-system-runnaways-requires-more-than-120mb-me/115287)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 2:06am UTC](https://www.ruby-forum.com/t/gem-update-system-runnaways-requires-more-than-120mb-me/115287 "2007-09-25T02:06:48Z")

</div>

Is there a good/bad reason ‘gem update --system’ would gobble up all available memory then halt with message ‘killed’ to the console? (122072k free). ATB, MarkT

---

## [My toolbox, thus far](https://www.ruby-forum.com/t/my-toolbox-thus-far/115320)

<div class="topic-metadata">

**Author:** [@sabotage](https://www.ruby-forum.com/u/sabotage)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 1:39am UTC](https://www.ruby-forum.com/t/my-toolbox-thus-far/115320 "2007-09-25T01:39:46Z")

</div>

Ruby FXRuby FOX foxGUIb RDE It would seem that I’ve pretty much got everything necessary to get cracking… BUT, I found this: http://arton.hp.infoseek.co.jp/index.html Is this something that might be a good idea f…

---

## ["myscript.rb " - there's a blank in my name!](https://www.ruby-forum.com/t/myscript-rb-theres-a-blank-in-my-name/115347)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 12\
**Last updated:** [September 24, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/myscript-rb-theres-a-blank-in-my-name/115347 "2007-09-24T23:50:39Z")

</div>

On a Mac - Tiger 10.4.10. I wrote a ruby script in TextWrangler (2.2.1) and saved it. I inadvertently hit the space bar after the “.rb” and saved it. Then, not realizing a blank got added to the name, I attempted to…

---

## [Getting XPath in REXML to dive deeper](https://www.ruby-forum.com/t/getting-xpath-in-rexml-to-dive-deeper/115394)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 3\
**Last updated:** [September 24, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/getting-xpath-in-rexml-to-dive-deeper/115394 "2007-09-24T22:00:59Z")

</div>

Hello, I’m finally using REXML instead of plain vanilla Ruby to convert XML data. I’ve learned a bit about XPath and how REXML can use it. I’ve got a sample XML file whose root element is . Underneath that element ar…

---

## [Emacs, Ruby, and Fode Colding :)](https://www.ruby-forum.com/t/emacs-ruby-and-fode-colding/115042)

<div class="topic-metadata">

**Author:** [@Samantha](https://www.ruby-forum.com/u/Samantha)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/emacs-ruby-and-fode-colding/115042 "2007-09-24T21:38:23Z")

</div>

Long time no see, oh Ruby T. list. I have a question to any of you out there who are emacs users. (And yes, this is after searching the web for 2+ days AND archives of mailing lists/newsgroups) Does anyone out the…

---

## [IRB is dying on me](https://www.ruby-forum.com/t/irb-is-dying-on-me/115378)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/irb-is-dying-on-me/115378 "2007-09-24T21:17:21Z")

</div>

Why is it that I can’t repeat lines and edit them in IRB? If I press my cursor up key, normally, that repeats the line I just entered. Then, I can backspace and modify any part of that line I want before executing it.…

---

## [Calling Exec() in Windows versus UNIX](https://www.ruby-forum.com/t/calling-exec-in-windows-versus-unix/115390)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/calling-exec-in-windows-versus-unix/115390 "2007-09-24T20:48:34Z")

</div>

I have the following line in a small app: exec(“charting/RequestByProject.jar”,params\[:name\]’) When run in a UNIX environment it works fine. However, moving it over to Windows and trying to run: exec(“charting\\Reques…

---

## [Literal quote in an array?](https://www.ruby-forum.com/t/literal-quote-in-an-array/115384)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 7\
**Last updated:** [September 24, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/literal-quote-in-an-array/115384 "2007-09-24T20:46:15Z")

</div>

using colons for now, but would like to somehow encapsulate a sentence in this way (basically), with quotes. speaker = \["joe ", "betty "\] expression = \["said: ", "replied: ", "stated: "\] content = \[“hello.”, “bye.”\] …

---

## [Plugin like a Youtube](https://www.ruby-forum.com/t/plugin-like-a-youtube/115368)

<div class="topic-metadata">

**Author:** [@GermSSSSn\_alberto\_G](https://www.ruby-forum.com/u/GermSSSSn_alberto_G)\
**Replies:** 10\
**Last updated:** [September 24, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/plugin-like-a-youtube/115368 "2007-09-24T17:59:49Z")

</div>

Hello, something know some plugin like a youtube? Plugin for Rails. Funciontinality is upload Video, Audio and show inside web aplicattion. thanks

---

## [SEGV by attr](https://www.ruby-forum.com/t/segv-by-attr/115261)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/segv-by-attr/115261 "2007-09-24T17:52:48Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % limit stacksize 1m % ./ruby -ve ’ class C attr “a” \* 2000000 end ’ ruby 1.9.0 (2007-09-22 patchlevel 0) \[i686-linux\] zsh: segmentation fault (core dumped) ./ruby -v…

---

## [Oci8 oracle rowid](https://www.ruby-forum.com/t/oci8-oracle-rowid/115370)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/oci8-oracle-rowid/115370 "2007-09-24T15:48:45Z")

</div>

Whenever I try to read a rowid from an Oracle table, I get: TypeError: not valid handle type Class The OCI documentation says rowid is supported, and that the documentation on it is yet to be written. Anyone know how…

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

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