# Ruby

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

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

---

## [Rhodes - a microframework for building native mobile device applications](https://www.ruby-forum.com/t/rhodes-a-microframework-for-building-native-mobile-device-applications/155448)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 6\
**Last updated:** [February 1, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/rhodes-a-microframework-for-building-native-mobile-device-applications/155448 "2009-02-01T16:40:52Z")

</div>

The Rhodes framework is an open source Ruby-based platform for building locally executing, device-optimized mobile applications. It is similar in concept to MVC frameworks such as Rails, Merb and Camping but much ligh…

---

## [Problems with rubygems while debugging](https://www.ruby-forum.com/t/problems-with-rubygems-while-debugging/158854)

<div class="topic-metadata">

**Author:** [@nspinne](https://www.ruby-forum.com/u/nspinne)\
**Replies:** 2\
**Last updated:** [February 1, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/problems-with-rubygems-while-debugging/158854 "2009-02-01T16:30:14Z")

</div>

When I try to debug a ruby file I got the following message: $ ruby -rdebug test.rb Debug.rb Emacs support available. /usr/local/lib/ruby/site\_ruby/1.8/ubygems.rb:10:require ‘rubygems’ (rdb:1) whenever I try to deb…

---

## [Extending modules defined in a ruby library via C#](https://www.ruby-forum.com/t/extending-modules-defined-in-a-ruby-library-via-c/159114)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 3\
**Last updated:** [February 1, 2009, 10:59am UTC](https://www.ruby-forum.com/t/extending-modules-defined-in-a-ruby-library-via-c/159114 "2009-02-01T10:59:08Z")

</div>

Hi, I think I’ve stumbled on a bug of IronRuby, but I would like to hear your thoughts about this before filing a report on the bug tracker as I might be missing something or doing something wrong. I have a ruby libr…

---

## [Rake db:migrate not working](https://www.ruby-forum.com/t/rake-db-migrate-not-working/159108)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 6\
**Last updated:** [February 1, 2009, 1:50am UTC](https://www.ruby-forum.com/t/rake-db-migrate-not-working/159108 "2009-02-01T01:50:30Z")

</div>

I keep getting access denied for user ‘root’@‘localhost’ (using password: YES) this is all I have in my database.yml file: development: adapter: mysql database: devel user: root password: xxxxxx host: localhost

---

## [OptParse bug?](https://www.ruby-forum.com/t/optparse-bug/159119)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [February 1, 2009, 12:40am UTC](https://www.ruby-forum.com/t/optparse-bug/159119 "2009-02-01T00:40:51Z")

</div>

With this file: C:\\dev\\thesis\_p2pwebcode\\src\>cat example.rb require ‘optparse’ OptionParser.new do |opts| opts.on('-p', '--do\_multiples\_with\_variant=NAME', 'multiples variant ex: ') do |name| end end.parse! I get…

---

## [Replacing callcc by catch/throw](https://www.ruby-forum.com/t/replacing-callcc-by-catch-throw/158780)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 15\
**Last updated:** [February 1, 2009, 12:03am UTC](https://www.ruby-forum.com/t/replacing-callcc-by-catch-throw/158780 "2009-02-01T00:03:22Z")

</div>

Hello, in his book \`\`The Ruby P.ming Language’’ Mats discourages from using continuations. Nevertheless I’ve found a real world example, where at a first look callcc could be easily replaced by catch and throw, but i…

---

## [Question about overloading and method selection with the wrong signature](https://www.ruby-forum.com/t/question-about-overloading-and-method-selection-with-the-wrong-signature/159127)

<div class="topic-metadata">

**Author:** [@remgo](https://www.ruby-forum.com/u/remgo)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/question-about-overloading-and-method-selection-with-the-wrong-signature/159127 "2009-01-31T23:58:04Z")

</div>

Serabe, thanks for answering the last question so very, very rapidly!! Another question about overloading and method selection with the wrong signature Jruby part: cells = DefaultGraphCell\[3\].new insert(cells) How …

---

## [Difference in file.join between Linux, win32?](https://www.ruby-forum.com/t/difference-in-file-join-between-linux-win32/159066)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 5\
**Last updated:** [January 31, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/difference-in-file-join-between-linux-win32/159066 "2009-01-31T22:47:08Z")

</div>

question: if I run some code within the following directory structure ./substruct\_start\_and\_bootstrap\_if\_necessary.rb ./substruct \[directory\] /config boot.rb this code is within substruct\_start\_and\_bootstrap\_if\_nec…

---

## [UnicodeUtils 1.0.0 - case conversion, normalization and more](https://www.ruby-forum.com/t/unicodeutils-1-0-0-case-conversion-normalization-and-more/159123)

<div class="topic-metadata">

**Author:** [@stefanl38](https://www.ruby-forum.com/u/stefanl38)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/unicodeutils-1-0-0-case-conversion-normalization-and-more/159123 "2009-01-31T22:07:16Z")

</div>

UnicodeUtils implements Unicode algorithms in pure Ruby code. Install with RubyGems: $ gem install unicode\_utils Ruby 1.9.1 is required. Example code: require "unicode\_utils/titlecase" UnicodeUtils.titlecase("hello,…

---

## [File::write() complement for File::read()?](https://www.ruby-forum.com/t/file-write-complement-for-file-read/159068)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 4\
**Last updated:** [January 31, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/file-write-complement-for-file-read/159068 "2009-01-31T21:48:02Z")

</div>

Hello, Why is there not a complementary File::write() method to the File::read() method? It feels unbalanced to always write the following code whereas it’s so much easier to read a file: File.open(path, ‘wb’) {|f| …

---

## [Gathering Ruby Quiz 2 Data (#189)](https://www.ruby-forum.com/t/gathering-ruby-quiz-2-data-189/158430)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 11\
**Last updated:** [January 31, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/gathering-ruby-quiz-2-data-189/158430 "2009-01-31T21:37:53Z")

</div>

Greetings! Welcome to the inaugural Ruby Q. 3! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz…

---

## [Easier installation?](https://www.ruby-forum.com/t/easier-installation/159116)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/easier-installation/159116 "2009-01-31T20:32:43Z")

</div>

It might be nice if it were easier to sort through and find the latest and greatest version of jruby to download. Also neat would be a “one click jruby installer” for windows. Cheers! -=r

---

## [MySQL gem maintainer and project page?](https://www.ruby-forum.com/t/mysql-gem-maintainer-and-project-page/159007)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 31, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/mysql-gem-maintainer-and-project-page/159007 "2009-01-31T20:13:11Z")

</div>

Hello Everybody, I’m looking into RubyForge and the gem specification for any reference of authors to get in touch. I will like to contribute with some corrections made for compiling on Windows (made on my fork at gi…

---

## [Global generator of unique symbols](https://www.ruby-forum.com/t/global-generator-of-unique-symbols/159081)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 9\
**Last updated:** [January 31, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/global-generator-of-unique-symbols/159081 "2009-01-31T19:28:46Z")

</div>

Hello, is there a global generator of unique symbols? See article removed\_email\_address@domain.invalid why that can be needed. There I have defined myself a generator, but that’s no real solution: if software is goin…

---

## [Rubinius - What happenig?](https://www.ruby-forum.com/t/rubinius-what-happenig/159105)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 1\
**Last updated:** [January 31, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/rubinius-what-happenig/159105 "2009-01-31T17:32:25Z")

</div>

No news on this for a year… Did Engine Y. stop developement ? Or is it done ?

---

## [Testing file system manipulations](https://www.ruby-forum.com/t/testing-file-system-manipulations/158964)

<div class="topic-metadata">

**Author:** [@cvincent](https://www.ruby-forum.com/u/cvincent)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/testing-file-system-manipulations/158964 "2009-01-31T14:40:22Z")

</div>

I am currently writing a class which processes a log file, inserts some data into the database, and then rotates the log file. I am doing test-driven development and I was curious as to the best practices for testing…

---

## [If statement not working with Hash object](https://www.ruby-forum.com/t/if-statement-not-working-with-hash-object/158234)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 10\
**Last updated:** [January 31, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/if-statement-not-working-with-hash-object/158234 "2009-01-31T14:35:09Z")

</div>

count1 = Hash.new(0) File.open(“patient.txt”) do |src| src.each\_line do |line| word1 = line count1\[word1\] += 1 end end words = (count1.keys).uniq words.each do |word| if word != /Date1|packageId/ then #\<-------…

---

## [Problems with rake and sh](https://www.ruby-forum.com/t/problems-with-rake-and-sh/158757)

<div class="topic-metadata">

**Author:** [@analogue40](https://www.ruby-forum.com/u/analogue40)\
**Replies:** 3\
**Last updated:** [January 31, 2009, 1:54pm UTC](https://www.ruby-forum.com/t/problems-with-rake-and-sh/158757 "2009-01-31T13:54:19Z")

</div>

Hi, I am using ssh to login to my Amazon EC2 server, and using a rake task to automate some activities on the machine. Every time I login, it is a new machine, so I have no host keys from the machine and SSH connectio…

---

## [Odd Ruby 1.9.1.rc2 error message](https://www.ruby-forum.com/t/odd-ruby-1-9-1-rc2-error-message/158987)

<div class="topic-metadata">

**Author:** [@mwlang88](https://www.ruby-forum.com/u/mwlang88)\
**Replies:** 3\
**Last updated:** [January 31, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/odd-ruby-1-9-1-rc2-error-message/158987 "2009-01-31T13:30:54Z")

</div>

Hello, I’ve been largely successful in compiling Ruby 1.9.1.rc2 and launching a Rails 2.2.2 with mysql backend but as I pull in the various gems such as hpricot, thin, mongrel, I’m encountering this “top (required)” …

---

## [Ruby 1.9, Ruby Mysql 2.8, Compiling](https://www.ruby-forum.com/t/ruby-1-9-ruby-mysql-2-8-compiling/158961)

<div class="topic-metadata">

**Author:** [@mwlang88](https://www.ruby-forum.com/u/mwlang88)\
**Replies:** 4\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/ruby-1-9-ruby-mysql-2-8-compiling/158961 "2009-01-31T12:50:58Z")

</div>

Hello, all I have successfully compiled and install Ruby 1.9.1.rc2 on 32-bit Ubuntu Intrepid. I have also managed to compile the Ruby MySQL 2.8 native bindings. I eventually got everything going to run Rails 2.2.2 on…

---

## [Htmldiff between 2 files](https://www.ruby-forum.com/t/htmldiff-between-2-files/127028)

<div class="topic-metadata">

**Author:** [@j4nus](https://www.ruby-forum.com/u/j4nus)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 11:45am UTC](https://www.ruby-forum.com/t/htmldiff-between-2-files/127028 "2009-01-31T11:45:10Z")

</div>

Dear all, I’m looking a existing ruby script that will allow me to create a html diff between 2 existing text files. I already found similar scripts but what I need is to have 2 colons: on the left for the first file…

---

## [\[Bug #1075\] \\r\\n $B$H(B \\n $B$,:.:\_$7$?(B CSV $B$,%(%i!\<$K$J$k(B](https://www.ruby-forum.com/t/bug-1075-r-n-b-h-b-n-b-7-b-csv-b-i-k-j-k-b/159083)

<div class="topic-metadata">

**Author:** [@masa16](https://www.ruby-forum.com/u/masa16)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 10:59am UTC](https://www.ruby-forum.com/t/bug-1075-r-n-b-h-b-n-b-7-b-csv-b-i-k-j-k-b/159083 "2009-01-31T10:59:02Z")

</div>

Bug #1075: \\r\\n e$B$He(B \\n e$B$,:.:\_$7$?e(B CSV e$B$,%(%i!\<$K$J$ke(B http://redmine.ruby-lang.org/issues/show/1075 e$B5/I\<\<Te(B: Masahiro T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib ruby -v:…

---

## [GlassFish gem v0.9.2 released](https://www.ruby-forum.com/t/glassfish-gem-v0-9-2-released/159075)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 8:49am UTC](https://www.ruby-forum.com/t/glassfish-gem-v0-9-2-released/159075 "2009-01-31T08:49:05Z")

</div>

The GlassFish gem has been updated to 0.9.2! GlassFish v3 server for Rack based web frameworks (Rails, Merb, â€¦) GlassFish gem is a lightweight and robust deployment solution for Ruby on Rails applications deployed o…

---

## [Err messages during make install-doc](https://www.ruby-forum.com/t/err-messages-during-make-install-doc/159074)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 7:55am UTC](https://www.ruby-forum.com/t/err-messages-during-make-install-doc/159074 "2009-01-31T07:55:52Z")

</div>

I’m installing ruby for the first time on OS X 10.4.11. I’m following the directions written in Simply Rails 2, the section on install Ruby on a Mac. I installed readline, then I followed the directions for installing…

---

## [Ruby on Solaris 10 performance problems](https://www.ruby-forum.com/t/ruby-on-solaris-10-performance-problems/158855)

<div class="topic-metadata">

**Author:** [@xazoola](https://www.ruby-forum.com/u/xazoola)\
**Replies:** 17\
**Last updated:** [January 31, 2009, 7:05am UTC](https://www.ruby-forum.com/t/ruby-on-solaris-10-performance-problems/158855 "2009-01-31T07:05:35Z")

</div>

We just installed ruby on a Sun T1000, 6 core UltraSPARC T1 cpu, 4G memory , Solaris 10 Right now Windows is out performing an Ultra SPARC by 25 seconds! Does anyone know why this would be the case. I have downloaded…

---

## [Uninitialized constant error](https://www.ruby-forum.com/t/uninitialized-constant-error/159018)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 3:00am UTC](https://www.ruby-forum.com/t/uninitialized-constant-error/159018 "2009-01-31T03:00:23Z")

</div>

I have three ruby classes, see below: base\_cls.rb File.dirname(FILE)+’/cls\_factory’ class BaseCls def self.say ClsFactory.say end end BaseCls.say sub\_cls.rb require File.dirname(FILE)+’/base\_cls’ class SubCl…

---

## [Ruby for Desktop Applications? Yes we can](https://www.ruby-forum.com/t/ruby-for-desktop-applications-yes-we-can/159054)

<div class="topic-metadata">

**Author:** [@Matt\_Fletcher](https://www.ruby-forum.com/u/Matt_Fletcher)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 2:48am UTC](https://www.ruby-forum.com/t/ruby-for-desktop-applications-yes-we-can/159054 "2009-01-31T02:48:47Z")

</div>

Here’s a link to a short blog post about a JRuby-driven desktop application we’ve been developing for over a year. Thanks to JRuby, we were able to develop the app in our favorite programming language and make use of …

---

## [Conventions in ruby and the principle of least surprise](https://www.ruby-forum.com/t/conventions-in-ruby-and-the-principle-of-least-surprise/158706)

<div class="topic-metadata">

**Author:** [@einarmagnus](https://www.ruby-forum.com/u/einarmagnus)\
**Replies:** 8\
**Last updated:** [January 31, 2009, 12:35am UTC](https://www.ruby-forum.com/t/conventions-in-ruby-and-the-principle-of-least-surprise/158706 "2009-01-31T00:35:24Z")

</div>

Hi guys, and hi Matz. I have a few questions about ruby syntax and library that so far has had me surprised. I know Matz doesn’t say that ruby shouldn’t surprise me, but rather not surprise him but still, i would like…

---

## [GlassFish gem 0.9.2 released](https://www.ruby-forum.com/t/glassfish-gem-0-9-2-released/159063)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:23am UTC](https://www.ruby-forum.com/t/glassfish-gem-0-9-2-released/159063 "2009-01-31T00:23:06Z")

</div>

GlassFish gem ver 0.9.2 is just released. This release has startup time improvement and it also contains few critical bug fixes. The change log for ver 0.9.2 can be found herehttp://glassfishgem.rubyforge.org/files/H…

---

## [Xml](https://www.ruby-forum.com/t/xml/158649)

<div class="topic-metadata">

**Author:** [@harish\_dew](https://www.ruby-forum.com/u/harish_dew)\
**Replies:** 4\
**Last updated:** [January 31, 2009, 12:02am UTC](https://www.ruby-forum.com/t/xml/158649 "2009-01-31T00:02:08Z")

</div>

Hi All, i am new ruby on rails n i am currently working on xml with Ruby on rails. i prepared string and passed that string into simplexml module xml\_data = " 123 FirstSecondThird FirstSecondThird FirstSecondThir…

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

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