# Ruby

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

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

---

## [How to connect 2 oracle using ruby-oci-8](https://www.ruby-forum.com/t/how-to-connect-2-oracle-using-ruby-oci-8/124392)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 9:00am UTC](https://www.ruby-forum.com/t/how-to-connect-2-oracle-using-ruby-oci-8/124392 "2007-12-28T09:00:35Z")

</div>

how to connect 2 oracle using ruby-oci8 . I am not using ruby rails . Just a simple ruby program to connect to oracle table and fetch data from there.

---

## [CGI::Session not sending cookie](https://www.ruby-forum.com/t/cgi-session-not-sending-cookie/124390)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 8:05am UTC](https://www.ruby-forum.com/t/cgi-session-not-sending-cookie/124390 "2007-12-28T08:05:40Z")

</div>

I’m using mod\_ruby, eruby and CGI::Session in an application. It seems that the cookie is never being sent, and I have no idea why. Here’s a simple rhtml file illustrating the problem: % require ‘cgi’ % require ‘cgi/…

---

## [No such file to load -- active\_record](https://www.ruby-forum.com/t/no-such-file-to-load-active-record/124349)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 3\
**Last updated:** [December 28, 2007, 8:02am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-active-record/124349 "2007-12-28T08:02:09Z")

</div>

This works fine from my linux box, but no such luck from windows: C:\\code\\dwemthys\> C:\\code\\dwemthys\>gem install ActiveRecord Successfully installed activerecord-2.0.2 Installing ri documentation for activerecord-2.0…

---

## [RubyInline 3.6.6 Released](https://www.ruby-forum.com/t/rubyinline-3-6-6-released/124358)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 7:44am UTC](https://www.ruby-forum.com/t/rubyinline-3-6-6-released/124358 "2007-12-28T07:44:02Z")

</div>

RubyInline version 3.6.6 has been released! http://rubyforge.org/projects/rubyinline/ http://www.zenspider.com/ZSS/Products/RubyInline/ Ruby Inline is an analog to Perl’s Inline::C. Out of the box, it allows you to e…

---

## [New Ruby Job Site - Off Topic](https://www.ruby-forum.com/t/new-ruby-job-site-off-topic/124369)

<div class="topic-metadata">

