# Ruby

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

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

---

## [Ruby text editor for beginner](https://www.ruby-forum.com/t/ruby-text-editor-for-beginner/82249)

<div class="topic-metadata">

**Author:** [@b1\_S](https://www.ruby-forum.com/u/b1_S)\
**Replies:** 34\
**Last updated:** [January 25, 2007, 1:26am UTC](https://www.ruby-forum.com/t/ruby-text-editor-for-beginner/82249 "2007-01-25T01:26:14Z")

</div>

I’m looking for a simple text editor for Ruby to work under WinXP SP2. Must have: syntax colouring (of course) an incorporated window that shows your code working, even when your code requires gets input option to tu…

---

## [Exception Handling/Divide By Zero/NaN Done on One Line](https://www.ruby-forum.com/t/exception-handling-divide-by-zero-nan-done-on-one-line/83242)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 5\
**Last updated:** [January 24, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/exception-handling-divide-by-zero-nan-done-on-one-line/83242 "2007-01-24T23:34:57Z")

</div>

I have the following: a = (y != 0) ? (x/y) : 0 There must be a sexier way of doing this! Any suggestions? On a side note… how do we do exception handling on the same line as statement? a = x/y rescue 0 That does n…

---

## [Help with kernel.exec](https://www.ruby-forum.com/t/help-with-kernel-exec/83235)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 7\
**Last updated:** [January 24, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/help-with-kernel-exec/83235 "2007-01-24T23:33:31Z")

</div>

Hey there, Im trying to figure out something. If I had Postfix execute a ruby script that says Kernel.exec “/usr/sbin/sendmail -i -f #{@sender} – #{@recipient}” would this be a huge security risk? to me it seems so b…

---

## [One-Click Ruby Installer for Windows: 185-22 RC1](https://www.ruby-forum.com/t/one-click-ruby-installer-for-windows-185-22-rc1/83255)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 6\
**Last updated:** [January 24, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/one-click-ruby-installer-for-windows-185-22-rc1/83255 "2007-01-24T22:54:51Z")

</div>

185-22 Release Candidate 1 http://rubyforge.org/frs/?group\_id=167 This release updates Ruby to 1.8.5 patch level 12 (lots of bugs fixed), and most of the included extensions to their latest versions (see the change l…

---

## [Embedded: multiple interpreters](https://www.ruby-forum.com/t/embedded-multiple-interpreters/83290)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/embedded-multiple-interpreters/83290 "2007-01-24T22:50:51Z")

</div>

I have read some comments saying that when embedded, you can only have one instance of the interpreter per process. The comments were circa 2003, so I am just wondering if this has changed… My useage would see 1-2 th…

---

## [Ri-emacs promble](https://www.ruby-forum.com/t/ri-emacs-promble/82884)

<div class="topic-metadata">

**Author:** [@adong](https://www.ruby-forum.com/u/adong)\
**Replies:** 4\
**Last updated:** [January 24, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/ri-emacs-promble/82884 "2007-01-24T22:35:49Z")

</div>

when i use m\_x ri in emacs,it show follow info: couldn’t start ruby script. i use winxp and ruby 1.8.4,emacs23.

---

## [\[ANN\] Motiro 0.6.1 released](https://www.ruby-forum.com/t/ann-motiro-0-6-1-released/83278)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/ann-motiro-0-6-1-released/83278 "2007-01-24T21:28:38Z")

</div>

Motiro is a simple project tracking system written in Ruby with Rails. The current version is the thirteenth made available as an alpha preview and counts with features like RSS feeds for code revisions and a wiki for …

---

## [Putting commas in floats to seperate hundreds from thousands](https://www.ruby-forum.com/t/putting-commas-in-floats-to-seperate-hundreds-from-thousands/83268)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [January 24, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/putting-commas-in-floats-to-seperate-hundreds-from-thousands/83268 "2007-01-24T21:05:33Z")

</div>

I have the following code: class Float def to\_dollars\_with\_cents format(“$%.2f”, self) end end This way in rails I can go: @summary.job\_cost.to\_dollars\_with\_cents The output comes out as: $1900000.00 I would pre…

---

## [Can Ruby do the Objective-C/Cocoa style alloc/init pattern?](https://www.ruby-forum.com/t/can-ruby-do-the-objective-c-cocoa-style-alloc-init-pattern/83211)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [January 24, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/can-ruby-do-the-objective-c-cocoa-style-alloc-init-pattern/83211 "2007-01-24T20:27:26Z")

</div>

In Objective-C/Cocoa objects normally come to life in the following way: instance = \[\[Class alloc\] init\]; The “Class” is sent an “alloc” message (memory is allocated and a new instance is actually created) and then t…

---

## [Ruby for massively multi-core chips?](https://www.ruby-forum.com/t/ruby-for-massively-multi-core-chips/83039)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 17\
**Last updated:** [January 24, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/ruby-for-massively-multi-core-chips/83039 "2007-01-24T20:22:25Z")

</div>

How to best evolve Ruby to accommodate 80-core CPU programming? http://www.ddj.com/dept/architect/196901985 Or does it already? Later,

---

## [Does Ruby's FTP lib have a ghostly bug?](https://www.ruby-forum.com/t/does-rubys-ftp-lib-have-a-ghostly-bug/83144)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 16\
**Last updated:** [January 24, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/does-rubys-ftp-lib-have-a-ghostly-bug/83144 "2007-01-24T20:05:21Z")

</div>

Sometimes when using Ruby’s FTP lib, I get this weird error: #\<EOFError: end of file reached\> I get this both on Linux and Windows. Googling around shows that other people have reported it, although no one seems to k…

---

## [Clean URLs with Camping and Apache](https://www.ruby-forum.com/t/clean-urls-with-camping-and-apache/83199)

<div class="topic-metadata">

**Author:** [@amra](https://www.ruby-forum.com/u/amra)\
**Replies:** 2\
**Last updated:** [January 24, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/clean-urls-with-camping-and-apache/83199 "2007-01-24T19:46:17Z")

</div>

I’ve set Camping up to run with FastCGI, MySQL and Apache. I’ve set some RewriteRule directives in an .htaccess file to enable clean URLs with the app, that is: /dev/my\_app/foo/0 becomes… /dev/my\_app/dispatch.fcgi?…

---

## [Need help setting up ruby-xslt on Windows](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 6\
**Last updated:** [January 24, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/need-help-setting-up-ruby-xslt-on-windows/68335 "2007-01-24T17:29:31Z")

</div>

Has anyone successfully built and used the ruby-xslt library on Windows? I’ve downloaded the source, downloaded a libxslt binary, but am having a heck of a time trying to run make against the downloaded files. I’m hop…

---

## [I need a more efficient algorithm for this problem](https://www.ruby-forum.com/t/i-need-a-more-efficient-algorithm-for-this-problem/83034)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 15\
**Last updated:** [January 24, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/i-need-a-more-efficient-algorithm-for-this-problem/83034 "2007-01-24T17:24:42Z")

</div>

Hi, I have a question which is not necessarily a ruby-related one. Anyway, I’m using Ruby for it. To make 5 by adding 2 more more natural numbers, there are different 6 ways. 1 + 1 + 1 + 1 + 1 2 + 1 + 1 + 1 2 + 2 …

---

## [RubyOnRails: Twin sites of planetrubyonrails](https://www.ruby-forum.com/t/rubyonrails-twin-sites-of-planetrubyonrails/83206)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 2\
**Last updated:** [January 24, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/rubyonrails-twin-sites-of-planetrubyonrails/83206 "2007-01-24T16:53:45Z")

</div>

Hi all, I would like to know why is there two sites “planetrubyonrails” ? http://www.planetrubyonrails.com Is there a difference ? Are they linked ? Thanks, Stephane

---

## [RubyForge Subversion charts](https://www.ruby-forum.com/t/rubyforge-subversion-charts/83236)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/rubyforge-subversion-charts/83236 "2007-01-24T15:56:02Z")

</div>

Hello all - I posted an entry with links to the newly available StatSVN charts and graphs, as well as the most recent CVS vs Svn numbers here: http://tomcopeland.blogs.com/ Yours, Tom

---

## [RubyCocoa - selectors for Ruby classes](https://www.ruby-forum.com/t/rubycocoa-selectors-for-ruby-classes/74798)

<div class="topic-metadata">

**Author:** [@ihaveguts](https://www.ruby-forum.com/u/ihaveguts)\
**Replies:** 1\
**Last updated:** [January 24, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/rubycocoa-selectors-for-ruby-classes/74798 "2007-01-24T15:06:51Z")

</div>

Hello. I’m using the RubyCocoa framework (well, trying to), freshly compiled today (oops, yesterday) from the svn stable repository. I want my application controller to get asynchronous notifications when a file desc…

---

## [Library to rurn money into nominal value?](https://www.ruby-forum.com/t/library-to-rurn-money-into-nominal-value/83214)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 1\
**Last updated:** [January 24, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/library-to-rurn-money-into-nominal-value/83214 "2007-01-24T14:06:42Z")

</div>

Hi, I wonder if there is something like $subj so that I don’t reinvent the wheel. What I need is something like: money\_to\_val(‘$12.56’) =\> 12.56 money\_to\_val(‘$ 12.56’) =\> 12.56 money\_to\_val(‘$ 12,56’) =\> 12.…

---

## [Inotify subdirectories](https://www.ruby-forum.com/t/inotify-subdirectories/83173)

<div class="topic-metadata">

**Author:** [@j2f](https://www.ruby-forum.com/u/j2f)\
**Replies:** 4\
**Last updated:** [January 24, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/inotify-subdirectories/83173 "2007-01-24T14:04:37Z")

</div>

i have been able to successfully use the inotify (http://raa.ruby-lang.org/project/ruby-inotify/) to monitor a directory, and monitor subdirectories when they are created. However, when a file is created in a newly mo…

---

## [Install sqlite3-ruby](https://www.ruby-forum.com/t/install-sqlite3-ruby/83094)

<div class="topic-metadata">

**Author:** [@RiotSct](https://www.ruby-forum.com/u/RiotSct)\
**Replies:** 3\
**Last updated:** [January 24, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/install-sqlite3-ruby/83094 "2007-01-24T13:45:39Z")

</div>

Why if I write, #sudo gem install sqlite3-ruby , returned this error? Select which gem to install for your platform (i486-linux) sqlite3-ruby 1.2.0 (mswin32) sqlite3-ruby 1.2.0 (ruby) sqlite3-ruby 1.1.0 (mswin32) sqli…

---

## [IO.popen without console](https://www.ruby-forum.com/t/io-popen-without-console/83220)

<div class="topic-metadata">

**Author:** [@Felipe\_N](https://www.ruby-forum.com/u/Felipe_N)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/io-popen-without-console/83220 "2007-01-24T12:52:32Z")

</div>

I’m opening a IO.popen for passing commands to a DOS program while the scripts run. I need to keep the DOS program opened during all the execution. When i run it as a .rbw the console appears! I can hide the console?…

---

## [Accessing CVS from within a ruby application](https://www.ruby-forum.com/t/accessing-cvs-from-within-a-ruby-application/82099)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [January 24, 2007, 11:36am UTC](https://www.ruby-forum.com/t/accessing-cvs-from-within-a-ruby-application/82099 "2007-01-24T11:36:17Z")

</div>

Hi, I need to access a CVS repository (read only) from within a ruby application. I have found the libraries CVStools and Ruby/CVS. Are there any others? If not has anyone used these and would you recommend? I am run…

---

## [BUG: ruby-mode.el /Today's Comic/](https://www.ruby-forum.com/t/bug-ruby-mode-el-todays-comic/83142)

<div class="topic-metadata">

**Author:** [@Weber](https://www.ruby-forum.com/u/Weber)\
**Replies:** 4\
**Last updated:** [January 24, 2007, 10:37am UTC](https://www.ruby-forum.com/t/bug-ruby-mode-el-todays-comic/83142 "2007-01-24T10:37:05Z")

</div>

Hi all This regexp seems to break ruby-mode parser or something like that (I’m not an advanced emacs user) This is the code: def image\_data src = open(“http://www.dilbert.com/”).read soup = BeautifulSoup.new(src) …

---

## [Search in array](https://www.ruby-forum.com/t/search-in-array/83202)

<div class="topic-metadata">

**Author:** [@materni](https://www.ruby-forum.com/u/materni)\
**Replies:** 3\
**Last updated:** [January 24, 2007, 9:50am UTC](https://www.ruby-forum.com/t/search-in-array/83202 "2007-01-24T09:50:17Z")

</div>

hi all is there in ruby a method like in\_array() php function? i need to verify if there is a string in an array

---

## [Ruby-termios](https://www.ruby-forum.com/t/ruby-termios/83201)

<div class="topic-metadata">

**Author:** [@Robin\_Stephens](https://www.ruby-forum.com/u/Robin_Stephens)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 9:31am UTC](https://www.ruby-forum.com/t/ruby-termios/83201 "2007-01-24T09:31:48Z")

</div>

Hello all, Trying to muck around with serial ports under Linux using ruby-termios. There is some test scripts that came with ruby-termios, modem\_check0.rb is one example. When I use the above script (modem connected …

---

## [How to install or update mysql and postgres gems](https://www.ruby-forum.com/t/how-to-install-or-update-mysql-and-postgres-gems/83190)

<div class="topic-metadata">

**Author:** [@threeeyedfish](https://www.ruby-forum.com/u/threeeyedfish)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 8:35am UTC](https://www.ruby-forum.com/t/how-to-install-or-update-mysql-and-postgres-gems/83190 "2007-01-24T08:35:41Z")

</div>

Good day! I have problems with installing and updating mysql and postgres gems. It seems like RubyGems can’t find my mysql and postgres installations (they are in /usr/local/mysql and /usr/local/pgsql as by default). …

---

## [Getting rid of tmp files](https://www.ruby-forum.com/t/getting-rid-of-tmp-files/83184)

<div class="topic-metadata">

**Author:** [@Timasmith](https://www.ruby-forum.com/u/Timasmith)\
**Replies:** 1\
**Last updated:** [January 24, 2007, 8:09am UTC](https://www.ruby-forum.com/t/getting-rid-of-tmp-files/83184 "2007-01-24T08:09:38Z")

</div>

Hi, I have ruby running its little web server, ruby script/server - but I notice that it generates a ton of little files under tmp e.g. ruby\_sess.0a1d5e8a75c64e2f for every session I guess, how can I stop the creat…

---

## [Ruby Reports (Ruport) tutorials and other resources](https://www.ruby-forum.com/t/ruby-reports-ruport-tutorials-and-other-resources/83186)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 4:45am UTC](https://www.ruby-forum.com/t/ruby-reports-ruport-tutorials-and-other-resources/83186 "2007-01-24T04:45:21Z")

</div>

One of the biggest complaints in the past about Ruport is we didn’t have any tutorials or examples for people to go off. Recently folks have been turning that around a bit, so I’ve added a place on the Trac wiki\[0\] fo…

---

## [Mysql problem after upgrade to 5.0](https://www.ruby-forum.com/t/mysql-problem-after-upgrade-to-5-0/83179)

<div class="topic-metadata">

**Author:** [@kem-mason](https://www.ruby-forum.com/u/kem-mason)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 2:47am UTC](https://www.ruby-forum.com/t/mysql-problem-after-upgrade-to-5-0/83179 "2007-01-24T02:47:00Z")

</div>

I’m posting this as an FYI – for other people who might encounter the same problem – I couldn’t find any clear instructions on how to resolve it. I upgraded from mysql 4.1 to 5.0, at which point 2 different errors oc…

---

## [Ruby openssl bindings](https://www.ruby-forum.com/t/ruby-openssl-bindings/83175)

<div class="topic-metadata">

**Author:** [@satish](https://www.ruby-forum.com/u/satish)\
**Replies:** 0\
**Last updated:** [January 24, 2007, 2:04am UTC](https://www.ruby-forum.com/t/ruby-openssl-bindings/83175 "2007-01-24T02:04:51Z")

</div>

Here is the error which I get when i try a code with line require net/https /usr/local/lib/ruby/1.8/net/https.rb:102:in \`require’: no such file to load – openssl (LoadError) from /usr/local/lib/ruby/1.8/net/https.rb:…

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

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