# Ruby

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

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

---

## [Math $B%b%8%e!\<%k$N8\_49@-(B(was: Math::atan2(0, 0) on ruby 1.9.2)](https://www.ruby-forum.com/t/math-b-b-8-e-k-n8-49-b-was-math-atan2-0-0-on-ruby-1-9-2/194062)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 1\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/math-b-b-8-e-k-n8-49-b-was-math-atan2-0-0-on-ruby-1-9-2/194062 "2010-09-06T16:39:52Z")

</div>

e$B5WJ\]$G$9!#e(B Mathe$B%b%8%e!\<%k$N4X?t$N8\_49@-$ND4::$G$9!#D4::$N=gHV$Oe(B math.c e$B$GDj5A$5$le(B e$B$F$$$k=g=x$G!“A4e(B26e$B8D$N4X?t$N$&$A!”:G=i$Ne(B7e$B8D$N$\_D4::$7$^$7$?!#;D$j$Ne(B19 e$B8D$K$D$$$F$O$f$C$/$je(B(e…

---

## [What are the best practices to handle local gem modification](https://www.ruby-forum.com/t/what-are-the-best-practices-to-handle-local-gem-modification/194416)

<div class="topic-metadata">

**Author:** [@fourchette](https://www.ruby-forum.com/u/fourchette)\
**Replies:** 1\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/what-are-the-best-practices-to-handle-local-gem-modification/194416 "2010-09-06T16:39:52Z")

</div>

hi there, i hope i’m posting at the right place. i have the feeling that what i’m asking is a very frequent issue, but somewhat i have not been ale to ask it to google in the right way so i’m posting it here instead b…

---

## [Setting up a JRuby on Rails 3 + NetBeans dev environment](https://www.ruby-forum.com/t/setting-up-a-jruby-on-rails-3-netbeans-dev-environment/194496)

<div class="topic-metadata">

