# Ruby

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

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

---

## [How to make stopwords case insensitive](https://www.ruby-forum.com/t/how-to-make-stopwords-case-insensitive/184227)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 12:43am UTC](https://www.ruby-forum.com/t/how-to-make-stopwords-case-insensitive/184227 "2010-02-28T00:43:50Z")

</div>

New at ruby… I was trying to create a stoplist that is case insensitive. When I run the code below It includes “In” which I do not want. I was thinking I could use the .match(/\[A-Z,a-z\]/) I did use downcase on the …

---

## [Scheduling asynchronous delayed execution](https://www.ruby-forum.com/t/scheduling-asynchronous-delayed-execution/184219)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 6\
**Last updated:** [February 27, 2010, 11:57pm UTC](https://www.ruby-forum.com/t/scheduling-asynchronous-delayed-execution/184219 "2010-02-27T23:57:23Z")

</div>

What is the best way to schedule something for delayed asynchronous execution? Basically, I want to say “in 20 seconds, execute this function / block / proc / lambda / webhook or whatever”. Also: this will be used by …

---

## [Interpolation question](https://www.ruby-forum.com/t/interpolation-question/197027)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 7\
**Last updated:** [February 27, 2010, 9:35pm UTC](https://www.ruby-forum.com/t/interpolation-question/197027 "2010-02-27T21:35:23Z")

</div>

Why does text = \<\<ENDTEXT this is an wibble of stuff bobble ENDTEXT wibble = 2.0 bobble = 3.0 newtext = text.gsub( /(.\*?)\</field\>/, “#{\\1}” ) puts newtext throw this error: ./test.rb:13: syntax error, unexpecte…

---

## [Interpolation question](https://www.ruby-forum.com/t/interpolation-question/184271)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 7:59pm UTC](https://www.ruby-forum.com/t/interpolation-question/184271 "2010-02-27T19:59:49Z")

</div>

Why does text = \<\<ENDTEXT this is an wibble of stuff bobble ENDTEXT wibble = 2.0 bobble = 3.0 newtext = text.gsub( /(.\*?)\</field\>/, “#{\\1}” ) puts newtext throw this error: ./test.rb:13: syntax error, unexpecte…

---

## [Can YARD do this?](https://www.ruby-forum.com/t/can-yard-do-this/184259)

<div class="topic-metadata">

**Author:** [@Claus\_Folke\_B](https://www.ruby-forum.com/u/Claus_Folke_B)\
**Replies:** 4\
**Last updated:** [February 27, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/can-yard-do-this/184259 "2010-02-27T18:56:06Z")

</div>

RDoc can be used to convert a string, possibly with RDoc “tags”, to HTML. Example: require ‘rubygems’ require ‘rdoc/markup/to\_html’ h = RDoc::Markup::ToHtml.new() puts h.convert(’== Section 2’) # Output : “ Sectio…

---

## [Ssl session shutdown](https://www.ruby-forum.com/t/ssl-session-shutdown/184265)

<div class="topic-metadata">

**Author:** [@Nicolas\_Martyanoff](https://www.ruby-forum.com/u/Nicolas_Martyanoff)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/ssl-session-shutdown/184265 "2010-02-27T17:51:03Z")

</div>

Hi, I have a ruby program which may reload itself with Kernel#exec. Since exec doesn’t close file descriptors, I’m able to keep the socket I use. One of these sockets uses SSL, with the openssl module. I need to sh…

---

## [Rope Gem](https://www.ruby-forum.com/t/rope-gem/184263)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [February 27, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/rope-gem/184263 "2010-02-27T17:23:33Z")

</div>

I’ve noticed there is no Rope implementation available via RubyGems even though there is a project on RubyForge (http://rubyforge.org/frs/? group\_id=4749) by Eric Ivancich and a Ruby Q. (http:// Ruby Quiz - Twisting a…

---

## [Ruby one on osx](https://www.ruby-forum.com/t/ruby-one-on-osx/184242)

<div class="topic-metadata">

**Author:** [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Replies:** 3\
**Last updated:** [February 27, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/ruby-one-on-osx/184242 "2010-02-27T16:41:22Z")

</div>

Hi, I’m new to ruby and mac’s. I just did a one click install to a 10.4 osx system of of Ruby O. from rubyforge, but I don’t know where it put it or how to put it in my path (im from windows background) Any help appr…

---

## [Regex for "not matching" an unneeded prefix substring?](https://www.ruby-forum.com/t/regex-for-not-matching-an-unneeded-prefix-substring/184225)

<div class="topic-metadata">

**Author:** [@jetkoten](https://www.ruby-forum.com/u/jetkoten)\
**Replies:** 9\
**Last updated:** [February 27, 2010, 4:32pm UTC](https://www.ruby-forum.com/t/regex-for-not-matching-an-unneeded-prefix-substring/184225 "2010-02-27T16:32:38Z")

</div>

Hi all, I’m new to Ruby and even newer to regex. I’m trying to write my first \[useful\] Ruby program and need a way to cut out an unneeded prefix substring and retain the substring that comes after it. Here are the ac…

---

## [Lsdvd and Ruby](https://www.ruby-forum.com/t/lsdvd-and-ruby/184261)

<div class="topic-metadata">

**Author:** [@davedave](https://www.ruby-forum.com/u/davedave)\
**Replies:** 1\
**Last updated:** [February 27, 2010, 3:02pm UTC](https://www.ruby-forum.com/t/lsdvd-and-ruby/184261 "2010-02-27T15:02:16Z")

</div>

Hello lsdvd rather handily offers to output the chapter structure of a DVD as a Ruby hash. lsdvd -Or -c -t1 (output as ruby hash, chapters, track 1) Thing is, I don’t understand how I can use this in a Ruby script. I…

---

## [Rails and WebSphere](https://www.ruby-forum.com/t/rails-and-websphere/246528)

<div class="topic-metadata">

**Author:** [@Miika\_LeppSSS\_nen](https://www.ruby-forum.com/u/Miika_LeppSSS_nen)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 10:34am UTC](https://www.ruby-forum.com/t/rails-and-websphere/246528 "2010-02-27T10:34:29Z")

</div>

Hi I’m trying to deploy simple rails 2.3.5 application to WebSphere 7.0 on Windows XP. Warbler version is 0.9.14 and I have: jruby-rack-0.9.7-SNAPSHOT.jar jruby-complete-1.4.0.jar in the WEB-INF/lib directory(checke…

---

## [Class Function call vs Normal Function call](https://www.ruby-forum.com/t/class-function-call-vs-normal-function-call/184181)

<div class="topic-metadata">

**Author:** [@THAKUR\_PRASHANT\_SIN](https://www.ruby-forum.com/u/THAKUR_PRASHANT_SIN)\
**Replies:** 7\
**Last updated:** [February 27, 2010, 8:04am UTC](https://www.ruby-forum.com/t/class-function-call-vs-normal-function-call/184181 "2010-02-27T08:04:41Z")

</div>

I am creating zip file using ruby zip there are two versions of creating the zip file 1st version part of class and in 2nd version running it alone. The kmz file created with 1st version doesn’t contain complete text …

---

## [Code Review: ComConversions](https://www.ruby-forum.com/t/code-review-comconversions/184248)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 5:15am UTC](https://www.ruby-forum.com/t/code-review-comconversions/184248 "2010-02-27T05:15:35Z")

</div>

tfpt review “/shelveset:ComConversions;REDMOND\\tomat” Comment : Implements implicit conversions to COM types when binding to COM objects. Tomas

---

## [\[Bug:trunk\] IO behaviors on mingw](https://www.ruby-forum.com/t/bug-trunk-io-behaviors-on-mingw/184204)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [February 27, 2010, 5:12am UTC](https://www.ruby-forum.com/t/bug-trunk-io-behaviors-on-mingw/184204 "2010-02-27T05:12:04Z")

</div>

akr e$B$5$se(B e$B1sF#$G$9!#e(B e$B0J2\<$N$h$&$K!“e(BIO e$B$K4X$7$Fe(B Linux e$B$He(B mingw e$B$G5sF0$,0c$$$^$9!#e(B e$B$=$l$\>$l;EMM$G$7$g$&$+!”%P%0$G$7$g$&$+!#e(B $ ./ruby -e ‘f = File.open(“foo”, “w”); IO.for\_fd(…

---

## [Google Query Language Parser?](https://www.ruby-forum.com/t/google-query-language-parser/184247)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 4:51am UTC](https://www.ruby-forum.com/t/google-query-language-parser/184247 "2010-02-27T04:51:34Z")

</div>

Has anyone created a ruby parser for Google Query Language, perhaps using treetop?

---

## [Code Review: RbHAPI](https://www.ruby-forum.com/t/code-review-rbhapi/184245)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 3:29am UTC](https://www.ruby-forum.com/t/code-review-rbhapi/184245 "2010-02-27T03:29:04Z")

</div>

tfpt review “/shelveset:RbHAPI;REDMOND\\tomat” Comment : Polishes Ruby Hosting APIs: Removes Ruby.GetExecutionContext Changes RequireFile to be an extension method on ScriptEngine. Adds missing comments. Removes unn…

---

## [Problem installing rdoc](https://www.ruby-forum.com/t/problem-installing-rdoc/184236)

<div class="topic-metadata">

**Author:** [@ashita](https://www.ruby-forum.com/u/ashita)\
**Replies:** 1\
**Last updated:** [February 27, 2010, 3:06am UTC](https://www.ruby-forum.com/t/problem-installing-rdoc/184236 "2010-02-27T03:06:49Z")

</div>

Hello Group, ruby version: ruby 1.9.1p378 I used the commands presented below to install rdoc. gem install rdoc gem rdoc --all However, I was not able to load rdoc/usage irb(main):001:0\> require ‘rdoc/usage’ LoadE…

---

## [Unable to install libxml-ruby on Win2k3 machine](https://www.ruby-forum.com/t/unable-to-install-libxml-ruby-on-win2k3-machine/184167)

<div class="topic-metadata">

**Author:** [@sirisha](https://www.ruby-forum.com/u/sirisha)\
**Replies:** 3\
**Last updated:** [February 27, 2010, 3:05am UTC](https://www.ruby-forum.com/t/unable-to-install-libxml-ruby-on-win2k3-machine/184167 "2010-02-27T03:05:38Z")

</div>

Hi I am trying to install libxml using the command libxml-ruby and I am seeing the following errors. Building native extensions. This could take a while… ERROR: Error installing libxml-ruby: ERROR: Failed to build…

---

## [Code Review: stack traces](https://www.ruby-forum.com/t/code-review-stack-traces/184237)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 1:09am UTC](https://www.ruby-forum.com/t/code-review-stack-traces/184237 "2010-02-27T01:09:09Z")

</div>

tpft review /shelveset:STraces2;tomat DLR interpreter: Inlines RunInstructions into Run to reduce stack consumption. The interpreter saves interpreted stack trace when it catches an exception. The stack trace is stor…

---

## [You dream API for a text editor](https://www.ruby-forum.com/t/you-dream-api-for-a-text-editor/184107)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 5\
**Last updated:** [February 27, 2010, 12:03am UTC](https://www.ruby-forum.com/t/you-dream-api-for-a-text-editor/184107 "2010-02-27T00:03:01Z")

</div>

Hi Friends, I am doing a bit of research for a project I am helping out with - a text editor - and the following question has been asked: what would your dream API look like and be capable of? Obviously, the API will …

---

## [Mechanize MySQL and threads - deadlock?](https://www.ruby-forum.com/t/mechanize-mysql-and-threads-deadlock/184210)

<div class="topic-metadata">

**Author:** [@willwach](https://www.ruby-forum.com/u/willwach)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/mechanize-mysql-and-threads-deadlock/184210 "2010-02-26T20:56:55Z")

</div>

First of all: I’m still new to Ruby. So pointing me to documentation or books is fine. Use case: Use mechanize to gather information. Because there are many pages I’d like to run multiple threads each fetching pages.…

---

## [Mail version 2.0 released](https://www.ruby-forum.com/t/mail-version-2-0-released/182141)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/mail-version-2-0-released/182141 "2010-02-26T19:11:34Z")

</div>

Lots of new features, but a few API changes (thus the MAJOR version change). Basics are: Network Delivery classes are no longer singletons, each instance of Mail can have it’s own delivery method Attachments are jus…

---

## [Mms2r 3.0.0 Released](https://www.ruby-forum.com/t/mms2r-3-0-0-released/184212)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [February 26, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/mms2r-3-0-0-released/184212 "2010-02-26T19:04:33Z")

</div>

mms2r version 3.0.0 has been released! http://mms2r.rubyforge.org/ http://github.com/monde/mms2r http://github.com/monde/mms2r/issues http://peepcode.com/products/mms2r-pdf DESCRIPTION MMS2R is a library that deco…

---

## [RubyZip help needed](https://www.ruby-forum.com/t/rubyzip-help-needed/184118)

<div class="topic-metadata">

**Author:** [@THAKUR\_PRASHANT\_SIN](https://www.ruby-forum.com/u/THAKUR_PRASHANT_SIN)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/rubyzip-help-needed/184118 "2010-02-26T17:20:55Z")

</div>

I am creating zip file using ruby zip there are two versions of creating the zip file 1st version part of class and in 2nd version running it alone. The kmz file created with 1st version doesn’t contain complete text …

---

## [Execute a stub written in plsql](https://www.ruby-forum.com/t/execute-a-stub-written-in-plsql/184201)

<div class="topic-metadata">

**Author:** [@xboxer21](https://www.ruby-forum.com/u/xboxer21)\
**Replies:** 0\
**Last updated:** [February 26, 2010, 5:04pm UTC](https://www.ruby-forum.com/t/execute-a-stub-written-in-plsql/184201 "2010-02-26T17:04:31Z")

</div>

Hello All, how can I use ruby to execute a block of plsql code? The sql that I’m trying to execute is inside a .sql file here is what I’ve tried so far and it does not work. What is the right way to get this working …

---

## [Fwd: Question jruby and java heap memory message](https://www.ruby-forum.com/t/fwd-question-jruby-and-java-heap-memory-message/184095)

<div class="topic-metadata">

**Author:** [@Moises\_S](https://www.ruby-forum.com/u/Moises_S)\
**Replies:** 23\
**Last updated:** [February 26, 2010, 4:48pm UTC](https://www.ruby-forum.com/t/fwd-question-jruby-and-java-heap-memory-message/184095 "2010-02-26T16:48:08Z")

</div>

Hi all, I’m new using jruby and celerity, I was trying to run my script in background with 100 user threads. If I ran the script with 10 users I will get the results that I want, but when I tried to execute the same …

---

## [Counting a string](https://www.ruby-forum.com/t/counting-a-string/184193)

<div class="topic-metadata">

**Author:** [@Benedikt\_MSSS\_ller](https://www.ruby-forum.com/u/Benedikt_MSSS_ller)\
**Replies:** 4\
**Last updated:** [February 26, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/counting-a-string/184193 "2010-02-26T15:50:12Z")

</div>

Hi I want to â€žcountâ€œ a string. I don’t know, how to express it better, because of that I’ll try to explain it. I have a string, say ‘a’. Now I want to increase it, so it would be ‘b’. I increase it again, it woul…

---

## [Anyone interested in implementing Etc module for Mono?](https://www.ruby-forum.com/t/anyone-interested-in-implementing-etc-module-for-mono/184085)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 12\
**Last updated:** [February 26, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/anyone-interested-in-implementing-etc-module-for-mono/184085 "2010-02-26T15:11:35Z")

</div>

http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3543 blocks using RubyGems on \*nix. It should be fairly easy to implement Etc.rb as pure Ruby code using the File functionality. The spec for Etc is at http:/…

---

## [CVS from Excel Encoding issue](https://www.ruby-forum.com/t/cvs-from-excel-encoding-issue/184018)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/cvs-from-excel-encoding-issue/184018 "2010-02-26T15:08:36Z")

</div>

Using Ruby 1.8 (for Rails 2.3.5) I have a cvs file that was exported from an Excel file. Some of the text contains characters like â€œTest in quotesâ€ (I think these are smart quotes) I can properly change this to U…

---

## [\[Bug #6\] sprintf() of %f on Windows(MSVCRT)](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/184195)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 0\
**Last updated:** [February 26, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/184195 "2010-02-26T14:32:56Z")

</div>

e$B%A%1%C%He(B #6 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) Target version 1.9.1 Release Candidatee$B$+$ie(B1.9.2e$B$KJQ99e(B ruby -v ruby 1.9.2dev (2010-02-26) \[i386-mingw32\]e$B$K%;%C%He(B e$B1sF#$G$9!#e(B e$B8E$$%A%1…

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

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