# Ruby

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

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

---

## [Ruby case statement](https://www.ruby-forum.com/t/ruby-case-statement/108524)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 12\
**Last updated:** [July 11, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/ruby-case-statement/108524 "2007-07-11T16:14:58Z")

</div>

Hi, I’ve read through some of the other case statement posts but can’t find any that answer me this question. I know that the case doesn’t allow the follow through aspect of case statements from other languages but i…

---

## [Gateway Restored](https://www.ruby-forum.com/t/gateway-restored/109116)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/gateway-restored/109116 "2007-07-11T16:08:57Z")

</div>

Just a quick notice here. The news to mail portion of our Gateway has been offline for a bit. It somehow failed to remove a PID file on exit, then wouldn’t relaunch to avoid duplicating messages sent to the list. I’…

---

## [Compilation and installation of Ruby 1.9](https://www.ruby-forum.com/t/compilation-and-installation-of-ruby-1-9/109115)

<div class="topic-metadata">

**Author:** [@chirag\_mistry\_ruby](https://www.ruby-forum.com/u/chirag_mistry_ruby)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/compilation-and-installation-of-ruby-1-9/109115 "2007-07-11T16:07:56Z")

</div>

Hi This message is regarding the errors and warnings I got while compiling Ruby 1.9. I have downloaded the Ruby 1.9 source code from the link http://svn.ruby-lang.org/repos/ruby/trunk/ and I try to compile the code b…

---

## [Build S5 presentations with ror](https://www.ruby-forum.com/t/build-s5-presentations-with-ror/109100)

<div class="topic-metadata">

**Author:** [@TopDown](https://www.ruby-forum.com/u/TopDown)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/build-s5-presentations-with-ror/109100 "2007-07-11T16:06:56Z")

</div>

Hello everybody, is there a solution for building up S5 presentations mit ruby on rails? Thanks for help Tobias

---

## [ANN: Remedy IT announces availability of first release of Ru](https://www.ruby-forum.com/t/ann-remedy-it-announces-availability-of-first-release-of-ru/109114)

<div class="topic-metadata">

**Author:** [@Martin\_Corino](https://www.ruby-forum.com/u/Martin_Corino)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/ann-remedy-it-announces-availability-of-first-release-of-ru/109114 "2007-07-11T16:06:56Z")

</div>

Hello, Remedy IT is pleased to announce the first beta release of the Ruby CORBA Language mapping reference implementation: R2CORBA. This software is provided as Opensource (for license see: http://www.theaceorb.nl/…

---

## [Join Ajuby Team](https://www.ruby-forum.com/t/join-ajuby-team/109112)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/join-ajuby-team/109112 "2007-07-11T16:04:56Z")

</div>

Ajuby project team is looking for talented and passionate web designers and developers to join our team at Bangalore office. Ajuby is an Apptility sponsored project with a single aim to revolutionize development and r…

---

## [Eliminating spam on Ruby Forum](https://www.ruby-forum.com/t/eliminating-spam-on-ruby-forum/109052)

<div class="topic-metadata">

**Author:** [@kapslok](https://www.ruby-forum.com/u/kapslok)\
**Replies:** 5\
**Last updated:** [July 11, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/eliminating-spam-on-ruby-forum/109052 "2007-07-11T16:03:56Z")

</div>

I don’t know about you guys and gals, but the daily spam messages making their way into these forums is giving me the $hit$. I think what we need is a button to mark messages as spam, so someone can blow them away, and …

---

## [An alternative for VB using Ruby](https://www.ruby-forum.com/t/an-alternative-for-vb-using-ruby/108976)

<div class="topic-metadata">

**Author:** [@ti-mara](https://www.ruby-forum.com/u/ti-mara)\
**Replies:** 7\
**Last updated:** [July 11, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/an-alternative-for-vb-using-ruby/108976 "2007-07-11T15:56:54Z")

</div>

I want to know if theres an alternative to VB.net using ruby… I mean in terms of dragging and dropping to build applications directly… so that building apps would be faster in ruby than it already is. Might seem like …

---

## [Quicktime and Ruby](https://www.ruby-forum.com/t/quicktime-and-ruby/108964)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 8\
**Last updated:** [July 11, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/quicktime-and-ruby/108964 "2007-07-11T15:54:54Z")

</div>

Hey all I read a previous post from early April about working applescript into Ruby. BUT… I need to be able to convert mp3s into hinted movie format (which isn’t covered ANYWHERE). Whats the best way to do this in an…

---

## [Repacking an array of arrays](https://www.ruby-forum.com/t/repacking-an-array-of-arrays/108969)

<div class="topic-metadata">

**Author:** [@kapslok](https://www.ruby-forum.com/u/kapslok)\
**Replies:** 12\
**Last updated:** [July 11, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/repacking-an-array-of-arrays/108969 "2007-07-11T15:53:53Z")

</div>

Is there an elegant (maybe a one-liner) for repacking: \[\[1, 4, 7, 10, 13\], \[2, 5, 8, 11, 14\], \[3, 6, 9, 12, 15\]\] to? \[\[1, 4, 7\], \[10, 13, 2\], \[5, 8, 11\], \[14, 3, 6\], \[9, 12, 15\]\] So rather than having 3 arrays each w…

---

## [Simple string operation](https://www.ruby-forum.com/t/simple-string-operation/108968)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 6\
**Last updated:** [July 11, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/simple-string-operation/108968 "2007-07-11T15:44:51Z")

</div>

seqNo = File.basename("/Volumes/MINOLTA1/DCIM/100MLT16/PICT0004.MOV",".\*")\[-1,3\].to\_s seqNo = “-” + seqNo+ “.xx.m” puts "seqNo: #{seqNo} " # \>\> seqNo: -4.xx.m but I want it to be -004.xx.m. In other words I want the …

---

## [Reliable Messaging With Ruby and DRb](https://www.ruby-forum.com/t/reliable-messaging-with-ruby-and-drb/109107)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/reliable-messaging-with-ruby-and-drb/109107 "2007-07-11T15:39:50Z")

</div>

Hello, My local IP address is 10.8.8.41. I could not figure out why when I use 127.0.0.1 the code works but fails when I use my IP address. The error is "druby://10.8.8.41:6438 - #\<Errno::EBADF: Bad file descriptor c…

---

## [Update existing doc with REXML](https://www.ruby-forum.com/t/update-existing-doc-with-rexml/109104)

<div class="topic-metadata">

**Author:** [@peri](https://www.ruby-forum.com/u/peri)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/update-existing-doc-with-rexml/109104 "2007-07-11T15:38:50Z")

</div>

I have been searching around the forums and the documentation, but I do not see any examples/topics on how to open an existing XML document and update a value (element’s text value, for example) using REXML. Is it eve…

---

## [Trying to get dynamic output in console](https://www.ruby-forum.com/t/trying-to-get-dynamic-output-in-console/108938)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 5\
**Last updated:** [July 11, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/trying-to-get-dynamic-output-in-console/108938 "2007-07-11T15:37:50Z")

</div>

Hello, I have a little script that processes excel file and I would like the script to output some sort of status either line or percent number as it runs. How can I output something to console always in the same spo…

---

## [Get modules that are in a class?](https://www.ruby-forum.com/t/get-modules-that-are-in-a-class/108852)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 8\
**Last updated:** [July 11, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/get-modules-that-are-in-a-class/108852 "2007-07-11T15:20:45Z")

</div>

is it possible to find out what modules have been included inside of a class?

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/187686)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/187686 "2007-07-11T14:30:39Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/109093)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/109093 "2007-07-11T14:27:39Z")

</div>

Begin forwarded message:

---

## [If / else, how to include next line](https://www.ruby-forum.com/t/if-else-how-to-include-next-line/109074)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 12\
**Last updated:** [July 11, 2007, 2:12pm UTC](https://www.ruby-forum.com/t/if-else-how-to-include-next-line/109074 "2007-07-11T14:12:17Z")

</div>

Hi everyone, absolute beginner here, so bare with me :wink: The following issue came up and I can’t figure out how to solve. Probably nothing very complicated, tho. I want to load a text file via ARGV\[0\] and then sea…

---

## [Ruby\_set\_current\_source remains in intern.h](https://www.ruby-forum.com/t/ruby-set-current-source-remains-in-intern-h/108848)

<div class="topic-metadata">

**Author:** [@Masahiro\_SSSSSBSr0](https://www.ruby-forum.com/u/Masahiro_SSSSSBSr0)\
**Replies:** 4\
**Last updated:** [July 11, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/ruby-set-current-source-remains-in-intern-h/108848 "2007-07-11T14:08:16Z")

</div>

e$B\<r0f$G$9!#e(B 6/25 e$B$Ke(B eval\_error.ci e$B$+$i:o=|$5$l$?e(B ruby\_set\_current\_source() e$B$,e(B intern.h e$B$K$O$^$@;D$C$F$$$k$h$&$G$9!#e(B

---

## [Error while compiling ruby 1.9 source code](https://www.ruby-forum.com/t/error-while-compiling-ruby-1-9-source-code/109077)

<div class="topic-metadata">

**Author:** [@chirag\_mistry\_ruby](https://www.ruby-forum.com/u/chirag_mistry_ruby)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/error-while-compiling-ruby-1-9-source-code/109077 "2007-07-11T12:01:20Z")

</div>

Hi I got below error while compiling ruby 1.9 source code. Please give reply about solution of this error. Error: rbconfig.rb unchanged /users/username1/UnoRuby/ruby\_1.9\_sourcecode/lib/fileutils.rb:1026:in method\_mi…

---

## [Convert htmlspecial characters using ruby](https://www.ruby-forum.com/t/convert-htmlspecial-characters-using-ruby/109066)

<div class="topic-metadata">

**Author:** [@geetha](https://www.ruby-forum.com/u/geetha)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 11:18am UTC](https://www.ruby-forum.com/t/convert-htmlspecial-characters-using-ruby/109066 "2007-07-11T11:18:20Z")

</div>

hi, I have to decode the html special character using ruby, if any function is there like php htmlspecialchars\_decode (). thanks, sangeetha.S

---

## [Help: Efficient regular expression](https://www.ruby-forum.com/t/help-efficient-regular-expression/109049)

<div class="topic-metadata">

**Author:** [@divya](https://www.ruby-forum.com/u/divya)\
**Replies:** 26\
**Last updated:** [July 11, 2007, 11:12am UTC](https://www.ruby-forum.com/t/help-efficient-regular-expression/109049 "2007-07-11T11:12:19Z")

</div>

string = “root 14051 14033 3 08:39 pts/2 00:00:00 /bin/bash” i need to fetch 14051 and /bin/bash from the string can someone help me to write an efficient regular expression for that. i am a beginner, i wrote …

---

## [Creating a language -- HTML + a few special tags](https://www.ruby-forum.com/t/creating-a-language-html-a-few-special-tags/109063)

<div class="topic-metadata">

**Author:** [@rhalff](https://www.ruby-forum.com/u/rhalff)\
**Replies:** 4\
**Last updated:** [July 11, 2007, 11:08am UTC](https://www.ruby-forum.com/t/creating-a-language-html-a-few-special-tags/109063 "2007-07-11T11:08:17Z")

</div>

Hi all, I’m looking to implement a “plug-in” language which is essentially just HTML plus a few custom tags that I want to support. For example, some source code in this language might look like something somet…

---

## [Choice of the word "inject" vs what the method actually does](https://www.ruby-forum.com/t/choice-of-the-word-inject-vs-what-the-method-actually-does/108535)

<div class="topic-metadata">

**Author:** [@Wayne\_ESSeguin](https://www.ruby-forum.com/u/Wayne_ESSeguin)\
**Replies:** 8\
**Last updated:** [July 11, 2007, 10:34am UTC](https://www.ruby-forum.com/t/choice-of-the-word-inject-vs-what-the-method-actually-does/108535 "2007-07-11T10:34:09Z")

</div>

The word Inject essentially means to introduce something into a system and yet the inject method iterates over a series elements carrying forward some sort of result at each next step. Hence would it not make more sen…

---

## [Drawing polygons with Ruby/SDL](https://www.ruby-forum.com/t/drawing-polygons-with-ruby-sdl/108962)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 7:44am UTC](https://www.ruby-forum.com/t/drawing-polygons-with-ruby-sdl/108962 "2007-07-11T07:44:53Z")

</div>

Hi. I’m learning to use Ruby/SDL to write a simple game. However, I have a trouble to find methods that draws polygons (SDL has them and I thought Ruby/SDL also does.) How can I draw polygons using Ruby/SDL? Thank …

---

## [Best MySQL date/time data type when using Ruby?](https://www.ruby-forum.com/t/best-mysql-date-time-data-type-when-using-ruby/109058)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 5:14am UTC](https://www.ruby-forum.com/t/best-mysql-date-time-data-type-when-using-ruby/109058 "2007-07-11T05:14:45Z")

</div>

In the years when I used PHP to develop web apps, I found either a MySQL TIMESTAMP or an integer of the same value was most convenient for storing date/time information and then converting back and forth using PHP fun…

---

## [SCP Ruby](https://www.ruby-forum.com/t/scp-ruby/109041)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 3\
**Last updated:** [July 11, 2007, 2:24am UTC](https://www.ruby-forum.com/t/scp-ruby/109041 "2007-07-11T02:24:30Z")

</div>

Hey all, What would be the best way to use SCP through ruby? I’m looking to use it to connect to an AFP port on a mac. THanks, ~ Ari English is like a pseudo-random number generator - there are a bajillion rules to…

---

## [Automating a password reset via net-telnet](https://www.ruby-forum.com/t/automating-a-password-reset-via-net-telnet/109028)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [July 10, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/automating-a-password-reset-via-net-telnet/109028 "2007-07-10T23:17:15Z")

</div>

Hi all, I’m trying to automate a password reset via telnet for a report. This happens twice per year, and right now I’m handling things manually. My attempts so far have been unsuccessful. Here’s what I’ve tried: req…

---

## [Ruby Introduction material wanted](https://www.ruby-forum.com/t/ruby-introduction-material-wanted/109033)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 1\
**Last updated:** [July 10, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/ruby-introduction-material-wanted/109033 "2007-07-10T20:38:55Z")

</div>

I’m looking to do a 2-hour Ruby intro in my firm and I remember seeing some posts about materials and ideas. Would anyone mind repeating that info? :wink: We’re talking about a very competent audience, most of them ac…

---

## [Syntax sugar: method\[\](...) =\> method(...)](https://www.ruby-forum.com/t/syntax-sugar-method-method/108190)

<div class="topic-metadata">

**Author:** [@Erwin\_A](https://www.ruby-forum.com/u/Erwin_A)\
**Replies:** 10\
**Last updated:** [July 10, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/syntax-sugar-method-method/108190 "2007-07-10T20:31:53Z")

</div>

Hi, The \[\] method is really handy when you have an object that should behave like a hash or array. One thing I find myself wishing I could also do is something like def logins @events.select{|e| e.action == :login a…

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

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