# Ruby

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

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

---

## [Ruby and CoCreateInstance](https://www.ruby-forum.com/t/ruby-and-cocreateinstance/195955)

<div class="topic-metadata">

**Author:** [@thomthom](https://www.ruby-forum.com/u/thomthom)\
**Replies:** 2\
**Last updated:** [October 4, 2010, 8:29am UTC](https://www.ruby-forum.com/t/ruby-and-cocreateinstance/195955 "2010-10-04T08:29:33Z")

</div>

I am writing plugins for Google SketchUp using their Ruby API. One of the common problems we (SketchUp scripters) have is that when a script is performing intensive operations it locks up the SketchUp UI and there is …

---

## [\[Ruby-Feature#3902\]\[Open\] Integer#to\_bn in OpenSSL](https://www.ruby-forum.com/t/ruby-feature-3902-open-integer-to-bn-in-openssl/195951)

<div class="topic-metadata">

**Author:** [@Ippei\_Obayashi](https://www.ruby-forum.com/u/Ippei_Obayashi)\
**Replies:** 1\
**Last updated:** [October 4, 2010, 3:31am UTC](https://www.ruby-forum.com/t/ruby-feature-3902-open-integer-to-bn-in-openssl/195951 "2010-10-04T03:31:50Z")

</div>

Feature #3902: Integer#to\_bn in OpenSSL http://redmine.ruby-lang.org/issues/show/3902 e$B5/I\<\<Te(B: Ippei Obayashi e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext ext/openssl e$B$GDj5A$5$l$F$$$ke(B …

---

## [Free to use and zo cost Ruby book](https://www.ruby-forum.com/t/free-to-use-and-zo-cost-ruby-book/195723)

<div class="topic-metadata">

**Author:** [@mindaslab](https://www.ruby-forum.com/u/mindaslab)\
**Replies:** 3\
**Last updated:** [October 4, 2010, 1:36am UTC](https://www.ruby-forum.com/t/free-to-use-and-zo-cost-ruby-book/195723 "2010-10-04T01:36:07Z")

</div>

Hello People, My love for Ruby has resulted in this: http://www.lulu.com/product/ebook/i-love-ruby-(free-edition)/12917092 Please enjoy the book, give feedback, if you can buy it to support my venture. Happy Coding! …

---

## [Puts to stream?](https://www.ruby-forum.com/t/puts-to-stream/195950)

<div class="topic-metadata">

**Author:** [@callyworld](https://www.ruby-forum.com/u/callyworld)\
**Replies:** 3\
**Last updated:** [October 3, 2010, 9:20pm UTC](https://www.ruby-forum.com/t/puts-to-stream/195950 "2010-10-03T21:20:17Z")

</div>

I’ve got simple statements like so: puts “hi” puts “there” puts name Wanted to adjust it to write to IO object (a string) instead of stdout. This is the kind of construction I’d like to use: my\_out = String.new pu…

---

## [MetaRegexp: experimental extensions to Regexp (requesting feedback)](https://www.ruby-forum.com/t/metaregexp-experimental-extensions-to-regexp-requesting-feedback/195908)

<div class="topic-metadata">

**Author:** [@ammar](https://www.ruby-forum.com/u/ammar)\
**Replies:** 3\
**Last updated:** [October 3, 2010, 9:06pm UTC](https://www.ruby-forum.com/t/metaregexp-experimental-extensions-to-regexp-requesting-feedback/195908 "2010-10-03T21:06:49Z")

</div>

Fellow Rubyists, I put together a couple of Regexp extension experiments (aka hacks) that I would like to run by those how might be interested and have the time. The code is at: GitHub - ammar/meta\_re: An experimenta…

---

## [Los Angeles Ruby Conference 2011](https://www.ruby-forum.com/t/los-angeles-ruby-conference-2011/195948)

<div class="topic-metadata">

**Author:** [@Coby\_Randquist](https://www.ruby-forum.com/u/Coby_Randquist)\
**Replies:** 0\
**Last updated:** [October 3, 2010, 6:20pm UTC](https://www.ruby-forum.com/t/los-angeles-ruby-conference-2011/195948 "2010-10-03T18:20:00Z")

</div>

The Los A. Ruby Conference 2011 will be held February 3rd-5th, 2011, in San Pedro, CA. We will be doing two days of training and hands on workshops followed by a single track one day conference on Saturday the 5th. F…

---

## [Point me to help w/ multithreading in 1.9.2-p0](https://www.ruby-forum.com/t/point-me-to-help-w-multithreading-in-1-9-2-p0/195678)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 10\
**Last updated:** [October 3, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/point-me-to-help-w-multithreading-in-1-9-2-p0/195678 "2010-10-03T18:10:38Z")

</div>

Hi Folks - A week or two ago, I pinged this list for recommendations on a load testing gem. Unfortunately, didn’t see much response from that that pointed me in the right direction. So I’ve set about to write my own…

---

## [Rdoc](https://www.ruby-forum.com/t/rdoc/195936)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 1\
**Last updated:** [October 3, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/rdoc/195936 "2010-10-03T16:34:39Z")

</div>

Hi All I’m trying to write a simple program that when given a a few paragraphs of plain text from a file, will extract various metadata on the file…i.e. Number of paragraphs, number of lines, number of words, etc… I…

---

## [\[Bug #3339\] win32ole test failure](https://www.ruby-forum.com/t/bug-3339-win32ole-test-failure/189137)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 19\
**Last updated:** [October 3, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/bug-3339-win32ole-test-failure/189137 "2010-10-03T13:12:09Z")

</div>

Bug #3339: win32ole test failure http://redmine.ruby-lang.org/issues/show/3339 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Masaki S., e$B%+%F%4%je(B: ext, Target versio…

---

## [Microsoft Word metadata extraction query](https://www.ruby-forum.com/t/microsoft-word-metadata-extraction-query/195837)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 6\
**Last updated:** [October 3, 2010, 11:45am UTC](https://www.ruby-forum.com/t/microsoft-word-metadata-extraction-query/195837 "2010-10-03T11:45:34Z")

</div>

Hey all, Is anyone aware of a library to identify the use of track changes in Microsoft Word documents? I basically and looking for something to scan the file and say ‘Track Changes - Y/N’ Many thanks in advance

---

## [Anyone running v1.9.2 with Ubuntu 10.04?](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803)

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 7\
**Last updated:** [October 3, 2010, 1:16am UTC](https://www.ruby-forum.com/t/anyone-running-v1-9-2-with-ubuntu-10-04/194803 "2010-10-03T01:16:05Z")

</div>

I had LoadError problems when my box was running Ruby v1.8.? and v1.9.2. Since I didn’t get an answer to a recent post about the issue, I decided to uninstall both versions and attempt to get on v1.9.2. But there’s no …

---

## [Newbe - how to add onClick to select option?](https://www.ruby-forum.com/t/newbe-how-to-add-onclick-to-select-option/195926)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 3, 2010, 1:01am UTC](https://www.ruby-forum.com/t/newbe-how-to-add-onclick-to-select-option/195926 "2010-10-03T01:01:51Z")

</div>

I am just learning Ruby. I created a simple application where an record is added from a “new” view. Some input fields are defined as a select option (using a helper). Now I want to add a Javascript function with “oncl…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/195923)

<div class="topic-metadata">

**Author:** [@Skott\_Young](https://www.ruby-forum.com/u/Skott_Young)\
**Replies:** 0\
**Last updated:** [October 2, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/unsubscribe/195923 "2010-10-02T23:17:05Z")

</div>

unsubscribe

---

## [Ruby String: How do I strip anything between two parenthesis](https://www.ruby-forum.com/t/ruby-string-how-do-i-strip-anything-between-two-parenthesis/195895)

<div class="topic-metadata">

**Author:** [@goodfriend](https://www.ruby-forum.com/u/goodfriend)\
**Replies:** 8\
**Last updated:** [October 2, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/ruby-string-how-do-i-strip-anything-between-two-parenthesis/195895 "2010-10-02T20:58:23Z")

</div>

Hi, Given a string that contains one or more substrings within parenthesis, such as: myString = ‘This is (variable length substring #1) (variable length substring #2) string’ How would I effectively strip out anythi…

---

## [Activerecord installation](https://www.ruby-forum.com/t/activerecord-installation/195864)

<div class="topic-metadata">

**Author:** [@orange089](https://www.ruby-forum.com/u/orange089)\
**Replies:** 4\
**Last updated:** [October 2, 2010, 8:16pm UTC](https://www.ruby-forum.com/t/activerecord-installation/195864 "2010-10-02T20:16:50Z")

</div>

when i try to install activerecord gem on ironruby, i’ve got: igem install activerecord -r --no-rdoc --no-ri ERROR: Error installing activerecord: activesupport requires Ruby version \>= 1.8.7 (‘ir.exe -e “puts RUB…

---

## [Can't convert Float into String](https://www.ruby-forum.com/t/cant-convert-float-into-string/195890)

<div class="topic-metadata">

**Author:** [@anthonyob](https://www.ruby-forum.com/u/anthonyob)\
**Replies:** 5\
**Last updated:** [October 2, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/cant-convert-float-into-string/195890 "2010-10-02T17:15:04Z")

</div>

The error is p018arrays.rb:37:in ‘\[\]=’ can’t convert Float into String from p018arrays.rb:37:in ‘’ This is the code I am using: p018arrays.rb Arrays Empty array var1 = \[\] Array index starts from 0 puts var1\[0\] An a…

---

## [Seeking sponsors to fly me to RubyConf](https://www.ruby-forum.com/t/seeking-sponsors-to-fly-me-to-rubyconf/195746)

<div class="topic-metadata">

**Author:** [@Eleanor\_McHugh](https://www.ruby-forum.com/u/Eleanor_McHugh)\
**Replies:** 6\
**Last updated:** [October 2, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/seeking-sponsors-to-fly-me-to-rubyconf/195746 "2010-10-02T16:20:59Z")

</div>

UK-based full-time open source developer (http://golightly.games-with-brains.net) on a very restricted budget is booked to speak at RubyConf about this: http://www.rubyconf.org/presentations/34. Urgent assistance soug…

---

## [Ruby on web](https://www.ruby-forum.com/t/ruby-on-web/195762)

<div class="topic-metadata">

**Author:** [@joaomello](https://www.ruby-forum.com/u/joaomello)\
**Replies:** 4\
**Last updated:** [October 2, 2010, 4:11pm UTC](https://www.ruby-forum.com/t/ruby-on-web/195762 "2010-10-02T16:11:17Z")

</div>

Hi all! When I use rubt on web I need to put ‘#!/usr/bin/ruby’ in header, if wiil use in my computer will be different, how can I use this dynamically?

---

## [Creating a "fluent" interface](https://www.ruby-forum.com/t/creating-a-fluent-interface/195907)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 0\
**Last updated:** [October 2, 2010, 4:09pm UTC](https://www.ruby-forum.com/t/creating-a-fluent-interface/195907 "2010-10-02T16:09:42Z")

</div>

I’ve faced this issue several times. I have a method that adds a component to a container. Should it return self (for method chaining), or the component. The problem arises when the method ‘add’ might create the compo…

---

## [Ruby 1.9.2: /\\w/u does not match umlauts ("Ã¼")](https://www.ruby-forum.com/t/ruby-1-9-2-w-u-does-not-match-umlauts-a/195753)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 5\
**Last updated:** [October 2, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/ruby-1-9-2-w-u-does-not-match-umlauts-a/195753 "2010-10-02T15:56:58Z")

</div>

I found that, unlike Ruby 1.8, the word character class in Ruby 1.9 regexes does not match german umlauts (or any other letters other than ASCII). According to the oniguruma documentation (サービス終了のお知らせ), it should matc…

---

## [New to Ruby, Looking for Help With Basic Program](https://www.ruby-forum.com/t/new-to-ruby-looking-for-help-with-basic-program/195877)

<div class="topic-metadata">

**Author:** [@micako](https://www.ruby-forum.com/u/micako)\
**Replies:** 11\
**Last updated:** [October 2, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/new-to-ruby-looking-for-help-with-basic-program/195877 "2010-10-02T15:51:06Z")

</div>

I am teaching myself Ruby and am trying to figure out why this program is doing what it is doing: puts ‘Year 1?’ year1 = gets.chomp puts ‘Year 2?’ year2 = gets.chomp while (year1.to\_i \<= year2.to\_i) if year1.to\_i …

---

## [SMTP Server Connection Errno ETIMEOUT](https://www.ruby-forum.com/t/smtp-server-connection-errno-etimeout/195901)

<div class="topic-metadata">

**Author:** [@argongold](https://www.ruby-forum.com/u/argongold)\
**Replies:** 0\
**Last updated:** [October 2, 2010, 11:54am UTC](https://www.ruby-forum.com/t/smtp-server-connection-errno-etimeout/195901 "2010-10-02T11:54:07Z")

</div>

Hello, I am trying to test this simple program for sending e-mail using ‘net/smtp’ but not successful. Can any one help me to indicate the issue I am facing here . Note: I do not have any local SMTP server on my mach…

---

## [System() command line args](https://www.ruby-forum.com/t/system-command-line-args/195836)

<div class="topic-metadata">

**Author:** [@larryj](https://www.ruby-forum.com/u/larryj)\
**Replies:** 6\
**Last updated:** [October 2, 2010, 10:23am UTC](https://www.ruby-forum.com/t/system-command-line-args/195836 "2010-10-02T10:23:57Z")

</div>

System command wonâ€™t work with arguments. For example, a simple test in Windows (launch Notepad from ruby…) command = 'c:\\windows\\notepadâ€™ arg = â€œmyfile.txtâ€ system(command, arg) Remove the arg and Notepad l…

---

## [Insight on the future of IronRuby?](https://www.ruby-forum.com/t/insight-on-the-future-of-ironruby/195827)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 2\
**Last updated:** [October 2, 2010, 12:34am UTC](https://www.ruby-forum.com/t/insight-on-the-future-of-ironruby/195827 "2010-10-02T00:34:07Z")

</div>

Hi guys (and girls, if any), I’d really, really like to have any hint of where IronRuby and the DLR are going, roughly. We’re considering using IR as a scripting engine for a fairly important desktop app, so I thoug…

---

## [Scrubyt scraper help](https://www.ruby-forum.com/t/scrubyt-scraper-help/195886)

<div class="topic-metadata">

**Author:** [@camis](https://www.ruby-forum.com/u/camis)\
**Replies:** 0\
**Last updated:** [October 1, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/scrubyt-scraper-help/195886 "2010-10-01T22:05:12Z")

</div>

Hello all. I’m trying to build a simple web scraper to mine some data off the yellow pages. Specifically, this link: I’m scraping all the information that I need correctly. I’m very pleased about that! However, I…

---

## [Bug in 1.8.7-p249, the version shipped with Ubuntu 10.04](https://www.ruby-forum.com/t/bug-in-1-8-7-p249-the-version-shipped-with-ubuntu-10-04/195868)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [October 1, 2010, 9:36pm UTC](https://www.ruby-forum.com/t/bug-in-1-8-7-p249-the-version-shipped-with-ubuntu-10-04/195868 "2010-10-01T21:36:46Z")

</div>

I recently upgraded from 1.8.7-p72 to 1.8.7-p249 and a piece of code that I had long relied on stopped working. Here is an example of the issue: class X def q; “q”; end end class Y \< X def q f do super() end e…

---

## [ANN: Sequel 3.16.0 Released](https://www.ruby-forum.com/t/ann-sequel-3-16-0-released/195876)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [October 1, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-16-0-released/195876 "2010-10-01T18:40:31Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. Sequel includes a comprehensive ORM layer f…

---

## [Question regarding pik/ruby/jRuby](https://www.ruby-forum.com/t/question-regarding-pik-ruby-jruby/195852)

<div class="topic-metadata">

**Author:** [@Jared\_Miller](https://www.ruby-forum.com/u/Jared_Miller)\
**Replies:** 2\
**Last updated:** [October 1, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/question-regarding-pik-ruby-jruby/195852 "2010-10-01T17:51:51Z")

</div>

I’m very new with Ruby, and am going through Chris P.'s Learn to Program at the moment. For the hell of it, though, I went ahead and installed pik/JRuby so I could play around with an article I read, on building desk…

---

## [Small graphics library?](https://www.ruby-forum.com/t/small-graphics-library/195829)

<div class="topic-metadata">

**Author:** [@quintus](https://www.ruby-forum.com/u/quintus)\
**Replies:** 3\
**Last updated:** [October 1, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/small-graphics-library/195829 "2010-10-01T17:39:05Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, Does somebody know about a rather small graphics library for Ruby? RMagick is way to big and complicated to install for my purposes (just rectangular picture c…

---

## [Operator Overload](https://www.ruby-forum.com/t/operator-overload/195679)

<div class="topic-metadata">

**Author:** [@saturdayplace](https://www.ruby-forum.com/u/saturdayplace)\
**Replies:** 7\
**Last updated:** [October 1, 2010, 4:07pm UTC](https://www.ruby-forum.com/t/operator-overload/195679 "2010-10-01T16:07:11Z")

</div>

Hey guys, I’m slowly getting the hang of Ruby, I’m a Java guy by trade. I really like Ruby and am picking up on it pretty quickly, but for some reason my overload of the “+” operator is not working. Here is the code: …

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

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