# Ruby

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

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

---

## [Bug in #map](https://www.ruby-forum.com/t/bug-in-map/183377)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 6\
**Last updated:** [March 7, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/bug-in-map/183377 "2010-03-07T14:42:17Z")

</div>

I have run across a bug in Enumerable#map. It affects 1.5-dev but is okay in 1.4.0. Unfortunately, I can’t figure out how to reproduce it to a simple example. I’ll show in pseudo-code what I’m doing and the incorrect …

---

## [Ksh versions of bash scripts](https://www.ruby-forum.com/t/ksh-versions-of-bash-scripts/184659)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 7\
**Last updated:** [March 7, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/ksh-versions-of-bash-scripts/184659 "2010-03-07T14:18:51Z")

</div>

Hi, Just wondering if anyone has created ksh versions of the bash scripts. I also noticed that for JRuby 1.5, you are looking at native binaries for the Unix launch scripts, will this be just for Intel/Linux or will …

---

## [In \`require': no such file found --mysql(Load Error)](https://www.ruby-forum.com/t/in-require-no-such-file-found-mysql-load-error/184480)

<div class="topic-metadata">

**Author:** [@anbusivakani](https://www.ruby-forum.com/u/anbusivakani)\
**Replies:** 13\
**Last updated:** [March 7, 2010, 2:09pm UTC](https://www.ruby-forum.com/t/in-require-no-such-file-found-mysql-load-error/184480 "2010-03-07T14:09:29Z")

</div>

Hi friends … I am using netbeans IDE for JRuby. While trying for MySQL connection am getting the load error. How to rectify this?

---

## [Ffi-mysql 0.0.1](https://www.ruby-forum.com/t/ffi-mysql-0-0-1/184723)

<div class="topic-metadata">

**Author:** [@lobbr](https://www.ruby-forum.com/u/lobbr)\
**Replies:** 0\
**Last updated:** [March 7, 2010, 11:55am UTC](https://www.ruby-forum.com/t/ffi-mysql-0-0-1/184723 "2010-03-07T11:55:29Z")

</div>

ffi-mysql version 0.0.1 by Frank F. http://bitbucket.org/lyro/ffi-mysql == DESCRIPTION Pure Ruby FFI interface to MySQL. == CHANGES 1 major enhancement mostly compatible to MySQL/Ruby == PROBLEMS: does not work…

---

## [Basic Rails 3 app works (FYI review)](https://www.ruby-forum.com/t/basic-rails-3-app-works-fyi-review/184699)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 3\
**Last updated:** [March 7, 2010, 4:26am UTC](https://www.ruby-forum.com/t/basic-rails-3-app-works-fyi-review/184699 "2010-03-07T04:26:33Z")

</div>

tfpt review “/shelveset:r3;REDMOND\\sborde” Add a stub implementation of YAML.add\_builtin\_type. With this fix, I can create a Rails 3 app, add a controller, start the server, and request the main page! See Ruby on Rai…

---

## [Please help. what does mean \<\<](https://www.ruby-forum.com/t/please-help-what-does-mean/184692)

<div class="topic-metadata">

**Author:** [@superski](https://www.ruby-forum.com/u/superski)\
**Replies:** 2\
**Last updated:** [March 6, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/please-help-what-does-mean/184692 "2010-03-06T21:40:30Z")

</div>

I have to translate code from ruby to .net And I dont understand what means \<\< in the code. Its simple I know but please do not delete question and answer the question please def eval\_op(op, val1, val2, expr1, expr2, …

---

## [\[Bug #2752\] File path encoding on mac os x and windows](https://www.ruby-forum.com/t/bug-2752-file-path-encoding-on-mac-os-x-and-windows/183618)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 1\
**Last updated:** [March 6, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/bug-2752-file-path-encoding-on-mac-os-x-and-windows/183618 "2010-03-06T18:23:07Z")

</div>

Bug #2752: File path encoding on mac os x and windows http://redmine.ruby-lang.org/issues/show/2752 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Urgent e$BC4Ev\<Te(B: Yui NARUSE, e$B%+%F%4%je(B: M17N,…

---

## [Cannot allocate memory (Errno::ENOMEM)](https://www.ruby-forum.com/t/cannot-allocate-memory-errno-enomem/184658)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 1\
**Last updated:** [March 6, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/cannot-allocate-memory-errno-enomem/184658 "2010-03-06T15:50:22Z")

</div>

Hello, I’m using a ruby to setup an ec2 instance as part of a bootscript. The ruby script runs out of memory and exits with an error. I believe this may be related to the fact that the ruby script makes a lot of sys…

---

## [JRuby embedded in an Eclipse plugin (with gems in a jar)](https://www.ruby-forum.com/t/jruby-embedded-in-an-eclipse-plugin-with-gems-in-a-jar/184620)

<div class="topic-metadata">

**Author:** [@ggironda](https://www.ruby-forum.com/u/ggironda)\
**Replies:** 4\
**Last updated:** [March 6, 2010, 12:20pm UTC](https://www.ruby-forum.com/t/jruby-embedded-in-an-eclipse-plugin-with-gems-in-a-jar/184620 "2010-03-06T12:20:17Z")

</div>

Environment: Jruby 1.4, Eclipse 3.5 Hi, I tried to use two new great features of JRuby 1.4.0 (JSR223 integration and Gems in a jar) inside an Eclipse plugin but ran into some problems. Here’s the list and the workar…

---

## [Code Review: SymToProc](https://www.ruby-forum.com/t/code-review-symtoproc/184669)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 4\
**Last updated:** [March 6, 2010, 8:31am UTC](https://www.ruby-forum.com/t/code-review-symtoproc/184669 "2010-03-06T08:31:28Z")

</div>

tfpt review “/shelveset:SymToProc;REDMOND\\tomat” Comment : Implements Symbol#to\_proc Tomas

---

## [Code Review: Encs2](https://www.ruby-forum.com/t/code-review-encs2/184668)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [March 6, 2010, 5:39am UTC](https://www.ruby-forum.com/t/code-review-encs2/184668 "2010-03-06T05:39:22Z")

</div>

tfpt review “/shelveset:Encs2;REDMOND\\tomat” Comment : Fixes bunch of encoding issues including http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3920. Fixes handling of DST transitions in Time operators. …

---

## [On what of these books is better to start to study Ruby?](https://www.ruby-forum.com/t/on-what-of-these-books-is-better-to-start-to-study-ruby/184636)

<div class="topic-metadata">

**Author:** [@refermaker](https://www.ruby-forum.com/u/refermaker)\
**Replies:** 11\
**Last updated:** [March 6, 2010, 4:25am UTC](https://www.ruby-forum.com/t/on-what-of-these-books-is-better-to-start-to-study-ruby/184636 "2010-03-06T04:25:31Z")

</div>

I have 3 books: The Ruby Way: Solutions and Techniques in Ruby P.ming, Second Edition (2006 Ð³Ð¾Ð´, Ð²ÐµÑ€ÑÐ¸Ñ 1.8…) Beginning Ruby: From Novice to Professional, Second Edition (2009 Ð³Ð¾Ð´, 1.9) Programming…

---

## [Camera, Graphic and Mouse Class?](https://www.ruby-forum.com/t/camera-graphic-and-mouse-class/184665)

<div class="topic-metadata">

**Author:** [@nofortee](https://www.ruby-forum.com/u/nofortee)\
**Replies:** 0\
**Last updated:** [March 6, 2010, 3:46am UTC](https://www.ruby-forum.com/t/camera-graphic-and-mouse-class/184665 "2010-03-06T03:46:36Z")

</div>

I’m new in Ruby, please help me out with this… I want to implement some gesture input (e.g. eviacam ) by using web cam as an input device and imitate mouse event to give a command to os. Is there any possible to done …

---

## [Can I do a query SQL with various tables using find\_by\_sql?](https://www.ruby-forum.com/t/can-i-do-a-query-sql-with-various-tables-using-find-by-sql/184651)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 1\
**Last updated:** [March 5, 2010, 11:35pm UTC](https://www.ruby-forum.com/t/can-i-do-a-query-sql-with-various-tables-using-find-by-sql/184651 "2010-03-05T23:35:14Z")

</div>

Hello. I need to do a query with various tables, but I want to use something like find\_by\_sql. It’s say, i want to make the next query: SELECT field\_table1,field\_table1,field\_table2 FROM table1, table2 WHERE table1…

---

## [Upper case global variable?](https://www.ruby-forum.com/t/upper-case-global-variable/184645)

<div class="topic-metadata">

**Author:** [@ngambek2003](https://www.ruby-forum.com/u/ngambek2003)\
**Replies:** 3\
**Last updated:** [March 5, 2010, 7:49pm UTC](https://www.ruby-forum.com/t/upper-case-global-variable/184645 "2010-03-05T19:49:23Z")

</div>

Is there a restriction when naming global variables to be shared between java and jruby? I’m using the jsr223 way and if I do engine.put(“Logger”, logger), from jruby, $Logger is nil. - Begins with Upper case If I …

---

## [\[Bug #2792\] String#to\_f on Ruby-1.8.6-p399](https://www.ruby-forum.com/t/bug-2792-string-to-f-on-ruby-1-8-6-p399/184131)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 3\
**Last updated:** [March 5, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/bug-2792-string-to-f-on-ruby-1-8-6-p399/184131 "2010-03-05T19:21:17Z")

</div>

Bug #2792: String#to\_f on Ruby-1.8.6-p399 http://redmine.ruby-lang.org/issues/show/2792 e$B5/I\<\<Te(B: Masao M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.6 (2010-02-05 patchlevel 399) \[x86\_64-linu…

---

## [CentOS 5 and Ruby 1.9.1 - conflict with 1.8.6](https://www.ruby-forum.com/t/centos-5-and-ruby-1-9-1-conflict-with-1-8-6/184644)

<div class="topic-metadata">

**Author:** [@devaulw](https://www.ruby-forum.com/u/devaulw)\
**Replies:** 1\
**Last updated:** [March 5, 2010, 7:06pm UTC](https://www.ruby-forum.com/t/centos-5-and-ruby-1-9-1-conflict-with-1-8-6/184644 "2010-03-05T19:06:04Z")

</div>

Hey all, I’m running CentOS 5.4 - I tried to use yum to install ruby, but the only version available was 1.8.5. I wanted 1.9.1, so I installed it from source and everything works fine. My trouble is that now whenever…

---

## [A gem for handling temporary file(s)?](https://www.ruby-forum.com/t/a-gem-for-handling-temporary-file-s/184469)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 20\
**Last updated:** [March 5, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/a-gem-for-handling-temporary-file-s/184469 "2010-03-05T17:40:00Z")

</div>

I’m writing a program that needs to generate two or three temporary files. (Specifically: my program runs a shell command and I need to pass the shell command a path to a non-existing file which it will dump data to.) …

---

## [\[ANN\] Ruby In Steel 1.5](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-5/183114)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 1\
**Last updated:** [March 5, 2010, 5:03pm UTC](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-5/183114 "2010-03-05T17:03:04Z")

</div>

SapphireSteel Software today released the latest version of the Ruby In Steel IDE for developing Ruby and Rails applications with Visual Studio. Ruby In Steel â€˜Developer Editionâ€™ 1.5 provides integrated edit-and-ru…

---

## [JRuby rake not working!](https://www.ruby-forum.com/t/jruby-rake-not-working/182992)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 3\
**Last updated:** [March 5, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/jruby-rake-not-working/182992 "2010-03-05T16:54:51Z")

</div>

Hello all, I am trying out Rails using JRuby. I set up a Rails app using netbeans, and installed all the necessary gems, including activerecord-jdbc-adapter, and rake. However, whenever I try to run a migration usi…

---

## [Issue with DateTime#to\_date in active\_support](https://www.ruby-forum.com/t/issue-with-datetime-to-date-in-active-support/184530)

<div class="topic-metadata">

**Author:** [@patrik](https://www.ruby-forum.com/u/patrik)\
**Replies:** 3\
**Last updated:** [March 5, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/issue-with-datetime-to-date-in-active-support/184530 "2010-03-05T15:55:05Z")

</div>

Hi, I just got bitten by the issue explained on this link: Has anyone else seen this? Is it possible it’s a jruby issue and not a rails issue? It’s not clear to me since I’m still trying to get a MRI 1.8.7 setup c…

---

## [System Stats from Ruby?](https://www.ruby-forum.com/t/system-stats-from-ruby/184599)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/system-stats-from-ruby/184599 "2010-03-05T15:28:30Z")

</div>

I am new to ruby but am working hard to learn all i can. Is there a way to get system information from ruby on windows? I am looking to get some data to make a system monitor type of thing. Data like conky or samurize…

---

## [The desktop application on Ruby](https://www.ruby-forum.com/t/the-desktop-application-on-ruby/184621)

<div class="topic-metadata">

**Author:** [@refermaker](https://www.ruby-forum.com/u/refermaker)\
**Replies:** 1\
**Last updated:** [March 5, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/the-desktop-application-on-ruby/184621 "2010-03-05T14:14:35Z")

</div>

Greetings! At me a question - whether it is possible to create the desktop application (I can be wrong it I name) in language Ruby. In my understanding the desktop appendix is, for example, the antivirus or other prog…

---

## [Webrick hangs following periods of inactivity](https://www.ruby-forum.com/t/webrick-hangs-following-periods-of-inactivity/184633)

<div class="topic-metadata">

**Author:** [@mattocks](https://www.ruby-forum.com/u/mattocks)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/webrick-hangs-following-periods-of-inactivity/184633 "2010-03-05T14:13:18Z")

</div>

I’m using WEBrick as my webserver with Redmine. I start the WEBrick server in the morning using the command script/server webrick -e production. The server starts and I am able to access the contents of the server t…

---

## [Code Review: MiscStrings](https://www.ruby-forum.com/t/code-review-miscstrings/184410)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [March 5, 2010, 11:29am UTC](https://www.ruby-forum.com/t/code-review-miscstrings/184410 "2010-03-05T11:29:19Z")

</div>

tfpt review “/shelveset:MiscStrings;REDMOND\\tomat” A simple DLR Console Shell change: The version printed by the console host now recognizes Mono correctly. Ruby changes: Ignores UTF8 BOM in 1.8 mode unless $KCODE is…

---

## [RedCloth, JRuby and national characters](https://www.ruby-forum.com/t/redcloth-jruby-and-national-characters/184619)

<div class="topic-metadata">

**Author:** [@Claus\_Folke\_B](https://www.ruby-forum.com/u/Claus_Folke_B)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 9:44am UTC](https://www.ruby-forum.com/t/redcloth-jruby-and-national-characters/184619 "2010-03-05T09:44:56Z")

</div>

Hi, I posted this in the RedCloth forum but noone has replied. Anyone in this forum? http://www.ruby-forum.com/topic/204905 Claus

---

## [Outputting to a string](https://www.ruby-forum.com/t/outputting-to-a-string/184612)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 9:19am UTC](https://www.ruby-forum.com/t/outputting-to-a-string/184612 "2010-03-05T09:19:22Z")

</div>

I have a function that generates some textual data that I capture into a string: def gen\_data(output, …) … output \<\< “… some data …” … end s = ‘’ gen\_data(s, …) I was wondering if instead it’s possible to use a …

---

## [Archflags for compiling gems 64 bit](https://www.ruby-forum.com/t/archflags-for-compiling-gems-64-bit/184593)

<div class="topic-metadata">

**Author:** [@dale8458](https://www.ruby-forum.com/u/dale8458)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 1:46am UTC](https://www.ruby-forum.com/t/archflags-for-compiling-gems-64-bit/184593 "2010-03-05T01:46:48Z")

</div>

Hi, I am trying to understand if the archflags=’-arch x86\_64’ flag is used both in Linux and OSX or is this a OS X only flag. I want to make sure I compile gems correctly. I am also working with the RVM scripts to …

---

## [Google AI Challenge at U of Waterloo](https://www.ruby-forum.com/t/google-ai-challenge-at-u-of-waterloo/183012)

<div class="topic-metadata">

**Author:** [@Forthminder](https://www.ruby-forum.com/u/Forthminder)\
**Replies:** 10\
**Last updated:** [March 5, 2010, 12:55am UTC](https://www.ruby-forum.com/t/google-ai-challenge-at-u-of-waterloo/183012 "2010-03-05T00:55:27Z")

</div>

Contest runs from 4 February to 26 February 2010. You may choose a programming language, such as Java, C++, Python, Ruby or Haskell. See details at http://csclub.uwaterloo.ca/contest/problem\_description.php Bonne Ch…

---

## [Unable to run trunk](https://www.ruby-forum.com/t/unable-to-run-trunk/184588)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 11:48pm UTC](https://www.ruby-forum.com/t/unable-to-run-trunk/184588 "2010-03-04T23:48:43Z")

</div>

get this on two different computers with clean builds… C:\\dev\\ruby\\downloads\\jruby\\bin\>jruby -v -e ‘’ This application has requested the Runtime to terminate it in an unusual way. Please contact the application’s sup…

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

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