# Ruby

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

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

---

## [Fwd: RubyTk...books and links and such](https://www.ruby-forum.com/t/fwd-rubytk-books-and-links-and-such/130027)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 1\
**Last updated:** [February 24, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/fwd-rubytk-books-and-links-and-such/130027 "2008-02-24T17:38:01Z")

</div>

\[ Don’t cull the damn mailing list…\] ---------- Forwarded message ---------- From: Serg K. removed\_email\_address@domain.invalid Date: 24 Feb 2008 15:04 Subject: Re: RubyTk…books and links and such To: Thomas A. remo…

---

## [Ruby type-safe? Ruby strongly/weakly typed? Ruby pitfalls?](https://www.ruby-forum.com/t/ruby-type-safe-ruby-strongly-weakly-typed-ruby-pitfalls/128232)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 35\
**Last updated:** [February 24, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/ruby-type-safe-ruby-strongly-weakly-typed-ruby-pitfalls/128232 "2008-02-24T15:56:09Z")

</div>

Hi, I added some paragraphs to the Ruby article on Wikipedia: Type system Is Ruby type-safe? Is Ruby strongly typed? Criticism Lack of variable declarations Dynamic typing Overloaded operators Reflective and meta-…

---

## [ANN: Teach yourself Ruby - the hard way!](https://www.ruby-forum.com/t/ann-teach-yourself-ruby-the-hard-way/129971)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 11\
**Last updated:** [February 24, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/ann-teach-yourself-ruby-the-hard-way/129971 "2008-02-24T12:19:01Z")

</div>

A frequent question from Ruby newcomers is “Okay, I’ve read the tutorials - now what?”. To that end, I’m putting together a series of tutorials, each of which leads the student step by step through the construction of…

---