**Author:** [@Manish\_Chakravarty](https://www.ruby-forum.com/u/Manish_Chakravarty)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/setting-up-a-jruby-on-rails-3-netbeans-dev-environment/194496 "2010-09-06T16:39:47Z")

</div>

Hello everyone, I just started playing around with JRuby with NetBeans as my IDE. I work in ThoughtWorks and have just started playing around with NetBeans. I wrote a blog post on setting up a JRuby on Rails 3 + NetB…

---

## [\[Ruby 1.9-Bug#3789\]\[Closed\] Float('0x...') $B$G$N5sF0$,IT?3(B](https://www.ruby-forum.com/t/ruby-1-9-bug-3789-closed-float-0x-b-g-n5sf0-it-3-b/194491)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3789-closed-float-0x-b-g-n5sf0-it-3-b/194491 "2010-09-06T16:39:44Z")

</div>

e$B%A%1%C%He(B #3789 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) 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 This issue was solved with changeset r29186. tadayoshi, thank yo…

---

## [P vs. print](https://www.ruby-forum.com/t/p-vs-print/194350)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 23\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/p-vs-print/194350 "2010-09-06T16:39:43Z")

</div>

I wrote the following scripts from section (2) here: http://ruby.gfd-dennou.org/tutorial/gokuraku/index-e.html require “rubygems” # Not in the example require “narray” ary1 = NArray.sfloat(3,4) When I tried to displ…

---

## [\[Ruby 1.9-Bug#3789\]\[Open\] Float('0x...') $B$G$N5sF0$,IT?3(B](https://www.ruby-forum.com/t/ruby-1-9-bug-3789-open-float-0x-b-g-n5sf0-it-3-b/194488)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3789-open-float-0x-b-g-n5sf0-it-3-b/194488 "2010-09-06T16:39:43Z")

</div>

Bug #3789: Float(‘0x…’) e$B$G$N5sF0$,IT?3e(B http://redmine.ruby-lang.org/issues/show/3789 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low ruby -v: ruby 1.9.3dev (2010-09-04) \[i686-linux\] Fl…

---

## ["Segmentation fault" with QtRuby](https://www.ruby-forum.com/t/segmentation-fault-with-qtruby/194426)

<div class="topic-metadata">

**Author:** [@bonechi](https://www.ruby-forum.com/u/bonechi)\
**Replies:** 2\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/segmentation-fault-with-qtruby/194426 "2010-09-06T16:39:40Z")

</div>

Hello everyone! Using QtRuby, I tried to implement the “Read-only example model” (Creating new models chapter) of the “Model/View programming” technology section of Qt Assistant. But when I launch the example, I got …

---

## [Using Ruby types in .NET: anything to watch out for?](https://www.ruby-forum.com/t/using-ruby-types-in-net-anything-to-watch-out-for/194476)

<div class="topic-metadata">

**Author:** [@Davy\_B](https://www.ruby-forum.com/u/Davy_B)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/using-ruby-types-in-net-anything-to-watch-out-for/194476 "2010-09-06T16:39:39Z")

</div>

Hi all, first of all: thanks for this great project and the effort you’ve put into it, it’s very much appreciated :slight\_smile: I plan on making extensive use of ruby object instances in my .NET code. With that i m…

---

## [Is my code unelegant?](https://www.ruby-forum.com/t/is-my-code-unelegant/194431)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 3\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/is-my-code-unelegant/194431 "2010-09-06T16:39:38Z")

</div>

Is the attached code too messy to be considered “good”? I can’t figure out if I created too many variables. I’m just now learning Ruby, and I just can’t figure out if that’s bad code.

---

## [\[Ruby 1.9-Bug#3790\]\[Closed\] Float('0x') $B$,%(%i!\<$K$J$i$J$$(B](https://www.ruby-forum.com/t/ruby-1-9-bug-3790-closed-float-0x-b-i-k-j-i-j-b/194469)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3790-closed-float-0x-b-i-k-j-i-j-b/194469 "2010-09-06T16:39:37Z")

</div>

e$B%A%1%C%He(B #3790 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) 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 This issue was solved with changeset r29187. tadayoshi, thank yo…

---

## [Hoe-gemspec 1.0.0 Released](https://www.ruby-forum.com/t/hoe-gemspec-1-0-0-released/194462)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/hoe-gemspec-1-0-0-released/194462 "2010-09-06T16:39:34Z")

</div>

hoe-gemspec version 1.0.0 has been released! http://github.com/flavorjones/hoe-gemspec Generate a prerelease gemspec based on a Hoe spec. == FEATURES/PROBLEMS: Creates a rake task to generate a prerelease gemspec ba…

---

## [Life Phases of a Ruby Method](https://www.ruby-forum.com/t/life-phases-of-a-ruby-method/194432)

<div class="topic-metadata">

**Author:** [@reverri](https://www.ruby-forum.com/u/reverri)\
**Replies:** 1\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/life-phases-of-a-ruby-method/194432 "2010-09-06T16:39:34Z")

</div>

The following is my idea of the phases that a Ruby method could go thru in it’s “lifetime.” (I’m generally applying this to Ruby Application APIs, not the MRI Core, but may work for the Core as well.) A method would n…

---

## [Urgent](https://www.ruby-forum.com/t/urgent/194448)

<div class="topic-metadata">

**Author:** [@vishal](https://www.ruby-forum.com/u/vishal)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/urgent/194448 "2010-09-06T16:39:27Z")

</div>

We are new in RoR : Can some one help on the below : rake aborted! can’t activate, already activated prawn-0.8.4 \<See full trace by running task with --trace\> Q1 - how we resolve the rake aborted … Q 2- How we see \[…

---

## [\[Ruby 1.9-Bug#3791\]\[Closed\] Ruby 1.9.2$B$N(BReadline.readline$B$H(BReadline.line\_buffer$B$N%(%](https://www.ruby-forum.com/t/ruby-1-9-bug-3791-closed-ruby-1-9-2-b-n-breadline-readline-b-h-breadline-line-buffer-b-n/194446)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3791-closed-ruby-1-9-2-b-n-breadline-readline-b-h-breadline-line-buffer-b-n/194446 "2010-09-06T16:39:26Z")

</div>

e$B%A%1%C%He(B #3791 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) 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 This issue was solved with changeset r29188. Motohiro, thank you…

---

## [Could not load file or assembly Mircrosoft.Scripting"](https://www.ruby-forum.com/t/could-not-load-file-or-assembly-mircrosoft-scripting/193846)

<div class="topic-metadata">

**Author:** [@kavitha](https://www.ruby-forum.com/u/kavitha)\
**Replies:** 3\
**Last updated:** [September 6, 2010, 11:47am UTC](https://www.ruby-forum.com/t/could-not-load-file-or-assembly-mircrosoft-scripting/193846 "2010-09-06T11:47:20Z")

</div>

Even after googling I could not solve the below problem when I try to run ruby script from C# .NET using VS2010. Please help Could not load file or assembly ‘Microsoft.Scripting, Version=0.9.6.20, Culture=neutral, Pub…

---

## [Mscorlib:0:in \`ThrowArgumentException' error](https://www.ruby-forum.com/t/mscorlibin-throwargumentexception-error/193018)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 6\
**Last updated:** [September 6, 2010, 12:59am UTC](https://www.ruby-forum.com/t/mscorlibin-throwargumentexception-error/193018 "2010-09-06T00:59:54Z")

</div>

Hi all, I’m having an error that I can’t figure out what it is: This portion of code works perfectly by itself config = \[{:QuantityPer =\> “#{2+2}”}\] config.each { |xx| if xx\[:QuantityPer\].include? ‘#{’ then xxx = xx\[…

---

## [Error Loading File Beam.rb undefined method \`file\_loaded?' f](https://www.ruby-forum.com/t/error-loading-file-beam-rb-undefined-method-file-loaded-f/194358)

<div class="topic-metadata">

**Author:** [@datulravi](https://www.ruby-forum.com/u/datulravi)\
**Replies:** 2\
**Last updated:** [September 4, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/error-loading-file-beam-rb-undefined-method-file-loaded-f/194358 "2010-09-04T14:24:56Z")

</div>

Help please!

---

## [Constants lookup changes in 1.9.2?](https://www.ruby-forum.com/t/constants-lookup-changes-in-1-9-2/194405)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/constants-lookup-changes-in-1-9-2/194405 "2010-09-03T23:38:47Z")

</div>

Hi. I’ve had this code working in 1.9.1: module SomeModule module SayIt def self.included(x) puts “included” end end end class SomeAdapter def self.inherited(m) m.class\_eval do include SomeModule include Say…

---

## [Ary6\[1..2,0..-1\]](https://www.ruby-forum.com/t/ary6-1-2-0-1/194381)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [September 3, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/ary6-1-2-0-1/194381 "2010-09-03T17:42:38Z")

</div>

At the following: http://ruby.gfd-dennou.org/tutorial/gokuraku/index-e.html Under “Index”, I want to ask about the following: ary6 = NArray.sfloat(4,3).indgen!(1.02.0) # This line didn’t work ary6\[1…2,0…-1\] # What is…

---

## [GUI for commandline programs](https://www.ruby-forum.com/t/gui-for-commandline-programs/194370)

<div class="topic-metadata">

**Author:** [@Handy\_G](https://www.ruby-forum.com/u/Handy_G)\
**Replies:** 1\
**Last updated:** [September 3, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/gui-for-commandline-programs/194370 "2010-09-03T17:17:21Z")

</div>

I’m looking for a simple, easy to learn, low weight GUI for use in Ruby programs that mainly use the command line but where a bit of GUI might be in order. To give a clearer idea, let me show some examples: Going …

---

## [Mountain.rb in Boulder Oct6-9 early bird closing Monday](https://www.ruby-forum.com/t/mountain-rb-in-boulder-oct6-9-early-bird-closing-monday/194395)

<div class="topic-metadata">

**Author:** [@charley\_baker](https://www.ruby-forum.com/u/charley_baker)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/mountain-rb-in-boulder-oct6-9-early-bird-closing-monday/194395 "2010-09-03T17:08:55Z")

</div>

Hi all, Just a quick note to anyone who doesn’t know about this conf. I’m excited since it’s up the way from me in Boulder and has a great speaker line up including Jim W., Aaron P. and others on some really cool top…

---

## [1.9 require problem](https://www.ruby-forum.com/t/1-9-require-problem/194353)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [September 3, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/1-9-require-problem/194353 "2010-09-03T16:16:01Z")

</div>

As of this morning I am just starting to work with Ruby 1.9. I note that there seems to be some behaviour change between 1.8 and 1.9 with respect to require. Specifically, I have this construct. #!/usr/bin/env ruby r…

---

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

<div class="topic-metadata">

**Author:** [@tridib04](https://www.ruby-forum.com/u/tridib04)\
**Replies:** 3\
**Last updated:** [September 3, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/ruby-installation/194349 "2010-09-03T14:18:09Z")

</div>

Can anyone help me in how to make the Ruby source files to executable file. I have the source code of Ruby and running in an interface of Linux.But I am confused how to make the files in \*.exe format. Regards Tridib…

---

## [How to get Ruby Forum emails right in the mailbox](https://www.ruby-forum.com/t/how-to-get-ruby-forum-emails-right-in-the-mailbox/194380)

<div class="topic-metadata">

**Author:** [@ceekays](https://www.ruby-forum.com/u/ceekays)\
**Replies:** 1\
**Last updated:** [September 3, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/how-to-get-ruby-forum-emails-right-in-the-mailbox/194380 "2010-09-03T13:54:08Z")

</div>

This may sound silly, but I do not get emails from this forum in my Gmail mailbox. Every time I have to check via the forum website http://www.ruby-forum.com/ or Google group. I put my username, email adrress, and ful…

---

## [Fatal: unrecognized argument: --format=format:%h](https://www.ruby-forum.com/t/fatal-unrecognized-argument-format-format-h/194237)

<div class="topic-metadata">

**Author:** [@jahu](https://www.ruby-forum.com/u/jahu)\
**Replies:** 3\
**Last updated:** [September 3, 2010, 12:38pm UTC](https://www.ruby-forum.com/t/fatal-unrecognized-argument-format-format-h/194237 "2010-09-03T12:38:37Z")

</div>

Dear all, I just tried the most recent jruby snapshot from http://ci.jruby.org/snapshots/ This is what I see here on my Mac OS 10.6.4 machine: $ jruby -v jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-09-01 fatal…

---

## [How can spawning subprocesses affect buffering?](https://www.ruby-forum.com/t/how-can-spawning-subprocesses-affect-buffering/194279)

<div class="topic-metadata">

**Author:** [@Marcin\_L](https://www.ruby-forum.com/u/Marcin_L)\
**Replies:** 1\
**Last updated:** [September 3, 2010, 12:32pm UTC](https://www.ruby-forum.com/t/how-can-spawning-subprocesses-affect-buffering/194279 "2010-09-03T12:32:46Z")

</div>

Hi, I am writing a system, where there are a few small, slave ruby scripts doing something, spawned by master one. I encountered propably a bug, and I don’t know, how to solve it, so please give me some help… Please…

---

## [Case (variable) when type1 ... when type2 ... end](https://www.ruby-forum.com/t/case-variable-when-type1-when-type2-end/194092)

<div class="topic-metadata">

**Author:** [@eugen](https://www.ruby-forum.com/u/eugen)\
**Replies:** 6\
**Last updated:** [September 3, 2010, 9:10am UTC](https://www.ruby-forum.com/t/case-variable-when-type1-when-type2-end/194092 "2010-09-03T09:10:49Z")

</div>

Hi all, how can I write case statement to check of specific type the variable has? Something like: case var when :Fixnum puts “#{var} is Fixnum” when :String puts “#{var} is String” end I tried this also case …

---

## [RubyInline 3.8.6 Released](https://www.ruby-forum.com/t/rubyinline-3-8-6-released/194369)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 9:09am UTC](https://www.ruby-forum.com/t/rubyinline-3-8-6-released/194369 "2010-09-03T09:09:03Z")

</div>

RubyInline version 3.8.6 has been released! http://rubyforge.org/projects/rubyinline/ http://rubyinline.rubyforge.org/RubyInline/ http://www.zenspider.com/ZSS/Products/RubyInline/ removed\_email\_address@domain.invalid I…

---

## [Uninstall conflicting versions of ImageMagick?](https://www.ruby-forum.com/t/uninstall-conflicting-versions-of-imagemagick/194366)

<div class="topic-metadata">

**Author:** [@Mario\_TSL](https://www.ruby-forum.com/u/Mario_TSL)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 4:10am UTC](https://www.ruby-forum.com/t/uninstall-conflicting-versions-of-imagemagick/194366 "2010-09-03T04:10:30Z")

</div>

In irb when I enter “require ‘RMagick’” I get: RuntimeError: This installation of RMagick was configured with ImageMagick 6.5.7 but ImageMagick 6.5.5-10 is in use. from /usr/lib/ruby/1.8/i486-linux/RMagick2.so from /…

---

## [Different between cookie and session](https://www.ruby-forum.com/t/different-between-cookie-and-session/194365)

<div class="topic-metadata">

**Author:** [@gonnawon](https://www.ruby-forum.com/u/gonnawon)\
**Replies:** 0\
**Last updated:** [September 3, 2010, 3:49am UTC](https://www.ruby-forum.com/t/different-between-cookie-and-session/194365 "2010-09-03T03:49:02Z")

</div>

hi all, now,my project needs save variable, but i am not know about the function between cookie and session. is there anyone help me explain their difference. thank youï¼ regards, gonnawon

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

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