# Ruby

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

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

---

## [Ruby-opengl and key presses?](https://www.ruby-forum.com/t/ruby-opengl-and-key-presses/169527)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/ruby-opengl-and-key-presses/169527 "2009-06-04T21:16:10Z")

</div>

Hey, how would I go about detecting arrow key presses? It doesn’t even look like my ‘glutKeyboardFunc’ is being called on arrow-key presses, but it works with space and esc.

---

## [Private method calls...why can't you use self.priv\_method syntax?](https://www.ruby-forum.com/t/private-method-calls-why-cant-you-use-self-priv-method-syntax/169478)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/private-method-calls-why-cant-you-use-self-priv-method-syntax/169478 "2009-06-04T19:16:16Z")

</div>

Why is it that when you call a private method, you cannot use self.the\_priv\_method? Below is an example that works if you take out self before the method, but fails with it in. It is odd because using self should jus…

---

## [Sharing gems with different JRuby versions?](https://www.ruby-forum.com/t/sharing-gems-with-different-jruby-versions/169477)

<div class="topic-metadata">

**Author:** [@Miika\_LeppSSS\_nen](https://www.ruby-forum.com/u/Miika_LeppSSS_nen)\
**Replies:** 4\
**Last updated:** [June 4, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/sharing-gems-with-different-jruby-versions/169477 "2009-06-04T19:12:09Z")

</div>

Hello What is a good/recommended way of sharing gems between different JRuby versions in OS X/Linux? I’d like to have setup where I can easily switch between versions, because there are new releases so often and it w…

---

## [Pythonic indentation (or: beating a dead horse)](https://www.ruby-forum.com/t/pythonic-indentation-or-beating-a-dead-horse/168360)

<div class="topic-metadata">

**Author:** [@J\_Haas](https://www.ruby-forum.com/u/J_Haas)\
**Replies:** 233\
**Last updated:** [June 4, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/pythonic-indentation-or-beating-a-dead-horse/168360 "2009-06-04T18:43:57Z")

</div>

Greetings, folks. First time poster, so if I breach any etiquette I sincerely apologize. I’m a bit of a Ruby N. who’s been bouncing around between Python and Ruby, not entirely satisfied with either and wishing both…

---

## [ANN: Sequel 3.1.0 Released](https://www.ruby-forum.com/t/ann-sequel-3-1-0-released/169517)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-1-0-released/169517 "2009-06-04T18:39:59Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but…

---

## [Code Review: ProcToS](https://www.ruby-forum.com/t/code-review-proctos/169514)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/code-review-proctos/169514 "2009-06-04T18:38:40Z")

</div>

tfpt review “/shelveset:ProcToS;REDMOND\\tomat” Comment : Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1509&ProjectName=ironruby: Proc.to\_s should include line number where the block was declared …

---

## [Hemorrhoids Treatments & What I Recommend](https://www.ruby-forum.com/t/hemorrhoids-treatments-what-i-recommend/169505)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/hemorrhoids-treatments-what-i-recommend/169505 "2009-06-04T18:09:12Z")

</div>

If you’ve tried many types of hemorrhoid solutions then you probably understand the differences of how each is used. In this article, I’ll go over what each of them do for the body, how they intend to treat hemorrhoid…

---

## [Upload file via browser](https://www.ruby-forum.com/t/upload-file-via-browser/169504)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/upload-file-via-browser/169504 "2009-06-04T17:31:50Z")

</div>

I want to write a program to let people upload files to my computer via a browser (www.mydomain.tld/upload) - what do I need in order to write this code? Do I need to use RoR (I think RoR would be an overkill in this …

---

## [Why can't I write variables to a file?](https://www.ruby-forum.com/t/why-cant-i-write-variables-to-a-file/169500)

<div class="topic-metadata">

**Author:** [@graham](https://www.ruby-forum.com/u/graham)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/why-cant-i-write-variables-to-a-file/169500 "2009-06-04T17:21:06Z")

</div>

Help please! I’m a Ruby newbie and can’t get the variables in the following script to write to a file (is it something to do with defining the variables?). create variables class Person attr\_accessor :name, :age en…

---

## [Rubyscript2exe problem](https://www.ruby-forum.com/t/rubyscript2exe-problem/154715)

<div class="topic-metadata">

**Author:** [@mewshew](https://www.ruby-forum.com/u/mewshew)\
**Replies:** 10\
**Last updated:** [June 4, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem/154715 "2009-06-04T16:41:25Z")

</div>

Hi all, This is my first post so forgive me if step on any forum conventions. I’m not a programmer in any real sense - I just like playing around. However I’ve managed to build an app that helps me do my work. Other …

---

## [Webrick-webdav gem: error in number of arguments to get\_handler](https://www.ruby-forum.com/t/webrick-webdav-gem-error-in-number-of-arguments-to-get-handler/169497)

<div class="topic-metadata">

**Author:** [@Matt\_Falkenhagen](https://www.ruby-forum.com/u/Matt_Falkenhagen)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 2:11pm UTC](https://www.ruby-forum.com/t/webrick-webdav-gem-error-in-number-of-arguments-to-get-handler/169497 "2009-06-04T14:11:33Z")

</div>

I am getting an error when I try to use a fresh install of the webrick- webdav gem on ruby 1.8.7. Specifically, if I run the following script to start a WEBrick server and then send a request for any file (not directo…

---

## [Problems with java ByteArrayOutputStream](https://www.ruby-forum.com/t/problems-with-java-bytearrayoutputstream/169492)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 0\
**Last updated:** [June 4, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/problems-with-java-bytearrayoutputstream/169492 "2009-06-04T13:19:53Z")

</div>

Hi to everybody, I’ve written a bridge between jruby and jasperreport through a java object that has a method, printReport, that given the name of the jasperreport template and the map of the input parameters (if they…

---

## [Readystate\_complete = 	4](https://www.ruby-forum.com/t/readystate-complete-4/169486)

<div class="topic-metadata">

**Author:** [@beginner](https://www.ruby-forum.com/u/beginner)\
**Replies:** 3\
**Last updated:** [June 4, 2009, 12:49pm UTC](https://www.ruby-forum.com/t/readystate-complete-4/169486 "2009-06-04T12:49:17Z")

</div>

I am trying to use this but not sure how to implement it. I just want to check after x seconds if page is loading so was trying something like: sleep (10) pageCheck = READYSTATE\_COMPLETE = 4 if pageCheck = true put…

---

## [\[ANN\] RubyKaigi2009: Commiter Invitation](https://www.ruby-forum.com/t/ann-rubykaigi2009-commiter-invitation/168681)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 10:52am UTC](https://www.ruby-forum.com/t/ann-rubykaigi2009-commiter-invitation/168681 "2009-06-04T10:52:18Z")

</div>

e$B!!e(BRubye$B2q5De(B2009e$B\<B9T0Q0w$N$5$5$@$G$9!%e(B e$B!!e(BRubye$B2q5De(B2009 e$B$K!$:#G/$b%3%%C%?$4\>7BT$r$7$?$$$H;W$$$^$9!%%3%%C%?$4\>7e(B e$BBT$NFCE5$O!$\<!$Ne(B2e$B$D$G$9!%e(B Rubye$B2q5De(B2009 e$B%A%1%C%HL5NA…

---

## [Create an exe with Ruby 1.9.1](https://www.ruby-forum.com/t/create-an-exe-with-ruby-1-9-1/168349)

<div class="topic-metadata">

**Author:** [@kingkadelfek](https://www.ruby-forum.com/u/kingkadelfek)\
**Replies:** 22\
**Last updated:** [June 4, 2009, 9:35am UTC](https://www.ruby-forum.com/t/create-an-exe-with-ruby-1-9-1/168349 "2009-06-04T09:35:57Z")

</div>

Hello ! I’m working on Windows and I’m creating softwares. I would create an exe file for a program written in Ruby 1.9.1. But Rubyscript2exe and Exerb are using Ruby 1.8.7 (or 1.8.6). How can I create an exe file wo…

---

## [RubyGems 1.3.2](https://www.ruby-forum.com/t/rubygems-1-3-2/165636)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 8\
**Last updated:** [June 4, 2009, 6:39am UTC](https://www.ruby-forum.com/t/rubygems-1-3-2/165636 "2009-06-04T06:39:40Z")

</div>

= Announce: RubyGems Release 1.3.2 NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no rubygems-update installed. You will need to follow the second set of update instructions if you see “Nothing to…

---

## [Is Congruence the right term?](https://www.ruby-forum.com/t/is-congruence-the-right-term/169456)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 3:45am UTC](https://www.ruby-forum.com/t/is-congruence-the-right-term/169456 "2009-06-04T03:45:58Z")

</div>

Congruence in math has the implication that things are basically like even if they have different aspects or proportions somehow. I want to use the term for things like Ruby which tend to do the same things the same…

---

## [Invoke a event in ruby/tk](https://www.ruby-forum.com/t/invoke-a-event-in-ruby-tk/169351)

<div class="topic-metadata">

**Author:** [@jesus](https://www.ruby-forum.com/u/jesus)\
**Replies:** 4\
**Last updated:** [June 4, 2009, 2:46am UTC](https://www.ruby-forum.com/t/invoke-a-event-in-ruby-tk/169351 "2009-06-04T02:46:21Z")

</div>

here is the problem. i have a TkEntry and A TkTable and i need to invoke the events of “Up” and “Down” of the TkTable To change the selection of cell as well as if it were selected. for reasons unnecessary to expla…

---

## [Review: Misc fixes to tests](https://www.ruby-forum.com/t/review-misc-fixes-to-tests/169454)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 2:12am UTC](https://www.ruby-forum.com/t/review-misc-fixes-to-tests/169454 "2009-06-04T02:12:48Z")

</div>

Fix non-deterministic Rake test for “multitask” by adding semaphore.synchronize around array access Changed default.mspec so that :core properly excludes the thread tests (reviewed by Jim) Merlin/External.LCA\_R…

---

## [Is ruby only usable for pictures not for documents?](https://www.ruby-forum.com/t/is-ruby-only-usable-for-pictures-not-for-documents/169450)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 5\
**Last updated:** [June 4, 2009, 12:11am UTC](https://www.ruby-forum.com/t/is-ruby-only-usable-for-pictures-not-for-documents/169450 "2009-06-04T00:11:02Z")

</div>

Hi Ruby-Community, I searched the last days a lot for finding a plugin or tutorial for storing documents (like pdf, doc, dox, with mime-type etc.) into the database, the only thing I found was plugins or howtos for st…

---

## [Recommend ruby numerical library](https://www.ruby-forum.com/t/recommend-ruby-numerical-library/169460)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/recommend-ruby-numerical-library/169460 "2009-06-03T23:52:00Z")

</div>

I’ve been using RubyGSL library for numerical calculations. I just noticed there is a ‘polynomial’ library and another called Rnum, so I started to wonder, which one I should use. Is one library further along than the…

---

## [Problems with Rubygems on 1.9.0 under multiruby](https://www.ruby-forum.com/t/problems-with-rubygems-on-1-9-0-under-multiruby/169445)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/problems-with-rubygems-on-1-9-0-under-multiruby/169445 "2009-06-03T23:30:59Z")

</div>

Hi all, Trying to get multiruby (from ZenTest) set up on Ubuntu. So far I’ve run the following and got 4 working installs: sudo gem install ZenTest multiruby\_setup update:rubygems multiruby\_setup mri:tar:1.8.6 mul…

---

## [JRuby 1.3.0 Released](https://www.ruby-forum.com/t/jruby-1-3-0-released/169458)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/jruby-1-3-0-released/169458 "2009-06-03T23:27:23Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.3.0 Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ The fixes in this release are primarily obvious compatibility problems a…

---

## [RailsConf - "JRuby on Google App Engine" - Transcript/Slides/Video Available?](https://www.ruby-forum.com/t/railsconf-jruby-on-google-app-engine-transcript-slides-video-available/169451)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/railsconf-jruby-on-google-app-engine-transcript-slides-video-available/169451 "2009-06-03T21:45:43Z")

</div>

This presentation sounds like it could help greatly to fill in some of the gaps in the public understanding of JRuby on App Engine. http://en.oreilly.com/rails2009/public/schedule/detail/9118 Any chance there is (or …

---

## [Assign the array returned by String.split to a variable](https://www.ruby-forum.com/t/assign-the-array-returned-by-string-split-to-a-variable/169434)

<div class="topic-metadata">

**Author:** [@catsquotl](https://www.ruby-forum.com/u/catsquotl)\
**Replies:** 4\
**Last updated:** [June 3, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/assign-the-array-returned-by-string-split-to-a-variable/169434 "2009-06-03T21:28:42Z")

</div>

Hi i have the following method def create length = @txt.length i = 0 while i \< (length + 1) line = @txt\[i\] line.split(’,’) #@arr.push(a) i += 1 end end this works but as soon as i take out the comment. i get a…

---

## [CR: Rake work](https://www.ruby-forum.com/t/cr-rake-work/169449)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/cr-rake-work/169449 "2009-06-03T21:25:43Z")

</div>

2009-06-03 rewrite irtest.bat to use Ruby instead of Batchhttp://github.com/jredville/ironruby/commit/915ee4a5b60173c3a4df774339011381f85dc17c commit 915ee4a5b60173c3a4df774339011381f85dc17chttp://github.com/jredvill…

---

## [ZenTest 4.1.1 Released](https://www.ruby-forum.com/t/zentest-4-1-1-released/169442)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 3\
**Last updated:** [June 3, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/zentest-4-1-1-released/169442 "2009-06-03T21:11:38Z")

</div>

ZenTest version 4.1.1 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools: zentest, unit\_dif…

---

## [ZenTest 4.1.0 Released](https://www.ruby-forum.com/t/zentest-4-1-0-released/169404)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [June 3, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/zentest-4-1-0-released/169404 "2009-06-03T20:46:54Z")

</div>

ZenTest version 4.1.0 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools: zentest, unit\_dif…

---

## [Sqlite on App Engine - Alternative to deleting ActiveRecord?](https://www.ruby-forum.com/t/sqlite-on-app-engine-alternative-to-deleting-activerecord/169371)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 11\
**Last updated:** [June 3, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/sqlite-on-app-engine-alternative-to-deleting-activerecord/169371 "2009-06-03T20:33:55Z")

</div>

In Ola B.'s instructions for JRuby-Rails on App Engine, he recommends deleting ActiveRecord in order to meet the 1000-file limit. What I’m wondering is, if I want to use ActiveRecord with a Sqlite database and bypass…

---

## [Review: File.expand\_path](https://www.ruby-forum.com/t/review-file-expand-path/169443)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/review-file-expand-path/169443 "2009-06-03T20:28:38Z")

</div>

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

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