# Ruby

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

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

---

## [XMPP4R 0.3 released](https://www.ruby-forum.com/t/xmpp4r-0-3-released/99058)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 0\
**Last updated:** [July 20, 2006, 1:22am UTC](https://www.ruby-forum.com/t/xmpp4r-0-3-released/99058 "2006-07-20T01:22:03Z")

</div>

Hello XMPP4R is a Ruby library for the Jabber/XMPP instant messaging protocol. Version 0.3 brings a lot of new features and fixes. The release has been delayed by a redesign process, thus the class and module names of …

---

## [Rails: Saving an object into DB](https://www.ruby-forum.com/t/rails-saving-an-object-into-db/98961)

<div class="topic-metadata">

**Author:** [@Eduardo\_YSSSSSSSSez](https://www.ruby-forum.com/u/Eduardo_YSSSSSSSSez)\
**Replies:** 9\
**Last updated:** [July 20, 2006, 12:11am UTC](https://www.ruby-forum.com/t/rails-saving-an-object-into-db/98961 "2006-07-20T00:11:18Z")

</div>

I asked this in the Rails mailing list but nobody answered me, I think it is a newbie (I am a newbie) error but I don’t see the light. In a view I have a link to a controller’s action (TeamController#add\_player) that…

---

## [STR2CSTR? Malloc or not?](https://www.ruby-forum.com/t/str2cstr-malloc-or-not/99023)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 10:58pm UTC](https://www.ruby-forum.com/t/str2cstr-malloc-or-not/99023 "2006-07-19T22:58:54Z")

</div>

Hi all, I’ve seen code examples for STR2CSTR that have mallocs and (mostly) those that don’t. Which way is right? Is char \* first\_string = STR2CSTR( passed\_in\_string); good enough or should I be running: char \* fir…

---

## [String Matching in an Array](https://www.ruby-forum.com/t/string-matching-in-an-array/99022)

<div class="topic-metadata">

**Author:** [@diragor](https://www.ruby-forum.com/u/diragor)\
**Replies:** 6\
**Last updated:** [July 19, 2006, 10:33pm UTC](https://www.ruby-forum.com/t/string-matching-in-an-array/99022 "2006-07-19T22:33:43Z")

</div>

I have an array set up that I want to match the user input to a property of a sting. However whenever I try to impliment the code the stings never match and I am returned nil. The first two ways I tried: class POlist …

---

## [Connecting to an oracle database on an hp server](https://www.ruby-forum.com/t/connecting-to-an-oracle-database-on-an-hp-server/99030)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/connecting-to-an-oracle-database-on-an-hp-server/99030 "2006-07-19T22:17:29Z")

</div>

Well I’m at my wits end… I have an oracle database on an HPUX box that I can connect to using this code: require ‘oci8’ connection = OCI8.new(‘user’,‘passwd’,‘connectstring’) connection.exec(“select table\_row from t…

---

## [Ideas needed & help needed!](https://www.ruby-forum.com/t/ideas-needed-help-needed/99005)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 2\
**Last updated:** [July 19, 2006, 10:04pm UTC](https://www.ruby-forum.com/t/ideas-needed-help-needed/99005 "2006-07-19T22:04:42Z")

</div>

Ok im attempting to make a ruby fan/help/disscussion website. I need ideas for the domain name, the current two domains I like are, rFusion.com and Ruby-Fusion.com which one is better. More domain ideas are welcome. I…

---

## [Markaby/Xmlbuilder error - XmlMarkup cannot mix a text argum](https://www.ruby-forum.com/t/markaby-xmlbuilder-error-xmlmarkup-cannot-mix-a-text-argum/99024)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/markaby-xmlbuilder-error-xmlmarkup-cannot-mix-a-text-argum/99024 "2006-07-19T21:43:16Z")

</div>

Hi folks, I’m not sure if I’m grokking how to use Markaby correctly. I’m trying to render some external Markaby code as follows but get the ArgumentError at the end: require ‘markaby’ =\> true template =\<\<EOS h…

---

## [Re: Mac OSX Ruby Configuration Question](https://www.ruby-forum.com/t/re-mac-osx-ruby-configuration-question/98771)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 2\
**Last updated:** [July 19, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/re-mac-osx-ruby-configuration-question/98771 "2006-07-19T21:29:04Z")

</div>

On Jul 14, 2006, at 20:37, Mat S. wrote: On Jul 14, 2006, at 8:31 PM, Ryan R. wrote: I would not modify anything in /usr/bin directly. Apple assumes that the system /usr/bin is theirs and unmodified and will (and hav…

---

## [Re: sandbox 0.0.11 -- taking the i out of eval](https://www.ruby-forum.com/t/re-sandbox-0-0-11-taking-the-i-out-of-eval/99009)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/re-sandbox-0-0-11-taking-the-i-out-of-eval/99009 "2006-07-19T21:09:46Z")

</div>

\-----Original Message----- From: why the lucky stiff \[mailto:removed\_email\_address@domain.invalid\] Sent: Wednesday, July 19, 2006 10:22 AM To: ruby-talk ML Subject: \[ANN\] sandbox 0.0.11 – taking the i out of eval …

---

## [Maybe I don't understand the .to\_a method](https://www.ruby-forum.com/t/maybe-i-dont-understand-the-to-a-method/99013)

<div class="topic-metadata">

**Author:** [@johnf](https://www.ruby-forum.com/u/johnf)\
**Replies:** 7\
**Last updated:** [July 19, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/maybe-i-dont-understand-the-to-a-method/99013 "2006-07-19T21:09:27Z")

</div>

Hey folks, I’m attempting to write a little program that uses the Net::HTTP library to fetch a text file. The text file has lines broken up by newlines, and I thought I could use the .to\_a method to convert a variab…

---

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

<div class="topic-metadata">

**Author:** [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/newbie-question/98993 "2006-07-19T20:53:20Z")

</div>

Hello everybody, I’m new with Ruby on Rails and I’m using RadRails as my text editor. I need to write a class that parses a file but I don’t quiet understand how test my script files on RadRails…does anybody have any…

---

## [Mongoose 0.1.0](https://www.ruby-forum.com/t/mongoose-0-1-0/99004)

<div class="topic-metadata">

**Author:** [@Jamey\_C](https://www.ruby-forum.com/u/Jamey_C)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/mongoose-0-1-0/99004 "2006-07-19T20:02:47Z")

</div>

Mongoose is a database management system written in Ruby. It has an ActiveRecord-like interface, uses Skiplists for its indexing, and Marshal for its data serialization. I named it Mongoose, because, like Rudyard Ki…

---

## [How to preserve $~ when extending Regexp#match](https://www.ruby-forum.com/t/how-to-preserve-when-extending-regexp-match/98915)

<div class="topic-metadata">

**Author:** [@brendanbaldwin](https://www.ruby-forum.com/u/brendanbaldwin)\
**Replies:** 5\
**Last updated:** [July 19, 2006, 7:59pm UTC](https://www.ruby-forum.com/t/how-to-preserve-when-extending-regexp-match/98915 "2006-07-19T19:59:38Z")

</div>

Consider the following Regexp/MatchData extension, which pops a copy of the original Regexp into the MatchData object resulting from Regexp#match. Forget for a minute why anyone might want to do this: class Regexp …

---

## [Collection\_select](https://www.ruby-forum.com/t/collection-select/99014)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/collection-select/99014 "2006-07-19T19:43:53Z")

</div>

Hi I am using some ‘collection\_select’ combo boxes (w Ajax calls) , it’s working fine, here is my partial \_property.rhtml \<%= @properties = Property.find\_by\_owner\_id(owner\_id) collection\_select(:property, :name, @p…

---

## [FastCGI, shebang line options, and library path question](https://www.ruby-forum.com/t/fastcgi-shebang-line-options-and-library-path-question/99003)

<div class="topic-metadata">

**Author:** [@Chris\_Gansen](https://www.ruby-forum.com/u/Chris_Gansen)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/fastcgi-shebang-line-options-and-library-path-question/99003 "2006-07-19T18:34:32Z")

</div>

Hello! I’m trying to configure a simple script to test a ruby/apache/FastCGI setup here. I need to specify an alternate library path to the ruby executable, as the built-in search path is not sufficient. However, wh…

---

## [More newbie help with classes and methods please](https://www.ruby-forum.com/t/more-newbie-help-with-classes-and-methods-please/98866)

<div class="topic-metadata">

**Author:** [@simonh](https://www.ruby-forum.com/u/simonh)\
**Replies:** 17\
**Last updated:** [July 19, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/more-newbie-help-with-classes-and-methods-please/98866 "2006-07-19T17:36:53Z")

</div>

I posted a question a week or so now which I got some great help with. Here I am again I’m afraid! What I am now struggling with is how to add help. What I want is if the user gets the input wrong three times, I’d lik…

---

## [UNIXSocket problem with ruby 1.8.5 preview2 on cygwin](https://www.ruby-forum.com/t/unixsocket-problem-with-ruby-1-8-5-preview2-on-cygwin/98982)

<div class="topic-metadata">

**Author:** [@Kouhei\_Y](https://www.ruby-forum.com/u/Kouhei_Y)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 4:58pm UTC](https://www.ruby-forum.com/t/unixsocket-problem-with-ruby-1-8-5-preview2-on-cygwin/98982 "2006-07-19T16:58:54Z")

</div>

e$BLxED$G$9!#e(B Cygwin e$B4D6-$K$\*$$$F!"e(BTestUNIXSocket e$B$Ne(B test\_addr e$B$G;\_$^$k$h$&$G$9!#e(B C-c e$B$G=N;$5$;$?7k2L$O0J2\<$N$H$$j$G$9!#e(B % uname -a CYGWIN\_NT-5.0 mizuki 1.5.20(0.156/4/2) 2006-07-01 02:22 …

---

## [Do loops and braces](https://www.ruby-forum.com/t/do-loops-and-braces/98975)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [July 19, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/do-loops-and-braces/98975 "2006-07-19T16:15:21Z")

</div>

Is there anyway I can envelop this in braces and not have a loop ‘end’? def goto\_territory\_list ObjectMap.new.instance\_eval do sales\_admin\_link.click territories\_link.click end end Thanks Aidy

---

## [Additional requirements for a Ruby env](https://www.ruby-forum.com/t/additional-requirements-for-a-ruby-env/98599)

<div class="topic-metadata">

**Author:** [@Alexandru\_P](https://www.ruby-forum.com/u/Alexandru_P)\
**Replies:** 19\
**Last updated:** [July 19, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/additional-requirements-for-a-ruby-env/98599 "2006-07-19T16:08:44Z")

</div>

Hi! I know there are Ruby libs outthere that are coming with C extensions. To get them working you usually do a ruby setup.rb on your environment. But, having C extensions, they will require that your ENV has a few m…

---

## [Mocha - new stubbing and mocking library released](https://www.ruby-forum.com/t/mocha-new-stubbing-and-mocking-library-released/98984)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 0\
**Last updated:** [July 19, 2006, 3:56pm UTC](https://www.ruby-forum.com/t/mocha-new-stubbing-and-mocking-library-released/98984 "2006-07-19T15:56:11Z")

</div>

Mocha is a Ruby mocking library with a syntax like that of JMock and SchMock, but with a couple of useful extras. It comes in three parts: Mocha - traditional mock objects with expectations and verification Stubba - a…

---

## [Objects within objects...?](https://www.ruby-forum.com/t/objects-within-objects/98946)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 6\
**Last updated:** [July 19, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/objects-within-objects/98946 "2006-07-19T15:37:34Z")

</div>

I have a thought in my head, but I don’t know how to implement it, or even if I am thinking about it in the right way… what I want to do is store information in a header detail type way, but I would like to be able to…

---

## [Upgrade from Ruby 1.8.2 to 1.8.3 in Windows](https://www.ruby-forum.com/t/upgrade-from-ruby-1-8-2-to-1-8-3-in-windows/98979)

<div class="topic-metadata">

**Author:** [@tuka](https://www.ruby-forum.com/u/tuka)\
**Replies:** 3\
**Last updated:** [July 19, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/upgrade-from-ruby-1-8-2-to-1-8-3-in-windows/98979 "2006-07-19T15:13:01Z")

</div>

Hi, Unfortunately search is not available - so I have the following question. I would like to know how to upgrade from ruby 1.8.2 to 1.8.3 without having to uninstall and reinstall. Is this possible ? I have ROR ins…

---

## [Ruby as an Entry-level language](https://www.ruby-forum.com/t/ruby-as-an-entry-level-language/98940)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 2\
**Last updated:** [July 19, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/ruby-as-an-entry-level-language/98940 "2006-07-19T14:50:18Z")

</div>

I am trying to introduce Ruby as an entry-level language at the University of Pune, India for their MCA (Masters in Computer Applications) and MCM (Masters in Computer Management) post-graduate degree courses. I need …

---

## [Challenge](https://www.ruby-forum.com/t/challenge/98337)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 28\
**Last updated:** [July 19, 2006, 11:22am UTC](https://www.ruby-forum.com/t/challenge/98337 "2006-07-19T11:22:56Z")

</div>

OPEN = File.method ‘open’ class File def self.open(\*a) 42 end end end now restore File.open using OPEN - remember that open takes a block… -a

---

## [Pagination question](https://www.ruby-forum.com/t/pagination-question/98956)

<div class="topic-metadata">

**Author:** [@SSpalding\_Ssent\_by\_S](https://www.ruby-forum.com/u/SSpalding_Ssent_by_S)\
**Replies:** 2\
**Last updated:** [July 19, 2006, 10:45am UTC](https://www.ruby-forum.com/t/pagination-question/98956 "2006-07-19T10:45:33Z")

</div>

I can’t seem to find the information I need about pagination. It seems that by default the paginations scheme breaks things up from first to last. Does anyone know how one would be able to paginate from the last ite…

---

## [Finding methods of instance itself](https://www.ruby-forum.com/t/finding-methods-of-instance-itself/98943)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 10:14am UTC](https://www.ruby-forum.com/t/finding-methods-of-instance-itself/98943 "2006-07-19T10:14:26Z")

</div>

I use IRB to explore. Very often I type a.methods.sort, to see what an object can do. The problem is, you’re hit with 100 methods from Object (or the superclass). I’ve experimented with: a.methods - a.class.supercl…

---

## [Match doesn't match](https://www.ruby-forum.com/t/match-doesnt-match/98931)

<div class="topic-metadata">

**Author:** [@vcivelek](https://www.ruby-forum.com/u/vcivelek)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 9:46am UTC](https://www.ruby-forum.com/t/match-doesnt-match/98931 "2006-07-19T09:46:09Z")

</div>

arg1 = “(1)a” arg2 = “(1)a” if arg1.match(arg2) puts “Matched” else puts “Don’t Matched” end gives me “Don’t Matched” ?? Regards, Volkan

---

## [Yaml and Bignum](https://www.ruby-forum.com/t/yaml-and-bignum/98922)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 9:14am UTC](https://www.ruby-forum.com/t/yaml-and-bignum/98922 "2006-07-19T09:14:57Z")

</div>

i get an error reading a yaml file : TypeError: allocator undefined for Bignum afaik, it’s due to this line in my file : mappings\_file\_mtime: !ruby/object:Bignum 1151152397 someone knows a workaround for that this i…

---

## [Integer encoding challenge](https://www.ruby-forum.com/t/integer-encoding-challenge/98938)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 7:27am UTC](https://www.ruby-forum.com/t/integer-encoding-challenge/98938 "2006-07-19T07:27:36Z")

</div>

Hey all, I need to come up with a way to encode an integer as a string so that it will sort correctly lexicographically. This is pretty easy when you have a fixed integer range but how do you do it with Ruby’s BigNums…

---

## [Win32, open3 and fork](https://www.ruby-forum.com/t/win32-open3-and-fork/98592)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 19, 2006, 6:07am UTC](https://www.ruby-forum.com/t/win32-open3-and-fork/98592 "2006-07-19T06:07:47Z")

</div>

Dear all, I am trying to use open3 on Windows XP (one-click installer). I get the following error message: c:/ruby/lib/ruby/1.8/open3.rb:20:in fork': the fork() function is unimplemented on this machine (NotImplemente…

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

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