# Ruby

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

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

---

## [Rb\_iterate](https://www.ruby-forum.com/t/rb-iterate/78654)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 2\
**Last updated:** [December 7, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/rb-iterate/78654 "2006-12-07T17:45:48Z")

</div>

If anyone out there has used the “rb\_iterate” function in a Ruby C extension, could you please post a simple explanation of (a) how to use the function and (b) an explanation of the method signature? From eval.c … VA…

---

## [Catching X raise events with FXRuby](https://www.ruby-forum.com/t/catching-x-raise-events-with-fxruby/78660)

<div class="topic-metadata">

**Author:** [@giom](https://www.ruby-forum.com/u/giom)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/catching-x-raise-events-with-fxruby/78660 "2006-12-07T17:29:42Z")

</div>

My application is using gnuplot as a sub-process. I would like the window of my application to always stay on top of the gnuplot graph window. How can I do this with FXRuby? Can I catch the raise X events? Guillaume.

---

## [REXML/RSS parse error](https://www.ruby-forum.com/t/rexml-rss-parse-error/78627)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 4\
**Last updated:** [December 7, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/rexml-rss-parse-error/78627 "2006-12-07T16:35:19Z")

</div>

Hello, I have a problem while parsing an RSS file. I try to open a URL via open-uri and it usually works fine, but with the RSS URLs from ccMixter I get a parse error. It’s a bit strange because if i download the file …

---

## [: partitioning an array](https://www.ruby-forum.com/t/partitioning-an-array/78598)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 9\
**Last updated:** [December 7, 2006, 3:45pm UTC](https://www.ruby-forum.com/t/partitioning-an-array/78598 "2006-12-07T15:45:01Z")

</div>

Take an array of objects and partition it into subarrays, based on some arbitrary property of the objects. I would use this for example for generating a report of purchase orders and grouped by week, month, year, appr…

---

## [Tk::ScrollFrame fails on windows](https://www.ruby-forum.com/t/tk-scrollframe-fails-on-windows/78432)

<div class="topic-metadata">

**Author:** [@Forrest\_C](https://www.ruby-forum.com/u/Forrest_C)\
**Replies:** 1\
**Last updated:** [December 7, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/tk-scrollframe-fails-on-windows/78432 "2006-12-07T15:28:59Z")

</div>

Hi All: Wondering if anyone has seen this? The scrollframe.rb sample file exits on windows when I use the horizontal scrollbar, though seems to work fine on X. I’ve tried it with Windows native 1.8.4 Cygwin ruby 1…

---

## [\#help in reading from csv file](https://www.ruby-forum.com/t/help-in-reading-from-csv-file/78604)

<div class="topic-metadata">

**Author:** [@sampurna](https://www.ruby-forum.com/u/sampurna)\
**Replies:** 2\
**Last updated:** [December 7, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/help-in-reading-from-csv-file/78604 "2006-12-07T15:26:58Z")

</div>

Hi Friends, Here I am trying to read from a cvs file my code is like this require ‘nebo’ # my ruby library where the function create\_product is defined product=CSV.open(‘createproduct.csv’,‘r’) #reading data fr…

---

## [Installing shared object library into non-standard directory](https://www.ruby-forum.com/t/installing-shared-object-library-into-non-standard-directory/78560)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 3\
**Last updated:** [December 7, 2006, 2:00pm UTC](https://www.ruby-forum.com/t/installing-shared-object-library-into-non-standard-directory/78560 "2006-12-07T14:00:41Z")

</div>

Hi, I have ruby-gnome2 installed into a subdirectory of my application. ruby-gnome2 has a library in it called glib2.so. I’ve added the appropriate directories to $LOAD\_PATH. However, when I try to require some of t…

---

## [How to unpack unusual binary structure?](https://www.ruby-forum.com/t/how-to-unpack-unusual-binary-structure/78622)

<div class="topic-metadata">

**Author:** [@leopardus](https://www.ruby-forum.com/u/leopardus)\
**Replies:** 3\
**Last updated:** [December 7, 2006, 1:37pm UTC](https://www.ruby-forum.com/t/how-to-unpack-unusual-binary-structure/78622 "2006-12-07T13:37:44Z")

</div>

Hello everyone I try to read binary file and it has section in following format: (I suspect this comes from .h file) … then the bars array (one-byte justification) follows pragma pack(push,1) //---- Standard repres…

---

## [String#crypt first 8 characters](https://www.ruby-forum.com/t/string-crypt-first-8-characters/78388)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 4\
**Last updated:** [December 7, 2006, 11:50am UTC](https://www.ruby-forum.com/t/string-crypt-first-8-characters/78388 "2006-12-07T11:50:22Z")

</div>

Hello, i had a problem with str.crypt - i got every time the same result. The problem is, that this method only use the first 8 characters of the string: irb(main):022:0\> “1234567”.crypt(‘aa’) =\> “aaOK9MRbwVNmQ” ir…

---

## [Using Relax NG as a grammar](https://www.ruby-forum.com/t/using-relax-ng-as-a-grammar/78402)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 9\
**Last updated:** [December 7, 2006, 9:55am UTC](https://www.ruby-forum.com/t/using-relax-ng-as-a-grammar/78402 "2006-12-07T09:55:52Z")

</div>

Random thought of the day… I was reading over Tim B.'s blog \[1\] regarding Relax NG and looking over an example of it from wikipedia \[2\] and I thought to myself, “Self, couldn’t you use this for a language specificatio…

---

## ["--directory" patch](https://www.ruby-forum.com/t/directory-patch/78613)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 9:07am UTC](https://www.ruby-forum.com/t/directory-patch/78613 "2006-12-07T09:07:46Z")

</div>

Hi all, I prepared a patch for lib/rake.rb in order to include a new option in rake: the ‘–directory’ option (’-D’ for short). The ‘-D’ option in rake is like the ‘-C’ option in make: -C DIRECTORY, --directory=DIRECT…

---

## [Using Ruby Web Service from a C# .NET Client](https://www.ruby-forum.com/t/using-ruby-web-service-from-a-c-net-client/78578)

<div class="topic-metadata">

**Author:** [@ParappaYo](https://www.ruby-forum.com/u/ParappaYo)\
**Replies:** 3\
**Last updated:** [December 7, 2006, 8:45am UTC](https://www.ruby-forum.com/t/using-ruby-web-service-from-a-c-net-client/78578 "2006-12-07T08:45:44Z")

</div>

I’m trying to set up a sample project of a Ruby web service consumed by a C# .NET client. I know that lots of people have managed to use an ASP .NET service from a Ruby client, but I am trying to do it the other way …

---

## [Puts overwrite line](https://www.ruby-forum.com/t/puts-overwrite-line/78611)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 3\
**Last updated:** [December 7, 2006, 8:36am UTC](https://www.ruby-forum.com/t/puts-overwrite-line/78611 "2006-12-07T08:36:32Z")

</div>

Hi, I have a script where I want to print the same line over and over (overwriting itself I guess you would say) without creating a new line everytime. Basically so I can output a simple count tally of the number of…

---

## [Apache and Ruby](https://www.ruby-forum.com/t/apache-and-ruby/78483)

<div class="topic-metadata">

**Author:** [@Phillip\_N](https://www.ruby-forum.com/u/Phillip_N)\
**Replies:** 11\
**Last updated:** [December 7, 2006, 8:11am UTC](https://www.ruby-forum.com/t/apache-and-ruby/78483 "2006-12-07T08:11:41Z")

</div>

Hi, New to ruby and apache. Been trying to get a simple ruby script to run via apache. The script is as follows: #!/usr/bin/env ruby require “cgi” cgi = CGI.new(“html3”) cgi.out(“text/plain”){ “Hello World” } I…

---

## [How to make webfetcher download images](https://www.ruby-forum.com/t/how-to-make-webfetcher-download-images/78601)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 7, 2006, 8:05am UTC](https://www.ruby-forum.com/t/how-to-make-webfetcher-download-images/78601 "2006-12-07T08:05:41Z")

</div>

The following script uses WebFetcher to recursively download html files. But the html pages are missing their jpg images. Any suggestions? require ‘webfetcher’ book = WebFetcher::Page.url(‘Grass types’) book.recu…

---

## [Bug in SGML parser](https://www.ruby-forum.com/t/bug-in-sgml-parser/78606)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 7:15am UTC](https://www.ruby-forum.com/t/bug-in-sgml-parser/78606 "2006-12-07T07:15:37Z")

</div>

The sgml parser /usr/local/lib/ruby/gems/1.8/gems/htmltools-1.10/lib/html/sgml-parser.rb does not correctly handle character references. Yahoo sometimes generates a character reference that looks like “’”. Firefox …

---

## [General question about ri and specific question about Lookup](https://www.ruby-forum.com/t/general-question-about-ri-and-specific-question-about-lookup/78563)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 2\
**Last updated:** [December 7, 2006, 5:25am UTC](https://www.ruby-forum.com/t/general-question-about-ri-and-specific-question-about-lookup/78563 "2006-12-07T05:25:24Z")

</div>

While looking through ri File, I found Windows::Security, and in there is a method named LookupAccountName. I searched through the mailing list archives and google, and didn’t see anything in there about it. The pr…

---

## [Why does a test fail when I predicted it's exception class?](https://www.ruby-forum.com/t/why-does-a-test-fail-when-i-predicted-its-exception-class/78156)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 9\
**Last updated:** [December 7, 2006, 4:47am UTC](https://www.ruby-forum.com/t/why-does-a-test-fail-when-i-predicted-its-exception-class/78156 "2006-12-07T04:47:21Z")

</div>

Hi, I have a test suite that invokes on test set that specifies assert\_raise(ZeroDivisionError, MyCalc.new.calc) When I run the test suite, instead of “1 test, 0 failures, 0 errors”, I get the following. The code fol…

---

## [Ruby SOAP client questions](https://www.ruby-forum.com/t/ruby-soap-client-questions/78600)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 4:45am UTC](https://www.ruby-forum.com/t/ruby-soap-client-questions/78600 "2006-12-07T04:45:21Z")

</div>

I’m trying to write a Ruby SOAP client to talk to, what appears to be a very strange SOAP server (something written in Java). The server requires me to submit an “AuthRequest” with a username and password, and it retu…

---

## [Re: Can't sort array](https://www.ruby-forum.com/t/re-cant-sort-array/78431)

<div class="topic-metadata">

**Author:** [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Replies:** 3\
**Last updated:** [December 7, 2006, 3:09am UTC](https://www.ruby-forum.com/t/re-cant-sort-array/78431 "2006-12-07T03:09:10Z")

</div>

Hi all, I want to print all the methods in excel OLE object in alphabetic order but the sort method is unavailable. Can anyone explain it and help me fix it? Thank you, Li require ‘win32ole’ excel = WIN32OLE.new(…

---

## [Re: invasive parameters as method mode variables](https://www.ruby-forum.com/t/re-invasive-parameters-as-method-mode-variables/78584)

<div class="topic-metadata">

**Author:** [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 3:03am UTC](https://www.ruby-forum.com/t/re-invasive-parameters-as-method-mode-variables/78584 "2006-12-07T03:03:09Z")

</div>

These e-mails are becoming invasive. take me off of this list. ----- Original Message ---- From: Trans removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Wednesday, Decem…

---

## [Problem with Marshaling WeakRefs?](https://www.ruby-forum.com/t/problem-with-marshaling-weakrefs/78577)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 7, 2006, 2:47am UTC](https://www.ruby-forum.com/t/problem-with-marshaling-weakrefs/78577 "2006-12-07T02:47:08Z")

</div>

I’m experimenting with Marshal, but I’m having problems making it work with data structures that use WeakRefs. Marshal saves without complaining, but the WeakRefs seem to be junk when I load. Hopefully the program bel…

---

## [Manipulating large audio files](https://www.ruby-forum.com/t/manipulating-large-audio-files/77844)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 2\
**Last updated:** [December 7, 2006, 2:42am UTC](https://www.ruby-forum.com/t/manipulating-large-audio-files/77844 "2006-12-07T02:42:54Z")

</div>

Hi. I’m looking for a ruby library to manipulate large audio files (\> 1GB). The files will typically be too large to hold in RAM. I need to be able to stretch the files by very small amounts (like half a second over …

---

## [Why is this regex invalid?](https://www.ruby-forum.com/t/why-is-this-regex-invalid/78571)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 8\
**Last updated:** [December 7, 2006, 2:31am UTC](https://www.ruby-forum.com/t/why-is-this-regex-invalid/78571 "2006-12-07T02:31:07Z")

</div>

irb(main):002:0\> regex = /(\[0-9\])(\[^± \]+)(.)/ SyntaxError: compile error (irb):2: invalid regular expression: /(\[0-9\])(\[^± \]+)(.)/ from (irb):2 irb(main):003:0\> regex = /(\[0-9\])(\[^+ -\]+)(.)/ =\> /(\[0-9\])(\[^+ -\]+)(.)/ …

---

## [Memcache-client 1.2.1 Released](https://www.ruby-forum.com/t/memcache-client-1-2-1-released/78582)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 2:15am UTC](https://www.ruby-forum.com/t/memcache-client-1-2-1-released/78582 "2006-12-07T02:15:06Z")

</div>

memcache-client version 1.2.1 has been released! dev.robotcoop.com memcache-client is a pure-ruby client to Danga’s memcached. Changes: = 1.2.1 Fix bug #7048, MemCache#servers= referenced changed local variable. …

---

## [\[Quiz\] Turtle Graphics (#104)](https://www.ruby-forum.com/t/quiz-turtle-graphics-104/78575)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 12:48am UTC](https://www.ruby-forum.com/t/quiz-turtle-graphics-104/78575 "2006-12-07T00:48:57Z")

</div>

Here is my quick solution. ( Quick, so, it will fail the unit test, since it does not check the parameters and throw the expected exception; however, it shows the example graphics correctly ) Created by Morton G. on …

---

## [Ruby On Rails Opportunity - SYDNEY](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-sydney/78574)

<div class="topic-metadata">

**Author:** [@kieranw](https://www.ruby-forum.com/u/kieranw)\
**Replies:** 0\
**Last updated:** [December 7, 2006, 12:48am UTC](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-sydney/78574 "2006-12-07T00:48:16Z")

</div>

Hi I am currently looking for a permanent Applications Developer to be based at a dedicated and technology led client in Sydney, they need a developer with experience in Ruby On Rails, XHTML, AJAX and C or Java. The …

---

## [Ruby based SMTP server?](https://www.ruby-forum.com/t/ruby-based-smtp-server/78565)

<div class="topic-metadata">

**Author:** [@Peter\_SSSgjfc](https://www.ruby-forum.com/u/Peter_SSSgjfc)\
**Replies:** 4\
**Last updated:** [December 7, 2006, 12:20am UTC](https://www.ruby-forum.com/t/ruby-based-smtp-server/78565 "2006-12-07T00:20:54Z")

</div>

People, I have sendmail working on my linux box. Since I can use sendmail to send e-mails, would it be easy to write a simple ruby class which listens for data on port 25? Then, if it gets some data, it just passes …

---

## [Low Vision Stylesheet for Ruby-Lang](https://www.ruby-forum.com/t/low-vision-stylesheet-for-ruby-lang/78557)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 2\
**Last updated:** [December 6, 2006, 10:32pm UTC](https://www.ruby-forum.com/t/low-vision-stylesheet-for-ruby-lang/78557 "2006-12-06T22:32:31Z")

</div>

Hello Rubyists! Hugh S. has been working with the Ruby Visual Identity Team to provide an alternate stylesheet for people with visual impairment. It’s now available on the Ruby Web site. To access the stylesheet you w…

---

## [Simple and stuppid bug (can anyone find it?)](https://www.ruby-forum.com/t/simple-and-stuppid-bug-can-anyone-find-it/78166)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 12\
**Last updated:** [December 6, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/simple-and-stuppid-bug-can-anyone-find-it/78166 "2006-12-06T22:18:27Z")

</div>

Hi all, I thought it to be good programming style to make attribute assignment chainable. When using the attr\_writer an assignment returns te value assigned which is not what I want, so I tried to do-it-myself. The r…

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

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