# Ruby

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

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

---

## [Glassfish gem error](https://www.ruby-forum.com/t/glassfish-gem-error/159646)

<div class="topic-metadata">

**Author:** [@sshingler](https://www.ruby-forum.com/u/sshingler)\
**Replies:** 6\
**Last updated:** [February 10, 2009, 8:03am UTC](https://www.ruby-forum.com/t/glassfish-gem-error/159646 "2009-02-10T08:03:18Z")

</div>

hi all, am using: ubuntu hardy jruby 1.1.6RC1 (ruby 1.8.6 patchlevel 114) (2008-12-03 rev 8263) \[i386-java\] glassfish (0.9.2) rails (2.2.2) activerecord-jdbcmysql-adapter (0.9) jdbc-mysql (5.0.4) when running: …

---

## [New to Ruby. Why does the command line pop up an then go awa](https://www.ruby-forum.com/t/new-to-ruby-why-does-the-command-line-pop-up-an-then-go-awa/159809)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 5\
**Last updated:** [February 10, 2009, 6:05am UTC](https://www.ruby-forum.com/t/new-to-ruby-why-does-the-command-line-pop-up-an-then-go-awa/159809 "2009-02-10T06:05:56Z")

</div>

When ever I run a code file .rb The code, puts “Hello” I get the command prompt that flashes for a moment but does not stay up. How do I fix this.

---

## [Ruby performance tips & tricks](https://www.ruby-forum.com/t/ruby-performance-tips-tricks/159819)

<div class="topic-metadata">

**Author:** [@manimaran](https://www.ruby-forum.com/u/manimaran)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 6:03am UTC](https://www.ruby-forum.com/t/ruby-performance-tips-tricks/159819 "2009-02-10T06:03:09Z")

</div>

Dear folks, I’m new to ruby, I just installed ruby 1.9.1 version. I’m quite impressed with ruby 1.9.1 performance than earlier version. Can anybody guide me to write a effective code in ruby and changes made in ruby 1…

---

## [Gosu 0.7.12 released, with an official website and many contributions](https://www.ruby-forum.com/t/gosu-0-7-12-released-with-an-official-website-and-many-contributions/159935)

<div class="topic-metadata">

**Author:** [@nex4k](https://www.ruby-forum.com/u/nex4k)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 4:53am UTC](https://www.ruby-forum.com/t/gosu-0-7-12-released-with-an-official-website-and-many-contributions/159935 "2009-02-10T04:53:48Z")

</div>

Hi, Gosu is a free 2D game development library for Ruby and C++, available via gem install gosu on Windows, Mac OS X and Linux/FreeBSD. It’s new home is http://libgosu.org/. Version 0.7.12 has just been released and …

---

## [Mysqlconnectivity](https://www.ruby-forum.com/t/mysqlconnectivity/159934)

<div class="topic-metadata">

**Author:** [@uma07](https://www.ruby-forum.com/u/uma07)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 4:37am UTC](https://www.ruby-forum.com/t/mysqlconnectivity/159934 "2009-02-10T04:37:40Z")

</div>

Hi, I am working in JRuby application with Tomcat server while using jdbcmysql as adapter ,Please install the jdbcmysql adapter: gem install activerecord-jdbcmysql-adapter (no such file to load – active\_record/connect…

---

## [WPF: registering a routed event](https://www.ruby-forum.com/t/wpf-registering-a-routed-event/159802)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 3\
**Last updated:** [February 10, 2009, 3:50am UTC](https://www.ruby-forum.com/t/wpf-registering-a-routed-event/159802 "2009-02-10T03:50:36Z")

</div>

Hi all, I seem to step in every hole there is on my IronRuby test drive. Using the latest git head I am failing to register a button click event in WPF: require “WindowsBase, Version=3.0.0.0, Culture=neutral, Pub…

---

## [Is anyone using Ruby/Tk on HP-UX 11.11 (PA-RISC)?](https://www.ruby-forum.com/t/is-anyone-using-ruby-tk-on-hp-ux-11-11-pa-risc/159924)

<div class="topic-metadata">

**Author:** [@Jun\_YSKim](https://www.ruby-forum.com/u/Jun_YSKim)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 2:48am UTC](https://www.ruby-forum.com/t/is-anyone-using-ruby-tk-on-hp-ux-11-11-pa-risc/159924 "2009-02-10T02:48:25Z")

</div>

Hi, forks!! I am developing some tools based on ruby/tk. but, I always met the following errror msgs whenever I tried to execute it. jykim$ uname -a HP-UX rp5470 B.11.11 U 9000/800 190494686 unlimited-user license j…

---

## [Inspiringly documented projects](https://www.ruby-forum.com/t/inspiringly-documented-projects/159821)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 1:38am UTC](https://www.ruby-forum.com/t/inspiringly-documented-projects/159821 "2009-02-10T01:38:49Z")

</div>

I was looking at Rubygame this morning, and I was impressed by the quality of its documentation\[1\] - both extensive and coherent, with notes as to the motivation behind various features. Prawn is another such library …

---

## [Module#=== vs Object#is\_a?](https://www.ruby-forum.com/t/module-vs-object-is-a/159707)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 13\
**Last updated:** [February 10, 2009, 12:51am UTC](https://www.ruby-forum.com/t/module-vs-object-is-a/159707 "2009-02-10T00:51:20Z")

</div>

HI All, Could somone explain the subtle difference between Module#=== and Object#is\_a? I found a usage of === to test if an argument is Regexp or not… just want to know the restrictions. The code is beautiful… if …

---

## [Rubygoo 0.0.8 Released](https://www.ruby-forum.com/t/rubygoo-0-0-8-released/159893)

<div class="topic-metadata">

**Author:** [@allgeier](https://www.ruby-forum.com/u/allgeier)\
**Replies:** 1\
**Last updated:** [February 10, 2009, 12:05am UTC](https://www.ruby-forum.com/t/rubygoo-0-0-8-released/159893 "2009-02-10T00:05:08Z")

</div>

rubygoo version 0.0.8 has been released! http://rubygoo.googlecode.com GUI library for use with Gosu or Rubygame Changes: 0.0.8 / 2009-2-9 Getting closer to a 1.0 release Ruby 1.9.1 support bug fixes added clea…

---

## [\[ANN\] grizzly-sendfile v0.2](https://www.ruby-forum.com/t/ann-grizzly-sendfile-v0-2/159908)

<div class="topic-metadata">

**Author:** [@pletisan](https://www.ruby-forum.com/u/pletisan)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/ann-grizzly-sendfile-v0-2/159908 "2009-02-09T23:27:03Z")

</div>

Hi guys, Just heads up: if anyone is working on a rails app that distributes (large) files, grizzly-sendfile is a solution that we use at JRoR + warbler + glassfish v2 + grizzly-sendfile then in Rails controller do: …

---

## [BEGIN used in HTree](https://www.ruby-forum.com/t/begin-used-in-htree/159905)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/begin-used-in-htree/159905 "2009-02-09T23:08:50Z")

</div>

IronRuby does not currently support BEGIN/END. HTree uses BEGIN like this to syntax check if code\_to\_syntax\_check contains valid Ruby code. eval(“BEGIN { return true }\\n#{code\_to\_syntax\_check}”) Is there any differenc…

---

## [How to capture standart output to variable?](https://www.ruby-forum.com/t/how-to-capture-standart-output-to-variable/159785)

<div class="topic-metadata">

**Author:** [@rkdwv](https://www.ruby-forum.com/u/rkdwv)\
**Replies:** 3\
**Last updated:** [February 9, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/how-to-capture-standart-output-to-variable/159785 "2009-02-09T23:00:53Z")

</div>

How to capture output of this code to variable to send it to iconv? (Just like ob\_start() in PHP) ??? p \[“utf-8 string”,\[123,321\],“another string”\] ??? puts Iconv.conv(“866”,“UTF-8”,captured\_output) # because of windo…

---

## [Test .net code with ruby BDD libraries](https://www.ruby-forum.com/t/test-net-code-with-ruby-bdd-libraries/159728)

<div class="topic-metadata">

**Author:** [@maxer](https://www.ruby-forum.com/u/maxer)\
**Replies:** 12\
**Last updated:** [February 9, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/test-net-code-with-ruby-bdd-libraries/159728 "2009-02-09T22:58:52Z")

</div>

Good morning, I would try to test my .net code using a BDD approach. I believe Ruby has a clean syntax and great libraries to do BDD so I would use one them on IronRuby. Has someone already try to test .net code wit…

---

## [Net-SSH 2.0.8 error](https://www.ruby-forum.com/t/net-ssh-2-0-8-error/159678)

<div class="topic-metadata">

**Author:** [@Jacob\_K](https://www.ruby-forum.com/u/Jacob_K)\
**Replies:** 3\
**Last updated:** [February 9, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/net-ssh-2-0-8-error/159678 "2009-02-09T21:55:11Z")

</div>

I was trying to get capistrano set up to work well with glassfish, when I ran into a SSH padding error. A quick google turned up issue 2747 (http://jira.codehaus.org/browse/JRUBY-2747), which looked pretty much exactl…

---

## [Nokogiri sax parser error](https://www.ruby-forum.com/t/nokogiri-sax-parser-error/159771)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [February 9, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/nokogiri-sax-parser-error/159771 "2009-02-09T21:53:22Z")

</div>

Trying to use the Nokogiri Sax parser. I ran into a problem parsing the following: It chokes on the x="" attribute. T.

---

## [Rice: ERROR: Failed to build gem native extension](https://www.ruby-forum.com/t/rice-error-failed-to-build-gem-native-extension/159896)

<div class="topic-metadata">

**Author:** [@kungfu-free](https://www.ruby-forum.com/u/kungfu-free)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/rice-error-failed-to-build-gem-native-extension/159896 "2009-02-09T21:18:58Z")

</div>

Hello, folks rubyists ! I report there after some error (2) that I encounter. In case someone meet the same or has already met it ! I don’t really need a solution so don’t bother investigating too much on it ! c…

---

## [Open Source Bridge Call for Proposals: We welcome your ideas (until March 31)](https://www.ruby-forum.com/t/open-source-bridge-call-for-proposals-we-welcome-your-ideas-until-march-31/159888)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/open-source-bridge-call-for-proposals-we-welcome-your-ideas-until-march-31/159888 "2009-02-09T20:17:55Z")

</div>

We are happy to announce that the Open Source Bridge Call for Proposals is now open! We would love to hear all of those interesting ideas you have in your head—and so would everyone else. That’s why we will be accepti…

---

## [Setting global variables in embedded ironruby interpreter](https://www.ruby-forum.com/t/setting-global-variables-in-embedded-ironruby-interpreter/159849)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 4\
**Last updated:** [February 9, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/setting-global-variables-in-embedded-ironruby-interpreter/159849 "2009-02-09T19:09:37Z")

</div>

Hello, I am very pleased that I got everything working and found iron ruby in a quite usable state for me. Congratulations. Question: How do you set a global variable from C#? I found a workaround via setting a loca…

---

## [How to convert a string of arbitrary size to an array](https://www.ruby-forum.com/t/how-to-convert-a-string-of-arbitrary-size-to-an-array/159884)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 4\
**Last updated:** [February 9, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/how-to-convert-a-string-of-arbitrary-size-to-an-array/159884 "2009-02-09T19:06:06Z")

</div>

Team, I am trying to convert a string of arbitrary size to an array of single characters, bu I having a hard time. A google search “Ruby” “string to array” returned thousands of hits. I checked couple dozens but none…

---

## [Code Review: ErrorMessageFix](https://www.ruby-forum.com/t/code-review-errormessagefix/159792)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/code-review-errormessagefix/159792 "2009-02-09T19:04:20Z")

</div>

tfpt review “/shelveset:ErrorMessageFix;REDMOND\\tomat” Fixes binder error message given when an interface name is displayed. Tomas

---

## [Sort\_by different variables?](https://www.ruby-forum.com/t/sort-by-different-variables/159872)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/sort-by-different-variables/159872 "2009-02-09T17:53:54Z")

</div>

I have a user control panel that generates an event log by merging various things that can happen on the site. These are: user joins user receives invitation user completes invitation user refers someone user refer…

---

## [File.puts define newline](https://www.ruby-forum.com/t/file-puts-define-newline/159859)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [February 9, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/file-puts-define-newline/159859 "2009-02-09T17:41:22Z")

</div>

Hi, just would like to know if I can somehow define the newline delimeter when using file.puts ? e.g. /n, /r/n Thanks a lot in advance…

---

## [Failed to build gem native extension](https://www.ruby-forum.com/t/failed-to-build-gem-native-extension/159798)

<div class="topic-metadata">

**Author:** [@brblakley](https://www.ruby-forum.com/u/brblakley)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/failed-to-build-gem-native-extension/159798 "2009-02-09T15:56:49Z")

</div>

Hi, I want to install juggernaut but when running “gem install juggernaut” I get the following error: ERROR: Failed to build gem native extension. It seems that it don’t find ‘windows.h’. I installed ruby with the O…

---

## [Assignment to $stdout deprecated?](https://www.ruby-forum.com/t/assignment-to-stdout-deprecated/159799)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 8\
**Last updated:** [February 9, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/assignment-to-stdout-deprecated/159799 "2009-02-09T14:03:43Z")

</div>

In pickaxe2, on p. 335, it says that assigning to $stdout is deprecated and to use $stdout.reopen() instead: -------------------------------------------------------------- IO#reopen ios.reopen(other\_IO) =\> ios …

---

## [Tcl execution by ruby?](https://www.ruby-forum.com/t/tcl-execution-by-ruby/159516)

<div class="topic-metadata">

**Author:** [@ukarick](https://www.ruby-forum.com/u/ukarick)\
**Replies:** 7\
**Last updated:** [February 9, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/tcl-execution-by-ruby/159516 "2009-02-09T13:20:47Z")

</div>

is there anyway to run Tcl from Ruby??

---

## [\[Bug:1.9\] compile error on win32ole with Mingw of MacPorts](https://www.ruby-forum.com/t/bug-1-9-compile-error-on-win32ole-with-mingw-of-macports/159769)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 3\
**Last updated:** [February 9, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/bug-1-9-compile-error-on-win32ole-with-mingw-of-macports/159769 "2009-02-09T12:34:39Z")

</div>

e$B$J$+$@$G$9!#e(B MacPortse$B$Ke(Bmingw-gcce$B$^$G$"$k$H$$$&$N$K6C$$$F;n$7$F$\_$?$N$G$9$,!“e(B win32olee$B$G%3%s%Q%$%k%(%i!\<$K$J$j$^$7$?!#BP1~$,8E$$$N$+!“e(B IMultiLanguage2e$B$I$3$m$+e(Bmlang.he$B$b$J$$$h$&$G$9!#e(Bw…

---

## [Not able to access session data in before\_filter](https://www.ruby-forum.com/t/not-able-to-access-session-data-in-before-filter/159840)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 12:32pm UTC](https://www.ruby-forum.com/t/not-able-to-access-session-data-in-before-filter/159840 "2009-02-09T12:32:14Z")

</div>

Hi, I’ve a session data that is generated when a user logs in. I’m trying to access that session data, in before\_filter, in a different controller for passing parameter to the before\_filter function. before\_filter :o…

---

## [Dbi](https://www.ruby-forum.com/t/dbi/159795)

<div class="topic-metadata">

**Author:** [@henriklarsen](https://www.ruby-forum.com/u/henriklarsen)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/dbi/159795 "2009-02-09T12:26:37Z")

</div>

Hi everyone, I have a problem connecting my application to a database. I think this is a ruby problem though Im running ruby on rails, but let me explain. The thing is that I want to execute queries upon several diffe…

---

## [FileUtils.cp\_r - works with regex?](https://www.ruby-forum.com/t/fileutils-cp-r-works-with-regex/159823)

<div class="topic-metadata">

**Author:** [@edouard](https://www.ruby-forum.com/u/edouard)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 11:52am UTC](https://www.ruby-forum.com/t/fileutils-cp-r-works-with-regex/159823 "2009-02-09T11:52:23Z")

</div>

Hi, I try to copy files that match a certain pattern to another dir, i write cp\_r //downloads/bsd/i, “~/biblio/bsd/” if i can use regex to do this what is wrong in my approach? thanks for comments

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

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