# Ruby

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

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

---

## [JRuby progress and the future](https://www.ruby-forum.com/t/jruby-progress-and-the-future/75859)

<div class="topic-metadata">

**Author:** [@Charles\_O\_Nutter](https://www.ruby-forum.com/u/Charles_O_Nutter)\
**Replies:** 4\
**Last updated:** [March 3, 2006, 10:15am UTC](https://www.ruby-forum.com/t/jruby-progress-and-the-future/75859 "2006-03-03T10:15:36Z")

</div>

Sorry for the unsolicited promotion of JRuby and my own blog, but I have been keeping a record of updates to JRuby along with musings on the future of Ruby and Java playing together at http://headius.blogspot.com. For…

---

## [Unix Shell](https://www.ruby-forum.com/t/unix-shell/75719)

<div class="topic-metadata">

**Author:** [@gjohnson71](https://www.ruby-forum.com/u/gjohnson71)\
**Replies:** 5\
**Last updated:** [March 3, 2006, 9:24am UTC](https://www.ruby-forum.com/t/unix-shell/75719 "2006-03-03T09:24:23Z")

</div>

I’m new to RUBY, but am familar with other scripting languages, PHP, Perl, Wscript, etc. I’d like to be able to run items from the shell such as ls -l \> dirlisting.txt. Just an example. Can I do this? I would have…

---

## [Mongrel 0.3.7.1 -- 1000 Paper Cuts Release](https://www.ruby-forum.com/t/mongrel-0-3-7-1-1000-paper-cuts-release/76158)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 0\
**Last updated:** [March 3, 2006, 8:30am UTC](https://www.ruby-forum.com/t/mongrel-0-3-7-1-1000-paper-cuts-release/76158 "2006-03-03T08:30:01Z")

</div>

This release of Mongrel is coming at you with lots of very little but important features and fixes. The big highlights are: \* Initial beginning of the plugin support that will let people write their own handlers a…

---

## [Re: Can Anyone Recommend A Good DSL Book?](https://www.ruby-forum.com/t/re-can-anyone-recommend-a-good-dsl-book/76157)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 3, 2006, 8:05am UTC](https://www.ruby-forum.com/t/re-can-anyone-recommend-a-good-dsl-book/76157 "2006-03-03T08:05:46Z")

</div>

Check out Code Generation in Action. It’s a good book on code generation that uses Ruby/erb/REXML/etc. Interestingly, it was the book that got me off of my arse and looking at Ruby… From: Sean M. removed\_email\_addres…

---

## [Gsub problem](https://www.ruby-forum.com/t/gsub-problem/75759)

<div class="topic-metadata">

**Author:** [@hpolat](https://www.ruby-forum.com/u/hpolat)\
**Replies:** 16\
**Last updated:** [March 3, 2006, 6:10am UTC](https://www.ruby-forum.com/t/gsub-problem/75759 "2006-03-03T06:10:59Z")

</div>

I have spend over 4 hours for this… here is the question masters, very simple. str=String.new str="\[1,2\]\[2,1\]\[3,1\]\[4,1\]" now I want to print this string as \[1,2\],\[2,1\],\[3,1\],\[4,1\] in other word I want to add comma …

---

## [Example of how to rb\_class\_new\_instance(... rb\_cBignum)?](https://www.ruby-forum.com/t/example-of-how-to-rb-class-new-instance-rb-cbignum/76082)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 5\
**Last updated:** [March 3, 2006, 5:34am UTC](https://www.ruby-forum.com/t/example-of-how-to-rb-class-new-instance-rb-cbignum/76082 "2006-03-03T05:34:44Z")

</div>

I’m building a C extension and have a “long long” which I want to turn into a Bignum. Can anyone point me to an example please? I’ve googled without success. Clifford H…

---

## [Nuby - why does my #inspect misbehave?](https://www.ruby-forum.com/t/nuby-why-does-my-inspect-misbehave/76084)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [March 3, 2006, 5:16am UTC](https://www.ruby-forum.com/t/nuby-why-does-my-inspect-misbehave/76084 "2006-03-03T05:16:33Z")

</div>

I’m working through a few exercises to teach myself Ruby. One of them is the creation of a deck of cards along with all the usual operations one performs upon them. I override the Object#inspect method to pretty-print…

---

## [Ruby as First Language](https://www.ruby-forum.com/t/ruby-as-first-language/72314)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 51\
**Last updated:** [March 3, 2006, 4:25am UTC](https://www.ruby-forum.com/t/ruby-as-first-language/72314 "2006-03-03T04:25:19Z")

</div>

Hi! I’m interested in getting opinions on Ruby as a first language. For example, how it compares to python/perl/basic/etc as a first language. My goals are to learn the basics of a language, then delve into network pr…

---

## [Net::HTTP working on Windows, but not Unix](https://www.ruby-forum.com/t/net-http-working-on-windows-but-not-unix/75895)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [March 3, 2006, 3:22am UTC](https://www.ruby-forum.com/t/net-http-working-on-windows-but-not-unix/75895 "2006-03-03T03:22:05Z")

</div>

We have an odd problem at work today. Running the following code on Windows XP gives us a CVV2 error, which is what we expect (we didn’t give one). However, running the same code on Linux or OS X gets a complaint tha…

---

## [Gsub wrapper](https://www.ruby-forum.com/t/gsub-wrapper/76007)

<div class="topic-metadata">

**Author:** [@hector](https://www.ruby-forum.com/u/hector)\
**Replies:** 5\
**Last updated:** [March 3, 2006, 2:39am UTC](https://www.ruby-forum.com/t/gsub-wrapper/76007 "2006-03-03T02:39:52Z")

</div>

Help! How do I get $1, $2, and $3 to get interpolated in the following snippet? string = ‘This is a test of the emergency’ regexp = Regexp.new(’(\\W)+(\\w\\w)(\\W)+’) replacement = ‘$1-\>$2\<-$3’ user\_wants\_upcase=FALSE …

---

## [Ruby SNMP 1.0.0 Released](https://www.ruby-forum.com/t/ruby-snmp-1-0-0-released/54385)

<div class="topic-metadata">

**Author:** [@Dave\_Halliday](https://www.ruby-forum.com/u/Dave_Halliday)\
**Replies:** 0\
**Last updated:** [March 3, 2006, 1:21am UTC](https://www.ruby-forum.com/t/ruby-snmp-1-0-0-released/54385 "2006-03-03T01:21:27Z")

</div>

Release 1.0.0 of Ruby SNMP is now available. (Whoo hoo!) The feature set is pretty complete for SNMP v1 and v2c and there are no known bugs. There’s even some documentation. So after more than 3000 downloads, it’s …

---

## [Write Fortran in Ruby](https://www.ruby-forum.com/t/write-fortran-in-ruby/75686)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 8\
**Last updated:** [March 3, 2006, 1:06am UTC](https://www.ruby-forum.com/t/write-fortran-in-ruby/75686 "2006-03-03T01:06:24Z")

</div>

A fun, but ultimately pointless exercise from the “Python for Fortran Programmers” thread in news:comp.lang.fortran: Try to write the following Fortran 77 program (note the 6 space indentation) in Ruby so that it look…

---

## [Gsub wrapper re-submitted](https://www.ruby-forum.com/t/gsub-wrapper-re-submitted/76033)

<div class="topic-metadata">

**Author:** [@hector](https://www.ruby-forum.com/u/hector)\
**Replies:** 0\
**Last updated:** [March 3, 2006, 12:15am UTC](https://www.ruby-forum.com/t/gsub-wrapper-re-submitted/76033 "2006-03-03T00:15:07Z")

</div>

Help! How do I get $1, $2, and $3 to get interpolated in the following snippet? string = ‘This is a test of the emergency’ regexp = Regexp.new(’(\\W)+(\\w\\w)(\\W)+’) replacement = ‘$1-\>$2\<-$3’ user\_wants\_upcase=FALSE …

---

## [Re: Current Temperature (#68)](https://www.ruby-forum.com/t/re-current-temperature-68/75718)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 5\
**Last updated:** [March 2, 2006, 11:38pm UTC](https://www.ruby-forum.com/t/re-current-temperature-68/75718 "2006-03-02T23:38:44Z")

</div>

Thanks James to point out legal issue. My solution is just kind of Ruby exercice to show how to apply REXML and open-uri. Please consider my solution as an example of how to use REXML and open-uri to answer the Quiz…

---

## [Re: Confusion Over Keyword Arguments](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75970)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [March 2, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75970 "2006-03-02T23:35:35Z")

</div>

to Here’s the latest test case we had for Sydney. Note that Sydney http://redhanded.hobix.com/inspect/namedParametersArenTTheyAllNamed.ht You can use named parameters, using the name of the parameter Your testcas…

---

## [Current Temperature (#68)](https://www.ruby-forum.com/t/current-temperature-68/75688)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [March 2, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/current-temperature-68/75688 "2006-03-02T23:20:41Z")

</div>

Obviously, this quiz is about fetching data from the Internet. People went about this in two different ways. The most popular solution was to “scrape” the answer from popular Internet weather sites. Here is one su…

---

## [Re: Confusion Over Keyword Arguments](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75722)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 11\
**Last updated:** [March 2, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75722 "2006-03-02T21:53:15Z")

</div>

\-----Original Message----- From: Yukihiro M. \[mailto:removed\_email\_address@domain.invalid\] Sent: Wednesday, March 01, 2006 4:46 PM To: ruby-talk ML Subject: Re: Confusion Over Keyword Arguments |How about “=” fo…

---

## [Re: Process management and control](https://www.ruby-forum.com/t/re-process-management-and-control/75858)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 2, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/re-process-management-and-control/75858 "2006-03-02T20:33:34Z")

</div>

Stop a process/script Monitor a process/script to see if it dies or is abnormally terminated I was expecting something like: my\_script = Process.new("/tmp/script.sh") my\_script.start Essentially is there a way to …

---

## [Rails: User-role based content](https://www.ruby-forum.com/t/rails-user-role-based-content/75855)

<div class="topic-metadata">

**Author:** [@preben](https://www.ruby-forum.com/u/preben)\
**Replies:** 1\
**Last updated:** [March 2, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/rails-user-role-based-content/75855 "2006-03-02T20:15:37Z")

</div>

Hi everyone. Let’s fx. say, that the content based on the front page (or any other page) of the homepage is dependent on the roles that the user have. How would you model this into a rails application? I’m thinking o…

---

## [Productcatalog and images with rails](https://www.ruby-forum.com/t/productcatalog-and-images-with-rails/54369)

<div class="topic-metadata">

**Author:** [@preben](https://www.ruby-forum.com/u/preben)\
**Replies:** 0\
**Last updated:** [March 2, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/productcatalog-and-images-with-rails/54369 "2006-03-02T19:58:49Z")

</div>

How should I make a productcatalog containing images with rails. Would binary data for a database be the way or should the images be stored on the server and how should this be done the rails-way? Thanks Preben

---

## [Using testrb](https://www.ruby-forum.com/t/using-testrb/75810)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [March 2, 2006, 7:20pm UTC](https://www.ruby-forum.com/t/using-testrb/75810 "2006-03-02T19:20:18Z")

</div>

My script works but testrb is giving me some error messages. I’ve just come across unit testing yestarday so I’m quite new to this. What do these error messages mean and why does the script not run? A sample script:- …

---

## [Delete folder when files does not exist](https://www.ruby-forum.com/t/delete-folder-when-files-does-not-exist/75812)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 0\
**Last updated:** [March 2, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/delete-folder-when-files-does-not-exist/75812 "2006-03-02T19:18:54Z")

</div>

how to delete folder only when files does not exis ? like Dir.delete “#{RAILS\_ROOT}/public/images/#{property.id}/#{unit.id}”

---

## [Process management and control](https://www.ruby-forum.com/t/process-management-and-control/75811)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 2, 2006, 7:13pm UTC](https://www.ruby-forum.com/t/process-management-and-control/75811 "2006-03-02T19:13:51Z")

</div>

I’d like, from within Ruby, to be able to: Start a process/script Stop a process/script Monitor a process/script to see if it dies or is abnormally terminated I was expecting something like: my\_script = Process.new(…

---

## [Your Favorite One Liner](https://www.ruby-forum.com/t/your-favorite-one-liner/54304)

<div class="topic-metadata">

**Author:** [@dnorton](https://www.ruby-forum.com/u/dnorton)\
**Replies:** 10\
**Last updated:** [March 2, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/your-favorite-one-liner/54304 "2006-03-02T19:07:04Z")

</div>

Give out your favorite one liner, what it does, and when you use it. For me: puts ARGV\[rand(ARGV.size)\] It randomly prints one of the command line options passed to it. I typically use it to make a decision when I h…

---

## [Make install may make other ruby processs SEGV](https://www.ruby-forum.com/t/make-install-may-make-other-ruby-processs-segv/75806)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 5\
**Last updated:** [March 2, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/make-install-may-make-other-ruby-processs-segv/75806 "2006-03-02T18:32:11Z")

</div>

e$B$?$^$K!“F0$$$F$$$ke(B ruby e$B%W%m%;%9$,$”$k$H$-$Ke(B make install e$B$7e(B e$B$F$7$^$&$3$H$,$"$k$N$G$9$,!"$=$N$H$-$K$=$Ne(B ruby e$B%W%m%;%9$,e(B segv e$B$K$J$k$3$H$,$"$j$^$9!#e(B e$BNc$($P!"0J2\<$N$h$&$J%W%m%0%i%…

---

## [Re: Write Fortran in Ruby](https://www.ruby-forum.com/t/re-write-fortran-in-ruby/75760)

<div class="topic-metadata">

**Author:** [@Christopher\_Dunn](https://www.ruby-forum.com/u/Christopher_Dunn)\
**Replies:** 1\
**Last updated:** [March 2, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/re-write-fortran-in-ruby/75760 "2006-03-02T18:06:48Z")

</div>

Try to write the following Fortran 77 program (note the 6 space indentation) in Ruby so that it looks as close to the Fortran as possible without extending Ruby: program ii integer i do i=0,10 print\*,i …

---

## [Ruby based Project Control application?](https://www.ruby-forum.com/t/ruby-based-project-control-application/75383)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [March 2, 2006, 5:38pm UTC](https://www.ruby-forum.com/t/ruby-based-project-control-application/75383 "2006-03-02T17:38:54Z")

</div>

I am looking for an open-source, web-based, project control, bug-tracking, user help-desk type application to assist in an internal transition to a ruby/rails application currently under development. I would prefer t…

---

## [Re: Confusion Over Keyword Arguments](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75757)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 2\
**Last updated:** [March 2, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75757 "2006-03-02T17:23:06Z")

</div>

From: Yukihiro M. \[mailto:removed\_email\_address@domain.invalid\] end or a = foo( (baz = 5), (bar = 2) ) ?? Second one. Dan

---

## [Re: Confusion Over Keyword Arguments](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75758)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 2, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/re-confusion-over-keyword-arguments/75758 "2006-03-02T17:11:03Z")

</div>

example, I’ve got no clue how the parser works, so these may be non-starters for various reasons. Jay L. Or, maybe we should just stick with “=\>” as a keyword operator, and declare that if you want to pass a lit…

---

## [St. Louis Ruby Dinner confirmation \*\* new time: 6:00pm \*\*](https://www.ruby-forum.com/t/st-louis-ruby-dinner-confirmation-new-time-6-00pm/75065)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [March 2, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/st-louis-ruby-dinner-confirmation-new-time-6-00pm/75065 "2006-03-02T16:03:25Z")

</div>

Looks like we’ll have about 15 people, 10 of which are part of our local St. Louis Ruby U. Group. You can see the signup list here: http://stlruby.org/ruwiki/ruwiki.cgi/Default/RubyDinner I changed the time to 6:00pm…

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

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