# Ruby

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

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

---

## [Code Review: HashEql](https://www.ruby-forum.com/t/code-review-hasheql/170684)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 21, 2009, 5:39am UTC](https://www.ruby-forum.com/t/code-review-hasheql/170684 "2009-06-21T05:39:13Z")

</div>

tfpt review “/shelveset:HashEql;REDMOND\\tomat” Fixes implementation of Kernel#eql?, Kernel#==, Kernel#hash, Array#eql? and Array#hash and improves CLR interop. Improves performance of Array#- from quadratic algorithm …

---

## [Rip](https://www.ruby-forum.com/t/rip/170680)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [June 21, 2009, 12:04am UTC](https://www.ruby-forum.com/t/rip/170680 "2009-06-21T00:04:56Z")

</div>

I just read an article called Rip: http://www.linux-mag.com/cache/7381/1.html It was an interesting read about packaging ruby gems. Anyone played with this yet and what are your experiences with it. Worth it?

---

## [.Net\<-\>IR Object Mapping](https://www.ruby-forum.com/t/net-ir-object-mapping/169789)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 25\
**Last updated:** [June 20, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/net-ir-object-mapping/169789 "2009-06-20T16:04:19Z")

</div>

Hi, Is there a table somewhere defining how .Net objects are mapped to Ruby objects? Thanks, Shay http://www.ironshay.com Follow me: http://twitter.com/ironshay

---

## [Need a hash/iteration tutorial...text reading](https://www.ruby-forum.com/t/need-a-hash-iteration-tutorial-text-reading/170559)

<div class="topic-metadata">

