# Ruby

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

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

---

## [\[Ruby 1.9-Bug#3872\]\[Assigned\] is test/-ext-/test\_bug-3652.rb correct?](https://www.ruby-forum.com/t/ruby-1-9-bug-3872-assigned-is-test-ext-test-bug-3652-rb-correct/195516)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 8:40am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3872-assigned-is-test-ext-test-bug-3652-rb-correct/195516 "2010-09-24T08:40:14Z")

</div>

Bug #3872: is test/-ext-/test\_bug-3652.rb correct? http://redmine.ruby-lang.org/issues/show/3872 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Nobuyoshi N., e$B%+%F%4%je(…

---

## [OpenSSL support for IronRuby](https://www.ruby-forum.com/t/openssl-support-for-ironruby/195487)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 2\
**Last updated:** [September 24, 2010, 7:41am UTC](https://www.ruby-forum.com/t/openssl-support-for-ironruby/195487 "2010-09-24T07:41:43Z")

</div>

I don’t know if openssl is still a problem for IronRuby on mono But the JRuby guys are using bouncy castle to get that support. As it so happens there is also a .Net provider for bouncy castle. http://www.bouncycastle…

---

## [Youtube File upload issue](https://www.ruby-forum.com/t/youtube-file-upload-issue/195467)

<div class="topic-metadata">

**Author:** [@itkin](https://www.ruby-forum.com/u/itkin)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 11:54pm UTC](https://www.ruby-forum.com/t/youtube-file-upload-issue/195467 "2010-09-23T23:54:53Z")

</div>

Hello, I’m triying to upload video to google api via direct upload (http://code.google.com/intl/fr/apis/youtube/2.0/developers\_guide\_protocol.html#Direct\_uploading). I’m using an rails active resource class and would …

---

## [Ruby windows environment question](https://www.ruby-forum.com/t/ruby-windows-environment-question/195476)

<div class="topic-metadata">

**Author:** [@DaShiellS\_Jude\_TSS](https://www.ruby-forum.com/u/DaShiellS_Jude_TSS)\
**Replies:** 5\
**Last updated:** [September 23, 2010, 11:37pm UTC](https://www.ruby-forum.com/t/ruby-windows-environment-question/195476 "2010-09-23T23:37:07Z")

</div>

After having installed ruby on a windows system, what environment variable do I need to load with my path to my documents directory so that I don’t need to key the whole path in each time I send a script to ruby for w…

---

## [Hello](https://www.ruby-forum.com/t/hello/195502)

<div class="topic-metadata">

**Author:** [@Tyler\_J](https://www.ruby-forum.com/u/Tyler_J)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 11:35pm UTC](https://www.ruby-forum.com/t/hello/195502 "2010-09-23T23:35:57Z")

</div>

Dear Friends: Some time ago. A friend Had birthday. ordered my friend a birthday present: New Apple iPhone 4G HD 16GB Black Unlocked 1Year Warranty I ordered products in China website. My friend has been received. …

---

## [Minitest 1.7.2 Released](https://www.ruby-forum.com/t/minitest-1-7-2-released/195500)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/minitest-1-7-2-released/195500 "2010-09-23T23:26:35Z")

</div>

minitest version 1.7.2 has been released! http://rubyforge.org/projects/bfts minitest/unit is a small and fast replacement for ruby’s huge and slow test/unit. This is meant to be clean and easy to use both as a regul…

---

## [Unexpected behaviour of defined? under 1.8.x](https://www.ruby-forum.com/t/unexpected-behaviour-of-defined-under-1-8-x/195413)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 3\
**Last updated:** [September 23, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/unexpected-behaviour-of-defined-under-1-8-x/195413 "2010-09-23T22:35:39Z")

</div>

Hello! I’ve just landed upon a very interesting landmine by using defined? Consider the following code: a.rb module A autoload :B, “b.rb” end defined?(A::b::C) p A::B p A::B.new.one p A::B.new.two b.rb module A …

---

## [Bug reporting against Ruby 1.9.1](https://www.ruby-forum.com/t/bug-reporting-against-ruby-1-9-1/195479)

<div class="topic-metadata">

**Author:** [@LoboS\_Elvita](https://www.ruby-forum.com/u/LoboS_Elvita)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 6:53pm UTC](https://www.ruby-forum.com/t/bug-reporting-against-ruby-1-9-1/195479 "2010-09-23T18:53:12Z")

</div>

Hi, I am trying to report a bug against Ruby 1.9.1. I created an account at However when I click on “New Issue” I get the following: No tracker is associated to this project. Please check the Project settings. I do…

---

## [Confused about 1.9.1 and ruby-debug19](https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415)

<div class="topic-metadata">

**Author:** [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Replies:** 3\
**Last updated:** [September 23, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415 "2010-09-23T18:49:27Z")

</div>

Hi, I’m using 1.9.1p378 via rvm on Ubuntu 10.04 64bit. In searching for a way to debug my application I tried to install “ruby-debug19” but it failed with: ruby\_debug.c: In function â€˜ruby\_method\_ptrâ€™: ruby\_debug…

---

## [Bluecloth 2.0.9](https://www.ruby-forum.com/t/bluecloth-2-0-9/195477)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/bluecloth-2-0-9/195477 "2010-09-23T16:33:48Z")

</div>

Version 2.0.9 of BlueCloth has been released. BlueCloth is a Ruby implementation of \[Markdown\]\[1\], a text-to-HTML conversion tool for web writers. To quote from the project page: Markdown allows you to write using an …

---

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

<div class="topic-metadata">

**Author:** [@woow](https://www.ruby-forum.com/u/woow)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/ruby-telnet/195398 "2010-09-23T15:50:28Z")

</div>

hi All, I am trying to do below and I am stuck I would appreciate your help. Telnet run script 1 (this should be run without time out) Telnet and run script 2. Telnet and stop script 1 upon successful completion of st…

---

## [Developing for Ruby on Windows?](https://www.ruby-forum.com/t/developing-for-ruby-on-windows/195124)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 10\
**Last updated:** [September 23, 2010, 2:44pm UTC](https://www.ruby-forum.com/t/developing-for-ruby-on-windows/195124 "2010-09-23T14:44:53Z")

</div>

I’ve heard a lot of criticism about developing for Ruby on Windows, but am yet to see anyone elaborate on this. Can someone enlighten me on why developing for Ruby on Windows is considered to be painful? Cheers

---

## [Request to install a software](https://www.ruby-forum.com/t/request-to-install-a-software/195453)

<div class="topic-metadata">

**Author:** [@ksvijaynkl](https://www.ruby-forum.com/u/ksvijaynkl)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 12:40pm UTC](https://www.ruby-forum.com/t/request-to-install-a-software/195453 "2010-09-23T12:40:33Z")

</div>

Hi, I want to install a software through a authenticated website link. For example installing of Yahoo messanger from yahoo link by assuming yahoo link is a authenticated one. Could someone helps me how can I do this. …

---

## [Using ERB inline templates w/ Sinatra on 1.9.2-p0 broken?](https://www.ruby-forum.com/t/using-erb-inline-templates-w-sinatra-on-1-9-2-p0-broken/195418)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 9:11am UTC](https://www.ruby-forum.com/t/using-erb-inline-templates-w-sinatra-on-1-9-2-p0-broken/195418 "2010-09-23T09:11:42Z")

</div>

This works under 1.8.7: get “/” do erb :text end END @@text If you can read this then we're up & running But running it under 1.9.2-p0 results in this error: No such file or directory /home/ubuntu/load/\<inter…

---

## [Odd behavior when \<\< hash](https://www.ruby-forum.com/t/odd-behavior-when-hash/195410)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 4\
**Last updated:** [September 23, 2010, 8:28am UTC](https://www.ruby-forum.com/t/odd-behavior-when-hash/195410 "2010-09-23T08:28:58Z")

</div>

Hi Folks - Using Ruby 1.8.7, I found this oddity: require ‘rubygems’ require ‘json’ setup = \[\] ids = \[“12345”, “54321”, “21345”, “548752”, “3215”, “50203”\] doIt = { “action” =\> “do something”, “result” =\> “true” …

---

## [How to get Mycompute.sum(\[1,2,3,4\]).mean=2.5?](https://www.ruby-forum.com/t/how-to-get-mycompute-sum-1-2-3-4-mean-2-5/195223)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 7\
**Last updated:** [September 23, 2010, 7:39am UTC](https://www.ruby-forum.com/t/how-to-get-mycompute-sum-1-2-3-4-mean-2-5/195223 "2010-09-23T07:39:02Z")

</div>

class Mycompute def self.sum(a) a.inject(0){|s,i|s+i} end def self.mean(a) a.inject(0){|s,i|s+i}/(a.size.to\_f) end end Mycompute.sum(\[1,2,3,4\]) =\> 10 Mycompute.mean(\[1,2,3,4\]) =\> 2.5 how can i get Mycom…

---

## [Dividing a number into individual digits](https://www.ruby-forum.com/t/dividing-a-number-into-individual-digits/195304)

<div class="topic-metadata">

**Author:** [@tuatha](https://www.ruby-forum.com/u/tuatha)\
**Replies:** 4\
**Last updated:** [September 23, 2010, 6:15am UTC](https://www.ruby-forum.com/t/dividing-a-number-into-individual-digits/195304 "2010-09-23T06:15:34Z")

</div>

Here’s a simple question: What’s an effecient way to get the digits of a number. For instance, if I have the number 37, how can I get “3” and “7”?

---

## [Why can not set value to instance variable of Class?](https://www.ruby-forum.com/t/why-can-not-set-value-to-instance-variable-of-class/195424)

<div class="topic-metadata">

**Author:** [@imelody](https://www.ruby-forum.com/u/imelody)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 5:42am UTC](https://www.ruby-forum.com/t/why-can-not-set-value-to-instance-variable-of-class/195424 "2010-09-23T05:42:13Z")

</div>

class ParaList attr\_reader:classname attr\_writer:paralist def initialize(name) @classname = name @paralist = Hash.new end end $cellparalist = ParaList.new(“AAA”) def MmlParse.addpara(paraclass,mo,mmlparalist) a…

---

## [Comparing the first half of a string to the second half](https://www.ruby-forum.com/t/comparing-the-first-half-of-a-string-to-the-second-half/195339)

<div class="topic-metadata">

**Author:** [@joe\_chesak](https://www.ruby-forum.com/u/joe_chesak)\
**Replies:** 7\
**Last updated:** [September 23, 2010, 5:40am UTC](https://www.ruby-forum.com/t/comparing-the-first-half-of-a-string-to-the-second-half/195339 "2010-09-23T05:40:27Z")

</div>

I want to be able to test a string, to see if the second half of the string is a duplicate of the first part of the string, and if so I just want the first half (or the second for that matter). I am using ruby-1.9.…

---

## [Screencasts with Ruby Warrior (learning Ruby program by Ryan Bates)?](https://www.ruby-forum.com/t/screencasts-with-ruby-warrior-learning-ruby-program-by-ryan-bates/195421)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 4:00am UTC](https://www.ruby-forum.com/t/screencasts-with-ruby-warrior-learning-ruby-program-by-ryan-bates/195421 "2010-09-23T04:00:58Z")

</div>

I’m just getting started with Ruby and found the game Ruby Warrior by Ryan B. on Github and downloaded it to learn Ruby. Am just wondering if there are any screencasts available for Ruby Warrior? Think it would be hel…

---

## [Glassfish deployment - question about runtimes](https://www.ruby-forum.com/t/glassfish-deployment-question-about-runtimes/195416)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 12:33am UTC](https://www.ruby-forum.com/t/glassfish-deployment-question-about-runtimes/195416 "2010-09-23T00:33:15Z")

</div>

My Jruby app is deployed on glassfish which calls external java routines (matlab). Simultaneous requests seem to be blocked and the requests are queued. I had expected glassfish to create a new runtime for each reque…

---

## [Repackaging a compiled gem as a binary](https://www.ruby-forum.com/t/repackaging-a-compiled-gem-as-a-binary/195405)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 2\
**Last updated:** [September 22, 2010, 10:14pm UTC](https://www.ruby-forum.com/t/repackaging-a-compiled-gem-as-a-binary/195405 "2010-09-22T22:14:29Z")

</div>

I’ve installed the qtbindings gem in an ARM emulator environment (scratchbox). I’d now like to repackage the compiled code as a “binary” gem that I can just install in my N900 without having to compile the C extension…

---

## [Problems Deploying with RubyGems on JBOSS; works on Tomcat](https://www.ruby-forum.com/t/problems-deploying-with-rubygems-on-jboss-works-on-tomcat/194812)

<div class="topic-metadata">

**Author:** [@jjfrank](https://www.ruby-forum.com/u/jjfrank)\
**Replies:** 2\
**Last updated:** [September 22, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/problems-deploying-with-rubygems-on-jboss-works-on-tomcat/194812 "2010-09-22T21:22:52Z")

</div>

I have a WAR file that uses jruby-complete.1.5.2.jar to provide JRuby as a ScriptEngine. My JRuby script relies on some Ruby gems that I packaged in a jar file. This works fine when I run the WAR file under Tomcat, but …

---

## [Cannot retrieve cause from RaiseException](https://www.ruby-forum.com/t/cannot-retrieve-cause-from-raiseexception/195402)

<div class="topic-metadata">

**Author:** [@baq](https://www.ruby-forum.com/u/baq)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/cannot-retrieve-cause-from-raiseexception/195402 "2010-09-22T18:30:44Z")

</div>

Hi, I have some JRuby code that is calling a Java class which is throwing a subclass of RuntimeException. This exception is getting wrapped by JRuby into a RaiseException which should be wrapping my runtime exceptio…

---

## [Thanks for filling in the Great Ruby GUI Round-up](https://www.ruby-forum.com/t/thanks-for-filling-in-the-great-ruby-gui-round-up/195400)

<div class="topic-metadata">

**Author:** [@Ed\_Howland](https://www.ruby-forum.com/u/Ed_Howland)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 6:17pm UTC](https://www.ruby-forum.com/t/thanks-for-filling-in-the-great-ruby-gui-round-up/195400 "2010-09-22T18:17:22Z")

</div>

Thanks to all those who filled in the various holes in the feature matrix. Community participation is great! If anyone knows of other noteworthy projects, feel free to update the chart. \[1\] The Great Ruby GUI Toolkit…

---

## [Temporarily override instance variable in a block](https://www.ruby-forum.com/t/temporarily-override-instance-variable-in-a-block/195328)

<div class="topic-metadata">

**Author:** [@jdv](https://www.ruby-forum.com/u/jdv)\
**Replies:** 2\
**Last updated:** [September 22, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/temporarily-override-instance-variable-in-a-block/195328 "2010-09-22T17:41:39Z")

</div>

Hi, I strived to override instance variable on a per-block basis, but I’m not satisfied with my results. Here’s a snippet: The goal is: execute a block but have it use a different value for a previously defined inst…

---

## [Can't load gem](https://www.ruby-forum.com/t/cant-load-gem/195379)

<div class="topic-metadata">

**Author:** [@landge](https://www.ruby-forum.com/u/landge)\
**Replies:** 5\
**Last updated:** [September 22, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/cant-load-gem/195379 "2010-09-22T15:14:02Z")

</div>

Hi! I’ve run into some trouble while updating my ruby-version on ubuntu. I installed ruby1.9.1 linked /usr/bin/ruby to ruby1.9.1 installed rubygems1.3.7 with ruby1.9.1. My gem env output is this: RubyGems Environmen…

---

## [Embedding Ruby for scripting](https://www.ruby-forum.com/t/embedding-ruby-for-scripting/195338)

<div class="topic-metadata">

**Author:** [@Thorsten\_H](https://www.ruby-forum.com/u/Thorsten_H)\
**Replies:** 3\
**Last updated:** [September 22, 2010, 2:46pm UTC](https://www.ruby-forum.com/t/embedding-ruby-for-scripting/195338 "2010-09-22T14:46:42Z")

</div>

Hello, I want to use ruby as an embedded scripting language for a C++ game project. I know some people have done that (sketchup from google at least). I know how to extend ruby using either Swig, FFI, Rice or classic…

---

## [Stop and display traceback when thread throws an exception](https://www.ruby-forum.com/t/stop-and-display-traceback-when-thread-throws-an-exception/195356)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 3\
**Last updated:** [September 22, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/stop-and-display-traceback-when-thread-throws-an-exception/195356 "2010-09-22T14:43:37Z")

</div>

Is there a way to stop all threads and display traceback when any thread (especially a thread that is not the main thread) throws an exception?

---

## [\[Ruby 1.9-Bug#3856\]\[Closed\] test\_capture\_io (test/minitest/test\_mini\_test.rb:837)$B$,DL$i$J$$(B](https://www.ruby-forum.com/t/ruby-1-9-bug-3856-closed-test-capture-io-test-minitest-test-mini-test-rb-837-b-dl-i-j-b/195376)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 11:19am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3856-closed-test-capture-io-test-minitest-test-mini-test-rb-837-b-dl-i-j-b/195376 "2010-09-22T11:19:51Z")

</div>

e$B%A%1%C%He(B #3856 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B #3858 e$B$K9T$C$?$h$&$J$N$G$3$A$i$Oe(Bclosee$B!#e(B http://redmine.ruby-lang.org/issues/show/3856

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

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