# Ruby

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

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

---

## [\[Bug #2463\] String#center](https://www.ruby-forum.com/t/bug-2463-string-center/179942)

<div class="topic-metadata">

**Author:** [@Sakuro\_OZAWA](https://www.ruby-forum.com/u/Sakuro_OZAWA)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 5:01am UTC](https://www.ruby-forum.com/t/bug-2463-string-center/179942 "2010-02-04T05:01:44Z")

</div>

Bug #2463: String#center http://redmine.ruby-lang.org/issues/show/2463 e$B5/I\<\<Te(B: Sakuro OZAWA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: build ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041…

---

## [Help with Name Collision](https://www.ruby-forum.com/t/help-with-name-collision/182778)

<div class="topic-metadata">

**Author:** [@haden](https://www.ruby-forum.com/u/haden)\
**Replies:** 5\
**Last updated:** [February 4, 2010, 3:19am UTC](https://www.ruby-forum.com/t/help-with-name-collision/182778 "2010-02-04T03:19:54Z")

</div>

Hi, I’m checking out “Glimmer”, a DSL which provides a simple interface to the SWT library for desktop app development. I’m trying to modify a supplied sample app, a contact manager, so that it loads contacts from a …

---

## [Name that DDL!](https://www.ruby-forum.com/t/name-that-ddl/182853)

<div class="topic-metadata">

**Author:** [@vyper](https://www.ruby-forum.com/u/vyper)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/name-that-ddl/182853 "2010-02-03T23:38:10Z")

</div>

Hi all, I’m working on writing a Ruby script to SSH into one of our VMware Servers and do a little command line work for me. The challenge is that some of the output is in some kind of data definition language I do…

---

## [A nicer syntax for generic extension methods](https://www.ruby-forum.com/t/a-nicer-syntax-for-generic-extension-methods/182715)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 16\
**Last updated:** [February 3, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/a-nicer-syntax-for-generic-extension-methods/182715 "2010-02-03T21:39:49Z")

</div>

I have been trying to figure out how to Rubify generic extension methods for use with the likes of Rx, Open XML SDK, etc. Ivan went over it a bit with me this weekend, but I’m still having difficulty including a modu…

---

## [Rdoc\_osx\_dictionary 1.0.1 Released](https://www.ruby-forum.com/t/rdoc-osx-dictionary-1-0-1-released/182496)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 18\
**Last updated:** [February 3, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/rdoc-osx-dictionary-1-0-1-released/182496 "2010-02-03T21:07:37Z")

</div>

rdoc\_osx\_dictionary version 1.0.1 has been released! http://rubyforge.org/projects/seattlerb rdoc via Apple’s Dictionary.app. Automatically builds and installs an Apple Dictionary with all rdoc nicely formatted. Cha…

---

## [Ruby game server (concurrency and speed)](https://www.ruby-forum.com/t/ruby-game-server-concurrency-and-speed/182835)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 6\
**Last updated:** [February 3, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/ruby-game-server-concurrency-and-speed/182835 "2010-02-03T20:18:26Z")

</div>

Hello there, I’m writing a game server for flash based game. Currently there is MySQL activerecord + activesupport + eventmachine. At timed intervals (lets say 1 minute) actions should be done: buildings constructi…

---

## [Inserting Classes into a Module Dynamically?](https://www.ruby-forum.com/t/inserting-classes-into-a-module-dynamically/182837)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/inserting-classes-into-a-module-dynamically/182837 "2010-02-03T17:41:48Z")

</div>

Hi guys, We are now able to author code on-line, which allows us to create a new class. We want to “insert” this new class into a module and make it “instantly” available to the using program(s) - without restarting …

---

## [Jruby-openssl gem within a java web start deployment](https://www.ruby-forum.com/t/jruby-openssl-gem-within-a-java-web-start-deployment/182747)

<div class="topic-metadata">

**Author:** [@Gonzalo\_SuSSSSrez](https://www.ruby-forum.com/u/Gonzalo_SuSSSSrez)\
**Replies:** 5\
**Last updated:** [February 3, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/jruby-openssl-gem-within-a-java-web-start-deployment/182747 "2010-02-03T17:41:34Z")

</div>

frame = javax.swing.JFrame.new(“Hello JRuby!”) 6 17 do you know how could i solve this? am i missing something? thanks for your help. To unsubscribe from this list, please visit: http://xircles.codeha…

---

## [Updating](https://www.ruby-forum.com/t/updating/182784)

<div class="topic-metadata">

**Author:** [@kfmfe04](https://www.ruby-forum.com/u/kfmfe04)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/updating/182784 "2010-02-03T17:26:55Z")

</div>

I have ruby 1.9.1 and would like to update to the latest version. Do I have to do a complete re-install??? Mac OSX Snow Leopard Thanks ken

---

## [TK: Get the "usable" screensize"?](https://www.ruby-forum.com/t/tk-get-the-usable-screensize/182711)

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 7\
**Last updated:** [February 3, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/tk-get-the-usable-screensize/182711 "2010-02-03T16:16:05Z")

</div>

Hi, how can I get the “usable” screensize in Ruby/TK? I mean, the total screensize minus taskbar (on Windows). I tried: require ‘tk’ root = TkRoot.new root.state(‘zoomed’) Tk.update p TkWinfo.x(root) p TkWinfo.y…

---

## [Hi, Ruby Programmers, Is this possible](https://www.ruby-forum.com/t/hi-ruby-programmers-is-this-possible/182813)

<div class="topic-metadata">

**Author:** [@marindo](https://www.ruby-forum.com/u/marindo)\
**Replies:** 5\
**Last updated:** [February 3, 2010, 3:33pm UTC](https://www.ruby-forum.com/t/hi-ruby-programmers-is-this-possible/182813 "2010-02-03T15:33:22Z")

</div>

Hello, everyone. Today I picked up Ubuntu User magazine, and I happened upon an article on Ruby, which brought me here. I am looking for a detailed answer about what can be done with Ruby. First, if someone has the ti…

---

## [Web services concept question](https://www.ruby-forum.com/t/web-services-concept-question/182797)

<div class="topic-metadata">

**Author:** [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Replies:** 3\
**Last updated:** [February 3, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/web-services-concept-question/182797 "2010-02-03T15:29:34Z")

</div>

Hi I am researching web services area area, I am interested in calling a library written in C, more specifically a scripting language written in C on another computer from a web client (sorry for sounding so naive!). …

---

## [\[Bug:1.8\] block.call$B$NCf$G(Bsuper$B$G$-$J$$(B](https://www.ruby-forum.com/t/bug-1-8-block-call-b-ncf-g-bsuper-b-g-j-b/181472)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 10\
**Last updated:** [February 3, 2010, 2:59pm UTC](https://www.ruby-forum.com/t/bug-1-8-block-call-b-ncf-g-bsuper-b-g-j-b/181472 "2010-02-03T14:59:25Z")

</div>

é ˆè—¤ã§ã™ã€‚ r25975ã®å¤‰æ›´ eval.c (proc\_invoke): unbound block created by define\_method cannot call super. \[ruby-core:26984\] ã‹ã‚‰ã€ä»¥ä¸‹ã®ã‚ˆã†ã«ã™ã‚‹ã¨ NoMethodError: super called outside of method …

---

## [Why can't we use get\_stack()](https://www.ruby-forum.com/t/why-cant-we-use-get-stack/182830)

<div class="topic-metadata">

**Author:** [@KOSAKI\_Motohiro](https://www.ruby-forum.com/u/KOSAKI_Motohiro)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 2:36pm UTC](https://www.ruby-forum.com/t/why-cant-we-use-get-stack/182830 "2010-02-03T14:36:36Z")

</div>

e$B\>.:j$G$9e(B p26549e$B$G!"e(BFreeBSDe$B$G$Oe(Bgetrlimit()e$B$G$O%a%$%s%9%l%C%I$N%9%?%C%/%5%$%:$,\<h$l$J$$LdBj$KBP$9$kBP=h$,F~$j$^$7$?$,!"e(B thread\_pthread.c e$B$K$O!“CN$j$&$k8B$jA4e(BOSe$B$rLVMe$7$F$$$k%9%?%C%/\>pJs\<h…

---

## [Rdoc\_osx\_dictionary 1.1.1 Released](https://www.ruby-forum.com/t/rdoc-osx-dictionary-1-1-1-released/182816)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/rdoc-osx-dictionary-1-1-1-released/182816 "2010-02-03T14:28:24Z")

</div>

rdoc\_osx\_dictionary version 1.1.1 has been released! http://rubyforge.org/projects/seattlerb rdoc via Apple’s Dictionary.app. Automatically builds and installs an Apple Dictionary with all rdoc nicely formatted. Cha…

---

## [Rb\_funcall](https://www.ruby-forum.com/t/rb-funcall/182823)

<div class="topic-metadata">

**Author:** [@coldpeace](https://www.ruby-forum.com/u/coldpeace)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 10:46am UTC](https://www.ruby-forum.com/t/rb-funcall/182823 "2010-02-03T10:46:44Z")

</div>

Hi , we know that rb\_funcall , is used to call some Ruby Methods from the C code , actualy , This is what I tried , but in my case , it doesnt seem to work my case is , that I should call a Ruby Method from a Ruby Cl…

---

## [Ruby Threads From C](https://www.ruby-forum.com/t/ruby-threads-from-c/182758)

<div class="topic-metadata">

**Author:** [@coldpeace](https://www.ruby-forum.com/u/coldpeace)\
**Replies:** 5\
**Last updated:** [February 3, 2010, 9:49am UTC](https://www.ruby-forum.com/t/ruby-threads-from-c/182758 "2010-02-03T09:49:25Z")

</div>

Hi, I’d like to know how can I do to create ( or instantiate ) a Ruby Thread from C . actually , I have to Bind Some C Modules to Ruby , So I have to manage The ruby Thread inside my C code ( Start , Stop , Resume ……

---

## [JRuby Class with Java Interface in OSGi](https://www.ruby-forum.com/t/jruby-class-with-java-interface-in-osgi/179992)

<div class="topic-metadata">

**Author:** [@stephanos](https://www.ruby-forum.com/u/stephanos)\
**Replies:** 8\
**Last updated:** [February 3, 2010, 9:34am UTC](https://www.ruby-forum.com/t/jruby-class-with-java-interface-in-osgi/179992 "2010-02-03T09:34:00Z")

</div>

Hi folks, I try to implement a Java Interface in a (J)Ruby Class. (I read many posts about this here on Nabble - but they were really old and didn’t solve my prob) JAVA INTERFACE: package org.codingkata.unit.api; p…

---

## [Amazon AWS libraries?](https://www.ruby-forum.com/t/amazon-aws-libraries/182467)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 9:30am UTC](https://www.ruby-forum.com/t/amazon-aws-libraries/182467 "2010-02-03T09:30:54Z")

</div>

I did some work last year with AWS, and at that time the RightScale libraries (the right\_aws gem) were the best I could find. In the intervening time, it looks like they’ve bit-rotted - they aren’t compatible with 1.9…

---

## [\[Bug #1977\] test failed in test\_isdigit in test/dl/test\_func.rb on sparc-solaris-2.10 (64bit)](https://www.ruby-forum.com/t/bug-1977-test-failed-in-test-isdigit-in-test-dl-test-func-rb-on-sparc-solaris-2-10-64bit/174168)

<div class="topic-metadata">

**Author:** [@Naohisa\_G](https://www.ruby-forum.com/u/Naohisa_G)\
**Replies:** 3\
**Last updated:** [February 3, 2010, 8:13am UTC](https://www.ruby-forum.com/t/bug-1977-test-failed-in-test-isdigit-in-test-dl-test-func-rb-on-sparc-solaris-2-10-64bit/174168 "2010-02-03T08:13:49Z")

</div>

Bug #1977: test failed in test\_isdigit in test/dl/test\_func.rb on sparc-solaris-2.10 (64bit) http://redmine.ruby-lang.org/issues/show/1977 e$B5/I\<\<Te(B: Naohisa G. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -…

---

## [Load issue with roo](https://www.ruby-forum.com/t/load-issue-with-roo/182796)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 2:42am UTC](https://www.ruby-forum.com/t/load-issue-with-roo/182796 "2010-02-03T02:42:32Z")

</div>

could someone point me in the direction of a solution to this error? $ irb irb(main):001:0\> require ‘rubygems’ =\> true irb(main):002:0\> require ‘roo’ LoadError: no such file to load – builder from /usr/lib/ruby/1.…

---

## [Errno::ENOENT: No such file or directory - --readline](https://www.ruby-forum.com/t/errno-no-such-file-or-directory-readline/182728)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 6\
**Last updated:** [February 3, 2010, 1:12am UTC](https://www.ruby-forum.com/t/errno-no-such-file-or-directory-readline/182728 "2010-02-03T01:12:34Z")

</div>

I cannot find a resolution to this problem and figured someone here probably can tell me what I need to do to fix it; there are so many intelligent, learned and helpful people here. (Thanks in advance.) I’ve searched …

---

## [Including internal interface](https://www.ruby-forum.com/t/including-internal-interface/182795)

<div class="topic-metadata">

**Author:** [@Jonathan\_Shore](https://www.ruby-forum.com/u/Jonathan_Shore)\
**Replies:** 1\
**Last updated:** [February 3, 2010, 1:00am UTC](https://www.ruby-forum.com/t/including-internal-interface/182795 "2010-02-03T01:00:03Z")

</div>

Supposing I have a java class and internally has an interface: package test; public class Foo { public interface Bar { double f (double x); } } In JRuby, if I have the following: class Impl include Java::test.…

---

## [Strange performance results ruby / jruby](https://www.ruby-forum.com/t/strange-performance-results-ruby-jruby/182792)

<div class="topic-metadata">

**Author:** [@ADG\_ADG](https://www.ruby-forum.com/u/ADG_ADG)\
**Replies:** 3\
**Last updated:** [February 3, 2010, 12:58am UTC](https://www.ruby-forum.com/t/strange-performance-results-ruby-jruby/182792 "2010-02-03T00:58:18Z")

</div>

each is faster in ruby- inject is fast in jruby- inject is much slower than each in ruby (and jruby) example: require ‘benchmark’ def sum\_upto\_inject(nr) (1…nr).inject(0) { |sum,n| sum+n }end def sum\_upto\_each(nr)…

---

## [Embedding Q: calling ruby lambda's from java](https://www.ruby-forum.com/t/embedding-q-calling-ruby-lambdas-from-java/182786)

<div class="topic-metadata">

**Author:** [@Jonathan\_Shore](https://www.ruby-forum.com/u/Jonathan_Shore)\
**Replies:** 5\
**Last updated:** [February 3, 2010, 12:15am UTC](https://www.ruby-forum.com/t/embedding-q-calling-ruby-lambdas-from-java/182786 "2010-02-03T00:15:35Z")

</div>

Hi, I am new to both JRuby and Ruby itself, so excuse me if I stumble a bit here. I had previously been using Jython and way in the distant past Rhino. In both of these environments I could evaluate some script t…

---

## [Red Dirt RubyConf](https://www.ruby-forum.com/t/red-dirt-rubyconf/182800)

<div class="topic-metadata">

**Author:** [@James\_Edward\_GSII](https://www.ruby-forum.com/u/James_Edward_GSII)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/red-dirt-rubyconf/182800 "2010-02-02T23:18:14Z")

</div>

I just wanted to send a message announcing our new regional Ruby conference, for those of us who don’t live on a coast: :wink: Red Dirt RubyConf: http://reddirtrubyconf.com/ We’re now accepting proposals for present…

---

## [Ruby/Informix 0.7.3](https://www.ruby-forum.com/t/ruby-informix-0-7-3/182799)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 11:04pm UTC](https://www.ruby-forum.com/t/ruby-informix-0-7-3/182799 "2010-02-02T23:04:46Z")

</div>

Ruby/Informix is a library for connecting to an existing Informix database. The core of this library is written in ESQL/C, enabling Ruby/Informix to connect to any version of Informix. This is a minor change to make …

---

## [ActiveMerchant 1.5.0 Released](https://www.ruby-forum.com/t/activemerchant-1-5-0-released/182766)

<div class="topic-metadata">

**Author:** [@cody\_f](https://www.ruby-forum.com/u/cody_f)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/activemerchant-1-5-0-released/182766 "2010-02-02T22:57:02Z")

</div>

I’m happy to announce the release of ActiveMerchant 1.5.0. This is a big release that contains 9 new gateways, many enhancements to the existing gateways and support for Ruby 1.9. Thanks to all the contributors of the…

---

## [Writing to database row based on column name with FasterCSV](https://www.ruby-forum.com/t/writing-to-database-row-based-on-column-name-with-fastercsv/182790)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [February 2, 2010, 9:27pm UTC](https://www.ruby-forum.com/t/writing-to-database-row-based-on-column-name-with-fastercsv/182790 "2010-02-02T21:27:21Z")

</div>

Hello all, I’ve added a couple new columns to a database table. I was trying to add default data as the .csv file is being read into the table. I’m not sure on how to do this. import\_irb\_file - def import\_irb\_file …

---

## [\[ANN\] Loofah has an HTML injection / XSS vulnerability, please upgrade to 0.4.6](https://www.ruby-forum.com/t/ann-loofah-has-an-html-injection-xss-vulnerability-please-upgrade-to-0-4-6/182793)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 8:53pm UTC](https://www.ruby-forum.com/t/ann-loofah-has-an-html-injection-xss-vulnerability-please-upgrade-to-0-4-6/182793 "2010-02-02T20:53:03Z")

</div>

Synopsis Loofah::HTML::Document#text emits unencoded HTML entities prior to 0.4.6. This was originally by design, since the output of #text is intended to be used in a non-HTML context (such as generation of human-re…

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

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