# Ruby

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

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

---

## [Thousands of words on Ruby](https://www.ruby-forum.com/t/thousands-of-words-on-ruby/67811)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/thousands-of-words-on-ruby/67811 "2006-09-07T18:23:30Z")

</div>

I just finished a much-too-long series of essays on Ruby from a whole bunch of angles, some here might enjoy it: http://www.tbray.org/ ongoing/When/200x/2006/08/17/JRuby -Tim

---

## [Has a method been called?](https://www.ruby-forum.com/t/has-a-method-been-called/67886)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 4\
**Last updated:** [September 7, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/has-a-method-been-called/67886 "2006-09-07T17:53:25Z")

</div>

Hi, Is it possible to find out if a method has been called except by adding a flag to it? class Whatever @flag = 0 def method\_called @flag += 1 end def has\_method\_been\_called false return true if @flag \> 0 end …

---

## [Setting font path ? for Ruby and/or Ruby/Graphviz?](https://www.ruby-forum.com/t/setting-font-path-for-ruby-and-or-ruby-graphviz/67481)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [September 7, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/setting-font-path-for-ruby-and-or-ruby-graphviz/67481 "2006-09-07T17:43:24Z")

</div>

i’ve used rdoc with the option -d, i get the graphviz output images howver i get this message also : Diagrams: .Error: Could not find/open font : Arial .Error: Could not find/open font : Arial this font is on my comp…

---

## [Gateway Test](https://www.ruby-forum.com/t/gateway-test/67881)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/gateway-test/67881 "2006-09-07T17:33:23Z")

</div>

The box that runs the gateway went a bit haywire. I’m checking to see if we have resolved the issue… James Edward G. II

---

## [Fwd: Binding for CORBA](https://www.ruby-forum.com/t/fwd-binding-for-corba/67831)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 7, 2006, 5:13pm UTC](https://www.ruby-forum.com/t/fwd-binding-for-corba/67831 "2006-09-07T17:13:19Z")

</div>

On 9/6/06, Jeff W. removed\_email\_address@domain.invalid wrote: I very much need access to a corba object network from my Ruby code ( I’m supporting some legacy apps that aren’t going to get rewritten ) … I know I can…

---

## [Basic problems with accessing a file](https://www.ruby-forum.com/t/basic-problems-with-accessing-a-file/67873)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 4:31pm UTC](https://www.ruby-forum.com/t/basic-problems-with-accessing-a-file/67873 "2006-09-07T16:31:15Z")

</div>

Hello, I’m confused. I’m attempting to query a user for a filename to be processed, and then I want to open that file for parsing. However, I’m getting an error that the file does not exist. Hopefully someone can …

---

## [This is only a "new topic" test - please ignore](https://www.ruby-forum.com/t/this-is-only-a-new-topic-test-please-ignore/67424)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 6\
**Last updated:** [September 7, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/this-is-only-a-new-topic-test-please-ignore/67424 "2006-09-07T15:41:10Z")

</div>

This is only a “new topic” test - please ignore

---

## [Re: A little idiom I like](https://www.ruby-forum.com/t/re-a-little-idiom-i-like/67871)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/re-a-little-idiom-i-like/67871 "2006-09-07T15:08:53Z")

</div>

convert all forward slashes to backslashes. Also, the various PathXXX functions do NOT work with forward slashes. Inasmuch as is possible, where Ruby provides these, it should hide this distinction. I would hate …

---

## [GUI for Windows?](https://www.ruby-forum.com/t/gui-for-windows/67870)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 3:02pm UTC](https://www.ruby-forum.com/t/gui-for-windows/67870 "2006-09-07T15:02:53Z")

</div>

Part one : http://www.erikveen.dds.nl/rubyscript2exe/index.html will help. Part two : http://www.fox-toolkit.org/ and fxruby http://www.fxruby.org/ for example will do it. There are some more, but i like fox/fxruby. …

---

## [Happy Numbers (#93)](https://www.ruby-forum.com/t/happy-numbers-93/67869)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/happy-numbers-93/67869 "2006-09-07T14:58:52Z")

</div>

I posted a link to some additional information early in the quiz discussion that expanded on the definition provided by the quiz: http://mathworld.wolfram.com/HappyNumber.html According to that document, you can tell…

---

## [GUI for Windows?](https://www.ruby-forum.com/t/gui-for-windows/67867)

<div class="topic-metadata">

