# Ruby

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

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

---

## [Quartermaster 1.0.0 Released](https://www.ruby-forum.com/t/quartermaster-1-0-0-released/136880)

<div class="topic-metadata">

**Author:** [@Dave\_Myron](https://www.ruby-forum.com/u/Dave_Myron)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 4:00am UTC](https://www.ruby-forum.com/t/quartermaster-1-0-0-released/136880 "2008-05-07T04:00:26Z")

</div>

INFO: A collection of shortcuts and helpers for leveraging a request’s env in Rails, such as including a browser-specific stylesheet or putting a short version of the user agent in the CSS classes of the body tag. Th…

---

## [SocketError: getaddrinfo: nodename nor servname provided, or](https://www.ruby-forum.com/t/socketerror-getaddrinfo-nodename-nor-servname-provided-or/136869)

<div class="topic-metadata">

**Author:** [@baq](https://www.ruby-forum.com/u/baq)\
**Replies:** 4\
**Last updated:** [May 7, 2008, 2:46am UTC](https://www.ruby-forum.com/t/socketerror-getaddrinfo-nodename-nor-servname-provided-or/136869 "2008-05-07T02:46:45Z")

</div>

I’m trying to use Net/Http and am getting the following error: SocketError: getaddrinfo: nodename nor servname provided, or not known I’m on Mac OS X, Leopard, check out my ruby version/gem env below. Also, I double c…

---

## [Spec runner update](https://www.ruby-forum.com/t/spec-runner-update/136874)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [May 7, 2008, 1:34am UTC](https://www.ruby-forum.com/t/spec-runner-update/136874 "2008-05-07T01:34:47Z")

</div>

After much hacking I feel confident enough to say we have a working mspec. So why don’t you have it? Well, I haven’t baselined it, and it doesn’t run with Rake. Those are my next tasks. By baseline, I mean enable all …

---

## [Jruby -S gem which rails fails?](https://www.ruby-forum.com/t/jruby-s-gem-which-rails-fails/136832)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 2\
**Last updated:** [May 6, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/jruby-s-gem-which-rails-fails/136832 "2008-05-06T23:25:22Z")

</div>

Random observation on 2 machines today (running jruby 1.1.1). gem which works for all gems except rails? Mike mike@mike-laptop:~/opt/jruby-1.1.1/lib/ruby/gems/1.8/gems$ ll total 88K drwxr-xr-x 3 mike mike 4.0K 2008…

---

## [ANN: Mack 0.5.0 Released](https://www.ruby-forum.com/t/ann-mack-0-5-0-released/136860)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [May 6, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/ann-mack-0-5-0-released/136860 "2008-05-06T22:37:07Z")

</div>

Mack 0.5.0 has been released today with the much debated ORM support changes. http://www.mackframework.com/2008/05/06/release-050/

---

## [Win32 Service Problem](https://www.ruby-forum.com/t/win32-service-problem/136745)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 10\
**Last updated:** [May 6, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/win32-service-problem/136745 "2008-05-06T22:35:15Z")

</div>

I’m having an issue with Win32 Service I have a simple script that I want to run as a service however the service won’t start (timeout issue). I’ve tried several things but nothing I do seems to make any difference …

---

## [Logging stdout/stderr/stdin of an spawn process (Open4::spawn)](https://www.ruby-forum.com/t/logging-stdout-stderr-stdin-of-an-spawn-process-open4-spawn/136176)

<div class="topic-metadata">

**Author:** [@Edgardo\_H](https://www.ruby-forum.com/u/Edgardo_H)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/logging-stdout-stderr-stdin-of-an-spawn-process-open4-spawn/136176 "2008-05-06T22:22:53Z")

</div>

Hi dear rubyists, I apologize for reposting this message, but I’m not sure if the previous one did get to the mailing list. I need to log all the input (typed by the user) and the stdout/stderr of a process. The #scr…

---

## [Conversion mask in hex to bit mask](https://www.ruby-forum.com/t/conversion-mask-in-hex-to-bit-mask/136790)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 4\
**Last updated:** [May 6, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/conversion-mask-in-hex-to-bit-mask/136790 "2008-05-06T22:20:32Z")

</div>

Hi, The issue is: how to convert hex mask to bit mask? For instance: I have 0xffff0000 -\> it can be represent by 255.255.0.0 or by string of bits - 16 My question is how to convert such hexes to bit mask (the 16 i…

---

## [Escaped characters from the command-line](https://www.ruby-forum.com/t/escaped-characters-from-the-command-line/136739)

<div class="topic-metadata">

**Author:** [@S-jb](https://www.ruby-forum.com/u/S-jb)\
**Replies:** 4\
**Last updated:** [May 6, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/escaped-characters-from-the-command-line/136739 "2008-05-06T22:04:34Z")

</div>

I’ve run into a bit of an issue that I hope you can help with. I am working on a parser that allows the user to provide a delimiter as an argument to the script. However, I can not find a way to \[elegantly\] handle esc…

---

## [REXML thread-safe?](https://www.ruby-forum.com/t/rexml-thread-safe/136742)

<div class="topic-metadata">

**Author:** [@2gatunek](https://www.ruby-forum.com/u/2gatunek)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/rexml-thread-safe/136742 "2008-05-06T20:08:55Z")

</div>

I am processing a lot of RSS using REXML and am hitting exceptions when running multiple threads (using JRuby). The exception always occurs when trying to access attributes on the same line of my code but at random ti…

---

## [Expect.pm like module in ruby](https://www.ruby-forum.com/t/expect-pm-like-module-in-ruby/136842)

<div class="topic-metadata">

**Author:** [@Praveen\_R](https://www.ruby-forum.com/u/Praveen_R)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/expect-pm-like-module-in-ruby/136842 "2008-05-06T20:02:55Z")

</div>

Hello All Is there a ‘expect’ like Module for ruby? Something like this perl Module: http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod I tried searching for a gem but nothing seems to come up in google. Any d…

---

## [Re: external contribution question](https://www.ruby-forum.com/t/re-external-contribution-question/136834)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/re-external-contribution-question/136834 "2008-05-06T18:52:09Z")

</div>

Thanks John, I will look at the #pack and #unpack along with File. ----- Original Message ---- From: John L. (IRONRUBY) removed\_email\_address@domain.invalid To: “removed\_email\_address@domain.invalid” removed\_email\_add…

---

## [Active-Record JDBC Driver](https://www.ruby-forum.com/t/active-record-jdbc-driver/136796)

<div class="topic-metadata">

**Author:** [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Replies:** 3\
**Last updated:** [May 6, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/active-record-jdbc-driver/136796 "2008-05-06T18:22:01Z")

</div>

Dear all, I am evaluating the usage of Active-Record JDBC, but I received this error: RuntimeError in SurveysController#new The driver encountered an error: cannot load Java class net.sourceforge.jtds.jdbc.Driver R…

---

## [External contribution question](https://www.ruby-forum.com/t/external-contribution-question/136826)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/external-contribution-question/136826 "2008-05-06T18:16:41Z")

</div>

Just curious, which are all the modules need help with? I am interested in contributing. Thanks. ----- Original Message ---- From: John L. (IRONRUBY) removed\_email\_address@domain.invalid To: IronRuby External Code R…

---

## [Enter text into web save as box or authentication popup](https://www.ruby-forum.com/t/enter-text-into-web-save-as-box-or-authentication-popup/136829)

<div class="topic-metadata">

**Author:** [@brit](https://www.ruby-forum.com/u/brit)\
**Replies:** 0\
**Last updated:** [May 6, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/enter-text-into-web-save-as-box-or-authentication-popup/136829 "2008-05-06T18:15:46Z")

</div>

I have a web page that pops up a Authentication box and also a save as dialog box. I have been thinking that using win32api calls from Ruby to enter values and press the OK buttons should work. But I dont know win32a…

---

## [I know this code is not very 'ruby'](https://www.ruby-forum.com/t/i-know-this-code-is-not-very-ruby/136781)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 7\
**Last updated:** [May 6, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/i-know-this-code-is-not-very-ruby/136781 "2008-05-06T18:10:37Z")

</div>

This function should work, but when I wrote it, I had the feeling that there would be a much better way to code this function. In particular, I don’t let creating the discount\_out variable. anyone want to give me a nu…

---

## [Treemaps](https://www.ruby-forum.com/t/treemaps/130111)

<div class="topic-metadata">

**Author:** [@javiel](https://www.ruby-forum.com/u/javiel)\
**Replies:** 8\
**Last updated:** [May 6, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/treemaps/130111 "2008-05-06T17:10:17Z")

</div>

hello everybody in the list! For 2 days I have been trying to use acts\_as\_treemap plugin in my project. It seemed to be really easy following rob’s tutorial (http://blog.tupleshop.com/2006/7/27/treemap-on-rails). I h…

---

## [Min, pack or crypt ruby code](https://www.ruby-forum.com/t/min-pack-or-crypt-ruby-code/136707)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/min-pack-or-crypt-ruby-code/136707 "2008-05-06T16:36:38Z")

</div>

hello… is there an tool for minifying, packing or crypting ruby code? thx.

---

## [Problems compiling IronRuby on Mac Leopard](https://www.ruby-forum.com/t/problems-compiling-ironruby-on-mac-leopard/136777)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 16\
**Last updated:** [May 6, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/problems-compiling-ironruby-on-mac-leopard/136777 "2008-05-06T16:30:43Z")

</div>

Hi I try to write a little blog article about installing mono and ironruby on Mac Leopard from the ground up. It’s a bit a bumpy road (especially to get mono build from sources), but I’m almost there. I’m following t…

---

## [Performing a postback using Ruby](https://www.ruby-forum.com/t/performing-a-postback-using-ruby/136810)

<div class="topic-metadata">

**Author:** [@wjessup](https://www.ruby-forum.com/u/wjessup)\
**Replies:** 2\
**Last updated:** [May 6, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/performing-a-postback-using-ruby/136810 "2008-05-06T16:23:32Z")

</div>

Hi, I am trying to automate a page that is written in .Net and uses webparts. I am unable to work out how to get Ruby/Watir to ‘click’ on the webpart control menu (edit/close/delete) so am assuming i can get round t…

---

## [Trying to create an array with AA-ZZ for dutch postal codes](https://www.ruby-forum.com/t/trying-to-create-an-array-with-aa-zz-for-dutch-postal-codes/136811)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [May 6, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/trying-to-create-an-array-with-aa-zz-for-dutch-postal-codes/136811 "2008-05-06T16:11:31Z")

</div>

the array postcodes should be filled with strings starting looking like \[“AA”,AB",AC"…“BA”,“BB”,“BC” to “ZZ”\] 26\*26 entries. i’ve come up with the following to create it, postcodes = Array.new create postal codes ar…

---

## [Different Ways To Loop](https://www.ruby-forum.com/t/different-ways-to-loop/136592)

<div class="topic-metadata">

**Author:** [@Wyatt\_G](https://www.ruby-forum.com/u/Wyatt_G)\
**Replies:** 17\
**Last updated:** [May 6, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/different-ways-to-loop/136592 "2008-05-06T15:01:36Z")

</div>

I love the flexibility of Ruby. It gives you several ways to do something, leaving you to pick the most appropriate one. In the spirit of showing off the flexibility of Ruby, I’d like to see how many different ways …

---

## [Rule engine creation?](https://www.ruby-forum.com/t/rule-engine-creation/136794)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/rule-engine-creation/136794 "2008-05-06T14:38:45Z")

</div>

Hi, I wanna make one dynamic rule engine for that suppose i create one rule designation equals Project Leader. Now my question is that now how i will validate this rule and how i will check condition for this in cont…

---

## [Installation update newbie question](https://www.ruby-forum.com/t/installation-update-newbie-question/136791)

<div class="topic-metadata">

**Author:** [@marcoa](https://www.ruby-forum.com/u/marcoa)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/installation-update-newbie-question/136791 "2008-05-06T14:14:20Z")

</div>

I am installing a the win32-api gem and it gives an option of 4 possible choices. I see that the basic difference is version 1.0.6 vs 1.0.5 but what I do not get is what is the difference between ruby vs x86-mswin32-6…

---

## [Take text from file and add do it with Ruby..?](https://www.ruby-forum.com/t/take-text-from-file-and-add-do-it-with-ruby/136772)

<div class="topic-metadata">

**Author:** [@zoephoenix](https://www.ruby-forum.com/u/zoephoenix)\
**Replies:** 5\
**Last updated:** [May 6, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/take-text-from-file-and-add-do-it-with-ruby/136772 "2008-05-06T13:44:04Z")

</div>

I have a text file that I want to add some content to, but I’m not sure how to use the file as input. I have a list of things in the file that is formatted like item1 | item2 | item3 | item4 | and etcetera… How can …

---

## [Hot to call to any parent class method?](https://www.ruby-forum.com/t/hot-to-call-to-any-parent-class-method/136780)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/hot-to-call-to-any-parent-class-method/136780 "2008-05-06T13:43:40Z")

</div>

Hi, I’ve modified “delete” class in MyArray class but in other custom method I need to call to iriginal “delete” method. Well I know that I can do: alias original\_delete delete def delete(v) …my\_stuff… end def oth…

---

## [Patch for Struct.new(0)](https://www.ruby-forum.com/t/patch-for-struct-new-0/136660)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 3\
**Last updated:** [May 6, 2008, 11:41am UTC](https://www.ruby-forum.com/t/patch-for-struct-new-0/136660 "2008-05-06T11:41:52Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B Struct.new(0)e$B$G!"e(BBUG e$B$GMn$A$:$KNc30$rHt$P$9%Q%C%A$r=q$-$^$7$?!#e(B Index: struct.c — struct.c (revision 16278) +++ struct.c (working copy) @@ -322,14 +322,14 @@ ID id; rb\_scan\_…

---

## [Unable to handle a browser window](https://www.ruby-forum.com/t/unable-to-handle-a-browser-window/136778)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 0\
**Last updated:** [May 6, 2008, 11:36am UTC](https://www.ruby-forum.com/t/unable-to-handle-a-browser-window/136778 "2008-05-06T11:36:39Z")

</div>

Hi In one web site when i am clicking on the page, a new browser window is opening. But I cannot handle the window (i.e) I cannot the perform the operations like writing the data in it; clicking on the “Save Comme…

---

## [Very basic question | Ruby + MySql](https://www.ruby-forum.com/t/very-basic-question-ruby-mysql/136657)

<div class="topic-metadata">

**Author:** [@Csongor](https://www.ruby-forum.com/u/Csongor)\
**Replies:** 7\
**Last updated:** [May 6, 2008, 11:36am UTC](https://www.ruby-forum.com/t/very-basic-question-ruby-mysql/136657 "2008-05-06T11:36:00Z")

</div>

I’m sorry to ask such a newbie question but I wasn’t able to figure this out yet. I just want to write a simple Ruby program that can select data from a MySql database. I assume that Ruby DBI would be the easiest way …

---

## [Ruby 1.9, OS X 10.5.2 Test Fail! After Build](https://www.ruby-forum.com/t/ruby-1-9-os-x-10-5-2-test-fail-after-build/136756)

<div class="topic-metadata">

**Author:** [@lmcdougal](https://www.ruby-forum.com/u/lmcdougal)\
**Replies:** 1\
**Last updated:** [May 6, 2008, 9:58am UTC](https://www.ruby-forum.com/t/ruby-1-9-os-x-10-5-2-test-fail-after-build/136756 "2008-05-06T09:58:05Z")

</div>

I bet someone knows how to fix this one! Help Please Thanks -L Source form ruby-1.9.0-1.tar.gz test\_thread.rb … #230 test\_knownbug.rb:19:in \<top (required)\>': class C define\_method(:foo) { if block\_given? :ng else …

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

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