# Ruby

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

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

---

## [\[Bug #2000\] Change the license to "GPLv2+ or Ruby's original"](https://www.ruby-forum.com/t/bug-2000-change-the-license-to-gplv2-or-rubys-original/174419)

<div class="topic-metadata">

**Author:** [@Mamoru\_T](https://www.ruby-forum.com/u/Mamoru_T)\
**Replies:** 10\
**Last updated:** [September 2, 2009, 9:46am UTC](https://www.ruby-forum.com/t/bug-2000-change-the-license-to-gplv2-or-rubys-original/174419 "2009-09-02T09:46:30Z")

</div>

Bug #2000: Change the license to “GPLv2+ or Ruby’s original”. http://redmine.ruby-lang.org/issues/show/2000 e$B5/I\<\<Te(B: Mamoru T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High ruby -v: 1.8.x/1.9.x Hello. Recently re…

---

## [Minitest assert\_throws, why rescue?](https://www.ruby-forum.com/t/minitest-assert-throws-why-rescue/174790)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [September 2, 2009, 9:44am UTC](https://www.ruby-forum.com/t/minitest-assert-throws-why-rescue/174790 "2009-09-02T09:44:09Z")

</div>

In minitest why does assert\_throws rescue ArgumentError/NameError ? def assert\_throws sym, msg = nil default = “Expected #{mu\_pp(sym)} to have been thrown” caught = true catch(sym) do begin yield rescue ArgumentEr…

---

## [Annoying: cannot write ' user=" IÃ±aki ' in a Ruby1.9 script](https://www.ruby-forum.com/t/annoying-cannot-write-user-ia-aki-in-a-ruby1-9-script/174776)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [September 2, 2009, 3:47am UTC](https://www.ruby-forum.com/t/annoying-cannot-write-user-ia-aki-in-a-ruby1-9-script/174776 "2009-09-02T03:47:38Z")

</div>

Hi, I’m really annoyed, please try this: Open a file (in a UTF-8 system as any modern Linux) and write: script.rb user = “IÃ±aki” puts user Now run: ~# ruby1.8 script.rb =\> “IÃ±aki” ~# ruby1.9 script.rb =\> invalid…

---

## [Process#poll](https://www.ruby-forum.com/t/process-poll/174761)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [September 2, 2009, 3:05am UTC](https://www.ruby-forum.com/t/process-poll/174761 "2009-09-02T03:05:33Z")

</div>

Question. Situation: I want to start a process, then loop, checking for its status, so that I can “know” when it finishes, and not block the Tk.mainloop. Anybody know how to determine runningness of a process in ruby…

---

## [Accessing hash values](https://www.ruby-forum.com/t/accessing-hash-values/174766)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 4\
**Last updated:** [September 2, 2009, 12:54am UTC](https://www.ruby-forum.com/t/accessing-hash-values/174766 "2009-09-02T00:54:40Z")

</div>

Hi all, this is my first post to the Ruby Forum. Cheers. And thanks for helping out a newb. Quesiton: How do you access multiple values from a hash? For Example, I have a hash of computer names, and their associated u…

---

## [Error with an array of strings](https://www.ruby-forum.com/t/error-with-an-array-of-strings/174573)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 9\
**Last updated:** [September 1, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/error-with-an-array-of-strings/174573 "2009-09-01T23:17:07Z")

</div>

Hi, This is clearly a Ruby beginner question, so please be nice :slight\_smile: This program is supposed to take user input of numbers and average the numbers. I figured I’d create a loop, an array, and then average th…

---

## [\[Bug #1768\](Closed) json $B$G(B Kernel $B$KDI2C$5$l$k%a%=%C%I$O(B private $B$G$"$k$Y$-(B](https://www.ruby-forum.com/t/bug-1768-closed-json-b-g-b-kernel-b-kdi2c-5-l-k-a-c-i-o-b-private-b-g-k-y-b/174756)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/bug-1768-closed-json-b-g-b-kernel-b-kdi2c-5-l-k-a-c-i-o-b-private-b-g-k-y-b/174756 "2009-09-01T19:19:29Z")

</div>

e$B%A%1%C%He(B #1768 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B json 1.1.9e$B$G$H$j$3$^$l$^$7$?e(B http://redmine.ruby-lang.org/issues/show/1768

---

## [AES encryption between c# and ruby](https://www.ruby-forum.com/t/aes-encryption-between-c-and-ruby/174737)

<div class="topic-metadata">

**Author:** [@Anth](https://www.ruby-forum.com/u/Anth)\
**Replies:** 6\
**Last updated:** [September 1, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/aes-encryption-between-c-and-ruby/174737 "2009-09-01T18:10:24Z")

</div>

Having some issues getting this to work, dont know much about encryption and I think im just doing a silly misstake somewhere. Would appreciate a pointer or two in the correct direction. Encrypting “a” in c# using AES…

---

## [Hpricot?](https://www.ruby-forum.com/t/hpricot/174750)

<div class="topic-metadata">

**Author:** [@chromag](https://www.ruby-forum.com/u/chromag)\
**Replies:** 3\
**Last updated:** [September 1, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/hpricot/174750 "2009-09-01T18:01:02Z")

</div>

What happened to Hpricot? The github link no longer works. Is there a better API to use for web scraping?

---

## [Easy Proxy](https://www.ruby-forum.com/t/easy-proxy/174745)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 3\
**Last updated:** [September 1, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/easy-proxy/174745 "2009-09-01T16:43:45Z")

</div>

Hi, it just occurred to me that one sometimes might want to use a proxy for an instance variable which restricts access in some way. class Proc def proxy(meth) class\<\<self;self;end.send(:alias\_method, meth, :call) …

---

## [Amazon Product API hmac signature?](https://www.ruby-forum.com/t/amazon-product-api-hmac-signature/167650)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 3\
**Last updated:** [September 1, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/amazon-product-api-hmac-signature/167650 "2009-09-01T16:17:33Z")

</div>

So, starting August 15th, the Amazon product web service API (the one where you can get info about amazon products, manipulate wishlists and shopping carts, etc), is going to require a form of cryptographic signature …

---

## [Help on phps $$ equivalent in ruby](https://www.ruby-forum.com/t/help-on-phps-equivalent-in-ruby/174720)

<div class="topic-metadata">

**Author:** [@artrat](https://www.ruby-forum.com/u/artrat)\
**Replies:** 10\
**Last updated:** [September 1, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/help-on-phps-equivalent-in-ruby/174720 "2009-09-01T15:59:49Z")

</div>

i just cant find this anywhere, googling for a while and read up tons on the docs but no joy, I must have overlooked this somewhere how do I create the following in Ruby php:: $text=“Something” $$text=Someobject.new …

---

## [Activate radio button (win32ole)](https://www.ruby-forum.com/t/activate-radio-button-win32ole/174734)

<div class="topic-metadata">

**Author:** [@broken](https://www.ruby-forum.com/u/broken)\
**Replies:** 3\
**Last updated:** [September 1, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/activate-radio-button-win32ole/174734 "2009-09-01T14:58:56Z")

</div>

Hi there folks! I am trying to automate a browser task with win32ole. The browser is Internet Explorer. I used this tutorial: So the code for clicking a normal button goes like require ‘win32ole’ ie = WIN32OLE.new…

---

## [Basic help for uni paper](https://www.ruby-forum.com/t/basic-help-for-uni-paper/174735)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 1\
**Last updated:** [September 1, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/basic-help-for-uni-paper/174735 "2009-09-01T14:07:24Z")

</div>

Hi, I am a German student and I just need some basic help for a “term paper”. I have to write a compiler for ruby with EBNF and save the results in a sqlite database. The problem that i have, is that I cant find any …

---

## [\[Bug #2024\] memory leak in eval with TOPLEVEL\_BINDING](https://www.ruby-forum.com/t/bug-2024-memory-leak-in-eval-with-toplevel-binding/174666)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [September 1, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/bug-2024-memory-leak-in-eval-with-toplevel-binding/174666 "2009-09-01T13:07:42Z")

</div>

Bug #2024: memory leak in eval with TOPLEVEL\_BINDING http://redmine.ruby-lang.org/issues/show/2024 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1.9.x …

---

## [HTML posting to ruby script?](https://www.ruby-forum.com/t/html-posting-to-ruby-script/174223)

<div class="topic-metadata">

**Author:** [@oshybrid](https://www.ruby-forum.com/u/oshybrid)\
**Replies:** 6\
**Last updated:** [September 1, 2009, 9:53am UTC](https://www.ruby-forum.com/t/html-posting-to-ruby-script/174223 "2009-09-01T09:53:32Z")

</div>

Ok new to Ruby. I have an HTML form that I want a user to enter data, and when the SUBMIT button is pressed, the HTML POST (with the data) goes to a Ruby script to process the data (no web server running) into ruby va…

---

## [Snow Leopard advice for Ruby/Rails developers](https://www.ruby-forum.com/t/snow-leopard-advice-for-ruby-rails-developers/174635)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 6\
**Last updated:** [September 1, 2009, 8:57am UTC](https://www.ruby-forum.com/t/snow-leopard-advice-for-ruby-rails-developers/174635 "2009-09-01T08:57:36Z")

</div>

Lots of ruby/rails developers are Mac users so I thought this might be of interest here. Here are some bumps I’ve had in the upgrade. If you are using any macport installed software, get a list before you upgrade: …

---

## ["insecure world writable" fix?](https://www.ruby-forum.com/t/insecure-world-writable-fix/99165)

<div class="topic-metadata">

**Author:** [@seanhussey](https://www.ruby-forum.com/u/seanhussey)\
**Replies:** 7\
**Last updated:** [September 1, 2009, 8:47am UTC](https://www.ruby-forum.com/t/insecure-world-writable-fix/99165 "2009-09-01T08:47:39Z")

</div>

Hello All, I have come up with a fix/workaround which turns off the “insecure world writable” warning message. In my code, I pass a string (exec\_str) to exec: exec\_str = "./foo.pl test" exec(exec\_str) Depending on m…

---

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

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 7:35am UTC](https://www.ruby-forum.com/t/mms2r-2-3-0-released/174724 "2009-09-01T07:35:36Z")

</div>

mms2r version 2.3.0 has been released! http://mms2r.rubyforge.org/ http://rubyforge.org/tracker/?group\_id=3065 http://github.com/monde/mms2r/tree/master http://peepcode.com/products/mms2r-pdf DESCRIPTION MMS2R is …

---

## [Sql script with regex](https://www.ruby-forum.com/t/sql-script-with-regex/174674)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 2\
**Last updated:** [September 1, 2009, 5:59am UTC](https://www.ruby-forum.com/t/sql-script-with-regex/174674 "2009-09-01T05:59:59Z")

</div>

"INSERT INTO CBM\_CT\_BY\_CLT ( " " CST\_CD, " " BLK\_REG\_SEQ, " " BLK\_REG\_DT, " " DEL\_FLG " ") " "VALUES ( "… how can I get the table name(CBM\_CT\_BY\_CLT) and column name ( CST\_CD …) from this …

---

## [Having problems with Gem version on Snow Leopard](https://www.ruby-forum.com/t/having-problems-with-gem-version-on-snow-leopard/174622)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 6\
**Last updated:** [September 1, 2009, 1:17am UTC](https://www.ruby-forum.com/t/having-problems-with-gem-version-on-snow-leopard/174622 "2009-09-01T01:17:22Z")

</div>

So, the migration to Snow Leopard has gone well, except that it’s totally bollixed up my ruby/rails development environment. It looks like Snow Leopard shipped with gem version 1.2.0 is this right? $ which gem /usr…

---

## [RubyGems - change location from local?](https://www.ruby-forum.com/t/rubygems-change-location-from-local/174546)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 9\
**Last updated:** [September 1, 2009, 1:16am UTC](https://www.ruby-forum.com/t/rubygems-change-location-from-local/174546 "2009-09-01T01:16:46Z")

</div>

I am having a problem on my server with gems… it manifested as it was giving me an error when starting mongrel: RubyGem version error: rack(0.3.0 not ~\> 1.0.0) I installed and checked using gem list, and it seems to b…

---

## [Time Format Conversions](https://www.ruby-forum.com/t/time-format-conversions/174709)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 6\
**Last updated:** [August 31, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/time-format-conversions/174709 "2009-08-31T23:20:49Z")

</div>

Hi all, So, I’m trying to find out the best practice for converting a time format from the following: “3:00 PM” “10:00 PM” “1:00 AM” TO: “15:00:00” “22:00:00” “01:00:00” Can anyone help me out on what I need to…

---

## [Uninstall ruby 1.9.0](https://www.ruby-forum.com/t/uninstall-ruby-1-9-0/174681)

<div class="topic-metadata">

**Author:** [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/uninstall-ruby-1-9-0/174681 "2009-08-31T22:08:12Z")

</div>

hi i have installed ruby 1.9.0 in /usr/local/bin also i have ruby 1.8.7 in /usr/bin now i want to install ruby 1.9.1 as this is a stable version and i want to install this in place of ruby 1.9.0 (i.e. inside /usr/loc…

---

## [Rev 0.3.0: Now with filesystem monitoring](https://www.ruby-forum.com/t/rev-0-3-0-now-with-filesystem-monitoring/174591)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/rev-0-3-0-now-with-filesystem-monitoring/174591 "2009-08-31T21:27:12Z")

</div>

Rev is a high-performance event library for Ruby, providing event loops for monitoring network, timer, and now filesystem events. Rev is based on the libev C library. http://github.com/tarcieri/rev/ Rev 0.3.0 prov…

---

## [String replace](https://www.ruby-forum.com/t/string-replace/174707)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/string-replace/174707 "2009-08-31T18:55:00Z")

</div>

I wondering if there is a string replace function. I have a string that looks something like: 2YP/P:\[CTYCODE\]B/\[W\_PHONE\]/F/\[W\_FAX\]/R/\[H\_PHONE\] and what I am looking to do is to replace the \[W\_PHONE\], for example, wit…

---

## [Text lines manipulation](https://www.ruby-forum.com/t/text-lines-manipulation/174677)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 5\
**Last updated:** [August 31, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/text-lines-manipulation/174677 "2009-08-31T16:33:55Z")

</div>

have a set of lines like shown below: #set1 1-3 3-5 6-7 #set2 20-23 450-550 #set3 1-50 20-56 The idea is to read each of the lines associated with each set and do some manipulation? any easy way of doing thi…

---

## [DRb Mysterious Stops](https://www.ruby-forum.com/t/drb-mysterious-stops/174305)

<div class="topic-metadata">

**Author:** [@darrint](https://www.ruby-forum.com/u/darrint)\
**Replies:** 12\
**Last updated:** [August 31, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/drb-mysterious-stops/174305 "2009-08-31T14:41:41Z")

</div>

I’m running a fairly complicated build and test system with DRb over Ruby 1.8.6. It involves 12 Linux machines running several different distro versions and one Windows machine. Lately I’ve been having problems where …

---

## [Loooong wordwrap](https://www.ruby-forum.com/t/loooong-wordwrap/174651)

<div class="topic-metadata">

**Author:** [@artrat](https://www.ruby-forum.com/u/artrat)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 2:04pm UTC](https://www.ruby-forum.com/t/loooong-wordwrap/174651 "2009-08-31T14:04:33Z")

</div>

Hi all, I’m certainly finding this a fun challenge but wanted to know if anyonw can help I’m trying to wrap long words that have no spaces, but only the application is a game and I need to wrap a word based on its tr…

---

## [I cannot call ruby from the Windows console](https://www.ruby-forum.com/t/i-cannot-call-ruby-from-the-windows-console/174686)

<div class="topic-metadata">

**Author:** [@ssanjuan](https://www.ruby-forum.com/u/ssanjuan)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/i-cannot-call-ruby-from-the-windows-console/174686 "2009-08-31T13:31:14Z")

</div>

I have just installed Ruby 1.86.27 on Windows. I can access ruby from the Windows start up menu, and it opens a console with ruby. But I cannot enter the Windows console and write irb this is what happens: Microsoft …

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

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