# Ruby

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

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

---

## [\[m17n\] String#chop & String#succ](https://www.ruby-forum.com/t/m17n-string-chop-string-succ/113823)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 11:01am UTC](https://www.ruby-forum.com/t/m17n-string-chop-string-succ/113823 "2007-09-05T11:01:40Z")

</div>

e$B$J$+$@$G$9!#e(B http://dontstopmusic.no-ip.org/diary/20070827.html#p02 e$B$G;XE&$5e(B e$B$l$F$$$ke(Bchope$B$He(Bsucce$B$K4X$9$k%Q%C%A$G$9!#e(B succe$B$K4X$7$F$O!"1Q?t;z0J30$OC1=c$KJ8;z%3!\<%I=g$K$:$i$7$F$$$^$9$,!"e(…

---

## [Amazon Webservice + soap/wsdlDriver =\> weird errors](https://www.ruby-forum.com/t/amazon-webservice-soap-wsdldriver-weird-errors/113826)

<div class="topic-metadata">

**Author:** [@22marine](https://www.ruby-forum.com/u/22marine)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 10:50am UTC](https://www.ruby-forum.com/t/amazon-webservice-soap-wsdldriver-weird-errors/113826 "2007-09-05T10:50:17Z")

</div>

Hi, I’m trying to use amazon E-commerce Webservice using soap/wsdlDriver. The idea is that a user gives an ISBN, ant to get book informations. Here’s my code : require ‘soap/wsdlDriver’ URL = ‘http://webservices.am…

---

## [Folder Sync](https://www.ruby-forum.com/t/folder-sync/113821)

<div class="topic-metadata">

**Author:** [@BScott](https://www.ruby-forum.com/u/BScott)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 9:03am UTC](https://www.ruby-forum.com/t/folder-sync/113821 "2007-09-05T09:03:29Z")

</div>

How can i go about syncing two different folders on separate windows servers with Ruby?

---

## [Eclipse ruby plugin](https://www.ruby-forum.com/t/eclipse-ruby-plugin/113446)

<div class="topic-metadata">

**Author:** [@coolgeng\_coolgeng](https://www.ruby-forum.com/u/coolgeng_coolgeng)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 9:02am UTC](https://www.ruby-forum.com/t/eclipse-ruby-plugin/113446 "2007-09-05T09:02:29Z")

</div>

How to user ruby-plugin in eclipse 3.2 to build a project?

---

## [Socket send functions only allow you to send strings?](https://www.ruby-forum.com/t/socket-send-functions-only-allow-you-to-send-strings/113794)

<div class="topic-metadata">

**Author:** [@parrfolio](https://www.ruby-forum.com/u/parrfolio)\
**Replies:** 5\
**Last updated:** [September 5, 2007, 5:49am UTC](https://www.ruby-forum.com/t/socket-send-functions-only-allow-you-to-send-strings/113794 "2007-09-05T05:49:15Z")

</div>

I am writing a small TimeP (RFC 868) server to sync time with some networking equipment. The equipment that shall go nameless requires the use of UDP. As far as I can tell, my only option to write to a UDPSocket is t…

---

## [Where is Enumerable#each\_cons()?](https://www.ruby-forum.com/t/where-is-enumerable-each-cons/113799)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 4:10am UTC](https://www.ruby-forum.com/t/where-is-enumerable-each-cons/113799 "2007-09-05T04:10:09Z")

</div>

Using: ruby 1.8.6 (2007-03-13 patchlevel 0) \[i386-mswin32\] and: ruby 1.8.4 (2006-02-24) \[x86\_64-linux\] I can’t find Enumerable#each\_cons in either version – always a NoMethodError: irb(main):001:0\> \[1, 2, 3\].cons(2) …

---

## [Struct is cleverer than the documentation claims](https://www.ruby-forum.com/t/struct-is-cleverer-than-the-documentation-claims/113729)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 7\
**Last updated:** [September 5, 2007, 1:10am UTC](https://www.ruby-forum.com/t/struct-is-cleverer-than-the-documentation-claims/113729 "2007-09-05T01:10:50Z")

</div>

The Pickaxe book asserts that it will be possible to pass a block to Struct.new in Ruby 1.9. While spelunking the code, I discovered that the functionality has actually been present since 1.8.3. I’ve blogged about thi…

---

## [Why does File.exists? not support regexp? It would be very h](https://www.ruby-forum.com/t/why-does-file-exists-not-support-regexp-it-would-be-very-h/113750)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 8\
**Last updated:** [September 5, 2007, 12:21am UTC](https://www.ruby-forum.com/t/why-does-file-exists-not-support-regexp-it-would-be-very-h/113750 "2007-09-05T00:21:46Z")

</div>

Hi, if I wanna check if a file exists like fglrx.i386.8.40.3.ko why is File.exists? not able to handle regexp to check this like: system(‘rm fglrx\*’) if File.exists?(/^fglrx.+/) –\> ./test.rb:4:in \`exists?’: can’t con…

---

## [Thread interruptable too early?](https://www.ruby-forum.com/t/thread-interruptable-too-early/113789)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 12:03am UTC](https://www.ruby-forum.com/t/thread-interruptable-too-early/113789 "2007-09-05T00:03:42Z")

</div>

Hmm. Question. Imagine you’ve got this code: a = Thread.new { begin do stuff rescue MyException end } a.raise MyException.new Is it possible that this will still result in an uncaught exception within thread a? …

---

## [With](https://www.ruby-forum.com/t/with/113668)

<div class="topic-metadata">

**Author:** [@Matthias\_WSSS\_chter](https://www.ruby-forum.com/u/Matthias_WSSS_chter)\
**Replies:** 13\
**Last updated:** [September 4, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/with/113668 "2007-09-04T23:43:40Z")

</div>

Sorry folks if this was raised already, but google is not very useful when asked for “ruby with” or “ruby map single object” … Is there something like “with” already available? Let me give the short implementation fir…

---

## [Catching and redirecting STDERR output](https://www.ruby-forum.com/t/catching-and-redirecting-stderr-output/113787)

<div class="topic-metadata">

**Author:** [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/catching-and-redirecting-stderr-output/113787 "2007-09-04T23:41:40Z")

</div>

So ruby has this libxml that writes validation errors directly to standard error. The only way I’ve been able to figure out how to capture this output and then use it programmatically (send to logger and/or display …

---

## [Help installing rails](https://www.ruby-forum.com/t/help-installing-rails/113781)

<div class="topic-metadata">

**Author:** [@qrc](https://www.ruby-forum.com/u/qrc)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/help-installing-rails/113781 "2007-09-04T22:38:31Z")

</div>

I’m trying to install the rails aspect through gem, but when I run the command: gem install rails --include-dependencies I get a connection error. So I figured it may be because of our proxy, so when I try: gem in…

---

## [Fwd: Re: running ruby](https://www.ruby-forum.com/t/fwd-re-running-ruby/113782)

<div class="topic-metadata">

**Author:** [@konrad](https://www.ruby-forum.com/u/konrad)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/fwd-re-running-ruby/113782 "2007-09-04T22:22:28Z")

</div>

\---------- Forwarded Message ---------- Subject: Re: running ruby Date: Tuesday 04 September 2007 From: yahdoco removed\_email\_address@domain.invalid To: Konrad M. removed\_email\_address@domain.invalid The screen …

---

## [Reading files in UTF-8](https://www.ruby-forum.com/t/reading-files-in-utf-8/113780)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/reading-files-in-utf-8/113780 "2007-09-04T22:13:25Z")

</div>

Hello everybody, I am deseperatly trying to read file encoded in UTF-8, to populate the Globalize database. But it seems that the UTF-8 encoding is not recognized, and read as an ASCII char. Is there any specific man…

---

## [RMagick: UnableToConcatenateString \`](https://www.ruby-forum.com/t/rmagick-unabletoconcatenatestring/113712)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 5\
**Last updated:** [September 4, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/rmagick-unabletoconcatenatestring/113712 "2007-09-04T21:37:56Z")

</div>

I have a program to generate my website bluebottleimages.org It creates thumbnails using Rmagick. I run the program (on the server), and it goes for a while, but then I get RMagick: UnableToConcatenateString \` '. W…

---

## [Bike Shed comments](https://www.ruby-forum.com/t/bike-shed-comments/113776)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/bike-shed-comments/113776 "2007-09-04T20:55:50Z")

</div>

Hi, While listening to show 671, “The Declaration of Independence” of The Thomas Jefferson Hour, http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=206783908&s=143441&i=17169216 http://makochemedia.com/…

---

## [Rmagick get date picture taken](https://www.ruby-forum.com/t/rmagick-get-date-picture-taken/113698)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 4\
**Last updated:** [September 4, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/rmagick-get-date-picture-taken/113698 "2007-09-04T20:12:19Z")

</div>

I want to make a program to rename pictures based on the date and time they were taken. How do I get the date (and time) a picture was taken?

---

## [Returning a pipe?](https://www.ruby-forum.com/t/returning-a-pipe/196454)

<div class="topic-metadata">

**Author:** [@unbewusst](https://www.ruby-forum.com/u/unbewusst)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/returning-a-pipe/196454 "2007-09-04T19:37:14Z")

</div>

i’m writting a RubyCocoa application for synchronizing folders of a computer to folders of an usb key. to let the user not bored, because it could takes time, i have a log window where i print the messages coming from…

---

## [Need help in parsing REXML::Document](https://www.ruby-forum.com/t/need-help-in-parsing-rexml-document/113673)

<div class="topic-metadata">

**Author:** [@Nikolay\_P](https://www.ruby-forum.com/u/Nikolay_P)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/need-help-in-parsing-rexml-document/113673 "2007-09-04T19:34:13Z")

</div>

Hello all. I have this XML output: \<operation id="other id" sid="other sid" ... Could someone point me to the way on how i can get construction like this one from the XML abov…

---

## [Script errors](https://www.ruby-forum.com/t/script-errors/113713)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 5\
**Last updated:** [September 4, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/script-errors/113713 "2007-09-04T19:03:36Z")

</div>

require ‘rubygems’ require ‘ruport’ require ‘ruport/util’ require ‘date’ require ‘optparse’ opts = OptionParser.new do |opts| opts.on("-h", “–help”, “Displays this help.”) do |a| puts opts end opts.on("-s", “–st…

---

## [Trouble Sending Emails](https://www.ruby-forum.com/t/trouble-sending-emails/113756)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/trouble-sending-emails/113756 "2007-09-04T18:20:29Z")

</div>

Hello, One of my scripts that used to send e-mails on successful completion has stopped sending e-mails. Using ruby-debug, I found that it is indeed reaching those lines of code but no e-mail ever gets sent. I can se…

---

## [That I can give game.SWF on web and play online](https://www.ruby-forum.com/t/that-i-can-give-game-swf-on-web-and-play-online/113747)

<div class="topic-metadata">

**Author:** [@kimngan](https://www.ruby-forum.com/u/kimngan)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/that-i-can-give-game-swf-on-web-and-play-online/113747 "2007-09-04T17:17:04Z")

</div>

Do you know packaged Ruby Tk application that can create an SWF file? Because, I want packaged that can create an SWF file for game. (I write by Ruby\_Tk). That I can give game.SWF on web and play online

---

## [Please, tell me about packaged Ruby Tk application?](https://www.ruby-forum.com/t/please-tell-me-about-packaged-ruby-tk-application/113638)

<div class="topic-metadata">

**Author:** [@kimngan](https://www.ruby-forum.com/u/kimngan)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/please-tell-me-about-packaged-ruby-tk-application/113638 "2007-09-04T17:02:02Z")

</div>

Please, tell me about packaged Ruby Tk application to .swf or to .exe . thanks so much!

---

## [Feeding a codeblock/function with an array or something simi](https://www.ruby-forum.com/t/feeding-a-codeblock-function-with-an-array-or-something-simi/113739)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 5\
**Last updated:** [September 4, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/feeding-a-codeblock-function-with-an-array-or-something-simi/113739 "2007-09-04T16:23:38Z")

</div>

Hi, I have a codeblock like this: def foobar(command,customerrormessage) if not system(command) puts customerrormessage exit end end and then many calls of it like: foobar(‘rm something’,‘Error I could’nt remove…

---

## [Attr\_reader](https://www.ruby-forum.com/t/attr-reader/113527)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 14\
**Last updated:** [September 4, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/attr-reader/113527 "2007-09-04T16:12:35Z")

</div>

On p. 30-31 of “Programming Ruby (2nd ed)”, there is this example: class Song attr\_reader :name, :artist, :duration end and the text says: “The corresponding instance variables, @name, @artist, and @duration, will…

---

## [ANN: Sequel 0.2.0 Released](https://www.ruby-forum.com/t/ann-sequel-0-2-0-released/113733)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-2-0-released/113733 "2007-09-04T13:17:48Z")

</div>

Sequel version 0.2.0 has just been released. This release includes a completely rewritten Ruby to SQL translator and a number of minor bug fixes. New R. to SQL translator Sequel now has a new Ruby to SQL translator b…

---

## [Resource Acquisition & Cleanup](https://www.ruby-forum.com/t/resource-acquisition-cleanup/113727)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/resource-acquisition-cleanup/113727 "2007-09-04T12:56:43Z")

</div>

Hello Rubyists, I am looking for a style or idiom that I can apply to a resource management problem. I have a number of resources (objects) that I need to release if any exception is thrown. While ensure-blocks or blo…

---

## [Syntaxerror with HERE document](https://www.ruby-forum.com/t/syntaxerror-with-here-document/113726)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/syntaxerror-with-here-document/113726 "2007-09-04T12:05:35Z")

</div>

Why does the following statement give syntax error “undefined method \`STDOUT’”? STDOUT \<\<-END line 1 line 2 END After all, the following works: s=\<\<-END line 1 line 2 END STDOUT \<\< s

---

## [Wierd floating point output](https://www.ruby-forum.com/t/wierd-floating-point-output/113677)

<div class="topic-metadata">

**Author:** [@Matthias\_WSSS\_chter](https://www.ruby-forum.com/u/Matthias_WSSS_chter)\
**Replies:** 13\
**Last updated:** [September 4, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/wierd-floating-point-output/113677 "2007-09-04T12:02:35Z")

</div>

Folks, While we had a discussion around the magic number 0.06, I tried to output arbitrary floating point numbers and was puzzled about the imprecision of my ruby executable (or a library it uses for this task) on my…

---

## [Ruby library for monitoring virtual comport?](https://www.ruby-forum.com/t/ruby-library-for-monitoring-virtual-comport/113711)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 8:09am UTC](https://www.ruby-forum.com/t/ruby-library-for-monitoring-virtual-comport/113711 "2007-09-04T08:09:54Z")

</div>

Hi, a friend of mine reads the status of a virtual comport with linux socat and writes the output to a file, means he’s able to read data but unable to send data. Now he wants to have a real web application that mon…

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

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