# Ruby

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

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

---

## [Q: hash parameter passed to c++ ruby extension is incomplete](https://www.ruby-forum.com/t/q-hash-parameter-passed-to-c-ruby-extension-is-incomplete/162552)

<div class="topic-metadata">

**Author:** [@yurid](https://www.ruby-forum.com/u/yurid)\
**Replies:** 2\
**Last updated:** [March 11, 2009, 10:42am UTC](https://www.ruby-forum.com/t/q-hash-parameter-passed-to-c-ruby-extension-is-incomplete/162552 "2009-03-11T10:42:17Z")

</div>

I’m trying to pass following hash to my c++ ruby extension: h1 = {“G804988.19” =\> 0, “G804988.21” =\> 0, “NH3812.06” =\> 0, “NH3812.10” =\> 0} myext.SomeFunction(h1) The hash looks fine from script: h1.each\_pair {| key…

---

## [How to handle windows pop ups](https://www.ruby-forum.com/t/how-to-handle-windows-pop-ups/162547)

<div class="topic-metadata">

**Author:** [@shweta](https://www.ruby-forum.com/u/shweta)\
**Replies:** 0\
**Last updated:** [March 11, 2009, 8:35am UTC](https://www.ruby-forum.com/t/how-to-handle-windows-pop-ups/162547 "2009-03-11T08:35:54Z")

</div>

I have a button with name print Site Info after a click off this button it opens another window with print dialog there i need to click on print button.So i need to know how to handle such windows pop ups i used the c…

---

## [Port scanning in ruby](https://www.ruby-forum.com/t/port-scanning-in-ruby/162528)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 3\
**Last updated:** [March 11, 2009, 2:45am UTC](https://www.ruby-forum.com/t/port-scanning-in-ruby/162528 "2009-03-11T02:45:06Z")

</div>

I was trying to write a simple UDP method to test for snmp, and build from there, and I came across a reference to three articles that looked like they’d help http://www.rubyinside.com/port-scanning-and-monitoring-wit…

---

## [Code Review: scripts](https://www.ruby-forum.com/t/code-review-scripts/162510)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [March 11, 2009, 12:33am UTC](https://www.ruby-forum.com/t/code-review-scripts/162510 "2009-03-11T00:33:32Z")

</div>

tfpt review “/shelveset:scripts;REDMOND\\sborde” Comment : Code change: Small fix in Shell\\CommandLine.cs to deal with newlines consistently (user-reported issue). Scripts: Moves RunRSpec.cmd and irtests.bat from M…

---

## [MacRuby 0.4](https://www.ruby-forum.com/t/macruby-0-4/162358)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 16\
**Last updated:** [March 11, 2009, 12:16am UTC](https://www.ruby-forum.com/t/macruby-0-4/162358 "2009-03-11T00:16:33Z")

</div>

Hi, After several months of development and some slight delays, MacRuby 0.4 is now available. Get it here while it’s still hot! MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac OS X core technol…

---

## [Good Ruby Books in Japanese?](https://www.ruby-forum.com/t/good-ruby-books-in-japanese/162421)

<div class="topic-metadata">

**Author:** [@Sven\_CSKoehler](https://www.ruby-forum.com/u/Sven_CSKoehler)\
**Replies:** 9\
**Last updated:** [March 10, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/good-ruby-books-in-japanese/162421 "2009-03-10T23:58:21Z")

</div>

Hello, I have been using Ruby for seven years now, and started to learn Japanese in the last months–so I am wondering whether there’s a good recent book on Ruby in Japanese–I figure this might be the fastest way to l…

---

## [Eventmachine 0.12.6](https://www.ruby-forum.com/t/eventmachine-0-12-6/162366)

<div class="topic-metadata">

**Author:** [@tmm1](https://www.ruby-forum.com/u/tmm1)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 9:38pm UTC](https://www.ruby-forum.com/t/eventmachine-0-12-6/162366 "2009-03-10T21:38:49Z")

</div>

I am happy to announce the release of eventmachine 0.12.6 This release contains numerous bug fixes and improvements. Highlights include: EM::connection\_count API to get number of active connections in the reactor …

---

## [Cant able to start Ruby server](https://www.ruby-forum.com/t/cant-able-to-start-ruby-server/162474)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 9:34pm UTC](https://www.ruby-forum.com/t/cant-able-to-start-ruby-server/162474 "2009-03-10T21:34:55Z")

</div>

hi all, I downloaded locomotive for MAC (StandardRailsMar2007.dmg) and installed the package in Appliactions/My Rails . I had given given all the parameters in locomotive.yml as below mode: development bundle: /Appl…

---

## [Is this a good idea to increase performance?](https://www.ruby-forum.com/t/is-this-a-good-idea-to-increase-performance/162518)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/is-this-a-good-idea-to-increase-performance/162518 "2009-03-10T21:09:48Z")

</div>

Charles, I know you have been working on Duby so you don’t keep having to write Java code for JRuby. Theory is that static type perf is much faster than for dynamic types. I had a thought pop in my head. Would it be…

---

## [Setting the contents of a file to a variable?](https://www.ruby-forum.com/t/setting-the-contents-of-a-file-to-a-variable/161515)

<div class="topic-metadata">

**Author:** [@Stefan\_Codrescu](https://www.ruby-forum.com/u/Stefan_Codrescu)\
**Replies:** 15\
**Last updated:** [March 10, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/setting-the-contents-of-a-file-to-a-variable/161515 "2009-03-10T19:35:29Z")

</div>

Ok so… Ok… so I have file1 and it contains a number and I want file2 to tell me what that number is file2 would be something like class Tell def get\_num(file = “file1.txt”) num = contents of file1 $num = num end …

---

## [What are the 5 most innovative ruby projects/libraries?](https://www.ruby-forum.com/t/what-are-the-5-most-innovative-ruby-projects-libraries/162324)

<div class="topic-metadata">

**Author:** [@camilleroux](https://www.ruby-forum.com/u/camilleroux)\
**Replies:** 26\
**Last updated:** [March 10, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/what-are-the-5-most-innovative-ruby-projects-libraries/162324 "2009-03-10T19:16:05Z")

</div>

Hi, I’d like to write a post on the most innovative projects in Ruby. I think Ruby is interresting for the language itself and also for its community and it’s what I would like to show. I tought to : Sinatra Capist…

---

## [Fized size record from a string](https://www.ruby-forum.com/t/fized-size-record-from-a-string/162493)

<div class="topic-metadata">

**Author:** [@lucac81](https://www.ruby-forum.com/u/lucac81)\
**Replies:** 4\
**Last updated:** [March 10, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/fized-size-record-from-a-string/162493 "2009-03-10T15:18:10Z")

</div>

Hello, I’m new to Ruby, and I’m learning it with a project that also involves rails… I’m stuck with an apparently simple problem, I receive from a form a String and I need to extend it to a fixed char number (it must …

---

## [Array performance question](https://www.ruby-forum.com/t/array-performance-question/161569)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 6\
**Last updated:** [March 10, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/array-performance-question/161569 "2009-03-10T15:06:24Z")

</div>

Here’s a real Array performance mystery. I can’t help my friend figure this one out. He writes, ======== Is there a known bug in Ruby array performance? I spent a lot of time yesterday boiling down the following exa…

---

## [DBI connect to Intersystems Cache db](https://www.ruby-forum.com/t/dbi-connect-to-intersystems-cache-db/162492)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/dbi-connect-to-intersystems-cache-db/162492 "2009-03-10T14:40:33Z")

</div>

I need assistance setting up a DBI:ODBC connection to an Intersystems Cache’ db. The db is across the network; it’s not on my machine. Frankly, I’m struggling with what to code for the dbi connect. DBI.connect(‘DBI:O…

---

## [Regexp problem](https://www.ruby-forum.com/t/regexp-problem/162472)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 7\
**Last updated:** [March 10, 2009, 11:19am UTC](https://www.ruby-forum.com/t/regexp-problem/162472 "2009-03-10T11:19:36Z")

</div>

I want to extract an “id” parameter from the URL. I use the following code: url = “http://example.com/id=12345” id = url\[ /(?\<=id=)(\\d+)/ \] puts id But I get a SyntaxError telling me “undefined (?..) sequence”. Why…

---

## [$stdout changing?](https://www.ruby-forum.com/t/stdout-changing/162442)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 10:29am UTC](https://www.ruby-forum.com/t/stdout-changing/162442 "2009-03-10T10:29:58Z")

</div>

Is it possible for me to have output that go to the $stdout go through a method instead? ie: Have stuff go through this: def write\_to(str) @socket.send(str, 0) end ?

---

## [Questionnaire](https://www.ruby-forum.com/t/questionnaire/162476)

<div class="topic-metadata">

**Author:** [@pkuphenix](https://www.ruby-forum.com/u/pkuphenix)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 9:40am UTC](https://www.ruby-forum.com/t/questionnaire/162476 "2009-03-10T09:40:46Z")

</div>

Hey, folks, I am doing a key project at Beijing University on culture discrepancy, and I am honored to have you fill out the following questionnaire. Your help will be greatly appreciated! A Questionnaire For College …

---

## [ANN: openssl-nonblock 0.2.0](https://www.ruby-forum.com/t/ann-openssl-nonblock-0-2-0/162468)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 7:54am UTC](https://www.ruby-forum.com/t/ann-openssl-nonblock-0-2-0/162468 "2009-03-10T07:54:46Z")

</div>

Announcing openssl-nonblock 0.2.0, now available at: http://rubyforge.org/frs/shownotes.php?release\_id=32127 This gem patches the following nonblocking methods into the Ruby OpenSSL extension on Ruby 1.8.6, 1.8.7, and…

---

## [Ruby win32api call getMenuItemInfo](https://www.ruby-forum.com/t/ruby-win32api-call-getmenuiteminfo/159635)

<div class="topic-metadata">

**Author:** [@battreal](https://www.ruby-forum.com/u/battreal)\
**Replies:** 1\
**Last updated:** [March 10, 2009, 4:40am UTC](https://www.ruby-forum.com/t/ruby-win32api-call-getmenuiteminfo/159635 "2009-03-10T04:40:43Z")

</div>

Hi all, I have successfully managed to implement the following apis findWindow=Win32API.new(“user32.dll”, “FindWindow”, \[‘P’,‘P’\], ‘N’) sendMessage=Win32API.new(“user32.dll”, “SendMessage”,\[‘N’,‘N’,‘N’,‘P’\], ‘N’) ge…

---

## [Finding Process Name using Window Handle](https://www.ruby-forum.com/t/finding-process-name-using-window-handle/162422)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 4:31am UTC](https://www.ruby-forum.com/t/finding-process-name-using-window-handle/162422 "2009-03-10T04:31:56Z")

</div>

Hi, In my project, I have a requirement to work with any client application which I need to kill (if an instance exists) before invoking a fresh instance. Currently, I have hardcoded the name of the process to termin…

---

## [Re: Rails - MethodNotAllowed Error](https://www.ruby-forum.com/t/re-rails-methodnotallowed-error/162453)

<div class="topic-metadata">

**Author:** [@Jayce\_M](https://www.ruby-forum.com/u/Jayce_M)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 3:22am UTC](https://www.ruby-forum.com/t/re-rails-methodnotallowed-error/162453 "2009-03-10T03:22:54Z")

</div>

Sorry, my last was a bit garbled. Here’s a better one: ActionController::Routing::Routes.draw do |map| Home controller map.home ‘’, :controller =\> “Home” map.root :home Administration controller map.admin ‘admin’, …

---

## [Hoe 1.10.0 Released](https://www.ruby-forum.com/t/hoe-1-10-0-released/162452)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 2:54am UTC](https://www.ruby-forum.com/t/hoe-1-10-0-released/162452 "2009-03-10T02:54:11Z")

</div>

hoe version 1.10.0 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

## [Disable Application Layout?](https://www.ruby-forum.com/t/disable-application-layout/162434)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 2:36am UTC](https://www.ruby-forum.com/t/disable-application-layout/162434 "2009-03-10T02:36:04Z")

</div>

I have created an application layout for the whole application…thing is I am now building my admin side and I don’t want to use the same layout. how can I change the application layout if the user is in the admin back…

---

## [Treetop Parser whitespace](https://www.ruby-forum.com/t/treetop-parser-whitespace/162415)

<div class="topic-metadata">

**Author:** [@wayhome](https://www.ruby-forum.com/u/wayhome)\
**Replies:** 5\
**Last updated:** [March 10, 2009, 1:55am UTC](https://www.ruby-forum.com/t/treetop-parser-whitespace/162415 "2009-03-10T01:55:43Z")

</div>

I can’t understand why the following test fails. Could you tell me why? Thanks, in advance. in arithmetic.treetop grammar Arithmetic rule white\_space \[ \\t\\n\\r\]+ { def value text\_value end } end end in test\_par…

---

## [Some starting issues](https://www.ruby-forum.com/t/some-starting-issues/162353)

<div class="topic-metadata">

**Author:** [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Replies:** 5\
**Last updated:** [March 10, 2009, 1:10am UTC](https://www.ruby-forum.com/t/some-starting-issues/162353 "2009-03-10T01:10:32Z")

</div>

First off im on the latest/updated version of Mac OSX, on a macbook. I followed a tutorial… And then followed the updated one as well and still get issues, i cant seem to get gem to install correctly? And or install…

---

## [Neophyte scaffold question](https://www.ruby-forum.com/t/neophyte-scaffold-question/162430)

<div class="topic-metadata">

**Author:** [@Meredith\_Gregory](https://www.ruby-forum.com/u/Meredith_Gregory)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 10:41pm UTC](https://www.ruby-forum.com/t/neophyte-scaffold-question/162430 "2009-03-09T22:41:52Z")

</div>

JRubyat, i’m testing some JRuby → Scala code paths. To avoid a lot of cruft with some legacy code context, i’ve taking an existing JRuby site and done two things. generated fresh model classes from the DB (see scri…

---

## [Arax?](https://www.ruby-forum.com/t/arax/162282)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 7\
**Last updated:** [March 9, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/arax/162282 "2009-03-09T20:58:30Z")

</div>

I remember reading about ARAX on slashdot, and after writing some javascript recently, I really wish I could have written in Ruby instead, as I know the language so much better. So, does anyone know if ARAX has a chan…

---

## [Help files](https://www.ruby-forum.com/t/help-files/162334)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/help-files/162334 "2009-03-09T20:08:20Z")

</div>

Hi forum, I am looking to have some form of help file/technical documentation to go alongside a GUI application. Basically on the click of a button (help button) a file will be opened in its native viewer eg adobe rea…

---

## [Question about GServe and IO](https://www.ruby-forum.com/t/question-about-gserve-and-io/162197)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 5\
**Last updated:** [March 9, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/question-about-gserve-and-io/162197 "2009-03-09T19:46:42Z")

</div>

I’m trying to make just a pass through TCP server, utilizing GServer and some example code I am able to make something that starts up, lets me connect multiple Clients and see what is happening. Now I want to be able…

---

## [Which gcc version](https://www.ruby-forum.com/t/which-gcc-version/162227)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [March 9, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/which-gcc-version/162227 "2009-03-09T19:23:55Z")

</div>

Is there a way to know which version of gcc was used with a certain ruby binary? Thanks! -=r

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

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