# Ruby

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

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

---

## [Url](https://www.ruby-forum.com/t/url/67965)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 0\
**Last updated:** [September 8, 2006, 5:52am UTC](https://www.ruby-forum.com/t/url/67965 "2006-09-08T05:52:51Z")

</div>

http://blog.miraclelinux.com/yume/ http://hatenastaff.g.hatena.ne.jp/files/hatenastaff/10c049ef507427da.mp3 e$BF|K\\e(BRubye$B%+%s%U%!%l%s%9e(B2006 - e$B2;@\<%U%!%$%ke(B http://jp.rubyist.net/RubyKaigi2006/audio/ GNU G…

---

## [How to get ruby to report errors on website](https://www.ruby-forum.com/t/how-to-get-ruby-to-report-errors-on-website/67963)

<div class="topic-metadata">

**Author:** [@edward](https://www.ruby-forum.com/u/edward)\
**Replies:** 1\
**Last updated:** [September 8, 2006, 5:48am UTC](https://www.ruby-forum.com/t/how-to-get-ruby-to-report-errors-on-website/67963 "2006-09-08T05:48:16Z")

</div>

Is it possible to set up ruby on the web somehow so that it reports errors like PHP does? Currently if I have a script that is not working, I need to putty/ssh into my site and run the script there at the command line…

---

## [Re: A little idiom I like](https://www.ruby-forum.com/t/re-a-little-idiom-i-like/67782)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 11\
**Last updated:** [September 8, 2006, 5:26am UTC](https://www.ruby-forum.com/t/re-a-little-idiom-i-like/67782 "2006-09-08T05:26:48Z")

</div>

method named \\ Mostly. The reality of the matter is that with the APIs that Ruby is currently using – which are problematic for certain cases (Unicode) – the \\ and / are interchangeable internally. The advanced API…

---

## [Ruby website code ignores function](https://www.ruby-forum.com/t/ruby-website-code-ignores-function/67956)

<div class="topic-metadata">

**Author:** [@edward](https://www.ruby-forum.com/u/edward)\
**Replies:** 2\
**Last updated:** [September 8, 2006, 5:24am UTC](https://www.ruby-forum.com/t/ruby-website-code-ignores-function/67956 "2006-09-08T05:24:48Z")

</div>

When I run the following script as a web page, it ignores the output of my function and doesn’t print the “test2” as if there is a problem with the function. How can I fix this? I pasted the code below. View Example: h…

---

## [Sandbox 0.2](https://www.ruby-forum.com/t/sandbox-0-2/67958)

<div class="topic-metadata">

**Author:** [@why\_the\_lucky\_stiff](https://www.ruby-forum.com/u/why_the_lucky_stiff)\
**Replies:** 0\
**Last updated:** [September 8, 2006, 4:40am UTC](https://www.ruby-forum.com/t/sandbox-0-2/67958 "2006-09-08T04:40:45Z")

</div>

The 0.2 release of the FreakyFreakySandbox is here. I almost had to add a third Freaky because of some thread-related haps, but they’ve all been sufficient scared and squared. Everything is now calm, like grapes on…

---

## [WScript.Shell Alternative](https://www.ruby-forum.com/t/wscript-shell-alternative/67888)

<div class="topic-metadata">

**Author:** [@semmons99](https://www.ruby-forum.com/u/semmons99)\
**Replies:** 4\
**Last updated:** [September 8, 2006, 4:18am UTC](https://www.ruby-forum.com/t/wscript-shell-alternative/67888 "2006-09-08T04:18:40Z")

</div>

Does anyone know of an alternative to WScript.Shell that works for Mac OS X? For anyone who doesn’t know, this allows you to send key strokes (among other things) to other programs without having the other program ex…

---

## [Don't understand an algorithm](https://www.ruby-forum.com/t/dont-understand-an-algorithm/67851)

<div class="topic-metadata">

**Author:** [@femto\_gary](https://www.ruby-forum.com/u/femto_gary)\
**Replies:** 2\
**Last updated:** [September 8, 2006, 3:30am UTC](https://www.ruby-forum.com/t/dont-understand-an-algorithm/67851 "2006-09-08T03:30:37Z")

</div>

hello all, I’m running the SCRABBLE STEMS in ruby quiz book. the second algorithm has the following code snipet: hash.each do |k, v| v = (v & 0x5555555) + ((v\>\>1) & 0x5555555) v = (v & 0x3333333) + ((v\>\>2) & 0x3333…

---

## [Libxslt-ruby - dead or alive?](https://www.ruby-forum.com/t/libxslt-ruby-dead-or-alive/67938)

<div class="topic-metadata">

**Author:** [@Jason\_Dusek](https://www.ruby-forum.com/u/Jason_Dusek)\
**Replies:** 0\
**Last updated:** [September 8, 2006, 1:56am UTC](https://www.ruby-forum.com/t/libxslt-ruby-dead-or-alive/67938 "2006-09-08T01:56:27Z")

</div>

has anybody used this lately? i’m looking to build a rails app where much of the data and ruleset are expressed in xml and xslt - and it seems like libxslt-ruby is the way to go. however, it doesn’t seem to be very do…

---

## [C socket to Ruby socket](https://www.ruby-forum.com/t/c-socket-to-ruby-socket/67615)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 13\
**Last updated:** [September 8, 2006, 1:50am UTC](https://www.ruby-forum.com/t/c-socket-to-ruby-socket/67615 "2006-09-08T01:50:26Z")

</div>

Hello What is the correct way to convert a C socket (int) to a Ruby Socket object in a C extension? Something like int s = socket(…); VALUE sock = rb\_some\_func(s); In my extension there’s a callback function that re…

---

## [Get the name of a method's parameter](https://www.ruby-forum.com/t/get-the-name-of-a-methods-parameter/67846)

<div class="topic-metadata">

**Author:** [@lehuy](https://www.ruby-forum.com/u/lehuy)\
**Replies:** 7\
**Last updated:** [September 8, 2006, 1:22am UTC](https://www.ruby-forum.com/t/get-the-name-of-a-methods-parameter/67846 "2006-09-08T01:22:23Z")

</div>

Does anyone know how to use reflection to get the name of a parameter of a method ? It is useful for documenting a class and doing editor with code completion

---

## [Nebular Gauntlet v0.3](https://www.ruby-forum.com/t/nebular-gauntlet-v0-3/67928)

<div class="topic-metadata">

**Author:** [@S-redyck](https://www.ruby-forum.com/u/S-redyck)\
**Replies:** 1\
**Last updated:** [September 8, 2006, 1:14am UTC](https://www.ruby-forum.com/t/nebular-gauntlet-v0-3/67928 "2006-09-08T01:14:23Z")

</div>

I am yet again pleased to announce another release of Nebular Gauntlet. It is a quick release, but there are many new features and fixes including a new map (sp\_planets) and new images for several entities. You can ch…

---

## [Parsing emails](https://www.ruby-forum.com/t/parsing-emails/67933)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 8, 2006, 1:00am UTC](https://www.ruby-forum.com/t/parsing-emails/67933 "2006-09-08T01:00:22Z")

</div>

Hi Are there any Ruby libraries that can parse a mime formatted email with text and html sections? Thanks

---

## [Rubyists of Second Life Meeting, 09/07/2006 TONIGHT](https://www.ruby-forum.com/t/rubyists-of-second-life-meeting-09-07-2006-tonight/67932)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 1\
**Last updated:** [September 8, 2006, 12:58am UTC](https://www.ruby-forum.com/t/rubyists-of-second-life-meeting-09-07-2006-tonight/67932 "2006-09-08T00:58:22Z")

</div>

i’ll be presenting the following topic tonight, at 6 P.M Pacific time. DRP: evolutionary/social programming for interactive/design tasks in Ruby. about the freshly released gem: drp.rubyforge.org i noticed on the o…

---

## [Re: Thousands of words on Ruby](https://www.ruby-forum.com/t/re-thousands-of-words-on-ruby/67924)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 1\
**Last updated:** [September 7, 2006, 11:24pm UTC](https://www.ruby-forum.com/t/re-thousands-of-words-on-ruby/67924 "2006-09-07T23:24:12Z")

</div>

Fantastic, thanks. One more minor question: what is ‘bit-return’ and ‘teir-return’. Steve

---

## [Re: Thousands of words on Ruby](https://www.ruby-forum.com/t/re-thousands-of-words-on-ruby/67926)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/re-thousands-of-words-on-ruby/67926 "2006-09-07T23:20:11Z")

</div>

From: Molitor, Stephen L \[mailto:removed\_email\_address@domain.invalid\] Fantastic, thanks. One more minor question: what is ‘bit-return’ and ‘teir-return’. I think that ‘bit-return’ means “typing in the letters ‘b…

---

## [WWW::Mechanize 0.6.0 (Rufus)](https://www.ruby-forum.com/t/www-mechanize-0-6-0-rufus/67807)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 5\
**Last updated:** [September 7, 2006, 11:18pm UTC](https://www.ruby-forum.com/t/www-mechanize-0-6-0-rufus/67807 "2006-09-07T23:18:11Z")

</div>

Hi, I would like to announce that my Mechpricot pie is done baking and is ready to eat. The main feature of this release is that Mechanize uses Hpricot as its internal HTML parser and that you can now treat a page o…

---

## [Re: Crashing RubyConf](https://www.ruby-forum.com/t/re-crashing-rubyconf/67922)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 10:44pm UTC](https://www.ruby-forum.com/t/re-crashing-rubyconf/67922 "2006-09-07T22:44:07Z")

</div>

From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] you’re naked. unless you happend to be drunk too, then it’s ok. So…it’s an xor thing? As long as you are doing an odd number o…

---

## [Ruby OSA "AppleScript" for the Macintosh](https://www.ruby-forum.com/t/ruby-osa-applescript-for-the-macintosh/67455)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/ruby-osa-applescript-for-the-macintosh/67455 "2006-09-07T22:34:04Z")

</div>

Are you a Macintosh scripter who hoped that the title of this message was an announcement? If so, you’re not alone! (I mean, I know that at least I want this.) For those who don’t know: Apple’s scripting architecture…

---

## [Newbie help, please: cannot execute Tk under Windows XP](https://www.ruby-forum.com/t/newbie-help-please-cannot-execute-tk-under-windows-xp/67747)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 10\
**Last updated:** [September 7, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/newbie-help-please-cannot-execute-tk-under-windows-xp/67747 "2006-09-07T21:53:58Z")

</div>

Hello, I’m trying to run a very simple Ruby script that employs Tk: BEGIN FILE require ‘tk’ root = TkRoot.new {title “File to Open”} TkLabel.new(root) do text 'Please enter the name of a file to open: ’ pack(‘padx’…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/67917)

<div class="topic-metadata">

**Author:** [@Mohammed\_Sabti](https://www.ruby-forum.com/u/Mohammed_Sabti)\
**Replies:** 1\
**Last updated:** [September 7, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/no-subject/67917 "2006-09-07T21:51:58Z")

</div>

unsubscribe

---

## [What can you automate with Ruby?](https://www.ruby-forum.com/t/what-can-you-automate-with-ruby/67889)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 5\
**Last updated:** [September 7, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/what-can-you-automate-with-ruby/67889 "2006-09-07T20:33:46Z")

</div>

Hi all, I’m a newbie - please have patience. I am not sure if anyone uses Ruby as an automation tool - I think it would be a cool thing to do. I have heard of the WIN32OLE extension - it sounds cool - does anyone us…

---

## [Split script into several files](https://www.ruby-forum.com/t/split-script-into-several-files/67902)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 2\
**Last updated:** [September 7, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/split-script-into-several-files/67902 "2006-09-07T20:31:46Z")

</div>

Hi, I’m a newbie in ruby. I want to share some classes between different scripts. Something like a small library. How can I do this? Thanks Peter

---

## [PStore bug and verify](https://www.ruby-forum.com/t/pstore-bug-and-verify/67840)

<div class="topic-metadata">

**Author:** [@NARUSE\_Yui](https://www.ruby-forum.com/u/NARUSE_Yui)\
**Replies:** 3\
**Last updated:** [September 7, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/pstore-bug-and-verify/67840 "2006-09-07T20:15:43Z")

</div>

e$B@.@%$G$9!#e(B e$B$^$:!“e(Bpstore.rb e$B$Ge(B binary mode e$B$X$N$7K:$l$,$”$j$^$9!#e(B diff -u -r1.27 pstore.rb — pstore.rb 5 Feb 2006 05:28:11 -0000 1.27 +++ pstore.rb 7 Sep 2006 02:28:40 -0000 @@ -297,…

---

## [San Diego Ruby Users Group Meeting Tonight (Sep 7)](https://www.ruby-forum.com/t/san-diego-ruby-users-group-meeting-tonight-sep-7/67906)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/san-diego-ruby-users-group-meeting-tonight-sep-7/67906 "2006-09-07T20:01:42Z")

</div>

If you’re in the San Diego area, we’d like to invite you to attend our monthly presentation-style meeting tonight at 7:30pm. Scheduled talks: Natural Language Date/Time Parsing with Chronic \[Tom Preston-Werner\] Fixtu…

---

## [Telnet and 'waitfor'](https://www.ruby-forum.com/t/telnet-and-waitfor/67863)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 10\
**Last updated:** [September 7, 2006, 7:59pm UTC](https://www.ruby-forum.com/t/telnet-and-waitfor/67863 "2006-09-07T19:59:41Z")

</div>

Hi, by reading the man i understood that ‘waitfor’ method could be used like this : waitfor(String =\> ‘Name’, Timeout =\> 30) But, with that code… : telnet\_session = Net::Telnet.new(‘Host’ =\> @apc\_ip) @apc\_ip is th…

---

## [Binary Search Using Lambda](https://www.ruby-forum.com/t/binary-search-using-lambda/67547)

<div class="topic-metadata">

**Author:** [@rooster](https://www.ruby-forum.com/u/rooster)\
**Replies:** 5\
**Last updated:** [September 7, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/binary-search-using-lambda/67547 "2006-09-07T19:53:40Z")

</div>

Greetings, I’ve been playing around with various ways to write a function that does a binary search on an array of integers. Below is one of my implementations. I’m wondering if it is possible to avoid passing the f…

---

## [The process is completed. - Are you sure?](https://www.ruby-forum.com/t/the-process-is-completed-are-you-sure/67903)

<div class="topic-metadata">

**Author:** [@henrys](https://www.ruby-forum.com/u/henrys)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 7:44pm UTC](https://www.ruby-forum.com/t/the-process-is-completed-are-you-sure/67903 "2006-09-07T19:44:14Z")

</div>

Thank you for answering my previous questions. It really helps me to move with Ruby. Here is the next one: So my long loops are completed. The task is one-threaded, so I am sure that nothing MINE is still running. It…

---

## [How to properly bind context menus to canvas in Ruby/Tk?](https://www.ruby-forum.com/t/how-to-properly-bind-context-menus-to-canvas-in-ruby-tk/67432)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 12\
**Last updated:** [September 7, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/how-to-properly-bind-context-menus-to-canvas-in-ruby-tk/67432 "2006-09-07T19:35:38Z")

</div>

Hello! I am trying to bind context-menus to a Tk canvas. The canvas itself should have a context menu, giving the ability to create new objects. In addition, every object should have its own context menu so that t…

---

## [Multi-def docs?](https://www.ruby-forum.com/t/multi-def-docs/67779)

<div class="topic-metadata">

**Author:** [@YAD](https://www.ruby-forum.com/u/YAD)\
**Replies:** 4\
**Last updated:** [September 7, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/multi-def-docs/67779 "2006-09-07T19:01:36Z")

</div>

I thought Ruby allows you to define similar functions in parallel by putting the parts that differ together in square brackets. Is there some online documentation for that? I haven’t been able to find it yet.

---

## [Re: what can you automate with Ruby?](https://www.ruby-forum.com/t/re-what-can-you-automate-with-ruby/67897)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 0\
**Last updated:** [September 7, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/re-what-can-you-automate-with-ruby/67897 "2006-09-07T18:55:35Z")

</div>

On Windows, there are lots of options, depending on what program you wish to automate (I’m not qualified to comment on other OS options). Many programs have a COM (Win32OLE) interface that allows you to remote-control…

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

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