# Ruby

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

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

---

## [Question about drb and databases](https://www.ruby-forum.com/t/question-about-drb-and-databases/69551)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [September 21, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/question-about-drb-and-databases/69551 "2006-09-21T20:45:00Z")

</div>

Let’s say I have 2 servers. One has the database, the other doesn’t. The main application is being ran on the one with the database. If I was to distribute ruby using DRb to the other server does that process need a d…

---

## [Re: Ruby connection to MySql](https://www.ruby-forum.com/t/re-ruby-connection-to-mysql/69559)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [September 21, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/re-ruby-connection-to-mysql/69559 "2006-09-21T20:22:57Z")

</div>

I’m going thru the “PickAxe” book but can find only limited information in it regarding how Ruby connects to and uses MySql… Is there any documentation available in regard to this? I think there is a great deal of i…

---

## [Re: Ducktator - A Duck Type Validator](https://www.ruby-forum.com/t/re-ducktator-a-duck-type-validator/69557)

<div class="topic-metadata">

**Author:** [@twifkak](https://www.ruby-forum.com/u/twifkak)\
**Replies:** 0\
**Last updated:** [September 21, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/re-ducktator-a-duck-type-validator/69557 "2006-09-21T20:22:57Z")

</div>

Eric M. bespoke us: virtual duck typing : the functionality is equivalent to pure duck typing, but for whatever reason #respond\_to?, #class, etc has been used. Aw… :frowning: And I thought “duck but verify” was prett…

---

## [Dumps core when 'def a; a.foo; end; a'](https://www.ruby-forum.com/t/dumps-core-when-def-a-a-foo-end-a/69392)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 2\
**Last updated:** [September 21, 2006, 7:34pm UTC](https://www.ruby-forum.com/t/dumps-core-when-def-a-a-foo-end-a/69392 "2006-09-21T19:34:50Z")

</div>

e$B$3$s$P$s$O!#:XF#$H?=$7$^$9!#e(B e$B\<+J,$O2?$b$G$-$J$+$C$?$N$G$9$,!"e(B1.8.5e$B$N%j%j!\<%9$Hh$lMM$G$7$?!#$^$?e(B e$BCN$i$J$$$&$A$Ke(BWebe$B%5%$%H$bAGE($JJ$K$J$C$F$$$F6C$$$F$$$^$9!#$3$A$i$Ke(B e$B7H$o$C$?J}!9$b!"K\\Ev$…

---

## [How to Traverse a Directory](https://www.ruby-forum.com/t/how-to-traverse-a-directory/69486)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 7\
**Last updated:** [September 21, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/how-to-traverse-a-directory/69486 "2006-09-21T19:10:43Z")

</div>

def traverse(root) Dir.foreach(root) do |file| next if file\[0\] == ?. puts file traverse(root + ‘\\’ + file) if File.directory?(root + ‘\\’ + file) end end This is my initial attempt. Two things feel rather wrong: I…

---

## [The RAA needs a makeover](https://www.ruby-forum.com/t/the-raa-needs-a-makeover/69408)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [September 21, 2006, 5:08pm UTC](https://www.ruby-forum.com/t/the-raa-needs-a-makeover/69408 "2006-09-21T17:08:19Z")

</div>

All, If www.ruby-lang.org can have a makeover, why not raa.ruby-lang.org? The UI is a bit clunky, and there is no web service backend. That means net-http + screen scraping in order to interface with it. Ick. Warnin…

---

## [Ferret 0.10.6 released (and some benchmarks)](https://www.ruby-forum.com/t/ferret-0-10-6-released-and-some-benchmarks/69451)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 5\
**Last updated:** [September 21, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/ferret-0-10-6-released-and-some-benchmarks/69451 "2006-09-21T16:48:16Z")

</div>

Hey folks, \*\* Description \*\* Firstly for those who don’t know, Ferret is a full-text search library which makes adding search to your application a breeze. It’s much faster than MySQL full-text search as well most ot…

---

## [Bug in Hash#hash? (Ruby 1.8.4)](https://www.ruby-forum.com/t/bug-in-hash-hash-ruby-1-8-4/69365)

<div class="topic-metadata">

**Author:** [@Eyal\_O](https://www.ruby-forum.com/u/Eyal_O)\
**Replies:** 6\
**Last updated:** [September 21, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/bug-in-hash-hash-ruby-1-8-4/69365 "2006-09-21T16:38:15Z")

</div>

Hi, say one = {:a=\>:b} then one.hash != one.clone.hash is that a bug or correct? (using ruby 1.8.4 (2005-12-24) \[i486-linux\]) second question:I want to index use a hash as key in a hashtable, but it doesnt work (pr…

---

## [Creating ruby-serialport singleton object breaks](https://www.ruby-forum.com/t/creating-ruby-serialport-singleton-object-breaks/69474)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 3\
**Last updated:** [September 21, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/creating-ruby-serialport-singleton-object-breaks/69474 "2006-09-21T16:37:49Z")

</div>

I’m trying to create a singleton serial port class with the following code: require ‘serialport’ # version 0.6 require ‘singleton’ class SerialConnection \< SerialPort include Singleton def initialize sp = super(…

---

## [Access specifiers](https://www.ruby-forum.com/t/access-specifiers/69485)

<div class="topic-metadata">

**Author:** [@sourav](https://www.ruby-forum.com/u/sourav)\
**Replies:** 5\
**Last updated:** [September 21, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/access-specifiers/69485 "2006-09-21T16:36:14Z")

</div>

Hi, I am new to Ruby and after progamming in several other languages, I am really enjoying the fun of Ruby. I had question regarding the access specifiers in Ruby; suppose the following two classes, class C1 private …

---

## [How do I tell gem to always get the MSWin32 version, if one](https://www.ruby-forum.com/t/how-do-i-tell-gem-to-always-get-the-mswin32-version-if-one/69527)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 0\
**Last updated:** [September 21, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/how-do-i-tell-gem-to-always-get-the-mswin32-version-if-one/69527 "2006-09-21T16:30:09Z")

</div>

If anyone could help me out, I’d appreciate it. When I do a gem install or gem update, if the latest version is available in both ruby and mswin32 versions, I’d like to automatically choose the win32 version. I looke…

---

## [Custom PDF Viewer & Printer](https://www.ruby-forum.com/t/custom-pdf-viewer-printer/69519)

<div class="topic-metadata">

**Author:** [@rieldor](https://www.ruby-forum.com/u/rieldor)\
**Replies:** 1\
**Last updated:** [September 21, 2006, 3:56pm UTC](https://www.ruby-forum.com/t/custom-pdf-viewer-printer/69519 "2006-09-21T15:56:00Z")

</div>

Hi PDF Gurus, I need to develop an application in which I can: 1- Only view a PDF document (and any other features to browse in PDF document) but not freely print it, save it as… and send it by email. 2- with a custo…

---

## [Ruby doesn't convert from String to int](https://www.ruby-forum.com/t/ruby-doesnt-convert-from-string-to-int/69456)

<div class="topic-metadata">

**Author:** [@yussibaer](https://www.ruby-forum.com/u/yussibaer)\
**Replies:** 6\
**Last updated:** [September 21, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/ruby-doesnt-convert-from-string-to-int/69456 "2006-09-21T15:47:58Z")

</div>

Hi all, I have the following peace of code: arr = \[5, 5, 2002\] date = Date.new(arr\[2\].to\_i, arr\[1\].to\_i, arr\[0\].to\_i) I need to convert the String elements in the array into int. I want to do that with to\_i, but thi…

---

## [Test::Unit and class attributes](https://www.ruby-forum.com/t/test-unit-and-class-attributes/69495)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [September 21, 2006, 3:23pm UTC](https://www.ruby-forum.com/t/test-unit-and-class-attributes/69495 "2006-09-21T15:23:50Z")

</div>

Hi, I have a test class the inherits from Test::Unit::TestCase. If I create a setup and teardown method def setup Browser.start log\_in end def teardown log\_out Browser.close end and create class attributes her…

---

## [Why is XML-RPC client prog not running?](https://www.ruby-forum.com/t/why-is-xml-rpc-client-prog-not-running/67256)

<div class="topic-metadata">

**Author:** [@pankajkumar144](https://www.ruby-forum.com/u/pankajkumar144)\
**Replies:** 4\
**Last updated:** [September 21, 2006, 12:37pm UTC](https://www.ruby-forum.com/t/why-is-xml-rpc-client-prog-not-running/67256 "2006-09-21T12:37:23Z")

</div>

Hi!all when i run ruby client program(which simply adds& subtracts two numbers by making XML-RPC call to ruby server program stored in cgi-bin directory of apache server), it’s giving following error /usr/local/lib/r…

---

## [Ruby spot it](https://www.ruby-forum.com/t/ruby-spot-it/69492)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 21, 2006, 12:21pm UTC](https://www.ruby-forum.com/t/ruby-spot-it/69492 "2006-09-21T12:21:21Z")

</div>

Hi there. I follow the threads here on the list, and i read some of the questions and answers, but most of them seem to be pretty complicated (Q&A…). Okay, I must admit, I am quite new to ruby (well not soo quite …

---

## [Unicode and Character Classes -- a bug?](https://www.ruby-forum.com/t/unicode-and-character-classes-a-bug/69208)

<div class="topic-metadata">

**Author:** [@rrwhite](https://www.ruby-forum.com/u/rrwhite)\
**Replies:** 8\
**Last updated:** [September 21, 2006, 11:37am UTC](https://www.ruby-forum.com/t/unicode-and-character-classes-a-bug/69208 "2006-09-21T11:37:36Z")

</div>

Hi, I’ve found some strange and unexpected behaviour to do with pattern matching when I use Unicode. My example code follows and contains comments to suggest what I think should happen: $KCODE = ‘u’ require ‘jcode’ …

---

## [Pair programming editor](https://www.ruby-forum.com/t/pair-programming-editor/69490)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 21, 2006, 11:35am UTC](https://www.ruby-forum.com/t/pair-programming-editor/69490 "2006-09-21T11:35:15Z")

</div>

Sorry, this might be a little bit off topic… Anyway. Does anybody knows a Pair Programming Editor like SubEthaEdit or Moonedit? Preferably with syntax highlightning for ruby ? Maybe written in Ruby… Definitly not fo…

---

## [Langhelp-0.9.8](https://www.ruby-forum.com/t/langhelp-0-9-8/69489)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 21, 2006, 11:17am UTC](https://www.ruby-forum.com/t/langhelp-0-9-8/69489 "2006-09-21T11:17:12Z")

</div>

Hi, == Abstract Langhelp creates an index of documents of various programming languages and shell commands. Langhelp enables you to search documents instantly in Emacs. If you are a programmer, then you may sometime…

---

## [El4r-1.0.4 - EmacsLisp for Ruby](https://www.ruby-forum.com/t/el4r-1-0-4-emacslisp-for-ruby/69487)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 21, 2006, 10:49am UTC](https://www.ruby-forum.com/t/el4r-1-0-4-emacslisp-for-ruby/69487 "2006-09-21T10:49:08Z")

</div>

Hi, El4r enables you to write Emacs programs in Ruby as well as in EmacsLisp. I call the Ruby language to manipulate Emacs \`EmacsRuby’. El4r and Test::Unit enables you to unit-test EmacsLisp/EmacsRuby programs autom…

---

## [Mechanize for BIG website scrapping](https://www.ruby-forum.com/t/mechanize-for-big-website-scrapping/69458)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 2\
**Last updated:** [September 21, 2006, 8:08am UTC](https://www.ruby-forum.com/t/mechanize-for-big-website-scrapping/69458 "2006-09-21T08:08:51Z")

</div>

I am using Mechanize for several projects that require me to download large amounts of html pages from a web site. Since I am working with about a 1000 pages the limitations of mechanize started to appear… Try this …

---

## [Plist 3.0.0 released!](https://www.ruby-forum.com/t/plist-3-0-0-released/69473)

<div class="topic-metadata">

**Author:** [@brblakley](https://www.ruby-forum.com/u/brblakley)\
**Replies:** 0\
**Last updated:** [September 21, 2006, 7:38am UTC](https://www.ruby-forum.com/t/plist-3-0-0-released/69473 "2006-09-21T07:38:48Z")

</div>

== Introduction Plist is a library to manipulate Property List files, also known as plists. It can parse plist files into native Ruby data structures as well as generating new plist files from your Ruby objects. Plis…

---

## [Using Memcache client](https://www.ruby-forum.com/t/using-memcache-client/69348)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 1\
**Last updated:** [September 21, 2006, 7:34am UTC](https://www.ruby-forum.com/t/using-memcache-client/69348 "2006-09-21T07:34:47Z")

</div>

Some some simple/\[stupid|smart\] questions about memcache. I am using the wrapper written by Eric H… Is it thread safe? By that I mean…lets say, I have one thread that writes to it and the other reads from it. How wi…

---

## [Opengl Tk widget for Ruby?](https://www.ruby-forum.com/t/opengl-tk-widget-for-ruby/68366)

<div class="topic-metadata">

**Author:** [@mpthompson\_at\_gmail](https://www.ruby-forum.com/u/mpthompson_at_gmail)\
**Replies:** 4\
**Last updated:** [September 21, 2006, 6:46am UTC](https://www.ruby-forum.com/t/opengl-tk-widget-for-ruby/68366 "2006-09-21T06:46:41Z")

</div>

I’m would like to create a unified Ruby on Windows XP that will combine user interface elements of Ruby/Tk and OpenGL. Using Google I’ve seen several year old references to a Togl Tk widget that seemed to wrap OpenGL…

---

## [Const\_defined? not quite in sync with const\_get?](https://www.ruby-forum.com/t/const-defined-not-quite-in-sync-with-const-get/69393)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 6\
**Last updated:** [September 21, 2006, 5:42am UTC](https://www.ruby-forum.com/t/const-defined-not-quite-in-sync-with-const-get/69393 "2006-09-21T05:42:34Z")

</div>

Assuming the following snippet, I’d expect Foo::const\_defined?(:Bar) to be routed via Foo::const\_missing. Instead it resolves to top-level Bar. Can someone explain why please? –code– class Bar end module Foo def…

---

## [Ubuntu and Log4r](https://www.ruby-forum.com/t/ubuntu-and-log4r/69404)

<div class="topic-metadata">

**Author:** [@jansenh](https://www.ruby-forum.com/u/jansenh)\
**Replies:** 3\
**Last updated:** [September 21, 2006, 5:40am UTC](https://www.ruby-forum.com/t/ubuntu-and-log4r/69404 "2006-09-21T05:40:34Z")

</div>

Hi Forum. Not sure where this issue belongs… but anyhow: My Log4r ain’t working 1 . I installed ruby-1.8.5 from source in /usr/src. (based on some blog recomendation…) 2. I installed rybygems-0.8.11 in /usr/src/ Bot…

---

## [Communication between objects](https://www.ruby-forum.com/t/communication-between-objects/69212)

<div class="topic-metadata">

**Author:** [@tod](https://www.ruby-forum.com/u/tod)\
**Replies:** 4\
**Last updated:** [September 21, 2006, 4:08am UTC](https://www.ruby-forum.com/t/communication-between-objects/69212 "2006-09-21T04:08:24Z")

</div>

I have been working with Ruby for a few months now and have hit upon something that I can’t find the answer to: what does the code look like for passing messages back and forth between objects. Here is a specific exam…

---

## [Piping input when shelling out](https://www.ruby-forum.com/t/piping-input-when-shelling-out/69296)

<div class="topic-metadata">

**Author:** [@kch](https://www.ruby-forum.com/u/kch)\
**Replies:** 20\
**Last updated:** [September 21, 2006, 2:18am UTC](https://www.ruby-forum.com/t/piping-input-when-shelling-out/69296 "2006-09-21T02:18:18Z")

</div>

Hi all, I want to use Kernel#system or one of its friends to manipulate some data I have in a ruby string. Ideally, I’d want the executed command to read the string from stdin, as if ruby had piped the data to it. Th…

---

## [Something strange in ruby or I'm a newbie?](https://www.ruby-forum.com/t/something-strange-in-ruby-or-im-a-newbie/69340)

<div class="topic-metadata">

**Author:** [@hussachai](https://www.ruby-forum.com/u/hussachai)\
**Replies:** 15\
**Last updated:** [September 21, 2006, 1:54am UTC](https://www.ruby-forum.com/t/something-strange-in-ruby-or-im-a-newbie/69340 "2006-09-21T01:54:17Z")

</div>

Question 1: #IS THIS A BUG class TestBug def test “Hello Bug” end end class FoundBug \< TestBug def test super +" ,I found you !" #Notice here end end test = FoundBug.new() puts test.test It blame me that “…

---

## [Why not a Ruby 1.8 to 2.x Code Convertor?](https://www.ruby-forum.com/t/why-not-a-ruby-1-8-to-2-x-code-convertor/69153)

<div class="topic-metadata">

**Author:** [@jose](https://www.ruby-forum.com/u/jose)\
**Replies:** 14\
**Last updated:** [September 21, 2006, 1:52am UTC](https://www.ruby-forum.com/t/why-not-a-ruby-1-8-to-2-x-code-convertor/69153 "2006-09-21T01:52:17Z")

</div>

Having read the long discussion on the advantages and disadvantages of language evolution, I have to agree with the original poster. If there is significant change in the language, yes there will be a cost to upgrade …

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

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