# Ruby

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

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

---

## [What do you guys recommend to surf the web?](https://www.ruby-forum.com/t/what-do-you-guys-recommend-to-surf-the-web/91745)

<div class="topic-metadata">

**Author:** [@r3madi](https://www.ruby-forum.com/u/r3madi)\
**Replies:** 5\
**Last updated:** [April 12, 2007, 9:25am UTC](https://www.ruby-forum.com/t/what-do-you-guys-recommend-to-surf-the-web/91745 "2007-04-12T09:25:34Z")

</div>

I starting learning how to use sockets but a lot of people are complaining why I don’t use something else so I was wondering which is another way to surf the web? Remember I want a fast way to surf the web, ideally a …

---

## [Dyla 2007: 3rd Workshop on Dynamic Languages and Application](https://www.ruby-forum.com/t/dyla-2007-3rd-workshop-on-dynamic-languages-and-application/91775)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 9:21am UTC](https://www.ruby-forum.com/t/dyla-2007-3rd-workshop-on-dynamic-languages-and-application/91775 "2007-04-12T09:21:33Z")

</div>

Dear colleges, You might want to consider Dyla’07 as a good venue to present your work and your favourite programming language. Regards, Alexandre Call for Papers Dyla 2007: 3rd Workshop on Dynamic Languages and A…

---

## [Invalid CFP in rb\_protect](https://www.ruby-forum.com/t/invalid-cfp-in-rb-protect/89839)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 2\
**Last updated:** [April 12, 2007, 8:59am UTC](https://www.ruby-forum.com/t/invalid-cfp-in-rb-protect/89839 "2007-04-12T08:59:30Z")

</div>

e$B%o%J%Y$G$9!#e(B 1.9 trunke$B$G0J2\<$N$h$&$J%F%9%H%3!\<%I$rF0$+$9$He(B \[BUG\] cfp consistency error - call0 e$B$GMn$A$^$9!#e(B — e$B$3$3$+$ie(B class A def inspect raise end end class B def initialize @a = A.ne…

---

## [JRuby article](https://www.ruby-forum.com/t/jruby-article/91730)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 1\
**Last updated:** [April 12, 2007, 8:55am UTC](https://www.ruby-forum.com/t/jruby-article/91730 "2007-04-12T08:55:29Z")

</div>

If you’re interested in JRuby, I wrote an article on it recently. You can see it at http://www.ociweb.com/jnb/jnbApr2007.html. I announced this on the JRuby list last week. A slightly cleaned up version was released t…

---

## [Ruby rounding?](https://www.ruby-forum.com/t/ruby-rounding/91713)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 3\
**Last updated:** [April 12, 2007, 7:45am UTC](https://www.ruby-forum.com/t/ruby-rounding/91713 "2007-04-12T07:45:21Z")

</div>

Something interesting came up at work concerning rounding. Notably, that the round procedure in vb.net was good for stats (round to even), but since what the programmers expected (symmetric arithmetic rounding) was d…

---

## [New site for all IT students](https://www.ruby-forum.com/t/new-site-for-all-it-students/91764)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 7:41am UTC](https://www.ruby-forum.com/t/new-site-for-all-it-students/91764 "2007-04-12T07:41:21Z")

</div>

Here’s a Good News for all the IT n Computer Students out there !! We recently launched http://www.itpalace.com in an effort to connect all the Computer Students & Professionals around the world !! Forget the Confusin…

---

## [Xmpp4r, any luck?](https://www.ruby-forum.com/t/xmpp4r-any-luck/91761)

<div class="topic-metadata">

**Author:** [@bino\_oetomo](https://www.ruby-forum.com/u/bino_oetomo)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 5:26am UTC](https://www.ruby-forum.com/t/xmpp4r-any-luck/91761 "2007-04-12T05:26:14Z")

</div>

Dear All. Any one got luck with xmpp4r ? Sincerely -bino-

---

## [Net::telnet](https://www.ruby-forum.com/t/net-telnet/91762)

<div class="topic-metadata">

**Author:** [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Replies:** 0\
**Last updated:** [April 12, 2007, 3:38am UTC](https://www.ruby-forum.com/t/net-telnet/91762 "2007-04-12T03:38:08Z")

</div>

I just wrote a small utility to pull Mac addresses verses port numbers from our switches and found that the telnet.cmd strings yielded to the block, were out of synch with the commands. It took me a while to track it …

---

## [Using dbi in a loop to execute a stored procedure](https://www.ruby-forum.com/t/using-dbi-in-a-loop-to-execute-a-stored-procedure/91734)

<div class="topic-metadata">

**Author:** [@grooveska](https://www.ruby-forum.com/u/grooveska)\
**Replies:** 1\
**Last updated:** [April 12, 2007, 2:51am UTC](https://www.ruby-forum.com/t/using-dbi-in-a-loop-to-execute-a-stored-procedure/91734 "2007-04-12T02:51:05Z")

</div>

I can get this to work once, but dbi throws the following error the 2nd time through: c:/ruby/lib/ruby/site\_ruby/1.8/dbi/dbi.rb:623:in \`prepare’: Database connection was already closed! (DBI::InterfaceError) from cr…

---

## [Ruby C extension crash: how to create a stack trace?](https://www.ruby-forum.com/t/ruby-c-extension-crash-how-to-create-a-stack-trace/91326)

<div class="topic-metadata">

**Author:** [@barabba](https://www.ruby-forum.com/u/barabba)\
**Replies:** 5\
**Last updated:** [April 12, 2007, 2:11am UTC](https://www.ruby-forum.com/t/ruby-c-extension-crash-how-to-create-a-stack-trace/91326 "2007-04-12T02:11:02Z")

</div>

Hi, I am using ruby to test and develop my legacy C code. I packed it inside a ruby extension as dll under windows. I am using visual studio 6 to debug my extension. The process works very well, but when I make a m…

---

## [Equivalent of perl qw operator](https://www.ruby-forum.com/t/equivalent-of-perl-qw-operator/91744)

<div class="topic-metadata">

**Author:** [@szkizzer](https://www.ruby-forum.com/u/szkizzer)\
**Replies:** 6\
**Last updated:** [April 12, 2007, 1:56am UTC](https://www.ruby-forum.com/t/equivalent-of-perl-qw-operator/91744 "2007-04-12T01:56:01Z")

</div>

I have a feeling I’ve seen it in the pickaxe book but I can’t seem to find it again. Is there a way to write this differently? array = \[ ‘element1’, ‘element2’, …\] In perl I could do @array = qw( element1 element2 …

---

## [Class of numeric literals](https://www.ruby-forum.com/t/class-of-numeric-literals/91698)

<div class="topic-metadata">

**Author:** [@KMKMKM](https://www.ruby-forum.com/u/KMKMKM)\
**Replies:** 1\
**Last updated:** [April 12, 2007, 1:44am UTC](https://www.ruby-forum.com/t/class-of-numeric-literals/91698 "2007-04-12T01:44:00Z")

</div>

A literal number with a decimal point in it becomes a Float, e.g. irb(main):002:0\> 3.0.class =\> Float Is there a way to make a literal like ‘3.0’ become something else, e.g. a BigDecimal, automatically?

---

## [Ruby-1.8.5 has been ported to Bluegene/L](https://www.ruby-forum.com/t/ruby-1-8-5-has-been-ported-to-bluegene-l/91701)

<div class="topic-metadata">

**Author:** [@underbluewaters](https://www.ruby-forum.com/u/underbluewaters)\
**Replies:** 7\
**Last updated:** [April 12, 2007, 1:43am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-has-been-ported-to-bluegene-l/91701 "2007-04-12T01:43:44Z")

</div>

I finally got Ruby-1.8.5 running on the compute nodes of our Bluegene/L rack. More details here. Enjoy.

---

## [How come this doesn't work?](https://www.ruby-forum.com/t/how-come-this-doesnt-work/91672)

<div class="topic-metadata">

**Author:** [@r3madi](https://www.ruby-forum.com/u/r3madi)\
**Replies:** 13\
**Last updated:** [April 12, 2007, 12:37am UTC](https://www.ruby-forum.com/t/how-come-this-doesnt-work/91672 "2007-04-12T00:37:56Z")

</div>

require ‘socket’ host = ‘www.neopets.com’ begin h = TCPSocket.new(host,80) rescue puts “error: #($!)” else h.print “POST /login.phtml?username=r3MaDi&password=mangaka02&destination=/petcentral.phtml HTTP/1.1\\r\\n…

---

## [Proc&Bloc](https://www.ruby-forum.com/t/proc-bloc/91706)

<div class="topic-metadata">

**Author:** [@yaya](https://www.ruby-forum.com/u/yaya)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/proc-bloc/91706 "2007-04-11T23:55:07Z")

</div>

Hi I start learning ruby since a week but i have some probleme to undestand Proc and the philosophy which hides behind . Why don’t using methode ? In this code vhere is the Proc? def gen\_times(factor) ret…

---

## [RubyOSA 0.4.0](https://www.ruby-forum.com/t/rubyosa-0-4-0/91735)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/rubyosa-0-4-0/91735 "2007-04-11T23:36:52Z")

</div>

Hi rubyists, I am honored to announce the immediate availability of RubyOSA 0.4.0. RubyOSA is a bridge that connects Ruby to the Apple Event Manager infrastructure. It allows Ruby programs to automate Mac OS X applic…

---

## [Problem calling Net::HTTP.get\_response in Thread.new](https://www.ruby-forum.com/t/problem-calling-net-http-get-response-in-thread-new/91722)

<div class="topic-metadata">

**Author:** [@Ming\_en\_C](https://www.ruby-forum.com/u/Ming_en_C)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/problem-calling-net-http-get-response-in-thread-new/91722 "2007-04-11T22:43:23Z")

</div>

i had a strange problem of unable to call Net::HTTP.get\_response in thread example this work well Net::HTTP.get\_response(URI.parse(“http://www.google.com/”)) however when i called inside a thread it does not work it …

---

## [Webrick w/ XML-RPC w/ xinetd](https://www.ruby-forum.com/t/webrick-w-xml-rpc-w-xinetd/91697)

<div class="topic-metadata">

**Author:** [@zaq](https://www.ruby-forum.com/u/zaq)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/webrick-w-xml-rpc-w-xinetd/91697 "2007-04-11T22:30:21Z")

</div>

greetings. I can’t find a clue on the net or in the forums for this one I have a XML-RPC service that works fine in standalone mode. I attempted to control it via xinetd, and while I’m able to get it to launch, I h…

---

## [Ruby\_afrique](https://www.ruby-forum.com/t/ruby-afrique/91516)

<div class="topic-metadata">

**Author:** [@yaya](https://www.ruby-forum.com/u/yaya)\
**Replies:** 8\
**Last updated:** [April 11, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/ruby-afrique/91516 "2007-04-11T21:19:49Z")

</div>

Hello I discover ruby since a week and paste now all my time learning this interessant language. I feel like to translate some important doc or books (Ruby cookbook, ruby way) from english to french Looking for team…

---

## [Ruby nodule in ROR](https://www.ruby-forum.com/t/ruby-nodule-in-ror/91716)

<div class="topic-metadata">

**Author:** [@rama](https://www.ruby-forum.com/u/rama)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/ruby-nodule-in-ror/91716 "2007-04-11T20:49:39Z")

</div>

how to call ruby module in rails controller

---

## [File renaming question](https://www.ruby-forum.com/t/file-renaming-question/91709)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/file-renaming-question/91709 "2007-04-11T20:37:26Z")

</div>

Hi, I just want to do a simple case-changing operation, if needed. The file renaming scheme below works for me, but, if any files in my directory are already lowercase, then, the script fails. How can I accommodate f…

---

## [More 'system call' troubleshooting](https://www.ruby-forum.com/t/more-system-call-troubleshooting/91707)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/more-system-call-troubleshooting/91707 "2007-04-11T19:56:26Z")

</div>

Something that isn’t mentioned in the Ruby manual online (http:// www.rubycentral.com/book/ref\_m\_kernel.html#Kernel.system) is that the entire path is needed as well. Of course, that is a best practice, but I spent so…

---

## [RSA Key Question](https://www.ruby-forum.com/t/rsa-key-question/91693)

<div class="topic-metadata">

**Author:** [@studlee2](https://www.ruby-forum.com/u/studlee2)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/rsa-key-question/91693 "2007-04-11T17:39:16Z")

</div>

I want to hardcode a public RSA key into a Ruby script so there is no reliance on an external ‘.pem’ file. When I do that the object is of type string and OpenSSL throws an error. How can I get the “pub\_key = OpenSSL…

---

## [Sending irb session to a file in windows](https://www.ruby-forum.com/t/sending-irb-session-to-a-file-in-windows/91576)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 11, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/sending-irb-session-to-a-file-in-windows/91576 "2007-04-11T17:14:12Z")

</div>

I’m looking to send an irb session to a file. How do people do this on Windows? Andy

---

## [Escapeshellcmd() for Ruby](https://www.ruby-forum.com/t/escapeshellcmd-for-ruby/91678)

<div class="topic-metadata">

**Author:** [@hawe](https://www.ruby-forum.com/u/hawe)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/escapeshellcmd-for-ruby/91678 "2007-04-11T16:53:09Z")

</div>

Hi! Is there something like PHP’s escapeshellcmd() function which removes special signs for system calls? Or do I have to do it myself and escape |;\>"? What else? Thanks a lot, hawe

---

## [Beginners' question: trouble with "gem install ClothRed"](https://www.ruby-forum.com/t/beginners-question-trouble-with-gem-install-clothred/91683)

<div class="topic-metadata">

**Author:** [@Adriano\_F](https://www.ruby-forum.com/u/Adriano_F)\
**Replies:** 4\
**Last updated:** [April 11, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/beginners-question-trouble-with-gem-install-clothred/91683 "2007-04-11T15:41:00Z")

</div>

Hi. I tried to experiment with ClothRed, but as I am very new to Ruby and gems, I am having some trouble getting it right. First, I am using Ruby on Cygwin. I installed gems by downloading the tarball and executing “…

---

## [Traduction en Francais](https://www.ruby-forum.com/t/traduction-en-francais/91681)

<div class="topic-metadata">

**Author:** [@yaya](https://www.ruby-forum.com/u/yaya)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/traduction-en-francais/91681 "2007-04-11T14:42:30Z")

</div>

Je veux mettre en place une equipe pour la traduction de certains livres de Ruby en Francais Merci de vous joindre Ã moi Cdt Ruby\_Afrique

---

## [Ideas about Smalltalk-like IDE for Ruby](https://www.ruby-forum.com/t/ideas-about-smalltalk-like-ide-for-ruby/89319)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 11\
**Last updated:** [April 11, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/ideas-about-smalltalk-like-ide-for-ruby/89319 "2007-04-11T12:17:30Z")

</div>

On 3/18/07, removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid wrote in another thread proposing items for a Google SOC project. How do we save state in between sessions? This is an intriguing …

---

## [New presentation on Ruby](https://www.ruby-forum.com/t/new-presentation-on-ruby/90687)

<div class="topic-metadata">

**Author:** [@Chauk-Mean\_P](https://www.ruby-forum.com/u/Chauk-Mean_P)\
**Replies:** 47\
**Last updated:** [April 11, 2007, 11:05am UTC](https://www.ruby-forum.com/t/new-presentation-on-ruby/90687 "2007-04-11T11:05:20Z")

</div>

Hi all, I made a presentation covering the different facets of Ruby : the scripting facet the dynamic typing facet the object-oriented facet the functional facet the reflective facet the DSL facet Code snippets and c…

---

## [Subversion wrapper in Ruby](https://www.ruby-forum.com/t/subversion-wrapper-in-ruby/91028)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 5\
**Last updated:** [April 11, 2007, 10:28am UTC](https://www.ruby-forum.com/t/subversion-wrapper-in-ruby/91028 "2007-04-11T10:28:14Z")

</div>

I’ve begun developing a small library that wraps the command-line Subversion commands, so that you can call SVN.copy(src, dest, :message =\> ‘chunky bacon’) etc. These will only cover the methods Subversion directly su…

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

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