# Ruby

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

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

---

## [Each with else](https://www.ruby-forum.com/t/each-with-else/140150)

<div class="topic-metadata">

**Author:** [@thorsten](https://www.ruby-forum.com/u/thorsten)\
**Replies:** 10\
**Last updated:** [June 11, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/each-with-else/140150 "2008-06-11T20:24:10Z")

</div>

Hi all, that’s just an idea I came up with and thought worth a discussion. Would it be possible to give each an else part? For Rails programmers it is very common to do something like this: In controller search for r…

---

## [How to avoid multiple inclusion of a file](https://www.ruby-forum.com/t/how-to-avoid-multiple-inclusion-of-a-file/140187)

<div class="topic-metadata">

**Author:** [@suresh](https://www.ruby-forum.com/u/suresh)\
**Replies:** 5\
**Last updated:** [June 11, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/how-to-avoid-multiple-inclusion-of-a-file/140187 "2008-06-11T18:47:25Z")

</div>

Hi My program is split up into multiple files, each containing a set of related class definitions. In the main file, all these files are included by using require. But how can i avoid multiple inclusion of a file by …

---

## [Would like to start contributing](https://www.ruby-forum.com/t/would-like-to-start-contributing/140139)

<div class="topic-metadata">

**Author:** [@raycher](https://www.ruby-forum.com/u/raycher)\
**Replies:** 3\
**Last updated:** [June 11, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/would-like-to-start-contributing/140139 "2008-06-11T17:52:44Z")

</div>

Hi, I have just signed the electronic documents to contribute to IronRuby. What are the next steps for me to actually start having fun and writing some code, submitting patches etc? Where can I find out what tasks a…

---

## [Ramaze 2008.06](https://www.ruby-forum.com/t/ramaze-2008-06/140147)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 1\
**Last updated:** [June 11, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/ramaze-2008-06/140147 "2008-06-11T17:22:40Z")

</div>

This time we are proud to announce Version 2008.06 of Ramaze, the light and modular open source web framework. This release features a lot of work directly from our community and we are really greatful for everybody…

---

## [Rake task dependencies: via timestamps table in database](https://www.ruby-forum.com/t/rake-task-dependencies-via-timestamps-table-in-database/139716)

<div class="topic-metadata">

**Author:** [@jandot](https://www.ruby-forum.com/u/jandot)\
**Replies:** 2\
**Last updated:** [June 11, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/rake-task-dependencies-via-timestamps-table-in-database/139716 "2008-06-11T16:15:57Z")

</div>

Hi all, There is some interest in the bioinformatics community for using rake as a workflow tool (see e.g. http://www.bioinformaticszen.com/2008/05/organised-bioinformatics-experiments/). Rake could be ideal for this…

---

## [to\_i$B$H(Bto\_f$B$N0l4S@-(B](https://www.ruby-forum.com/t/to-i-b-h-bto-f-b-n0l4s-b/140172)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 11, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/to-i-b-h-bto-f-b-n0l4s-b/140172 "2008-06-11T15:54:07Z")

</div>

e$B$k$S$-$A$G$9!#e(B String#to\_ie$B$He(BString#to\_fe$B$GO"B3$7$?e(B\_e$B$N07$$$K0c$$$,$"$j$^$9!#e(B RUBY\_VERSION # =\> “1.9.0” \[ “+1\_1\_\_2”.to\_i, “+1\_1\_\_2”.to\_f \] # =\> \[11, 112.0\] Integer("+1\_1\_\_2") r…

---

## [Having Trouble Deploying JRuby on Rails app to Tomcat 6](https://www.ruby-forum.com/t/having-trouble-deploying-jruby-on-rails-app-to-tomcat-6/140033)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 5\
**Last updated:** [June 11, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/having-trouble-deploying-jruby-on-rails-app-to-tomcat-6/140033 "2008-06-11T15:52:21Z")

</div>

I’m developing a JRuby on Rails app using netbeans 6.1. I’m trying to deploy to Tomcat 6. I’ve installed warbler as a plugin, and it’s generated my WAR file. I copied it to $TOMCAT\_HOME/webapps and I can access it …

---

## [Vimrecover 1.0.0 Released](https://www.ruby-forum.com/t/vimrecover-1-0-0-released/140160)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 2\
**Last updated:** [June 11, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/vimrecover-1-0-0-released/140160 "2008-06-11T15:39:23Z")

</div>

vimrecover version 1.0.0 has been released! http://rubyforge.org/projects/vimrecover/ This package provides a handy command to help you recover from Vim recovery files. Vim makes .swp files as you edit your files so…

---

## [Socks v5 protocol](https://www.ruby-forum.com/t/socks-v5-protocol/140170)

<div class="topic-metadata">

**Author:** [@bloodnix](https://www.ruby-forum.com/u/bloodnix)\
**Replies:** 2\
**Last updated:** [June 11, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/socks-v5-protocol/140170 "2008-06-11T15:38:43Z")

</div>

Hello, only I start to study this language. And at once a greater problem: (( I can not understand connection under the report socks5 in any way, and connection, inquiry of the version and methods of authorization pas…

---

## [Ruby IDE](https://www.ruby-forum.com/t/ruby-ide/140070)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 11, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/ruby-ide/140070 "2008-06-11T14:58:06Z")

</div>

Hello guys, I’ve been trying Ruby for a while in Mac OS X 10.5, but I am working with Textmate as text editor and running from the command line. I would like to be able to do more things like debug or running the ap…

---

## [Rails - relations](https://www.ruby-forum.com/t/rails-relations/140121)

<div class="topic-metadata">

**Author:** [@Israel\_G](https://www.ruby-forum.com/u/Israel_G)\
**Replies:** 2\
**Last updated:** [June 11, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/rails-relations/140121 "2008-06-11T13:54:35Z")

</div>

Hi ppl. I am noob in rails and started an app to learn. I have the following scenario: table client with fileds: name, second\_name table phone with fields: number, client\_id table address with fields: street, number…

---

## [Private class methods- functionality or shortcoming?](https://www.ruby-forum.com/t/private-class-methods-functionality-or-shortcoming/139960)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 11, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/private-class-methods-functionality-or-shortcoming/139960 "2008-06-11T13:45:43Z")

</div>

I just switched to Ruby and came across it. If we have to make a class method private then we should write it as: class Abc class\<\<self private def fun p “hello” end …

---

## [Irb differs from script](https://www.ruby-forum.com/t/irb-differs-from-script/140155)

<div class="topic-metadata">

**Author:** [@martijndenerd](https://www.ruby-forum.com/u/martijndenerd)\
**Replies:** 0\
**Last updated:** [June 11, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/irb-differs-from-script/140155 "2008-06-11T12:34:31Z")

</div>

hi, i’m trying to remove special characters from a string using iconv and it works nicely in irb. When i run the same code in a script… it doesn’t work though :frowning: Any clues what could be the difference? irb: …

---

## [Core dumps in ruby-tk on Mandriva 2008.1](https://www.ruby-forum.com/t/core-dumps-in-ruby-tk-on-mandriva-2008-1/139841)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 8\
**Last updated:** [June 11, 2008, 8:30am UTC](https://www.ruby-forum.com/t/core-dumps-in-ruby-tk-on-mandriva-2008-1/139841 "2008-06-11T08:30:11Z")

</div>

This may not be the appropriate forum for this problem but I have exhausted other avenues of enquiry, including Bugzilla. The fault applies to a particular release of Mandriva Linux; on 2007.0 it did not occur and ne…

---

## [Anybody tried MSMQ with Ruby](https://www.ruby-forum.com/t/anybody-tried-msmq-with-ruby/140136)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 0\
**Last updated:** [June 11, 2008, 8:28am UTC](https://www.ruby-forum.com/t/anybody-tried-msmq-with-ruby/140136 "2008-06-11T08:28:24Z")

</div>

MSMQ=Microsoft Message Queue Thanks for your help in advance TheR

---

## [Accessing class variables from the outside (beginner question)](https://www.ruby-forum.com/t/accessing-class-variables-from-the-outside-beginner-question/140028)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [June 11, 2008, 8:27am UTC](https://www.ruby-forum.com/t/accessing-class-variables-from-the-outside-beginner-question/140028 "2008-06-11T08:27:47Z")

</div>

I am still learning Ruby and I am trying to get something like this to work and am unsure how. I know I could do attr\_reader to access “ones” but ones might be an array, hash, etc. Is there a way to do something l…

---

## [Gems error concerning yaml](https://www.ruby-forum.com/t/gems-error-concerning-yaml/139925)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 7\
**Last updated:** [June 11, 2008, 8:14am UTC](https://www.ruby-forum.com/t/gems-error-concerning-yaml/139925 "2008-06-11T08:14:16Z")

</div>

I’m trying to install rails using gems. It chokes on yaml. gem18 install yaml --include-dependencies INFO: gem install -y is now default and will be removed INFO: use --ignore-dependencies to install only the gems y…

---

## [Jruby-rack redirect problem](https://www.ruby-forum.com/t/jruby-rack-redirect-problem/140102)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 3\
**Last updated:** [June 11, 2008, 6:11am UTC](https://www.ruby-forum.com/t/jruby-rack-redirect-problem/140102 "2008-06-11T06:11:18Z")

</div>

I haven’t gotten a chance to drill down into this yet, but I’m going to throw it out in case it brings something obvious to anyone’s mind. We have some JRuby/Rails apps which were previously deployed into Tomcat with …

---

## [Storing values for later use](https://www.ruby-forum.com/t/storing-values-for-later-use/139835)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [June 11, 2008, 4:50am UTC](https://www.ruby-forum.com/t/storing-values-for-later-use/139835 "2008-06-11T04:50:36Z")

</div>

I have a group of expensive (as in slow) c functions that take an arrays and parameters, process them and return one or more arrays to Ruby. These functions can take a long time to process and in some cases are quite…

---

## [Ryhmän sfnet.tiede.matematiikka virallinen kuvaus](https://www.ruby-forum.com/t/ryhman-sfnet-tiede-matematiikka-virallinen-kuvaus/140129)

<div class="topic-metadata">

**Author:** [@Hermanni\_Nyberg](https://www.ruby-forum.com/u/Hermanni_Nyberg)\
**Replies:** 0\
**Last updated:** [June 11, 2008, 4:26am UTC](https://www.ruby-forum.com/t/ryhman-sfnet-tiede-matematiikka-virallinen-kuvaus/140129 "2008-06-11T04:26:03Z")

</div>

\*Koska olemme varsin pitkään tienneet, että MYÖS Marssissa on ollut ja on yhä valtaisat vesivarannot, siihen liittyvät mekaniikat tietysti meitä myösjatkossa kiinnostavat. Tässä aiheesta lisää: Marsin pinnalla joskus …

---

## [Dynamic Lanugages in Silverlight 2 Beta 2](https://www.ruby-forum.com/t/dynamic-lanugages-in-silverlight-2-beta-2/140105)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 12\
**Last updated:** [June 11, 2008, 2:26am UTC](https://www.ruby-forum.com/t/dynamic-lanugages-in-silverlight-2-beta-2/140105 "2008-06-11T02:26:10Z")

</div>

http://blog.jimmy.schementi.com/2008/06/dynamic-languages-in-silverlight-2-beta.html With the announcement of Silverlight 2 Beta 2, the Silverlight Dynamic Languages SDK has been updated as well! Download the Dynamic …

---

## [Allocate particular amount of memory to a ruby thread?](https://www.ruby-forum.com/t/allocate-particular-amount-of-memory-to-a-ruby-thread/140052)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [June 11, 2008, 2:12am UTC](https://www.ruby-forum.com/t/allocate-particular-amount-of-memory-to-a-ruby-thread/140052 "2008-06-11T02:12:07Z")

</div>

how to allocate particular amount of memory to a ruby thread or to a ruby script? for example suppose if i want to start a thread it should take 1 MB memory only Thread.start(memory=102410241024) do |t| some stuff h…

---

## [Ruby GUI under JRuby and NetBeans - A cry for help!](https://www.ruby-forum.com/t/ruby-gui-under-jruby-and-netbeans-a-cry-for-help/139973)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 3\
**Last updated:** [June 11, 2008, 1:51am UTC](https://www.ruby-forum.com/t/ruby-gui-under-jruby-and-netbeans-a-cry-for-help/139973 "2008-06-11T01:51:37Z")

</div>

Team, Yesterday I got JRuby with its myriad requirements working under MS Windows XP. Once I understand this environment well I will install it under AIX. The main reason, perhaps the only reason why I want this to w…

---

## [Code review: socketpatch](https://www.ruby-forum.com/t/code-review-socketpatch/140113)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [June 11, 2008, 1:32am UTC](https://www.ruby-forum.com/t/code-review-socketpatch/140113 "2008-06-11T01:32:53Z")

</div>

Ruby only Tfpt review /shelveset:socketpatch;jdeville External patch from Peter Bacon D. resolving Rubyforge bug \[#20517\] Socket::Constants not defined JD

---

## [Code Review: socketpatch2](https://www.ruby-forum.com/t/code-review-socketpatch2/140117)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 11, 2008, 1:28am UTC](https://www.ruby-forum.com/t/code-review-socketpatch2/140117 "2008-06-11T01:28:12Z")

</div>

Ruby only External patch from Peter Bacon D. closing Rubyforge \[#20518\] Socket.new doesn’t have int, int, int overload and doesn’t return a Ruby Socket Tfpt review /shelveset:socketpatch2

---

## [Webby, ubuntu and gems](https://www.ruby-forum.com/t/webby-ubuntu-and-gems/140040)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 14\
**Last updated:** [June 11, 2008, 1:18am UTC](https://www.ruby-forum.com/t/webby-ubuntu-and-gems/140040 "2008-06-11T01:18:50Z")

</div>

I’ve recently switched distributions to ubuntu, and I’m having problems getting webby up and running. (I suspect this a general problem with gems that need to install executables). I ran gem install webby, and it inst…

---

## [Non blocking UDP](https://www.ruby-forum.com/t/non-blocking-udp/140112)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 8\
**Last updated:** [June 11, 2008, 1:12am UTC](https://www.ruby-forum.com/t/non-blocking-udp/140112 "2008-06-11T01:12:58Z")

</div>

Hello! I need to make a UDP server that waits for clients to log on and then drives communication from the server side. This means that if a client doesn’t ack subsequent comms from the server, the server needs to r…

---

## [C++ 2 Ruby](https://www.ruby-forum.com/t/c-2-ruby/139990)

<div class="topic-metadata">

**Author:** [@jjc](https://www.ruby-forum.com/u/jjc)\
**Replies:** 12\
**Last updated:** [June 11, 2008, 12:38am UTC](https://www.ruby-forum.com/t/c-2-ruby/139990 "2008-06-11T00:38:59Z")

</div>

Greetings Ruby fans :slight\_smile: From a couple of months I’ve been learning C++ but after I found out about Ruby… it’s just GREAT! Right now im at a beginner level, trying to convert some simplier code to Ruby (it’…

---

## [Activerecord new version differences](https://www.ruby-forum.com/t/activerecord-new-version-differences/140099)

<div class="topic-metadata">

**Author:** [@ernsttanaka](https://www.ruby-forum.com/u/ernsttanaka)\
**Replies:** 4\
**Last updated:** [June 10, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/activerecord-new-version-differences/140099 "2008-06-10T23:31:43Z")

</div>

I am sorry, but I am struggling. I installed new versions of my gems and my programs don’t run anymore. As suggested I tried to roll back to older versions, but that is becoming a bigger mess. The flight forward has a…

---

## [Ultimate Prime Sieve -- Sieve of Zakiya (SoZ)](https://www.ruby-forum.com/t/ultimate-prime-sieve-sieve-of-zakiya-soz/139854)

<div class="topic-metadata">

**Author:** [@jzakiya](https://www.ruby-forum.com/u/jzakiya)\
**Replies:** 6\
**Last updated:** [June 10, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/ultimate-prime-sieve-sieve-of-zakiya-soz/139854 "2008-06-10T22:50:51Z")

</div>

This is to announce the release of my paper “Ultimate Prime Sieve – Sieve of Zakiiya (SoZ)” in which I show and explain the development of a class of Number Theory Sieves to generate prime numbers. I also use the numb…

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

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