**Author:** [@S-redyck](https://www.ruby-forum.com/u/S-redyck)\
**Replies:** 8\
**Last updated:** [June 20, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/need-a-hash-iteration-tutorial-text-reading/170559 "2009-06-20T14:42:17Z")

</div>

I have been working my way through a ruby book (Beginning Ruby) and I want to extend on an interesting capability dealing with hashes. the code: text=’’ line\_count=0 File.open(“txt.txt”).each do |line| line\_count +…

---

## [Optimization](https://www.ruby-forum.com/t/optimization/170654)

<div class="topic-metadata">

**Author:** [@navouri](https://www.ruby-forum.com/u/navouri)\
**Replies:** 0\
**Last updated:** [June 20, 2009, 11:39am UTC](https://www.ruby-forum.com/t/optimization/170654 "2009-06-20T11:39:27Z")

</div>

I could use some help in optimizing a rather simple method. All it does is randomly select a few instance variables and increase them while decreasing another. The problem is that whether or not that particular variab…

---

## [Can't use gems](https://www.ruby-forum.com/t/cant-use-gems/170652)

<div class="topic-metadata">

**Author:** [@roddik](https://www.ruby-forum.com/u/roddik)\
**Replies:** 5\
**Last updated:** [June 20, 2009, 11:09am UTC](https://www.ruby-forum.com/t/cant-use-gems/170652 "2009-06-20T11:09:30Z")

</div>

Hello, I have the following ruby config on my winxp sp3 box RubyGems Environment: RUBYGEMS VERSION: 1.3.4 RUBY VERSION: 1.8.6 (2009-03-31 patchlevel 368) \[i386-mswin32\] INSTALLATION DIRECTORY: D:/ruby/lib/ruby/gems/1.…

---

## [Mechanize](https://www.ruby-forum.com/t/mechanize/170653)

<div class="topic-metadata">

**Author:** [@prashantsahni](https://www.ruby-forum.com/u/prashantsahni)\
**Replies:** 0\
**Last updated:** [June 20, 2009, 9:09am UTC](https://www.ruby-forum.com/t/mechanize/170653 "2009-06-20T09:09:46Z")

</div>

i m working on parsing of site with given url https://online.nationalgridus.com/eservice\_enu/start.swe?SWECmd=Start i have written following code class NationalGrid def self.charge @agent = WWW::Mechanize.new login…

---

## [Google App Engine Rails Template](https://www.ruby-forum.com/t/google-app-engine-rails-template/170619)

<div class="topic-metadata">

**Author:** [@Matt\_Brady](https://www.ruby-forum.com/u/Matt_Brady)\
**Replies:** 4\
**Last updated:** [June 20, 2009, 7:22am UTC](https://www.ruby-forum.com/t/google-app-engine-rails-template/170619 "2009-06-20T07:22:06Z")

</div>

Josh, Which version of JRuby did you use for jruby-core.jar and ruby-stdlib.jar? Did you copy Ola’s older versions or have you built new jars from the latest release of JRuby? Hi,

---

## [The list of Ruby Committers](https://www.ruby-forum.com/t/the-list-of-ruby-committers/170175)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 2\
**Last updated:** [June 20, 2009, 5:43am UTC](https://www.ruby-forum.com/t/the-list-of-ruby-committers/170175 "2009-06-20T05:43:23Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I made a list of the Ruby committers. The attached file contains three versions of the list. \* OPML (for feed readers) \* RDF (FOAF) \* HTML (for humans) The original…

---

## [A new repository for Net::SSH](https://www.ruby-forum.com/t/a-new-repository-for-net-ssh/170645)

<div class="topic-metadata">

**Author:** [@Delano\_Mandelbaum](https://www.ruby-forum.com/u/Delano_Mandelbaum)\
**Replies:** 0\
**Last updated:** [June 20, 2009, 3:15am UTC](https://www.ruby-forum.com/t/a-new-repository-for-net-ssh/170645 "2009-06-20T03:15:29Z")

</div>

I use Net::SSH quite extensively so I was concerned about the future of the project when Jamis B. announced his departure from the project back in February. I really appreciate the time Jamis has put in to Net::SSH an…

---

## [\[BUG\] cross-thread violation on rb\_gc()](https://www.ruby-forum.com/t/bug-cross-thread-violation-on-rb-gc/170593)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 1\
**Last updated:** [June 20, 2009, 12:47am UTC](https://www.ruby-forum.com/t/bug-cross-thread-violation-on-rb-gc/170593 "2009-06-20T00:47:02Z")

</div>

A friend of mine, new to Ruby, gets this error when he runs a program I gave him. He’s running 1.8.6 (2009-03-31) \[x86\_64-linux\]. I can’t reproduce the problem with any of the versions of Ruby I have installed on 32-b…

---

## [Ruby like Php](https://www.ruby-forum.com/t/ruby-like-php/170633)

<div class="topic-metadata">

**Author:** [@caruso\_g](https://www.ruby-forum.com/u/caruso_g)\
**Replies:** 7\
**Last updated:** [June 20, 2009, 12:02am UTC](https://www.ruby-forum.com/t/ruby-like-php/170633 "2009-06-20T00:02:34Z")

</div>

Hi, I am studying Ruby for web development and I was guessing if there is a way to use Ruby, embedded into the html code like one can do with Php. I know that this could not be such a popular topic here, but I think i…

---

## [Segfault when requiring both mysql and mechanize](https://www.ruby-forum.com/t/segfault-when-requiring-both-mysql-and-mechanize/170196)

<div class="topic-metadata">

**Author:** [@roddik](https://www.ruby-forum.com/u/roddik)\
**Replies:** 6\
**Last updated:** [June 19, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/segfault-when-requiring-both-mysql-and-mechanize/170196 "2009-06-19T23:56:10Z")

</div>

Hello, there’s a simple script require ‘rubygems’ require ‘mysql’ require ‘mechanize’ #it works if I delete this string m = Mysql.new(‘localhost’, ‘h3’, ‘h3’, ‘h3’) that fails with C:/Program Files/ActiveState Komo…

---

## [Gamebox 0.0.1 Released](https://www.ruby-forum.com/t/gamebox-0-0-1-released/170640)

<div class="topic-metadata">

**Author:** [@allgeier](https://www.ruby-forum.com/u/allgeier)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/gamebox-0-0-1-released/170640 "2009-06-19T23:42:40Z")

</div>

gamebox version 0.0.1 has been released! http://shawn42.github.com/gamebox/ A game template for building and distributing Rubygame games. See docs/getting\_started.rdoc for help getting started. Changes: 0.0.1 / 20…

---

## [\[Backport #1655\](Assigned) fdiv $B$N;HMQ$G(B Segmentation fault $B$,H/@8$9$k(B](https://www.ruby-forum.com/t/backport-1655-assigned-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170639)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/backport-1655-assigned-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170639 "2009-06-19T23:18:31Z")

</div>

e$B%A%1%C%He(B #1655 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%+%F%4%je(B coree$B$K%;%C%He(B e$B%9%F!\<%?%9e(B Opene$B$+$ie(BAssignede$B$KJQ99e(B e$BC4Ev\<Te(B Yuki S.e$B$K%;%C%He(B fixed at r23739. http://redmin…

---

## [\[Backport #1656\](Assigned) fdiv $B$N;HMQ$G(B Segmentation fault $B$,H/@8$9$k(B](https://www.ruby-forum.com/t/backport-1656-assigned-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170638)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/backport-1656-assigned-fdiv-b-n-hmq-g-b-segmentation-fault-b-h-8-9-k-b/170638 "2009-06-19T23:17:55Z")

</div>

e$B%A%1%C%He(B #1656 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BAssignede$B$KJQ99e(B e$BC4Ev\<Te(B Shyouhei U.e$B$K%;%C%He(B fixed at r23740. http://redmine.ruby-lang.org/issues/show/165…

---

## [Powerful System](https://www.ruby-forum.com/t/powerful-system/170636)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/powerful-system/170636 "2009-06-19T22:56:02Z")

</div>

By now you know video is the logical traffic trend to exploit. And you know the incredible power you’ll enjoy with Traffic Geyser. What’s more, you know it’s tremendously easy to use… even if you have ZERO technical a…

---

## [Create a new excel file](https://www.ruby-forum.com/t/create-a-new-excel-file/170572)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 5\
**Last updated:** [June 19, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/create-a-new-excel-file/170572 "2009-06-19T22:46:32Z")

</div>

How to create a new excel file in ruby with examples .

---

## [Default encoding in ruby 1.9](https://www.ruby-forum.com/t/default-encoding-in-ruby-1-9/170599)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [June 19, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/default-encoding-in-ruby-1-9/170599 "2009-06-19T22:44:44Z")

</div>

Hi, I have a lot of problems with string encodings in ruby 1.9. I always get EncodingErrors because ruby mixes the default encodings. I have set LANG and LC\_ALL to a utf locale. test.rb def encoding\_sucks\_hard(string…

---

## [Script for building the silverlight support](https://www.ruby-forum.com/t/script-for-building-the-silverlight-support/170603)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 3\
**Last updated:** [June 19, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/script-for-building-the-silverlight-support/170603 "2009-06-19T20:48:39Z")

</div>

Hi Is there a script somewhere to build Chiron and friends to get silverlight support? Or do I go through visual studio and fiddle around with the references until they are right? Met vriendelijke groeten - Best re…

---

## [Mysql gem memory leak](https://www.ruby-forum.com/t/mysql-gem-memory-leak/170568)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 1\
**Last updated:** [June 19, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/mysql-gem-memory-leak/170568 "2009-06-19T20:09:31Z")

</div>

I have a tiny script that just opens a database connection and then repeats: 1) do a query and free the response, and 2) sleep for a few seconds. Note that this is not using ActiveRecord or any other Rails bits, but …

---

## [Still Problems with open-uri](https://www.ruby-forum.com/t/still-problems-with-open-uri/170626)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/still-problems-with-open-uri/170626 "2009-06-19T19:42:14Z")

</div>

I have not found a solution for the open-uri problem. It does not recognize that the parameter is a URL and not a file on disk. It keeps throwing URI is not supported error!

---

## [Win32-taskscheduler 0.2.0](https://www.ruby-forum.com/t/win32-taskscheduler-0-2-0/170620)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/win32-taskscheduler-0-2-0/170620 "2009-06-19T19:09:20Z")

</div>

Hi all, The Win32Utils Team is happy to announce the release of win32-taskscheduler 0.2.0! = What is it? An interface to the MS Windows Task Scheduler (the Windows analogue of cron). With this library you can create…

---

## [Hash of hash?](https://www.ruby-forum.com/t/hash-of-hash/170605)

<div class="topic-metadata">

**Author:** [@wcool](https://www.ruby-forum.com/u/wcool)\
**Replies:** 6\
**Last updated:** [June 19, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/hash-of-hash/170605 "2009-06-19T18:01:45Z")

</div>

hi, I am totally new to Ruby and am trying to code a hash of a hash. Somehow I always get a syntax error, but am unable to resolve it. This is what I have: File 1: class Hashhash def initialize @dt = { 2 =\> {2 =\> …

---

## [Testing, collecting and printing of custom error messages](https://www.ruby-forum.com/t/testing-collecting-and-printing-of-custom-error-messages/170594)

<div class="topic-metadata">

**Author:** [@kga85](https://www.ruby-forum.com/u/kga85)\
**Replies:** 1\
**Last updated:** [June 19, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/testing-collecting-and-printing-of-custom-error-messages/170594 "2009-06-19T15:59:50Z")

</div>

I want to i want to store the messages n the assertions and print them in a cleen output. I am going to test a bunch of testes and i want to give a aoutput that puts the name of the test and success if it succeds, and…

---

## [Code Review: AdaptiveRules4](https://www.ruby-forum.com/t/code-review-adaptiverules4/170551)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [June 19, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/code-review-adaptiverules4/170551 "2009-06-19T15:47:15Z")

</div>

tfpt review “/shelveset:AdaptiveRules4;REDMOND\\tomat” DLR: Fixes bugs and implements new features in interpreter. Static field assignment. LessThan ConvertUnary - should re-box numeric values. …

---

## [Subject: oyster 0.9.2 Released](https://www.ruby-forum.com/t/subject-oyster-0-9-2-released/170595)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [June 19, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/subject-oyster-0-9-2-released/170595 "2009-06-19T15:04:26Z")

</div>

oyster version 0.9.2 has been released! http://github.com/jcoglan/oyster Oyster is a command-line input parser that doesn’t hate you. It provides a simple API that you use to write a spec for the user interface to y…

---

## [Each by arity](https://www.ruby-forum.com/t/each-by-arity/170239)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 19\
**Last updated:** [June 19, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/each-by-arity/170239 "2009-06-19T13:18:13Z")

</div>

I’ve always wondered, why? c = \[\] \[1,2,3,4\].each{ |x,y| c \<\< \[x, y\] } c gives us \[ \[1,nil\], \[2,nil\], \[3,nil\], \[4,nil\] \] why not allow it to look at the arity of the block? And thus produce \[ \[1,2\], \[3,4\] \] I don’…

---

## [Enterprise 1.0.0 Released](https://www.ruby-forum.com/t/enterprise-1-0-0-released/170487)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 11\
**Last updated:** [June 19, 2009, 11:13am UTC](https://www.ruby-forum.com/t/enterprise-1-0-0-released/170487 "2009-06-19T11:13:46Z")

</div>

enterprise version 1.0.0 has been released! http://github.com/tenderlove/enterprise/ Wish you could write your Ruby in XML? Has the fact that Ruby is not “enterprise” got you down? Do you feel like your Ruby code c…

---

## [Multiple copies of jruby in development environment](https://www.ruby-forum.com/t/multiple-copies-of-jruby-in-development-environment/170542)

<div class="topic-metadata">

**Author:** [@guy\_b](https://www.ruby-forum.com/u/guy_b)\
**Replies:** 6\
**Last updated:** [June 19, 2009, 10:32am UTC](https://www.ruby-forum.com/t/multiple-copies-of-jruby-in-development-environment/170542 "2009-06-19T10:32:07Z")

</div>

I need some help. I have about 4-5 different jruby on rails projects that I am developing. At some point all of these applications need to run (mongrel at present) at the same time. I need to have a separate copy a…

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

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