# Ruby

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

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

---

## [Looking for documentation about special clr related methods](https://www.ruby-forum.com/t/looking-for-documentation-about-special-clr-related-methods/169979)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 9:47pm UTC](https://www.ruby-forum.com/t/looking-for-documentation-about-special-clr-related-methods/169979 "2009-06-10T21:47:12Z")

</div>

Hi, I’ve seen that IR objects have special methods like to\_clr\_type, clr\_member, clr\_ctor and more. String also has its own to\_clr\_string method. Is there a document or site or a piece of paper that has a list of the…

---

## [Ruby 1.9.1 RPM for CentOS/RHEL4 is now available](https://www.ruby-forum.com/t/ruby-1-9-1-rpm-for-centos-rhel4-is-now-available/169978)

<div class="topic-metadata">

**Author:** [@Aaron\_T](https://www.ruby-forum.com/u/Aaron_T)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rpm-for-centos-rhel4-is-now-available/169978 "2009-06-10T21:42:51Z")

</div>

I’ve just posted our ruby 1.9.1p129 src.rpm for CentOS/RHEL4. I’m intentionally not posting binary packages, since many people will probably want pthread support (enabled by default) but doing so breaks tcltk support…

---

## [Live demo of ironruby mvc](https://www.ruby-forum.com/t/live-demo-of-ironruby-mvc/169891)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [June 10, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/live-demo-of-ironruby-mvc/169891 "2009-06-10T20:21:22Z")

</div>

Hi I’ve put a working demo live on IIS 7 with IronRuby MVC a very simple task list application http://irtodo.koolkraft.net the source can be found: http://github.com/casualjim/ironrubymvc-sample you can login with …

---

## [Wrapping an existing java library](https://www.ruby-forum.com/t/wrapping-an-existing-java-library/169353)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 15\
**Last updated:** [June 10, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/wrapping-an-existing-java-library/169353 "2009-06-10T20:02:01Z")

</div>

In my daily work I need to wrap an existing java library and put a pretty little ruby interface on it. I thought I’d take this opportunity to write up how to do it and add it to the wiki. However, I don’t know how to …

---

## [Code Review: StructNew](https://www.ruby-forum.com/t/code-review-structnew/169967)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/code-review-structnew/169967 "2009-06-10T19:40:54Z")

</div>

tfpt review “/shelveset:StructNew;REDMOND\\tomat” Comment : Fixes allocation of structs. A struct can always be allocated by calling new or allocate with no parameters or calling its constructor if available. Tomas

---

## [JRuby: Instance/Object method ovveride on a JPanel fails?](https://www.ruby-forum.com/t/jruby-instance-object-method-ovveride-on-a-jpanel-fails/169966)

<div class="topic-metadata">

**Author:** [@Curator1](https://www.ruby-forum.com/u/Curator1)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/jruby-instance-object-method-ovveride-on-a-jpanel-fails/169966 "2009-06-10T19:36:48Z")

</div>

With the caveat I’m new to JRuby but have 20 years of software experience: I like when learning a new language to play around with how to do things. So in one case I did the two standard java idioms in JRuby to disp…

---

## [More Interop Qs (Out, Ref and Structs)](https://www.ruby-forum.com/t/more-interop-qs-out-ref-and-structs/169858)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 6\
**Last updated:** [June 10, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/more-interop-qs-out-ref-and-structs/169858 "2009-06-10T19:27:23Z")

</div>

Hi there, I’ve got a few more questions regarding interop scenarios: What happens with out parameters in methods? Currently when I try to use them I get an error: :0: can’t convert String into System::Runtime::Com…

---

## [What might prevent hot deployment with JRuby + Jetty?](https://www.ruby-forum.com/t/what-might-prevent-hot-deployment-with-jruby-jetty/169956)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/what-might-prevent-hot-deployment-with-jruby-jetty/169956 "2009-06-10T18:57:30Z")

</div>

I’m developing a JRuby on Rails application on top of Google App Engine for Java which uses the Jetty server integrated into Eclipse. Development is painfully slow - to the point of being impossible - because in Ecl…

---

## [Inheriting socket in child process on Windows](https://www.ruby-forum.com/t/inheriting-socket-in-child-process-on-windows/169923)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [June 10, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/inheriting-socket-in-child-process-on-windows/169923 "2009-06-10T16:42:26Z")

</div>

Hello, list In my Ruby application, I accept TCP connections from several clients. When any client sends a particular command, I want to spawn a child process in place of the parent process that will continue to ser…

---

## [Getting user input from user on a webpage?](https://www.ruby-forum.com/t/getting-user-input-from-user-on-a-webpage/169897)

<div class="topic-metadata">

**Author:** [@b1gtuna](https://www.ruby-forum.com/u/b1gtuna)\
**Replies:** 4\
**Last updated:** [June 10, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/getting-user-input-from-user-on-a-webpage/169897 "2009-06-10T16:41:50Z")

</div>

Hello, I was wondering if there is a way for a ruby script to get a user input when it’s running on a webserver. I need a basic function like where there user can click on a button on a website which will invoke a met…

---

## [Rubyforge site down?](https://www.ruby-forum.com/t/rubyforge-site-down/169915)

<div class="topic-metadata">

**Author:** [@phasis](https://www.ruby-forum.com/u/phasis)\
**Replies:** 6\
**Last updated:** [June 10, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/rubyforge-site-down/169915 "2009-06-10T15:42:30Z")

</div>

It’s not just you! http://rubyforge.org looks down from here. Regards, Park H.

---

## [Gettin an input from user on html](https://www.ruby-forum.com/t/gettin-an-input-from-user-on-html/169877)

<div class="topic-metadata">

**Author:** [@b1gtuna](https://www.ruby-forum.com/u/b1gtuna)\
**Replies:** 3\
**Last updated:** [June 10, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/gettin-an-input-from-user-on-html/169877 "2009-06-10T15:34:08Z")

</div>

Hello everyone, I am writing a small ruby script that lists all the files in a directory in a server at my work. I wanna make buttons which users can click to sort the files. Being a complete newbie, I don’t know how …

---

## [Find out the name of a user, on a given file/dir/symlink?](https://www.ruby-forum.com/t/find-out-the-name-of-a-user-on-a-given-file-dir-symlink/169849)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [June 10, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/find-out-the-name-of-a-user-on-a-given-file-dir-symlink/169849 "2009-06-10T13:45:41Z")

</div>

Right now I use this: require ‘fileutils’ require ‘etc’ require ‘pp’ FileUtils.touch ‘test’ name = Etc.getpwuid(File.stat(‘test’).uid).name puts name This gives me the name of the file/dir/symlink in question, i.e …

---

## [Hosting Ruby in C#](https://www.ruby-forum.com/t/hosting-ruby-in-c/169739)

<div class="topic-metadata">

**Author:** [@Durgaprasad\_Gorti](https://www.ruby-forum.com/u/Durgaprasad_Gorti)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/hosting-ruby-in-c/169739 "2009-06-10T13:04:44Z")

</div>

Folks, I am trying to integrate Ruby into a C# app. For this, I am trying to use the .NET interop. It looks like the dll I would like use (On windows Platform) is the msvcrt-ruby18.dll. The dll above seems to export…

---

## [Observable on Set?](https://www.ruby-forum.com/t/observable-on-set/169928)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 11:47am UTC](https://www.ruby-forum.com/t/observable-on-set/169928 "2009-06-10T11:47:51Z")

</div>

Quick question, is there a reason why Observable uses an Array for storage instead of a Set? Wouldn’t a Set be faster, especially for removing observers? Are there other places in the standard library where use of da…

---

## [Job Tips!](https://www.ruby-forum.com/t/job-tips/169927)

<div class="topic-metadata">

**Author:** [@Jaggu\_BN](https://www.ruby-forum.com/u/Jaggu_BN)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 11:25am UTC](https://www.ruby-forum.com/t/job-tips/169927 "2009-06-10T11:25:36Z")

</div>

check out this for more… http://www.netinfocentre.com/InterviewSkills.html

---

## [Timeout updating system](https://www.ruby-forum.com/t/timeout-updating-system/169829)

<div class="topic-metadata">

**Author:** [@CainesS\_Max](https://www.ruby-forum.com/u/CainesS_Max)\
**Replies:** 3\
**Last updated:** [June 10, 2009, 10:25am UTC](https://www.ruby-forum.com/t/timeout-updating-system/169829 "2009-06-10T10:25:51Z")

</div>

Hi I’ve just installed Ruby (186-27) using the one-step installer on Windows (XP SP3). I want to install Watir, so I need to update the system. However, when I run “gen update --system” I get: Updating RubyGems WA…

---

## [JRuby Javadocs Are they online?](https://www.ruby-forum.com/t/jruby-javadocs-are-they-online/169913)

<div class="topic-metadata">

**Author:** [@Paul\_F\_Fraser](https://www.ruby-forum.com/u/Paul_F_Fraser)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 8:22am UTC](https://www.ruby-forum.com/t/jruby-javadocs-are-they-online/169913 "2009-06-10T08:22:12Z")

</div>

Charlie, You mentioned some time ago, that publishing the jruby javadocs would be a good idea. Are they online anywhere at present? Thanks Paul F Fraser To unsubscribe from this list, please visit: http://xircles…

---

## [Treetop grammar problem](https://www.ruby-forum.com/t/treetop-grammar-problem/169905)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 7:51am UTC](https://www.ruby-forum.com/t/treetop-grammar-problem/169905 "2009-06-10T07:51:46Z")

</div>

I have devised this grammar for roman numerals for treetop. grammar RomanNumeral rule roman\_numeral ('MMM' / 'MM' / 'M')? (('C' \[DM\]) / ('D'? ('CCC' / 'CC' / 'C')?))? (('X' \[LC\]) / ('L'? ('XXX' …

---

## [Eventmachine get\_peername not implemented](https://www.ruby-forum.com/t/eventmachine-get-peername-not-implemented/169903)

<div class="topic-metadata">

**Author:** [@Paul\_F\_Fraser](https://www.ruby-forum.com/u/Paul_F_Fraser)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 6:57am UTC](https://www.ruby-forum.com/t/eventmachine-get-peername-not-implemented/169903 "2009-06-10T06:57:25Z")

</div>

It seems that “get\_peername” has not yet been implemented for eventmachine jruby version. Is anyone at this time able to implement this or provide guidance as to what needs to be done? Thanks Paul F Fraser To unsu…

---

## [.irbrc on Windows](https://www.ruby-forum.com/t/irbrc-on-windows/169902)

<div class="topic-metadata">

**Author:** [@jflint](https://www.ruby-forum.com/u/jflint)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 5:42am UTC](https://www.ruby-forum.com/t/irbrc-on-windows/169902 "2009-06-10T05:42:01Z")

</div>

I have read all of the help on this topic and I still cannot get irb to load the file. I have added the environmental variables: IRBRC HOME with no effect. Is there a snappy way to get this to work? Jeff

---

## [How to use open-uri](https://www.ruby-forum.com/t/how-to-use-open-uri/169887)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 5\
**Last updated:** [June 10, 2009, 4:41am UTC](https://www.ruby-forum.com/t/how-to-use-open-uri/169887 "2009-06-10T04:41:27Z")

</div>

Hi, I am using the following code to do some screen scraping but it says “no such file to load open-uri”. Here is the code: require ‘open-uri’ require ‘uri’ class Person def greet() puts 'he…

---

## [Writing a Y-Combinator in Ruby 1.9](https://www.ruby-forum.com/t/writing-a-y-combinator-in-ruby-1-9/169904)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 4:07am UTC](https://www.ruby-forum.com/t/writing-a-y-combinator-in-ruby-1-9/169904 "2009-06-10T04:07:23Z")

</div>

i’ve read http://weblog.raganwald.com/2007/02/guest-blogger-tom-moertel-derives-y.html and finally figured out this: a trick to make currying easier class Proc def -@ self.curry end end def Y &f g = → h, x, \*…

---

## [RubyKaigi2009 Tickets Now Available](https://www.ruby-forum.com/t/rubykaigi2009-tickets-now-available/169241)

<div class="topic-metadata">

**Author:** [@Leonard\_C](https://www.ruby-forum.com/u/Leonard_C)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 3:38am UTC](https://www.ruby-forum.com/t/rubykaigi2009-tickets-now-available/169241 "2009-06-10T03:38:39Z")

</div>

Tickets for RubyKaigi 2009 go on sale from 7pm JST today (Monday, June 1st. RubyKaigi 2009 will be held in Tokyo, Japan, and will run over 3 days from Friday, July 17th until Saturday, July 19th. Further details at th…

---

## [Ruby 1.9.x Concurrency](https://www.ruby-forum.com/t/ruby-1-9-x-concurrency/169818)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 19\
**Last updated:** [June 10, 2009, 2:26am UTC](https://www.ruby-forum.com/t/ruby-1-9-x-concurrency/169818 "2009-06-10T02:26:43Z")

</div>

Poking through the Apple press releases today, I sat up and took notice when I saw that they were putting a fair amount of pretty public emphasis on concurrency as the silver bullet for faster computing when Snow Leop…

---

## [Binaryparse: length in bytes of block definition?](https://www.ruby-forum.com/t/binaryparse-length-in-bytes-of-block-definition/169719)

<div class="topic-metadata">

**Author:** [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Replies:** 4\
**Last updated:** [June 10, 2009, 2:20am UTC](https://www.ruby-forum.com/t/binaryparse-length-in-bytes-of-block-definition/169719 "2009-06-10T02:20:17Z")

</div>

Hi, is there a way to derive the size in bytes of a custom BinaryBlocker::Blocker definition? class Foo \< BinaryBlocker::Blocker has\_one :offset, :int32 has\_one :length, :int32 end Deriving the length would yield …

---

## [Cross-platform way to list all drives/volumes/mount-points?](https://www.ruby-forum.com/t/cross-platform-way-to-list-all-drives-volumes-mount-points/169636)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [June 10, 2009, 1:43am UTC](https://www.ruby-forum.com/t/cross-platform-way-to-list-all-drives-volumes-mount-points/169636 "2009-06-10T01:43:27Z")

</div>

Hey all, I’m looking for a way to reliably list all drive letters or volume names or mount points on a system. Google has not helped me. Best I could find was java.io.File.listRoots(), but on my Linux box it simply …

---

## [Doing something each second](https://www.ruby-forum.com/t/doing-something-each-second/169844)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 6\
**Last updated:** [June 10, 2009, 1:38am UTC](https://www.ruby-forum.com/t/doing-something-each-second/169844 "2009-06-10T01:38:46Z")

</div>

Hi, is it possible to execute a block each second for let’s say 8 hours a day? Instead of using threads maybe. Something like this: Time.each.second do { stuff } Thanks Cheers, Chris

---

## [Rkelly 1.0.1 Released](https://www.ruby-forum.com/t/rkelly-1-0-1-released/169805)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 10\
**Last updated:** [June 10, 2009, 1:27am UTC](https://www.ruby-forum.com/t/rkelly-1-0-1-released/169805 "2009-06-10T01:27:05Z")

</div>

I have no idea how this happened, but I’m sure that someone pulling out a Beretta was involved. Anyway, here it is: rkelly version 1.0.1 has been released! http://rkelly.rubyforge.org/ The RKelly library will pars…

---

## [MySql for Ruby 1.9.1](https://www.ruby-forum.com/t/mysql-for-ruby-1-9-1/169812)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 12:10am UTC](https://www.ruby-forum.com/t/mysql-for-ruby-1-9-1/169812 "2009-06-10T00:10:15Z")

</div>

For Linux and Ruby 1.9.1-p129, is the default mysql gem used: sudo gem install hectoregm-mysql-ruby ? I checked Page not found • World Affairs Council of Cincinnati and Northern Kentucky-OPE体育电竞 and it seemed that a fe…

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

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