# Ruby

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

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

---

## [Ruby 1.8.6-p111 / 1.8.5-p114 released (Security Fix)](https://www.ruby-forum.com/t/ruby-1-8-6-p111-1-8-5-p114-released-security-fix/116293)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 2\
**Last updated:** [November 8, 2007, 2:17pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p111-1-8-5-p114-released-security-fix/116293 "2007-11-08T14:17:50Z")

</div>

Hi all. A problem on the net/https library was reported. We already fixed that on the repository, but we also think it worth releasing. Here they are. The only difference with the latest 1.8.6-p110 / 1.8.5-p113 is the …

---

## [Hosting the DLR and passing data to scripts](https://www.ruby-forum.com/t/hosting-the-dlr-and-passing-data-to-scripts/119567)

<div class="topic-metadata">

**Author:** [@josetomas\_r](https://www.ruby-forum.com/u/josetomas_r)\
**Replies:** 2\
**Last updated:** [November 8, 2007, 1:43pm UTC](https://www.ruby-forum.com/t/hosting-the-dlr-and-passing-data-to-scripts/119567 "2007-11-08T13:43:49Z")

</div>

I’ve been playing with the DLR hosting interfaces and running ruby code this way; it’s a really, really nifty feature that I’m already loving! I can see a lot of cool scenarios this will be useful, such as providing …

---

## [Ruby on rails developer London](https://www.ruby-forum.com/t/ruby-on-rails-developer-london/196511)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-london/196511 "2007-11-08T12:58:05Z")

</div>

Hi, Choice Gaming Ltd. (www.ChoiceOdds.com http://www.choiceodds.com/) is seeking a highly motivated programmer for a full time position developing its proprietary financial betting platform. You will work as part of…

---

## [Metaclasses](https://www.ruby-forum.com/t/metaclasses/119578)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 7\
**Last updated:** [November 8, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/metaclasses/119578 "2007-11-08T12:56:53Z")

</div>

Hi, all. I’m trying to understand chapter 24 of Programming Ruby. I’m using “metaid.rb” from why the lucky stiff’s site to help with the examples. (http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html) …

---

## [Locate oci8.rb](https://www.ruby-forum.com/t/locate-oci8-rb/119525)

<div class="topic-metadata">

**Author:** [@rf-ravenala](https://www.ruby-forum.com/u/rf-ravenala)\
**Replies:** 5\
**Last updated:** [November 8, 2007, 11:48am UTC](https://www.ruby-forum.com/t/locate-oci8-rb/119525 "2007-11-08T11:48:54Z")

</div>

Hello, I need to be able to dynamically locate the file oci8.rb from a sh script… Do you have any idea how to do this ? Many Thanks, R.

---

## [Schedule Ruby Code!](https://www.ruby-forum.com/t/schedule-ruby-code/119591)

<div class="topic-metadata">

**Author:** [@bashar](https://www.ruby-forum.com/u/bashar)\
**Replies:** 3\
**Last updated:** [November 8, 2007, 11:45am UTC](https://www.ruby-forum.com/t/schedule-ruby-code/119591 "2007-11-08T11:45:27Z")

</div>

Hello, I want to build a ruby script that list contents of a folder and put this list in a generated XML files (actually two files), and I want to schedule this script to run every 30 minutes. Pls. if you could tell …

---

## [How to delete array](https://www.ruby-forum.com/t/how-to-delete-array/119547)

<div class="topic-metadata">

**Author:** [@smeitei](https://www.ruby-forum.com/u/smeitei)\
**Replies:** 20\
**Last updated:** [November 8, 2007, 8:57am UTC](https://www.ruby-forum.com/t/how-to-delete-array/119547 "2007-11-08T08:57:58Z")

</div>

Problem consider an array a = \[1,4,6,7,9,8\] I want to delete the array value w.r.t index e.g i want to delte 0,4,6 element in one go I can use the command a.delete\_at(0) a.delete\_at(4) a.delete\_at(6) But the pro…

---

## [Changing SOAP RPC/Encoded to Document/Literal format](https://www.ruby-forum.com/t/changing-soap-rpc-encoded-to-document-literal-format/119584)

<div class="topic-metadata">

**Author:** [@htn](https://www.ruby-forum.com/u/htn)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 6:40am UTC](https://www.ruby-forum.com/t/changing-soap-rpc-encoded-to-document-literal-format/119584 "2007-11-08T06:40:22Z")

</div>

Dear All, I am very new to RoR here and would like to know how to switch our application over from the default RPC/Encoded to Document/Literal SOAP format. The example in soap4r-1.5.8 …\\sample\\howto\\documentliteral a…

---

## [Re: how to delete array](https://www.ruby-forum.com/t/re-how-to-delete-array/119585)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 6:28am UTC](https://www.ruby-forum.com/t/re-how-to-delete-array/119585 "2007-11-08T06:28:20Z")

</div>

ignore previous post (it does not work right) maybe this one, array = \[1,2,3,4,7,4\] =\> \[1, 2, 3, 4, 7, 4\] del=\[1,3\] =\> \[1, 3\] del.each{|i| array\[i\]=nil} =\> \[1, 3\] array.compact =\> \[1, 3, 7, 4\] -----Original…

---

## [Site-specific.rb?](https://www.ruby-forum.com/t/site-specific-rb/119458)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 3\
**Last updated:** [November 8, 2007, 5:19am UTC](https://www.ruby-forum.com/t/site-specific-rb/119458 "2007-11-08T05:19:58Z")

</div>

I found a strange animal hiding in my Mac: /opt/local/lib/ruby/site\_ruby/site-specific.rb What is this mysterious beast? – Giles B. Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tum…

---

## [Instantiating random sub-classes (Dragon, TeethDeer, etc)](https://www.ruby-forum.com/t/instantiating-random-sub-classes-dragon-teethdeer-etc/119554)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [November 8, 2007, 4:39am UTC](https://www.ruby-forum.com/t/instantiating-random-sub-classes-dragon-teethdeer-etc/119554 "2007-11-08T04:39:38Z")

</div>

In Driver, I was considering creating a pseudo-random number between 0 and 4, then using case: case 0 AssistantViceTentacleAndOmbudsman case 1 Dragon case 2 DwarvenAngel case 3 IntrepidDecomposedCyclist case 4 …

---

## [Attributes-5.0.0](https://www.ruby-forum.com/t/attributes-5-0-0/119577)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 4:31am UTC](https://www.ruby-forum.com/t/attributes-5-0-0/119577 "2007-11-08T04:31:27Z")

</div>

NAME attributes.rb INSTALL gem install attributes URIS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby SYNOPSIS attributes.rb provides a set of attr\_\* like method with several user …

---

## [Instantiate random subclasses of Creature (Dragon, TeethDeer, etc)](https://www.ruby-forum.com/t/instantiate-random-subclasses-of-creature-dragon-teethdeer-etc/119462)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 3\
**Last updated:** [November 8, 2007, 2:12am UTC](https://www.ruby-forum.com/t/instantiate-random-subclasses-of-creature-dragon-teethdeer-etc/119462 "2007-11-08T02:12:58Z")

</div>

I want to not just create Dragons, but randomly other creatures. Perhaps from a hard coded list? I was thinking of using random numbers and case statements, but surely there’s ruby-esque way to specify: types of cre…

---

## [7000+ beautiful Russian women](https://www.ruby-forum.com/t/7000-beautiful-russian-women/119501)

<div class="topic-metadata">

**Author:** [@pegclark](https://www.ruby-forum.com/u/pegclark)\
**Replies:** 5\
**Last updated:** [November 8, 2007, 12:55am UTC](https://www.ruby-forum.com/t/7000-beautiful-russian-women/119501 "2007-11-08T00:55:16Z")

</div>

7000+ beautiful Russian women http://groups.google.com/group/all-good-things/web/beautiful-girls-and-ladies

---

## [Can't get mocha to install thru gem](https://www.ruby-forum.com/t/cant-get-mocha-to-install-thru-gem/119422)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 2\
**Last updated:** [November 8, 2007, 12:44am UTC](https://www.ruby-forum.com/t/cant-get-mocha-to-install-thru-gem/119422 "2007-11-08T00:44:44Z")

</div>

I’ve got an interactive program that I’d like to unit test and I’ve been referred to Mocha. I tried to install it thru gem, but it couldn’t find it. I’m on linux, how do I install it manually? (sorry, its kinda of a l…

---

## [Show info from table wich is joined](https://www.ruby-forum.com/t/show-info-from-table-wich-is-joined/119378)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 5\
**Last updated:** [November 8, 2007, 12:33am UTC](https://www.ruby-forum.com/t/show-info-from-table-wich-is-joined/119378 "2007-11-08T00:33:38Z")

</div>

Hi, \<% @user.email %\> …is working \<% @user.educations do |education| %\> \<%= education.name%\> …is NOT working. This is because there is a join-table involved…below the mirgation class AddTableEducationsUsers \< Acti…

---

## [IronRuby and Dictionaries](https://www.ruby-forum.com/t/ironruby-and-dictionaries/119558)

<div class="topic-metadata">

**Author:** [@Miguel\_de\_Icaza](https://www.ruby-forum.com/u/Miguel_de_Icaza)\
**Replies:** 1\
**Last updated:** [November 8, 2007, 12:05am UTC](https://www.ruby-forum.com/t/ironruby-and-dictionaries/119558 "2007-11-08T00:05:34Z")

</div>

Hello John, First the simple problem: I have been investigating some of the failures in the IronRuby test suite while running on Mono. Some of the problems in the tests depend on the order that Dictionary\<\>'s GetEnu…

---

## [Re: :: and](https://www.ruby-forum.com/t/re-and/119551)

<div class="topic-metadata">

**Author:** [@joey\_eisma](https://www.ruby-forum.com/u/joey_eisma)\
**Replies:** 1\
**Last updated:** [November 7, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/re-and/119551 "2007-11-07T23:47:26Z")

</div>

thx everyone for the reply. for the fine examples (some i don’t quite understand yet…) as i’m still in the very early stages yet… can i assume that it’s simplier to use . than :: for references to methods? thanks! -…

---

## [Rambling: try/catch](https://www.ruby-forum.com/t/rambling-try-catch/119540)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 7, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/rambling-try-catch/119540 "2007-11-07T22:59:22Z")

</div>

Just had an vague idea about generic java “try-catch” converted to ruby- world I would like some feedback on. I’m building a “microscopic CMS” system to learn more ruby, and of course it would be good to implement pr…

---

## [Instance\_eval to evaluate methods inside a block in context](https://www.ruby-forum.com/t/instance-eval-to-evaluate-methods-inside-a-block-in-context/119453)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 6\
**Last updated:** [November 7, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/instance-eval-to-evaluate-methods-inside-a-block-in-context/119453 "2007-11-07T22:34:08Z")

</div>

http://pastie.caboo.se/114839 Can anyone tell me why this wouldn’t/shouldn’t/should work? I don’t want to pull out all of my hair trying to figure this out if it isn’t even possible. Thanks, Adam class Calculator …

---

## [Specifying path](https://www.ruby-forum.com/t/specifying-path/119552)

<div class="topic-metadata">

**Author:** [@joey\_eisma](https://www.ruby-forum.com/u/joey_eisma)\
**Replies:** 1\
**Last updated:** [November 7, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/specifying-path/119552 "2007-11-07T22:24:09Z")

</div>

on windows…i was trying to do a require(“path to .rb”). how do you say “c:\\my ruby stuff\\myprogram.rb”?

---

## [OS X gems do not appear in install list (Leopard)](https://www.ruby-forum.com/t/os-x-gems-do-not-appear-in-install-list-leopard/119495)

<div class="topic-metadata">

**Author:** [@nex4k](https://www.ruby-forum.com/u/nex4k)\
**Replies:** 8\
**Last updated:** [November 7, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/os-x-gems-do-not-appear-in-install-list-leopard/119495 "2007-11-07T22:16:38Z")

</div>

Hi, I am struggling to release an OS X gem (for which I wanted to post the ANN days ago :(). I actually think I released it, but none of the OS X versions of my gem (gosu) show up when I run ‘sudo gem install gosu’ o…

---

## [Dragons and factorials (keyboard input)](https://www.ruby-forum.com/t/dragons-and-factorials-keyboard-input/119147)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 12\
**Last updated:** [November 7, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/dragons-and-factorials-keyboard-input/119147 "2007-11-07T22:01:47Z")

</div>

I’m getting keyboard input successfully, but I’m getting a string. I need to convert it to a number. But ruby is a dynamic language? What’s happening please? (Did I mention that this list is awesome?) Here’s what I…

---

## [Memory consumption](https://www.ruby-forum.com/t/memory-consumption/119550)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/memory-consumption/119550 "2007-11-07T21:54:31Z")

</div>

So…does anyone find it odd that running a rails console uses 80MB of memory? Why so much? I profile it and it says ‘yep you have 300000 strings’ but…I’m not doing anything too weird–what gives? Dike can’t even find…

---

## [Ri and docu](https://www.ruby-forum.com/t/ri-and-docu/119196)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 2\
**Last updated:** [November 7, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/ri-and-docu/119196 "2007-11-07T21:18:34Z")

</div>

Hi does anyone of you know where ri actually stores the content of its request, or how it is generated? I want to put it onto a local website with links (i am lazy), but looking at ri/rdoc’s source is too cumbersome …

---

## [Thinking of dropping YAML from 1.8](https://www.ruby-forum.com/t/thinking-of-dropping-yaml-from-1-8/119154)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 14\
**Last updated:** [November 7, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/thinking-of-dropping-yaml-from-1-8/119154 "2007-11-07T20:29:11Z")

</div>

Hello all. As a branch manager I think I cannot maintain YAML lib any longer. No one had touched lib/yaml for more than 20 months, while bugs are reported continuously during that. At this point I cannot but say YAML …

---

## [Oracle XML DB](https://www.ruby-forum.com/t/oracle-xml-db/119533)

<div class="topic-metadata">

**Author:** [@JONNALAGADDA\_Sriniv](https://www.ruby-forum.com/u/JONNALAGADDA_Sriniv)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/oracle-xml-db/119533 "2007-11-07T19:39:26Z")

</div>

Dear all, Has anyone used Oracle XML DB with ruby? Any experiences to share? Thanks. Greetings, JS

---

## [Rabal 0.2.2 Released](https://www.ruby-forum.com/t/rabal-0-2-2-released/119530)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/rabal-0-2-2-released/119530 "2007-11-07T19:34:08Z")

</div>

rabal version 0.2.2 has been released. http://copiousfreetime.rubyforge.org/rabal/ Ruby Architecture for Building Applications and Libraries. Rabal is a commandline application for bootstrapping, packaging and distri…

---

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

<div class="topic-metadata">

**Author:** [@joey\_eisma](https://www.ruby-forum.com/u/joey_eisma)\
**Replies:** 6\
**Last updated:** [November 7, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/and/119519 "2007-11-07T18:55:32Z")

</div>

hi! reading through some tutorial, i noticed the author would interchange using :: and . to call methods. i see they both give the same result. i was wondering if there is any other difference between the two? (other …

---

## [Is there a "||" that treats "" also as false?](https://www.ruby-forum.com/t/is-there-a-that-treats-also-as-false/119443)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 15\
**Last updated:** [November 7, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/is-there-a-that-treats-also-as-false/119443 "2007-11-07T18:52:37Z")

</div>

Hi all irb(main):001:0\> “” || “asdf” =\> “” irb(main):002:0\> nil || “asdf” =\> “asdf” irb(main):003:0\> I’d like the first one to also return “asdf”. So is there an operator that fits my needs? :slight\_smile: Thanks …

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

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