# Ruby

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

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

---

## [A question about Ruby main object](https://www.ruby-forum.com/t/a-question-about-ruby-main-object/51535)

<div class="topic-metadata">

**Author:** [@Antti\_Karanta](https://www.ruby-forum.com/u/Antti_Karanta)\
**Replies:** 10\
**Last updated:** [January 3, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/a-question-about-ruby-main-object/51535 "2006-01-03T20:30:25Z")

</div>

Hi! I have been doing different things w/ Ruby for a couple of years now and the only bad thing I can say about it is that it makes programming in other languages feel awfully burdensome. = ) Anyhow, I really like …

---

## [Mouse coordinates in a gnome2 canvas](https://www.ruby-forum.com/t/mouse-coordinates-in-a-gnome2-canvas/51571)

<div class="topic-metadata">

**Author:** [@Tool69](https://www.ruby-forum.com/u/Tool69)\
**Replies:** 2\
**Last updated:** [January 3, 2006, 7:59pm UTC](https://www.ruby-forum.com/t/mouse-coordinates-in-a-gnome2-canvas/51571 "2006-01-03T19:59:38Z")

</div>

Hi, I want to show the mouse coordinates inside a label in a gnome2 application if my mouse is on a canvas. How to procede ? I’ ve found no documentation on the canvas on ruby gnome2 API. rbbr is not working on my ub…

---

## [Rubyhelp wanted /offered](https://www.ruby-forum.com/t/rubyhelp-wanted-offered/56100)

<div class="topic-metadata">

**Author:** [@PGPGPG](https://www.ruby-forum.com/u/PGPGPG)\
**Replies:** 15\
**Last updated:** [January 3, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/rubyhelp-wanted-offered/56100 "2006-01-03T19:16:03Z")

</div>

hi guys - I read some of the posts here & wanted to point out that rubyforums.co.uk has just ‘opened its doors’ so to speak - anways figured we could all use the best ruby communities possible so wanted to let you kno…

---

## [Developer Works article on RDoc, WEBrick, dRuby, and REXML](https://www.ruby-forum.com/t/developer-works-article-on-rdoc-webrick-druby-and-rexml/56130)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [January 3, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/developer-works-article-on-rdoc-webrick-druby-and-rexml/56130 "2006-01-03T19:00:09Z")

</div>

http://www-128.ibm.com/developerworks/edu/os-dw-os-ruby3-i.html Another Developerworks tutorial/article on Ruby. We’re starting to get a pretty good selection there. You can get a listing of all Ruby related Develop…

---

## [Try to run ruby on windowsxp](https://www.ruby-forum.com/t/try-to-run-ruby-on-windowsxp/51560)

<div class="topic-metadata">

**Author:** [@mohsena](https://www.ruby-forum.com/u/mohsena)\
**Replies:** 6\
**Last updated:** [January 3, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/try-to-run-ruby-on-windowsxp/51560 "2006-01-03T18:34:48Z")

</div>

Hello all I tired to run this program on the command prompt of windows Xp Puts â??Hello worldâ? and I encounter the following error: â??Puts is not recognized as internal or external command. Operable program or ba…

---

## [Ruby-pcap for OS X?](https://www.ruby-forum.com/t/ruby-pcap-for-os-x/56032)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [January 3, 2006, 2:49pm UTC](https://www.ruby-forum.com/t/ruby-pcap-for-os-x/56032 "2006-01-03T14:49:28Z")

</div>

Does anyone know if there is a port for ruby-pcap on OS X? I can’t seem to find one… Just curious, Michael

---

## [Strange speeds](https://www.ruby-forum.com/t/strange-speeds/86780)

<div class="topic-metadata">

**Author:** [@kryglik](https://www.ruby-forum.com/u/kryglik)\
**Replies:** 6\
**Last updated:** [January 3, 2006, 2:06pm UTC](https://www.ruby-forum.com/t/strange-speeds/86780 "2006-01-03T14:06:29Z")

</div>

Hello ruby people, I’ve tried to make some speed test in ruby to find out how fast is searching in hash (using has\_key?) The results were OK but I discovered curious thing – when i generate big hash the speed is diff…

---

## [(Real) Primitive Ruby Generics support](https://www.ruby-forum.com/t/real-primitive-ruby-generics-support/51157)

<div class="topic-metadata">

**Author:** [@Isaac\_D](https://www.ruby-forum.com/u/Isaac_D)\
**Replies:** 19\
**Last updated:** [January 3, 2006, 1:23pm UTC](https://www.ruby-forum.com/t/real-primitive-ruby-generics-support/51157 "2006-01-03T13:23:43Z")

</div>

Hi all, I have been hacking away to create a simple library that adds generics-like qualities to ruby. At the moment you can define methods with type-matches, defaults if no match and different number of argument mat…

---

## [Sort\_by{rand} doesn't shuffle array](https://www.ruby-forum.com/t/sort-by-rand-doesnt-shuffle-array/56104)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 5\
**Last updated:** [January 3, 2006, 1:23pm UTC](https://www.ruby-forum.com/t/sort-by-rand-doesnt-shuffle-array/56104 "2006-01-03T13:23:41Z")

</div>

I did some searching on how to shuffle an array, and found sort\_by{rand}. However, if I call it, it doesn’t make a change to my array at all. I’ve got a class like this class MyClass def initialize # Populate the …

---

## [Ruby-lang down?](https://www.ruby-forum.com/t/ruby-lang-down/51555)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [January 3, 2006, 7:52am UTC](https://www.ruby-forum.com/t/ruby-lang-down/51555 "2006-01-03T07:52:37Z")

</div>

Hi, It appears that ruby-lang.org is down. Anyone looking into this? Thanks, Dan

---

## [Connecting via Net::Telnet](https://www.ruby-forum.com/t/connecting-via-net-telnet/56060)

<div class="topic-metadata">

**Author:** [@combray](https://www.ruby-forum.com/u/combray)\
**Replies:** 0\
**Last updated:** [January 3, 2006, 7:52am UTC](https://www.ruby-forum.com/t/connecting-via-net-telnet/56060 "2006-01-03T07:52:35Z")

</div>

Thanks for all the suggestions in the previous email about getting started. I looked at a lot of resources today and thought I would just get started. :slight\_smile: The first thing I have to do is get connected and …

---

## [Any interest in a Milwaukee Area Ruby User Group](https://www.ruby-forum.com/t/any-interest-in-a-milwaukee-area-ruby-user-group/51558)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [January 3, 2006, 6:09am UTC](https://www.ruby-forum.com/t/any-interest-in-a-milwaukee-area-ruby-user-group/51558 "2006-01-03T06:09:54Z")

</div>

Any Ruby users interested in forming a milwauke.rb group or waukesha.rb group? Thanks, – Tom. – “Nothing will ever be attempted, if all possible objections must first be overcome.” - Samuel Johnson “Luck is what …

---

## [\#60 Numeric Maze](https://www.ruby-forum.com/t/60-numeric-maze/56027)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [January 3, 2006, 4:48am UTC](https://www.ruby-forum.com/t/60-numeric-maze/56027 "2006-01-03T04:48:23Z")

</div>

I used dijkstra again for this quiz, which is fine for the short paths, but you really need to be pulling out that bitwise magic for those long paths. That dijkstra.rb is a big improvement over the one I last used …

---

## [Is /#$/ a Ruby bug?](https://www.ruby-forum.com/t/is-a-ruby-bug/51553)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 1\
**Last updated:** [January 3, 2006, 3:48am UTC](https://www.ruby-forum.com/t/is-a-ruby-bug/51553 "2006-01-03T03:48:08Z")

</div>

p /#$/.match("#")\[0\] # syntax error: unterminated string meets eof The interpreter seems to interpret the first # as a comment but not the second. p /#$/.match("#")\[0\] # this works This seems even odder: p /\[#$\]…

---

## [Discrete event simulation in ruby?](https://www.ruby-forum.com/t/discrete-event-simulation-in-ruby/51456)

<div class="topic-metadata">

**Author:** [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Replies:** 6\
**Last updated:** [January 3, 2006, 3:08am UTC](https://www.ruby-forum.com/t/discrete-event-simulation-in-ruby/51456 "2006-01-03T03:08:54Z")

</div>

I’m looking for a reasonably complete discrete event simulation library in ruby. I’ve googled and found a couple of projects, but didn’t see anything that looked very complete. Ideally it would have random generator…

---

## [Ruby 1.8.4 and tcltk under Linux](https://www.ruby-forum.com/t/ruby-1-8-4-and-tcltk-under-linux/51485)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 9\
**Last updated:** [January 3, 2006, 2:59am UTC](https://www.ruby-forum.com/t/ruby-1-8-4-and-tcltk-under-linux/51485 "2006-01-03T02:59:52Z")

</div>

I have some Ruby code that uses Tk that works fine under Windows. However, when I try to run it under Linux with Ruby 1.8.4 installed I get “no such file to load – tcltklib”. Do I have to take steps to install tcltk? …

---

## [January Ruby events in the SF Bay Area](https://www.ruby-forum.com/t/january-ruby-events-in-the-sf-bay-area/51549)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 2\
**Last updated:** [January 3, 2006, 1:13am UTC](https://www.ruby-forum.com/t/january-ruby-events-in-the-sf-bay-area/51549 "2006-01-03T01:13:36Z")

</div>

Bosco So has located a promising new venue for the SF Ruby Meetup: There is WiFi access to the Internet as well as a large plasma TV/monitor for presentations. In addition to offering caffeine in various forms, they h…

---

## [Failing rio#mkdir in rio-0.3.4](https://www.ruby-forum.com/t/failing-rio-mkdir-in-rio-0-3-4/87882)

<div class="topic-metadata">

**Author:** [@wybodekker](https://www.ruby-forum.com/u/wybodekker)\
**Replies:** 0\
**Last updated:** [January 2, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/failing-rio-mkdir-in-rio-0-3-4/87882 "2006-01-02T23:45:48Z")

</div>

Is there anybody on this list with: ruby 1.8.3 or 1.8.4 and rio-0.3.4 who can run this: require ‘rubygems’ require ‘rio’ p rio(??).mkdir.path without getting an error message?

---

## [OpenSSL SSLError](https://www.ruby-forum.com/t/openssl-sslerror/51544)

<div class="topic-metadata">

**Author:** [@Tim\_Shadel](https://www.ruby-forum.com/u/Tim_Shadel)\
**Replies:** 0\
**Last updated:** [January 2, 2006, 9:58pm UTC](https://www.ruby-forum.com/t/openssl-sslerror/51544 "2006-01-02T21:58:41Z")

</div>

Hi. I’m trying to use OpenSSL, but I keep getting OpenSSL::SSL::SSLError whenever I call the connect method. So I tried running the OpenSSL tests. I’ve attached the stdout and stderr as out.txt and err.txt. Here’s…

---

## [Memoization, files and Marshal?](https://www.ruby-forum.com/t/memoization-files-and-marshal/55594)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 8\
**Last updated:** [January 2, 2006, 9:52pm UTC](https://www.ruby-forum.com/t/memoization-files-and-marshal/55594 "2006-01-02T21:52:37Z")

</div>

Hi all, Inspired by a recent blog entry by Mauricio F., I decided to try to add a method to the memoize package that would allow users to memoize using a file based approach rather than memory, either to conserve mem…

---

## [Installing mod\_ruby](https://www.ruby-forum.com/t/installing-mod-ruby/55937)

<div class="topic-metadata">

**Author:** [@Bruce\_Van\_Horn](https://www.ruby-forum.com/u/Bruce_Van_Horn)\
**Replies:** 0\
**Last updated:** [January 2, 2006, 9:19pm UTC](https://www.ruby-forum.com/t/installing-mod-ruby/55937 "2006-01-02T21:19:02Z")

</div>

I’m trying to install mod\_ruby per the instructions at http://wiki.modruby.net/en/?InstallGuide When I run make I get a bunch of errors. Here is a small sample but there are at least a hundred more lines like this fo…

---

## [About blocks](https://www.ruby-forum.com/t/about-blocks/86926)

<div class="topic-metadata">

**Author:** [@Surgeon](https://www.ruby-forum.com/u/Surgeon)\
**Replies:** 4\
**Last updated:** [January 2, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/about-blocks/86926 "2006-01-02T20:57:44Z")

</div>

Hi, (This question might be answered previously. If so, I apologize.) Can we ALWAYS use plain methods instead of blocks? Yes, sometimes using a block may be obviously better than using a method but I mean, are there …

---

## [Listing Ruby keywords](https://www.ruby-forum.com/t/listing-ruby-keywords/55731)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 8\
**Last updated:** [January 2, 2006, 8:12pm UTC](https://www.ruby-forum.com/t/listing-ruby-keywords/55731 "2006-01-02T20:12:19Z")

</div>

Is there a simple way to find out all or most of the built-in keywords? I know that if a keyword’s in a ruby script that the debugger will tell you but I’d like to know before hand, in other words when I’m actually wr…

---

## [Can I disable the underscore function in markdown?](https://www.ruby-forum.com/t/can-i-disable-the-underscore-function-in-markdown/51531)

<div class="topic-metadata">

**Author:** [@cap](https://www.ruby-forum.com/u/cap)\
**Replies:** 1\
**Last updated:** [January 2, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/can-i-disable-the-underscore-function-in-markdown/51531 "2006-01-02T19:31:11Z")

</div>

I just wrote some ariticles about ruby and rails using markdown’s syntax. I found that there are so many xxx\_yyy methods descriped in my document and markdown mess them up to this xxx\_yy … aaa\_bbb (I want)=\> xxx yy…

---

## [Medical APIs](https://www.ruby-forum.com/t/medical-apis/77961)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 3\
**Last updated:** [January 2, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/medical-apis/77961 "2006-01-02T17:59:00Z")

</div>

Hi All: Are there any ruby libraries or hooks into the medial apis out there? IHE http://www.himss.org/ASP/topics\_IHE.asp DICOM http://medical.nema.org/ http://medical.nema.org/dicom/2004.html http://www.nema.org/…

---

## [Numeric Maze (#60)](https://www.ruby-forum.com/t/numeric-maze-60/225896)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 2, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/numeric-maze-60/225896 "2006-01-02T17:15:42Z")

</div>

I’ve always wanted to participate in a Ruby quiz and now I finally had some time… this is (sad to say) my first submission. I wasted a lot of time trying to get a recursive solution to work but stack overruns kept f…

---

## [SSLSocket - where does the encryption happen?](https://www.ruby-forum.com/t/sslsocket-where-does-the-encryption-happen/51514)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 2\
**Last updated:** [January 2, 2006, 12:09pm UTC](https://www.ruby-forum.com/t/sslsocket-where-does-the-encryption-happen/51514 "2006-01-02T12:09:36Z")

</div>

Howdy all, and Happy New Year. I’m looking at OpenSSL::SSL::SSLSocket (openssl/ssl.rb), and also the code in drb/ssl.rb and webrick/ssl.rb … trying to understand where the actual encryption/decryption takes place. Al…

---

## [Using the p command to print files](https://www.ruby-forum.com/t/using-the-p-command-to-print-files/51515)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [January 2, 2006, 11:15am UTC](https://www.ruby-forum.com/t/using-the-p-command-to-print-files/51515 "2006-01-02T11:15:20Z")

</div>

If any one has a copy of “why’s poignant guide to ruby”, turn to page 45. I can see immediately that i)ruby p Dir \['\*'\] works and lists all files within a specified directory. However ii)ruby p File::methods produces…

---

## [A few questions of function and style from a newbie](https://www.ruby-forum.com/t/a-few-questions-of-function-and-style-from-a-newbie/51443)

<div class="topic-metadata">

**Author:** [@Sven\_J](https://www.ruby-forum.com/u/Sven_J)\
**Replies:** 11\
**Last updated:** [January 2, 2006, 10:15am UTC](https://www.ruby-forum.com/t/a-few-questions-of-function-and-style-from-a-newbie/51443 "2006-01-02T10:15:08Z")

</div>

Hi, good people of clr, I’m just dipped into the goodness that is ruby for the first time yesterday, and while this group and the online docs proved useful, I’m left somewhat bewildered by a few things. Environment: W…

---

## [Test::Unit assert\_throws](https://www.ruby-forum.com/t/test-unit-assert-throws/51493)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 2\
**Last updated:** [January 2, 2006, 8:35am UTC](https://www.ruby-forum.com/t/test-unit-assert-throws/51493 "2006-01-02T08:35:43Z")

</div>

Hi, Any good examples out there (I couldn’t find any) of assert\_throws? I would love to know also why its first argument is a symbol… Thanks Mike

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

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