# Ruby

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

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

---

## [Wxruby: clearing and replacing contents of a frame (panel?)](https://www.ruby-forum.com/t/wxruby-clearing-and-replacing-contents-of-a-frame-panel/194035)

<div class="topic-metadata">

**Author:** [@callyworld](https://www.ruby-forum.com/u/callyworld)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/wxruby-clearing-and-replacing-contents-of-a-frame-panel/194035 "2010-08-28T18:36:18Z")

</div>

I was thinking about switching one of my projects interfaces over to wxruby. But before I do, I need to know: how does the clearing and replacing of frame (panel?) contents work in wxruby? Lets say you had a window di…

---

## [How to rewrite a curl request into a NET::HTTP one?](https://www.ruby-forum.com/t/how-to-rewrite-a-curl-request-into-a-net-http-one/194031)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [August 28, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/how-to-rewrite-a-curl-request-into-a-net-http-one/194031 "2010-08-28T18:30:35Z")

</div>

I have a curl request (to upload a file) which is running weel in the console $curl -H “X-TrackerToken: xxxxxxx” -X POST -F Filedata=@/Developpement/Projects/TESTS/pictures/Glen.gif http://www.pivotaltracker.com/serv…

---

## [New Ruby IDE discussion group formed](https://www.ruby-forum.com/t/new-ruby-ide-discussion-group-formed/194036)

<div class="topic-metadata">

**Author:** [@Ed\_Howland](https://www.ruby-forum.com/u/Ed_Howland)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 6:17pm UTC](https://www.ruby-forum.com/t/new-ruby-ide-discussion-group-formed/194036 "2010-08-28T18:17:28Z")

</div>

Hi all, To pump up the volume on discussions around IDEs that do Ruby and have a place to talk about creating a dream version, I’ve created a Google Group called Ruby IDE. removed\_email\_address@domain.invalid http:/…

---

## [Name that method!](https://www.ruby-forum.com/t/name-that-method/194003)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 8\
**Last updated:** [August 28, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/name-that-method/194003 "2010-08-28T17:10:44Z")

</div>

What would you call a method that did this: Foo::Bar::Baz.some\_method #=\> Foo::Bar

---

## [Parameter passing](https://www.ruby-forum.com/t/parameter-passing/194008)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 7\
**Last updated:** [August 28, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/parameter-passing/194008 "2010-08-28T12:28:26Z")

</div>

Is it possible, to pass local variables by refrerence to method? I would like to do something like that: def meth(dest) dest = 0 if some\_condition end … local\_var = 1 some\_condition evaluates to true meth(local\_va…

---

## [Help with photo album app](https://www.ruby-forum.com/t/help-with-photo-album-app/193990)

<div class="topic-metadata">

**Author:** [@kaspir](https://www.ruby-forum.com/u/kaspir)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 8:55am UTC](https://www.ruby-forum.com/t/help-with-photo-album-app/193990 "2010-08-28T08:55:34Z")

</div>

I’m developing a photo album app that has albums, with pictures displayed inside of the albums. When you click on the photo, it goes to the photo’s url. What I would like it to do, is go to “picture.html.erb” in “view…

---

## [How to detect used protocol (SOAP, JSON, XML etc.)](https://www.ruby-forum.com/t/how-to-detect-used-protocol-soap-json-xml-etc/183361)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 14\
**Last updated:** [August 28, 2010, 8:38am UTC](https://www.ruby-forum.com/t/how-to-detect-used-protocol-soap-json-xml-etc/183361 "2010-08-28T08:38:48Z")

</div>

Hi guys!. I am building an ESB (Enterprise Service Bus) for a Content Management System. The esb (as you probably know) should be able to handle multiple protocols (JSON, XML, SOAP). So it has a tcp socket and it ge…

---

## [\[Bug #3734\]\[Closed\] Float('0xf.fp') $B$,%(%i!\<$K$J$i$J$$(B](https://www.ruby-forum.com/t/bug-3734-closed-float-0xf-fp-b-i-k-j-i-j-b/194023)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 6:53am UTC](https://www.ruby-forum.com/t/bug-3734-closed-float-0xf-fp-b-i-k-j-i-j-b/194023 "2010-08-28T06:53:51Z")

</div>

e$B%A%1%C%He(B #3734 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B fixed in r29073. http://redmine.ruby-lang.org/issues/show/3734

---

## [How about Array#collect\_until](https://www.ruby-forum.com/t/how-about-array-collect-until/193965)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 13\
**Last updated:** [August 28, 2010, 5:58am UTC](https://www.ruby-forum.com/t/how-about-array-collect-until/193965 "2010-08-28T05:58:51Z")

</div>

I am wondering if anyone has implemented an Array#collect\_until method to break out of a collect loop after an end-point has been achieved during an Array#collect call. For instance, you have a long array of items and…

---

## [Love me](https://www.ruby-forum.com/t/love-me/194021)

<div class="topic-metadata">

**Author:** [@love\_me](https://www.ruby-forum.com/u/love_me)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 5:16am UTC](https://www.ruby-forum.com/t/love-me/194021 "2010-08-28T05:16:43Z")

</div>

1st step like me on facbook at this link http://www.facebook.com/pages/loveme/145529285481739 2nd step visit this link http://www.kqzyfj.com/click-3778203-10786395

---

## [Lazy array](https://www.ruby-forum.com/t/lazy-array/192555)

<div class="topic-metadata">

**Author:** [@rawroe](https://www.ruby-forum.com/u/rawroe)\
**Replies:** 7\
**Last updated:** [August 27, 2010, 11:35pm UTC](https://www.ruby-forum.com/t/lazy-array/192555 "2010-08-27T23:35:28Z")

</div>

How can I get a lazy array in Ruby? E.g., in Haskell, I can talk about \[1…\], which is an infinite list, lazily generated as needed. I can also do things like “iterate (+2) 0”, which applies whatever function I give it …

---

## [Trouble making .jar command failed with status (127)](https://www.ruby-forum.com/t/trouble-making-jar-command-failed-with-status-127/191183)

<div class="topic-metadata">

**Author:** [@mickey](https://www.ruby-forum.com/u/mickey)\
**Replies:** 7\
**Last updated:** [August 27, 2010, 11:25pm UTC](https://www.ruby-forum.com/t/trouble-making-jar-command-failed-with-status-127/191183 "2010-08-27T23:25:15Z")

</div>

I know this is probably a dumb mistake, but can someone help me? Any time I try to use as “rake rawr:jar” i get the error javac -target 1.6 -cp lib/java/jruby-complete.jar;lib/java/monkeybars-1.04.jar;src;lib/ruby -…

---

## [Fix for issue #4946](https://www.ruby-forum.com/t/fix-for-issue-4946/194011)

<div class="topic-metadata">

**Author:** [@valdar](https://www.ruby-forum.com/u/valdar)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 11:00pm UTC](https://www.ruby-forum.com/t/fix-for-issue-4946/194011 "2010-08-27T23:00:56Z")

</div>

Here’s my fix for issue #4946 http://ironruby.codeplex.com/workitem/4946: da1abbdba748f0ebdb52http://github.com/cstrahan/ironruby/commit/da1abbdba748f0ebdb5282f8557549bf260ffd61 However, I’m curious if that’s just sid…

---

## [Default ruby lib path "$:" problem](https://www.ruby-forum.com/t/default-ruby-lib-path-problem/194010)

<div class="topic-metadata">

**Author:** [@jandr](https://www.ruby-forum.com/u/jandr)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 10:46pm UTC](https://www.ruby-forum.com/t/default-ruby-lib-path-problem/194010 "2010-08-27T22:46:20Z")

</div>

I am trying to install and run ruby from rpm but I am missing ruby library paths I install irb and try to run it and I get /usr/bin/irb:10:in \`require’: no such file to load – irb (LoadError) from /usr/bin/irb:10 ba…

---

## [Avoiding eval](https://www.ruby-forum.com/t/avoiding-eval/194000)

<div class="topic-metadata">

**Author:** [@rawroe](https://www.ruby-forum.com/u/rawroe)\
**Replies:** 5\
**Last updated:** [August 27, 2010, 6:27pm UTC](https://www.ruby-forum.com/t/avoiding-eval/194000 "2010-08-27T18:27:31Z")

</div>

Hey all, If I have a string like “Math”, I know I can use const\_get to turn it into an instance of Class. Awesome. But what if I have something like “Math::PI”. Am I stuck using eval to resolve that?

---

## [Error handling with exceptions in multi-thread download](https://www.ruby-forum.com/t/error-handling-with-exceptions-in-multi-thread-download/193974)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 6\
**Last updated:** [August 27, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/error-handling-with-exceptions-in-multi-thread-download/193974 "2010-08-27T17:41:14Z")

</div>

there are three program fragments,all of them have same problems, all of them can run ,but when i downloaded 30% data,an error ocurr undefined local variable or method \`web’ for Data:Class (NameError) cthreaddown…

---

## [Shoes as Gems or other such](https://www.ruby-forum.com/t/shoes-as-gems-or-other-such/193984)

<div class="topic-metadata">

**Author:** [@Handy\_G](https://www.ruby-forum.com/u/Handy_G)\
**Replies:** 3\
**Last updated:** [August 27, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/shoes-as-gems-or-other-such/193984 "2010-08-27T17:19:34Z")

</div>

I was just checking out shoes. While I like it, I am a bit concerned. The standard way of using shoes is to download shoes and use ruby from shoes, but what I would like to do is download shoes as a gem and use it fro…

---

## [Create dinamically hashes from string](https://www.ruby-forum.com/t/create-dinamically-hashes-from-string/193996)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/create-dinamically-hashes-from-string/193996 "2010-08-27T17:16:07Z")

</div>

hi, i have a cookie with various data, i want to convert it in an hash. the data contain in the cookie are grouped by “;” and every group have a summary (which i want to convert to a name variable hash, it’s separated …

---

## [\[Feature #3675\] String#prepend, String#\>\>](https://www.ruby-forum.com/t/feature-3675-string-prepend-string/193040)

<div class="topic-metadata">

**Author:** [@Sora\_H](https://www.ruby-forum.com/u/Sora_H)\
**Replies:** 14\
**Last updated:** [August 27, 2010, 2:53pm UTC](https://www.ruby-forum.com/t/feature-3675-string-prepend-string/193040 "2010-08-27T14:53:45Z")

</div>

Feature #3675: String#prepend, String#\>\> http://redmine.ruby-lang.org/issues/show/3675 e$B5/I\<\<Te(B: Sora H. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal sorahe$B$G$9e(B. e$BDL\>oe(B, Stringe$B$G$NJ8;zNs$r\<jA0$KGK2uE…

---

## [Rubygems on Ruby 1.9.2 and yaml](https://www.ruby-forum.com/t/rubygems-on-ruby-1-9-2-and-yaml/193981)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 2:46pm UTC](https://www.ruby-forum.com/t/rubygems-on-ruby-1-9-2-and-yaml/193981 "2010-08-27T14:46:44Z")

</div>

e$B$3$s$P$s$O!#e(B Ruby 1.9.2e$B$G!"e(Bgeme$B%3%^%s%I$O$I$N;~E@$Ge(Byamle$B$r%m!\<%I$9$k$N$G$7$g$&$+e(B? e$B6qBNE\*$K$OE,Ev$Je(Bgeme$B%U%!%$%k$r;}$C$F$-$F!"e(B % gem unpack rubyzip-0.9.4.gem Unpacked gem: ‘/var/tmp/ru…

---

## [Node hierarchies, and the inspection thereof](https://www.ruby-forum.com/t/node-hierarchies-and-the-inspection-thereof/193935)

<div class="topic-metadata">

**Author:** [@xazoola](https://www.ruby-forum.com/u/xazoola)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/node-hierarchies-and-the-inspection-thereof/193935 "2010-08-27T14:11:38Z")

</div>

Sorry if this belongs in Ruby Core, though I don’t really think it does since it’s more about writing gems than it is Ruby itself. I’ve been looking (on and off) for the past several months for a way to accomplish thi…

---

## [Getting fox unit test runner to work](https://www.ruby-forum.com/t/getting-fox-unit-test-runner-to-work/193932)

<div class="topic-metadata">

**Author:** [@fourchette](https://www.ruby-forum.com/u/fourchette)\
**Replies:** 3\
**Last updated:** [August 27, 2010, 10:54am UTC](https://www.ruby-forum.com/t/getting-fox-unit-test-runner-to-work/193932 "2010-08-27T10:54:55Z")

</div>

hi there, sorry if the question seems dump but… i have some unit tests that just work great $ test/ILV\_unittest.rb Loaded suite test/ILV\_unittest Started … Finished in 0.060136 seconds. 24 tests, 141 assertions, …

---

## [Initialise](https://www.ruby-forum.com/t/initialise/193912)

<div class="topic-metadata">

**Author:** [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Replies:** 6\
**Last updated:** [August 27, 2010, 10:15am UTC](https://www.ruby-forum.com/t/initialise/193912 "2010-08-27T10:15:41Z")

</div>

Hi all, Being English and able to spell proper like, innit, I find I’m creating a lot of stupid errors by writing def initialise a lot. I had the bright idea of making an alias to stop this transatlantic turmoil, but …

---

## [May I know that why the zz\[0\]=="s" return false, please?](https://www.ruby-forum.com/t/may-i-know-that-why-the-zz-0-s-return-false-please/193940)

<div class="topic-metadata">

**Author:** [@oscarlok](https://www.ruby-forum.com/u/oscarlok)\
**Replies:** 4\
**Last updated:** [August 27, 2010, 10:05am UTC](https://www.ruby-forum.com/t/may-i-know-that-why-the-zz-0-s-return-false-please/193940 "2010-08-27T10:05:30Z")

</div>

Dear Sir, May I know that why the zz\[0\]==“s” return false, please? aa = ‘“s”;“d”;“f”’ zz = aa.split(";") zz\[0\]==“s” false Thanks Regards Oscar

---

## [File Contents into Hash Table?](https://www.ruby-forum.com/t/file-contents-into-hash-table/193963)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 6\
**Last updated:** [August 27, 2010, 9:56am UTC](https://www.ruby-forum.com/t/file-contents-into-hash-table/193963 "2010-08-27T09:56:12Z")

</div>

Hello, I’m trying put some file contents into a hash table. The file contains something like these lines, of the format: “…”=\>65, “…”=\>66, “\[”=\>67, “\]”=\>68, “\[\]=”=\>69, “\<\<”=\>70, “\>\>”=\>71, “-=”=\>72, “.”=\>73, “…

---

## [\[Feature #3627\] catch$B$N%V%m%C%/$r:F\<B9T$9$k%a%=%C%I(B](https://www.ruby-forum.com/t/feature-3627-catch-b-n-v-m-c-r-f-b9t-9-k-a-c-i-b/192376)

<div class="topic-metadata">

**Author:** [@Makoto\_K](https://www.ruby-forum.com/u/Makoto_K)\
**Replies:** 5\
**Last updated:** [August 27, 2010, 6:52am UTC](https://www.ruby-forum.com/t/feature-3627-catch-b-n-v-m-c-r-f-b9t-9-k-a-c-i-b/192376 "2010-08-27T06:52:34Z")

</div>

Feature #3627: catche$B$N%V%m%C%/$r:F\<B9T$9$k%a%=%C%Ie(B http://redmine.ruby-lang.org/issues/show/3627 e$B5/I\<\<Te(B: Makoto K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: core, Target version: 2.0 catc…

---

## [How could I accelerate the performance for jruby on rails in dev mode?](https://www.ruby-forum.com/t/how-could-i-accelerate-the-performance-for-jruby-on-rails-in-dev-mode/193887)

<div class="topic-metadata">

**Author:** [@xuwenhao](https://www.ruby-forum.com/u/xuwenhao)\
**Replies:** 3\
**Last updated:** [August 27, 2010, 6:15am UTC](https://www.ruby-forum.com/t/how-could-i-accelerate-the-performance-for-jruby-on-rails-in-dev-mode/193887 "2010-08-27T06:15:07Z")

</div>

Dear all, I am currently using jruby on rails for a e-commerce project. When I deploy the project with warbler, put it in a tomcat, the performance is pretty good. But if we launch it with dev mode, using jruby scri…

---

## [\[Feature:trunk\] IO::NULL; null device path name](https://www.ruby-forum.com/t/feature-trunk-io-null-null-device-path-name/191035)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 3\
**Last updated:** [August 27, 2010, 5:27am UTC](https://www.ruby-forum.com/t/feature-trunk-io-null-null-device-path-name/191035 "2010-08-27T05:27:42Z")

</div>

e$B$J$+$@$G$9!#e(B IO::NULL e$B$rDI2C$9$k$N$O$I$&$G$7$g$&$+!#e(B diff --git a/io.c b/io.c index 05b2d45…3793ae5 100644 — a/io.c +++ b/io.c @@ -9623,6 +9623,18 @@ rb\_get\_argv(void) return ARGF.argv; } +static con…

---

## [Ruby 1.9.2 float precision](https://www.ruby-forum.com/t/ruby-1-9-2-float-precision/191495)

<div class="topic-metadata">

**Author:** [@diabolic](https://www.ruby-forum.com/u/diabolic)\
**Replies:** 7\
**Last updated:** [August 27, 2010, 12:32am UTC](https://www.ruby-forum.com/t/ruby-1-9-2-float-precision/191495 "2010-08-27T00:32:53Z")

</div>

Hello, The Liquid templating engine has the following tests passing till ruby 1.9.2 rc1: assert\_template\_result “4.66666666666667”, “{{ 14 | divided\_by:‘3.0’ }}” #equals to 14/3.0 in irb assert\_template\_result “6.3”…

---

## [Rcairo 1.8.3](https://www.ruby-forum.com/t/rcairo-1-8-3/193918)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 12:01am UTC](https://www.ruby-forum.com/t/rcairo-1-8-3/193918 "2010-08-27T00:01:06Z")

</div>

Hi, I released rcairo(\*1) 1.8.3 that supports Ruby 1.9.2: http://raa.ruby-lang.org/project/rcairo/ (\*1) A library to use cairo(\*2) from Ruby. (\*2) A 2D graphics library that is used by GTK+/Firefox/WebKit/… as rende…

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

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