# Ruby

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

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

---

## [Gtkhtml2 blank window](https://www.ruby-forum.com/t/gtkhtml2-blank-window/79062)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 5\
**Last updated:** [December 12, 2006, 1:00am UTC](https://www.ruby-forum.com/t/gtkhtml2-blank-window/79062 "2006-12-12T01:00:44Z")

</div>

hi ho ml :-), i run into a new problem while writing an gtk application. a lot of things are working now, but not the gtkhtml2. i tried to put some html code into the html-document, but i get an blank window only. i’…

---

## [Re: best way to dynamically create new instance methods](https://www.ruby-forum.com/t/re-best-way-to-dynamically-create-new-instance-methods/79063)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 3\
**Last updated:** [December 12, 2006, 12:56am UTC](https://www.ruby-forum.com/t/re-best-way-to-dynamically-create-new-instance-methods/79063 "2006-12-12T00:56:43Z")

</div>

From: James Edward G. II \[mailto:removed\_email\_address@domain.invalid\] Sent: Monday, December 11, 2006 3:15 PM To: ruby-talk ML Subject: Re: best way to dynamically create new instance methods def create\_method(…

---

## [Curb 0.0.8 now available](https://www.ruby-forum.com/t/curb-0-0-8-now-available/79069)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 0\
**Last updated:** [December 12, 2006, 12:28am UTC](https://www.ruby-forum.com/t/curb-0-0-8-now-available/79069 "2006-12-12T00:28:35Z")

</div>

Curb 0.0.8 is now available from http://curb.rubyforge.org. Curb provides easy-to-use bindings to the powerful libcurl URL transfer library. This release fixes a critical bug introduced in version 0.0.6 that virtuall…

---

## [Suggested Ruby / Rails Development Environment on OS X?](https://www.ruby-forum.com/t/suggested-ruby-rails-development-environment-on-os-x/79065)

<div class="topic-metadata">

**Author:** [@Charles\_McKnight](https://www.ruby-forum.com/u/Charles_McKnight)\
**Replies:** 1\
**Last updated:** [December 12, 2006, 12:10am UTC](https://www.ruby-forum.com/t/suggested-ruby-rails-development-environment-on-os-x/79065 "2006-12-12T00:10:30Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi All, I’ve just purchased a MacBook Pro and want to ping the list for suggested development tools for Ruby and Rails in the OS X environment (I already know about Text…

---

## [Best way to dynamically create new instance methods](https://www.ruby-forum.com/t/best-way-to-dynamically-create-new-instance-methods/79047)

<div class="topic-metadata">

**Author:** [@dandante](https://www.ruby-forum.com/u/dandante)\
**Replies:** 2\
**Last updated:** [December 11, 2006, 11:16pm UTC](https://www.ruby-forum.com/t/best-way-to-dynamically-create-new-instance-methods/79047 "2006-12-11T23:16:17Z")

</div>

Hi, I’ve been sifting through module\_eval, instance\_eval, define\_method, and the like and I can’t seem to accomplish what I am trying to do, which is something like this: class Foo def initialize list\_of\_method\_name…

---

## [Format problem](https://www.ruby-forum.com/t/format-problem/78893)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 22\
**Last updated:** [December 11, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/format-problem/78893 "2006-12-11T23:05:09Z")

</div>

Hi all, I have a 1D array containing 96 elements. I change it into a 2D array then print it out: each line/row is an element with whatever columns I want. The problem is that if the column number is \< 10 I can prin…

---

## [Re: Is there something like Regexp#match\_all](https://www.ruby-forum.com/t/re-is-there-something-like-regexp-match-all/79059)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/re-is-there-something-like-regexp-match-all/79059 "2006-12-11T22:38:05Z")

</div>

From: Andi S. Sent: Monday, December 11, 2006 2:27 PM To: ruby-talk ML Subject: Is there something like Regexp#match\_all is there a possibility to return all the matches of a regexp? or in other words is there a wa…

---

## [Problem with ActiveRecord and PDFWriter](https://www.ruby-forum.com/t/problem-with-activerecord-and-pdfwriter/78241)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 8\
**Last updated:** [December 11, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-pdfwriter/78241 "2006-12-11T22:36:03Z")

</div>

Probably this has been discussed earlier elsewhere. I am having some problem while using PDFWriter in rails. following code throws error: my\_table.render\_on(pdf) In short, I get error: no marshal\_dump is defined for…

---

## [Re: best way to dynamically create new instance methods](https://www.ruby-forum.com/t/re-best-way-to-dynamically-create-new-instance-methods/79050)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 9:41pm UTC](https://www.ruby-forum.com/t/re-best-way-to-dynamically-create-new-instance-methods/79050 "2006-12-11T21:41:46Z")

</div>

From: Dan T. Sent: Monday, December 11, 2006 1:28 PM To: ruby-talk ML Subject: best way to dynamically create new instance methods \[snip\] What I want create\_method() to do (simplified here) is, given the argument …

---

## [Bending ruby space](https://www.ruby-forum.com/t/bending-ruby-space/78884)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 15\
**Last updated:** [December 11, 2006, 9:19pm UTC](https://www.ruby-forum.com/t/bending-ruby-space/78884 "2006-12-11T21:19:41Z")

</div>

i came upon this “pattern” working on a rather difficult problem. see if you can wrap your head around this bending of ruby space and what it might be good for. module R; end module U; include R; end module R; exten…

---

## [WhatÂ´s ruby on rails for?](https://www.ruby-forum.com/t/whata-s-ruby-on-rails-for/78924)

<div class="topic-metadata">

**Author:** [@marcello](https://www.ruby-forum.com/u/marcello)\
**Replies:** 2\
**Last updated:** [December 11, 2006, 9:07pm UTC](https://www.ruby-forum.com/t/whata-s-ruby-on-rails-for/78924 "2006-12-11T21:07:40Z")

</div>

Hi, I´m a Delphi programmer,tht was once a clipper programmer,that was once a Cobol programmer. So,It is time to change again. By now I would prefer to become a farmer instead of using .NET,Java seems to be a five …

---

## [Newbie with a project.(Parse tabed file and gen statistics?)](https://www.ruby-forum.com/t/newbie-with-a-project-parse-tabed-file-and-gen-statistics/79043)

<div class="topic-metadata">

**Author:** [@aceofaces](https://www.ruby-forum.com/u/aceofaces)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 7:59pm UTC](https://www.ruby-forum.com/t/newbie-with-a-project-parse-tabed-file-and-gen-statistics/79043 "2006-12-11T19:59:27Z")

</div>

I have tab delimited files that I want to parse and generate statistics with. I can parse the file into an array using IO.readlines but don’t know what good that does for sorting, and the other path I was following w…

---

## [Quiz 105 Solution](https://www.ruby-forum.com/t/quiz-105-solution/79030)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/quiz-105-solution/79030 "2006-12-11T19:47:26Z")

</div>

Thanks, this was fun! class Tournament attr\_reader :list def initialize players raise “Must be a positive number of players” if players \< 1 @players = players @list = Array.new(players) { |i| i+1 } # Add 'bye's up…

---

## [Help recherche de package](https://www.ruby-forum.com/t/help-recherche-de-package/79019)

<div class="topic-metadata">

**Author:** [@dom](https://www.ruby-forum.com/u/dom)\
**Replies:** 7\
**Last updated:** [December 11, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/help-recherche-de-package/79019 "2006-12-11T17:55:58Z")

</div>

Bonjour Je suis débutant en ruby et je recherche une bibliotheque pour lire les métadonnée d’un fichier (auteur taille type de document …) et une autre bibliothèque pour pouvoir uploader et downloader des documents …

---

## [RubyForge scheduled downtime later today](https://www.ruby-forum.com/t/rubyforge-scheduled-downtime-later-today/79009)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/rubyforge-scheduled-downtime-later-today/79009 "2006-12-11T15:33:38Z")

</div>

Hi all - I’m going to take RubyForge down for a upgrade this afternoon. Should take about 30 minutes or so. Only the main site will be affected; mailing lists, svn/cvs, “gem install rails”, project vhosts, and so f…

---

## [Scope of block](https://www.ruby-forum.com/t/scope-of-block/78939)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 9\
**Last updated:** [December 11, 2006, 3:31pm UTC](https://www.ruby-forum.com/t/scope-of-block/78939 "2006-12-11T15:31:37Z")

</div>

Hello i have a question about scopes of block I want to define a block at one time. But when it get’s called it should have the scope (vars ed ) of the calling environement Example : class BlockTest attr\_accessor :m…

---

## [New Haven Rubyists December Meeting](https://www.ruby-forum.com/t/new-haven-rubyists-december-meeting/79006)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/new-haven-rubyists-december-meeting/79006 "2006-12-11T14:47:33Z")

</div>

Who: Anyone interested in Ruby who will be around New Haven Connecticut on When: Wednesday December 13, 6:30 pm What: New Haven Ruby Brigade Where: Cardiopulmonary Corporation, 200 Cascade Blvd., Milfor…

---

## [Newbie question about pop3 access](https://www.ruby-forum.com/t/newbie-question-about-pop3-access/78964)

<div class="topic-metadata">

**Author:** [@furby](https://www.ruby-forum.com/u/furby)\
**Replies:** 3\
**Last updated:** [December 11, 2006, 2:31pm UTC](https://www.ruby-forum.com/t/newbie-question-about-pop3-access/78964 "2006-12-11T14:31:31Z")

</div>

I am rather new to Ruby and I want to write a program to play around with email. I can connect to my chosen pop3 server and iterate through the mail relatively easily. But my question is how to I parse out the mail? H…

---

## [Ruby binaries for Symbian S60](https://www.ruby-forum.com/t/ruby-binaries-for-symbian-s60/79002)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 1:37pm UTC](https://www.ruby-forum.com/t/ruby-binaries-for-symbian-s60/79002 "2006-12-11T13:37:27Z")

</div>

Hello, Symbian released a version of Ruby for their platform few days ago (runs on Nokia mobile phones for example). Unfortunately, the binaries are not (yet) provided - So you need to compile the whole stuff with the…

---

## [Asynchronous select from queue](https://www.ruby-forum.com/t/asynchronous-select-from-queue/78900)

<div class="topic-metadata">

**Author:** [@borisu](https://www.ruby-forum.com/u/borisu)\
**Replies:** 7\
**Last updated:** [December 11, 2006, 1:35pm UTC](https://www.ruby-forum.com/t/asynchronous-select-from-queue/78900 "2006-12-11T13:35:26Z")

</div>

Please advise on how to implement multiple select from queues in Ruby. I have seen only selcet which operates on IO streams. I need to pass objects not symbols. I have 100 queues and I must wait when message appears o…

---

## [Dir.chdir("..") versus \`cd ..\`](https://www.ruby-forum.com/t/dir-chdir-versus-cd/78999)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [December 11, 2006, 12:41pm UTC](https://www.ruby-forum.com/t/dir-chdir-versus-cd/78999 "2006-12-11T12:41:24Z")

</div>

i discovered this wornig that : cd .. as no effect but : Dir.chdir("…") as the right effect, why isn’t the first not working ? i’m surprised because i’m doing a lot using back quotes ))) rsync ... OK rm -rf / OK…

---

## [Monkey Patching a method and back](https://www.ruby-forum.com/t/monkey-patching-a-method-and-back/78945)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 9\
**Last updated:** [December 11, 2006, 12:05pm UTC](https://www.ruby-forum.com/t/monkey-patching-a-method-and-back/78945 "2006-12-11T12:05:20Z")

</div>

I need to temporarily mokey patch out a method in a certain class used by a lib in one of my tests. That’s easy. However, what I don’t know how to do is to restore back the orginial (without copying in the src, of co…

---

## [Regexp/scan question](https://www.ruby-forum.com/t/regexp-scan-question/78987)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 8\
**Last updated:** [December 11, 2006, 11:25am UTC](https://www.ruby-forum.com/t/regexp-scan-question/78987 "2006-12-11T11:25:16Z")

</div>

Hello, I need to match a chunk of code like this: … … #begin here …} …end …} …} …end … … I need to match from “the #begin here” up to the n-th closing token (i.e. ‘}’ or ‘end’). n can be arbitrary (let’s con…

---

## [\`sysread' end of file reached \`rbuf\_fill' problem](https://www.ruby-forum.com/t/sysread-end-of-file-reached-rbuf-fill-problem/78998)

<div class="topic-metadata">

**Author:** [@mento\_ruby](https://www.ruby-forum.com/u/mento_ruby)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 11:21am UTC](https://www.ruby-forum.com/t/sysread-end-of-file-reached-rbuf-fill-problem/78998 "2006-12-11T11:21:07Z")

</div>

when my problem is using multithreading to get some documents from www server through net::http library. The code is as follows Net::HTTP.start(url.host) do |http| req = Net::HTTP::Get.new(url.path, {“User-Agent” =\> …

---

## [Autotest, unit-diff, and color output?](https://www.ruby-forum.com/t/autotest-unit-diff-and-color-output/78800)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 7\
**Last updated:** [December 11, 2006, 11:19am UTC](https://www.ruby-forum.com/t/autotest-unit-diff-and-color-output/78800 "2006-12-11T11:19:15Z")

</div>

I’m using autotest with all its test driven goodness, and I believe that uses unit-diff to present a “saner” view of test difference output. I’d like to do colorize the output from unit-diff so its similar to what yo…

---

## [Can it be shorter?](https://www.ruby-forum.com/t/can-it-be-shorter/78974)

<div class="topic-metadata">

**Author:** [@WuyaSea\_O](https://www.ruby-forum.com/u/WuyaSea_O)\
**Replies:** 3\
**Last updated:** [December 11, 2006, 7:59am UTC](https://www.ruby-forum.com/t/can-it-be-shorter/78974 "2006-12-11T07:59:00Z")

</div>

doing formating, i need to break a long line of words to roughly 80 chars per line, below is what I got def break\_line(text) return text if text.size \< 80 i = text.index(' ', 79) text\[0..i\] + "\\n" + break\_line(text\[i…

---

## [Dhaka 0.0.4 release](https://www.ruby-forum.com/t/dhaka-0-0-4-release/78976)

<div class="topic-metadata">

**Author:** [@Mushfeq\_K](https://www.ruby-forum.com/u/Mushfeq_K)\
**Replies:** 1\
**Last updated:** [December 11, 2006, 7:50am UTC](https://www.ruby-forum.com/t/dhaka-0-0-4-release/78976 "2006-12-11T07:50:59Z")

</div>

Dhaka is now much faster and has several new features since its initial release:

---

## [Dhaka 0.0.4 released](https://www.ruby-forum.com/t/dhaka-0-0-4-released/78978)

<div class="topic-metadata">

**Author:** [@Mushfeq\_K](https://www.ruby-forum.com/u/Mushfeq_K)\
**Replies:** 0\
**Last updated:** [December 11, 2006, 7:48am UTC](https://www.ruby-forum.com/t/dhaka-0-0-4-released/78978 "2006-12-11T07:48:59Z")

</div>

To recap, Dhaka is an LALR1 parser generator written purely in Ruby (see http://dhaka.rubyforge.org). It is now much faster in its generation capabilities than its initial release and adds several new features: Supp…

---

## [YAML::Syck::Map.children\_with\_index has a non-useless mode?](https://www.ruby-forum.com/t/yaml-map-children-with-index-has-a-non-useless-mode/78972)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [December 11, 2006, 6:06am UTC](https://www.ruby-forum.com/t/yaml-map-children-with-index-has-a-non-useless-mode/78972 "2006-12-11T06:06:54Z")

</div>

Ruboids: I have some dirt-simple YAML, and I need to traverse the object model returned by YAML.parse(). So if the top-level object is a Map (corresponding naturally to a native Hash), how do I get the keys and value…

---

## [Ruby training?](https://www.ruby-forum.com/t/ruby-training/78929)

<div class="topic-metadata">

**Author:** [@Michael\_TSHalligan](https://www.ruby-forum.com/u/Michael_TSHalligan)\
**Replies:** 5\
**Last updated:** [December 11, 2006, 5:40am UTC](https://www.ruby-forum.com/t/ruby-training/78929 "2006-12-11T05:40:48Z")

</div>

I’d like to send a couple of my employees to a Ruby class, the ideal format would be a week-long intensive training session. Do any exist yet?

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

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