# Ruby

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

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

---

## [Re: Ruby Certificate Program @ University of Washington This](https://www.ruby-forum.com/t/re-ruby-certificate-program-university-of-washington-this/110356)

<div class="topic-metadata">

**Author:** [@al\_batuul](https://www.ruby-forum.com/u/al_batuul)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/re-ruby-certificate-program-university-of-washington-this/110356 "2007-07-25T18:28:35Z")

</div>

It would be great if it is possible to attend virtually ----- Original Message ---- From: M. Edward (Ed) Borasky removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Wednes…

---

## [A question of style](https://www.ruby-forum.com/t/a-question-of-style/110349)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 5\
**Last updated:** [July 25, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/a-question-of-style/110349 "2007-07-25T17:49:28Z")

</div>

I just had a funny thing happen. I’ve got a bunch of classes that take a url for their initialize methods, and do a little cleaning on the url, just in case. I was setting them all up like this @url = “http://localho…

---

## [Command queue structure help?](https://www.ruby-forum.com/t/command-queue-structure-help/225959)

<div class="topic-metadata">

**Author:** [@mouse\_059](https://www.ruby-forum.com/u/mouse_059)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/command-queue-structure-help/225959 "2007-07-25T16:55:50Z")

</div>

Greetings. I have been studying Ruby, have the pickaxe and Ruby Way (Fulton). Studying for a long time as I am a diehard C/assembly programmer and it is very hard to get out of the data-driven mindset. I believe to …

---

## [Creating instance variables while looping over a hash](https://www.ruby-forum.com/t/creating-instance-variables-while-looping-over-a-hash/196407)

<div class="topic-metadata">

**Author:** [@blaine](https://www.ruby-forum.com/u/blaine)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/creating-instance-variables-while-looping-over-a-hash/196407 "2007-07-25T16:08:22Z")

</div>

I"m reading in a YAML file using the yaml library in Ruby. My YAML looks something like this: config: value1: Something here value2: Something else As I loop from the YAML like: config\[“config”\].each { |key, value…

---

## [Formatting text](https://www.ruby-forum.com/t/formatting-text/110326)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 7\
**Last updated:** [July 25, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/formatting-text/110326 "2007-07-25T15:06:24Z")

</div>

Hi again :slight\_smile: Is there any way to format a string. I.E. I’ve got a variable which may be 1, 2, 3 and the variable is added to string. I want to show whole string formatted as follows: 100 1 10 1100 not …

---

## [Utf-16 little endian byte order mark with libxml-ruby](https://www.ruby-forum.com/t/utf-16-little-endian-byte-order-mark-with-libxml-ruby/110325)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/utf-16-little-endian-byte-order-mark-with-libxml-ruby/110325 "2007-07-25T14:50:11Z")

</div>

Hey all I am producting an xml file for which is destined to be used by another application, and after some investigation I have found that there parser always looks for a BOM at the begining of a file, indicating tha…

---

## [Static variables in Ruby](https://www.ruby-forum.com/t/static-variables-in-ruby/110215)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 22\
**Last updated:** [July 25, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/static-variables-in-ruby/110215 "2007-07-25T13:22:37Z")

</div>

Hi everybody, Is any way to define static variables over function? As class static variables there is possible to define a static class variable as @@name\_of\_var. But I’m not sure if Ruby let define such variables in …

---

## [Help: Locomotive - error](https://www.ruby-forum.com/t/help-locomotive-error/110329)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/help-locomotive-error/110329 "2007-07-25T12:21:16Z")

</div>

In the browser I have this error, I’m a newbie. NameError in NotasController#index uninitialized constant Nota RAILS\_ROOT: /Users/marco/Sites/Dev/notas Application Trace | Framework Trace | Full Trace /Applications/…

---

## [("a".."z")==="g"#=\>false](https://www.ruby-forum.com/t/a-z-g-false/110319)

<div class="topic-metadata">

**Author:** [@eklerni](https://www.ruby-forum.com/u/eklerni)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 10:04am UTC](https://www.ruby-forum.com/t/a-z-g-false/110319 "2007-07-25T10:04:49Z")

</div>

e$B\>\>Hx$H$$$$$^$9!#e(B1.9e$B$GHO0O1i;;;R$Ne(B===e$B$,$&$^$/F/$$$F$$$J$$$h$&$G$9!#e(B ruby 1.9.0 (2007-07-24 patchlevel 0) \[i386-mswin32\_80\] (“a”…“z”) .include? “g” #=\>true (Time.at(0)…Time.at(100)).include?Time.at(50)…

---

## [Command queue structure help?](https://www.ruby-forum.com/t/command-queue-structure-help/110316)

<div class="topic-metadata">

**Author:** [@mouse\_059](https://www.ruby-forum.com/u/mouse_059)\
**Replies:** 0\
**Last updated:** [July 25, 2007, 8:55am UTC](https://www.ruby-forum.com/t/command-queue-structure-help/110316 "2007-07-25T08:55:48Z")

</div>

Greetings. I have been studying Ruby, have the pickaxe and Ruby Way (Fulton). Studying for a long time as I am a diehard C/assembly programmer and it is very hard to get out of the data-driven mindset. I believe to …

---

## [Newbie question, writing to a file](https://www.ruby-forum.com/t/newbie-question-writing-to-a-file/110311)

<div class="topic-metadata">

**Author:** [@Jenny\_P](https://www.ruby-forum.com/u/Jenny_P)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 8:41am UTC](https://www.ruby-forum.com/t/newbie-question-writing-to-a-file/110311 "2007-07-25T08:41:28Z")

</div>

I’m reading Learn To Program, which is based around Ruby code, and it has directions on how to write to a named file. It looks like following these directions, I want to do something like this, where “string” is the t…

---

## [Refinement to facets/more/snapshot.rb](https://www.ruby-forum.com/t/refinement-to-facets-more-snapshot-rb/110312)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 7:51am UTC](https://www.ruby-forum.com/t/refinement-to-facets-more-snapshot-rb/110312 "2007-07-25T07:51:12Z")

</div>

Suggestion for facets library snapshot.rb Consider adding optional fields argument to both take\_snapshot() and restore\_snapshot() to selectively take snapshot of selected fields as against all fields which is the defa…

---

## [FaerieMUD? (was Re: Problems with test cases and other thing](https://www.ruby-forum.com/t/faeriemud-was-re-problems-with-test-cases-and-other-thing/110307)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 5:50am UTC](https://www.ruby-forum.com/t/faeriemud-was-re-problems-with-test-cases-and-other-thing/110307 "2007-07-25T05:50:37Z")

</div>

Michael G. wrote: – Michael G. removed\_email\_address@domain.invalid Rubymage, Architect, Believer The FaerieMUD Consortium http://www.FaerieMUD.org/ ruby -e “p 12383406064495388618631689469409153107.to\_s(36).tr(‘z’…

---

## [Where are the Ruby FAQ gone?](https://www.ruby-forum.com/t/where-are-the-ruby-faq-gone/110245)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 6\
**Last updated:** [July 25, 2007, 5:26am UTC](https://www.ruby-forum.com/t/where-are-the-ruby-faq-gone/110245 "2007-07-25T05:26:29Z")

</div>

Does anyone know where the Ruby FAQs are gone to? The two sites which had hosted the FAQs until recently, http://dev.rubycentral.com/faq/rubyfaq.html http://www.rubygarden.org/faq/ don’t seem to work anymore. The fo…

---

## [Ruby Certificate Program @ University of Washington This Fal](https://www.ruby-forum.com/t/ruby-certificate-program-university-of-washington-this-fal/110295)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 5\
**Last updated:** [July 25, 2007, 4:44am UTC](https://www.ruby-forum.com/t/ruby-certificate-program-university-of-washington-this-fal/110295 "2007-07-25T04:44:51Z")

</div>

There is a certificate course at the UW starting this fall. It is 3 quarters long starting at rubynewb, then rails/web development, then rubyjedi. no, not the real titles. You are not required to take all three course…

---

## [Preparing Data For Statistical Analysis and Reporting](https://www.ruby-forum.com/t/preparing-data-for-statistical-analysis-and-reporting/110290)

<div class="topic-metadata">

**Author:** [@robert](https://www.ruby-forum.com/u/robert)\
**Replies:** 1\
**Last updated:** [July 25, 2007, 3:51am UTC](https://www.ruby-forum.com/t/preparing-data-for-statistical-analysis-and-reporting/110290 "2007-07-25T03:51:58Z")

</div>

How much data munging is done by Ruby-ists? If you need some tools for preparing data for analysis, transforming data, and cleaning data up, there are some tools to check out at: http://directory.fsf.org/math/stats i…

---

## [Is there any command line editing package?](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244)

<div class="topic-metadata">

**Author:** [@haomiao](https://www.ruby-forum.com/u/haomiao)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 2:40am UTC](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244 "2007-07-25T02:40:59Z")

</div>

Hi I want to develop a command line environment using ruby, it can - edit the command line online, like vi mode or emacs mode in bash - support command history and history searching - the command is not the real sh…

---

## [Attaching a script to IO](https://www.ruby-forum.com/t/attaching-a-script-to-io/110274)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 4\
**Last updated:** [July 24, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/attaching-a-script-to-io/110274 "2007-07-24T23:26:33Z")

</div>

Hey all, I’m trying to attach a script’s output to IO (a socket. Is IO the right term?) I currently use a GServer script to accept connections from localhost. I don’t know if that made sense, but is there any way to …

---

## [Newbie question](https://www.ruby-forum.com/t/newbie-question/110287)

<div class="topic-metadata">

**Author:** [@ededed](https://www.ruby-forum.com/u/ededed)\
**Replies:** 4\
**Last updated:** [July 24, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/newbie-question/110287 "2007-07-24T22:56:05Z")

</div>

Hi, Under most languages it pays to use a StringBuffer of sorts. Is this true for Ruby, should one use a StringBuffer when appending many strings? If so, what is the string buffer called for Ruby?

---

## [Regex Question](https://www.ruby-forum.com/t/regex-question/110257)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [July 24, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/regex-question/110257 "2007-07-24T22:15:53Z")

</div>

I recently started studying Ruby (1.8.6) and things are going well. However, something bothered me when I got to the regular expression section. This is my first time deal with regular expressions directly so I’m com…

---

## [Attributes ala java annotations or .Net attributes?](https://www.ruby-forum.com/t/attributes-ala-java-annotations-or-net-attributes/110278)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 3\
**Last updated:** [July 24, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/attributes-ala-java-annotations-or-net-attributes/110278 "2007-07-24T21:50:41Z")

</div>

Does ruby have attributes ala java annotations or .Net attributes? I’ve never seen them in use, hence my wondering. Right now I’ve got a pretty big test-suite written in ruby & watir, and I’ve got alot of old code in …

---

## [Creating xml files: what are the right libraries to use?](https://www.ruby-forum.com/t/creating-xml-files-what-are-the-right-libraries-to-use/110186)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 4\
**Last updated:** [July 24, 2007, 9:13pm UTC](https://www.ruby-forum.com/t/creating-xml-files-what-are-the-right-libraries-to-use/110186 "2007-07-24T21:13:04Z")

</div>

When creating an xml document with ruby, what are currently the “right” libraries to use. I ask because there seem to be dozens in various states of completeness and maintenance… In this case I’d use to to create a l…

---

## [Preparing Data For Statistical Analysis](https://www.ruby-forum.com/t/preparing-data-for-statistical-analysis/110275)

<div class="topic-metadata">

**Author:** [@robert](https://www.ruby-forum.com/u/robert)\
**Replies:** 0\
**Last updated:** [July 24, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/preparing-data-for-statistical-analysis/110275 "2007-07-24T21:07:11Z")

</div>

How much data munging do Ruby-ists have to do? If you need data transformation software for preparing data for reporting and analysis, there a few options available at http://directory.fsf.org/math/stats including V…

---

## [MiniExiftool 0.4.0 released](https://www.ruby-forum.com/t/miniexiftool-0-4-0-released/110277)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 0\
**Last updated:** [July 24, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/miniexiftool-0-4-0-released/110277 "2007-07-24T21:03:56Z")

</div>

MiniExiftool version 0.4.0 released! Second try. :wink: http://miniexiftool.rubyforge.org/ MiniExiftool is a wrapper library for the Exiftool command-line application (www.sno.phy.queensu.ca/~phil/exiftool/) written b…

---

## [Technology solutions for Ruby?](https://www.ruby-forum.com/t/technology-solutions-for-ruby/109512)

<div class="topic-metadata">

**Author:** [@mreiland](https://www.ruby-forum.com/u/mreiland)\
**Replies:** 31\
**Last updated:** [July 24, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/technology-solutions-for-ruby/109512 "2007-07-24T20:31:05Z")

</div>

I’m contemplating writing an application in Ruby but in order to do so I have some requirements that I hope everyone can help me out with. This is for a primarily windows application, however I’d like to keep the door…

---

## [Object equivalence](https://www.ruby-forum.com/t/object-equivalence/110250)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 1\
**Last updated:** [July 24, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/object-equivalence/110250 "2007-07-24T20:28:48Z")

</div>

i have two objects, a and b, both of the same class. i believe they have the same contents, but a.eql?(b) returns false if i write a method xxx that returns as a string the value of every field (much as to\_s does), …

---

## [Maximum Sub-Array (#131)](https://www.ruby-forum.com/t/maximum-sub-array-131/110267)

<div class="topic-metadata">

**Author:** [@Ivan\_Zdravkovic](https://www.ruby-forum.com/u/Ivan_Zdravkovic)\
**Replies:** 0\
**Last updated:** [July 24, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/maximum-sub-array-131/110267 "2007-07-24T19:55:12Z")

</div>

Although totally algorithmic, it sounded like a nice problem. Here is my solution, based on the explanation in the text which link is given in the comments. Didn’t test it too much, so don’t rely on it’s correctness. …

---

## [Case equality question](https://www.ruby-forum.com/t/case-equality-question/110220)

<div class="topic-metadata">

**Author:** [@csitol](https://www.ruby-forum.com/u/csitol)\
**Replies:** 9\
**Last updated:** [July 24, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/case-equality-question/110220 "2007-07-24T17:47:13Z")

</div>

Hello I do not understand the following code: ====== file = File.open(‘test.txt’, ‘r’) hash = {‘file’ =\> file, ‘title’ =\> ‘title’} hash.map { | param\_key, param\_value | puts “param\_key = #{param\_key}” puts “param\_…

---

## [Unexpectadly end of program](https://www.ruby-forum.com/t/unexpectadly-end-of-program/110240)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 4\
**Last updated:** [July 24, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/unexpectadly-end-of-program/110240 "2007-07-24T17:05:45Z")

</div>

Hi, Can anybody help me with this: Cannot move multiple files to a single file. What does it mean. Such communicate appears after several iterations of my application. What is it come from? Cheers, MT

---

## [Inherited & load](https://www.ruby-forum.com/t/inherited-load/110178)

<div class="topic-metadata">

**Author:** [@FSSenault](https://www.ruby-forum.com/u/FSSenault)\
**Replies:** 14\
**Last updated:** [July 24, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/inherited-load/110178 "2007-07-24T16:41:10Z")

</div>

Hello. I’ve written a mechanism to dynamically load plugins inheriting from a base class, using the self.inherited method. Now, in an irb session, I noticed that, even if I (re)load the classes, the self.inherited is…

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

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