# Ruby

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

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

---

## [Use of bind variables using OCI8](https://www.ruby-forum.com/t/use-of-bind-variables-using-oci8/122484)

<div class="topic-metadata">

**Author:** [@hbotadra](https://www.ruby-forum.com/u/hbotadra)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 1:54am UTC](https://www.ruby-forum.com/t/use-of-bind-variables-using-oci8/122484 "2007-12-08T01:54:37Z")

</div>

Hey Guys, I am having some issues with the use of bind variables… When I use… connFC = OCI8.new() connFC.exec(“SELECT \* from emp where id = #{id}”) { |row| } it works perfectly fine…but when I modify to use bind va…

---

## [Modulus and Exponent](https://www.ruby-forum.com/t/modulus-and-exponent/196536)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 12:48am UTC](https://www.ruby-forum.com/t/modulus-and-exponent/196536 "2007-12-08T00:48:17Z")

</div>

Is there a way to get the modulus and exponent from an key, or is there a way to get that information as it is being encrypted? I am using the OpenSSL::PKey::RSA library to encrypt my data. Thanks, -S

---

## [FXRuby This application has requested the Runtime to termin](https://www.ruby-forum.com/t/fxruby-this-application-has-requested-the-runtime-to-termin/122482)

<div class="topic-metadata">

**Author:** [@ernsttanaka](https://www.ruby-forum.com/u/ernsttanaka)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 12:01am UTC](https://www.ruby-forum.com/t/fxruby-this-application-has-requested-the-runtime-to-termin/122482 "2007-12-08T00:01:01Z")

</div>

Hi: I am new to Ruby and even newer to RubyFX. Make some good progress, but started to integrate FXRUBY in my project. Getting an error everytime I make a rubyfx error; “This application has requested the Runtime to …

---

## [Question about iterators and reading a file](https://www.ruby-forum.com/t/question-about-iterators-and-reading-a-file/122464)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/question-about-iterators-and-reading-a-file/122464 "2007-12-07T23:48:38Z")

</div>

Hi All, I’m trying to write a loop to read in a file with the following structure: ... ... And I have this piece of loop: f = open(File, ‘r’).each do |l| strIn = l.chomp # Now what!?!! end I need to advance…

---

## [Re: rails, htmldoc and cgi](https://www.ruby-forum.com/t/re-rails-htmldoc-and-cgi/122478)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/re-rails-htmldoc-and-cgi/122478 "2007-12-07T22:22:59Z")

</div>

If I had to guess, I’d guess that the problem is that it times out. Try setting the timeout longer, or doing a very small document to see if that helps. – MarkusQ Sent via BlackBerry from T-Mobile

---

## [Fastercsv error](https://www.ruby-forum.com/t/fastercsv-error/122459)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/fastercsv-error/122459 "2007-12-07T22:10:40Z")

</div>

When i try to parse this file, i get a error. irb(main):006:0\> rows=FasterCSV.new(“c:\\temp\\mktsymbols.txt”, {:headers=\>true,: col\_sep=\>"\\t"}) =\> #\<FasterCSV:0x2ddfc3c @lineno=0, @header\_converters=\[\], @converters=\[\]…

---

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

<div class="topic-metadata">

**Author:** [@DK05](https://www.ruby-forum.com/u/DK05)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/gem-installation/122476 "2007-12-07T22:05:58Z")

</div>

sorry to bring this up, but i’m trying to install gems but am having inconsistent results. Some do, some don’t. I’ve tried setting the http env variable and using -p to account for proxy setting. still get ERROR: Whil…

---

## [Winxp multicast socket reading problem](https://www.ruby-forum.com/t/winxp-multicast-socket-reading-problem/114058)

<div class="topic-metadata">

**Author:** [@akifusenet](https://www.ruby-forum.com/u/akifusenet)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/winxp-multicast-socket-reading-problem/114058 "2007-12-07T21:38:18Z")

</div>

Hi I am trying to read some data from a multicast address. So I googled and found this example. require ‘socket’ require ‘ipaddr’ MULTICAST\_ADDR = “225.4.5.6” PORT = 5000 ip = IPAddr.new(MULTICAST\_ADDR).hton + IP…

---

## [Receiving an XML POST via CGI](https://www.ruby-forum.com/t/receiving-an-xml-post-via-cgi/122420)

<div class="topic-metadata">

**Author:** [@frocco](https://www.ruby-forum.com/u/frocco)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/receiving-an-xml-post-via-cgi/122420 "2007-12-07T19:13:41Z")

</div>

Hi, I’m a competent enough Objective-C and Java programmer, but I’m still having the occasional problem getting my head around the “Ruby way”. The class that gives me most headaches is CGI… I’ve got a script running …

---

## [Download zip file and open it](https://www.ruby-forum.com/t/download-zip-file-and-open-it/122453)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/download-zip-file-and-open-it/122453 "2007-12-07T18:30:43Z")

</div>

hello How do i download the zip file, and extract it using ruby http://www.dtniq.com/product/mktsymbols.zip seede

---

## [Help with has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/help-with-has-and-belongs-to-many/122375)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 6\
**Last updated:** [December 7, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/help-with-has-and-belongs-to-many/122375 "2007-12-07T18:27:11Z")

</div>

class Trade \< ActiveRecord::Base has\_and\_belongs\_to\_many :tags class Tag \< ActiveRecord::Base set\_table\_name “tags” has\_and\_belongs\_to\_many :trades end how to i add records to the table tags\_trades using active rc…

---

## [How do I add x months to a date](https://www.ruby-forum.com/t/how-do-i-add-x-months-to-a-date/108439)

<div class="topic-metadata">

**Author:** [@benemson](https://www.ruby-forum.com/u/benemson)\
**Replies:** 9\
**Last updated:** [December 7, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/how-do-i-add-x-months-to-a-date/108439 "2007-12-07T17:46:07Z")

</div>

I have a date my\_date = Date.new( 2007, 1, 1 ) I then have a variable holding an integer months\_to\_add = 4 How do i add ‘months\_to\_add’ to my\_date’? I have spent ages googeling and looking in o’reilly ruby cookbook …

---

## [Advanced Rails Recipes in Beta](https://www.ruby-forum.com/t/advanced-rails-recipes-in-beta/122438)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/advanced-rails-recipes-in-beta/122438 "2007-12-07T16:57:22Z")

</div>

Hi Folks, Sorry for the commercial. Now that the much-anticipated Rails 2.0 is out, I’m pleased to announce that Advanced Rails Recipes is now available in beta form: http://pragprog.com/titles/fr\_arr This has been…

---

## [OpenSSL for Ruby 1.8.5](https://www.ruby-forum.com/t/openssl-for-ruby-1-8-5/122440)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/openssl-for-ruby-1-8-5/122440 "2007-12-07T16:52:05Z")

</div>

Trying to run a Rails app that needs to use OpenSSL, among other libs. Get this error: This error occurred while loading the following files: net/https openssl I am using Ruby 1.8.5, and it’s my understanding that …

---

## [Worth an RCR? static\_type\_check, polymorphic\_type\_check, quacks\_like](https://www.ruby-forum.com/t/worth-an-rcr-static-type-check-polymorphic-type-check-quacks-like/122261)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 17\
**Last updated:** [December 7, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/worth-an-rcr-static-type-check-polymorphic-type-check-quacks-like/122261 "2007-12-07T16:37:59Z")

</div>

Is there another library like this? I would love it if it were just standard methods on Object. I find this very useful and ‘require’ it into all code I write. Just helps me mop up those problems that static type chec…

---

## [Rubygems 0.9.5 install issue](https://www.ruby-forum.com/t/rubygems-0-9-5-install-issue/122124)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 8\
**Last updated:** [December 7, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/rubygems-0-9-5-install-issue/122124 "2007-12-07T16:29:11Z")

</div>

I was attempting to install rubygems on a machine that has, and otherwise runs ruby just fine (installed in /usr/local/). every attempt at installing rubygems ends the same way: after a slew of install -c lines that a…

---

## [Function like "function\_exits"](https://www.ruby-forum.com/t/function-like-function-exits/122320)

<div class="topic-metadata">

**Author:** [@dofre](https://www.ruby-forum.com/u/dofre)\
**Replies:** 21\
**Last updated:** [December 7, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/function-like-function-exits/122320 "2007-12-07T16:23:49Z")

</div>

Hi all, I’m new dev in Ruby, and my first question here: how to know if funtion exists ?

---

## [Printing on new lines](https://www.ruby-forum.com/t/printing-on-new-lines/122417)

<div class="topic-metadata">

**Author:** [@johnsmith](https://www.ruby-forum.com/u/johnsmith)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/printing-on-new-lines/122417 "2007-12-07T15:41:02Z")

</div>

hello iv written a class which prints a a number of hashes of refrences however it all prints on one line. What i was wondering was it is possible to print each reference on a different line. Any help would be much a…

---

## [Newbie ruby wonderment](https://www.ruby-forum.com/t/newbie-ruby-wonderment/122369)

<div class="topic-metadata">

**Author:** [@araminska](https://www.ruby-forum.com/u/araminska)\
**Replies:** 9\
**Last updated:** [December 7, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/newbie-ruby-wonderment/122369 "2007-12-07T15:35:46Z")

</div>

Nothing important here, just wondering. Started adding Ruby to my skills when I saw a Rails demo at at convention. Discovered real quick that I was going to have to learn a little Ruby before the books on Rails made …

---

## [About to\_path and to\_open](https://www.ruby-forum.com/t/about-to-path-and-to-open/122306)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 9\
**Last updated:** [December 7, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/about-to-path-and-to-open/122306 "2007-12-07T15:07:33Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B$/$@$i$J$$$3$H$G62=L$G$9$,!"e(Brequire 0 e$B$NNc30%a%C%;!\<%8$,JQ$G$9!#e(B $ ./ruby -ve ‘require 0’ ruby 1.9.0 (2007-12-06 patchlevel 0) \[i686-linux\] -e:1:in require': can't convert nil into…

---

## [Change default directory of javascripts?](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413)

<div class="topic-metadata">

**Author:** [@sun](https://www.ruby-forum.com/u/sun)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122413 "2007-12-07T13:22:30Z")

</div>

Hi, I am using overlibmws.js library to add some dynamic effect to my rails web pages. But the server can not find the gif files that required by javascripts. It always tries to search in , for example ,"/experiment…

---

## [Reasons to use a buffer in IO::read?](https://www.ruby-forum.com/t/reasons-to-use-a-buffer-in-io-read/122268)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 8\
**Last updated:** [December 7, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/reasons-to-use-a-buffer-in-io-read/122268 "2007-12-07T12:52:34Z")

</div>

Hi Ruby people, I’m wondering what the functional and performance differences might be between the two statements below? Assume ‘io’ is an IO instance with gobs of data in it. Assume ‘file’ is an open file instance wi…

---

## [Array iterator that have more arrays that also need iteratio](https://www.ruby-forum.com/t/array-iterator-that-have-more-arrays-that-also-need-iteratio/122344)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 13\
**Last updated:** [December 7, 2007, 10:22am UTC](https://www.ruby-forum.com/t/array-iterator-that-have-more-arrays-that-also-need-iteratio/122344 "2007-12-07T10:22:41Z")

</div>

Hello … In my new introduction to RoR and Ruby, I’m stopped again … I know it must be easy, but I can’t figure it out, maybe I’m stucked … I have one array, and each element of this array, has another array. I have t…

---

## [ANN: Sequel 0.4.2 Released](https://www.ruby-forum.com/t/ann-sequel-0-4-2-released/122402)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 10:15am UTC](https://www.ruby-forum.com/t/ann-sequel-0-4-2-released/122402 "2007-12-07T10:15:26Z")

</div>

Sequel version 0.4.1 has just been released. This release includes a new plugin system for models, new experimental adapters, and enhancements to Sequel models. Sequel is a lightweight database access and ORM library …

---

## [UTF-8 and printf](https://www.ruby-forum.com/t/utf-8-and-printf/122183)

<div class="topic-metadata">

**Author:** [@jose](https://www.ruby-forum.com/u/jose)\
**Replies:** 5\
**Last updated:** [December 7, 2007, 8:45am UTC](https://www.ruby-forum.com/t/utf-8-and-printf/122183 "2007-12-07T08:45:52Z")

</div>

Hello, I’m trying to use printf to give a tabulated format to my output, like for example: printf “%20s %10s %10s”, title, author, date being title, author and date string variables. The text contained in these vari…

---

## [Get a job](https://www.ruby-forum.com/t/get-a-job/122394)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 8:35am UTC](https://www.ruby-forum.com/t/get-a-job/122394 "2007-12-07T08:35:51Z")

</div>

AREYOU SEARCHING A JOB COME AND JOIN WITH OUR MNC COMPANY.ITS ONLY FOR A CREATIVE THINKING PEOPLE http://rexmier.blogspot.com/

---

## [Fxri newby question](https://www.ruby-forum.com/t/fxri-newby-question/122387)

<div class="topic-metadata">

**Author:** [@wrishel](https://www.ruby-forum.com/u/wrishel)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 8:19am UTC](https://www.ruby-forum.com/t/fxri-newby-question/122387 "2007-12-07T08:19:24Z")

</div>

I am using the version of fxri that comes with the single-download Windows distribution Ruby-186-25. Initially, it works fine; I can click on an entry in the left pane and view the documentation the top right pane. I …

---

## [WSO2 WSF/Ruby 1.0.0 - RC1 Released](https://www.ruby-forum.com/t/wso2-wsf-ruby-1-0-0-rc1-released/122390)

<div class="topic-metadata">

**Author:** [@danushka](https://www.ruby-forum.com/u/danushka)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 8:17am UTC](https://www.ruby-forum.com/t/wso2-wsf-ruby-1-0-0-rc1-released/122390 "2007-12-07T08:17:53Z")

</div>

WSF/Ruby - 1.0.0-RC WSF(Web Services Framework)/Ruby is the Ruby language extension to WSO2\[http://wso2.com/\] WSF/C \[http://www.wso2.org/projects/wsf/c\]. With this Ruby module, you can write client/service application…

---

## [Custom error handling question](https://www.ruby-forum.com/t/custom-error-handling-question/122342)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 8:04am UTC](https://www.ruby-forum.com/t/custom-error-handling-question/122342 "2007-12-07T08:04:52Z")

</div>

I’m trying to port something I’ve done in Perl to Ruby and am getting myself confused, or perhaps drowned in details between the various files. I’m trying to write a custom error handler class. The documentation tell…

---

## [Problem installing rubygems on Ruby 1.9 RC](https://www.ruby-forum.com/t/problem-installing-rubygems-on-ruby-1-9-rc/122389)

<div class="topic-metadata">

**Author:** [@ashutosh](https://www.ruby-forum.com/u/ashutosh)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 7:47am UTC](https://www.ruby-forum.com/t/problem-installing-rubygems-on-ruby-1-9-rc/122389 "2007-12-07T07:47:21Z")

</div>

OK, so with help from Reacher and Luis, I was able to run my hello world program with Ruby 1.9. (Had to turn of RUBYOPT env variable) Now I tried installing Rubygems (rubygems-0.9.5) using setup.rb provided and got f…

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

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