# Ruby

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

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

---

## [RubyFrontier 0.9.4](https://www.ruby-forum.com/t/rubyfrontier-0-9-4/172758)

<div class="topic-metadata">

**Author:** [@n1ghtshade3](https://www.ruby-forum.com/u/n1ghtshade3)\
**Replies:** 2\
**Last updated:** [July 28, 2009, 2:16am UTC](https://www.ruby-forum.com/t/rubyfrontier-0-9-4/172758 "2009-07-28T02:16:06Z")

</div>

\[I’ve announced this to the Frontier list and the TextMate list, but since it’s written entirely in Ruby - and since, indeed, the fact that it’s written in Ruby is part of the point - I suppose I should mention it here t…

---

## [Hoe-git 1.3.0 Released](https://www.ruby-forum.com/t/hoe-git-1-3-0-released/172780)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 12:15am UTC](https://www.ruby-forum.com/t/hoe-git-1-3-0-released/172780 "2009-07-28T00:15:34Z")

</div>

hoe-git version 1.3.0 has been released! http://github.com/jbarnette/hoe-git A set of Hoe plugins for tighter Git integration. Provides tasks to automate release tagging and pushing and changelog generation. I expec…

---

## [Ruby Socket to Java Socket](https://www.ruby-forum.com/t/ruby-socket-to-java-socket/149462)

<div class="topic-metadata">

**Author:** [@seurdge](https://www.ruby-forum.com/u/seurdge)\
**Replies:** 7\
**Last updated:** [July 28, 2009, 12:14am UTC](https://www.ruby-forum.com/t/ruby-socket-to-java-socket/149462 "2009-07-28T00:14:43Z")

</div>

Hello ! I have some problem trying to establish dialog between a Ruby socket(client) and a Java server socket (java.net.ServerSocket). Everytime I try to write on the server socket I get an “Invalid stream header” er…

---

## [Who is the MySQL/Ruby binding gem author?](https://www.ruby-forum.com/t/who-is-the-mysql-ruby-binding-gem-author/172737)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [July 28, 2009, 12:00am UTC](https://www.ruby-forum.com/t/who-is-the-mysql-ruby-binding-gem-author/172737 "2009-07-28T00:00:56Z")

</div>

Hello everybody, In my quest to conquer the world, I’m looking for information on how to get in touch with MySQL/Ruby gem author. I’m aware that “mysql” gem is a wrapper around tmtm C extension: http://www.tmtm.org/e…

---

## [Ext/tk/extconf.rb should call find\_library in all paths](https://www.ruby-forum.com/t/ext-tk-extconf-rb-should-call-find-library-in-all-paths/172563)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 2\
**Last updated:** [July 27, 2009, 9:56pm UTC](https://www.ruby-forum.com/t/ext-tk-extconf-rb-should-call-find-library-in-all-paths/172563 "2009-07-27T21:56:52Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B ext/tk/extconf.rbe$B$G$b$&0lE@$"$k$N$G$9$,!"e(Bfind\_tcle$B$de(Bfind\_tke$B$Ne(B e$BCf$Ge(Breturn truee$B$7$A$c$&%Q%9$K$D$$$F$b!"e(Bfind\_library(e$B$J$j$J$se(B e$B$J$je(…

---

## [New gem available: rmb-rails](https://www.ruby-forum.com/t/new-gem-available-rmb-rails/172774)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 0\
**Last updated:** [July 27, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/new-gem-available-rmb-rails/172774 "2009-07-27T21:44:35Z")

</div>

Hi all, I just submitted a new gem, called rmb-rails, to github, you can find it at git://github.com/explainer/rmb-rails. This gem provides a mechanism for subscribing to message brokers (such as ActiveMQ) in a daem…

---

## [Set class and repetetive elements](https://www.ruby-forum.com/t/set-class-and-repetetive-elements/172770)

<div class="topic-metadata">

**Author:** [@asmo](https://www.ruby-forum.com/u/asmo)\
**Replies:** 6\
**Last updated:** [July 27, 2009, 9:23pm UTC](https://www.ruby-forum.com/t/set-class-and-repetetive-elements/172770 "2009-07-27T21:23:52Z")

</div>

Hi, I would like to know if there is possibility to add values like but have a few elemens with the same value: irb(main):002:0\> require ‘set’ =\> true irb(main):003:0\> a = Set.new =\> #\<Set: {}\> irb(main):004:0\> a.…

---

## [How to get amount of allocated memory from within a process (heap size)](https://www.ruby-forum.com/t/how-to-get-amount-of-allocated-memory-from-within-a-process-heap-size/172634)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 4\
**Last updated:** [July 27, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/how-to-get-amount-of-allocated-memory-from-within-a-process-heap-size/172634 "2009-07-27T20:57:10Z")

</div>

What would be a good way to determine the current heap size (VSZ) for a process on Linux? I always used sbrk(0) for that, which used to return the top of the heap. However recently, to my dismay, I discovered that it …

---

## [I just can't understand why this program is not working](https://www.ruby-forum.com/t/i-just-cant-understand-why-this-program-is-not-working/172762)

<div class="topic-metadata">

**Author:** [@prateekagarwal](https://www.ruby-forum.com/u/prateekagarwal)\
**Replies:** 4\
**Last updated:** [July 27, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/i-just-cant-understand-why-this-program-is-not-working/172762 "2009-07-27T19:55:48Z")

</div>

Can someone please tell me what the problem with this program is? When I run it, I am able to input the values but I am not getting any results. It just hangs after that. Then I press ‘ctrl+c’, and I get some ‘interru…

---

## [Not Passing On Command Line Arguments](https://www.ruby-forum.com/t/not-passing-on-command-line-arguments/172593)

<div class="topic-metadata">

**Author:** [@Dylan](https://www.ruby-forum.com/u/Dylan)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/not-passing-on-command-line-arguments/172593 "2009-07-27T18:35:29Z")

</div>

Hey there! I have a question about passing command line arguments. I have a list of arguments I’d like to use alongside a couple built in to Test::Case. However, I keep getting an “invalid argument” error every time. …

---

## [Raw bytes in 1.9](https://www.ruby-forum.com/t/raw-bytes-in-1-9/172741)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 7\
**Last updated:** [July 27, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/raw-bytes-in-1-9/172741 "2009-07-27T18:04:56Z")

</div>

I want to stick raw bytes (0-255) into a variable. This will work in Ruby 1.8 since that it always assumes that the characters in strings are exactly bytes. But I’m not sure about Ruby 1.9 as it has per-string charact…

---

## [Rails](https://www.ruby-forum.com/t/rails/172755)

<div class="topic-metadata">

**Author:** [@Haris\_BogdanoviS\_S](https://www.ruby-forum.com/u/Haris_BogdanoviS_S)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/rails/172755 "2009-07-27T16:37:14Z")

</div>

Could someone explain to me: class Movie \<\< ActiveRecord::Base has\_many :Actors end How can I call a method within class definition ? This is not Ruby anymore. And this : semicolon stands for symbol. Never heard of…

---

## [Watching a website for periodic outages](https://www.ruby-forum.com/t/watching-a-website-for-periodic-outages/172596)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 13\
**Last updated:** [July 27, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/watching-a-website-for-periodic-outages/172596 "2009-07-27T15:48:40Z")

</div>

I’m needing to monitor a web application for periodic outages and log the duration. I originally tried this with SafariWatir as the login is javascript so I can’t use Mechanize. However Watir seems to give up if the…

---

## [Ruby and --enable-pthread](https://www.ruby-forum.com/t/ruby-and-enable-pthread/172739)

<div class="topic-metadata">

**Author:** [@denisb](https://www.ruby-forum.com/u/denisb)\
**Replies:** 0\
**Last updated:** [July 27, 2009, 10:08am UTC](https://www.ruby-forum.com/t/ruby-and-enable-pthread/172739 "2009-07-27T10:08:57Z")

</div>

Hi guys, Sorry, maybe this is a simple question but what compiling ruby with –enable-pthread actually does? Does it mean that with this option I will have thread support in Ruby and without it there will be no thread…

---

## [Visual Test Automation](https://www.ruby-forum.com/t/visual-test-automation/172705)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [July 27, 2009, 9:20am UTC](https://www.ruby-forum.com/t/visual-test-automation/172705 "2009-07-27T09:20:32Z")

</div>

OK, I guess I just don’t kow to find it, but I’m looking for something that automates the running of Ruby Test::Unit tests and generates one of those “red bar / green bar” displays. I see a billion “automet the browse…

---

## [CGenerator is now a gem](https://www.ruby-forum.com/t/cgenerator-is-now-a-gem/172735)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 0\
**Last updated:** [July 27, 2009, 7:48am UTC](https://www.ruby-forum.com/t/cgenerator-is-now-a-gem/172735 "2009-07-27T07:48:03Z")

</div>

CGenerator is a framework for dynamically generating and loading C extensions from Ruby programs. Includes CShadow module for defining classes in terms of C structs with accessors and inheritance. It’s been in use for…

---

## [How to execute oracle store procedure using Jruby](https://www.ruby-forum.com/t/how-to-execute-oracle-store-procedure-using-jruby/172567)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 6:57am UTC](https://www.ruby-forum.com/t/how-to-execute-oracle-store-procedure-using-jruby/172567 "2009-07-27T06:57:38Z")

</div>

Dear all Sorry that I am very green to jruby. Is there any example to show how to execute store procedure in oracle. I have used google to search, but the result is not in my expectation. I have a store procedure (PR…

---

## [Rb\_eval\_string\_protect and encoding](https://www.ruby-forum.com/t/rb-eval-string-protect-and-encoding/172678)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 6\
**Last updated:** [July 27, 2009, 4:03am UTC](https://www.ruby-forum.com/t/rb-eval-string-protect-and-encoding/172678 "2009-07-27T04:03:16Z")

</div>

e$B=uED$G$9!#e(B rb\_eval\_string\_protect e$B$He(B Encoding e$B$K4X$9$k\<ALd$G$9!#e(B e$B\<!$N%=!\<%9$N\<B9T7k2L$N:G8e$N9T$re(B #Encoding:EUC-JP e$B$H$9$k$?$a$K$O!"$I$&$9$l$P$$$$$s$G$7$g$&$+!)e(B rb\_eval\_string\_protect e…

---

## [Omnifocus-rubyforge 1.0.0 Released](https://www.ruby-forum.com/t/omnifocus-rubyforge-1-0-0-released/172725)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [July 27, 2009, 1:16am UTC](https://www.ruby-forum.com/t/omnifocus-rubyforge-1-0-0-released/172725 "2009-07-27T01:16:29Z")

</div>

omnifocus-rubyforge version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb Plugin for omnifocus gem to provide rubyforge BTS synchronization. Changes: 1.0.0 / 2009-07-26 1 major enhancement Bi…

---

## [Omnifocus 1.0.0 Released](https://www.ruby-forum.com/t/omnifocus-1-0-0-released/172723)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [July 27, 2009, 1:15am UTC](https://www.ruby-forum.com/t/omnifocus-1-0-0-released/172723 "2009-07-27T01:15:19Z")

</div>

omnifocus version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb Synchronizes bug tracking systems to omnifocus. Changes: 1.0.0 / 2009-07-26 1 major enhancement Birthday!

---

## [.gemrc obscurity](https://www.ruby-forum.com/t/gemrc-obscurity/172718)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 1:13am UTC](https://www.ruby-forum.com/t/gemrc-obscurity/172718 "2009-07-27T01:13:33Z")

</div>

Is it just me? I have to put a colon at the front of my attribute names so they look like symbols to get anything to work in my .gemrc file. i.e. this does NOT work: gemhome: /home/pedzsan/ruby/gems gempath: /hom…

---

## [Cartesian product of arrays](https://www.ruby-forum.com/t/cartesian-product-of-arrays/83464)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 30\
**Last updated:** [July 26, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/cartesian-product-of-arrays/83464 "2009-07-26T23:40:45Z")

</div>

Hello, did I miss some standard library function? Anyway, then I’ll do it on my own: def cartprod(\*args) result = \[\[\]\] while \[\] != args t, result = result, \[\] b, \*args = args t.each do |a| b.each do |n| result \<…

---

## [Lone Star Ruby Conference 2009 - Early Registration Ending Soon](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-early-registration-ending-soon/172720)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 26, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-early-registration-ending-soon/172720 "2009-07-26T22:34:21Z")

</div>

Greetings from Austin - Home of the Lone Star Ruby Conference. While you’re enjoying your summer, I hope you haven’t forgot to register for the Lone Star Ruby Conference. This year will be bigger and better than ever.…

---

## [Does mongrel ever freeze up?](https://www.ruby-forum.com/t/does-mongrel-ever-freeze-up/172602)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 3\
**Last updated:** [July 26, 2009, 8:31pm UTC](https://www.ruby-forum.com/t/does-mongrel-ever-freeze-up/172602 "2009-07-26T20:31:26Z")

</div>

I am seeing a small Rails app freeze up after being up for a while. It appears to be unrelated to usage, but to happen after about a months’ or more time.

---

## [Prototype-Based Inheritance (#214)](https://www.ruby-forum.com/t/prototype-based-inheritance-214/171897)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 5\
**Last updated:** [July 26, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/prototype-based-inheritance-214/171897 "2009-07-26T20:21:29Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Possible bug in rb\_float\_new()?](https://www.ruby-forum.com/t/possible-bug-in-rb-float-new/172714)

<div class="topic-metadata">

**Author:** [@Francisco\_TufrSSS\_S](https://www.ruby-forum.com/u/Francisco_TufrSSS_S)\
**Replies:** 2\
**Last updated:** [July 26, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/possible-bug-in-rb-float-new/172714 "2009-07-26T19:00:07Z")

</div>

Hi, when writing the ruby bindings for libsndfile i had a problem with float numbers. I have abstracted the important code and i put it right here, is something i’m doind not right or a bug? You can check the code at…

---

## [\[Bug #1789\] TCPSocket#read returns untainted string](https://www.ruby-forum.com/t/bug-1789-tcpsocket-read-returns-untainted-string/172315)

<div class="topic-metadata">

**Author:** [@masa16](https://www.ruby-forum.com/u/masa16)\
**Replies:** 2\
**Last updated:** [July 26, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/bug-1789-tcpsocket-read-returns-untainted-string/172315 "2009-07-26T17:37:35Z")

</div>

Bug #1789: TCPSocket#read returns untainted string http://redmine.ruby-lang.org/issues/show/1789 e$B5/I\<\<Te(B: Masahiro T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext ruby -v: 1.9.2dev (2009-07-…

---

## [C extension and Ruby threads](https://www.ruby-forum.com/t/c-extension-and-ruby-threads/172698)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [July 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/c-extension-and-ruby-threads/172698 "2009-07-26T14:01:02Z")

</div>

Hi all, I’ve found something a bit weird while trying to make a C extension wrapping a custom network library : My extension creates a BaseClient class with a method ‘receive’ (it basically wait a response from a se…

---

## [How to integrate Ruby 1.9 in Netbeans 6.7?](https://www.ruby-forum.com/t/how-to-integrate-ruby-1-9-in-netbeans-6-7/172573)

<div class="topic-metadata">

**Author:** [@thiel](https://www.ruby-forum.com/u/thiel)\
**Replies:** 3\
**Last updated:** [July 26, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/how-to-integrate-ruby-1-9-in-netbeans-6-7/172573 "2009-07-26T12:55:52Z")

</div>

Hi --, I use the Netbeans 6.7 IDE for my Ruby programs and I want to use Ruby 1.9 in it. Does anyone know how I can integrate Ruby 1.9 in Netbeans 6.7? Thanks in advance, Thiel C.

---

## [Filesize v. 0.0.1](https://www.ruby-forum.com/t/filesize-v-0-0-1/172706)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 26, 2009, 10:08am UTC](https://www.ruby-forum.com/t/filesize-v-0-0-1/172706 "2009-07-26T10:08:08Z")

</div>

filesize.rb\[1\]\[2\] provides a class for easily working with file sizes. That means: Parsing strings (e.g. “1 GiB”) and saving it internally as bytes Handling both SI and binary prefixes Converting from any type and uni…

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

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