# Ruby

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

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

---

## [Memory Leak (again)](https://www.ruby-forum.com/t/memory-leak-again/52816)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 1\
**Last updated:** [January 20, 2006, 3:02am UTC](https://www.ruby-forum.com/t/memory-leak-again/52816 "2006-01-20T03:02:34Z")

</div>

There is a little memory leak in my script I am not able to spot. I have tried everything I found about detecting leaks but no luck. I first tried all the recomendations found here http://theexciter.com/articles/find…

---

## [Gathering Links](https://www.ruby-forum.com/t/gathering-links/52895)

<div class="topic-metadata">

**Author:** [@joeySS](https://www.ruby-forum.com/u/joeySS)\
**Replies:** 1\
**Last updated:** [January 20, 2006, 1:32am UTC](https://www.ruby-forum.com/t/gathering-links/52895 "2006-01-20T01:32:56Z")

</div>

Hello, I am looking for some help on a regex expression. I would like a regexp that matches against Html Links. I have tried, but I can’t seem to get anything working. I would appreciate help. Thanks Joey

---

## [Re: My Thought on the "Pickaxe book" (from a Ruby novice)](https://www.ruby-forum.com/t/re-my-thought-on-the-pickaxe-book-from-a-ruby-novice/52838)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 3\
**Last updated:** [January 20, 2006, 1:24am UTC](https://www.ruby-forum.com/t/re-my-thought-on-the-pickaxe-book-from-a-ruby-novice/52838 "2006-01-20T01:24:38Z")

</div>

But there’re not THAT many ways to do something even in Ruby, so you pretty quickly pickup most of them. Moreover, for me learnig about every new way of doing things was quite educational and I enjoyed greatly when re…

---

## [RDoc and block indent in the constructor](https://www.ruby-forum.com/t/rdoc-and-block-indent-in-the-constructor/52894)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [January 20, 2006, 12:45am UTC](https://www.ruby-forum.com/t/rdoc-and-block-indent-in-the-constructor/52894 "2006-01-20T00:45:18Z")

</div>

Hi all, I’m having some RDoc trouble. Specifically, I can’t get indented code for :call-seq: to maintain the block indent for the generated HTML. The RDOC looks something like this: :call-seq: use foo, options # or …

---

## [When to Use Protected vs. Private?](https://www.ruby-forum.com/t/when-to-use-protected-vs-private/52886)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [January 19, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/when-to-use-protected-vs-private/52886 "2006-01-19T23:47:56Z")

</div>

Can someone clarify the difference between declaring a method Protected vs. Private? I thought that a private method could only be accessed within the specific defining class. However, it may also be called by subcla…

---

## [Dynamic class instantiation](https://www.ruby-forum.com/t/dynamic-class-instantiation/52884)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 3\
**Last updated:** [January 19, 2006, 11:14pm UTC](https://www.ruby-forum.com/t/dynamic-class-instantiation/52884 "2006-01-19T23:14:40Z")

</div>

Hi all, I have a situation where I need to dynamically execute an object from a String name. I read in pickaxe that as long as a capitalize the class name in the string, Ruby will see it as a Constant and thusly allow…

---

## [Cut AOP implementation in Ruby](https://www.ruby-forum.com/t/cut-aop-implementation-in-ruby/52885)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 0\
**Last updated:** [January 19, 2006, 10:44pm UTC](https://www.ruby-forum.com/t/cut-aop-implementation-in-ruby/52885 "2006-01-19T22:44:28Z")

</div>

Hello, Does anybody know of a Cut-based AOPhttp://www.rubygarden.org/ruby?AspectOrientedRubylibrary implemented in ruby? I found a c-based implementation in the Subyhttp://rubyforge.org/projects/suby/project, but I …

---

## [Rdoc, api + exceptions](https://www.ruby-forum.com/t/rdoc-api-exceptions/52841)

<div class="topic-metadata">

**Author:** [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Replies:** 2\
**Last updated:** [January 19, 2006, 9:55pm UTC](https://www.ruby-forum.com/t/rdoc-api-exceptions/52841 "2006-01-19T21:55:58Z")

</div>

Hi, Ive become a pretty big fan of Ruby in the past month during my time off and while going through PickAxe book and looking around Im not sure if im missing something fundamental about exceptions … (bare w/ me as I…

---

## [Newbie Question re accessing a secure web site with https](https://www.ruby-forum.com/t/newbie-question-re-accessing-a-secure-web-site-with-https/52863)

<div class="topic-metadata">

**Author:** [@timbalera](https://www.ruby-forum.com/u/timbalera)\
**Replies:** 0\
**Last updated:** [January 19, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/newbie-question-re-accessing-a-secure-web-site-with-https/52863 "2006-01-19T21:05:24Z")

</div>

Hi. I am a Ruby newbie. I am working with the pickaxe book, page 709. I’m trying to write a script that logs into a secure website, and then fill out a text box. I am using the top example on the page as a basis, a…

---

## [Re: Hierarchy question (was: Inserting)](https://www.ruby-forum.com/t/re-hierarchy-question-was-inserting/52857)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 0\
**Last updated:** [January 19, 2006, 7:49pm UTC](https://www.ruby-forum.com/t/re-hierarchy-question-was-inserting/52857 "2006-01-19T19:49:11Z")

</div>

On 1/19/06, Matthew M. removed\_email\_address@domain.invalid wrote: Is it something like this you want? Yes, I think it is. Thanks Matthew. jh module ExtraMethods end – James H. Web application developer Cent…

---

## [Ruby and C++](https://www.ruby-forum.com/t/ruby-and-c/95525)

<div class="topic-metadata">

**Author:** [@SteveD](https://www.ruby-forum.com/u/SteveD)\
**Replies:** 3\
**Last updated:** [January 19, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/ruby-and-c/95525 "2006-01-19T19:40:09Z")

</div>

hey everyone, im trying to write a script as well as a program each of which can communicate with one another. the script should be able to have access to the class in my c++ code. just a simple class with a couple …

---

## [Help for upgrading my sources from ruby 1.6.8 to 1.8.x](https://www.ruby-forum.com/t/help-for-upgrading-my-sources-from-ruby-1-6-8-to-1-8-x/52815)

<div class="topic-metadata">

**Author:** [@Burkhard\_Boerner](https://www.ruby-forum.com/u/Burkhard_Boerner)\
**Replies:** 2\
**Last updated:** [January 19, 2006, 7:28pm UTC](https://www.ruby-forum.com/t/help-for-upgrading-my-sources-from-ruby-1-6-8-to-1-8-x/52815 "2006-01-19T19:28:06Z")

</div>

Hello, question: in 1.6.8 the line rb\_protect(rb\_thread\_stop, self, &iRes); is working well, in 1.8.2 it produces an compile error. Looking into “intern.h” shows a difference between both versions 1.6.8: VALUE rb…

---

## [Re: rdoc, api + exceptions](https://www.ruby-forum.com/t/re-rdoc-api-exceptions/63019)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [January 19, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/re-rdoc-api-exceptions/63019 "2006-01-19T18:21:31Z")

</div>

Create explicit test cases where you demonstrate (and check, of course) in what circumstances your class can generate custom exceptions. Refer to them from your documentation. Gennady.

---

## [Question about regular expression](https://www.ruby-forum.com/t/question-about-regular-expression/52625)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 11\
**Last updated:** [January 19, 2006, 6:18pm UTC](https://www.ruby-forum.com/t/question-about-regular-expression/52625 "2006-01-19T18:18:30Z")

</div>

I need to hack out an regular expression, which will match “SNPB” without matching “STR SNPB”. Since ruby 1.8.2 or 1.8.4 don’t support the lookbehind feature. what’s the workable regular expression for ruby versio…

---

## [Ruby One-click Installer and ruby 18.4](https://www.ruby-forum.com/t/ruby-one-click-installer-and-ruby-18-4/51593)

<div class="topic-metadata">

**Author:** [@dany](https://www.ruby-forum.com/u/dany)\
**Replies:** 8\
**Last updated:** [January 19, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/ruby-one-click-installer-and-ruby-18-4/51593 "2006-01-19T16:47:52Z")

</div>

Greetings, There was not release of the Ruby O.-click Installer with version 1.8.3. Anyone heard of plans of One-click Installer plan to include 1.8.4 and any target release timeframe? Thanks, Dany

---

## [Rake 0.7.0 Released](https://www.ruby-forum.com/t/rake-0-7-0-released/52829)

<div class="topic-metadata">

**Author:** [@jimweirich](https://www.ruby-forum.com/u/jimweirich)\
**Replies:** 2\
**Last updated:** [January 19, 2006, 4:46pm UTC](https://www.ruby-forum.com/t/rake-0-7-0-released/52829 "2006-01-19T16:46:34Z")

</div>

= Rake 0.7.0 Released These changes for Rake have been brewing for a long time. Here they are, I hope you enjoy them. == Change Summary === New Features Name space support for task names (see below). Prerequisi…

---

## [Ruby quiz idea](https://www.ruby-forum.com/t/ruby-quiz-idea/95665)

<div class="topic-metadata">

**Author:** [@Kev\_J](https://www.ruby-forum.com/u/Kev_J)\
**Replies:** 2\
**Last updated:** [January 19, 2006, 3:23pm UTC](https://www.ruby-forum.com/t/ruby-quiz-idea/95665 "2006-01-19T15:23:29Z")

</div>

http://www.norvig.com/java-lisp.html This is is a bit of a challenge, see links in post for original coding challenge. It’d be interesting to see how much time it’d take in Ruby - Lisp 2 hours, C++ roughly 5.5 \[1\] f…

---

## [Packing (#62)](https://www.ruby-forum.com/t/packing-62/95707)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 19, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/packing-62/95707 "2006-01-19T15:11:24Z")

</div>

As the submitters pointed out, this in the famous “bin packing” challenge, in two dimensions. There’s a lot of theory available for this problem which I’ve just been looking into a little myself. The solutions took…

---

## [Merging two Word documents with Ruby?](https://www.ruby-forum.com/t/merging-two-word-documents-with-ruby/50788)

<div class="topic-metadata">

**Author:** [@Denver\_M](https://www.ruby-forum.com/u/Denver_M)\
**Replies:** 14\
**Last updated:** [January 19, 2006, 12:26pm UTC](https://www.ruby-forum.com/t/merging-two-word-documents-with-ruby/50788 "2006-01-19T12:26:47Z")

</div>

I’ve got a bugger of a problem and I thought I’d toss it out there to see if anyone can provide any guidance. I’m working on an application that needs to merge two Microsoft Word documents. However, the application w…

---

## [How get data from xls document?](https://www.ruby-forum.com/t/how-get-data-from-xls-document/50441)

<div class="topic-metadata">

**Author:** [@keal](https://www.ruby-forum.com/u/keal)\
**Replies:** 8\
**Last updated:** [January 19, 2006, 5:25am UTC](https://www.ruby-forum.com/t/how-get-data-from-xls-document/50441 "2006-01-19T05:25:52Z")

</div>

how get data from excel document (\*.xls) without using win32ole?

---

## [Test-unit-benchmark-0.1](https://www.ruby-forum.com/t/test-unit-benchmark-0-1/52797)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 19, 2006, 4:40am UTC](https://www.ruby-forum.com/t/test-unit-benchmark-0-1/52797 "2006-01-19T04:40:46Z")

</div>

Hi, == Abstract Test::Unit::Benchmark measures benchmarks of each test by Test::Unit. % benchrb test/test-command.rb Loaded suite \[test/test-command.rb, /home/rubikitch/ruby/test/unit/benchmark.rb\] Started … Fini…

---

## [Re: Populating 'long' data column with Ruby OCI8 (trying aga](https://www.ruby-forum.com/t/re-populating-long-data-column-with-ruby-oci8-trying-aga/95565)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [January 19, 2006, 4:22am UTC](https://www.ruby-forum.com/t/re-populating-long-data-column-with-ruby-oci8-trying-aga/95565 "2006-01-19T04:22:42Z")

</div>

Hi, KUBO Thank you very much for the reply. I got the following error after I applied the patch: /usr/local/ruby-1.8/lib/ruby/site\_ruby/1.8/oci8.rb:656:in \`bindByName’: Not supported type (8) I changed bind\_param to …

---

## [Launching a debugger / irb session](https://www.ruby-forum.com/t/launching-a-debugger-irb-session/52785)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 1\
**Last updated:** [January 19, 2006, 2:58am UTC](https://www.ruby-forum.com/t/launching-a-debugger-irb-session/52785 "2006-01-19T02:58:22Z")

</div>

I have a GUI application (using ruby-gnome2). It would be great if there was a button in the GUI that, when clicked, would launch an xterm that started something like irb that would have access to the same data that …

---

## [When is $SAFE reset?](https://www.ruby-forum.com/t/when-is-safe-reset/52788)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 0\
**Last updated:** [January 19, 2006, 2:34am UTC](https://www.ruby-forum.com/t/when-is-safe-reset/52788 "2006-01-19T02:34:12Z")

</div>

Hi, irb(main):001:0\> begin ; $SAFE=2 ; end ; puts $SAFE 2 irb(main):002:0\> puts $SAFE 0 irb(main):003:0\> def s ; $SAFE=2 ; end ; s ; puts $SAFE 2 irb(main):004:0\> puts $SAFE 0 irb(main):005:0\> eval “$SAFE=2; put…

---

## [Problems with rescue clause](https://www.ruby-forum.com/t/problems-with-rescue-clause/52777)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 2\
**Last updated:** [January 19, 2006, 1:47am UTC](https://www.ruby-forum.com/t/problems-with-rescue-clause/52777 "2006-01-19T01:47:51Z")

</div>

Hi Folks, I’m writing a script to check passwords against email accounts, so I have written a method: def tryIMAP (host, usessl, user, pass) proto = usessl ? "IMAPS" : "IMAP" begin imap = Net::IMAP.new(host, usessl…

---

## [Re: Populating 'long' data column with Ruby OCI8 (trying aga](https://www.ruby-forum.com/t/re-populating-long-data-column-with-ruby-oci8-trying-aga/52764)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [January 18, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/re-populating-long-data-column-with-ruby-oci8-trying-aga/52764 "2006-01-18T21:04:41Z")

</div>

\-----Original Message----- From: KUBO Takehiro \[mailto:removed\_email\_address@domain.invalid\] Sent: Wednesday, January 18, 2006 11:15 AM To: ruby-talk ML Subject: Re: Populating ‘long’ data column with Ruby OCI8 (tr…

---

## [Populating 'long' data column with Ruby OCI8 (trying again,](https://www.ruby-forum.com/t/populating-long-data-column-with-ruby-oci8-trying-again/62077)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 2\
**Last updated:** [January 18, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/populating-long-data-column-with-ruby-oci8-trying-again/62077 "2006-01-18T19:52:22Z")

</div>

Hello, Is there any way to insert a big chunk of data (say, 100K) into a column of type long with Ruby OCI8 or by any other Ruby means? I saw that to do it in C you must be prepared to handle OCI error code inviting y…

---

## [How to double single quote (beginner blockage)](https://www.ruby-forum.com/t/how-to-double-single-quote-beginner-blockage/102532)

<div class="topic-metadata">

**Author:** [@Alexandru\_P](https://www.ruby-forum.com/u/Alexandru_P)\
**Replies:** 7\
**Last updated:** [January 18, 2006, 6:39pm UTC](https://www.ruby-forum.com/t/how-to-double-single-quote-beginner-blockage/102532 "2006-01-18T18:39:24Z")

</div>

Hi! Sorry for this \`stupid´ question but it looks like i am suffering a mental blockage: if I have a string that contains single quote (f.e. “al’alamein”) i would like to escape it with another single quote (=\> “al’…

---

## [YAML - Time to give?](https://www.ruby-forum.com/t/yaml-time-to-give/52497)

<div class="topic-metadata">

**Author:** [@thila](https://www.ruby-forum.com/u/thila)\
**Replies:** 2\
**Last updated:** [January 18, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/yaml-time-to-give/52497 "2006-01-18T17:28:16Z")

</div>

Guys- I am trying to create an YAML file like the following: 3 — Begin ga: name: Georgia capital: savanah population: 1 mil cities: city: name: Atlanta zip: 30328 city: name: Savanah zip: 30304 tx: name: …

---

## [Re curly quotes and forcing ascci](https://www.ruby-forum.com/t/re-curly-quotes-and-forcing-ascci/52439)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 3\
**Last updated:** [January 18, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/re-curly-quotes-and-forcing-ascci/52439 "2006-01-18T17:05:42Z")

</div>

Listers- I'm doing some text munging for the obituaries to go online at the newspaper i work for. I have a simple question. Is there a way to convert some text to plain ascii? i mean the text I am processing has curl…

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

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