# Ruby

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

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

---

## [Ruby- interactions with Appservers such as Oracle/Jboss](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795)

<div class="topic-metadata">

**Author:** [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Replies:** 8\
**Last updated:** [March 10, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795 "2006-03-10T19:11:10Z")

</div>

Hi: I am evaluating using Ruby to build an enterprise application. I expect that the application setup will include a browser \[ie\], a (1)webserver such as apache and an (2)application server such as that provided by …

---

## [Ruby conf2005 audio files where?](https://www.ruby-forum.com/t/ruby-conf2005-audio-files-where/79470)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/ruby-conf2005-audio-files-where/79470 "2006-03-10T19:08:03Z")

</div>

I’m looking for the audio files from rubyconf2005 but I can’t seem to find them. They are listed on odeo but the links don’t work. Anyone know where I can find them? Charlie B. http://www.recentrambles.com

---

## [A success story](https://www.ruby-forum.com/t/a-success-story/79577)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/a-success-story/79577 "2006-03-10T18:46:52Z")

</div>

No, this isn’t some story about a successful enterprise-level intranet/extranet web portal solution done entirely in Ruby (and Rails). This is just a story of quick success in doing a simple task. Problem: I wanted to…

---

## [How can I add a new fct to the class Hash](https://www.ruby-forum.com/t/how-can-i-add-a-new-fct-to-the-class-hash/79510)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/how-can-i-add-a-new-fct-to-the-class-hash/79510 "2006-03-10T17:19:26Z")

</div>

Hi, We use a lot of “hash” in our program and we want to add a new function to the class, does someone know how to do this??? Thanks you very much sayoyo

---

## [Ruby-Watir test case organization (dir hierarchy)](https://www.ruby-forum.com/t/ruby-watir-test-case-organization-dir-hierarchy/54633)

<div class="topic-metadata">

**Author:** [@kalensr](https://www.ruby-forum.com/u/kalensr)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/ruby-watir-test-case-organization-dir-hierarchy/54633 "2006-03-10T17:19:11Z")

</div>

Greetings All: First off; I am fairly new to Ruby and Watir (3 - 4 months), and I really excited about its potential. I am also very new to the user group. I have done some research, but I am unable to find the answer…

---

## [Ruby and database connection](https://www.ruby-forum.com/t/ruby-and-database-connection/54528)

<div class="topic-metadata">

**Author:** [@seid](https://www.ruby-forum.com/u/seid)\
**Replies:** 4\
**Last updated:** [March 10, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/ruby-and-database-connection/54528 "2006-03-10T17:07:00Z")

</div>

any body know how to connect to mysql database in ruby?

---

## [Images for card game?](https://www.ruby-forum.com/t/images-for-card-game/79469)

<div class="topic-metadata">

**Author:** [@Einar\_HSSSSst](https://www.ruby-forum.com/u/Einar_HSSSSst)\
**Replies:** 7\
**Last updated:** [March 10, 2006, 4:19pm UTC](https://www.ruby-forum.com/t/images-for-card-game/79469 "2006-03-10T16:19:11Z")

</div>

Hi, Sorry, this obviously doesn’t belong here, but still: for my “Einar learns Ruby card game”, I need some card images that are “free to use”. Currently I’m doing development with some images “borrowed” from FreeCel…

---

## [Recall: Ruby Programming Exercises](https://www.ruby-forum.com/t/recall-ruby-programming-exercises/79506)

<div class="topic-metadata">

**Author:** [@wksmall](https://www.ruby-forum.com/u/wksmall)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 3:34pm UTC](https://www.ruby-forum.com/t/recall-ruby-programming-exercises/79506 "2006-03-10T15:34:40Z")

</div>

The sender would like to recall the message, “Ruby P.ming Exercises”.

---

## [Builder - tag!('p') does not work?](https://www.ruby-forum.com/t/builder-tag-p-does-not-work/54629)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/builder-tag-p-does-not-work/54629 "2006-03-10T15:16:11Z")

</div>

tag! ‘p’, {‘a’=\>‘b’} does not build up a \<p a=“b”\> element, but prints out the hash instead. Any idea why? irb(main):001:0\> require ‘builder’ =\> false irb(main):002:0\> b1 = Builder::XmlMarkup.new =\> irb(main):00…

---

## [Net::HTTP.get\_response fails](https://www.ruby-forum.com/t/net-http-get-response-fails/79468)

<div class="topic-metadata">

**Author:** [@Joerg](https://www.ruby-forum.com/u/Joerg)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/net-http-get-response-fails/79468 "2006-03-10T14:13:54Z")

</div>

Is there any reason/way for Net::HTTP.get\_response(‘www.google.com’, ‘/index.html’) to fail? I have this working on countless computers - even inside corporate networks, but in one particular corporate network - I do…

---

## [Software Carpentry (Version 955)](https://www.ruby-forum.com/t/software-carpentry-version-955/79246)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 4\
**Last updated:** [March 10, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/software-carpentry-version-955/79246 "2006-03-10T13:53:27Z")

</div>

Do we have something similar to this in the Ruby world? http://www.third-bit.com/swc2/ The only thing that came to mind was the material that Jim F. was using to teach his fellow engineers a few years back… Regards, …

---

## [Compiling Ruby without Tk?](https://www.ruby-forum.com/t/compiling-ruby-without-tk/77330)

<div class="topic-metadata">

**Author:** [@Scott\_Parkerson](https://www.ruby-forum.com/u/Scott_Parkerson)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 1:29pm UTC](https://www.ruby-forum.com/t/compiling-ruby-without-tk/77330 "2006-03-10T13:29:05Z")

</div>

Greetings, I’m trying to package Ruby without compiling the Tcl/Tk extension. This is so I can install Ruby on a system without X11 or Tcl/Tk. Examining the output of configure --help doesn’t seem to yield anything o…

---

## [Ruby crawling on a Win2003 Server](https://www.ruby-forum.com/t/ruby-crawling-on-a-win2003-server/79401)

<div class="topic-metadata">

**Author:** [@marcan](https://www.ruby-forum.com/u/marcan)\
**Replies:** 3\
**Last updated:** [March 10, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/ruby-crawling-on-a-win2003-server/79401 "2006-03-10T13:16:40Z")

</div>

I have an application that makes heavy use of ActiveRecord to fetch data and publish to files. When running on my local machine (a laptop with WinXP) I produce 1-2 files per second which is perfectly acceptable. When …

---

## [Immutable objects](https://www.ruby-forum.com/t/immutable-objects/78955)

<div class="topic-metadata">

**Author:** [@Einar\_HSSSSst](https://www.ruby-forum.com/u/Einar_HSSSSst)\
**Replies:** 9\
**Last updated:** [March 10, 2006, 1:13pm UTC](https://www.ruby-forum.com/t/immutable-objects/78955 "2006-03-10T13:13:37Z")

</div>

Hi, Still working on the basics… for my card game, I want the Card objects to be immutable. Is it sufficient to put ‘freeze’ in the end of the constructor, like this (suit and rank will be strings): def initialize(su…

---

## [C++ extension](https://www.ruby-forum.com/t/c-extension/79034)

<div class="topic-metadata">

**Author:** [@reevesg](https://www.ruby-forum.com/u/reevesg)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 1:04pm UTC](https://www.ruby-forum.com/t/c-extension/79034 "2006-03-10T13:04:26Z")

</div>

I am trying to understand some aspects of writing a ruby extension in C++. Actually what I am trying to do is wrap a C++ library and make it accessible from ruby. Since I have been having problems with the library th…

---

## [UserEngine features or howto override](https://www.ruby-forum.com/t/userengine-features-or-howto-override/79360)

<div class="topic-metadata">

**Author:** [@wizumwalt](https://www.ruby-forum.com/u/wizumwalt)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 11:39am UTC](https://www.ruby-forum.com/t/userengine-features-or-howto-override/79360 "2006-03-10T11:39:44Z")

</div>

Very new to Ruby and I’m working with the UserEngine from the rails-engine.org site and I have it installed and working, but what I want is to understand how to override the views it has under the vendor/plugins/user\_…

---

## [Rails and ActiveLDAP](https://www.ruby-forum.com/t/rails-and-activeldap/54624)

<div class="topic-metadata">

**Author:** [@Antonin\_AMAND](https://www.ruby-forum.com/u/Antonin_AMAND)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 11:09am UTC](https://www.ruby-forum.com/t/rails-and-activeldap/54624 "2006-03-10T11:09:25Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I’ve tried to set up an rails app that connect to a LDAP server using ActiveLDAP (that should act like ActiveRecord). I have understand that it is possible to genera…

---

## [Strange argument error in Ruby 1.8.4 (2006-02-24)](https://www.ruby-forum.com/t/strange-argument-error-in-ruby-1-8-4-2006-02-24/54623)

<div class="topic-metadata">

**Author:** [@ertai](https://www.ruby-forum.com/u/ertai)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 10:39am UTC](https://www.ruby-forum.com/t/strange-argument-error-in-ruby-1-8-4-2006-02-24/54623 "2006-03-10T10:39:04Z")

</div>

Hi there, I found a strange difference somewhere between Ruby 1.8.4 (2005-12-24) and Ruby 1.8.4 (2006-02-24). Here the code: h = {} a = \[\] h\[‘test’\] ||= a.join ‘c’ ArgumentError: wrong number of arguments (2 for 1…

---

## [Setting an environment variable (for libxml2)](https://www.ruby-forum.com/t/setting-an-environment-variable-for-libxml2/79207)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 10, 2006, 8:25am UTC](https://www.ruby-forum.com/t/setting-an-environment-variable-for-libxml2/79207 "2006-03-10T08:25:42Z")

</div>

because i plane to use XML Catalog, i have to set an environment variable “XML\_CATALOG\_FILES” to the path the catalogs reside. then if i do : ENV\[‘XML\_CATALOG\_FILES’\]="/path/to/catalogs" does this env var be accessib…

---

## [RubyCocoa and libxml-ruby-0.3.6](https://www.ruby-forum.com/t/rubycocoa-and-libxml-ruby-0-3-6/78011)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 28\
**Last updated:** [March 10, 2006, 8:25am UTC](https://www.ruby-forum.com/t/rubycocoa-and-libxml-ruby-0-3-6/78011 "2006-03-10T08:25:41Z")

</div>

i have two versions of Ruby with my computer, the default Tiger one (1.8.2) and another one installed in /usr/local i’ve buil recently RubyCocoa using the ruby in /ur/local however, within XCode when i print out ruby …

---

## [Binding to a local address in Net::SMTP](https://www.ruby-forum.com/t/binding-to-a-local-address-in-net-smtp/54621)

<div class="topic-metadata">

**Author:** [@Jim\_Cain](https://www.ruby-forum.com/u/Jim_Cain)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 7:58am UTC](https://www.ruby-forum.com/t/binding-to-a-local-address-in-net-smtp/54621 "2006-03-10T07:58:27Z")

</div>

For TCPSocket, I know it’s possible to specify the local IP address if you want to: socket = TCPSocket.new(remote\_addr, remote\_port, local\_addr, local\_port) BTW I found this by looking in the source code, since every …

---

## [Net::HTTP.post\_form missing method error](https://www.ruby-forum.com/t/net-http-post-form-missing-method-error/54614)

<div class="topic-metadata">

**Author:** [@dandante](https://www.ruby-forum.com/u/dandante)\
**Replies:** 5\
**Last updated:** [March 10, 2006, 7:46am UTC](https://www.ruby-forum.com/t/net-http-post-form-missing-method-error/54614 "2006-03-10T07:46:26Z")

</div>

I had some code that used to work and now all of a sudden it stopped working. Here is the minimal code to illustrate the problem: #!/usr/bin/ruby require ‘net/http’ require ‘uri’ parms = {:client=\>“safari”, :rls=\>“e…

---

## [Obfuscating/suppressing password output in TCPSocket?](https://www.ruby-forum.com/t/obfuscating-suppressing-password-output-in-tcpsocket/54608)

<div class="topic-metadata">

**Author:** [@Nate\_Smith](https://www.ruby-forum.com/u/Nate_Smith)\
**Replies:** 4\
**Last updated:** [March 10, 2006, 7:31am UTC](https://www.ruby-forum.com/t/obfuscating-suppressing-password-output-in-tcpsocket/54608 "2006-03-10T07:31:14Z")

</div>

Hello, I’m attempting to suppress the output of a password that is sent via a TCPSocket. If I have the following code: server = TCPServer.new( ‘127.0.0.1’, 8888 ) socket = server.accept() # socket is now a TCPSocket …

---

## [Is this a reasonable application for Ruby?](https://www.ruby-forum.com/t/is-this-a-reasonable-application-for-ruby/79361)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 1\
**Last updated:** [March 10, 2006, 7:25am UTC](https://www.ruby-forum.com/t/is-this-a-reasonable-application-for-ruby/79361 "2006-03-10T07:25:11Z")

</div>

I have a box that retrieves data from a weather station as well as a number of video cameras. I would also like to grab some graphics files from external FTP sites and execute some gimp comands to generate animated g…

---

## [New libxml API](https://www.ruby-forum.com/t/new-libxml-api/79362)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 6:51am UTC](https://www.ruby-forum.com/t/new-libxml-api/79362 "2006-03-10T06:51:58Z")

</div>

Recently the libxml-ruby project was picked up, and is being actively developed again. My co-workers and I have been needing an XML solution faster than REXML, and have decided to switch over to libxml. In the process …

---

## [Test Harness?](https://www.ruby-forum.com/t/test-harness/79085)

<div class="topic-metadata">

**Author:** [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Replies:** 11\
**Last updated:** [March 10, 2006, 6:36am UTC](https://www.ruby-forum.com/t/test-harness/79085 "2006-03-10T06:36:21Z")

</div>

I’m starting to feel my way around in Ruby after having been a Perler for a very long time. I’m trying to figure out how to write a proper test harness in Ruby and so far I’m running up against a brick wall. All my…

---

## [Why does this regular expression match?](https://www.ruby-forum.com/t/why-does-this-regular-expression-match/54620)

<div class="topic-metadata">

**Author:** [@dplante](https://www.ruby-forum.com/u/dplante)\
**Replies:** 1\
**Last updated:** [March 10, 2006, 5:51am UTC](https://www.ruby-forum.com/t/why-does-this-regular-expression-match/54620 "2006-03-10T05:51:01Z")

</div>

Using Test::Unit: r1 = /a\*/ assert\_nil,‘A’ =~ r1 The error I get implies that it would match in the same way that the following would match ‘a’ =~ r1 Can anyone offer any suggestions? Thanks! Dominique ps. done …

---

## [Ideas for program](https://www.ruby-forum.com/t/ideas-for-program/54617)

<div class="topic-metadata">

**Author:** [@Jesse\_Mc](https://www.ruby-forum.com/u/Jesse_Mc)\
**Replies:** 3\
**Last updated:** [March 10, 2006, 4:44am UTC](https://www.ruby-forum.com/t/ideas-for-program/54617 "2006-03-10T04:44:16Z")

</div>

I’ve just recently learned how to work with the ruby language and so i’ve been trying to make a little dice rolling program. I was wanting to make it to where you could roll several different dice like d20, 10, 6,ect…

---

## [Integer(nil) and checking numericality](https://www.ruby-forum.com/t/integer-nil-and-checking-numericality/79357)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 4:20am UTC](https://www.ruby-forum.com/t/integer-nil-and-checking-numericality/79357 "2006-03-10T04:20:05Z")

</div>

Why does Integer(nil) return 0? Isn’t the point of Integer to assert that the arg is actually an integer? (If we just want a best guess, we can do ‘323aaadsfwefsd’.to\_i or ‘’.to\_i )/

---

## [Fireruby problem while connecting to database](https://www.ruby-forum.com/t/fireruby-problem-while-connecting-to-database/79334)

<div class="topic-metadata">

**Author:** [@Franz\_Bettag](https://www.ruby-forum.com/u/Franz_Bettag)\
**Replies:** 0\
**Last updated:** [March 10, 2006, 4:14am UTC](https://www.ruby-forum.com/t/fireruby-problem-while-connecting-to-database/79334 "2006-03-10T04:14:03Z")

</div>

Hi there, i got a small problem when connecting to my firebird database: config/database.yml: 29 myfirebird: 30 adapter: firebird 31 database: /var/firebird/database.gdb 32 username: SYSDBA 33 password: ma…

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

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