# Ruby

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

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

---

## [Re: Just a question to throw out there](https://www.ruby-forum.com/t/re-just-a-question-to-throw-out-there/74847)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/re-just-a-question-to-throw-out-there/74847 "2006-11-07T10:59:13Z")

</div>

Skotty, Don’t be discouraged. Ruby is far from the easiest language to learn, especially when compared to languages like Java (the language itself, not the complicated frameworks like J2EE). I think Ruby aims to mak…

---

## [Cool API reference thingy](https://www.ruby-forum.com/t/cool-api-reference-thingy/74800)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/cool-api-reference-thingy/74800 "2006-11-07T10:59:12Z")

</div>

Hi – Have a look at http://gotapi.com. It’s very cool. David

---

## [Interesting (and useful) exercise with the Ruby grammar by N](https://www.ruby-forum.com/t/interesting-and-useful-exercise-with-the-ruby-grammar-by-n/74073)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/interesting-and-useful-exercise-with-the-ruby-grammar-by-n/74073 "2006-11-07T10:59:02Z")

</div>

Nick S. just posted (well … I just found out about it) a graph of the Ruby grammar on his blog. He also posted the same graphs for Java and Javascript. While the pictures are interesting, impressive and useful, what’s…

---

## [Stockholm RUG?](https://www.ruby-forum.com/t/stockholm-rug/74770)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/stockholm-rug/74770 "2006-11-07T10:58:53Z")

</div>

