# Ruby

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

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

---

## [RAA is down](https://www.ruby-forum.com/t/raa-is-down/75382)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/raa-is-down/75382 "2006-03-01T20:03:45Z")

</div>

Bad Gateway The proxy server received an invalid response from an upstream server. Regards, Dan

---

## [Re: Subclassing Struct.new](https://www.ruby-forum.com/t/re-subclassing-struct-new/75354)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/re-subclassing-struct-new/75354 "2006-03-01T19:40:59Z")

</div>

Quoting Yukihiro M. removed\_email\_address@domain.invalid: |Will the Ruby2.0 grammar no longer have variable/method ambiguities? I’m not sure what you meant by “ambiguities”. The identifiers not assigned in the scop…

---

## ['mailread' considered dangerous?](https://www.ruby-forum.com/t/mailread-considered-dangerous/72790)

<div class="topic-metadata">

**Author:** [@Martin\_SSWeber](https://www.ruby-forum.com/u/Martin_SSWeber)\
**Replies:** 3\
**Last updated:** [March 1, 2006, 7:12pm UTC](https://www.ruby-forum.com/t/mailread-considered-dangerous/72790 "2006-03-01T19:12:49Z")

</div>

Hoi rubyists, just wanted to state my opinion about mailreader. Imo it’s freaking dangerous to include something in the core distribution which doesn’t get emails right :slight\_smile: It might be amusing to parse an…

---

## [Visual debuggers for Ruby](https://www.ruby-forum.com/t/visual-debuggers-for-ruby/54285)

<div class="topic-metadata">

**Author:** [@Asfand\_Yar\_Q](https://www.ruby-forum.com/u/Asfand_Yar_Q)\
**Replies:** 7\
**Last updated:** [March 1, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/visual-debuggers-for-ruby/54285 "2006-03-01T19:10:52Z")

</div>

Hi, I normally use DDD for debugging my C/C++ code, and know it can debug Perl scripts. What graphical debugging is available for Ruby? I found KDevelop, but using it as a graphical debugger seems a bit overkill. …

---

## [String contains one of these?](https://www.ruby-forum.com/t/string-contains-one-of-these/74135)

<div class="topic-metadata">

**Author:** [@mikkel](https://www.ruby-forum.com/u/mikkel)\
**Replies:** 16\
**Last updated:** [March 1, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/string-contains-one-of-these/74135 "2006-03-01T17:53:19Z")

</div>

Imagine, I have leagues=%w{ 1D 2D U16 U19 LR RR JNL NL} for a given string, say “some stuff NL is chunky” i want determine which of the matches it contains… now, the hard way (more code, less thought) would be to it…

---

## [Formatting to "Thousands"](https://www.ruby-forum.com/t/formatting-to-thousands/74632)

<div class="topic-metadata">

**Author:** [@Barrie\_Jarman](https://www.ruby-forum.com/u/Barrie_Jarman)\
**Replies:** 8\
**Last updated:** [March 1, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/formatting-to-thousands/74632 "2006-03-01T17:23:49Z")

</div>

A colleague of mine wishes to format a float to include commas at thousand values, for example 12345.21 becomes 12,345.21 Is there any inbuilt functionality to format this, or are we better of writing something our…

---

## [Code snippet: can it be done better/shorter?](https://www.ruby-forum.com/t/code-snippet-can-it-be-done-better-shorter/54325)

<div class="topic-metadata">

**Author:** [@Krekna\_M](https://www.ruby-forum.com/u/Krekna_M)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/code-snippet-can-it-be-done-better-shorter/54325 "2006-03-01T16:25:29Z")

</div>

AFAIC See, this works all right, but my question is, just to learn the Ruby style, can this be done shorter (better)? class LineChecker def checkline(line) if line =~ /Checking:/ line =~ /\<(.?)\>.\<(.\*)\>/ from = $1;…

---

## [Breaking Out Of A Loop](https://www.ruby-forum.com/t/breaking-out-of-a-loop/54320)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [March 1, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/breaking-out-of-a-loop/54320 "2006-03-01T16:16:35Z")

</div>

I’m somewhat new to Ruby and have been playing around with some very simple socket code (starting the script and then telnetting to the box on the port specified). I wanted to allow it to accept more than one request…

---

## [Gtk::TreeView, Libglade and Ruby](https://www.ruby-forum.com/t/gtk-treeview-libglade-and-ruby/54323)

<div class="topic-metadata">

**Author:** [@Michael\_Lesniak](https://www.ruby-forum.com/u/Michael_Lesniak)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 4:13pm UTC](https://www.ruby-forum.com/t/gtk-treeview-libglade-and-ruby/54323 "2006-03-01T16:13:45Z")

</div>

Hello, I have created a small testcase for working with a TreeView which I can’t get to run for reasons I couldn’t find out. — Sample code begin --------------------- list = Gtk::ListStore.new(String, String) data =…

---

## [OCI8 driver date "out of range"](https://www.ruby-forum.com/t/oci8-driver-date-out-of-range/74782)

<div class="topic-metadata">

**Author:** [@Carlos\_Diaz](https://www.ruby-forum.com/u/Carlos_Diaz)\
**Replies:** 4\
**Last updated:** [March 1, 2006, 4:00pm UTC](https://www.ruby-forum.com/t/oci8-driver-date-out-of-range/74782 "2006-03-01T16:00:24Z")

</div>

Hi all, I am building an applications that access an existing database that has dates in the future…as far ahead as 2106. However, when I try to access the data in those columns (I’m using the OCI8 driver), I get th…

---

## [Checkstyle and code formatting](https://www.ruby-forum.com/t/checkstyle-and-code-formatting/75229)

<div class="topic-metadata">

**Author:** [@Anthony\_Elizondo](https://www.ruby-forum.com/u/Anthony_Elizondo)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/checkstyle-and-code-formatting/75229 "2006-03-01T15:38:32Z")

</div>

Is there any sort of Checkstyle/code formatting tool for Ruby? I’m looking for something analogous to http://checkstyle.sourceforge.net/ in the Java world.

---

## [Confused about "private"?](https://www.ruby-forum.com/t/confused-about-private/54251)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 5\
**Last updated:** [March 1, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/confused-about-private/54251 "2006-03-01T15:28:44Z")

</div>

I have a confusion in Ruby’s way of dealing with “private” instance methods. “Private” means that the method is accessible only within the class, and it is callable only in “function form,” with self (implicit or exp…

---

## [Regex replacement problem---replace every n-th](https://www.ruby-forum.com/t/regex-replacement-problem-replace-every-n-th/54316)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [March 1, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/regex-replacement-problem-replace-every-n-th/54316 "2006-03-01T15:07:22Z")

</div>

Hi all I have the string '1 20 3 400 5 60 7 800 9 0 ’ and need to replace every n-th space in the string with another character. So if n=2 and the replacement character is ‘\\n’, then the above would become ‘1 20\\n3 4…

---

## [Mr\_guid install question on SuSE Linux?](https://www.ruby-forum.com/t/mr-guid-install-question-on-suse-linux/75215)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 2:33pm UTC](https://www.ruby-forum.com/t/mr-guid-install-question-on-suse-linux/75215 "2006-03-01T14:33:58Z")

</div>

I am not sure this is the best place for this question, it might better belong on a SuSE Linux forum but I thought I would start here. I have a SuSE 9.1 Professional platform. I deinstalled the stock Ruby and rolled…

---

## [Returning more than one value](https://www.ruby-forum.com/t/returning-more-than-one-value/75113)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 1\
**Last updated:** [March 1, 2006, 12:48pm UTC](https://www.ruby-forum.com/t/returning-more-than-one-value/75113 "2006-03-01T12:48:53Z")

</div>

Hi group. I’ve tested the following: irb(main):001:0\> def foo irb(main):002:1\> 1,2 irb(main):003:1\> end SyntaxError: compile error (irb):2: parse error, unexpected ‘,’, expecting kEND 1,2 ^ from (irb):3 from …

---

## [Embedding ruby-vtk within c++](https://www.ruby-forum.com/t/embedding-ruby-vtk-within-c/75153)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 11:28am UTC](https://www.ruby-forum.com/t/embedding-ruby-vtk-within-c/75153 "2006-03-01T11:28:43Z")

</div>

interesting ruby-vtk wrapping issueHello everyboy I’m currently writing my diploma thesis and I’m going to use ruby-vtk under Linux now. The aim for this is to extend an existing c++ application using vtk with some k…

---

## [Interesting ruby-vtk wrapping issue](https://www.ruby-forum.com/t/interesting-ruby-vtk-wrapping-issue/75151)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 11:24am UTC](https://www.ruby-forum.com/t/interesting-ruby-vtk-wrapping-issue/75151 "2006-03-01T11:24:35Z")

</div>

Hello everyboy I’m currently writing my diploma thesis and I’m going to use ruby-vtk under Linux now. The aim for this is to extend an existing c++ application using vtk with some kind of ruby shell. This allows to …

---

## [Ruby-1.8 cvs head and 64bit time\_t](https://www.ruby-forum.com/t/ruby-1-8-cvs-head-and-64bit-time-t/73474)

<div class="topic-metadata">

**Author:** [@arton](https://www.ruby-forum.com/u/arton)\
**Replies:** 6\
**Last updated:** [March 1, 2006, 11:09am UTC](https://www.ruby-forum.com/t/ruby-1-8-cvs-head-and-64bit-time-t/73474 "2006-03-01T11:09:46Z")

</div>

artone$B$G$9!#e(B ruby-1.8e$B$Ne(Bcvs heade$B$re(BVC++8e$B$Ge(Bmakee$B$9$k$He(Btime\_te$B$,e(B64e$B%S%C%H$K$J$C$?4X78$Ge(BTime e$B%/%i%9$rMxMQ$9$k%F%9%H!J$?$H$($Pe(Byamle$B!K$N4v$D$+$,%U%'%$%i!\<$K$J$j$^$9!#e(B e$B860x…

---

## [Wsdl problem](https://www.ruby-forum.com/t/wsdl-problem/72791)

<div class="topic-metadata">

**Author:** [@haakon](https://www.ruby-forum.com/u/haakon)\
**Replies:** 2\
**Last updated:** [March 1, 2006, 10:58am UTC](https://www.ruby-forum.com/t/wsdl-problem/72791 "2006-03-01T10:58:48Z")

</div>

Hi! I used wsdl2ruby to generate classes and methods. But I have a broblem with one of the methods and its arguments method in driver.rb: class EndUserIdentifier @@schema\_type = “EndUserIdentifier” @@schema\_ns = “L…

---

## [\_No\_ Ruby Weekly News 20th - 26th February 2006](https://www.ruby-forum.com/t/no-ruby-weekly-news-20th-26th-february-2006/75117)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 9:03am UTC](https://www.ruby-forum.com/t/no-ruby-weekly-news-20th-26th-february-2006/75117 "2006-03-01T09:03:56Z")

</div>

Sorry, no RWN this week. Here are some interesting links to keep you occupied instead: http://anarchaia.org/ http://project.ioni.st/ http://redhanded.hobix.com/ http://whytheluckystiff.net/ http://ozmm.org/ http:…

---

## [Waking ruby thread on external event](https://www.ruby-forum.com/t/waking-ruby-thread-on-external-event/75064)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 5\
**Last updated:** [March 1, 2006, 8:53am UTC](https://www.ruby-forum.com/t/waking-ruby-thread-on-external-event/75064 "2006-03-01T08:53:24Z")

</div>

Hi, I have Ruby embedded into a multithreaded C++ app. It’s easy for a C++ thread to wait for an event from a Ruby thread.(\*) But I’m looking for ways to allow a Ruby thread to sleep until an event from a C++ threa…

---

## [\[mkmf\] quoting directory names](https://www.ruby-forum.com/t/mkmf-quoting-directory-names/54306)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [March 1, 2006, 5:54am UTC](https://www.ruby-forum.com/t/mkmf-quoting-directory-names/54306 "2006-03-01T05:54:22Z")

</div>

e$B$J$+$@$G$9!#e(B e$B$A$g$C$HKb$,:9$7$Fe(BOneClickInstallere$B$re(B%ProgramFiles%e$B$N2\<$K%$%s%9%H!\<%ke(B e$B$7$F$$?$s$G$9$,!"0F$NDj$H$$$&$+3HD%%i%$%V%i%j$N%3%s%Q%$%k$K\<:GT$7$?$Ne(B e$B$G%Q%C%A$G$9!#0l1~e(Bcygwine$B$…

---

## [March Meeting of the Phoenix Ruby Users Group](https://www.ruby-forum.com/t/march-meeting-of-the-phoenix-ruby-users-group/75068)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 4:41am UTC](https://www.ruby-forum.com/t/march-meeting-of-the-phoenix-ruby-users-group/75068 "2006-03-01T04:41:27Z")

</div>

The Phoenix Ruby U. Group will hold its monthly meeting on March 13, 2006. Where: Cyclone Commerce Inc 8388 E Hartford Dr # 100 Scottsdale, AZ When: 13 March, 6:15 pm - ~8:30 pm Topic: Who knows? We’ll make s…

---

## [Sending Binary Data?](https://www.ruby-forum.com/t/sending-binary-data/54271)

<div class="topic-metadata">

**Author:** [@Yacin\_Nadji](https://www.ruby-forum.com/u/Yacin_Nadji)\
**Replies:** 2\
**Last updated:** [March 1, 2006, 3:52am UTC](https://www.ruby-forum.com/t/sending-binary-data/54271 "2006-03-01T03:52:36Z")

</div>

Hello Ruby Gurus! My friend and I are writing a chat/IM client in Ruby. It’s nothing special, but it’s helping us learn the language, especially the lower level networking parts really well and I’m thoroughly enjoying…

---

## [Iterators and Assigment](https://www.ruby-forum.com/t/iterators-and-assigment/54276)

<div class="topic-metadata">

**Author:** [@Godspeed](https://www.ruby-forum.com/u/Godspeed)\
**Replies:** 3\
**Last updated:** [March 1, 2006, 3:42am UTC](https://www.ruby-forum.com/t/iterators-and-assigment/54276 "2006-03-01T03:42:16Z")

</div>

Consider… def fred yield $k puts “in fred #{$k}” end $k=2 fred {|o| o = 3} puts “outside fred #{$k}” produces: in fred 2 outside fred 2 why is $k still 2 after the call to fred? Thanks in advance.

---

## [Upload a picture save it on hdd](https://www.ruby-forum.com/t/upload-a-picture-save-it-on-hdd/75061)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 0\
**Last updated:** [March 1, 2006, 3:14am UTC](https://www.ruby-forum.com/t/upload-a-picture-save-it-on-hdd/75061 "2006-03-01T03:14:29Z")

</div>

hi how to uplaod the picture and save it in the folder railsbooks says about how to upload and save it in database this is not what I need p.352 thanks

---

## [Mr. Guid 0.2 (Cross-platform Ruby GUI Debugger)](https://www.ruby-forum.com/t/mr-guid-0-2-cross-platform-ruby-gui-debugger/54102)

<div class="topic-metadata">

**Author:** [@mitchell](https://www.ruby-forum.com/u/mitchell)\
**Replies:** 21\
**Last updated:** [March 1, 2006, 2:58am UTC](https://www.ruby-forum.com/t/mr-guid-0-2-cross-platform-ruby-gui-debugger/54102 "2006-03-01T02:58:20Z")

</div>

Mr. Guid 0.2 is a milestone release because it can now be run on both Linux and Windows without any compatibility issues. Notable changes since 0.1.4: All debugging is done via TCP instead of UNIX sockets Instance va…

---

## [Cannot instal gettext 1.2.0 gem](https://www.ruby-forum.com/t/cannot-instal-gettext-1-2-0-gem/74904)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/cannot-instal-gettext-1-2-0-gem/74904 "2006-02-28T20:22:51Z")

</div>

OS = CentOS4.2 Ruby = 1.8.4 Gem = 0.8.11 When attempting to install gettext I get the following error: gem install gettext Attempting local installation of ‘gettext’ Local gem file not found: gettext\*.gem Attemptin…

---

## [Rails on the Mac - Apple Article](https://www.ruby-forum.com/t/rails-on-the-mac-apple-article/54286)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 5:22pm UTC](https://www.ruby-forum.com/t/rails-on-the-mac-apple-article/54286 "2006-02-28T17:22:46Z")

</div>

Interesting article at: http://developer.apple.com/tools/rubyonrails.html I hope this is not old news.

---

## [Same variable name used in block and local question](https://www.ruby-forum.com/t/same-variable-name-used-in-block-and-local-question/54278)

<div class="topic-metadata">

**Author:** [@rubyrus](https://www.ruby-forum.com/u/rubyrus)\
**Replies:** 5\
**Last updated:** [February 28, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/same-variable-name-used-in-block-and-local-question/54278 "2006-02-28T17:19:38Z")

</div>

Can anybody help me here, TIA!! This is the code. I expect to see the string “Afterward:turkey”, but why am I getting “Afterward:camel”? |animal| parameter in a block should be temporary inside the block, right?? C…

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

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