## [UTF\_16LE.dummy? returns false](https://www.ruby-forum.com/t/utf-16le-dummy-returns-false/130004)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 9\
**Last updated:** [February 24, 2008, 11:38am UTC](https://www.ruby-forum.com/t/utf-16le-dummy-returns-false/130004 "2008-02-24T11:38:13Z")

</div>

e$B$3$s$K$A$Oe(B sheepman e$B$G$9!#e(B Encoding::UTF\_16LE.dummy? e$B$,e(B false e$B$rJV$9$N$O$3$&$$$&$b$N$J$s$G$7$g$&$+!#e(B $ ruby-1.9 -ve ‘p Encoding::UTF\_16LE.dummy?’ ruby 1.9.0 (2008-02-24 revision 15239) \[i686-l…

---

## [Rubyscript2exe (Couldn't execute this command (rc=):](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734)

<div class="topic-metadata">

**Author:** [@koooee](https://www.ruby-forum.com/u/koooee)\
**Replies:** 4\
**Last updated:** [February 24, 2008, 5:57am UTC](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734 "2008-02-24T05:57:35Z")

</div>

Hello, I am very new to ruby and can’t seem to get rubyscript2exe to work correctly I am running windows vista…i know…I have tried all of the standard things I know how to do, such as reinstall ruby, the ruby gems, r…

---

## [Using a variable as a method name?](https://www.ruby-forum.com/t/using-a-variable-as-a-method-name/130001)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 3\
**Last updated:** [February 24, 2008, 2:46am UTC](https://www.ruby-forum.com/t/using-a-variable-as-a-method-name/130001 "2008-02-24T02:46:43Z")

</div>

Hello, I need a bit of help understanding how to use a variable as a name for a method call. Forgive me trying to explains this, I am new at all this. In the code listed, I am tring to set the debugging level of t…

---

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

<div class="topic-metadata">

**Author:** [@snarles](https://www.ruby-forum.com/u/snarles)\
**Replies:** 1\
**Last updated:** [February 24, 2008, 1:37am UTC](https://www.ruby-forum.com/t/newbie-game-designer-question/129999 "2008-02-24T01:37:27Z")

</div>

Hi, I’m designing a turn-based RPG with graphics (probably no animations.) I have these questions: What graphics library should I use? What would be the best way to write game data to a file (character statistics, i…

---

## [Vtd-xml 2.3 released](https://www.ruby-forum.com/t/vtd-xml-2-3-released/129987)

<div class="topic-metadata">

**Author:** [@jimmy\_Zhang](https://www.ruby-forum.com/u/jimmy_Zhang)\
**Replies:** 1\
**Last updated:** [February 23, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/vtd-xml-2-3-released/129987 "2008-02-23T23:58:19Z")

</div>

VTD-XML 2.3 is now released. To download the latest version please visit VTD-XML: The Future of XML Processing - Browse /OldFiles at SourceForge.net. Below is a list of new features and enhancements in this version. a…

---

## [||= \[\] idiom](https://www.ruby-forum.com/t/idiom/129593)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 23\
**Last updated:** [February 23, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/idiom/129593 "2008-02-23T21:26:01Z")

</div>

I often make use of this idiom to add something to an array in a hash of arrays: @categories = {} pagelist.each do |resource| @categories\[resource.tag\] ||= \[\] @categories\[resource.tag\] \<\< resource end … is there a…

---

## [Wikiware](https://www.ruby-forum.com/t/wikiware/129988)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [February 23, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/wikiware/129988 "2008-02-23T20:48:20Z")

</div>

What is the state of affairs for Ruby Wiki apps? Is Instiki the only acitve choice? Or are there any good alternatives? Thanks, T.

---

## [Nested Rails Files](https://www.ruby-forum.com/t/nested-rails-files/129960)

<div class="topic-metadata">

**Author:** [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Replies:** 3\
**Last updated:** [February 23, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/nested-rails-files/129960 "2008-02-23T17:27:45Z")

</div>

I’m having trouble making nested Rakefiles work. Say I have the following: Raketest Rakefile Child Rakefile This is a Raketest folder containing a rakefile, and a child folder containing a different rakefile. …

---

## [Clean cache](https://www.ruby-forum.com/t/clean-cache/129825)

<div class="topic-metadata">

**Author:** [@mirth](https://www.ruby-forum.com/u/mirth)\
**Replies:** 2\
**Last updated:** [February 23, 2008, 9:13am UTC](https://www.ruby-forum.com/t/clean-cache/129825 "2008-02-23T09:13:23Z")

</div>

hi guys, For the performance testing I’m doing, I need to clean cache after each test. Is there any way to clean cache using ruby? Thanks.

---

## [Votes](https://www.ruby-forum.com/t/votes/129815)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 2\
**Last updated:** [February 23, 2008, 4:58am UTC](https://www.ruby-forum.com/t/votes/129815 "2008-02-23T04:58:00Z")

</div>

Hi, I’m currently studying ruby at university and I have to make an application for a poll. I need a way of taking in votes and then processing these votes but haven’t the slightest clue. Anyone got any ideas? Any re…

---

## [How to define the assignment operator in Ruby?](https://www.ruby-forum.com/t/how-to-define-the-assignment-operator-in-ruby/129780)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 6\
**Last updated:** [February 23, 2008, 4:53am UTC](https://www.ruby-forum.com/t/how-to-define-the-assignment-operator-in-ruby/129780 "2008-02-23T04:53:18Z")

</div>

Hi all, How to define the assignment operator for a class ? irb(main):012:0\> class Test irb(main):013:1\> def = other irb(main):014:2\> puts other.class irb(main):015:2\> end irb(main):016:1\> end SyntaxEr…

---

## [Lots of seg faults](https://www.ruby-forum.com/t/lots-of-seg-faults/126052)

<div class="topic-metadata">

**Author:** [@scottbrisko](https://www.ruby-forum.com/u/scottbrisko)\
**Replies:** 5\
**Last updated:** [February 23, 2008, 2:40am UTC](https://www.ruby-forum.com/t/lots-of-seg-faults/126052 "2008-02-23T02:40:28Z")

</div>

Anyone care go guess what’s going on here? This started happening out of the blue. I’ve since updated Ruby but still get “\[BUG\] Segmentation fault” on most operations involving ruby, gem, rake, etc. This is just an e…

---

## [Ruby 1.9.0 and Mechanize](https://www.ruby-forum.com/t/ruby-1-9-0-and-mechanize/129958)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 0\
**Last updated:** [February 23, 2008, 1:15am UTC](https://www.ruby-forum.com/t/ruby-1-9-0-and-mechanize/129958 "2008-02-23T01:15:56Z")

</div>

Hi all, I’ve just downloaded the development release of Ruby 1.9.0. Unfortunately, url.relative? isn’t working well for me. Any tips or tricks to get Mechanize to work properly would be grand, thanks. irb output: $…

---

## [Random Question Generator](https://www.ruby-forum.com/t/random-question-generator/129952)

<div class="topic-metadata">

**Author:** [@joshualef](https://www.ruby-forum.com/u/joshualef)\
**Replies:** 2\
**Last updated:** [February 23, 2008, 12:13am UTC](https://www.ruby-forum.com/t/random-question-generator/129952 "2008-02-23T00:13:42Z")

</div>

I am trying to make my own exam simulator, similar to GRE or SAT. I think I know how to create the pool of questions and answers, but I am not sure how to create the buttons, how to store the responses and produce a …

---

## [RDoc question: How do I make a link from the README file to a specific RDOC Page](https://www.ruby-forum.com/t/rdoc-question-how-do-i-make-a-link-from-the-readme-file-to-a-specific-rdoc-page/129056)

<div class="topic-metadata">

**Author:** [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/rdoc-question-how-do-i-make-a-link-from-the-readme-file-to-a-specific-rdoc-page/129056 "2008-02-22T23:59:02Z")

</div>

This is an excerpt from the ActiveWarehouse-etl README file Multiple source types. Current supported types: Fixed-width and delimited text files XML files through SAX Apache combined log format I want to link the w…

---

## [Need cohercing a var into a method name](https://www.ruby-forum.com/t/need-cohercing-a-var-into-a-method-name/129948)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 3\
**Last updated:** [February 22, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/need-cohercing-a-var-into-a-method-name/129948 "2008-02-22T23:45:29Z")

</div>

Hello, I need a small bit of help, I am playing with Logger class and ran into a small problem I am not sure how to solve. Namely, I was interested in command line setting of the logging level, however, the passed ar…

---

## [Re: require error in gems](https://www.ruby-forum.com/t/re-require-error-in-gems/129949)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/re-require-error-in-gems/129949 "2008-02-22T23:11:58Z")

</div>

DOn’t you first need to: require ‘rubygems’ Then: require ‘rubyzip’ or ‘zip’ ? ----- Original Message ---- From: BENI removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sen…

---

## [Missing headers to build dl](https://www.ruby-forum.com/t/missing-headers-to-build-dl/129943)

<div class="topic-metadata">

**Author:** [@Neal\_Reid](https://www.ruby-forum.com/u/Neal_Reid)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/missing-headers-to-build-dl/129943 "2008-02-22T22:36:29Z")

</div>

I have all of ruby 1.8.4 running on my OS 10.2.8 mac - nearly… When I try running extcon.rb in the ext/dl results in checking for windows.h… no checking for dlfcn.h… no so of course the bundle is never built. Search…

---

## [Mms2r 2.0.2 Released](https://www.ruby-forum.com/t/mms2r-2-0-2-released/129942)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/mms2r-2-0-2-released/129942 "2008-02-22T22:27:00Z")

</div>

mms2r version 2.0.2 has been released! http://mms2r.rubyforge.org/ http://rubyforge.org/tracker/?group\_id=3065 DESCRIPTION: MMS2R is a library that decodes the parts of an MMS message to disk while stripping out…

---

## [Memcached: Dealing with unknown keys](https://www.ruby-forum.com/t/memcached-dealing-with-unknown-keys/129091)

<div class="topic-metadata">

**Author:** [@tony23](https://www.ruby-forum.com/u/tony23)\
**Replies:** 13\
**Last updated:** [February 22, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/memcached-dealing-with-unknown-keys/129091 "2008-02-22T22:00:10Z")

</div>

I was wondering if there is a way to handle reading keys when you don’t know what the keys are, using memcache-client…

---

## [Regex in Ruby question](https://www.ruby-forum.com/t/regex-in-ruby-question/129922)

<div class="topic-metadata">

**Author:** [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Replies:** 5\
**Last updated:** [February 22, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/regex-in-ruby-question/129922 "2008-02-22T21:12:55Z")

</div>

Another newbie question: I’ve just started learning about regex “officially” (reading the O’reilly book) and was trying out some of the examples (porting them to Ruby from Perl). From what I can tell, Ruby’s regex eng…

---

## [\[bug\] nice exception in Net::HTTP::HTTPHeader](https://www.ruby-forum.com/t/bug-nice-exception-in-net-httpheader/129931)

<div class="topic-metadata">

**Author:** [@Ustalov\_D](https://www.ruby-forum.com/u/Ustalov_D)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/bug-nice-exception-in-net-httpheader/129931 "2008-02-22T21:01:13Z")

</div>

hello. method initialize\_http\_header() of the Net::HTTP::HTTPHeader doesn’t check the type of the ‘value’, and crashes with exception: —8\<— /usr/lib/ruby/1.8/net/http.rb:1142:in initialize\_http\_header': undefined met…

---

## [Ruby Gems & FireWalls](https://www.ruby-forum.com/t/ruby-gems-firewalls/128857)

<div class="topic-metadata">

**Author:** [@jayson](https://www.ruby-forum.com/u/jayson)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/ruby-gems-firewalls/128857 "2008-02-22T20:59:27Z")

</div>

I had an awful time today trying to install the HighLine gem on my machine at home. After several attempts, I tried disabling my firewall on a whim, and presto, the gem installed successfully. I don’t recall having th…

---

## [Beginner's problem with sqlite3](https://www.ruby-forum.com/t/beginners-problem-with-sqlite3/129782)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 14\
**Last updated:** [February 22, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/beginners-problem-with-sqlite3/129782 "2008-02-22T20:55:56Z")

</div>

It would be helpful if the sqlite3-ruby documentation offered one or two complete examples, as without these I am unable to figure out several syntax questions, so I’m having to guess, and I’m not guessing right. I’m …

---

## [Sorry very newbie post!](https://www.ruby-forum.com/t/sorry-very-newbie-post/129923)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 10\
**Last updated:** [February 22, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/sorry-very-newbie-post/129923 "2008-02-22T20:19:52Z")

</div>

Ok so I just got myself Chris P.s book and started with the questions in it and the first short prog I type in SciTE is puts 'Hi, what\`s your first name? ’ name = gets puts 'your name is ’ + name save it and run and…

---

## [MountainWest RubyConf Registration Closing soon!](https://www.ruby-forum.com/t/mountainwest-rubyconf-registration-closing-soon/129924)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/mountainwest-rubyconf-registration-closing-soon/129924 "2008-02-22T19:24:45Z")

</div>

There are still some seats left, but time is running out. If you’re interested in some high quality Ruby and Rails education at a great price, this is the place for you. MountainWest RubyConf is a 2 day conference, wi…

---

## [Newbie Mem Leak Issue](https://www.ruby-forum.com/t/newbie-mem-leak-issue/129828)

<div class="topic-metadata">

**Author:** [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Replies:** 13\
**Last updated:** [February 22, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/newbie-mem-leak-issue/129828 "2008-02-22T18:37:26Z")

</div>

I am fairly new to Ruby and a program that I have created seems to have a memory leak. I have generated a small program which does the basics of my program that leaks, and the test program also seems to leak. Can an…

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

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