# Ruby

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

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

---

## [Ruby to Gallery2 remote API](https://www.ruby-forum.com/t/ruby-to-gallery2-remote-api/146048)

<div class="topic-metadata">

**Author:** [@sajal](https://www.ruby-forum.com/u/sajal)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/ruby-to-gallery2-remote-api/146048 "2008-08-16T18:09:53Z")

</div>

Hello all, I am a total noob at ruby and not a programmer by trade. Gallery2 is an image hosting script made in php which has an API as defined at : http://codex.gallery2.org/Gallery\_Remote:Protocol What I want to ac…

---

## [Ruby-services 0.3.0](https://www.ruby-forum.com/t/ruby-services-0-3-0/146045)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/ruby-services-0-3-0/146045 "2008-08-16T17:21:48Z")

</div>

Hi everyone, The Win32Utils Team is happy to announce the release of ruby-services 0.3.0. = What is it? This is a collection of Windows services for Ruby that can be configured, installed and controlled separately. …

---

## [Stumped on simple wildcard](https://www.ruby-forum.com/t/stumped-on-simple-wildcard/146038)

<div class="topic-metadata">

**Author:** [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Replies:** 3\
**Last updated:** [August 16, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/stumped-on-simple-wildcard/146038 "2008-08-16T16:27:16Z")

</div>

I’m trying to use a wildcard in an if but the solution is evading me. Is there a special character ruby uses as a general wildcard? My problem below is our domains are all setup to resolve on any combination of domain…

---

## [Idiom of removing a particular character from a String?](https://www.ruby-forum.com/t/idiom-of-removing-a-particular-character-from-a-string/145857)

<div class="topic-metadata">

**Author:** [@Lorenzo\_ESDanielss](https://www.ruby-forum.com/u/Lorenzo_ESDanielss)\
**Replies:** 11\
**Last updated:** [August 16, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/idiom-of-removing-a-particular-character-from-a-string/145857 "2008-08-16T12:45:58Z")

</div>

Hi all, Is there any particular idiom for removing a particular character from a string by index and returning the resulting string? The following makes my old eyes sore: rem = str.clone rem\[i\] = “” rem as does th…

---

## [Nested loop](https://www.ruby-forum.com/t/nested-loop/145887)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [August 16, 2008, 10:05am UTC](https://www.ruby-forum.com/t/nested-loop/145887 "2008-08-16T10:05:36Z")

</div>

I know there is DRY way tow rite that, but I don’t remember how residence\_rentals\_ids = \[\] residences = user.franchise.residences for residence in residences residence\_rentals\_ids = residence.rentals.map {|rental| r…

---

## [Segmentation fault when running Rails on Windows Server 2008](https://www.ruby-forum.com/t/segmentation-fault-when-running-rails-on-windows-server-2008/145942)

<div class="topic-metadata">

**Author:** [@Arrix](https://www.ruby-forum.com/u/Arrix)\
**Replies:** 1\
**Last updated:** [August 16, 2008, 7:26am UTC](https://www.ruby-forum.com/t/segmentation-fault-when-running-rails-on-windows-server-2008/145942 "2008-08-16T07:26:15Z")

</div>

I am trying to run Ruby on Rails 2.1 with Webrick on Windows Server 2008. The server can start properly, but the ruby interpreter crashes after making several requests(\[BUG\] Segmentation fault). Has anyone experienc…

---

## [CGI Session Synchronization](https://www.ruby-forum.com/t/cgi-session-synchronization/146000)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 2\
**Last updated:** [August 16, 2008, 5:35am UTC](https://www.ruby-forum.com/t/cgi-session-synchronization/146000 "2008-08-16T05:35:05Z")

</div>

I finally tracked down a bug that’s been bothering me, and I’m at a complete loss for how to fix it. If you have wisdom, please share. =) I’m opening a CGI Session using Session.new and storing in $SESSION. Unfortunat…

---

## [Month, Day etc. names in other languages other than English](https://www.ruby-forum.com/t/month-day-etc-names-in-other-languages-other-than-english/145919)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 2\
**Last updated:** [August 16, 2008, 4:03am UTC](https://www.ruby-forum.com/t/month-day-etc-names-in-other-languages-other-than-english/145919 "2008-08-16T04:03:07Z")

</div>

Hi all, I was wondering if it was possible to internationalize the constant month and day names, used by DateTime class (for example), in to something other than English? I’m using gettext in a Rails application wher…

---

## [Re: r132 - can you check if it builds correctly on	mono?](https://www.ruby-forum.com/t/re-r132-can-you-check-if-it-builds-correctly-on-mono/146017)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 3:48am UTC](https://www.ruby-forum.com/t/re-r132-can-you-check-if-it-builds-correctly-on-mono/146017 "2008-08-16T03:48:31Z")

</div>

We could try to run through Dir.glob with the caseinsensitive flag to get the real filenames. Another option is fixing the csproj or files to match case. It’s a shame there isn’t an option for this. JD

---

## [R132 - can you check if it builds correctly on mono?](https://www.ruby-forum.com/t/r132-can-you-check-if-it-builds-correctly-on-mono/145984)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [August 16, 2008, 2:54am UTC](https://www.ruby-forum.com/t/r132-can-you-check-if-it-builds-correctly-on-mono/145984 "2008-08-16T02:54:02Z")

</div>

I made a change that undoes the -recursive:\*.cs change that Seo committed earlier. Instead, we continue to parse the \*.csproj files to get the list of files to compile, but conditionally convert \\ to / only for Mono (…

---

## [Im new... so can i have some help](https://www.ruby-forum.com/t/im-new-so-can-i-have-some-help/145996)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 8\
**Last updated:** [August 16, 2008, 1:55am UTC](https://www.ruby-forum.com/t/im-new-so-can-i-have-some-help/145996 "2008-08-16T01:55:34Z")

</div>

im new to ruby… and i need some help! im trying to make a quick app that takes an array of #'s puts them into a specific order ( i thik ill use the method “list” for that?" and gets the mean, median and mode of the …

---

## [IronRuby .NET Interop Test Plan](https://www.ruby-forum.com/t/ironruby-net-interop-test-plan/146002)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [August 16, 2008, 1:26am UTC](https://www.ruby-forum.com/t/ironruby-net-interop-test-plan/146002 "2008-08-16T01:26:20Z")

</div>

I’ve decided to try something a little different. Instead of getting a word document passed around to look at and review, I’ve decided to put my .NET interop test plan on our public Ironruby Wiki to get comments from…

---

## [\[ANN\] rmagick4j 0.3.6](https://www.ruby-forum.com/t/ann-rmagick4j-0-3-6/146006)

<div class="topic-metadata">

**Author:** [@Serabe](https://www.ruby-forum.com/u/Serabe)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 12:51am UTC](https://www.ruby-forum.com/t/ann-rmagick4j-0-3-6/146006 "2008-08-16T00:51:15Z")

</div>

I am glad to announce a new version of rmagick4j. RMagick4J aims to implement the ImageMagick funcionality and the C portions of RMagick for make it works in JRuby. Current stable version: 0.3.6 Project URL: Google C…

---

## [Rmagick4j 0.3.6](https://www.ruby-forum.com/t/rmagick4j-0-3-6/146005)

<div class="topic-metadata">

**Author:** [@Serabe](https://www.ruby-forum.com/u/Serabe)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 12:48am UTC](https://www.ruby-forum.com/t/rmagick4j-0-3-6/146005 "2008-08-16T00:48:55Z")

</div>

I am glad to announce a new version of rmagick4j. RMagick4J aims to implement the ImageMagick funcionality and the C portions of RMagick for make it works in JRuby. Current stable version: 0.3.6 Project URL: Google C…

---

## [Wig-Wug Simulator](https://www.ruby-forum.com/t/wig-wug-simulator/145928)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 5\
**Last updated:** [August 15, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/wig-wug-simulator/145928 "2008-08-15T23:58:37Z")

</div>

I have started a Wig-Wug (therubyist.com) simulator and thrown it on github (GitHub - JEG2/wig-wug: An unofficial simulator for the first homework assignment (August issue) in The Rubyist. ). It probably still has is…

---

## [Stupid to\_clr\_string](https://www.ruby-forum.com/t/stupid-to-clr-string/145977)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 6\
**Last updated:** [August 15, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/stupid-to-clr-string/145977 "2008-08-15T23:09:24Z")

</div>

Ok, I keep running into this over and over. Whenever Silverlight passes a string to javascript, it comes out as some unreadable object. You have to call to\_clr\_string to get it working. This is ok… You can monkey …

---

## [Access Denied error in Watir 1.5.3 (Using Ruby 1.8.6)](https://www.ruby-forum.com/t/access-denied-error-in-watir-1-5-3-using-ruby-1-8-6/145846)

<div class="topic-metadata">

**Author:** [@samiran](https://www.ruby-forum.com/u/samiran)\
**Replies:** 1\
**Last updated:** [August 15, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/access-denied-error-in-watir-1-5-3-using-ruby-1-8-6/145846 "2008-08-15T22:50:05Z")

</div>

Dear Friends, I am getting an error in Watir 1.5.3 (Using Ruby 1.8.6). Error: “there are 1 frames frame index: 1 Access Denied, see http://wiki.openqa.org/display/WTR/FAQ#access-denied c:/ruby/lib/ruby/gems/1.8/ge…

---

## [Data Binding?](https://www.ruby-forum.com/t/data-binding/145987)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 1\
**Last updated:** [August 15, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/data-binding/145987 "2008-08-15T22:04:25Z")

</div>

Is it possible to use databinding from within IronRuby? In this case, I want to have a field, @volume on one class, and listen for changes on another class. Thanks

---

## [South Carolina Ruby Conference -- Call for Proposals](https://www.ruby-forum.com/t/south-carolina-ruby-conference-call-for-proposals/145989)

<div class="topic-metadata">

**Author:** [@Jason\_Dew](https://www.ruby-forum.com/u/Jason_Dew)\
**Replies:** 1\
**Last updated:** [August 15, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/south-carolina-ruby-conference-call-for-proposals/145989 "2008-08-15T21:57:56Z")

</div>

I have the pleasure of announcing the first annual South Carolina Ruby Conference. It will be held on October 18th in Columbia, SC at the University of South Carolina. If you have a talk that you would like to give,…

---

## [Ruby: Boolean Challenge](https://www.ruby-forum.com/t/ruby-boolean-challenge/145983)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 11\
**Last updated:** [August 15, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/ruby-boolean-challenge/145983 "2008-08-15T20:58:05Z")

</div>

Paste url: 5603’s gists · GitHub Gist Paste Clone URL: git://gist.github.com/5603.git \[Impossible?\] CHALLENGE: See pending spec at the bottom PROBLEM: I want to replace statements like this: puts (OddRecognizer…

---

## [Starting new process on Windows!](https://www.ruby-forum.com/t/starting-new-process-on-windows/145859)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 7\
**Last updated:** [August 15, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/starting-new-process-on-windows/145859 "2008-08-15T20:20:08Z")

</div>

Is there an easy/clean way to start a new process in Windows that will execute just a section of code? I’ve tried win32-process but it spawns a new version of the entire script which doesn’t help in my situation. – …

---

## [Which C compiler for gem (windows vista)](https://www.ruby-forum.com/t/which-c-compiler-for-gem-windows-vista/145555)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 10\
**Last updated:** [August 15, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/which-c-compiler-for-gem-windows-vista/145555 "2008-08-15T20:00:48Z")

</div>

Hello, I am still having the problem, that my gem update is not working correctely and aparently this is related to a missing c-compiler or at least stdio.h ( Gem (update ?) problem - Ruby - Ruby-Forum ) Is there a d…

---

## [Problem running Watir script from cruise control](https://www.ruby-forum.com/t/problem-running-watir-script-from-cruise-control/145916)

<div class="topic-metadata">

**Author:** [@jtucker](https://www.ruby-forum.com/u/jtucker)\
**Replies:** 3\
**Last updated:** [August 15, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/problem-running-watir-script-from-cruise-control/145916 "2008-08-15T19:37:13Z")

</div>

Hi, I have a watir script to test a MS Sharepoint web site that is being run by Cruise Control on a windows machine under an administrator account. I have tested the script on the server just running it through the c…

---

## [Code Review: RubyAST](https://www.ruby-forum.com/t/code-review-rubyast/145975)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [August 15, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/code-review-rubyast/145975 "2008-08-15T18:51:38Z")

</div>

tfpt review “/shelveset:RubyAST;REDMOND\\tomat” Merges Statement with Expression in AST. Gets rid of ExpressionStatement to make ASTs smaller. Any AST expression can be now emitted as statement (i.e. we don’t need its…

---

## [Re: IronRuby binary disribution](https://www.ruby-forum.com/t/re-ironruby-binary-disribution/145976)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [August 15, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/re-ironruby-binary-disribution/145976 "2008-08-15T18:29:59Z")

</div>

Michael, ir.cmd does the trick. Thanks Mark ============================================= Message: 4Date: Thu, 14 Aug 2008 10:30:31 -0400From: “Michael L.” removed\_email\_address@domain.invalidSubject: Re: \[Ironruby…

---

## [How to get Windows user name?](https://www.ruby-forum.com/t/how-to-get-windows-user-name/145915)

<div class="topic-metadata">

**Author:** [@cobra050](https://www.ruby-forum.com/u/cobra050)\
**Replies:** 4\
**Last updated:** [August 15, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/how-to-get-windows-user-name/145915 "2008-08-15T18:09:28Z")

</div>

Hi, all I am trying to detect the user who’s currently login the Windows system. Is there way to do it in Ruby? Thanks

---

## [Please remove me from the mailing list](https://www.ruby-forum.com/t/please-remove-me-from-the-mailing-list/145930)

<div class="topic-metadata">

**Author:** [@ashutosh](https://www.ruby-forum.com/u/ashutosh)\
**Replies:** 2\
**Last updated:** [August 15, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/please-remove-me-from-the-mailing-list/145930 "2008-08-15T17:51:50Z")

</div>

Hello, I do not want to receive any further emails from the ruby-talk group. Can you please remove me from the mailing list. Regards, Ashutosh A…

---

## [Need to get average of specific fields in MySQL](https://www.ruby-forum.com/t/need-to-get-average-of-specific-fields-in-mysql/145970)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 1\
**Last updated:** [August 15, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/need-to-get-average-of-specific-fields-in-mysql/145970 "2008-08-15T17:45:23Z")

</div>

Hi Forum, My Active Record query works fine and pull all records where ipadd=‘10.1.1.1’ and print out the current\_connection\_count values but I need to get the average of those numbers. here is my Active Record confi…

---

## [Best practice for set-and-test idiom?](https://www.ruby-forum.com/t/best-practice-for-set-and-test-idiom/145891)

<div class="topic-metadata">

**Author:** [@cbx](https://www.ruby-forum.com/u/cbx)\
**Replies:** 7\
**Last updated:** [August 15, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/best-practice-for-set-and-test-idiom/145891 "2008-08-15T17:35:25Z")

</div>

I’ve been using Ruby/Rails for about about four months and wonder what the the Ruby alternative to the popular C/C++ idiom of setting and testing a variable in the condition of an ‘if’ statement. If C/C++ the usage is…

---

## [Best way to create a helper method](https://www.ruby-forum.com/t/best-way-to-create-a-helper-method/145926)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 4\
**Last updated:** [August 15, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/best-way-to-create-a-helper-method/145926 "2008-08-15T17:10:48Z")

</div>

What would you guys say is the best way of creating a helper method? module MyModule def myMethod #bla bla end end def helperMethod #a helper method whose existence should not be known outside of this file end h…

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

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