# Ruby

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

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

---

## [Continuation in ruby](https://www.ruby-forum.com/t/continuation-in-ruby/53757)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 3\
**Last updated:** [February 14, 2006, 10:54am UTC](https://www.ruby-forum.com/t/continuation-in-ruby/53757 "2006-02-14T10:54:07Z")

</div>

Hi all. I’ve written the following code to learn continuations in ruby only to fail. Please have a look at: def print\_num for i in (1…10) puts i if i % 2 == 0; callcc{|c| return c}; end end end cont = print\_num …

---

## [Globalization](https://www.ruby-forum.com/t/globalization/67799)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 14, 2006, 10:53am UTC](https://www.ruby-forum.com/t/globalization/67799 "2006-02-14T10:53:30Z")

</div>

Hello - I am a C++ and ASP.NET programmer very interested in doing future projects with RoR but am concerned about Globalization features. Does RoR allow some sort of framework to render pages data based on language s…

---

## [Generic method without case/when?](https://www.ruby-forum.com/t/generic-method-without-case-when/67633)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 2\
**Last updated:** [February 14, 2006, 10:38am UTC](https://www.ruby-forum.com/t/generic-method-without-case-when/67633 "2006-02-14T10:38:32Z")

</div>

I like to write a generic method that calls different functions depending on what string I parse to the method (see example) without having to use a case-when? Is there a way to do that? Process\_easy(“aFile”, “Summer…

---

## [Re: Carriage Return added during return of large string from](https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67581)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [February 14, 2006, 10:28am UTC](https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67581 "2006-02-14T10:28:49Z")

</div>

I haven’t heard anything back on this. Is my email getting through to the ruby-talk group ? Does anybody sense what I’m doing here? Sorry if this should be obvious, but it’s not. I haven’t even seen my own postin…

---

## [Re: FasterGenerator (#66)](https://www.ruby-forum.com/t/re-fastergenerator-66/53753)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [February 14, 2006, 7:59am UTC](https://www.ruby-forum.com/t/re-fastergenerator-66/53753 "2006-02-14T07:59:25Z")

</div>

:slight\_smile: James Edward G. II Which makes perfect sense, since Mutex is simply wrapping around Thread.critical, Thread.stop and Thread.wakeup. Mutex, as simple as it is, is overkill for what you’re trying to do…

---

## [How to pass a function as argument in ruby?](https://www.ruby-forum.com/t/how-to-pass-a-function-as-argument-in-ruby/53641)

<div class="topic-metadata">

**Author:** [@the\_crazy88](https://www.ruby-forum.com/u/the_crazy88)\
**Replies:** 8\
**Last updated:** [February 14, 2006, 7:03am UTC](https://www.ruby-forum.com/t/how-to-pass-a-function-as-argument-in-ruby/53641 "2006-02-14T07:03:34Z")

</div>

I’ve searched a bit about the subject, but I don’t understand it. All I want is to simply pass a function of one instance to another. In Python this works, but in ruby not. Python code would be: def x(a,b): return a…

---

## [Jabber4R stalls on Thread.stop in session.rb](https://www.ruby-forum.com/t/jabber4r-stalls-on-thread-stop-in-session-rb/53752)

<div class="topic-metadata">

**Author:** [@trejkaz](https://www.ruby-forum.com/u/trejkaz)\
**Replies:** 0\
**Last updated:** [February 14, 2006, 6:48am UTC](https://www.ruby-forum.com/t/jabber4r-stalls-on-thread-stop-in-session-rb/53752 "2006-02-14T06:48:41Z")

</div>

Has anyone successfully had Jabber4R working lately? The following command will never complete: session = Jabber::Session.bind\_digest('blah@server/name', ‘password’) It stalls on a Thread.stop() inside Session#initia…

---

## [Open4-0.2.0](https://www.ruby-forum.com/t/open4-0-2-0/67763)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 14, 2006, 6:28am UTC](https://www.ruby-forum.com/t/open4-0-2-0/67763 "2006-02-14T06:28:07Z")

</div>

URIS http://rubyforge.org/frs/?group\_id=1024 http://www.codeforpeople.com/lib/ruby/ SYNOPSIS open child process with handles on pid, stdin, stdout, and stderr HISTORY 0.2.0 : - added exception marshaled from child…

---

## [Quickly before all is lost!](https://www.ruby-forum.com/t/quickly-before-all-is-lost/65999)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 14\
**Last updated:** [February 14, 2006, 5:37am UTC](https://www.ruby-forum.com/t/quickly-before-all-is-lost/65999 "2006-02-14T05:37:51Z")

</div>

ZOMG! Ruby RSS feeds growing exponentially! Some type of PLANET aggragator is sorely needed, and quickly too. We must quarantine all these malicious ruby bloggers before they take over the entire Internet! They have s…

---

## [Nonblocking sockets, select, & OpenSSL](https://www.ruby-forum.com/t/nonblocking-sockets-select-openssl/66420)

<div class="topic-metadata">

**Author:** [@rakaur](https://www.ruby-forum.com/u/rakaur)\
**Replies:** 8\
**Last updated:** [February 14, 2006, 4:53am UTC](https://www.ruby-forum.com/t/nonblocking-sockets-select-openssl/66420 "2006-02-14T04:53:32Z")

</div>

I’ve been having issues using Ruby, select, and the OpenSSL library. I’ve heard from a few people “use threads! Ruby breaks select because threads rock!” I’m not going to use Ruby’s threads, because they’re not real a…

---

## [Re: Ruby port for Nokia 770 Wireless Internet Tablet](https://www.ruby-forum.com/t/re-ruby-port-for-nokia-770-wireless-internet-tablet/53744)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [February 14, 2006, 4:45am UTC](https://www.ruby-forum.com/t/re-ruby-port-for-nokia-770-wireless-internet-tablet/53744 "2006-02-14T04:45:35Z")

</div>

removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] #Lastly, my question to the community is this: would such a port of Ruby #be appropriately placed in the RAA or simply distributed to i…

---

## [More gem help](https://www.ruby-forum.com/t/more-gem-help/67674)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 14, 2006, 4:35am UTC](https://www.ruby-forum.com/t/more-gem-help/67674 "2006-02-14T04:35:59Z")

</div>

when running a gem install rubyforge-0.1.1.gem i’m getting the stub installed ok - but the ruby path in the stub is not ‘shebang-fied’. that is to say the wrapper has #! /usr/bin/env ruby instead of #! /dmsp/refer…

---

## [Is there a complete ruby email package?](https://www.ruby-forum.com/t/is-there-a-complete-ruby-email-package/53743)

<div class="topic-metadata">

**Author:** [@Kirk\_Johansen](https://www.ruby-forum.com/u/Kirk_Johansen)\
**Replies:** 0\
**Last updated:** [February 14, 2006, 4:33am UTC](https://www.ruby-forum.com/t/is-there-a-complete-ruby-email-package/53743 "2006-02-14T04:33:35Z")

</div>

I’m looking for a ruby email package that will allow managing email. Ie, something that includes a user interface. Is there a set of ruby programs that can do that? thanks, Kirk

---

## [Gem help](https://www.ruby-forum.com/t/gem-help/67631)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 14, 2006, 4:23am UTC](https://www.ruby-forum.com/t/gem-help/67631 "2006-02-14T04:23:38Z")

</div>

i have this jib:~/eg/ruby/rubyforge/rubyforge-0.1.1 \> file bin//rubyforge bin//rubyforge: a ruby script text executable jib:~/eg/ruby/rubyforge/rubyforge-0.1.1 \> cat ./gemspec.rb lib, version = File::basename(Fi…

---

## [Test::unit runner in eclipse rdt](https://www.ruby-forum.com/t/test-unit-runner-in-eclipse-rdt/53654)

<div class="topic-metadata">

**Author:** [@runxc](https://www.ruby-forum.com/u/runxc)\
**Replies:** 2\
**Last updated:** [February 14, 2006, 4:13am UTC](https://www.ruby-forum.com/t/test-unit-runner-in-eclipse-rdt/53654 "2006-02-14T04:13:33Z")

</div>

When i run the Test::Unit runner inside eclipse RDT, sometimes i get a grey bar instead of a green bar. Is the runner trying to tell me something about my tests or is this just a display glitch? I don’t have any error…

---

## [Re: Carriage Return added during return of large string from](https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67673)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [February 14, 2006, 4:10am UTC](https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67673 "2006-02-14T04:10:34Z")

</div>

My apologies: my return codes are actually there, as you more seasoned fellows undoubtedly knew. Apparently they get interpreted fine by vim, but I still when I use them to add to a string in ruby where another seg…

---

## [Working with kernel.eval](https://www.ruby-forum.com/t/working-with-kernel-eval/53699)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 7\
**Last updated:** [February 14, 2006, 3:59am UTC](https://www.ruby-forum.com/t/working-with-kernel-eval/53699 "2006-02-14T03:59:00Z")

</div>

I’m trying to calculate the results of formulas that are stored in text files. For example, a file may contain the line: 1+2/3 I want to take that line & get the result of the formula, 1.66 (roughly) The way to do th…

---

## [Mongrel 0.3.2 -- The Right Site/All Requests Answered](https://www.ruby-forum.com/t/mongrel-0-3-2-the-right-site-all-requests-answered/67549)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 3\
**Last updated:** [February 14, 2006, 3:18am UTC](https://www.ruby-forum.com/t/mongrel-0-3-2-the-right-site-all-requests-answered/67549 "2006-02-14T03:18:55Z")

</div>

“Another Mongrel release?! Is he insane?” Yeah, basically. This is yet another release of Mongrel that adds a bunch of little features people requested and I found were needed. This release is almost entirely tar…

---

## [Rubyforge releasing](https://www.ruby-forum.com/t/rubyforge-releasing/65616)

<div class="topic-metadata">

**Author:** [@Tobias\_L](https://www.ruby-forum.com/u/Tobias_L)\
**Replies:** 7\
**Last updated:** [February 14, 2006, 1:10am UTC](https://www.ruby-forum.com/t/rubyforge-releasing/65616 "2006-02-14T01:10:17Z")

</div>

Hey everyone, I’m looking for a good way to automate releasing updates to my libraries to rubyforge. I used to use Florian G.’ rake task but it recently broke like so: (in /Users/tobi/Code/Ruby/shopify/vendor/paypal) …

---

## [Ruby CGI question?](https://www.ruby-forum.com/t/ruby-cgi-question/66284)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 2\
**Last updated:** [February 13, 2006, 11:38pm UTC](https://www.ruby-forum.com/t/ruby-cgi-question/66284 "2006-02-13T23:38:26Z")

</div>

Could someone point me to some example code for a Ruby script that would parse information from and HTML form and send the info to a remote email address? All comments welcome john

---

## [Rake Friday?](https://www.ruby-forum.com/t/rake-friday/66029)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 22\
**Last updated:** [February 13, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/rake-friday/66029 "2006-02-13T23:31:37Z")

</div>

Is there a Friday, http://www.pragmaticprogrammer.com/fridays.html on Rake in the works? I want one. Later,

---

## [OO Design Advice](https://www.ruby-forum.com/t/oo-design-advice/67291)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [February 13, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/oo-design-advice/67291 "2006-02-13T22:34:52Z")

</div>

I’m trying to master the more subtle elements of Rubyish OO design, and am having trouble with the following aspect: I have a complicated, nested, value object ( eg order.customer.address.zipcode, or order.product\[0\].…

---

## [Why would i want to put my mysql password in the yml file?](https://www.ruby-forum.com/t/why-would-i-want-to-put-my-mysql-password-in-the-yml-file/65702)

<div class="topic-metadata">

**Author:** [@trevor](https://www.ruby-forum.com/u/trevor)\
**Replies:** 18\
**Last updated:** [February 13, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/why-would-i-want-to-put-my-mysql-password-in-the-yml-file/65702 "2006-02-13T22:21:35Z")

</div>

hello - i’m new! i don’t understand - the tutorial says to edit the database.yml file and put in the username and password, so that RoR can connect to the database. am i MISSING something here?? how can it be secure…

---

## [Idiomatic ruby](https://www.ruby-forum.com/t/idiomatic-ruby/102512)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 13, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/idiomatic-ruby/102512 "2006-02-13T22:15:25Z")

</div>

Very often I have a question method, which, in some cases, the caller would want to know why as well. Examples: def valid? end def abort? end Ruby does not allow subclassing true and false, so, if these methods r…

---

## [HELP! Installing Rails on OS X breaks irb?](https://www.ruby-forum.com/t/help-installing-rails-on-os-x-breaks-irb/53646)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 2\
**Last updated:** [February 13, 2006, 10:13pm UTC](https://www.ruby-forum.com/t/help-installing-rails-on-os-x-breaks-irb/53646 "2006-02-13T22:13:51Z")

</div>

OK … I need help. According to the info out on the Hivelogic site for Rails to work on OS X I had to do a build and install of Ruby and Rails to /usr/local. I did so and Rails is working fine. However when I try to…

---

## [Carriage Return added during return of large string from cla](https://www.ruby-forum.com/t/carriage-return-added-during-return-of-large-string-from-cla/67384)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [February 13, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/carriage-return-added-during-return-of-large-string-from-cla/67384 "2006-02-13T21:47:44Z")

</div>

Addendum: Here is the immediate code around my problem: def getTestHeadMarkup() stdCallbacks = getFile(StdCallbacks,"No #{StdCallbacks} File found.") stdMassGlobs = getFile(StdMassGlobs,"No #{StdMassGlobs} File f…

---

## [Carriage Return added during return of large string from cla](https://www.ruby-forum.com/t/carriage-return-added-during-return-of-large-string-from-cla/53705)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [February 13, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/carriage-return-added-during-return-of-large-string-from-cla/53705 "2006-02-13T21:39:54Z")

</div>

Say, this is a doosey: I’m constructing a string of markup for a CGI script, and I’m deciding to convert to print as I go rather than all at once, so I code, then start debugging, and to debug I dump markup. I then…

---

## [Equivalent of const modifier](https://www.ruby-forum.com/t/equivalent-of-const-modifier/66237)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 13, 2006, 9:38pm UTC](https://www.ruby-forum.com/t/equivalent-of-const-modifier/66237 "2006-02-13T21:38:41Z")

</div>

Very often, I’d like to ensure (and document) that a method will not change any of its parameters: This looks at, but doesn’t modify, a and b def mymethod(a, b) end In C++ I can do this with the const modifier. Is t…

---

## [Re: DateTime and speed question](https://www.ruby-forum.com/t/re-datetime-and-speed-question/67335)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 1\
**Last updated:** [February 13, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/re-datetime-and-speed-question/67335 "2006-02-13T20:47:38Z")

</div>

I recieve the following error at home and at work irb(main):001:0\> ri Time.parse NoMethodError: undefined method \`parse’ for Time:Class from (irb):1 On Tue, 2006-02-14 at 04:24 +0900, Mike F. wrote: Charlie B. wrot…

---

## [Struct creates non-standard classes](https://www.ruby-forum.com/t/struct-creates-non-standard-classes/66196)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 11\
**Last updated:** [February 13, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/struct-creates-non-standard-classes/66196 "2006-02-13T20:33:39Z")

</div>

If Struct is a shorthand way for creating Classes, why don’t objects created from those Classes have instance\_variables? Struct.new ‘Car’, :make, :model, :year c = Struct::Car.new ‘Saturn’, ‘SC2’, 1997 c.instance\_var…

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

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