**Author:** [@cman](https://www.ruby-forum.com/u/cman)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 7:42am UTC](https://www.ruby-forum.com/t/new-ruby-job-site-off-topic/124369 "2007-12-28T07:42:52Z")

</div>

Hi All, We’ve put up a job board listing only Ruby programming jobs - hope you find this helpful. Thanks.

---

## [Fail to parse page after redirect in login form](https://www.ruby-forum.com/t/fail-to-parse-page-after-redirect-in-login-form/124388)

<div class="topic-metadata">

**Author:** [@rita\_amritkar](https://www.ruby-forum.com/u/rita_amritkar)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 7:23am UTC](https://www.ruby-forum.com/t/fail-to-parse-page-after-redirect-in-login-form/124388 "2007-12-28T07:23:49Z")

</div>

Hi all, My code is, agent = WWW::Mechanize.new page = agent.get(“https://www.linkedin.com”) link = page.links.find {|l| l.text =~ /Sign in/} page = agent.click(link) form = page.forms.first form.fields.find {|f…

---

## [IRB.fail](https://www.ruby-forum.com/t/irb-fail/124387)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 7:10am UTC](https://www.ruby-forum.com/t/irb-fail/124387 "2007-12-28T07:10:08Z")

</div>

e$B@\>;3OB9-$G$9!#e(B irbe$B$GL58z$J%\*%W%7%g%s$r;XDj$7$?$H$-$KNc30$r$"$2$k$N$K\<:GT$7$Fe(B NoMethodErrore$B$K$J$C$F$$$^$9!#e(B e$B860x$Oe(Be2mmap.rbe$B$Ne(B http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/e2mmap.…

---

## [Gem problem installing Rails / Ubuntu Gutsy](https://www.ruby-forum.com/t/gem-problem-installing-rails-ubuntu-gutsy/124360)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 8\
**Last updated:** [December 28, 2007, 6:58am UTC](https://www.ruby-forum.com/t/gem-problem-installing-rails-ubuntu-gutsy/124360 "2007-12-28T06:58:52Z")

</div>

Please take a look at the following. I try to make it clear what my problems are… http://pastie.caboo.se/132571

---

## [rdoc$B$H(Bencoding](https://www.ruby-forum.com/t/rdoc-b-h-bencoding/124315)

<div class="topic-metadata">

**Author:** [@akira\_yamada\_S\_SSB](https://www.ruby-forum.com/u/akira_yamada_S_SSB)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 6:25am UTC](https://www.ruby-forum.com/t/rdoc-b-h-bencoding/124315 "2007-12-28T06:25:43Z")

</div>

Debiane$B%Q%C%1!\<%8$r$$$C$7$g$K%a%s%F%J%s%9$7$F$$$ke(B daigoe$B$5$s$K65$($F$b$i$C$?$N$G$9$,!"e(B 1.9.0e$B$Ne(Bgeme$B$Ge(Brgle$B$r%$%s%9%H!\<%k$7$h$&$H$9$k$He(B rdoce$B$N=hM}$NCf$G%3%1$F$7$^$&$h$&$G$9!#e(B $ rdoc lib/…

---

## [Upgrading path from 1.8 to 1.9](https://www.ruby-forum.com/t/upgrading-path-from-1-8-to-1-9/124183)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 5:38am UTC](https://www.ruby-forum.com/t/upgrading-path-from-1-8-to-1-9/124183 "2007-12-28T05:38:57Z")

</div>

e$B$J$+$@$G$9!#e(B 1.9e$B$GDI2C$5$l$?5!G=$N$&$A!“e(BString#linese$B$He(BString#bytese$B$re(B1.8e$B$K$bDIe(B e$B2C$7$F$\*$$$F$O$I$&$G$7$g$&$+!#$H$j$”$($:e(Beach\_linee$B$He(Beach\_bytee$B$K$Oe(B e$B\<j$rF~$l$F$$$^$;$s!#e(B …

---

## [IronRuby on rails - A comment posted on Rob Connery's Blog](https://www.ruby-forum.com/t/ironruby-on-rails-a-comment-posted-on-rob-connerys-blog/124173)

<div class="topic-metadata">

**Author:** [@myreply](https://www.ruby-forum.com/u/myreply)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 3:43am UTC](https://www.ruby-forum.com/t/ironruby-on-rails-a-comment-posted-on-rob-connerys-blog/124173 "2007-12-28T03:43:11Z")

</div>

Hi, I just found this comment on " Rob Conery’s " Blog about SubSonic and the future of MVC . I am pasting as it is. Hi Rob, Very good informative blog indeed. I am curious to know one step ahead, since after few…

---

## [Should ObjectSpace.each\_object return an enumerator or not?](https://www.ruby-forum.com/t/should-objectspace-each-object-return-an-enumerator-or-not/124299)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 2:50am UTC](https://www.ruby-forum.com/t/should-objectspace-each-object-return-an-enumerator-or-not/124299 "2007-12-28T02:50:30Z")

</div>

Yuguie$B$H$$$$$^$9!#e(B ObjectSpace.each\_objecte$B$,e(BEnumeratore$B$rJV$5$J$$$N$O;EMM$Ge(B e$B$7$g$&$+e(B? e$B2a5n%m%0$r;2\>H$7$^$7$?$,!"e(BEnumeratore$B$rJV$9$Y$-%$%F%l!\<%?$He(B e$B$=$l0J30$K$D$$$Fe(B e$B4p=\`$,$h$/…

---

## [Help](https://www.ruby-forum.com/t/help/124367)

<div class="topic-metadata">

**Author:** [@Philo\_Cai](https://www.ruby-forum.com/u/Philo_Cai)\
**Replies:** 0\
**Last updated:** [December 28, 2007, 2:32am UTC](https://www.ruby-forum.com/t/help/124367 "2007-12-28T02:32:23Z")

</div>

– Your True Friend. Philo Cai

---

## [Programmer Ping-Pong (#150)](https://www.ruby-forum.com/t/programmer-ping-pong-150/123771)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 5\
**Last updated:** [December 28, 2007, 1:33am UTC](https://www.ruby-forum.com/t/programmer-ping-pong-150/123771 "2007-12-28T01:33:56Z")

</div>

This quiz was definitely more about the process than what we produced. For the record though, I do feel what we produced was quite successful. We have built a full AVL Tree implementation in under a week. It may st…

---

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

<div class="topic-metadata">

**Author:** [@kgueye](https://www.ruby-forum.com/u/kgueye)\
**Replies:** 2\
**Last updated:** [December 28, 2007, 12:22am UTC](https://www.ruby-forum.com/t/ruby-newbie/124359 "2007-12-28T00:22:34Z")

</div>

Hello, I am very new to ruby. Been in the tech field for over 10 years, however new to programming. I have gone through most of http://www.math.umd.edu/~dcarrera/ruby/0.3/ which has been very informational. I am lo…

---

## [C++ Functors and Ruby extensions](https://www.ruby-forum.com/t/c-functors-and-ruby-extensions/124105)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 11\
**Last updated:** [December 27, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/c-functors-and-ruby-extensions/124105 "2007-12-27T23:20:59Z")

</div>

I wonder if anyone has tried to do what I’m doing and if they’ve come up with an appropriate solution. Basic idea: struct ruby\_func\_wrapper { VALUE operator()(VALUE self, VALUE args) { m\_callback(args …); } } e…

---

## [Speed up ado updates](https://www.ruby-forum.com/t/speed-up-ado-updates/124240)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 27, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/speed-up-ado-updates/124240 "2007-12-27T22:57:01Z")

</div>

I have a script that uses ado to update a database. The script works but it is very slow. require ‘win32ole’ data\_source = “C:\\path\\F1Backup.sdf” prefix = “E:\\user” begin db = WIN32OLE.new(“ADODB.Connection”) db.o…

---

## [Compatibility Testing for 1.9 using ZenTest's multiruby](https://www.ruby-forum.com/t/compatibility-testing-for-1-9-using-zentests-multiruby/124341)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [December 27, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/compatibility-testing-for-1-9-using-zentests-multiruby/124341 "2007-12-27T20:42:05Z")

</div>

If you’ve got a library or three, multiruby is an easy way to verify compatibility of multiple versions of ruby: http://blog.zenspider.com/archives/2007/12/testing\_for\_ruby\_18\_and\_19\_using\_multiruby.html

---

## [Is there a maximum size for the receive in a TCPSocket as in str = streamSock.recv( 64000 )?](https://www.ruby-forum.com/t/is-there-a-maximum-size-for-the-receive-in-a-tcpsocket-as-in-str-streamsock-recv-64000/124338)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 3\
**Last updated:** [December 27, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/is-there-a-maximum-size-for-the-receive-in-a-tcpsocket-as-in-str-streamsock-recv-64000/124338 "2007-12-27T20:30:57Z")

</div>

Hello Team, Is there a limit on the amount of data (bytes) that can be received via the str = streamSock.recv( 64000 ) stmt below? Although I put \*64000 \*bytes, I consistently do not get more than 5562bytes. When t…

---

## [Index of the n-th occurrence](https://www.ruby-forum.com/t/index-of-the-n-th-occurrence/124189)

<div class="topic-metadata">

**Author:** [@marco](https://www.ruby-forum.com/u/marco)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/index-of-the-n-th-occurrence/124189 "2007-12-27T20:15:44Z")

</div>

Hi, some newbie questions… How can I obtain all the indices of the occurrences of a pattern in a string (and not only the index of the first one using “index”)? And the index of the n-th occurrence? What’s the si…

---

## [Windoze/ruby/signals - egads!](https://www.ruby-forum.com/t/windoze-ruby-signals-egads/124342)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/windoze-ruby-signals-egads/124342 "2007-12-27T19:50:21Z")

</div>

anyone understand why this just dumps EINVAL errors on windoze? cat:~ \> cat a.rb program = \<\<-ruby puts $$ require ‘logger’ logger = Logger.new STDERR Signal.list.keys.each do |sig| begin trap sig do puts(“trap:…

---

## [Change string to date error](https://www.ruby-forum.com/t/change-string-to-date-error/124304)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 3\
**Last updated:** [December 27, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/change-string-to-date-error/124304 "2007-12-27T19:45:37Z")

</div>

i get the following error. wonder why irb(main):068:0\> @@config\[“date”\] =\> “27/12/2007” irb(main):069:0\> Time.parse(@@config\[“date”\]) ArgumentError: argument out of range from e:/ruby/lib/ruby/1.8/time.rb:184:in loc…

---

## [Java-Annotations in Ruby?](https://www.ruby-forum.com/t/java-annotations-in-ruby/124034)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/java-annotations-in-ruby/124034 "2007-12-27T19:31:58Z")

</div>

Hi, In java one can do annotations in front of method declarations: http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html @AjaxCallable public static void deleteImage(int imageId) { … } I think I have n…

---

## [Port Ruby on Rails Application](https://www.ruby-forum.com/t/port-ruby-on-rails-application/124314)

<div class="topic-metadata">

**Author:** [@snoop1990](https://www.ruby-forum.com/u/snoop1990)\
**Replies:** 14\
**Last updated:** [December 27, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/port-ruby-on-rails-application/124314 "2007-12-27T18:41:52Z")

</div>

Hello, I have to leave my old server, so I did a backup and saved my ruby on rails Applications and my mysql databases to an external USB stick and brought them to the new server. The backup for mysql works just fine…

---

## [How do I get the hostname or IP address during a TCPServer "conversation"](https://www.ruby-forum.com/t/how-do-i-get-the-hostname-or-ip-address-during-a-tcpserver-conversation/124313)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 1\
**Last updated:** [December 27, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/how-do-i-get-the-hostname-or-ip-address-during-a-tcpserver-conversation/124313 "2007-12-27T17:16:04Z")

</div>

Hello Team, I have a client which connects to the simple server listed below. I would like to be able to get either the hostname or the IP address of the client. Is there a way to do this? I am sure that this inform…

---

## [Make rdoc cause segv on OpenBSD](https://www.ruby-forum.com/t/make-rdoc-cause-segv-on-openbsd/124133)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 6\
**Last updated:** [December 27, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/make-rdoc-cause-segv-on-openbsd/124133 "2007-12-27T17:10:13Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!e(BOpenBSD e$B$Ge(B make rdoc e$B$,$3$1$^$9!#e(B e$B!!e(Brb\_enc\_get e$B$NCf$J$N$G!“e(Bm17n e$B$+$J$!!”$J$s$F;W$$$^$9$,$I$&$G$7$g$&$+!#e(B $ make rdoc … resolv.rb: c…ccc…c…ccccccccccccmmc …

---

## [Ruby 1.9.0: possible bug when subclassing BasicObject](https://www.ruby-forum.com/t/ruby-1-9-0-possible-bug-when-subclassing-basicobject/124288)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 3\
**Last updated:** [December 27, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/ruby-1-9-0-possible-bug-when-subclassing-basicobject/124288 "2007-12-27T17:06:07Z")

</div>

I noticed a problem with constant lookup in Ruby 1.9.0 when subclassing from BasicObject, would anyone please explain this behavior to me, otherwise I’ll go and file a bug. What fails: http://p.ramaze.net/23 Thanks i…

---

## [Capturing error msgs from output = \`cmd\`](https://www.ruby-forum.com/t/capturing-error-msgs-from-output-cmd/124252)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 7\
**Last updated:** [December 27, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/capturing-error-msgs-from-output-cmd/124252 "2007-12-27T16:58:30Z")

</div>

Hello Team, I wrote the simple piece of code below which under “normal” circumstances it works fine. If, however, the command executed generates an error msg, the error is displayed on the screen. This is a behavio…

---

## [Vala and ruby](https://www.ruby-forum.com/t/vala-and-ruby/124307)

<div class="topic-metadata">

**Author:** [@fla](https://www.ruby-forum.com/u/fla)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/vala-and-ruby/124307 "2007-12-27T14:54:25Z")

</div>

Hello, I wrote an email to Vala team (http://live.gnome.org/Vala), whether is it possible create Vala’s c-code compatible to Swig. The answer from vala team was: I’ve never used Swig, what special C code does it nee…

---

## [Bloki](https://www.ruby-forum.com/t/bloki/124302)

<div class="topic-metadata">

**Author:** [@Casimir](https://www.ruby-forum.com/u/Casimir)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/bloki/124302 "2007-12-27T14:36:47Z")

</div>

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

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