**Author:** [@snakonbacon](https://www.ruby-forum.com/u/snakonbacon)\
**Replies:** 1\
**Last updated:** [September 7, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/gui-for-windows/67867 "2006-09-07T14:52:51Z")

</div>

Hi I’m new to Ruby and after I read a bit about the sweetness of the language I’d like to learn it. But… I always work in Windows, and fine I’d like to program for web aplications as a hobby, but I’d also like to be …

---

## [Abstract Tests vs AutoRunner](https://www.ruby-forum.com/t/abstract-tests-vs-autorunner/67835)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 5\
**Last updated:** [September 7, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/abstract-tests-vs-autorunner/67835 "2006-09-07T14:42:49Z")

</div>

Rubies: I’m trying to get some elaborate test suites working via the hidden call to AutoRunner. Because I can’t declare which suites to run, the system tests anything that derives from TestCase. I want to do this: …

---

## [Jobs around Ruby and Rails](https://www.ruby-forum.com/t/jobs-around-ruby-and-rails/67809)

<div class="topic-metadata">

**Author:** [@Sobczak\_MichaSSS\_S](https://www.ruby-forum.com/u/Sobczak_MichaSSS_S)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 12:12pm UTC](https://www.ruby-forum.com/t/jobs-around-ruby-and-rails/67809 "2006-09-07T12:12:24Z")

</div>

I was wondering how many people have full time jobs which are around Ruby and for example Rails. Also how much they earn, where do they live? If there are such type of professionals here, please give me some informa…

---

## [\[LINK\] Ruby DSL for turn-based strategy game](https://www.ruby-forum.com/t/link-ruby-dsl-for-turn-based-strategy-game/67854)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 11:34am UTC](https://www.ruby-forum.com/t/link-ruby-dsl-for-turn-based-strategy-game/67854 "2006-09-07T11:34:10Z")

</div>

"I continue to develop Dr Nicâ??s Civilizations game. This lead me to develop a DSL for the specification of game rules. You need to see this. "Hereâ??s an example definition of some terrain: class Desert \< Terrain t…

---

## [Happy Numbers (#93)](https://www.ruby-forum.com/t/happy-numbers-93/67234)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 64\
**Last updated:** [September 7, 2006, 8:55am UTC](https://www.ruby-forum.com/t/happy-numbers-93/67234 "2006-09-07T08:55:59Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [How can I configure the font size of fxri](https://www.ruby-forum.com/t/how-can-i-configure-the-font-size-of-fxri/67839)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 7, 2006, 8:27am UTC](https://www.ruby-forum.com/t/how-can-i-configure-the-font-size-of-fxri/67839 "2006-09-07T08:27:57Z")

</div>

I downloaded the one-click ruby installer. It’s very convenient, but I find the default font size of fxri is too small for me. I browse the source, but can not understand it. Can someone tell me where is the config…

---

## [Insecure word writable dir?](https://www.ruby-forum.com/t/insecure-word-writable-dir/67130)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 10\
**Last updated:** [September 7, 2006, 7:15am UTC](https://www.ruby-forum.com/t/insecure-word-writable-dir/67130 "2006-09-07T07:15:49Z")

</div>

When I exec another program from inside Ruby, I get this warning: “warning: Insecure world writable dir /tmp, mode 041777” Here’s /tmp drwxrwxrwt 17 root root 4096 Aug 31 13:16 /tmp/ Any ideas? It’s so…

---

## [How good is RDoc at documenting "raw" C++ code?](https://www.ruby-forum.com/t/how-good-is-rdoc-at-documenting-raw-c-code/67695)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 7\
**Last updated:** [September 7, 2006, 5:01am UTC](https://www.ruby-forum.com/t/how-good-is-rdoc-at-documenting-raw-c-code/67695 "2006-09-07T05:01:36Z")

</div>

Just out of curiosity, if I have some fairly well constructed C++ code, how good a job of document generation can I expect to get from RDoc with no modifications to the code?

---

## [ActiveRecord-JDBC 0.2](https://www.ruby-forum.com/t/activerecord-jdbc-0-2/67721)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 6\
**Last updated:** [September 7, 2006, 4:37am UTC](https://www.ruby-forum.com/t/activerecord-jdbc-0-2/67721 "2006-09-07T04:37:35Z")

</div>

The JRuby-extras project is proud to announce the release of version 0.2 of ActiveRecord-JDBC. This release brings much needed functionality and usability. Since 0.0.1, the project have gone from proof-of-concept to s…

---

## [Happy Numbers #93 How happy can you get? (was Re: \[QUIZ SOLU](https://www.ruby-forum.com/t/happy-numbers-93-how-happy-can-you-get-was-re-quiz-solu/67774)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 2:47am UTC](https://www.ruby-forum.com/t/happy-numbers-93-how-happy-can-you-get-was-re-quiz-solu/67774 "2006-09-07T02:47:27Z")

</div>

On 9/5/06, Ken B. removed\_email\_address@domain.invalid wrote: Since the order of digits in the number doesn’t matter, here’s code to generate digits whose numbers are in nondecreasing order. This makes the “happiest …

---

## [Italian Ruby Book](https://www.ruby-forum.com/t/italian-ruby-book/67830)

<div class="topic-metadata">

**Author:** [@lawchellie](https://www.ruby-forum.com/u/lawchellie)\
**Replies:** 1\
**Last updated:** [September 7, 2006, 2:41am UTC](https://www.ruby-forum.com/t/italian-ruby-book/67830 "2006-09-07T02:41:26Z")

</div>

I don’t know if you all heard about it before but the publisher has uploaded a page regarding our book. We finally made it and now there’s a brand new book written in Italian about Ruby. This is my full announcement: …

---

## [Subcribe](https://www.ruby-forum.com/t/subcribe/67823)

<div class="topic-metadata">

**Author:** [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Replies:** 2\
**Last updated:** [September 7, 2006, 2:29am UTC](https://www.ruby-forum.com/t/subcribe/67823 "2006-09-07T02:29:26Z")

</div>

subcribe

---

## [Ruby by the pier](https://www.ruby-forum.com/t/ruby-by-the-pier/67726)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 1\
**Last updated:** [September 7, 2006, 2:25am UTC](https://www.ruby-forum.com/t/ruby-by-the-pier/67726 "2006-09-07T02:25:26Z")

</div>

Matz and David Heinemeier H. both talk about making programming a pleasure, I think we can extend that philosophy in Brighton (UK) the way we do it best, over a few drinks of an evening… If you are in reach of the sou…

---

## [Good article on threads](https://www.ruby-forum.com/t/good-article-on-threads/67126)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [September 7, 2006, 1:51am UTC](https://www.ruby-forum.com/t/good-article-on-threads/67126 "2006-09-07T01:51:24Z")

</div>

given some of the recent discussions on threads i thought some of you might like this http://www.computer.org/portal/site/computer/menuitem.5d61c1d591162e4b0ef1bd108bcd45f3/index.jsp?&pName=computer\_level1\_article&The…

---

## [The Ruby Mine - News and Articles for the Italian Community](https://www.ruby-forum.com/t/the-ruby-mine-news-and-articles-for-the-italian-community/67824)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 1:49am UTC](https://www.ruby-forum.com/t/the-ruby-mine-news-and-articles-for-the-italian-community/67824 "2006-09-07T01:49:24Z")

</div>

We’re pleased to announce that The Ruby Mine initiative is entering beta phase. The Ruby Mine is going to be a reference point for Italian developers looking for high quality content in their native language, as well …

---

## [Ranges](https://www.ruby-forum.com/t/ranges/67817)

<div class="topic-metadata">

**Author:** [@quangn](https://www.ruby-forum.com/u/quangn)\
**Replies:** 2\
**Last updated:** [September 7, 2006, 1:19am UTC](https://www.ruby-forum.com/t/ranges/67817 "2006-09-07T01:19:21Z")

</div>

Is there a way to make the lower end or both ends of a range exclusive? I would like (1…5) and (1…5\] -jason

---

## [NArray shuffle](https://www.ruby-forum.com/t/narray-shuffle/67785)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 12:27am UTC](https://www.ruby-forum.com/t/narray-shuffle/67785 "2006-09-07T00:27:17Z")

</div>

Has anyone ever needed to “shuffle” an NArray? I can certainly convert it to an array and do the sort\_by {rand} idiom, and then convert it back. I currently: na.size.times do p1,p2 = rand(na.size),rand(na.size) na\[p…

---

## [Total newbie, but I think I found a bug in Socket?](https://www.ruby-forum.com/t/total-newbie-but-i-think-i-found-a-bug-in-socket/67700)

<div class="topic-metadata">

**Author:** [@ptyler](https://www.ruby-forum.com/u/ptyler)\
**Replies:** 7\
**Last updated:** [September 6, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/total-newbie-but-i-think-i-found-a-bug-in-socket/67700 "2006-09-06T23:35:10Z")

</div>

Hello, Fair warning…I’m extremely new to Ruby so please pardon any ignorance on my part. Anyway, so the first thing I start to play around with after reading through Programming Ruby is the socket library. Now, I r…

---

## [Binding for CORBA](https://www.ruby-forum.com/t/binding-for-corba/67810)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 0\
**Last updated:** [September 6, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/binding-for-corba/67810 "2006-09-06T23:19:07Z")

</div>

I’ve seen a number of projects over the years that were trying to hook up a CORBA orb to Ruby … I’d really like to see that happen … I mean, take Orbit2 for instance, they provide C, C++, & Python bindings … And, th…

---

## [Happy Numbers (#93)](https://www.ruby-forum.com/t/happy-numbers-93/67803)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [September 6, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/happy-numbers-93/67803 "2006-09-06T22:19:00Z")

</div>

Here’s my solution. There are arguments which control what the main program does. -b , or --base is an integer giving the base - this defaults to 10 -t, or --time-limit is an integer giving the number of seconds to r…

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

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