# Ruby

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

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

---

## [RAILS@: select(object, method, choices, options = {}, html\_o](https://www.ruby-forum.com/t/rails-select-object-method-choices-options-html-o/105061)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 12:11pm UTC](https://www.ruby-forum.com/t/rails-select-object-method-choices-options-html-o/105061 "2007-05-25T12:11:19Z")

</div>

Hi, I’m trying to insert the above call into a rails form , except that the field I want displayed does’nt exist in the model for which the view is written. Can someone tell me what exactly the method parameter is …

---

## [Ruby, OptionParser and multiple flags](https://www.ruby-forum.com/t/ruby-optionparser-and-multiple-flags/104994)

<div class="topic-metadata">

**Author:** [@LDCSJairo\_Eduardo](https://www.ruby-forum.com/u/LDCSJairo_Eduardo)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 10:05am UTC](https://www.ruby-forum.com/t/ruby-optionparser-and-multiple-flags/104994 "2007-05-25T10:05:48Z")

</div>

Hello all, I’m currently writing a small script needed for my lab in which I need to parse a few command line arguments in a UNIX like way. My code goes something like this: #!/usr/bin/ruby -w require ‘optparse’ …

---

## [SOAP4r, threads, and Windows ... the mystery](https://www.ruby-forum.com/t/soap4r-threads-and-windows-the-mystery/105004)

<div class="topic-metadata">

**Author:** [@snowdall](https://www.ruby-forum.com/u/snowdall)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 9:21am UTC](https://www.ruby-forum.com/t/soap4r-threads-and-windows-the-mystery/105004 "2007-05-25T09:21:44Z")

</div>

Hello, I am part of a team developing a remote computing tool of sorts. My part is to write the part that accesses a remote machine and dispatches essentially a batch job on that machine and fetches the output from t…

---

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

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 8:25am UTC](https://www.ruby-forum.com/t/how-to-know-the-os-platform/105041 "2007-05-25T08:25:40Z")

</div>

How can i know which OS platform the ruby application is running, MS Windows, Mac OS or Linux? thank you

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/105043)

<div class="topic-metadata">

**Author:** [@Juan\_PSSoto](https://www.ruby-forum.com/u/Juan_PSSoto)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 7:48am UTC](https://www.ruby-forum.com/t/no-subject/105043 "2007-05-25T07:48:08Z")

</div>

index

---

## [Gem update](https://www.ruby-forum.com/t/gem-update/105034)

<div class="topic-metadata">

**Author:** [@jacquie](https://www.ruby-forum.com/u/jacquie)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 7:33am UTC](https://www.ruby-forum.com/t/gem-update/105034 "2007-05-25T07:33:19Z")

</div>

Hi,all I tried to do gem update --system in my windows XP box. then I’ve got Updating RubyGems… Need to update 18 gems from http://gems.rubyforge.org … complete Attempting remote update of rubygems-update ERROR: …

---

## [Prototype-1.0.0](https://www.ruby-forum.com/t/prototype-1-0-0/105039)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 6:26am UTC](https://www.ruby-forum.com/t/prototype-1-0-0/105039 "2007-05-25T06:26:02Z")

</div>

NAME prototype.rb INSTALL gem install prototype URIS http://codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ SYNOPSIS prototype.rb facilitates a prototype based coding style http://en.wi…

---

## [Actors for Ruby: The Omnibus Concurrency Library 0.1](https://www.ruby-forum.com/t/actors-for-ruby-the-omnibus-concurrency-library-0-1/105038)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 6:12am UTC](https://www.ruby-forum.com/t/actors-for-ruby-the-omnibus-concurrency-library-0-1/105038 "2007-05-25T06:12:01Z")

</div>

With all the recent interest in Erlang, I’ve decided to bump up the release schedule of my Omnibus Concurrency Library. It provides a Ruby-esque implementation of actors, as well as a few other concurrency approaches…

---

## [Getting a Ruby script to run on a colleague's Mac](https://www.ruby-forum.com/t/getting-a-ruby-script-to-run-on-a-colleagues-mac/104934)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 8\
**Last updated:** [May 25, 2007, 6:11am UTC](https://www.ruby-forum.com/t/getting-a-ruby-script-to-run-on-a-colleagues-mac/104934 "2007-05-25T06:11:01Z")

</div>

I wrote a Ruby script that’s working fine on my own Windows machine at work. I wanted to share it with a colleague who uses a Mac at the office, but I can’t get it to run. The script needs several libraries, including…

---

## [Ruby Header Files in Mac OS X](https://www.ruby-forum.com/t/ruby-header-files-in-mac-os-x/104926)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 14\
**Last updated:** [May 25, 2007, 2:21am UTC](https://www.ruby-forum.com/t/ruby-header-files-in-mac-os-x/104926 "2007-05-25T02:21:42Z")

</div>

\[Snow-iMac:~/Desktop/Programming/rubyforger\] ari% ruby extconf.rb can’t find header files for ruby. Am I the only one having this issue? I have found ruby.h (assuming that’s the file it’s looking for), and it’s in the…

---

## [Optimizing for speed - Array#each](https://www.ruby-forum.com/t/optimizing-for-speed-array-each/104933)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 8\
**Last updated:** [May 25, 2007, 12:35am UTC](https://www.ruby-forum.com/t/optimizing-for-speed-array-each/104933 "2007-05-25T00:35:33Z")

</div>

I ran the profiler on my program and it said that 51% of the time is spent in Array#each. Is there any way to speed this up (like using Array#each\_index perhaps)? And is there a quicker way to do a .gsub if I’m using…

---

## [Sending data, no strings via socket](https://www.ruby-forum.com/t/sending-data-no-strings-via-socket/105009)

<div class="topic-metadata">

**Author:** [@cabazorro](https://www.ruby-forum.com/u/cabazorro)\
**Replies:** 6\
**Last updated:** [May 25, 2007, 12:03am UTC](https://www.ruby-forum.com/t/sending-data-no-strings-via-socket/105009 "2007-05-25T00:03:31Z")

</div>

I’m trying to send data like typedef struct{ u\_int32\_t type; u\_int8\_t len; u\_int8\_t \* buf; } over a tcp socket using ruby. Anything I push over the socket comes out the other end as a string… in Ruby… data = 10 …

---

## [Enumerator for Hash](https://www.ruby-forum.com/t/enumerator-for-hash/104843)

<div class="topic-metadata">

**Author:** [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Replies:** 11\
**Last updated:** [May 24, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/enumerator-for-hash/104843 "2007-05-24T23:27:27Z")

</div>

I have a complex object that I want to hash in different ways, similar to the way Enumerator allows for iterating using something besides #each. For one Hash I can use the #hash method for indexing, but for another h…

---

## [Temporary require ,is it possible?](https://www.ruby-forum.com/t/temporary-require-is-it-possible/104960)

<div class="topic-metadata">

**Author:** [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Replies:** 7\
**Last updated:** [May 24, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/temporary-require-is-it-possible/104960 "2007-05-24T22:22:18Z")

</div>

I have a idea,it is “temporary require” module Find # my define end tmp\_require("find"){ #do something with "Find.find" method,temporary!! } puts Find # my define,no "Find.find" method Is it possible?

---

## [Virtual metaclasses explanation](https://www.ruby-forum.com/t/virtual-metaclasses-explanation/104999)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/virtual-metaclasses-explanation/104999 "2007-05-24T20:40:57Z")

</div>

I am getting a bit weighed down at this moment by looking under the bonnet a bit too much, but in figure 24.2 in Dave T. Pragmatic Programming, classes and objects is is unclear how the metaclass acquires its additi…

---

## [ANN: RubyGems 0.9.4](https://www.ruby-forum.com/t/ann-rubygems-0-9-4/104930)

<div class="topic-metadata">

**Author:** [@jimweirich](https://www.ruby-forum.com/u/jimweirich)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-4/104930 "2007-05-24T18:00:35Z")

</div>

= Announce: RubyGems Release 0.9.4 Release 0.9.4 is a maintenance release of RubyGems that fixes a number of small bugs. If you are experiencing problems with the source index (e.g. strange “No Method” errors), or pr…

---

## [Gembuilder 1.1.3 Released](https://www.ruby-forum.com/t/gembuilder-1-1-3-released/104938)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 9\
**Last updated:** [May 24, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/gembuilder-1-1-3-released/104938 "2007-05-24T17:08:22Z")

</div>

SYNOPSIS: Build your gem so that it can be deployed on machines without a build chain Note this is not a hoe/sow or newgem competitor, but rather a simple tool to take a gem (mongrel for example) that has one or more…

---

## [Ruby Tutorial for beginners](https://www.ruby-forum.com/t/ruby-tutorial-for-beginners/72096)

<div class="topic-metadata">

**Author:** [@dibya](https://www.ruby-forum.com/u/dibya)\
**Replies:** 14\
**Last updated:** [May 24, 2007, 3:05pm UTC](https://www.ruby-forum.com/t/ruby-tutorial-for-beginners/72096 "2007-05-24T15:05:38Z")

</div>

Hi All, This is to let you know that my good friend, Satish T. has put together an excellent site â?? Learning R. here â?? http://sitekreator.com/satishtalim/index.html This is based on his Ruby study notes made whi…

---

## [Require\_gem vs. gem](https://www.ruby-forum.com/t/require-gem-vs-gem/104896)

<div class="topic-metadata">

**Author:** [@raughan](https://www.ruby-forum.com/u/raughan)\
**Replies:** 11\
**Last updated:** [May 24, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/require-gem-vs-gem/104896 "2007-05-24T14:39:20Z")

</div>

I am confused, can somebody please explain to me the difference between these two calls? I tried some variations below, and the only one that worked was the obsolete require\_gem call. user@vm0\_gentoo /my/path $ irb …

---

## [Magic Squares (#124)](https://www.ruby-forum.com/t/magic-squares-124/104975)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/magic-squares-124/104975 "2007-05-24T14:19:16Z")

</div>

I was pleasantly surprised by the number of people that tackled the extra credit this time around. Essentially, there are different algorithms for building magic squares depending on the size of the square. There a…

---

## [Problem with REXML](https://www.ruby-forum.com/t/problem-with-rexml/104962)

<div class="topic-metadata">

**Author:** [@bigjimmyk3](https://www.ruby-forum.com/u/bigjimmyk3)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/problem-with-rexml/104962 "2007-05-24T13:22:10Z")

</div>

I have a problem when reading out strings from xml documents. The problem is that special characters such as Ã¥Ã¤Ã¶ comes out wierd. When reading these characters from text files the problem doesn’t exist. Can someone…

---

## [Postgres monitoring](https://www.ruby-forum.com/t/postgres-monitoring/104969)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/postgres-monitoring/104969 "2007-05-24T13:11:10Z")

</div>

Hi maybe a newb question but are there any libraries that allow me to monitor postgres trasactions realtime as they occur? thanks

---

## [RubyCocoa 0.11.0](https://www.ruby-forum.com/t/rubycocoa-0-11-0/104809)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/rubycocoa-0-11-0/104809 "2007-05-24T12:56:08Z")

</div>

Hi, I am honored to announce the immediate release of RubyCocoa 0.11.0. RubyCocoa is a Mac OS X framework that allows Cocoa programming in the object-oriented scripting language Ruby. In other words, it is a bridge t…

---

## [Executing a post via SSH](https://www.ruby-forum.com/t/executing-a-post-via-ssh/104966)

<div class="topic-metadata">

**Author:** [@commander](https://www.ruby-forum.com/u/commander)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/executing-a-post-via-ssh/104966 "2007-05-24T12:40:07Z")

</div>

Hi, could somebody show me a working example on how to execute a post via SSH? Some minutes before I learned that I have to use “require ‘net/ https’” instead of net/http. But net/https is now mentioned in the docs!?…

---

## [Timeout accessing .Net Webservice via POST or GET](https://www.ruby-forum.com/t/timeout-accessing-net-webservice-via-post-or-get/104658)

<div class="topic-metadata">

**Author:** [@commander](https://www.ruby-forum.com/u/commander)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 11:46am UTC](https://www.ruby-forum.com/t/timeout-accessing-net-webservice-via-post-or-get/104658 "2007-05-24T11:46:00Z")

</div>

Hi, I try to access an .Net webservice which is accessible via HTTP POST and GET. Using a browser this works just fine, but using Net::HTTP causes a timeout in rbuf\_fill. Any hint how to debug this? Or is it a know p…

---

## [Lone Star Ruby Conf 2007](https://www.ruby-forum.com/t/lone-star-ruby-conf-2007/104598)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 5\
**Last updated:** [May 24, 2007, 8:25am UTC](https://www.ruby-forum.com/t/lone-star-ruby-conf-2007/104598 "2007-05-24T08:25:02Z")

</div>

Howdy I am pleased to announce the first annual Lone Star Ruby Conference: Lone Star Ruby Conf 2007 September 7-8, 2007 Norris Conference Center Austin, TX You can take the …

---

## [Override def method in CGI class, without altering the class](https://www.ruby-forum.com/t/override-def-method-in-cgi-class-without-altering-the-class/104936)

<div class="topic-metadata">

**Author:** [@Jer\_A](https://www.ruby-forum.com/u/Jer_A)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 8:07am UTC](https://www.ruby-forum.com/t/override-def-method-in-cgi-class-without-altering-the-class/104936 "2007-05-24T08:07:01Z")

</div>

hello all, I am a newbie to ruby. how do I override a method from a particular class (in std class lib), just for one program, without modifying the class. Thanks in advance for all your help. -Jer A.

---

## [Printing float to string with decimal rounding](https://www.ruby-forum.com/t/printing-float-to-string-with-decimal-rounding/104890)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 7:50am UTC](https://www.ruby-forum.com/t/printing-float-to-string-with-decimal-rounding/104890 "2007-05-24T07:50:59Z")

</div>

I am trying to print a float result in a string but I can get it right I get float numbers like : distance = 0.2568915421 , 1.2568910001, 20.3256941254 (8 decimals) I wrote d = (distance.\*1000).round/1000.0 #…

---

## [Ruby socket programming](https://www.ruby-forum.com/t/ruby-socket-programming/104900)

<div class="topic-metadata">

**Author:** [@monarailguy42](https://www.ruby-forum.com/u/monarailguy42)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 5:06am UTC](https://www.ruby-forum.com/t/ruby-socket-programming/104900 "2007-05-24T05:06:50Z")

</div>

Hello I am trying to write a simple ruby socket program. I am trying to communicate to a device that once I establish a TCPSocket connection I can pass it sql commands and it will return me data. Here is what I have …

---

## [C2 Rcov Covrage](https://www.ruby-forum.com/t/c2-rcov-covrage/104763)

<div class="topic-metadata">

**Author:** [@koustubh\_joshi](https://www.ruby-forum.com/u/koustubh_joshi)\
**Replies:** 2\
**Last updated:** [May 24, 2007, 4:46am UTC](https://www.ruby-forum.com/t/c2-rcov-covrage/104763 "2007-05-24T04:46:48Z")

</div>

Hi All, How i can get C2 coverage in Rcov?

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

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