# Ruby

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

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

---

## [Re: How to improve this kind of API?](https://www.ruby-forum.com/t/re-how-to-improve-this-kind-of-api/65120)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [February 9, 2006, 10:42pm UTC](https://www.ruby-forum.com/t/re-how-to-improve-this-kind-of-api/65120 "2006-02-09T22:42:28Z")

</div>

it always boils down to some widget attribute that can have a splitter3.expanded? :bottom\_left Thanks in advance for your suggestions! Lyle FWIW, I think what you’ve posted here looks good, so long as I could use …

---

## [Method Definitions: &block vs. yield()](https://www.ruby-forum.com/t/method-definitions-block-vs-yield/101800)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 7\
**Last updated:** [February 9, 2006, 8:54pm UTC](https://www.ruby-forum.com/t/method-definitions-block-vs-yield/101800 "2006-02-09T20:54:29Z")

</div>

Suppose I had two methods: First method def my\_first\_method(b) yield b end Second method def my\_second\_method(&block) block.call end I know that the block in the 2nd example is converted to a Proc object, but a P…

---

## [Odd http header corruption](https://www.ruby-forum.com/t/odd-http-header-corruption/101525)

<div class="topic-metadata">

**Author:** [@samj](https://www.ruby-forum.com/u/samj)\
**Replies:** 10\
**Last updated:** [February 9, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/odd-http-header-corruption/101525 "2006-02-09T19:36:07Z")

</div>

Hi there, I can’t tell if this is a problem with the ruby cgi library or with rails action pack (no response from the rails list so far), but I get an occasional error in the http headers from rails like this: HTTP/1…

---

## [Writing Secure Web Services](https://www.ruby-forum.com/t/writing-secure-web-services/53560)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 6\
**Last updated:** [February 9, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/writing-secure-web-services/53560 "2006-02-09T19:09:04Z")

</div>

I know this is Ruby-specific, but we plan to implement this system using Ruby and ActionWebService. We need to create a secure web service for B2B integration (ick, sounds too Enterprise-y). The request follows the …

---

## [Passing POST params from one rhtml to another](https://www.ruby-forum.com/t/passing-post-params-from-one-rhtml-to-another/65114)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 9, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/passing-post-params-from-one-rhtml-to-another/65114 "2006-02-09T18:34:05Z")

</div>

Greetings everyone. I am faced with a rather tricky problem. I have mod\_ruby/eRuby going on Apache, and have the following situation: I have an outer rhtml file which, using the open-uri library, opens up a remote r…

---

## [Phoenix Ruby Users Group February Meeting Reminder](https://www.ruby-forum.com/t/phoenix-ruby-users-group-february-meeting-reminder/53563)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 9, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/phoenix-ruby-users-group-february-meeting-reminder/53563 "2006-02-09T18:13:43Z")

</div>

The February meeting of the Phoenix Ruby U. Group will be held on: Monday, February 13 And held at: Cyclone Commerce. 8388 E Hartford Dr # 100 Scottsdale, AZ The meeting starts at 6:15 PM, and runs until about 8:00…

---

## [Using Classifier::LSI](https://www.ruby-forum.com/t/using-classifier-lsi/53526)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [February 9, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/using-classifier-lsi/53526 "2006-02-09T16:44:39Z")

</div>

Hi, I’ve just spent some time looking at the ruby classifier\[1\] library. I need to index 3000 one line product names. The default behaviour is to index items as they are inserted (at least it would certainly appear t…

---

## [Re: Yahoo! Widgets (JavaScript) - do we have a anything like](https://www.ruby-forum.com/t/re-yahoo-widgets-javascript-do-we-have-a-anything-like/53557)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 9, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/re-yahoo-widgets-javascript-do-we-have-a-anything-like/53557 "2006-02-09T14:46:44Z")

</div>

I believe Glenn called for something that lets him do desktop applets, not standard GUI. Can you make something like completely borderless windows with non-rectangular shapes in FOX? David V. Dear David, …

---

## [Distributing native and ruby version of a library](https://www.ruby-forum.com/t/distributing-native-and-ruby-version-of-a-library/64728)

<div class="topic-metadata">

**Author:** [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Replies:** 3\
**Last updated:** [February 9, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/distributing-native-and-ruby-version-of-a-library/64728 "2006-02-09T14:43:38Z")

</div>

Hi, I have a simple library, one in a pure ruby version and one in a ruby/c version (which is quicker). I would like to distribute both and let the user decide (by checking whether a c library is available) which ver…

---

## [Ruby IDEs](https://www.ruby-forum.com/t/ruby-ides/100773)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 14\
**Last updated:** [February 9, 2006, 2:39pm UTC](https://www.ruby-forum.com/t/ruby-ides/100773 "2006-02-09T14:39:42Z")

</div>

After years of programming in C++, Java et al my new job used Smalltalk which I have now been completely sold on :slight\_smile: I would like to progress into Ruby with it being similar and one of the up and coming dyna…

---

## [\[SOLUTION\] Splitting the Loot (#65) (My second attempt)](https://www.ruby-forum.com/t/solution-splitting-the-loot-65-my-second-attempt/53456)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 4\
**Last updated:** [February 9, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/solution-splitting-the-loot-65-my-second-attempt/53456 "2006-02-09T13:28:32Z")

</div>

I had a small chat with Manuel K., who found out that my version can’t split all loots correctly. For example, my old version didn’t split ruby loot.rb 6 34 78 21 70 45 67 70 19 90 76 54 20 30 19 80 7 65 43 56 46 Bu…

---

## [Web Host](https://www.ruby-forum.com/t/web-host/64878)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 9, 2006, 11:58am UTC](https://www.ruby-forum.com/t/web-host/64878 "2006-02-09T11:58:34Z")

</div>

I’m looking for a web host that supports Ruby. I’d like to runn Ruby on Rails and Instiki. Any experience and recommendation? Thanks.

---

## [Boolean annoyance](https://www.ruby-forum.com/t/boolean-annoyance/102394)

<div class="topic-metadata">

**Author:** [@Claudio\_J](https://www.ruby-forum.com/u/Claudio_J)\
**Replies:** 27\
**Last updated:** [February 9, 2006, 11:27am UTC](https://www.ruby-forum.com/t/boolean-annoyance/102394 "2006-02-09T11:27:18Z")

</div>

Hello, there is one thing in ruby that annoys me most (at least for now). if 0 puts “true” end Yes, I know everything expect nil and false are true but that’s probably the most illogic part of ruby. Because of this…

---

## [About GetoptLong and exceptions](https://www.ruby-forum.com/t/about-getoptlong-and-exceptions/64841)

<div class="topic-metadata">

**Author:** [@cowboy\_x](https://www.ruby-forum.com/u/cowboy_x)\
**Replies:** 2\
**Last updated:** [February 9, 2006, 11:18am UTC](https://www.ruby-forum.com/t/about-getoptlong-and-exceptions/64841 "2006-02-09T11:18:34Z")

</div>

Hi, I try to play with GetoptLong but i don’t know how to handle exceptions for this class (i’ve no found any documentation on this). Here my toy snippet : =-=-=-=-=-=-=-=-=-=-=-=- require ‘getoptlong’ def print\_us…

---

## [Langhelp-0.9.6](https://www.ruby-forum.com/t/langhelp-0-9-6/64949)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 9, 2006, 10:58am UTC](https://www.ruby-forum.com/t/langhelp-0-9-6/64949 "2006-02-09T10:58:01Z")

</div>

Hi, == Abstract Langhelp creates an index of documents of various programming languages and shell commands. Langhelp enables you to search documents instantly in Emacs. If you are a programmer, then you may sometime…

---

## [Can map/collect return fewer values than are found in the ta](https://www.ruby-forum.com/t/can-map-collect-return-fewer-values-than-are-found-in-the-ta/64881)

<div class="topic-metadata">

**Author:** [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Replies:** 7\
**Last updated:** [February 9, 2006, 10:28am UTC](https://www.ruby-forum.com/t/can-map-collect-return-fewer-values-than-are-found-in-the-ta/64881 "2006-02-09T10:28:30Z")

</div>

Is there a way for collect to return fewer items than the enumerable the collect is running on? It looks to me like map/collect will return at least one value for each item in the array – I’ve seen examples of how to …

---

## [Re: Grep via Ruby](https://www.ruby-forum.com/t/re-grep-via-ruby/64547)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [February 9, 2006, 9:03am UTC](https://www.ruby-forum.com/t/re-grep-via-ruby/64547 "2006-02-09T09:03:30Z")

</div>

Sorry if it was mentioned already (and not to discourage the OP, of course), but what’s wrong with “grep -i”? Isn’t it case-insensitive enough? :wink: Gennady.

---

## [Problems building binaries on OS X 10.4](https://www.ruby-forum.com/t/problems-building-binaries-on-os-x-10-4/101663)

<div class="topic-metadata">

**Author:** [@epasquier](https://www.ruby-forum.com/u/epasquier)\
**Replies:** 5\
**Last updated:** [February 9, 2006, 7:18am UTC](https://www.ruby-forum.com/t/problems-building-binaries-on-os-x-10-4/101663 "2006-02-09T07:18:49Z")

</div>

This is with the Ruby that ships with 10.4 (Tiger). We haven’t tried building our own Ruby on this platform yet. The problem is that the .h header files are in /usr/lib/ruby/1.8/universal-darwin8.0, while the libra…

---

## [OSCON Call For Proposals Deadline (Feb 13)](https://www.ruby-forum.com/t/oscon-call-for-proposals-deadline-feb-13/64906)

<div class="topic-metadata">

**Author:** [@Chad\_F](https://www.ruby-forum.com/u/Chad_F)\
**Replies:** 0\
**Last updated:** [February 9, 2006, 3:15am UTC](https://www.ruby-forum.com/t/oscon-call-for-proposals-deadline-feb-13/64906 "2006-02-09T03:15:53Z")

</div>

Hello Rubyists! We on the OSCON presentation committee wanted to remind you all that the deadline for proposals for this year’s O’Reilly Open Source Convention is Midnight (PST) Feb 13. So you have the rest of this …

---

## [Ruby jargon and slang](https://www.ruby-forum.com/t/ruby-jargon-and-slang/53450)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 28\
**Last updated:** [February 9, 2006, 3:11am UTC](https://www.ruby-forum.com/t/ruby-jargon-and-slang/53450 "2006-02-09T03:11:27Z")

</div>

I’m assembling a list of Ruby community “usages” and I want to make sure I haven’t missed anything important. I have such things as: duck typing, threequal, spaceship operator, singleton method, singleton class, splat…

---

## [Yahoo! Widgets (JavaScript) - do we have a anything like thi](https://www.ruby-forum.com/t/yahoo-widgets-javascript-do-we-have-a-anything-like-thi/64845)

<div class="topic-metadata">

**Author:** [@Glenn\_MSLewis](https://www.ruby-forum.com/u/Glenn_MSLewis)\
**Replies:** 1\
**Last updated:** [February 9, 2006, 2:23am UTC](https://www.ruby-forum.com/t/yahoo-widgets-javascript-do-we-have-a-anything-like-thi/64845 "2006-02-09T02:23:14Z")

</div>

Hi all! There is a challenge on Pixel Corps (http://www.pixelcorps.com/) to write a cool widget that runs both on WinXP and Mac OS X… I was going to use Ruby and OpenGL. In the challenge, they mentioned Yahoo! Widge…

---

## [Ruby IDE and remote development](https://www.ruby-forum.com/t/ruby-ide-and-remote-development/64843)

<div class="topic-metadata">

**Author:** [@Neowulf](https://www.ruby-forum.com/u/Neowulf)\
**Replies:** 1\
**Last updated:** [February 9, 2006, 1:51am UTC](https://www.ruby-forum.com/t/ruby-ide-and-remote-development/64843 "2006-02-09T01:51:32Z")

</div>

Hi all, I just thought I’d throw this out there are find out how other people tackle this issue. We currently run a WinXP based SOE in my organisation. I do most of my Ruby development on a remote Fedora-4 box. What…

---

## [How to do instance\_eval with arguments](https://www.ruby-forum.com/t/how-to-do-instance-eval-with-arguments/64808)

<div class="topic-metadata">

**Author:** [@jimweirich](https://www.ruby-forum.com/u/jimweirich)\
**Replies:** 4\
**Last updated:** [February 9, 2006, 1:46am UTC](https://www.ruby-forum.com/t/how-to-do-instance-eval-with-arguments/64808 "2006-02-09T01:46:01Z")

</div>

I’m prototyping a DSL and came across a situtation where I have a lambda that I would like to give to instance\_eval, but the lambda takes arguments. Instance\_eval will not supply any arguments when evaluating the lam…

---

## [How to create singleton methods in script](https://www.ruby-forum.com/t/how-to-create-singleton-methods-in-script/53545)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 8\
**Last updated:** [February 9, 2006, 1:36am UTC](https://www.ruby-forum.com/t/how-to-create-singleton-methods-in-script/53545 "2006-02-09T01:36:28Z")

</div>

Here is a simplified version of a little timekeeper app that I’ve been using to learn ruby with. The TimeKeeper class is a class I created also. I want to add a method to the script that displays some text if a bad …

---

## [Camping 1.3, the Microframework](https://www.ruby-forum.com/t/camping-1-3-the-microframework/53518)

<div class="topic-metadata">

**Author:** [@why\_the\_lucky\_stiff](https://www.ruby-forum.com/u/why_the_lucky_stiff)\
**Replies:** 7\
**Last updated:** [February 9, 2006, 1:06am UTC](https://www.ruby-forum.com/t/camping-1-3-the-microframework/53518 "2006-02-09T01:06:12Z")

</div>

Good people of the town: Maybe some of you are interesting in the continuing story of Camping. If not, I understand, these are sensitive matters, best wishes. Camping is a small framework designed to mimick Rails, bu…

---

## [Newbie](https://www.ruby-forum.com/t/newbie/64807)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 9, 2006, 12:53am UTC](https://www.ruby-forum.com/t/newbie/64807 "2006-02-09T00:53:31Z")

</div>

Hi all, hope this is the right place … I just started learning Ruby and as my first project I’m trying to migrate a web front-end for SalesForce.com that was written in PHP. The old PHP site used SOAP to interact wi…

---

## [Savannah Ruby Brigade Meeting](https://www.ruby-forum.com/t/savannah-ruby-brigade-meeting/53542)

<div class="topic-metadata">

**Author:** [@Sav\_Ruby](https://www.ruby-forum.com/u/Sav_Ruby)\
**Replies:** 0\
**Last updated:** [February 9, 2006, 12:08am UTC](https://www.ruby-forum.com/t/savannah-ruby-brigade-meeting/53542 "2006-02-09T00:08:34Z")

</div>

The Savannah-area Ruby user group meets every third Thursday of the month. The next meeting will be on Feb. 16th, 2006 at tps Consulting located at 418A East Taylor Street, 31401 at 7:00pm. Bradley Taylor will be giv…

---

## [Splitting the Loot (#65)](https://www.ruby-forum.com/t/splitting-the-loot-65/100682)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 32\
**Last updated:** [February 8, 2006, 11:46pm UTC](https://www.ruby-forum.com/t/splitting-the-loot-65/100682 "2006-02-08T23:46:58Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Ruby in Browsers?](https://www.ruby-forum.com/t/ruby-in-browsers/102053)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 14\
**Last updated:** [February 8, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/ruby-in-browsers/102053 "2006-02-08T22:40:17Z")

</div>

Hi, I’ve had to start using JavaScript to make a DHTML interface. After learning Ruby I feel like I’m taking a giant step back in productivity and fun by using JavaScript. PITA. Any moves out there to get Ruby imbede…

---

## [Subversion Handy Backup, rev 8](https://www.ruby-forum.com/t/subversion-handy-backup-rev-8/64768)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 0\
**Last updated:** [February 8, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/subversion-handy-backup-rev-8/64768 "2006-02-08T22:34:35Z")

</div>

I added a script that sends backups to a FTP server. So now you can chose between 2 places to send the backup: FTP or to a mail account. see: http://handy.rubyforge.org/backup\_via\_ftp.html http://handy.rubyforge.org…

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

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