# Ruby

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

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

---

## [Re: ruby equivalent PHP function is\_numeric?](https://www.ruby-forum.com/t/re-ruby-equivalent-php-function-is-numeric/76349)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [November 19, 2006, 7:41pm UTC](https://www.ruby-forum.com/t/re-ruby-equivalent-php-function-is-numeric/76349 "2006-11-19T19:41:08Z")

</div>

From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] On It really is too bad that String.to\_f does not throw an exception - or at least return NaN - when the string is not a number. …

---

## [Format a float number with specific number of decimal point](https://www.ruby-forum.com/t/format-a-float-number-with-specific-number-of-decimal-point/76501)

<div class="topic-metadata">

**Author:** [@oscarlok](https://www.ruby-forum.com/u/oscarlok)\
**Replies:** 1\
**Last updated:** [November 19, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/format-a-float-number-with-specific-number-of-decimal-point/76501 "2006-11-19T19:01:06Z")

</div>

Hi, May I know that how to format a float number with specific number of decimal point, please? e.g :– 123.456789 to 123.4568 123.123321 to 123.1233 Thanks Regards Oscar

---

## [Scheduled RubyForge outage](https://www.ruby-forum.com/t/scheduled-rubyforge-outage/76499)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [November 19, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/scheduled-rubyforge-outage/76499 "2006-11-19T17:36:55Z")

</div>

Hi all - RubyForge’s hosting provider will be installing some new hardware and thus RubyForge will be offline for 10-15 minutes (hopefully not longer) around 3 PM EST today. Yours, Tom

---

## [Fwd: Literate Ruby (#102)](https://www.ruby-forum.com/t/fwd-literate-ruby-102/229121)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [November 19, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/fwd-literate-ruby-102/229121 "2006-11-19T17:16:52Z")

</div>

Begin forwarded message:

---

## [Ruby-stemp - Secure tempfile extension for Ruby](https://www.ruby-forum.com/t/ruby-stemp-secure-tempfile-extension-for-ruby/76489)

<div class="topic-metadata">

**Author:** [@Cian](https://www.ruby-forum.com/u/Cian)\
**Replies:** 0\
**Last updated:** [November 19, 2006, 5:12pm UTC](https://www.ruby-forum.com/t/ruby-stemp-secure-tempfile-extension-for-ruby/76489 "2006-11-19T17:12:51Z")

</div>

Hi all, I’ve just released ruby-stemp, a secure tempfile extension for Ruby. Pure Ruby tempfile implementations appear to suffer from well-known race conditions. The ‘mkstemp’ family of functions now popular on Linux…

---

## [rICQ](https://www.ruby-forum.com/t/ricq/76486)

<div class="topic-metadata">

**Author:** [@kraid](https://www.ruby-forum.com/u/kraid)\
**Replies:** 0\
**Last updated:** [November 19, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/ricq/76486 "2006-11-19T16:29:50Z")

</div>

Kind time of day! Excuse for my English. I badly speak on it. I heard that there is ICQ a client on Ruby rICQ. Prompt where to me it can be found. Or to it the similar client on Ruby. Or tell as to realize function …

---

## [Piston 1.2.0: status, better update](https://www.ruby-forum.com/t/piston-1-2-0-status-better-update/76324)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 1\
**Last updated:** [November 19, 2006, 1:58pm UTC](https://www.ruby-forum.com/t/piston-1-2-0-status-better-update/76324 "2006-11-19T13:58:35Z")

</div>

Piston 1.2.0 is here. From the ChangeLog: New status subcommand. Shows M if locally or remotely modified. Applies to one, many, all folders. This subcommand requires the use of a Subversion 1.2.0 client. Thanks…

---

## [Re: Missing required 'path' module?](https://www.ruby-forum.com/t/re-missing-required-path-module/76474)

<div class="topic-metadata">

**Author:** [@Mike\_ASKenny](https://www.ruby-forum.com/u/Mike_ASKenny)\
**Replies:** 0\
**Last updated:** [November 19, 2006, 11:30am UTC](https://www.ruby-forum.com/t/re-missing-required-path-module/76474 "2006-11-19T11:30:26Z")

</div>

\----- Paul L. removed\_email\_address@domain.invalid wrote: I have created an empty application and added the method ‘hello’ to the controller. Please show us your code and the specifics of how you are storing and …

---

## [How to use regexp to replace character with backslash plus t](https://www.ruby-forum.com/t/how-to-use-regexp-to-replace-character-with-backslash-plus-t/76430)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 6\
**Last updated:** [November 19, 2006, 4:22am UTC](https://www.ruby-forum.com/t/how-to-use-regexp-to-replace-character-with-backslash-plus-t/76430 "2006-11-19T04:22:02Z")

</div>

Hello, 1.8.5. I want to ‘correct’ filenames for unix shell so I want to preceed any let’s say & with backslash. Here is code translated from my original script in Perl – end of the function return filename.gsub(/(\[;…

---

## [Wsdl2ruby error](https://www.ruby-forum.com/t/wsdl2ruby-error/76457)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 0\
**Last updated:** [November 19, 2006, 4:22am UTC](https://www.ruby-forum.com/t/wsdl2ruby-error/76457 "2006-11-19T04:22:02Z")

</div>

I’m trying to use wsdl2ruby on the Netsuite wsdl but get this error. This is on Freebsd 6.1, ruby 1.8.5. Any idea how to debug this or why it’s complaining? This is a link to where you can view/download the wsdl. …

---

## [Add a zero on single digit numbers](https://www.ruby-forum.com/t/add-a-zero-on-single-digit-numbers/76452)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [November 19, 2006, 2:57am UTC](https://www.ruby-forum.com/t/add-a-zero-on-single-digit-numbers/76452 "2006-11-19T02:57:56Z")

</div>

Using DateTime.now.min I often get single digit numbers like “7”. However “22:7” isn’t really adequate for displaying time properly; I want “22:07”. Is there any way add a 0 onto the front of a Fixnum? I understand I…

---

## [Re: Ruby vs Java vs c++](https://www.ruby-forum.com/t/re-ruby-vs-java-vs-c/76451)

<div class="topic-metadata">

**Author:** [@Chilkat\_S](https://www.ruby-forum.com/u/Chilkat_S)\
**Replies:** 0\
**Last updated:** [November 19, 2006, 2:01am UTC](https://www.ruby-forum.com/t/re-ruby-vs-java-vs-c/76451 "2006-11-19T02:01:51Z")

</div>

My advice: Learn C++ but ignore/avoid these parts of the language: friend functions multiple inheritance operator overloading function pointers nested classes Learn the fundamental concepts of object-oriented program…

---

## [Newbie: how to script windows commands with ruby?](https://www.ruby-forum.com/t/newbie-how-to-script-windows-commands-with-ruby/76427)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 7\
**Last updated:** [November 19, 2006, 1:07am UTC](https://www.ruby-forum.com/t/newbie-how-to-script-windows-commands-with-ruby/76427 "2006-11-19T01:07:44Z")

</div>

Hi! I’ve been learning ruby for a little while, but I’m having trouble figuring out how to do this (and I must be using the wrong keywords in my google search). I do tech support, and I’m looking to automate some ba…

---

## [IHelp 0.4.0 - full text search](https://www.ruby-forum.com/t/ihelp-0-4-0-full-text-search/76245)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 12\
**Last updated:** [November 19, 2006, 1:01am UTC](https://www.ruby-forum.com/t/ihelp-0-4-0-full-text-search/76245 "2006-11-19T01:01:42Z")

</div>

View and search object documentation from irb. sudo gem install ihelp Downloads: http://rubyforge.org/frs/?group\_id=2597 Documentation: http://ihelp.rubyforge.org Project page: http://rubyforge.org/projects/ihelp/ S…

---

## [How to call a class method via the singleton if it exists](https://www.ruby-forum.com/t/how-to-call-a-class-method-via-the-singleton-if-it-exists/76416)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [November 19, 2006, 12:09am UTC](https://www.ruby-forum.com/t/how-to-call-a-class-method-via-the-singleton-if-it-exists/76416 "2006-11-19T00:09:38Z")

</div>

I want to call a class level method from the the instance level, but I need it to go through the singeton if it exists. Here is the most basic example: class X def self.f ; “A” ; end def g ; self.class.f ; end end …

---

## [Re: ruby equivalent PHP function is\_numeric?](https://www.ruby-forum.com/t/re-ruby-equivalent-php-function-is-numeric/76344)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [November 18, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/re-ruby-equivalent-php-function-is-numeric/76344 "2006-11-18T20:01:16Z")

</div>

From: Paul L. \[mailto:removed\_email\_address@domain.invalid\] What purpose does the underscore play? I see that it is accepted, I just can’t figure out why. I have never seen it as part of proper numeric syntax, anywh…

---

## [Los Angeles Ruby Group](https://www.ruby-forum.com/t/los-angeles-ruby-group/76434)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 18, 2006, 7:57pm UTC](https://www.ruby-forum.com/t/los-angeles-ruby-group/76434 "2006-11-18T19:57:15Z")

</div>

Hello, I’ve setup a website for the Los A. Ruby group. There is a mailing list available and minimal content on the site. At this point in time there is no regular meeting scheduled but the location is most likely to…

---

## [Re: Installing 1.8.5 on Debian](https://www.ruby-forum.com/t/re-installing-1-8-5-on-debian/76223)

<div class="topic-metadata">

**Author:** [@Lee\_Benson](https://www.ruby-forum.com/u/Lee_Benson)\
**Replies:** 1\
**Last updated:** [November 18, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/re-installing-1-8-5-on-debian/76223 "2006-11-18T18:31:04Z")

</div>

Can I ask for a dump of your /etc/apt/sources.list file please? None of the mirror list URLs I’m using have 1.8.4 ----- Original Message ---- From: greg removed\_email\_address@domain.invalid To: ruby-talk ML removed\_e…

---

## [Ruby on Rails Introductory Workshop, Toronto, December 15](https://www.ruby-forum.com/t/ruby-on-rails-introductory-workshop-toronto-december-15/76429)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 18, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-introductory-workshop-toronto-december-15/76429 "2006-11-18T18:25:02Z")

</div>

What? Ruby on Rails Introduction - Toronto: It’s a one-day introduction to techniques and resources by David A. Black. Who? David A. Black is a well-known and highly-regarded\[1\] Ruby and Rails programmer, author, an…

---

## [Ruby equivalent PHP function is\_numeric?](https://www.ruby-forum.com/t/ruby-equivalent-php-function-is-numeric/76338)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 14\
**Last updated:** [November 18, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/ruby-equivalent-php-function-is-numeric/76338 "2006-11-18T18:15:01Z")

</div>

After reading completely my Ruby book, I cannot find a function equivalent to the PHP is\_numeric? to test a String myString.is\_numeric? (check only digits and dot character) =\> return true or false does it exist…

---

## [RE : VimMate 0.6.0](https://www.ruby-forum.com/t/re-vimmate-0-6-0/76413)

<div class="topic-metadata">

**Author:** [@Guillaume\_Benny](https://www.ruby-forum.com/u/Guillaume_Benny)\
**Replies:** 0\
**Last updated:** [November 18, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/re-vimmate-0-6-0/76413 "2006-11-18T17:14:52Z")

</div>

features, it stays out of the way for its main task: editing files with Vim. VimMate adds functionality to Vim by embedding Vim GTK GUI (gVim) within VimMate. Brilliant! A vim analogue of ScitePM has been near the…

---

## [Turn 0.1.0 Released](https://www.ruby-forum.com/t/turn-0-1-0-released/75561)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 16\
**Last updated:** [November 18, 2006, 3:40pm UTC](https://www.ruby-forum.com/t/turn-0-1-0-released/75561 "2006-11-18T15:40:45Z")

</div>

turn version 0.1.0 has been released! Test::Unit Reporter New – a new output format for Test::Unit Turn this …F… Into this TestMyClass test\_alt PASS test\_alt\_eq PASS test\_bad FAIL ./test/test\_my\_class.rb:64:i…

---

## [Protecting commercial ruby source code](https://www.ruby-forum.com/t/protecting-commercial-ruby-source-code/76296)

<div class="topic-metadata">

**Author:** [@Hiren\_B](https://www.ruby-forum.com/u/Hiren_B)\
**Replies:** 6\
**Last updated:** [November 18, 2006, 3:58am UTC](https://www.ruby-forum.com/t/protecting-commercial-ruby-source-code/76296 "2006-11-18T03:58:03Z")

</div>

Hello all Is there a way to obfuscate my ruby source code. I have come across ZenObfuscate which at about $2500. Does anyone know of any other options to protect ruby source code when it is distributed to clients? T…

---

## [Does libmysql-ruby has 2 versions?](https://www.ruby-forum.com/t/does-libmysql-ruby-has-2-versions/76368)

<div class="topic-metadata">

**Author:** [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Replies:** 0\
**Last updated:** [November 18, 2006, 12:35am UTC](https://www.ruby-forum.com/t/does-libmysql-ruby-has-2-versions/76368 "2006-11-18T00:35:18Z")

</div>

just curious

---

## [VimMate 0.6.0](https://www.ruby-forum.com/t/vimmate-0-6-0/76367)

<div class="topic-metadata">

**Author:** [@Guillaume\_Benny](https://www.ruby-forum.com/u/Guillaume_Benny)\
**Replies:** 0\
**Last updated:** [November 18, 2006, 12:31am UTC](https://www.ruby-forum.com/t/vimmate-0-6-0/76367 "2006-11-18T00:31:44Z")

</div>

Hi, The first public release of VimMate (version 0.6.0) is out. VimMate is a graphical add-on to Vim with IDE-like features: it does more than the plain Vim while still being lightweight. Even with the additional f…

---

## [Ruby arithmetic operations =S](https://www.ruby-forum.com/t/ruby-arithmetic-operations-s/76253)

<div class="topic-metadata">

**Author:** [@flaab](https://www.ruby-forum.com/u/flaab)\
**Replies:** 4\
**Last updated:** [November 17, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/ruby-arithmetic-operations-s/76253 "2006-11-17T22:15:30Z")

</div>

Hi there I have to do a program for the first time that needs some math…and which is my surprise that num mod num to get the modulus of a division does not work! neither num div num to the the integer result of it. A…

---

## [Is 2.0 Integer or Float?](https://www.ruby-forum.com/t/is-2-0-integer-or-float/75948)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 18\
**Last updated:** [November 17, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/is-2-0-integer-or-float/75948 "2006-11-17T22:15:09Z")

</div>

I’d like to be able to do: x = 2.0 assert x.integral? the :integer method returns false in this case. What would be a good way to write a different method to check?

---

## [Installing 1.8.5 on Debian](https://www.ruby-forum.com/t/installing-1-8-5-on-debian/76222)

<div class="topic-metadata">

**Author:** [@Lee\_Benson](https://www.ruby-forum.com/u/Lee_Benson)\
**Replies:** 3\
**Last updated:** [November 17, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/installing-1-8-5-on-debian/76222 "2006-11-17T21:23:23Z")

</div>

Hey guys, I’m new to Ruby, and I’m using Debian GNU/Linux. I like it for the package management – BUT, the latest package I can find is 1.8.2. I’d like to maintain Debian’s package management system (rather than com…

---

## [When Rake goes "Ache!"](https://www.ruby-forum.com/t/when-rake-goes-ache/76272)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 3\
**Last updated:** [November 17, 2006, 9:10pm UTC](https://www.ruby-forum.com/t/when-rake-goes-ache/76272 "2006-11-17T21:10:44Z")

</div>

What is the best way to set something to do when a Rake task fails? I’d like something like: task :migrate\_safely =\> \[:backup, :migrate\] do rescue if :backup :restore end end end Is there a way to do anything si…

---

## [Rake, Namespaces, and dependencies](https://www.ruby-forum.com/t/rake-namespaces-and-dependencies/76270)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 4\
**Last updated:** [November 17, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/rake-namespaces-and-dependencies/76270 "2006-11-17T21:01:21Z")

</div>

I can’t figure out the correct syntax in a Rakefile to say that a certain task depends on a task in a different namespace. What is it?

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

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