# Ruby

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

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

---

## [Requiring files in a module context](https://www.ruby-forum.com/t/requiring-files-in-a-module-context/191002)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 2\
**Last updated:** [July 4, 2010, 5:35am UTC](https://www.ruby-forum.com/t/requiring-files-in-a-module-context/191002 "2010-07-04T05:35:49Z")

</div>

Hi! I want to replace “default definee” when I require ruby file. A short example: config1.rb · GitHub Of course, it says that One::Configuration is an uninitialized constant. So, here is my question: how to require c…

---

## [Audio file download in ruby](https://www.ruby-forum.com/t/audio-file-download-in-ruby/190920)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 10\
**Last updated:** [July 3, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/audio-file-download-in-ruby/190920 "2010-07-03T15:07:28Z")

</div>

hi all, Please could some on help me with a code to download an audio file in ruby. the code below does not work;; url = “http://stream.esvmedia.org/mp3-play/hw/19023001-19023006.mp3” res = Net::HTTP.get\_response(UR…

---

## [Web service client?](https://www.ruby-forum.com/t/web-service-client/191009)

<div class="topic-metadata">

**Author:** [@BruceL](https://www.ruby-forum.com/u/BruceL)\
**Replies:** 1\
**Last updated:** [July 3, 2010, 9:12am UTC](https://www.ruby-forum.com/t/web-service-client/191009 "2010-07-03T09:12:46Z")

</div>

Just been handed a project to use a 3rd party web service API, but all its examples are in C# Can anyone point me to a Ruby Web Clients for Dummies or its equivalent?

---

## [Non-Rails JRuby web services](https://www.ruby-forum.com/t/non-rails-jruby-web-services/189264)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 13\
**Last updated:** [July 3, 2010, 7:58am UTC](https://www.ruby-forum.com/t/non-rails-jruby-web-services/189264 "2010-07-03T07:58:26Z")

</div>

I’m coming from a Ruby perspective here, and I’m looking to implement an http-based web service which needs to use both Ruby code and a Java library. The latter contains a very large memory requirement (gigabytes) tha…

---

## [Net/pop.rb $B$K$h$kBgNL$N(B pop](https://www.ruby-forum.com/t/net-pop-rb-b-k-h-kbgnl-n-b-pop/191012)

<div class="topic-metadata">

**Author:** [@Furutanian](https://www.ruby-forum.com/u/Furutanian)\
**Replies:** 2\
**Last updated:** [July 3, 2010, 5:03am UTC](https://www.ruby-forum.com/t/net-pop-rb-b-k-h-kbgnl-n-b-pop/191012 "2010-07-03T05:03:28Z")

</div>

e$B$O$8$a$^$7$F!“%U%k%?%K%”%s$H?=$7$^$9!#e(B e$B$O$8$a$F%Q%C%A$rEj9F$7$^$9!#e(B e$B@hF|!“e(B4 e$BK|DLDxEY$N%a!\<%k$re(B pop e$B$7$h$&$H$7$?$i!”%&%s$H$b%9%s$H$b$$e(B e$B$o$J$/$J$C$F$7$^$$!“?t==J,$7$F=hM}$r:F3+$7$?:”$K$…

---

## [ANN: zozo 1.0.0 Released](https://www.ruby-forum.com/t/ann-zozo-1-0-0-released/190980)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 5\
**Last updated:** [July 3, 2010, 1:03am UTC](https://www.ruby-forum.com/t/ann-zozo-1-0-0-released/190980 "2010-07-03T01:03:40Z")

</div>

= What? zozo is a tool that makes it easy to reduce the memory footprint of your applications by having them not load rubygems/bundler at runtime: $ unicorn -c unicorn.conf -D $ ps ux USER PID %CPU %MEM VSZ …

---

## [Jruby daemons](https://www.ruby-forum.com/t/jruby-daemons/190964)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 4\
**Last updated:** [July 3, 2010, 12:31am UTC](https://www.ruby-forum.com/t/jruby-daemons/190964 "2010-07-03T00:31:52Z")

</div>

Anyone tried using something like jsvc to daemonize/background a jruby script? (Daemon – Daemon : Java Service) I’m on linux, so I can use start-stop-daemon, but the necessary -b switch in this case implies some hoops…

---

## [Networking: select() blocks for seconds (\> timeout)](https://www.ruby-forum.com/t/networking-select-blocks-for-seconds-timeout/187568)

<div class="topic-metadata">

**Author:** [@raulparolari](https://www.ruby-forum.com/u/raulparolari)\
**Replies:** 26\
**Last updated:** [July 2, 2010, 11:54pm UTC](https://www.ruby-forum.com/t/networking-select-blocks-for-seconds-timeout/187568 "2010-07-02T23:54:46Z")

</div>

I am using Ruby (as a prototype version) to communicate with a network of solar cells (driven by firmware), over Udp. It works most of the time perfectly (delivering messages with 1-5 milliseconds precision, even beyo…

---

## [FasterCSV - Merge CSV](https://www.ruby-forum.com/t/fastercsv-merge-csv/191001)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 6\
**Last updated:** [July 2, 2010, 10:19pm UTC](https://www.ruby-forum.com/t/fastercsv-merge-csv/191001 "2010-07-02T22:19:34Z")

</div>

I have 3 CSVs with the same content with say 10 rows. There is a slight variation to 1 column in the data it contains. csv1 - 20 lines 10 cols csv2 - 52 lines 10 cols csv3 - 24 lines 10 cols How can I merge all 3 cs…

---

## [Limit Ring server to localhost only. RingFinger.new('localhost') apparently doesn't work](https://www.ruby-forum.com/t/limit-ring-server-to-localhost-only-ringfinger-new-localhost-apparently-doesnt-work/191025)

<div class="topic-metadata">

**Author:** [@koicat](https://www.ruby-forum.com/u/koicat)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/limit-ring-server-to-localhost-only-ringfinger-new-localhost-apparently-doesnt-work/191025 "2010-07-02T22:05:31Z")

</div>

Am using RingyDingy. Have altered call to Rinda::RingFinger.new to Rinda::RingFinger.new(‘localhost’) in ring\_server.rb and in ringy\_dingy.rb, but still get, intermittently, attachments to like named services on my…

---

## [\[ANN\] faster\_rubygems v 0.12.2 released--make startup fast!](https://www.ruby-forum.com/t/ann-faster-rubygems-v-0-12-2-released-make-startup-fast/191022)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [July 2, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/ann-faster-rubygems-v-0-12-2-released-make-startup-fast/191022 "2010-07-02T22:01:17Z")

</div>

Hello all. Pleased to release v 0.12.2 of the “faster\_rubygems” gem. This gem makes loading rubygems much faster. What it does is cache the location of files in your gem dirs, ex: /lib/ruby/gems/1.8/jruby/{active\_sup…

---

## [Jruby-complete embed with gem as a jar](https://www.ruby-forum.com/t/jruby-complete-embed-with-gem-as-a-jar/191021)

<div class="topic-metadata">

**Author:** [@Philipp\_Klein](https://www.ruby-forum.com/u/Philipp_Klein)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 7:23pm UTC](https://www.ruby-forum.com/t/jruby-complete-embed-with-gem-as-a-jar/191021 "2010-07-02T19:23:59Z")

</div>

hello everybody, im trying to bundel a gem as a jar (nokogiri (nokogiri (1.4.2) or hpricot-0.8.2-java) with jruby-complete-1.5.1.jar according to this tutorial: JRuby 1.1.6: Gems-in-a-jar. gem list --local finds bot…

---

## [Code Review: RemoveObsolete](https://www.ruby-forum.com/t/code-review-removeobsolete/191018)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 6:17pm UTC](https://www.ruby-forum.com/t/code-review-removeobsolete/191018 "2010-07-02T18:17:45Z")

</div>

tfpt review “/shelveset:RemoveObsolete;REDMOND\\tomat” Comment : Removes obsolete APIs and dead code. Tomas

---

## [Mimic AES\_ENCRYPT and AES\_DECRYPT functions in Ruby](https://www.ruby-forum.com/t/mimic-aes-encrypt-and-aes-decrypt-functions-in-ruby/163703)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 19\
**Last updated:** [July 2, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/mimic-aes-encrypt-and-aes-decrypt-functions-in-ruby/163703 "2010-07-02T17:46:19Z")

</div>

Hello there! I need to mimic what MySQL does when encrypting and decrypting strings using built-in functions AES\_ENCRYPT() and AES\_DECRYPT(). Even though the application I am writing is a Rails application, I think t…

---

## [Pb install Ruby 1.9.1](https://www.ruby-forum.com/t/pb-install-ruby-1-9-1/191013)

<div class="topic-metadata">

**Author:** [@canner](https://www.ruby-forum.com/u/canner)\
**Replies:** 1\
**Last updated:** [July 2, 2010, 5:38pm UTC](https://www.ruby-forum.com/t/pb-install-ruby-1-9-1/191013 "2010-07-02T17:38:42Z")

</div>

Hi! I tried to delete Ruby 1.8.7 and then install the 1.9.1 but something is apparently wrong. I tried: http://wiki.rubyonrails.org/getting-started/installation/linux Few ideas would be great… . Screenshot attach…

---

## [\[Feature #3513\] spawn ..., err: nil](https://www.ruby-forum.com/t/feature-3513-spawn-err-nil/190946)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 9\
**Last updated:** [July 2, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/feature-3513-spawn-err-nil/190946 "2010-07-02T16:39:59Z")

</div>

Feature #3513: spawn …, err: nil http://redmine.ruby-lang.org/issues/show/3513 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Akira T., e$B%+%F%4%je(B: core spawne$B$N%j%@%$…

---

## [\[Security\] Ruby 1.9.1-p429 is out](https://www.ruby-forum.com/t/security-ruby-1-9-1-p429-is-out/191006)

<div class="topic-metadata">

**Author:** [@Yuki\_SSSYugui](https://www.ruby-forum.com/u/Yuki_SSSYugui)\
**Replies:** 2\
**Last updated:** [July 2, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/security-ruby-1-9-1-p429-is-out/191006 "2010-07-02T15:11:35Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Ruby 1.9.1-p429 has just been released. This is a patchlevel release for Ruby 1.9.1. This fixes many bugs and includes the fix for a security vulnerability that allo…

---

## [Ruby 1.9.2 RC1 is out](https://www.ruby-forum.com/t/ruby-1-9-2-rc1-is-out/191007)

<div class="topic-metadata">

**Author:** [@Yuki\_SSSYugui](https://www.ruby-forum.com/u/Yuki_SSSYugui)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 1:04pm UTC](https://www.ruby-forum.com/t/ruby-1-9-2-rc1-is-out/191007 "2010-07-02T13:04:33Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Ruby 1.9.2 RC1 has just been released. This is a release candidate of Ruby 1.9.2. Ruby 1.9.2 will be mostly compatible with 1.9.1, except the following changes: M…

---

## [Getting array input from command line](https://www.ruby-forum.com/t/getting-array-input-from-command-line/190737)

<div class="topic-metadata">

**Author:** [@tedforte](https://www.ruby-forum.com/u/tedforte)\
**Replies:** 4\
**Last updated:** [July 2, 2010, 5:32am UTC](https://www.ruby-forum.com/t/getting-array-input-from-command-line/190737 "2010-07-02T05:32:06Z")

</div>

Hi everyone, I want to get some data from a user, that I want to put in an array… well the first one is filename and the rest are a bunch of numbers which are sepparated by -i and -o options. inFile = ARGV\[0\] myA…

---

## [Running a shell command from ruby](https://www.ruby-forum.com/t/running-a-shell-command-from-ruby/190979)

<div class="topic-metadata">

**Author:** [@studlee2](https://www.ruby-forum.com/u/studlee2)\
**Replies:** 7\
**Last updated:** [July 2, 2010, 3:56am UTC](https://www.ruby-forum.com/t/running-a-shell-command-from-ruby/190979 "2010-07-02T03:56:54Z")

</div>

I am experimenting with running bash commands from within ruby. The commands should be in an array, separated internally with semicolons. The problem is that they do not get executed. My script: #!/usr/bin/ruby scr…

---

## [Quicker install possible?](https://www.ruby-forum.com/t/quicker-install-possible/190912)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [July 2, 2010, 3:19am UTC](https://www.ruby-forum.com/t/quicker-install-possible/190912 "2010-07-02T03:19:26Z")

</div>

Hi all. Currently with the jruby “one click installer” for windows, it installs jruby.jar last (after all the rdoc and ri), which means that you can’t actually use the thing until after waiting till the very very end. …

---

## [Handling File.open exceptions](https://www.ruby-forum.com/t/handling-file-open-exceptions/190984)

<div class="topic-metadata">

**Author:** [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Replies:** 5\
**Last updated:** [July 2, 2010, 3:08am UTC](https://www.ruby-forum.com/t/handling-file-open-exceptions/190984 "2010-07-02T03:08:35Z")

</div>

I was reading the pick axe book (for 1.9 version of ruby) and on page 155 it talks about exception handling. More specifically, it says that beginners usually make the mistake of putting File.open in the begin end blo…

---

## [\[Bug #3490\]\[Assigned\] test\_pack\_utf8 failure on mswin64](https://www.ruby-forum.com/t/bug-3490-assigned-test-pack-utf8-failure-on-mswin64/190783)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 6\
**Last updated:** [July 2, 2010, 3:06am UTC](https://www.ruby-forum.com/t/bug-3490-assigned-test-pack-utf8-failure-on-mswin64/190783 "2010-07-02T03:06:57Z")

</div>

e$B%A%1%C%He(B #3490 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BAssignede$B$KJQ99e(B e$BC4Ev\<Te(B Usaku NAKAMURAe$B$K%;%C%He(B e$BM%@hEYe(B Normale$B$+$ie(BLowe$B$KJQ99e(B e$B1sF#$G$9!#e(B …

---

## [Problem with Mail gem: bounced and error\_status return nil](https://www.ruby-forum.com/t/problem-with-mail-gem-bounced-and-error-status-return-nil/190995)

<div class="topic-metadata">

**Author:** [@hgtesta](https://www.ruby-forum.com/u/hgtesta)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 3:02am UTC](https://www.ruby-forum.com/t/problem-with-mail-gem-bounced-and-error-status-return-nil/190995 "2010-07-02T03:02:33Z")

</div>

Hi there! I must be missing something about Mail gem, bounced? and error\_status don’t work for me. I have just one message on the server, and it is a bounced e-mail. So I tried the following: Mail.defaults do retri…

---

## [Isolate 2.1.0 Released](https://www.ruby-forum.com/t/isolate-2-1-0-released/190994)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 2:14am UTC](https://www.ruby-forum.com/t/isolate-2-1-0-released/190994 "2010-07-02T02:14:16Z")

</div>

Isolate version 2.1.0 has been released! http://github.com/jbarnette/isolate Isolate is a very simple RubyGems sandbox. It provides a way to express and automatically install your project’s Gem dependencies. The onl…

---

## [SmartImage 0.0.3 - simple yet powerful cross-platform thumbnail generation and image manipulation i](https://www.ruby-forum.com/t/smartimage-0-0-3-simple-yet-powerful-cross-platform-thumbnail-generation-and-image-manipulation-i/190990)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [July 2, 2010, 1:28am UTC](https://www.ruby-forum.com/t/smartimage-0-0-3-simple-yet-powerful-cross-platform-thumbnail-generation-and-image-manipulation-i/190990 "2010-07-02T01:28:37Z")

</div>

“It’s like a Swiss Army Knife for images, but one of those tiny ones you can keep on your keychain” SmartImage is an image processing/compositing/thumbnailing Ruby with the following design goals: Completely seamle…

---

## [Reading String Data as a File](https://www.ruby-forum.com/t/reading-string-data-as-a-file/190839)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 24\
**Last updated:** [July 1, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/reading-string-data-as-a-file/190839 "2010-07-01T23:15:42Z")

</div>

I use Net::HTTP to collect some data as a string. I now need to pass that string data to a Ruby method that is expecting to receive the data from a file (i.e., the method expects the data to be stored in a file and t…

---

## [FasterCSV - write tab delimited files](https://www.ruby-forum.com/t/fastercsv-write-tab-delimited-files/190983)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 1\
**Last updated:** [July 1, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/fastercsv-write-tab-delimited-files/190983 "2010-07-01T22:23:01Z")

</div>

Hi, I’m using FasterCSV to write out a tab delimited file. For empty fields, does anyone know if there’s a way to not put in empty quotes ("") for nil or blank fields? Thanks

---

## [Code Review: noea6](https://www.ruby-forum.com/t/code-review-noea6/190969)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [July 1, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/code-review-noea6/190969 "2010-07-01T20:59:51Z")

</div>

tfpt review “/shelveset:noea6;REDMOND\\tomat” Comment : Removes Microsoft.Scripting.ExtensionAttribute.dll. Upgrades target framework versions of all projects from 2.0 to 3.5. Tomas

---

## [Send\_file sends an empty file to browser](https://www.ruby-forum.com/t/send-file-sends-an-empty-file-to-browser/190965)

<div class="topic-metadata">

**Author:** [@deco10](https://www.ruby-forum.com/u/deco10)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/send-file-sends-an-empty-file-to-browser/190965 "2010-07-01T19:09:12Z")

</div>

Hi, I’m using merb as a framework but I suspect the issue is related to ruby and my system. When I use send\_file with an absolute path it sends an approrpriately named file to the browser, but the file is empty. The…

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

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