Hi, Just wanted to throw out a call for information/action: Is there any Sweden/Stockholm RUG, and if not, is anyone up for starting something up? – Ola B. (http://ola-bini.blogspot.com) JvYAML, RbYAML, JRuby and J…

---

## [Output not clear](https://www.ruby-forum.com/t/output-not-clear/74822)

<div class="topic-metadata">

**Author:** [@fromjavatorails](https://www.ruby-forum.com/u/fromjavatorails)\
**Replies:** 13\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/output-not-clear/74822 "2006-11-07T10:58:44Z")

</div>

I am a newbie to Ruby and the output of the following program is not clear to me. The program is: class Accounts attr\_accessor :balance def initialize(name, phone, op\_balance) @name = name @phone = phone @balanc…

---

## [foxGUIb & ruby 1.8.5 spewing hundreds of errors at launch ti](https://www.ruby-forum.com/t/foxguib-ruby-1-8-5-spewing-hundreds-of-errors-at-launch-ti/74799)

<div class="topic-metadata">

**Author:** [@Kenosis](https://www.ruby-forum.com/u/Kenosis)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/foxguib-ruby-1-8-5-spewing-hundreds-of-errors-at-launch-ti/74799 "2006-11-07T10:58:34Z")

</div>

Greetings all, I decided to step up to Ruby 1.8.5 today. After installing 1.8.5, I completely uninstalled and reinstalled fox (1.6.16), fxscintilla (1.71), FXRuby (1.6.3), and foxGUIb (0.7.1), which all worked perfec…

---

## [Annoying If/Else behavior in SciTE](https://www.ruby-forum.com/t/annoying-if-else-behavior-in-scite/74214)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/annoying-if-else-behavior-in-scite/74214 "2006-11-07T10:58:20Z")

</div>

Currently, when using SciTE, my if/else statements are formatted like so: if (x \> 0) y = 1 else z = 2 end I’d like it to look like this: if (x \> 0) y = 1 else z = 2 end How should I adjust my properties to g…

---

## [Dbm library](https://www.ruby-forum.com/t/dbm-library/74748)

<div class="topic-metadata">

**Author:** [@PWR](https://www.ruby-forum.com/u/PWR)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/dbm-library/74748 "2006-11-07T10:58:20Z")

</div>

I am using Ruby 1.8.2 on Windows and am wanting to use the dbm library but cannot seem to find it anywhere. Can anyone please tell me where I can find this package?

---

## [Ruby programming best practice](https://www.ruby-forum.com/t/ruby-programming-best-practice/74644)

<div class="topic-metadata">

**Author:** [@Shannon\_F](https://www.ruby-forum.com/u/Shannon_F)\
**Replies:** 17\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/ruby-programming-best-practice/74644 "2006-11-07T10:58:12Z")

</div>

As a dynamic language, Ruby is much more flexible and easier than other language I use, for example, Delphi. However, there is a “intrinsic” problem in ruby programming – a typical error I get again and again: privat…

---

## [Vacancy for Ruby developer in Amsterdam](https://www.ruby-forum.com/t/vacancy-for-ruby-developer-in-amsterdam/74814)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/vacancy-for-ruby-developer-in-amsterdam/74814 "2006-11-07T10:58:10Z")

</div>

We’re hiring! Please email me if you’re interested. Required: Ruby / Rails developer Contract: minimum of 1 year Based in: Amsterdam FAXTOR Securities is an investment management firm of about 20 people based in A…

---

## [Vacancy for Ruby developer in Amsterdam](https://www.ruby-forum.com/t/vacancy-for-ruby-developer-in-amsterdam/74815)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:58am UTC](https://www.ruby-forum.com/t/vacancy-for-ruby-developer-in-amsterdam/74815 "2006-11-07T10:58:00Z")

</div>

We’re hiring! Please email me if you’re interested. Required: Ruby / Rails developer Contract: minimum of 1 year Based in: Amsterdam, THE NETHERLANDS FAXTOR Securities is an investment management fi…

---

## [Ruby lexer/parser](https://www.ruby-forum.com/t/ruby-lexer-parser/74810)

<div class="topic-metadata">

**Author:** [@seeweer](https://www.ruby-forum.com/u/seeweer)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:57am UTC](https://www.ruby-forum.com/t/ruby-lexer-parser/74810 "2006-11-07T10:57:52Z")

</div>

Just a short question concerning the ruby lexer/parser irb(main):001:0\> a=1 =\> 1 irb(main):002:0\> a.to\_f \* 10.0 #space before and after '’ =\> 10.0 irb(main):003:0\> a.to\_f10.0 #no space before and after ‘\*’ =\> 1…

---

## [REXML + Gruff: display label problem](https://www.ruby-forum.com/t/rexml-gruff-display-label-problem/74809)

<div class="topic-metadata">

**Author:** [@Luc\_J](https://www.ruby-forum.com/u/Luc_J)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:57am UTC](https://www.ruby-forum.com/t/rexml-gruff-display-label-problem/74809 "2006-11-07T10:57:45Z")

</div>

Hello All, I have a little question regarding graph configuration for Gruff I googled this problem but didnot find anything… I am using REXML and gruff to create a graph from XML file. That is working fine except the…

---

## [Hackers wanted](https://www.ruby-forum.com/t/hackers-wanted/74806)

<div class="topic-metadata">

**Author:** [@Vihan\_Pandey](https://www.ruby-forum.com/u/Vihan_Pandey)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:57am UTC](https://www.ruby-forum.com/t/hackers-wanted/74806 "2006-11-07T10:57:32Z")

</div>

Hello, This is a \`\`commercial" mail for a requirement of hackers. The position for the same is based in Mumbai, India. However if the requirement can be met via online communication, it is also acceptable. \* Detail…

---

## [Fuzzy Time (#99)](https://www.ruby-forum.com/t/fuzzy-time-99/225927)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/fuzzy-time-99/225927 "2006-11-07T10:56:36Z")

</div>

The core requirements for this quiz were somewhat easy. Let’s look at what needed to be done, and how some people accomplished it: How do you represent the internal time? While it would be possible to manage the time…

---

## [Re: Annoying If/Else behavior in SciTE](https://www.ruby-forum.com/t/re-annoying-if-else-behavior-in-scite/74786)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/re-annoying-if-else-behavior-in-scite/74786 "2006-11-07T10:56:35Z")

</div>

From: David V. \[mailto:removed\_email\_address@domain.invalid\] Drew O. wrote: How should I adjust my properties to get this behavior? From a cursory glance at ruby.properties, the SciTE autoindentation seems rather …

---

## [Net/http and rexml](https://www.ruby-forum.com/t/net-http-and-rexml/74769)

<div class="topic-metadata">

**Author:** [@ljscoras](https://www.ruby-forum.com/u/ljscoras)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/net-http-and-rexml/74769 "2006-11-07T10:56:35Z")

</div>

Hey all; Net/http has a method for processing data in segments–by passing the get method a block–but is there an easy way to get to the socket directly? The script I’m working on is grabbing a giant xml file from a r…

---

## [Re: str1 = str2 is not a copy?!?](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74791)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74791 "2006-11-07T10:56:34Z")

</div>

From: Louis J Scoras \[mailto:removed\_email\_address@domain.invalid\] On 11/2/06, Gavin K. removed\_email\_address@domain.invalid wrote: The thing to wrap your head around here is that ‘slots’ in an Array, and the value…

---

## [Re: str1 = str2 is not a copy?!?](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74789)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74789 "2006-11-07T10:56:30Z")

</div>

From: Louis J Scoras \[mailto:removed\_email\_address@domain.invalid\] p array # Doh!! x = array ; x\[1\] = 'win!' p array # array has been changed The thing to wrap your head around here is that ‘slots’ in an Array, and …

---

## [Re: str1 = str2 is not a copy?!?](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74787)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74787 "2006-11-07T10:56:24Z")

</div>

From: Austin Z. \[mailto:removed\_email\_address@domain.invalid\] BTW, is there a foreach function that automatically strips off the newlines from line? Returning the record separators is silly. No, it isn’t silly. Som…

---

## [Re: str1 = str2 is not a copy?!?](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74785)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74785 "2006-11-07T10:56:24Z")

</div>

From: Joe R. MUDCRAP-CE \[snip\] WHY is var line getting changed by operations on var base\_name? Isn’t ‘base\_name = line’ supposed to create a copy? ‘=’ in this case seems to be acting like an alias or something. Va…

---

## [Still more relentless non-repetition](https://www.ruby-forum.com/t/still-more-relentless-non-repetition/74624)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 13\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/still-more-relentless-non-repetition/74624 "2006-11-07T10:56:22Z")

</div>

ok, I have this Rails code which I want to make more Rubyish. controller: def tracks @term = params\[:term\] || ‘’ if @term.blank? @tracks = \[\] else @tracks = Track.find\_by\_contents @term end end view: \<% for wo…

---

## [Re: Just a question to throw out there](https://www.ruby-forum.com/t/re-just-a-question-to-throw-out-there/74772)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/re-just-a-question-to-throw-out-there/74772 "2006-11-07T10:56:11Z")

</div>

Quoting S. removed\_email\_address@domain.invalid: Or is there something else I should know first BEFORE going to Ruby? I’d suggest a ‘Computers & Networking for Dummies’ type book that gives a broad overview of how …

---

## [Fuzzy Time (#99) - Results](https://www.ruby-forum.com/t/fuzzy-time-99-results/74760)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:56am UTC](https://www.ruby-forum.com/t/fuzzy-time-99-results/74760 "2006-11-07T10:56:06Z")

</div>

Quiz Summary coming ‘soon’. Until then: Following are the results I obtained from running my test script against everyone’s submissions. (I had to fix minor bugs in a few to make them work.) After that is the (updated…

---

## [Bayesian classifiers in ruby?](https://www.ruby-forum.com/t/bayesian-classifiers-in-ruby/74704)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:55am UTC](https://www.ruby-forum.com/t/bayesian-classifiers-in-ruby/74704 "2006-11-07T10:55:50Z")

</div>

I’m researching existing Bayesian classifiers in Ruby – it looks as if there are two, one called Bishop, a Python port, and another called Classifier. Has anybody worked with them? Any upsides, downsides? Both theoret…

---

## [Remote file glob](https://www.ruby-forum.com/t/remote-file-glob/74743)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:55am UTC](https://www.ruby-forum.com/t/remote-file-glob/74743 "2006-11-07T10:55:32Z")

</div>

What is the fastest way to do a recursive file glob on a remote server? Keep in mind that I want to do some filtering based on the directory name, file properties, and file extensions. (I want to copy these files, but…

---

## [Re: Fuzzy Time (#99) - Results](https://www.ruby-forum.com/t/re-fuzzy-time-99-results/74762)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:55am UTC](https://www.ruby-forum.com/t/re-fuzzy-time-99-results/74762 "2006-11-07T10:55:24Z")

</div>

From: Gavin K. Following are the results I obtained from running my test script against everyone’s submissions. Oops. I found a small bug in my test script’s counting of offsets. (Large update intervals would cause…

---

## [Re: Fuzzy Time (#99)](https://www.ruby-forum.com/t/re-fuzzy-time-99/74756)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:55am UTC](https://www.ruby-forum.com/t/re-fuzzy-time-99/74756 "2006-11-07T10:55:17Z")

</div>

Following is my (very late, but short) submission. I first attempted to be really tricky about the time distribution in a variety of ways (which I’ll mention in the Summary), but found that the following code gave pre…

---

## [Variable pointer](https://www.ruby-forum.com/t/variable-pointer/74659)

<div class="topic-metadata">

**Author:** [@rinda](https://www.ruby-forum.com/u/rinda)\
**Replies:** 16\
**Last updated:** [November 7, 2006, 10:55am UTC](https://www.ruby-forum.com/t/variable-pointer/74659 "2006-11-07T10:55:12Z")

</div>

@c = “donal” @b = @c abrakadabra(@b, @c) @c = “mickey” print @b resulted “mickey” Is there something like abrakadabra method in ruby? The only thing I can think to emulate this is using global variable. Thank you. …

---

## [Concerns about removal of continuations in Ruby 2.0](https://www.ruby-forum.com/t/concerns-about-removal-of-continuations-in-ruby-2-0/74569)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:55am UTC](https://www.ruby-forum.com/t/concerns-about-removal-of-continuations-in-ruby-2-0/74569 "2006-11-07T10:55:11Z")

</div>

Certain control flow structures rely on continuations: For instance, Ruby’s generator implementation requires them\[1\]. Generators provide the canonical - most natural and convenient - solutions for problems as typica…

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

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