# Ruby

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

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

---

## [\[Bug #6\](Closed) sprintf() of %f on Windows(MSVCRT)](https://www.ruby-forum.com/t/bug-6-closed-sprintf-of-f-on-windows-msvcrt/156170)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [December 22, 2008, 4:17am UTC](https://www.ruby-forum.com/t/bug-6-closed-sprintf-of-f-on-windows-msvcrt/156170 "2008-12-22T04:17:42Z")

</div>

e$B%A%1%C%He(B #6 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B Applied in changeset r20910. http://redmine.ruby-lang.org/issues/…

---

## [\[Bug #861\] Rake::MultiTask#invoke\_prerequisites should be private](https://www.ruby-forum.com/t/bug-861-rake-multitask-invoke-prerequisites-should-be-private/155475)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [December 22, 2008, 3:48am UTC](https://www.ruby-forum.com/t/bug-861-rake-multitask-invoke-prerequisites-should-be-private/155475 "2008-12-22T03:48:26Z")

</div>

Bug #861: Rake::MultiTask#invoke\_prerequisites should be private http://redmine.ruby-lang.org/issues/show/861 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib Rake::Task#invoke\_…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/156166)

<div class="topic-metadata">

**Author:** [@Kristian\_Meyer](https://www.ruby-forum.com/u/Kristian_Meyer)\
**Replies:** 0\
**Last updated:** [December 22, 2008, 3:45am UTC](https://www.ruby-forum.com/t/no-subject/156166 "2008-12-22T03:45:29Z")

</div>

unsubscribe

---

## [\[Bug #6\] sprintf() of %f on Windows(MSVCRT)](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/156167)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 0\
**Last updated:** [December 22, 2008, 2:30am UTC](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/156167 "2008-12-22T02:30:30Z")

</div>

e$B%A%1%C%He(B #6 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.) e$BC4Ev\<Te(B Usaku NAKAMURAe$B$+$ie(BNobuyoshi N.e$B$KJQ99e(B e$BM%@hEYe(B Lowe$B$+$ie(BHighe$B$KJQ99e(B e$B!VJ,$+$C$F$k$J$i%3%\_%C%H$7$F!We(B(e$B$&$5$5$se(B)e$B…

---

## [Need support for embedded HSQL](https://www.ruby-forum.com/t/need-support-for-embedded-hsql/156145)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 0\
**Last updated:** [December 21, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/need-support-for-embedded-hsql/156145 "2008-12-21T16:42:53Z")

</div>

I’d like to embed HSQL into a JRuby app, and I’m not sure what my options are for existing adapters. Can anyone recommend a gem or library that you’ve had experience with? Was it a positive experience? …

---

## [Java Interface](https://www.ruby-forum.com/t/java-interface/156138)

<div class="topic-metadata">

**Author:** [@Ernest\_Darby](https://www.ruby-forum.com/u/Ernest_Darby)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/java-interface/156138 "2008-12-21T15:24:21Z")

</div>

Hoping to see more posts concerning this interface …

---

## [Ruby and Rails supported on 10gen](https://www.ruby-forum.com/t/ruby-and-rails-supported-on-10gen/155967)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 10\
**Last updated:** [December 21, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/ruby-and-rails-supported-on-10gen/155967 "2008-12-21T14:33:20Z")

</div>

http://www.10gen.com/blog/2008/12/ruby-support-on-10gen It’s official: the 10gen open source cloud computing platform (http://www.10gen.com) now supports Ruby and Rails. See the blog post for details and links to docu…

---

## [Non-newline gets](https://www.ruby-forum.com/t/non-newline-gets/156131)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 8:23am UTC](https://www.ruby-forum.com/t/non-newline-gets/156131 "2008-12-21T08:23:01Z")

</div>

Hello, I’m writing a CLI and I want to get some additional information after I first run the script, namely the username. Take a look. – code puts "Welcome. Enter username: " username = gets.strip – /code That wor…

---

## [Test-unit 2.0.2 Released](https://www.ruby-forum.com/t/test-unit-2-0-2-released/156134)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [December 21, 2008, 8:15am UTC](https://www.ruby-forum.com/t/test-unit-2-0-2-released/156134 "2008-12-21T08:15:59Z")

</div>

Hi, test-unit version 2.0.2 has been released! http://rubyforge.org/projects/test-unit/ Test::Unit 2.x - Improved version of Test::Unit bundled in Ruby 1.8.x. Ruby 1.9.x bundles miniunit not Test::Unit. Test::Unit …

---

## [\[Bug #913\] mathn $B$7$?\>l9g!"(Bsqrt(NaN) $B$,J#AG?t$K$J$k(B](https://www.ruby-forum.com/t/bug-913-mathn-b-7-l9g-bsqrt-nan-b-j-ag-t-k-j-k-b/156130)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [December 21, 2008, 7:30am UTC](https://www.ruby-forum.com/t/bug-913-mathn-b-7-l9g-bsqrt-nan-b-j-ag-t-k-j-k-b/156130 "2008-12-21T07:30:25Z")

</div>

Bug #913: mathn e$B$7$?\>l9g!"e(Bsqrt(NaN) e$B$,J#AG?t$K$J$ke(B http://redmine.ruby-lang.org/issues/show/913 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal main@191-20081221\> nan = 0.0/0 …

---

## [\[Bug #910\] optparse with regexp](https://www.ruby-forum.com/t/bug-910-optparse-with-regexp/156098)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 3\
**Last updated:** [December 21, 2008, 6:17am UTC](https://www.ruby-forum.com/t/bug-910-optparse-with-regexp/156098 "2008-12-21T06:17:56Z")

</div>

Bug #910: optparse with regexp http://redmine.ruby-lang.org/issues/show/910 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal optparsee$B$G%\*%W%7%g%s0z?t$K%^%C%A$9$Y$-@55,I=8=$r;XDj$7$?\>l9g$N5sF0…

---

## [Hitimes 0.4.0 Released](https://www.ruby-forum.com/t/hitimes-0-4-0-released/156129)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [December 21, 2008, 6:02am UTC](https://www.ruby-forum.com/t/hitimes-0-4-0-released/156129 "2008-12-21T06:02:44Z")

</div>

hitimes version 0.4.0 has been released. gem install hitimes http://copiousfreetime.rubyforge.org/hitimes/ Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate …

---

## [Ruby-debug quit without prompt?](https://www.ruby-forum.com/t/ruby-debug-quit-without-prompt/156123)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [December 21, 2008, 5:07am UTC](https://www.ruby-forum.com/t/ruby-debug-quit-without-prompt/156123 "2008-12-21T05:07:24Z")

</div>

Is there a setting somewhere for ruby-debug to avoid the (rdb:1) exit Really quit? (y/n) y ? Thanks! -=R

---

## [\[Bug #909\] optparse with regexp](https://www.ruby-forum.com/t/bug-909-optparse-with-regexp/156097)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 4:28am UTC](https://www.ruby-forum.com/t/bug-909-optparse-with-regexp/156097 "2008-12-21T04:28:04Z")

</div>

Bug #909: optparse with regexp http://redmine.ruby-lang.org/issues/show/909 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal optparsee$B$G%\*%W%7%g%s0z?t$K%^%C%A$9$Y$-@55,I=8=$r;XDj$7$?\>l9g$N5sF0…

---

## [Anyone scraping dynamic AJAX sites?](https://www.ruby-forum.com/t/anyone-scraping-dynamic-ajax-sites/154464)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 11\
**Last updated:** [December 21, 2008, 1:27am UTC](https://www.ruby-forum.com/t/anyone-scraping-dynamic-ajax-sites/154464 "2008-12-21T01:27:56Z")

</div>

Hello. Is there anyone who has successfully found a way to scrape a dynamically generated AJAX web site? If I view the source, it gives me the variables. If I use Firebug to view the DOM, it gives me the actual val…

---

## [Net::SSH - kick off background job](https://www.ruby-forum.com/t/net-ssh-kick-off-background-job/155897)

<div class="topic-metadata">

**Author:** [@hoshbad](https://www.ruby-forum.com/u/hoshbad)\
**Replies:** 7\
**Last updated:** [December 20, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/net-ssh-kick-off-background-job/155897 "2008-12-20T23:08:01Z")

</div>

Does anyone know of a way to tell Net::SSH to start running a script but then effectively “disown” that process? I have a long-running job I’d like to kick off using Net::SSH but I don’t want the connection to persist…

---

## [Linkparser 1.0.3](https://www.ruby-forum.com/t/linkparser-1-0-3/156114)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 20, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/linkparser-1-0-3/156114 "2008-12-20T21:12:00Z")

</div>

Version 1.0.3 of linkparser has been released. LinkParser is a Ruby binding for the Abiword variant of the link-grammar library, a syntactic parser of English. See Link Grammar for more information about the Link Gra…

---

## [Block comment problem](https://www.ruby-forum.com/t/block-comment-problem/156001)

<div class="topic-metadata">

**Author:** [@mrmaster](https://www.ruby-forum.com/u/mrmaster)\
**Replies:** 5\
**Last updated:** [December 20, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/block-comment-problem/156001 "2008-12-20T21:04:59Z")

</div>

Hello, For some reason I’m unable to do block comments. I keep receiving this error in my terminal: timesheet.rb:20: syntax error, unexpected ‘=’, expecting kEND =begin ^ timesheet.rb:36: syntax error, unexpected ‘…

---

## [Last chance for JRubyOne...er...JavaOne proposals](https://www.ruby-forum.com/t/last-chance-for-jrubyone-er-javaone-proposals/156060)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 7\
**Last updated:** [December 20, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/last-chance-for-jrubyone-er-javaone-proposals/156060 "2008-12-20T17:03:39Z")

</div>

Today is the last day for JavaOne proposals, and we’re really hoping to get some “real” rubyists showing these Java guys how it’s done. Right now we’ve got some basic proposals for a Ruby language/classes/libraries in…

---

## [Hash.each and hash.each\_pair](https://www.ruby-forum.com/t/hash-each-and-hash-each-pair/155959)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 2\
**Last updated:** [December 20, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/hash-each-and-hash-each-pair/155959 "2008-12-20T16:36:04Z")

</div>

I looked at RDoc documentation. It says “each\_pair” method is marginally more efficient. Do we need to abandon “each”? Do you use “each” or stick to “each\_pair”?

---

## [String.c question](https://www.ruby-forum.com/t/string-c-question/155582)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 1\
**Last updated:** [December 20, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/string-c-question/155582 "2008-12-20T14:55:55Z")

</div>

How does rb\_str\_cat differ from rb\_str\_buf\_cat? I have a a String object, a C pointer to a char array, and the length of the array. The array is 10KB or even 100KB. I want to cat the char array to the String. Which is…

---

## [YAML troubles](https://www.ruby-forum.com/t/yaml-troubles/156075)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 5\
**Last updated:** [December 20, 2008, 10:32am UTC](https://www.ruby-forum.com/t/yaml-troubles/156075 "2008-12-20T10:32:48Z")

</div>

I am working on a ruby MUD server, and I wanted to save a list of characters in a separate YAML file. The YAML file should contain a hash for each character, being something like this: {“charactername” =\> \[“password”…

---

## [Contribution to RubyGems](https://www.ruby-forum.com/t/contribution-to-rubygems/156053)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 3\
**Last updated:** [December 20, 2008, 9:55am UTC](https://www.ruby-forum.com/t/contribution-to-rubygems/156053 "2008-12-20T09:55:04Z")

</div>

Hello, I have some ideas on RubyGem optimization. Where should I discuss them? How to contribute? Basically, where to start? :slight\_smile: Alex

---

## [Formula for a x, y plot](https://www.ruby-forum.com/t/formula-for-a-x-y-plot/156070)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 2\
**Last updated:** [December 20, 2008, 8:02am UTC](https://www.ruby-forum.com/t/formula-for-a-x-y-plot/156070 "2008-12-20T08:02:50Z")

</div>

hey there all, ok, not really a ruby question, but did not know where to look. i have a circle on a graph paper. if i know the x and y of a point on the graph, if the center is at 0,0, and i know the radius, how can…

---

## [Inequality test](https://www.ruby-forum.com/t/inequality-test/156084)

<div class="topic-metadata">

**Author:** [@enjo20](https://www.ruby-forum.com/u/enjo20)\
**Replies:** 1\
**Last updated:** [December 20, 2008, 7:26am UTC](https://www.ruby-forum.com/t/inequality-test/156084 "2008-12-20T07:26:35Z")

</div>

Hi, all I have tested comparison test by using object concept. I mean this one a = 1 a.send(’==’, 1) =\> true a.send(’\>’, 0) ==\>true a.send(’\<’, -1) ==\> false With this concept, however, I cannot test inequlity …

---

## [1978 != 1978](https://www.ruby-forum.com/t/1978-1978/156067)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [December 19, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/1978-1978/156067 "2008-12-19T23:56:10Z")

</div>

I have these years that I am trying to compare to see if they are equal and when my code get to the right year in question where it is supposed to equate to true, it doesn’t. Here is my code: \<% 1900.upto(year) do |i|…

---

## [Re: 1978 != 1978](https://www.ruby-forum.com/t/re-1978-1978/156069)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 19, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/re-1978-1978/156069 "2008-12-19T23:44:31Z")

</div>

My guess is that the way computer represents number is not exactly whole number but I m sure others can better correct this issue

---

## [Could this one line Date extension to return the end of financial year date be any more compact?](https://www.ruby-forum.com/t/could-this-one-line-date-extension-to-return-the-end-of-financial-year-date-be-any-more-compact/156014)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [December 19, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/could-this-one-line-date-extension-to-return-the-end-of-financial-year-date-be-any-more-compact/156014 "2008-12-19T22:06:37Z")

</div>

could this be any more compact or ruby like that it is? class Date def financial\_year\_end Date.civil(year, 6, 30) \< self ? Date.civil(year, 6, 30) : Date.civil(year - 1, 6, 30) end end

---

## [Sleep](https://www.ruby-forum.com/t/sleep/155994)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 3\
**Last updated:** [December 19, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/sleep/155994 "2008-12-19T21:55:29Z")

</div>

This program is very simple. It is suppose to load in the text file, load each character into an array, then print out the array one letter at a time. It is supposed to wait 1 second each time it prints. This free…

---

## [1.1.6 BigDecimal mystery: "AssertionError: NULL Metaclass!?!?!-"](https://www.ruby-forum.com/t/1-1-6-bigdecimal-mystery-assertionerror-null-metaclass/156056)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 1\
**Last updated:** [December 19, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/1-1-6-bigdecimal-mystery-assertionerror-null-metaclass/156056 "2008-12-19T21:25:34Z")

</div>

This code: wrapper = new RubyBigDecimal(runtime, (BigDecimal)obj); produces this error in 1.1.6 but not 1.1.4: -java.lang.AssertionError: NULL Metaclass!!?!?!- org.jruby.RubyBasicObject.(RubyBasicObject.java:193) or…

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

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