# Ruby

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

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

---

## [Help Please!](https://www.ruby-forum.com/t/help-please/124863)

<div class="topic-metadata">

**Author:** [@1up\_gfx](https://www.ruby-forum.com/u/1up_gfx)\
**Replies:** 10\
**Last updated:** [January 4, 2008, 12:24am UTC](https://www.ruby-forum.com/t/help-please/124863 "2008-01-04T00:24:17Z")

</div>

I’m new to Ruby, and have basically NO previous coding experience in any other language. What I’m trying to do is create a program that will run from cmd prompt, and let people type in words, or paragraphs etc., and …

---

## [Way of handling CLI interface for chat program](https://www.ruby-forum.com/t/way-of-handling-cli-interface-for-chat-program/124924)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 4\
**Last updated:** [January 3, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/way-of-handling-cli-interface-for-chat-program/124924 "2008-01-03T23:46:02Z")

</div>

Hello, folks. I’m trying to write simple CLI program which will be some kind of chat, but i have faced with some output problem. Is it possible to output over current line in stdout? User types something in prompt\> a…

---

## [Some threads are not starting](https://www.ruby-forum.com/t/some-threads-are-not-starting/124933)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/some-threads-are-not-starting/124933 "2008-01-03T23:30:49Z")

</div>

I have this code to start 4 prog in 4 separate threads. however 2 of the ibScans and emailProcessing threads are not even starting. dunno why. ibScans and emailProcessing are not even starting and i dont see the puts…

---

## [Working with Test::Unit](https://www.ruby-forum.com/t/working-with-test-unit/225985)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 5\
**Last updated:** [January 3, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/working-with-test-unit/225985 "2008-01-03T22:48:30Z")

</div>

Hi, I use Watir and Test::Unit. There are a number of sites I test that are very similar. I have a base test unit script e.g. class Main\_Site\_Test \< Test::Unit::TestCase include Watir::Assertions def setup @browse…

---

## [Why does this code not return what I expect it to?](https://www.ruby-forum.com/t/why-does-this-code-not-return-what-i-expect-it-to/124943)

<div class="topic-metadata">

**Author:** [@sdpurtill](https://www.ruby-forum.com/u/sdpurtill)\
**Replies:** 5\
**Last updated:** [January 3, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/why-does-this-code-not-return-what-i-expect-it-to/124943 "2008-01-03T22:35:33Z")

</div>

Heres the code. Why does it miss out the “a” character? “This is a test”.scan(/\\w\\w/) {|x| puts x} Thanks

---

## [Why doesn't this file read work for me?](https://www.ruby-forum.com/t/why-doesnt-this-file-read-work-for-me/124926)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [January 3, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/why-doesnt-this-file-read-work-for-me/124926 "2008-01-03T20:56:03Z")

</div>

Hi, I need to open files, just the first 75 bytes of them, and determine if there’s a string in the data. If the string is there, then, I do something. If not, then I do something else. Here’s my IRB try. I don’t und…

---

## [Help Request: Dialup, CardBus Cell Phone, etc. Modem IP Loopback Test](https://www.ruby-forum.com/t/help-request-dialup-cardbus-cell-phone-etc-modem-ip-loopback-test/124876)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 4\
**Last updated:** [January 3, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/help-request-dialup-cardbus-cell-phone-etc-modem-ip-loopback-test/124876 "2008-01-03T20:45:40Z")

</div>

Rubyists, If any of you having a “not-always-on” internet connection would be willing to try my test program on your systems, I’d be most grateful: http://tastyspleen.net/~billk/ruby/loopback-test/ Years ago, some c…

---

## [Same Methode name but different Parameter](https://www.ruby-forum.com/t/same-methode-name-but-different-parameter/124899)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/same-methode-name-but-different-parameter/124899 "2008-01-03T20:24:25Z")

</div>

Dear all, can i use in Ruby the same Methode name but different Parameter?? like def new (cent) end def new(euro,cent) end. regards, salai.

---

## [Hpricot - parse html](https://www.ruby-forum.com/t/hpricot-parse-html/124824)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 3\
**Last updated:** [January 3, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/hpricot-parse-html/124824 "2008-01-03T18:52:28Z")

</div>

hi @all I would like to parse html code and remove all tags that starts with How can I remove this tags with regex? I used the gsub! function to manipulate the string. Thanks for helping…

---

## [Ruby Culture T-shirts!](https://www.ruby-forum.com/t/ruby-culture-t-shirts/124890)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/ruby-culture-t-shirts/124890 "2008-01-03T18:33:39Z")

</div>

Hmmm, clearing out my drafts and found this announcement I never made, though I know the URL got shared. Anyways, just in case you guys missed it the first time, here are some shirts you might find desirable. == Anno…

---

## [Has any one tried this?](https://www.ruby-forum.com/t/has-any-one-tried-this/124874)

<div class="topic-metadata">

**Author:** [@ngloom](https://www.ruby-forum.com/u/ngloom)\
**Replies:** 5\
**Last updated:** [January 3, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/has-any-one-tried-this/124874 "2008-01-03T18:26:28Z")

</div>

My ruby version is 1.8.6 a = Array.new(3,Array.new()) a\[2\]\<\<1 puts a the result of a is \[\[1\], \[1\], \[1\]\] in irb… I don’t understand why. I just wannt insert into a 1 into the third array of a.

---

## [Best solution for windows server?](https://www.ruby-forum.com/t/best-solution-for-windows-server/124911)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/best-solution-for-windows-server/124911 "2008-01-03T18:24:08Z")

</div>

I have a windows server with 2 ip. On the first i have iis listening, at the moment on the other ip i have tomcat listening. I would like to host ruby on rails application. What to do? iis integration on the first i…

---

## [Mechanize problem](https://www.ruby-forum.com/t/mechanize-problem/124858)

<div class="topic-metadata">

**Author:** [@Ramiro\_Diaz\_Trepat](https://www.ruby-forum.com/u/Ramiro_Diaz_Trepat)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/mechanize-problem/124858 "2008-01-03T18:05:55Z")

</div>

Hello, I can’t run even the most trivial examples of Mechanize, neither on Ubuntu nor in Leopard because I get the following error: ./mechanize.rb:4: uninitialized constant WWW (NameError) from /usr/local/lib/ruby/s…

---

## [Embedding Ruby into a Borland C++ Builder Application](https://www.ruby-forum.com/t/embedding-ruby-into-a-borland-c-builder-application/124719)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 10\
**Last updated:** [January 3, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/embedding-ruby-into-a-borland-c-builder-application/124719 "2008-01-03T17:28:47Z")

</div>

Hi Everyone I’m trying to embed Ruby as the scripting engine into a project of mine. The project is written in Borland C++ Builder (Codergear Turbo C++ actually). I searched around for clues on embedding Ruby in C++ …

---

## [Problems about uploading file](https://www.ruby-forum.com/t/problems-about-uploading-file/124853)

<div class="topic-metadata">

**Author:** [@2tcreative](https://www.ruby-forum.com/u/2tcreative)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/problems-about-uploading-file/124853 "2008-01-03T17:15:47Z")

</div>

Hi guys, I am working on some upload file code , here it is : ================== code begin ================= require ‘fileutils’ require ‘uuid’ class Content \< ActiveRecord::Base include FileUtils include UUID b…

---

## [Shift-click](https://www.ruby-forum.com/t/shift-click/124883)

<div class="topic-metadata">

**Author:** [@biotite](https://www.ruby-forum.com/u/biotite)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/shift-click/124883 "2008-01-03T14:23:21Z")

</div>

hi watir and rubyer, i am currently trying watir features. is ruby or watir support shift-click(open in new window) or right click then pointing to open in new window? i searched both terms on this groups, seems lik…

---

## [Mongrel\_service 0.3.4 released](https://www.ruby-forum.com/t/mongrel-service-0-3-4-released/124881)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/mongrel-service-0-3-4-released/124881 "2008-01-03T14:05:41Z")

</div>

Hello G.s, A quick and not so dirty release of mongrel\_service. Main issues got fixed: Strict Gem dependencies for mongrel\_service. This version is compatible only with mongrel 1.0.x, 1.1.x and with win32-service …

---

## [Getting Code Ready for Ruby 1.9](https://www.ruby-forum.com/t/getting-code-ready-for-ruby-1-9/124830)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/getting-code-ready-for-ruby-1-9/124830 "2008-01-03T13:25:37Z")

</div>

I’ve started a list of Ruby 1.9 compatibility tips on my blog: Gray Soft / Not Found Please feel free to add your own tips in the comments. I would love to see this grow into a useful checklist for programmers prepar…

---

## [Social network analysis tools + ruby + mac](https://www.ruby-forum.com/t/social-network-analysis-tools-ruby-mac/124698)

<div class="topic-metadata">

**Author:** [@Billy\_Smith](https://www.ruby-forum.com/u/Billy_Smith)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 10:50am UTC](https://www.ruby-forum.com/t/social-network-analysis-tools-ruby-mac/124698 "2008-01-03T10:50:45Z")

</div>

Hi there. I have a large dataset of people (nodes) and their relationships (edges) and I’d like to do some social network analysis on it (e.g. calculate betweenness of nodes, centrality, etc). I have two things I’d …

---

## [RMagick Exif](https://www.ruby-forum.com/t/rmagick-exif/124755)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 9:50am UTC](https://www.ruby-forum.com/t/rmagick-exif/124755 "2008-01-03T09:50:30Z")

</div>

Hi all: I have been working to extract the exif information from jpegs using RMagick and the get\_exif\_by\_entry function. However, no matter what I try it returns an empty array. I am certain the file has exif info a…

---

## [Problems with flashplayerhelpe](https://www.ruby-forum.com/t/problems-with-flashplayerhelpe/124865)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 8:57am UTC](https://www.ruby-forum.com/t/problems-with-flashplayerhelpe/124865 "2008-01-03T08:57:48Z")

</div>

i m having some problems with the video flv player as, 1.thought i have set the size of the video screen in the flvars its not getting reflected in the code 2.when i m using the flv player, the files are getting fetch…

---

## [Handling binary files with mod\_ruby and cgi](https://www.ruby-forum.com/t/handling-binary-files-with-mod-ruby-and-cgi/124861)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 7:51am UTC](https://www.ruby-forum.com/t/handling-binary-files-with-mod-ruby-and-cgi/124861 "2008-01-03T07:51:12Z")

</div>

I’m trying to write a CGI script that will fetch a named file and send it back to the browser. No matter what output method I use, it’s writing two newlines to the end of the file, which corrupts many binary file form…

---

## [January Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/124859)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 7:48am UTC](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/124859 "2008-01-03T07:48:17Z")

</div>

January Phoenix Ruby U. Group Meeting Date: Monday, January 14, 2008 Time: 6:00pm - Socializing 7:00pm - Official start of meeting Place: Rising Tide Software 4643 E. Thomas Rd, Suite #3 Phoenix, AZ 85018 (602) …

---

## [Refax the automatic refactoring engine](https://www.ruby-forum.com/t/refax-the-automatic-refactoring-engine/124854)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 6:36am UTC](https://www.ruby-forum.com/t/refax-the-automatic-refactoring-engine/124854 "2008-01-03T06:36:23Z")

</div>

Has anyone ever pointed this at real code? Just curious. http://blog.zenspider.com/archives/2005/02/refax\_the\_autom.html – Giles B. Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com …

---

## [Ruby dht libs](https://www.ruby-forum.com/t/ruby-dht-libs/124546)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 8\
**Last updated:** [January 3, 2008, 5:45am UTC](https://www.ruby-forum.com/t/ruby-dht-libs/124546 "2008-01-03T05:45:35Z")

</div>

Anybody know of some DHT (distributed hash table) implementations written in ruby? Thanks! -Roger

---

## [Ruby 1.8.6 \*stripped\* documentation](https://www.ruby-forum.com/t/ruby-1-8-6-stripped-documentation/124544)

<div class="topic-metadata">

**Author:** [@exexex](https://www.ruby-forum.com/u/exexex)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 4:56am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-stripped-documentation/124544 "2008-01-03T04:56:30Z")

</div>

Hi all: I have been playing for a while with Ruby, and I’m enjoying it. However I was missing an up to date CHM version of the documentation for the release I’m using (1.8.6). My only source of documentation was the …

---

## [Ruby bug reading from /dev/urandom after failed require?](https://www.ruby-forum.com/t/ruby-bug-reading-from-dev-urandom-after-failed-require/123951)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 4\
**Last updated:** [January 3, 2008, 3:39am UTC](https://www.ruby-forum.com/t/ruby-bug-reading-from-dev-urandom-after-failed-require/123951 "2008-01-03T03:39:55Z")

</div>

I’ve been trying to track down a bug that surfaced when trying to generate a Rails 2.0.2 app in Cygwin. Reading from /dev/urandom fails with “No such file or directory - /dev/urandom” if a failed require has been made…

---

## [Updated PDF of Advanced Rails Recipes](https://www.ruby-forum.com/t/updated-pdf-of-advanced-rails-recipes/124821)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 3:36am UTC](https://www.ruby-forum.com/t/updated-pdf-of-advanced-rails-recipes/124821 "2008-01-03T03:36:58Z")

</div>

Hi Folks, We’ve just uploaded a new revision of the Advanced Rails Recipes PDF: http://pragprog.com/titles/fr\_arr To get your updated PDF, simply sign in to your account (Manage ) and ask the system to regenerate it…

---

## [TK84.dll](https://www.ruby-forum.com/t/tk84-dll/124833)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 8\
**Last updated:** [January 3, 2008, 3:26am UTC](https://www.ruby-forum.com/t/tk84-dll/124833 "2008-01-03T03:26:26Z")

</div>

Well my CPU crashed and now TK84.dll isn’t on it. Where can I get the file? Thanks, Mohammad

---

## [Automating OS X with Ruby](https://www.ruby-forum.com/t/automating-os-x-with-ruby/124124)

<div class="topic-metadata">

**Author:** [@sdsykes](https://www.ruby-forum.com/u/sdsykes)\
**Replies:** 8\
**Last updated:** [January 3, 2008, 1:00am UTC](https://www.ruby-forum.com/t/automating-os-x-with-ruby/124124 "2008-01-03T01:00:53Z")

</div>

Howdy, I just upgraded to leopard and thought it would be a good opportunity to learn automation in OS X. I started playing around with Ruby OSA (http://rubyosa.rubyforge.org/). Many of the ‘hello world’ applications …

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

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