# Ruby

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

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

---

## [Ruby PDA implementation?](https://www.ruby-forum.com/t/ruby-pda-implementation/85078)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 6\
**Last updated:** [February 18, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/ruby-pda-implementation/85078 "2008-02-18T17:22:36Z")

</div>

I asked this question a couple of months ago, and now am throwing it out there again in case anything has changed. Has anyone out there successfully ported Ruby over to the Windows Mobile platform yet? Following the i…

---

## [Help with Writing Replacement Text to Files](https://www.ruby-forum.com/t/help-with-writing-replacement-text-to-files/129391)

<div class="topic-metadata">

**Author:** [@thomasptacek](https://www.ruby-forum.com/u/thomasptacek)\
**Replies:** 6\
**Last updated:** [February 18, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/help-with-writing-replacement-text-to-files/129391 "2008-02-18T16:37:22Z")

</div>

Hello! I’m new to ruby and been reading this very active list for about a couple of week. I have a project at work where I need to write a simple script to scrub IP addresses from configuration files for classified n…

---

## [String Equality Operation](https://www.ruby-forum.com/t/string-equality-operation/129405)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 2\
**Last updated:** [February 18, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/string-equality-operation/129405 "2008-02-18T16:15:23Z")

</div>

Hi There, I’m doing a bit of playing around with IronRuby and ticking along ok. One thing which I’m having difficulty with though is string equality between a string that’s come from an external object. Example: mys…

---

## [Ruby 1.9, CSV and encodings](https://www.ruby-forum.com/t/ruby-1-9-csv-and-encodings/129426)

<div class="topic-metadata">

**Author:** [@patrickreilly](https://www.ruby-forum.com/u/patrickreilly)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/ruby-1-9-csv-and-encodings/129426 "2008-02-18T14:55:39Z")

</div>

Hi, I’d like to process an ISO-8859-1 encoded .csv file on a UTF-8 system using Ruby 1.9. The naive approach of using the CSV lib fails with “invalid mbstring sequence”. I don’t see where to specify the encoding. I’v…

---

## [How to implement class constants?](https://www.ruby-forum.com/t/how-to-implement-class-constants/129403)

<div class="topic-metadata">

**Author:** [@ruud](https://www.ruby-forum.com/u/ruud)\
**Replies:** 5\
**Last updated:** [February 18, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/how-to-implement-class-constants/129403 "2008-02-18T13:50:31Z")

</div>

hi list, what construct do I have to use in Ruby to create class constants (so no instance necessary to use it)? thanks, Ruud

---

## [Ruby Contractor Required](https://www.ruby-forum.com/t/ruby-contractor-required/129419)

<div class="topic-metadata">

**Author:** [@rdemko](https://www.ruby-forum.com/u/rdemko)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/ruby-contractor-required/129419 "2008-02-18T13:37:33Z")

</div>

Ruby Developer Required A Ruby developer is required for a market leading online price comparison website based in North London. The client are looking for a contractor with strong experience of pure Ruby development…

---

## [WATIR: IE browser is not responding when script is executed](https://www.ruby-forum.com/t/watir-ie-browser-is-not-responding-when-script-is-executed/129420)

<div class="topic-metadata">

**Author:** [@ram\_p](https://www.ruby-forum.com/u/ram_p)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 1:34pm UTC](https://www.ruby-forum.com/t/watir-ie-browser-is-not-responding-when-script-is-executed/129420 "2008-02-18T13:34:46Z")

</div>

When executing an WATIR script an IE instance is created and browser is opened. After that browser stop responding and the script is not executed completely. Please anyone give the solution for this problem.

---

## [Why apt-get install ruby1.8 on ubuntu version is patch level 36](https://www.ruby-forum.com/t/why-apt-get-install-ruby1-8-on-ubuntu-version-is-patch-level-36/129360)

<div class="topic-metadata">

**Author:** [@chaoqun](https://www.ruby-forum.com/u/chaoqun)\
**Replies:** 7\
**Last updated:** [February 18, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/why-apt-get-install-ruby1-8-on-ubuntu-version-is-patch-level-36/129360 "2008-02-18T13:25:25Z")

</div>

I konw that the last ruby patch is level 111, but when I use apt-get install ruby I installed ruby1.8 patch level 36. How can I upgrade it to level 111? Thanks.

---

## [Cannot start rails with thin](https://www.ruby-forum.com/t/cannot-start-rails-with-thin/129320)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [February 18, 2008, 1:20pm UTC](https://www.ruby-forum.com/t/cannot-start-rails-with-thin/129320 "2008-02-18T13:20:44Z")

</div>

I got another error. Do i hafve to configure anything special for the environment when i start with thin. i was looking at the instructions in teh thin site and it just told be to do the following. http://code.macourn…

---

## [Object\_id tree hierarchy in ruby?](https://www.ruby-forum.com/t/object-id-tree-hierarchy-in-ruby/129410)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/object-id-tree-hierarchy-in-ruby/129410 "2008-02-18T12:03:05Z")

</div>

how to get all object\_id tree hierarchy in ruby ?

---

## [Ruby M17N $B2q5D$N5D;vO?(B](https://www.ruby-forum.com/t/ruby-m17n-b2q5d-n5d-vo-b/129352)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 7\
**Last updated:** [February 18, 2008, 9:54am UTC](https://www.ruby-forum.com/t/ruby-m17n-b2q5d-n5d-vo-b/129352 "2008-02-18T09:54:30Z")

</div>

e$B@.@%$G$9!#e(B Ruby M17N e$B2q5D$re(B2008e$BG/e(B2e$B7ne(B15e$BF|$K9T$C$?$N$G$9$,!"$=$N%m%0$rE\>:$7$F$\*$-$^$9!#e(B == cgi.rb e$B8e7Q$N8xJg$K$D$$$Fe(B e$B\>r7o$O0J2\<$NDL$je(B e$BL\>A0e(B e$B$Oe(B cgi.rb e$B0J30$G$"$k…

---

## [\[ANN\] Snippits 0.5.2 Released](https://www.ruby-forum.com/t/ann-snippits-0-5-2-released/129396)

<div class="topic-metadata">

**Author:** [@kuzb](https://www.ruby-forum.com/u/kuzb)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 8:24am UTC](https://www.ruby-forum.com/t/ann-snippits-0-5-2-released/129396 "2008-02-18T08:24:01Z")

</div>

Snippits version 0.5.2 has been released! http://ben.kudria.net/code/snippits This is a Ruby text expansion program for Linux - it will type text for you. It uses ‘snippits’, small text files with a simple syntax to…

---

## [Desktop Application](https://www.ruby-forum.com/t/desktop-application/127808)

<div class="topic-metadata">

**Author:** [@hemlata](https://www.ruby-forum.com/u/hemlata)\
**Replies:** 8\
**Last updated:** [February 18, 2008, 5:00am UTC](https://www.ruby-forum.com/t/desktop-application/127808 "2008-02-18T05:00:38Z")

</div>

Hello Everyone, Can we make desktop application with ruby? If yes then how? I searched many of sites but exact result of this question i did not received. I didnot find any demo or book regarding desktop application w…

---

## [MySQL and new lines](https://www.ruby-forum.com/t/mysql-and-new-lines/129382)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 1:59am UTC](https://www.ruby-forum.com/t/mysql-and-new-lines/129382 "2008-02-18T01:59:27Z")

</div>

Hi, So I was having trouble earlier with getting MySQL to accept single quotes from a textarea, but I got that resolved using both the MySQL escape\_string and the CGI escape method (I finally settled on the escape\_st…

---

## [Planning for a ruby project as a Student... Read here](https://www.ruby-forum.com/t/planning-for-a-ruby-project-as-a-student-read-here/129357)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 3\
**Last updated:** [February 18, 2008, 12:20am UTC](https://www.ruby-forum.com/t/planning-for-a-ruby-project-as-a-student-read-here/129357 "2008-02-18T00:20:17Z")

</div>

Hi, I just read a very good real life blog based on ruby here… It warns a Ruby student undertaking a web based project or assignment Planning for a ruby project as a Student… Read here http://ironruby.blogspot.com/20…

---

## [Randomising](https://www.ruby-forum.com/t/randomising/129353)

<div class="topic-metadata">

**Author:** [@angelojoseph17](https://www.ruby-forum.com/u/angelojoseph17)\
**Replies:** 4\
**Last updated:** [February 18, 2008, 12:12am UTC](https://www.ruby-forum.com/t/randomising/129353 "2008-02-18T00:12:41Z")

</div>

Dear All, I am very new to ruby been learning at university for around 6 months. I love it. Anway i am making an app for a project at uni which involving creating a logoquiz game that has random quizzes. I know there …

---

## [How to use ruby run a mp3 file?](https://www.ruby-forum.com/t/how-to-use-ruby-run-a-mp3-file/110670)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 10\
**Last updated:** [February 17, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-use-ruby-run-a-mp3-file/110670 "2008-02-17T19:03:44Z")

</div>

I want to use ruby run excute mp3 file,but I don’t know how to get it workã€‚ I have a song on D drive and I write a callme.rb ++++++++++ def callme system(“2k7.mp3” ) end callme +++++++++ I am run “ruby callme.…

---

## [Can't move session data rightly](https://www.ruby-forum.com/t/cant-move-session-data-rightly/129364)

<div class="topic-metadata">

**Author:** [@Tomoharu\_Itoh](https://www.ruby-forum.com/u/Tomoharu_Itoh)\
**Replies:** 0\
**Last updated:** [February 17, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/cant-move-session-data-rightly/129364 "2008-02-17T17:32:27Z")

</div>

Hello, I posted at first time. so I think thet anyone help me . I’m using the CGI/Session and XMLHttpRequest. When client blowzer is FireFox, session data could exchange from server and client rightly. But Internet Ex…

---

## [Problem with saving associated object](https://www.ruby-forum.com/t/problem-with-saving-associated-object/129331)

<div class="topic-metadata">

**Author:** [@Jakub\_KuSSSSma](https://www.ruby-forum.com/u/Jakub_KuSSSSma)\
**Replies:** 1\
**Last updated:** [February 17, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/problem-with-saving-associated-object/129331 "2008-02-17T15:19:29Z")

</div>

Hi! I’ve following problem: class City \< ActiveRecord::Base has\_one :marker end class Marker \< ActiveRecord::Base belongs\_to :city end city = City.find(1) =\> #\<City id: 1, name: “Warsaw”, created\_at: “2008-02-…

---

## [Tests for coderange information](https://www.ruby-forum.com/t/tests-for-coderange-information/225993)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 2\
**Last updated:** [February 17, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/tests-for-coderange-information/225993 "2008-02-17T12:15:14Z")

</div>

e$B@.@%$G$9!#e(B Ruby e$B%l%$%d!\<$+$ie(B string e$B$Ne(B CODERANGE e$B\>pJs$,\<hF@$7$?$$$G$9!#e(B UTF-8 e$BJ8;z%+%&%s%H$N9bB.2=$rF~$l$F5$IU$$$?$N$G$9$,!"e(Br15519 e$B$^$G$Oe(B str1 + str2 e$B$de(B str \* 3 e$BEy$Ge(B C…

---

## [Alter String base class to perform new (private methods) before returning itself when called by pri](https://www.ruby-forum.com/t/alter-string-base-class-to-perform-new-private-methods-before-returning-itself-when-called-by-pri/129295)

<div class="topic-metadata">

**Author:** [@Steven\_GSHarms](https://www.ruby-forum.com/u/Steven_GSHarms)\
**Replies:** 7\
**Last updated:** [February 17, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/alter-string-base-class-to-perform-new-private-methods-before-returning-itself-when-called-by-pri/129295 "2008-02-17T12:01:07Z")

</div>

class String def summon puts "You summon: " + self end def summon2 puts "You summon: " + self.gsub(‘x’,‘y’) end def to\_s return “Atreyu” end end “Artax”.summon “Artax”.summon2 puts “Artax”.to\_s # reference 1 …

---

## [Programmatic VCR Control](https://www.ruby-forum.com/t/programmatic-vcr-control/129255)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 3\
**Last updated:** [February 17, 2008, 11:25am UTC](https://www.ruby-forum.com/t/programmatic-vcr-control/129255 "2008-02-17T11:25:14Z")

</div>

Hello, I was flicking through the Ruby Q.zes when I saw the VCR Program Manager (#101) – and thought how nice it would be to control my (real) video recorder via Ruby rather than its native GUI. http://www.rubyquiz.c…

---

## [Decimal 0.0 released](https://www.ruby-forum.com/t/decimal-0-0-released/129286)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 7\
**Last updated:** [February 17, 2008, 9:55am UTC](https://www.ruby-forum.com/t/decimal-0-0-released/129286 "2008-02-17T09:55:59Z")

</div>

Hello all, I released Decimal 0.0 somehow, an arithmetic extension library for Ruby. http://decimal.rubyforge.org/ Decimal is the multi-precision decimal arithmetic library, which designed to be comfortable with th…

---

## [Looking for Enumerable help I think](https://www.ruby-forum.com/t/looking-for-enumerable-help-i-think/129347)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 0\
**Last updated:** [February 17, 2008, 7:03am UTC](https://www.ruby-forum.com/t/looking-for-enumerable-help-i-think/129347 "2008-02-17T07:03:04Z")

</div>

I have a piece of code below. I have activities hooked up to a Calendar but I’m running into a problem I can’t wrap my head around. What I’m trying to achieve is the output: { period: ‘\<%= February 17, 2008 %\>’, tea…

---

## [JRuby 1.1RC2 Released](https://www.ruby-forum.com/t/jruby-1-1rc2-released/129330)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 1\
**Last updated:** [February 17, 2008, 5:06am UTC](https://www.ruby-forum.com/t/jruby-1-1rc2-released/129330 "2008-02-17T05:06:59Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1 RC 2 Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1RC2 is the second release candidate of JRuby 1.1. JRuby 1.1 …

---

## [Index action w/ post method](https://www.ruby-forum.com/t/index-action-w-post-method/129339)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 1\
**Last updated:** [February 17, 2008, 3:34am UTC](https://www.ruby-forum.com/t/index-action-w-post-method/129339 "2008-02-17T03:34:16Z")

</div>

I have a controller whose index method has lots of pull-downs for user selection of query options. When the user makes a selection, I’d like to post that back (preferably using remote as an AJAX call) but it needs to…

---

## [Internal Rate of Return (#156)](https://www.ruby-forum.com/t/internal-rate-of-return-156/129116)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 14\
**Last updated:** [February 17, 2008, 2:26am UTC](https://www.ruby-forum.com/t/internal-rate-of-return-156/129116 "2008-02-17T02:26:54Z")

</div>

Solving the IRR equation is essentially a matter of computational guesswork. You pick an IRR and check to see if the NPV is zero, or very close to it. When it is, you found the right IRR. If you didn’t find the rig…

---

## [Why does running a Test::unit test in irb work so weirdly?](https://www.ruby-forum.com/t/why-does-running-a-test-unit-test-in-irb-work-so-weirdly/129326)

<div class="topic-metadata">

**Author:** [@mith](https://www.ruby-forum.com/u/mith)\
**Replies:** 1\
**Last updated:** [February 16, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/why-does-running-a-test-unit-test-in-irb-work-so-weirdly/129326 "2008-02-16T23:47:20Z")

</div>

Why can’t I run a Test::Unit::TestCase from IRB and have it run before I quit? I have found this problem mentioned by others. For an example, see this tutorial about testing: http://www.nullislove.com/2007/11/14/tes…

---

## [Iterate through array twice](https://www.ruby-forum.com/t/iterate-through-array-twice/129310)

<div class="topic-metadata">

**Author:** [@Ruhe](https://www.ruby-forum.com/u/Ruhe)\
**Replies:** 3\
**Last updated:** [February 16, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/iterate-through-array-twice/129310 "2008-02-16T20:20:34Z")

</div>

I have array of horizontal segments and I need to find which of them may be sides of a box, so I implemented this method: def find\_square\_sides(horiz\_segments) squares = Array.new horiz\_segments.each\_with\_index do |s…

---

## [Code organization and modules](https://www.ruby-forum.com/t/code-organization-and-modules/129297)

<div class="topic-metadata">

**Author:** [@Brad\_Ottoson](https://www.ruby-forum.com/u/Brad_Ottoson)\
**Replies:** 2\
**Last updated:** [February 16, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/code-organization-and-modules/129297 "2008-02-16T19:35:52Z")

</div>

I’m working on an application for generating code skeletons from xml template files and have run into a snag. I’m trying to organize a set of code in a directory and inside that use modules. I have a set of files in…

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

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