# Ruby

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

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

---

## [Is Ruby good at GUI develop?](https://www.ruby-forum.com/t/is-ruby-good-at-gui-develop/147859)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 17\
**Last updated:** [September 13, 2008, 3:59am UTC](https://www.ruby-forum.com/t/is-ruby-good-at-gui-develop/147859 "2008-09-13T03:59:28Z")

</div>

I want to choose a script to develop a GUI program. I want to know more about Ruby on GUI development, including its performance, function capability, etc. Does anyone give me a brief introduction on this?

---

## [HTTPS POST with basic authentication](https://www.ruby-forum.com/t/https-post-with-basic-authentication/148426)

<div class="topic-metadata">

**Author:** [@piyush\_r](https://www.ruby-forum.com/u/piyush_r)\
**Replies:** 3\
**Last updated:** [September 13, 2008, 2:46am UTC](https://www.ruby-forum.com/t/https-post-with-basic-authentication/148426 "2008-09-13T02:46:52Z")

</div>

Hi I need to do a https POST with basic authentication to query a service. I am unable to find this in api or any of the blog entries I am seen so far. Is it possible to do this ?

---

## [Equation Graphing (#176)](https://www.ruby-forum.com/t/equation-graphing-176/148457)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 2:12am UTC](https://www.ruby-forum.com/t/equation-graphing-176/148457 "2008-09-13T02:12:56Z")

</div>

I have to say, I think Martin provided a great quiz here… His description was old-school, and most of the solutions have that feeling. In return, I’m looked at the solutions from a similar viewport. While the solution…

---

## [Jruby casts Integer argument to Long for java method with Integer arg](https://www.ruby-forum.com/t/jruby-casts-integer-argument-to-long-for-java-method-with-integer-arg/148463)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 2:08am UTC](https://www.ruby-forum.com/t/jruby-casts-integer-argument-to-long-for-java-method-with-integer-arg/148463 "2008-09-13T02:08:15Z")

</div>

Hi all, I just ran into this while trying to upgrade from jruby 1.1.2 to 1.1.4. I don’t remember seeing anything about this fly by on the list. Is this an official bug or a change to the expected behavior. Its easy t…

---

## [Jruby reverted to 1.1.2](https://www.ruby-forum.com/t/jruby-reverted-to-1-1-2/148465)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 2:04am UTC](https://www.ruby-forum.com/t/jruby-reverted-to-1-1-2/148465 "2008-09-13T02:04:44Z")

</div>

OK. I reverted jruby in /projects/eds\_test/share back to 1.1.2 for now. -lenny On Sep 12, 2008, at 5:11 PM, Charles Oliver N. wrote: time to get in a more robust dispatcher for Java methods; the old http://xircles.c…

---

## [Assertions running RubySpec](https://www.ruby-forum.com/t/assertions-running-rubyspec/148290)

<div class="topic-metadata">

**Author:** [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Replies:** 2\
**Last updated:** [September 13, 2008, 1:29am UTC](https://www.ruby-forum.com/t/assertions-running-rubyspec/148290 "2008-09-13T01:29:00Z")

</div>

I’ve been trying to run rubyspec (rake test) using the latest revision (r142), and besides the ussual failures, I’m getting several message boxes that pop up with “Assertion failed”, followed by a stack trace. Is thi…

---

## [Socket.getaddrinfo and IPSocket.getaddress super slow?](https://www.ruby-forum.com/t/socket-getaddrinfo-and-ipsocket-getaddress-super-slow/148459)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 1:25am UTC](https://www.ruby-forum.com/t/socket-getaddrinfo-and-ipsocket-getaddress-super-slow/148459 "2008-09-13T01:25:29Z")

</div>

Anyone know why Socket.getaddrinfo and IPSocket.getaddress take up to 3 seconds to return when the host doesn’t have a record in DNS? Do they even use DNS? – “Hey brother Christian with your high and mighty errand,…

---

## [Re: Socket.getaddrinfo and IPSocket.getaddress super slow?](https://www.ruby-forum.com/t/re-socket-getaddrinfo-and-ipsocket-getaddress-super-slow/148450)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 1\
**Last updated:** [September 13, 2008, 12:02am UTC](https://www.ruby-forum.com/t/re-socket-getaddrinfo-and-ipsocket-getaddress-super-slow/148450 "2008-09-13T00:02:00Z")

</div>

Anyone know why Socket.getaddrinfo and IPSocket.getaddress take up to 3 seconds to return when the host doesn’t have a record in DNS? They seem to do reverse DNS lookups on occasions where you might not want them t…

---

## [Re: Custom WEBrick FileHandler](https://www.ruby-forum.com/t/re-custom-webrick-filehandler/148454)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 12:01am UTC](https://www.ruby-forum.com/t/re-custom-webrick-filehandler/148454 "2008-09-13T00:01:16Z")

</div>

Is it possible in WEBrick to make a FileHandler with some elements of page changed in a custom way? For example, could I have the file sizes displayed in KB, or in red font? Is it possible to intercept the response p…

---

## [MiniExiftool 1.0.0 released](https://www.ruby-forum.com/t/miniexiftool-1-0-0-released/148444)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/miniexiftool-1-0-0-released/148444 "2008-09-12T22:42:03Z")

</div>

MiniExiftool version 1.0.0 released! http://miniexiftool.rubyforge.org/ MiniExiftool is a wrapper library for the Exiftool command-line application (www.sno.phy.queensu.ca/~phil/exiftool/) written by Phil Harvay. One…

---

## [Delete row in array of arrays](https://www.ruby-forum.com/t/delete-row-in-array-of-arrays/148329)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 5\
**Last updated:** [September 12, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/delete-row-in-array-of-arrays/148329 "2008-09-12T21:55:30Z")

</div>

i have a array of arrays. i want to empty the first 2 child arrays. how do i do it. irb(#Object:0x35208e8):049:0\> c=$stockTrades\[0\] =\> \[\[\], \[\], \[“BRKR”, “2008-09-09, 11:08:28”, “ISLAND”, “-200”, “16.1000”, “3,220.00”…

---

## [Global 'include \<Some\_Module\>' conflicts with OpenStruct](https://www.ruby-forum.com/t/global-include-some-module-conflicts-with-openstruct/148383)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/global-include-some-module-conflicts-with-openstruct/148383 "2008-09-12T21:49:51Z")

</div>

Hello! I need to include methods from module ‘A’ into global scope. But i have faced problem, it does interfere with OpenStruct. The Code: ------------------------------ require ‘ostruct’ module A def text; puts “T…

---

## [Problems with 'gem require' and test-unit gem](https://www.ruby-forum.com/t/problems-with-gem-require-and-test-unit-gem/148414)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [September 12, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/problems-with-gem-require-and-test-unit-gem/148414 "2008-09-12T21:21:28Z")

</div>

Hi all, C:\>gem environment RubyGems Environment: RUBYGEMS VERSION: 1.2.0 RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\] INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8 RUBY EXECUTABLE: c:/ruby/bin/r…

---

## [Strange Errno::EOVERFLOW error with IO#read and IO#sysread](https://www.ruby-forum.com/t/strange-errno-eoverflow-error-with-io-read-and-io-sysread/148431)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [September 12, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/strange-errno-eoverflow-error-with-io-read-and-io-sysread/148431 "2008-09-12T21:20:53Z")

</div>

Hi all, Ruby 1.8.6 p114 (32-bit) Solaris 10 I’m reading binary data out of the /proc//as file on Solaris, and I’m hitting a curious overflow error on one process in particular: With IO#sysread irb(main):010:0\> File.…

---

## [FasterCSV 1.4.0 -- The Final 1.8 Release](https://www.ruby-forum.com/t/fastercsv-1-4-0-the-final-1-8-release/148348)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/fastercsv-1-4-0-the-final-1-8-release/148348 "2008-09-12T21:12:58Z")

</div>

FasterCSV 1.4.0 Released I’ve released a new version of FasterCSV with all the features I’ve always wanted to add. Highlights include encoding support, better inpect() messages for IRb, and better parse error handlin…

---

## [YAML dump](https://www.ruby-forum.com/t/yaml-dump/148438)

<div class="topic-metadata">

**Author:** [@mperham](https://www.ruby-forum.com/u/mperham)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/yaml-dump/148438 "2008-09-12T21:04:22Z")

</div>

Hi, a customer is reporting problems in Jruby 1.1.x where a float value will be dumped to YAML like so: time: !float:Float 0.06794929504394531 The MRI always dumps like so: time: 0.06794929504394531 Is there an aut…

---

## [Ruby DCamp (BarCamp) Registration Is Open](https://www.ruby-forum.com/t/ruby-dcamp-barcamp-registration-is-open/148342)

<div class="topic-metadata">

**Author:** [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/ruby-dcamp-barcamp-registration-is-open/148342 "2008-09-12T20:34:58Z")

</div>

Registration is now open for Ruby DCamp, the first ever Open Spaces- style Ruby conference in the world (as far as we know). Open Spaces conferences are sometimes also known as BarCamps or unconferences. There are no…

---

## [Newbie question on regexp in a class method](https://www.ruby-forum.com/t/newbie-question-on-regexp-in-a-class-method/148430)

<div class="topic-metadata">

**Author:** [@bellcolt](https://www.ruby-forum.com/u/bellcolt)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/newbie-question-on-regexp-in-a-class-method/148430 "2008-09-12T19:38:55Z")

</div>

trying regexp in ruby for the first time. the results from the following code confuses me. #!/usr/bin/ruby require ‘B’ def Localmatch(t,s) myS = Regexp.new(s) if t =~ myS puts “’#{s}’ matches ‘#{t}’” else puts…

---

## [Custom WEBrick FileHandler](https://www.ruby-forum.com/t/custom-webrick-filehandler/148429)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/custom-webrick-filehandler/148429 "2008-09-12T19:24:50Z")

</div>

Hello. Is it possible in WEBrick to make a FileHandler with some elements of page changed in a custom way? For example, could I have the file sizes displayed in KB, or in red font? Is it possible to intercept the res…

---

## [Processing loop](https://www.ruby-forum.com/t/processing-loop/148360)

<div class="topic-metadata">

**Author:** [@doctoromms](https://www.ruby-forum.com/u/doctoromms)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/processing-loop/148360 "2008-09-12T19:01:23Z")

</div>

Hey guys, I am trying to write an application with some various infinite loops that basically poll data in a queue. Essentially, it is an asynchronous webseerver, where requests come in, queue up the request and immed…

---

## [Maxim number query about a website from a speficic computer](https://www.ruby-forum.com/t/maxim-number-query-about-a-website-from-a-speficic-computer/148425)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/maxim-number-query-about-a-website-from-a-speficic-computer/148425 "2008-09-12T18:53:21Z")

</div>

Hi all, I use Mechanize and Hprioct to submit repeated queries to a website of interest about 100-200 times, download some small files, parse the pages, and save them. But after fecthing 35 pages the process stops. I…

---

## [Is ruby effective for experimenting with Win32 API?](https://www.ruby-forum.com/t/is-ruby-effective-for-experimenting-with-win32-api/148422)

<div class="topic-metadata">

**Author:** [@Siegfried\_Heintze](https://www.ruby-forum.com/u/Siegfried_Heintze)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/is-ruby-effective-for-experimenting-with-win32-api/148422 "2008-09-12T17:42:30Z")

</div>

I need to understand some User32.dll functions and I’m making an elaborate GUI so I can easily experiment with different parameters. This is taking a long time. I’m new to python and ruby and I’m thinking it would su…

---

## [Local variable in loop affects callcc](https://www.ruby-forum.com/t/local-variable-in-loop-affects-callcc/148145)

<div class="topic-metadata">

**Author:** [@Pinku\_S](https://www.ruby-forum.com/u/Pinku_S)\
**Replies:** 7\
**Last updated:** [September 12, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/local-variable-in-loop-affects-callcc/148145 "2008-09-12T17:40:10Z")

</div>

I was trying to do some simple backtracking, but it kept failing for some reason. In the simplified version below, I use continuations to return either a 1 or 2 from interval. testcc assigns a value to the array, prin…

---

## [Development Environment for Team Project](https://www.ruby-forum.com/t/development-environment-for-team-project/148417)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/development-environment-for-team-project/148417 "2008-09-12T17:29:51Z")

</div>

Hello all, I am planning to build an enterprise application using RoR, but I am not sure which IDE or tool I have to use among my team members. I am a VS .net developer, and I wonder if there is any similar IDE or pr…

---

## [Unmapped event in wxruby 1.9.8](https://www.ruby-forum.com/t/unmapped-event-in-wxruby-1-9-8/148401)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 2\
**Last updated:** [September 12, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/unmapped-event-in-wxruby-1-9-8/148401 "2008-09-12T16:53:12Z")

</div>

Hello, I’m not sure what’s going on with the latest WxRuby. Yesterday, my Vista machine at work did an update and suddenly all of my WxRuby applications had the Vista theme. That was nice, but they were also all cras…

---

## [Strange behaviors in writing/saving file](https://www.ruby-forum.com/t/strange-behaviors-in-writing-saving-file/148395)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 5\
**Last updated:** [September 12, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/strange-behaviors-in-writing-saving-file/148395 "2008-09-12T15:17:44Z")

</div>

Hi all, I query a website,extract some info from fetched page, and save/write the info in txt format. My current problem: I can print all the info to the screen but only the last line is written/saved to the file. I w…

---

## [Replacing ' with \\'](https://www.ruby-forum.com/t/replacing-with/148396)

<div class="topic-metadata">

**Author:** [@nixon](https://www.ruby-forum.com/u/nixon)\
**Replies:** 2\
**Last updated:** [September 12, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/replacing-with/148396 "2008-09-12T15:08:19Z")

</div>

In my practice I need to replace apostrophe with backslash and apostrophe in string. I using String#gsub, but it has unpredictable result in my own. That’s I do in IRB to test my gsub call: irb(main):001:0\> str = “O’R…

---

## [Scripts dying mid-way](https://www.ruby-forum.com/t/scripts-dying-mid-way/148338)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 9\
**Last updated:** [September 12, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/scripts-dying-mid-way/148338 "2008-09-12T15:03:49Z")

</div>

Hi, I’ve got a bunch of scripts that suddenly appear to be dying on me. When I run them in my Ruby editor, Aracho, they run fine. But, when they’re scheduled with a scheduler and run on their own every ten minutes or …

---

## [Getting Term::Visual to work (require 'eventmanager' failing](https://www.ruby-forum.com/t/getting-term-visual-to-work-require-eventmanager-failing/148394)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/getting-term-visual-to-work-require-eventmanager-failing/148394 "2008-09-12T13:51:15Z")

</div>

I am looking at something called Term::Visual which does not have a gem. Trying to get it to work. After doing ruby setup.rb (config , setup and then install) into /opt/local it still is looking for “eventmanager”. Ho…

---

## [Sending request & fetching response for an xml through Ruby](https://www.ruby-forum.com/t/sending-request-fetching-response-for-an-xml-through-ruby/148388)

<div class="topic-metadata">

**Author:** [@mkhan](https://www.ruby-forum.com/u/mkhan)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/sending-request-fetching-response-for-an-xml-through-ruby/148388 "2008-09-12T13:47:52Z")

</div>

I have downloaded soap4r package and need to send a request for input xml which is on local drive and fetch a response from it using Ruby code. Can anyone please send any snippet of code which would helping in achiev…

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

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