# Ruby

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

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

---

## [MatchData matchset and matchtree](https://www.ruby-forum.com/t/matchdata-matchset-and-matchtree/92076)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/matchdata-matchset-and-matchtree/92076 "2007-04-19T18:50:25Z")

</div>

I think someone asked about/suggested something like this recently. I think these two methods would make a pretty good addition to the core library. class MatchData Returns \[ pre\_match, matchtree, post\_match \]. (see …

---

## [Can't subclass XML::Document?](https://www.ruby-forum.com/t/cant-subclass-xml-document/92444)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/cant-subclass-xml-document/92444 "2007-04-19T17:55:17Z")

</div>

I’m working with libxml and I can’t seem to define a subclass of XML::Document. For example, require ‘libxml’ class SubDocument \< XML::Document def initialize(name) super @sub\_name = name end def sub\_method puts…

---

## [Executing program from ruby](https://www.ruby-forum.com/t/executing-program-from-ruby/92443)

<div class="topic-metadata">

**Author:** [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Replies:** 5\
**Last updated:** [April 19, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/executing-program-from-ruby/92443 "2007-04-19T17:05:12Z")

</div>

Hello i know there are several ways to execute from within ruby but each one have their own problems: \`\` doesn’t check if command /programm runs at all!, also it blocks untill command returns, no bi-directional comun…

---

## [How to generate docs with rake docs?](https://www.ruby-forum.com/t/how-to-generate-docs-with-rake-docs/92452)

<div class="topic-metadata">

**Author:** [@StSSSSphane\_Wirtel](https://www.ruby-forum.com/u/StSSSSphane_Wirtel)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/how-to-generate-docs-with-rake-docs/92452 "2007-04-19T16:52:09Z")

</div>

Hi all, I would like to generate the documentation of my gem, the script to generate the skeleton is ‘newgem’ from Dr Nic ( thanks to him ). But I don’t understand why I can’t generate it because rake does not find ‘…

---

## [Effective profiling](https://www.ruby-forum.com/t/effective-profiling/92411)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/effective-profiling/92411 "2007-04-19T16:38:06Z")

</div>

I have a friend who’s run into some profiling problems. He set up a profiler on a Rails app, maybe the default benchmarking stuff Rails comes with, I’m not sure. Unit tests run 60s normally, and come in at an hour and…

---

## [How to count a word in a line](https://www.ruby-forum.com/t/how-to-count-a-word-in-a-line/92445)

<div class="topic-metadata">

**Author:** [@yusufcelik](https://www.ruby-forum.com/u/yusufcelik)\
**Replies:** 4\
**Last updated:** [April 19, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/how-to-count-a-word-in-a-line/92445 "2007-04-19T16:34:37Z")

</div>

Hi, I wonder if there is a way of counting a word in a line using ruby regexp. Such as how many “Hi”'s in a line. Let’s say when I enter a line “Hello and Hi there hey hear my Hi” It should give me 2, because ther…

---

## [Slow Computers and Developer (oops... the link was missing)](https://www.ruby-forum.com/t/slow-computers-and-developer-oops-the-link-was-missing/91955)

<div class="topic-metadata">

**Author:** [@Behrang\_S](https://www.ruby-forum.com/u/Behrang_S)\
**Replies:** 4\
**Last updated:** [April 19, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/slow-computers-and-developer-oops-the-link-was-missing/91955 "2007-04-19T15:51:56Z")

</div>

Hi, I have created a survey titled “Slow Computers and Developer Productivity” with the aim of finding the possible effects of slow computer performance on developer productivity, behavior, and ROI for companies. It …

---

## [Turning off verify\_mode for SSL](https://www.ruby-forum.com/t/turning-off-verify-mode-for-ssl/92420)

<div class="topic-metadata">

**Author:** [@Robert\_MannI](https://www.ruby-forum.com/u/Robert_MannI)\
**Replies:** 3\
**Last updated:** [April 19, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/turning-off-verify-mode-for-ssl/92420 "2007-04-19T15:44:56Z")

</div>

Hi! In my rails tests, I get the warnings: warning: peer certificate won’t be verified in this SSL session I found this on the ruby list: Hi, I’ve got a little Ruby script that needs to use SSL but doesn’t really …

---

## [Locales in Mac OS](https://www.ruby-forum.com/t/locales-in-mac-os/92437)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/locales-in-mac-os/92437 "2007-04-19T14:49:15Z")

</div>

Hi, I adquired some day ago one Macbook Pro. I installed Rails succefully, but now when I try to execute one project I get the next error: macos:~/Proyectos/locambias vigosan$ rake db:migrate (in /Users/vigosan/Proye…

---

## [Magic Fingers (#120)](https://www.ruby-forum.com/t/magic-fingers-120/92435)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/magic-fingers-120/92435 "2007-04-19T14:08:30Z")

</div>

Eric I. said it best when he said the real trick of this quiz is figuring out a way to convince someone of the outcome beyond the shadow of a doubt. Eric’s own code convinced me, after we clarified my mistakes in the…

---

## [Machine learning in Ruby?](https://www.ruby-forum.com/t/machine-learning-in-ruby/92331)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/machine-learning-in-ruby/92331 "2007-04-19T13:26:07Z")

</div>

Hi there, I would like to implement a few things in scRUBYt! for which I would need some machine learning tools (like Java’s weka or similar). Any chance there is something like this (I need stuff like classificators, …

---

## [\[BUG?\] XPath $B$rMxMQ$7$?%N!\<%IC5:w$,\<:GT$9$k(B](https://www.ruby-forum.com/t/bug-xpath-b-rmxmq-7-n-ic5-w-gt-9-k-b/92430)

<div class="topic-metadata">

**Author:** [@Hirofumi\_HONDA](https://www.ruby-forum.com/u/Hirofumi_HONDA)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/bug-xpath-b-rmxmq-7-n-ic5-w-gt-9-k-b/92430 "2007-04-19T13:23:07Z")

</div>

e$B$O$8$a$^$7$F!#e(B e$B$\[$s$@$H?=$7$^$9!#e(B REXML e$B$N%P%0$i$7$-$b$N$rH/8+$7$?$N$GJs9p$7$^$9!#e(B ruby 1.8.6 e$B$G0J2\<$N%3!\<%I$r\<B9T$9$k$H!"e(B namespace e$B$,@\_Dj$5$l$F$$$ke(B xml e$B$Ge(B e$B%N!\<%IC5:w$,\<:GT$7$…

---

## [YAML symbols](https://www.ruby-forum.com/t/yaml-symbols/92410)

<div class="topic-metadata">

**Author:** [@braver](https://www.ruby-forum.com/u/braver)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/yaml-symbols/92410 "2007-04-19T13:22:06Z")

</div>

YAML writes out Ruby symbols as !ruby/sym, e.g. :name =\> ‘John’ becomes !ruby/sym name: John I write out megabytes of data, so I played with replacing !ruby/sym with a simple colon: :name: John – and it gets loaded…

---

## [To\_s mixin/reflection/newbie stuff](https://www.ruby-forum.com/t/to-s-mixin-reflection-newbie-stuff/92358)

<div class="topic-metadata">

**Author:** [@khelenek](https://www.ruby-forum.com/u/khelenek)\
**Replies:** 9\
**Last updated:** [April 19, 2007, 1:19pm UTC](https://www.ruby-forum.com/t/to-s-mixin-reflection-newbie-stuff/92358 "2007-04-19T13:19:49Z")

</div>

I’m very new to ruby, coming from a long j2ee background. I hope these questions make sense and aren’t covered elsewhere (i looked, really.) I’m creating a project in rails and i have several model objects that I want…

---

## [Non exclusive file access](https://www.ruby-forum.com/t/non-exclusive-file-access/92422)

<div class="topic-metadata">

**Author:** [@bino\_oetomo](https://www.ruby-forum.com/u/bino_oetomo)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/non-exclusive-file-access/92422 "2007-04-19T12:51:02Z")

</div>

Dear All. I’m trying to play with LCD4Linux There is fascility from LCD4Linux that let it to read to a file, and refresh the LCD with the content of file being read. For a dirty trial , I use a Curse driver for LCD4…

---

## [Getting a ruby on rails web application](https://www.ruby-forum.com/t/getting-a-ruby-on-rails-web-application/92421)

<div class="topic-metadata">

**Author:** [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 11:53am UTC](https://www.ruby-forum.com/t/getting-a-ruby-on-rails-web-application/92421 "2007-04-19T11:53:48Z")

</div>

Hello I am working on testing ruby on rails web applications in my thesis. Is there a way to get the code of a ruby on rails web application containing faults to try my testing approach on thank you

---

## [Can not convert array to string: problem of a newbie](https://www.ruby-forum.com/t/can-not-convert-array-to-string-problem-of-a-newbie/92417)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 11:37am UTC](https://www.ruby-forum.com/t/can-not-convert-array-to-string-problem-of-a-newbie/92417 "2007-04-19T11:37:46Z")

</div>

hi guys, def fil\_string sql = ActiveRecord::Base.connection() filter\_string=’ ’ sql.begin\_db\_transaction column\_ids = sql.execute(“SELECT columnid FROM output\_columns”) column\_ids.each do |column\_id| filter\_string…

---

## [New](https://www.ruby-forum.com/t/new/92273)

<div class="topic-metadata">

**Author:** [@poison\_tooth](https://www.ruby-forum.com/u/poison_tooth)\
**Replies:** 16\
**Last updated:** [April 19, 2007, 10:04am UTC](https://www.ruby-forum.com/t/new/92273 "2007-04-19T10:04:08Z")

</div>

Im just learning ruby and im stuck the guide im using says "Your first program Congratulations! Now that you have made it this far, you are ready to start writing programs. Hello World Grab a text editor and type in…

---

## [Recursive method not working](https://www.ruby-forum.com/t/recursive-method-not-working/92362)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 5\
**Last updated:** [April 19, 2007, 9:15am UTC](https://www.ruby-forum.com/t/recursive-method-not-working/92362 "2007-04-19T09:15:55Z")

</div>

Hi, I’m trying to display a hierarchical tree but there’s something wrong with the method below. The result var is ‘lost’ between the calls - I mean, each “#{result}” contains the right value at the end of the method …

---

## [Ruby SOAP WSDL client call not working?](https://www.ruby-forum.com/t/ruby-soap-wsdl-client-call-not-working/92371)

<div class="topic-metadata">

**Author:** [@Moazam\_Raja](https://www.ruby-forum.com/u/Moazam_Raja)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 7:19am UTC](https://www.ruby-forum.com/t/ruby-soap-wsdl-client-call-not-working/92371 "2007-04-19T07:19:37Z")

</div>

Hi all, I am testing out SOAP/WSDL interaction between Ruby and a webservice written in Java. I am able to test the Java webservice via a Java client and get a proper response back, but for whatever reason when I use…

---

## [Why does this code deadlock?](https://www.ruby-forum.com/t/why-does-this-code-deadlock/92302)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 10\
**Last updated:** [April 19, 2007, 6:20am UTC](https://www.ruby-forum.com/t/why-does-this-code-deadlock/92302 "2007-04-19T06:20:32Z")

</div>

Hi, I’m getting a deadlock on this small program, on both Windows and Linux: require 'net/ftp' Thread.abort\_on\_exception = true ftp = Net::FTP.new('ftp.idsoftware.com') p( Thread.new {$SAFE=4; ftp.login('anonymous', '…

---

## [Ruby 1.8.6 errors](https://www.ruby-forum.com/t/ruby-1-8-6-errors/92185)

<div class="topic-metadata">

**Author:** [@mehdi](https://www.ruby-forum.com/u/mehdi)\
**Replies:** 5\
**Last updated:** [April 19, 2007, 5:51am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-errors/92185 "2007-04-19T05:51:31Z")

</div>

I am trying to compile ruby 1.8.6 on AIX 5.3 TL 6 and gmake gives the following error gmake: \*\*\* No rule to make target flock/usr/WebSphere/AppServer.o', needed bylibruby-static.a’. Stop. Itreied using both gcc and va…

---

## [Magic Fingers (#120)](https://www.ruby-forum.com/t/magic-fingers-120/91921)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 13\
**Last updated:** [April 19, 2007, 4:25am UTC](https://www.ruby-forum.com/t/magic-fingers-120/91921 "2007-04-19T04:25:26Z")

</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: …

---

## [Scapy in Ruby: Scruby](https://www.ruby-forum.com/t/scapy-in-ruby-scruby/92390)

<div class="topic-metadata">

**Author:** [@Sylvain\_SARMEJEANNE](https://www.ruby-forum.com/u/Sylvain_SARMEJEANNE)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/scapy-in-ruby-scruby/92390 "2007-04-18T23:26:08Z")

</div>

Hi I developed Scruby, which is a clone of Philippe Biondi’s Scaperl written in Ruby. This is just of proof of concept of a minimal, portable, generic, efficient implementation of Scapy concepts with readable, commen…

---

## [Linux Format #89](https://www.ruby-forum.com/t/linux-format-89/92389)

<div class="topic-metadata">

**Author:** [@Sander\_Jansen](https://www.ruby-forum.com/u/Sander_Jansen)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/linux-format-89/92389 "2007-04-18T23:21:07Z")

</div>

Does anyone have Linux Format #89 laying around? I’m curious to know what they wrote about Goggles (which I wrote) in the Hotpicks section. http://www.linuxformat.co.uk/modules.php?op=modload&name=NewArchives&issue=89 …

---

## [Ruby crashes on windows across three versions](https://www.ruby-forum.com/t/ruby-crashes-on-windows-across-three-versions/92381)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 5\
**Last updated:** [April 18, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/ruby-crashes-on-windows-across-three-versions/92381 "2007-04-18T22:46:04Z")

</div>

I’m working on some scripts for work to manage some build releases, and I’m using ruby and the p4ruby libraries on Windows XP. When I run my script from the command line or by loading it into IRB, I get: ./SourceCo…

---

## [Hpricot getting a table](https://www.ruby-forum.com/t/hpricot-getting-a-table/92357)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 18, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/hpricot-getting-a-table/92357 "2007-04-18T22:00:58Z")

</div>

I am currently trying to scrape some data from the following web page I am using some hpricot code that looks like this @doc = Hpricot(open(strLink)) @doc.search("/html/body/table\[5\]/tr/td\[2\]/div\[3\]/table/tr/td/div\[1\]…

---

## [Image\_science 1.1.2 Released](https://www.ruby-forum.com/t/image-science-1-1-2-released/92378)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/image-science-1-1-2-released/92378 "2007-04-18T21:28:54Z")

</div>

image\_science version 1.1.2 has been released! http://seattlerb.rubyforge.org/ImageScience.html ImageScience is a clean and happy Ruby library that generates thumbnails – and kicks the living crap out of RMagick. Oh, …

---

## [Bug in Float? (was: NaN Error)](https://www.ruby-forum.com/t/bug-in-float-was-nan-error/92287)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 5\
**Last updated:** [April 18, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/bug-in-float-was-nan-error/92287 "2007-04-18T16:57:54Z")

</div>

I ran across some peculiar behavior yesterday when working with large floating point values. Here is a small script that demonstrates the behavior. My question is, is this the expected behavior or is this a bug in Flo…

---

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

<div class="topic-metadata">

**Author:** [@Colin\_Woods](https://www.ruby-forum.com/u/Colin_Woods)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/no-subject/92350 "2007-04-18T16:41:51Z")

</div>

unsubscribe

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

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