# Ruby

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

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

---

## [Check Development vs. Production](https://www.ruby-forum.com/t/check-development-vs-production/98041)

<div class="topic-metadata">

**Author:** [@Blazer](https://www.ruby-forum.com/u/Blazer)\
**Replies:** 2\
**Last updated:** [July 12, 2006, 8:23am UTC](https://www.ruby-forum.com/t/check-development-vs-production/98041 "2006-07-12T08:23:19Z")

</div>

Is there a way to determine (global variable) to determine whether I’m running rails in development or production within an application? Thanks in advance … DC - Any day above ground is a good day!

---

## [Help with socket method in rails controller](https://www.ruby-forum.com/t/help-with-socket-method-in-rails-controller/97984)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 12, 2006, 8:10am UTC](https://www.ruby-forum.com/t/help-with-socket-method-in-rails-controller/97984 "2006-07-12T08:10:37Z")

</div>

I’m trying to write a method in a controller to write to a socket, I’m kinda stumped right now. Here’s my code: def socketwriter require “socket” s=TCPSocket.new(“ip”,“port”) s.write (“arguments|I|want|to|send|”) …

---

## [Module private methods inheritance?](https://www.ruby-forum.com/t/module-private-methods-inheritance/97926)

<div class="topic-metadata">

**Author:** [@zenzei](https://www.ruby-forum.com/u/zenzei)\
**Replies:** 11\
**Last updated:** [July 12, 2006, 8:01am UTC](https://www.ruby-forum.com/t/module-private-methods-inheritance/97926 "2006-07-12T08:01:08Z")

</div>

Hi list, while playing with ruby, I’ve hit a point I’m not really clear about. code : module A def initialize; puts “From A” end end module B def initialize; puts “From B” end end module A include B end class…

---

## [Kernel#p and output record separator](https://www.ruby-forum.com/t/kernel-p-and-output-record-separator/97902)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 4\
**Last updated:** [July 12, 2006, 7:14am UTC](https://www.ruby-forum.com/t/kernel-p-and-output-record-separator/97902 "2006-07-12T07:14:53Z")

</div>

Hi. ri Kernel#p shows this: --------------------------------------------------------------- Kernel#p p(obj, …) =\> nil For each object, directly writes \_obj\_.+inspect+ followed by the current output record separat…

---

## [Processes and Portability](https://www.ruby-forum.com/t/processes-and-portability/97964)

<div class="topic-metadata">

**Author:** [@dmatrix00d](https://www.ruby-forum.com/u/dmatrix00d)\
**Replies:** 18\
**Last updated:** [July 12, 2006, 5:51am UTC](https://www.ruby-forum.com/t/processes-and-portability/97964 "2006-07-12T05:51:49Z")

</div>

I would like to run a process concurrently (thus if the process goes to sleep or runs forever, I can still run other code from my main process) and have all standard out of that process be put into a text file. I wou…

---

## [Some questions about serious Ruby development](https://www.ruby-forum.com/t/some-questions-about-serious-ruby-development/97914)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 10\
**Last updated:** [July 12, 2006, 5:26am UTC](https://www.ruby-forum.com/t/some-questions-about-serious-ruby-development/97914 "2006-07-12T05:26:52Z")

</div>

I like Ruby. I like it more than Python. It’s my PERL replacement. I used to use PERL for automated file management but I have switched to Ruby because it is awesome and PERL blows. To be fair, I thought PERL was …

---

## [Re: Decent HTML Parser?](https://www.ruby-forum.com/t/re-decent-html-parser/98028)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 0\
**Last updated:** [July 12, 2006, 3:12am UTC](https://www.ruby-forum.com/t/re-decent-html-parser/98028 "2006-07-12T03:12:25Z")

</div>

On Jul 11, 2006, at 17:55, Kevin Weller wrote: Ooooh, thanks, that might be just what the doctor ordered…especially if it handles a single text line of an HTML document. Right now I have a temporary solution that inv…

---

## [Running windows ruby, and watir under wine on linux?](https://www.ruby-forum.com/t/running-windows-ruby-and-watir-under-wine-on-linux/97987)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 5\
**Last updated:** [July 12, 2006, 2:45am UTC](https://www.ruby-forum.com/t/running-windows-ruby-and-watir-under-wine-on-linux/97987 "2006-07-12T02:45:16Z")

</div>

Friends- I have seen a few blog posts where folks mention that they have gotten the ruby one click installer and watir/IE running under wine on linux. Has anyone out there done this successfully? My company would be…

---

## [Merging two REXML element-lists](https://www.ruby-forum.com/t/merging-two-rexml-element-lists/97942)

<div class="topic-metadata">

**Author:** [@ejepsen](https://www.ruby-forum.com/u/ejepsen)\
**Replies:** 3\
**Last updated:** [July 12, 2006, 1:22am UTC](https://www.ruby-forum.com/t/merging-two-rexml-element-lists/97942 "2006-07-12T01:22:15Z")

</div>

Hello, I have two xml files which are identical almost identical. #1 holds all possible values to the application. #2 holds a selected subset of values which should overwrite the values of the first where identical. i…

---

## [Panagrams (#86)](https://www.ruby-forum.com/t/panagrams-86/97515)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 40\
**Last updated:** [July 12, 2006, 12:23am UTC](https://www.ruby-forum.com/t/panagrams-86/97515 "2006-07-12T00:23:21Z")

</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 TkListBox option](https://www.ruby-forum.com/t/ruby-tklistbox-option/98009)

<div class="topic-metadata">

**Author:** [@jtoy](https://www.ruby-forum.com/u/jtoy)\
**Replies:** 1\
**Last updated:** [July 12, 2006, 12:19am UTC](https://www.ruby-forum.com/t/ruby-tklistbox-option/98009 "2006-07-12T00:19:49Z")

</div>

Can anyone tell me if the TkListbox option insertBackground is available in Ruby Tk? I’m having no luck when trying to set this option via the TkListbox.configure(‘insertBackground’, ‘red’) method or even trying to s…

---

## [CGI with Ruby](https://www.ruby-forum.com/t/cgi-with-ruby/97985)

<div class="topic-metadata">

**Author:** [@Harish\_TM](https://www.ruby-forum.com/u/Harish_TM)\
**Replies:** 4\
**Last updated:** [July 11, 2006, 11:14pm UTC](https://www.ruby-forum.com/t/cgi-with-ruby/97985 "2006-07-11T23:14:28Z")

</div>

Hi, I am having some problems with Ruby CGI code. What I am trying to do is to use the Ruby WordNet Modules when working with some CGI programs. I need the CGI program to call a couple of functions defined in a dif…

---

## [Re: Scalablity question (Stand-alone server)](https://www.ruby-forum.com/t/re-scalablity-question-stand-alone-server/97959)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 4\
**Last updated:** [July 11, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/re-scalablity-question-stand-alone-server/97959 "2006-07-11T23:00:42Z")

</div>

Hi, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription and po…

---

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

<div class="topic-metadata">

**Author:** [@WilliamsS\_Ali](https://www.ruby-forum.com/u/WilliamsS_Ali)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/no-subject/97867 "2006-07-11T22:36:41Z")

</div>

HELP Hi, I’m a Ruby on Rails newbie. I’ve been tasked with building our office’s first ROR application, and I am the only one working on it, so I am muddling through with a couple of books… Moving along slowly but …

---

## [Blocks and procs](https://www.ruby-forum.com/t/blocks-and-procs/97975)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 8\
**Last updated:** [July 11, 2006, 10:04pm UTC](https://www.ruby-forum.com/t/blocks-and-procs/97975 "2006-07-11T22:04:11Z")

</div>

Just curious, I’m just learning about Procs, and have already looked at using blocks. Are they very close in the way they function. It seems that way to me. Perhaps I’m wrong. Is one favoured above the other ? TIA …

---

## [Method calling to Proc, want to confirm I understand](https://www.ruby-forum.com/t/method-calling-to-proc-want-to-confirm-i-understand/97986)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 0\
**Last updated:** [July 11, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/method-calling-to-proc-want-to-confirm-i-understand/97986 "2006-07-11T21:54:36Z")

</div>

Apologies, cause I’m trying to wrap my brain around this code and I have some questions about it. 1- It seems that until ‘block.call’ what is getting passed into the method parameters is being held in que (so to spea…

---

## [Ctrl + C - Running in background](https://www.ruby-forum.com/t/ctrl-c-running-in-background/97932)

<div class="topic-metadata">

**Author:** [@judofyr](https://www.ruby-forum.com/u/judofyr)\
**Replies:** 1\
**Last updated:** [July 11, 2006, 9:20pm UTC](https://www.ruby-forum.com/t/ctrl-c-running-in-background/97932 "2006-07-11T21:20:55Z")

</div>

Hi, i got two questions: 1: I want my program to exit when I press ctrl + c. How can I do this? 2: I want another program to run in the background. Possible? Thank you!!

---

## [Developmetn Releases on Rubyforge](https://www.ruby-forum.com/t/developmetn-releases-on-rubyforge/97980)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 8:34pm UTC](https://www.ruby-forum.com/t/developmetn-releases-on-rubyforge/97980 "2006-07-11T20:34:28Z")

</div>

Wish there a way to mark a Rubyforge release as “official” so that a later development releases wouldn’t become the default package/gem. What solutions to this do others use? T.

---

## [Re: Developmetn Releases on Rubyforge](https://www.ruby-forum.com/t/re-developmetn-releases-on-rubyforge/97981)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [July 11, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/re-developmetn-releases-on-rubyforge/97981 "2006-07-11T20:28:19Z")

</div>

What solutions to this do others use? T. Simple - I don’t put out a gems for development releases. You want it? You gotta grab it yourself. :slight\_smile: Does rubygems support a “status” option, i.e. “stable”, “a…

---

## [Ruby -\>Watir - Clicking javascript](https://www.ruby-forum.com/t/ruby-watir-clicking-javascript/97955)

<div class="topic-metadata">

**Author:** [@newyorkdolluk](https://www.ruby-forum.com/u/newyorkdolluk)\
**Replies:** 1\
**Last updated:** [July 11, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/ruby-watir-clicking-javascript/97955 "2006-07-11T19:07:45Z")

</div>

hi, i have a html file with the following javascript: \<td width="60" id=“toplevel\_button4” onclick=“javascript:window.location=’/ATT/listr eports.do’” onmouseover=“javascript:window.st…

---

## [VLC streaming getting messages from vlc](https://www.ruby-forum.com/t/vlc-streaming-getting-messages-from-vlc/97967)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 11, 2006, 6:58pm UTC](https://www.ruby-forum.com/t/vlc-streaming-getting-messages-from-vlc/97967 "2006-07-11T18:58:01Z")

</div>

if i do : reponse=/Applications/FreePlayer/new/VLC.app/Contents/MacOS/VLC rtsp://mafreebox.freebox.fr/freeboxtv/210 & from a ruby script i get the reponse from the VLC app only after i’ve killed the job. howver i’d l…

---

## [Marshal's handling of floats](https://www.ruby-forum.com/t/marshals-handling-of-floats/97655)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 14\
**Last updated:** [July 11, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/marshals-handling-of-floats/97655 "2006-07-11T18:57:52Z")

</div>

I was thinking about writing a patch to modify how Marshal handles floats, right now it dumps them using sprintf(3) and stores the resulting string in the Marshal stream. I’d like to see it handle floats the same way …

---

## [wxRuby and getting the display size](https://www.ruby-forum.com/t/wxruby-and-getting-the-display-size/97798)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 3\
**Last updated:** [July 11, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/wxruby-and-getting-the-display-size/97798 "2006-07-11T18:48:09Z")

</div>

Hi, I’m using wxRuby v0.6.0 and am trying to get the size of the display. According to the wxWindows documentation, there’s a function wxGetDisplaySize() that will do what I want. Does wxRuby provide access to this fu…

---

## [Please put the death nail in #type](https://www.ruby-forum.com/t/please-put-the-death-nail-in-type/97958)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 11, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/please-put-the-death-nail-in-type/97958 "2006-07-11T17:52:36Z")

</div>

Mind if we finally do away with #type altogether now? The warning is getting old --I mean like granny old. T.

---

## [Re: wxRuby and getting the display size](https://www.ruby-forum.com/t/re-wxruby-and-getting-the-display-size/97957)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 0\
**Last updated:** [July 11, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/re-wxruby-and-getting-the-display-size/97957 "2006-07-11T17:28:38Z")

</div>

I just wrote and tested the code below. It gets the coordinates of the Windows desktop area (screen not including taskbar) via a Windows API call. Jamal require ‘Win32API’ def get\_desktop\_area() function = Win32AP…

---

## [Platform Independence Programming](https://www.ruby-forum.com/t/platform-independence-programming/97900)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 7\
**Last updated:** [July 11, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/platform-independence-programming/97900 "2006-07-11T16:50:12Z")

</div>

Hi list. I’d like to ask a question on platform independent programming with Ruby. The very first thing that comes to my mind is “\\r\\n” (new line) and “” (directory separator). Both of them should be correctly used…

---

## [Ruby in Paris?](https://www.ruby-forum.com/t/ruby-in-paris/97859)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 4\
**Last updated:** [July 11, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/ruby-in-paris/97859 "2006-07-11T16:10:26Z")

</div>

Hi, The wife and I are going to be in Paris from December 16 to 23rd of this year. Be great if I could do some Rails, Ruby, or other computer stuff there, so I have an excuse to write it off as a business expense. :…

---

## [Ruby Scripts Location](https://www.ruby-forum.com/t/ruby-scripts-location/97801)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 3\
**Last updated:** [July 11, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/ruby-scripts-location/97801 "2006-07-11T15:27:57Z")

</div>

Hi All I know this should be very simple but I can’t for the life of me find the answer using Pickaxe or Google. I want to be able to access the location/path of the currently executing Ruby script. I thought it was…

---

## [Trouble with on gem in rubyscript2exe](https://www.ruby-forum.com/t/trouble-with-on-gem-in-rubyscript2exe/97922)

<div class="topic-metadata">

**Author:** [@hotjuneshen](https://www.ruby-forum.com/u/hotjuneshen)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/trouble-with-on-gem-in-rubyscript2exe/97922 "2006-07-11T14:40:48Z")

</div>

Greetings I’m using rubyscript2exe to build and distribute .exe versions of my Ruby-programs at my office. In one of my programs I use my own gem: require 'expanded\_date' this gem is built and installed successfully…

---

## [Is possible to return after exec cmd?](https://www.ruby-forum.com/t/is-possible-to-return-after-exec-cmd/97915)

<div class="topic-metadata">

**Author:** [@ollin](https://www.ruby-forum.com/u/ollin)\
**Replies:** 7\
**Last updated:** [July 11, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/is-possible-to-return-after-exec-cmd/97915 "2006-07-11T14:37:36Z")

</div>

Hi folks, why doesn’t work command 5.times{exec “pwd”} like this 5.times{puts “Hello”} ? ollin

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

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