# Ruby

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

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

---

## [Color 1.4.0 Released](https://www.ruby-forum.com/t/color-1-4-0-released/121709)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 2\
**Last updated:** [November 30, 2007, 8:47am UTC](https://www.ruby-forum.com/t/color-1-4-0-released/121709 "2007-11-30T08:47:10Z")

</div>

color version 1.4.0 has been released! http://color.rubyforge.org/ The capabilities of the Color library are limited to pure mathematical manipulation of the colours based on colour theory without reference to colou…

---

## [Hash.clear("value")](https://www.ruby-forum.com/t/hash-clear-value/121547)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 7:10am UTC](https://www.ruby-forum.com/t/hash-clear-value/121547 "2007-11-30T07:10:41Z")

</div>

Hello all, Was just wondering if there was something simple like: hash.clear(“value”) This would remove all entries from the hash whose value == “value”. Yeah, I know about delete\_if, this would just be more succinct…

---

## [City, State Lookup from Postal Code](https://www.ruby-forum.com/t/city-state-lookup-from-postal-code/121697)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 3\
**Last updated:** [November 30, 2007, 6:10am UTC](https://www.ruby-forum.com/t/city-state-lookup-from-postal-code/121697 "2007-11-30T06:10:46Z")

</div>

Does anyone know the easiest way to find a city and state based on a supplied postal code? Thanks for your help.

---

## [IO.expect: where can I find documentation?](https://www.ruby-forum.com/t/io-expect-where-can-i-find-documentation/121454)

<div class="topic-metadata">

**Author:** [@thechak](https://www.ruby-forum.com/u/thechak)\
**Replies:** 7\
**Last updated:** [November 30, 2007, 3:50am UTC](https://www.ruby-forum.com/t/io-expect-where-can-i-find-documentation/121454 "2007-11-30T03:50:50Z")

</div>

Hey all – Can anyone point me to the documentation (or the source!) that defines the IO.expect method (parameters, return values, etc.)? I can’t seem to find it anywhere. Also, I’m interested in extending this routin…

---

## [Program tracing in Test::Unit](https://www.ruby-forum.com/t/program-tracing-in-test-unit/121635)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 3:32am UTC](https://www.ruby-forum.com/t/program-tracing-in-test-unit/121635 "2007-11-30T03:32:38Z")

</div>

Hi, I am using Test::Unit and I seem to be in an infinite loop. My visual de-bugger (netbeans) keeps bombing out and I am unable to locate where the problem is. Is it possible to print program execution tracing with …

---

## [Csspool 0.2.0 Released](https://www.ruby-forum.com/t/csspool-0-2-0-released/121601)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 5\
**Last updated:** [November 30, 2007, 3:29am UTC](https://www.ruby-forum.com/t/csspool-0-2-0-released/121601 "2007-11-30T03:29:10Z")

</div>

Gossip Girl says: csspool version 0.2.0 has been released! http://csspool.rubyforge.org/ CSSpool (pronounced “cesspool”) is a validating SAC parser for CSS. The parser calls methods on a document handler depending…

---

## [FEATURE SUGGESTION: Accept default value for to\_f and to\_i](https://www.ruby-forum.com/t/feature-suggestion-accept-default-value-for-to-f-and-to-i/121346)

<div class="topic-metadata">

**Author:** [@magpie](https://www.ruby-forum.com/u/magpie)\
**Replies:** 13\
**Last updated:** [November 30, 2007, 2:51am UTC](https://www.ruby-forum.com/t/feature-suggestion-accept-default-value-for-to-f-and-to-i/121346 "2007-11-30T02:51:42Z")

</div>

I suggest that to\_i() and to\_f() have an optional parameter added with the default value of 0 (for backwards compatibility). This would allow code like if astring.to\_f(nil) valid, so use it else not a valid float, n…

---

## [Ruby-spidermonkey](https://www.ruby-forum.com/t/ruby-spidermonkey/121489)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 2\
**Last updated:** [November 30, 2007, 2:05am UTC](https://www.ruby-forum.com/t/ruby-spidermonkey/121489 "2007-11-30T02:05:33Z")

</div>

Hey, does anyone know anything about ruby-spidermonkey? I just found it, and while the google site\[1\] has nothing but code, there seems to be more in Japanese \[2\]. I’m not clever enough to figure out how to get it wo…

---

## [Help with Iconv needed](https://www.ruby-forum.com/t/help-with-iconv-needed/121628)

<div class="topic-metadata">

**Author:** [@strube](https://www.ruby-forum.com/u/strube)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 1:05am UTC](https://www.ruby-forum.com/t/help-with-iconv-needed/121628 "2007-11-30T01:05:22Z")

</div>

Can someone tell me what it is that I’m getting wrong here with “iconv”? I either get “IllegalSequence” or “Ã¤Ã¶Ã¼ÃŸ” are not encoded properly when using Iconv.conv while it looks good using backticks. ("IllegalSequenc…

---

## [Define\_method and instance variable maddness](https://www.ruby-forum.com/t/define-method-and-instance-variable-maddness/121477)

<div class="topic-metadata">

**Author:** [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 12:57am UTC](https://www.ruby-forum.com/t/define-method-and-instance-variable-maddness/121477 "2007-11-30T00:57:46Z")

</div>

Hi, This problem has been driving me nuts, so I’ve finally given in and decided to ask for help. I’m just cutting my teeth on metaprogramming but am stuck referencing instance variables within define\_method Here’s t…

---

## [Scripting ruby-debug](https://www.ruby-forum.com/t/scripting-ruby-debug/121698)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 0\
**Last updated:** [November 30, 2007, 12:55am UTC](https://www.ruby-forum.com/t/scripting-ruby-debug/121698 "2007-11-30T00:55:26Z")

</div>

Hello everyone, Really simple question - Is there a way to script ruby-debug? What I mean is can, I do something like: Debugger.commands do var local var global … end ? Thanks, Ari

---

## [Rubygems 0.9.5 not finding SSL package](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 6\
**Last updated:** [November 30, 2007, 12:25am UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-not-finding-ssl-package/121177 "2007-11-30T00:25:15Z")

</div>

I am trying to install rails on xubuntu with the line sudo gem install rails --include-dependencies It terminates with this error: ERROR: While executing gem … (Gem::Exception) SSL is not installed on this system I…

---

## [CommandSet 0.8.0 (initial release)](https://www.ruby-forum.com/t/commandset-0-8-0-initial-release/121694)

<div class="topic-metadata">

**Author:** [@Judson\_L](https://www.ruby-forum.com/u/Judson_L)\
**Replies:** 0\
**Last updated:** [November 30, 2007, 12:09am UTC](https://www.ruby-forum.com/t/commandset-0-8-0-initial-release/121694 "2007-11-30T00:09:51Z")

</div>

Hello, I’m very glad to announce the initial release of CommandSet - http://commandset.rubyforge.org CommandSet is a user interface library for Ruby. It revolves around a (reasonably well documented) DSL for definin…

---

## [How to know the platform?](https://www.ruby-forum.com/t/how-to-know-the-platform/121644)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 5\
**Last updated:** [November 29, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/how-to-know-the-platform/121644 "2007-11-29T23:41:46Z")

</div>

because i have some part of a script only running on MacOS X ony i’d like to know how to detect the platform from a ruby script. as in java we have : public static String OS\_NAME = System.getProperty(“os.name”); publ…

---

## [Hpricot and XML](https://www.ruby-forum.com/t/hpricot-and-xml/121690)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/hpricot-and-xml/121690 "2007-11-29T23:35:54Z")

</div>

Hi all, I’ve got a little XML parsing problem, and I’d like to use hpricot to use it. The following script: require ‘rubygems’ require ‘hpricot’ xml = \<\<-XML \<gnc:account version=“2.0.0”\> act:nameChild Account\</a…

---

## [Ruby 2.0 & YARV](https://www.ruby-forum.com/t/ruby-2-0-yarv/121653)

<div class="topic-metadata">

**Author:** [@pigeon\_blood\_red](https://www.ruby-forum.com/u/pigeon_blood_red)\
**Replies:** 6\
**Last updated:** [November 29, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/ruby-2-0-yarv/121653 "2007-11-29T22:56:27Z")

</div>

Hi everyone, Does anyone know the general status of Ruby 2.0? I take it’s probably a release time of “when its ready”, but thought I’d check. Also, has YARV officially been announced as the VM for Ruby? As if so, w…

---

## [Using irb as a REPL](https://www.ruby-forum.com/t/using-irb-as-a-repl/120706)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 7\
**Last updated:** [November 29, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/using-irb-as-a-repl/120706 "2007-11-29T22:46:39Z")

</div>

Lisp programmers often use the REPL (similar to IRB) as a simple way to make an interactive interface to their app. I’d like to do the same thing with irb - that is, define my classes, and load irb in the context. I…

---

## [If you know](https://www.ruby-forum.com/t/if-you-know/121529)

<div class="topic-metadata">

**Author:** [@Rosaura\_B](https://www.ruby-forum.com/u/Rosaura_B)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/if-you-know/121529 "2007-11-29T22:28:29Z")

</div>

Dear people, the company I work wants to make a Ruby development team. Most of the current team develops with J2EE, our idea is to add a Ruby team, for the design and development of new web interfaces on the “Ruby on…

---

## [Metaprogramming for Tierra-like (artificial life) program?](https://www.ruby-forum.com/t/metaprogramming-for-tierra-like-artificial-life-program/121532)

<div class="topic-metadata">

**Author:** [@philippeqc](https://www.ruby-forum.com/u/philippeqc)\
**Replies:** 4\
**Last updated:** [November 29, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/metaprogramming-for-tierra-like-artificial-life-program/121532 "2007-11-29T22:22:55Z")

</div>

People, Would it be possible to use Ruby’s metaprogramming ability to write something like Tierra?: http://www.nis.atr.jp/~ray/tierra/whatis.html http://www.nis.atr.jp/~ray/pubs/images/ A quick summary for those who…

---

## [Holiday Blogging Contest](https://www.ruby-forum.com/t/holiday-blogging-contest/121660)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/holiday-blogging-contest/121660 "2007-11-29T18:21:31Z")

</div>

advertisment ahead, avert your eyes if you don’t want to read it Looking to add some new books to your library for 2008? Done something cool with Ruby or Rails that you could write about to help other people learn ho…

---

## [Webrick Query-String](https://www.ruby-forum.com/t/webrick-query-string/121649)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/webrick-query-string/121649 "2007-11-29T17:28:08Z")

</div>

Hey! I have a Webrick Server set up. When i do a GET Request i can access the query string values with: req.query\[‘key’\] When i do a POST request (action="/myServlet?view=test") out of a form i can acces the form fi…

---

## [Import RubyGems to Ruby 1.9](https://www.ruby-forum.com/t/import-rubygems-to-ruby-1-9/110936)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 123\
**Last updated:** [November 29, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/import-rubygems-to-ruby-1-9/110936 "2007-11-29T16:48:53Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ruby-coree$B$K9T$C$F$?$s$G$9$,!"$$$^$$$A@9$j\>e$,$i$J$$$N$G!"$3$A$i$G$b0U8+e(B e$BJg=8!#e(B e$BA0Dse(B: e$B$^$D$b$H$5$s:{ED$5$s$K$h$l$P!"e(BRubyGemse$B$re(B1.9e$B$KI8=\`E:…

---

## [Goedel (#147)](https://www.ruby-forum.com/t/goedel-147/121643)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/goedel-147/121643 "2007-11-29T16:31:55Z")

</div>

This quiz is really just an optimization problem. It’s pretty trivial to do a conversion to and from a Goedel number. See Eric L.'s under-30-lines solution for a great example of this. The challenge arises when th…

---

## [Time.strftime 12 hour format](https://www.ruby-forum.com/t/time-strftime-12-hour-format/121604)

<div class="topic-metadata">

**Author:** [@stoopidboi](https://www.ruby-forum.com/u/stoopidboi)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/time-strftime-12-hour-format/121604 "2007-11-29T16:22:38Z")

</div>

I’m trying to display a date/time in 12-hour format. According to the Time.strftime API (class Time - RDoc Documentation) the 12-hour hour range is supposed to be \[1…12\]. Why am I getting “00:13:14 PM” for the time po…

---

## [Newb in ruby](https://www.ruby-forum.com/t/newb-in-ruby/117620)

<div class="topic-metadata">

**Author:** [@spike31589](https://www.ruby-forum.com/u/spike31589)\
**Replies:** 4\
**Last updated:** [November 29, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/newb-in-ruby/117620 "2007-11-29T15:45:36Z")

</div>

Hello I am new to ruby and am having trouble installing the program i have even tried the one click install version on my mac 10.4.10 and i keep getting the error message ERROR: While executing gem … (Gem::GemNotFoun…

---

## [EuRuKo 2008, 2nd round](https://www.ruby-forum.com/t/euruko-2008-2nd-round/121488)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/euruko-2008-2nd-round/121488 "2007-11-29T13:22:00Z")

</div>

Hello all, After some discussions with Matz, Charlie O. Nutter, David A. Black and other potential EuRuKo 2008 attendees, trying to resolve any clashes etc. we have narrowed down the possible date to 3 weekends: Apri…

---

## [Installation Issues on School Network](https://www.ruby-forum.com/t/installation-issues-on-school-network/121591)

<div class="topic-metadata">

**Author:** [@agrapha](https://www.ruby-forum.com/u/agrapha)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 11:41am UTC](https://www.ruby-forum.com/t/installation-issues-on-school-network/121591 "2007-11-29T11:41:33Z")

</div>

Hi, I am trying to install Ruby on a number of machines in a networked achool environmnent. The installation appears to go well yet on attempting to use Ruby it doesnt. Its like it has never been installed. The ruby …

---

## [Test/ruby/test\_eval.rb](https://www.ruby-forum.com/t/test-ruby-test-eval-rb/120977)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 10\
**Last updated:** [November 29, 2007, 11:39am UTC](https://www.ruby-forum.com/t/test-ruby-test-eval-rb/120977 "2007-11-29T11:39:53Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!0J2\<$Ne(B test/ruby/test\_eval.rb e$B$N\<:GT$O!$$I$&$7$?$b$N$G$7$g$&$+!%%Fe(B e$B%9%H$r=q$$$?@DLZ$5$s$KJ9$+$J$$$H%@%a!)!!$G$-$l$P!$$^$D$b$H$5$s$K$3$Ne(B e$BJU$Ne(B eval e$B$N;EMM$r65$($F$$$?$@…

---

## [Im trying to make Thumbnail pics -- any suggestions?](https://www.ruby-forum.com/t/im-trying-to-make-thumbnail-pics-any-suggestions/121528)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [November 29, 2007, 11:00am UTC](https://www.ruby-forum.com/t/im-trying-to-make-thumbnail-pics-any-suggestions/121528 "2007-11-29T11:00:05Z")

</div>

Im trying to make Thumbnail pics – any suggestions? (dont know wher to start)

---

## [Memory&Time overload in sending smtp gmail with big attach](https://www.ruby-forum.com/t/memory-time-overload-in-sending-smtp-gmail-with-big-attach/121610)

<div class="topic-metadata">

**Author:** [@rollingwoods](https://www.ruby-forum.com/u/rollingwoods)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 10:14am UTC](https://www.ruby-forum.com/t/memory-time-overload-in-sending-smtp-gmail-with-big-attach/121610 "2007-11-29T10:14:15Z")

</div>

Recently, I block a gmail sending program(named ‘testsmtp.rb’), with ruby1.9 Net::SMTP class(net/smtp.rb renamed to ‘smtpssl.rb’) and a custom MAIL BODY builder class (named ‘smtp\_mail\_builder.rb’). It works well for …

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

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