# Ruby

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

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

---

## [OutOfMemory reading large GZipped file](https://www.ruby-forum.com/t/outofmemory-reading-large-gzipped-file/188642)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 2\
**Last updated:** [May 15, 2010, 2:54pm UTC](https://www.ruby-forum.com/t/outofmemory-reading-large-gzipped-file/188642 "2010-05-15T14:54:01Z")

</div>

Hi all! I am working on a log analysis tool, and I have added reading og .gz log files. When I scan very large files, I run out of heap space. Here is the part of the code reading the file. Will this try to keep th…

---

## [Difference between $0 and \_\_FILE\_\_](https://www.ruby-forum.com/t/difference-between-0-and-file/188643)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 3\
**Last updated:** [May 15, 2010, 12:17pm UTC](https://www.ruby-forum.com/t/difference-between-0-and-file/188643 "2010-05-15T12:17:47Z")

</div>

i have a script in my HOME/bin : /Users/yt/bin/path\_test.rb my “HOME/bin” is in the PATH then, if from this script, i outputs $0 and FILE with : path\_test.rb i got : $0 = /Users/yt/bin/path\_test.rb FILE = /Users/…

---

## [\[Bug #3296\] windows $B$G(B iconv.dll $B$N;HMQ$9$k(B MSVC runtime DLL $B$N%P!\<%8%g%s$,!"(Bruby](https://www.ruby-forum.com/t/bug-3296-windows-b-g-b-iconv-dll-b-n-hmq-9-k-b-msvc-runtime-dll-b-n-p-8-g-s-bruby/188610)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 15, 2010, 10:55am UTC](https://www.ruby-forum.com/t/bug-3296-windows-b-g-b-iconv-dll-b-n-hmq-9-k-b-msvc-runtime-dll-b-n-p-8-g-s-bruby/188610 "2010-05-15T10:55:07Z")

</div>

Bug #3296: windows e$B$Ge(B iconv.dll e$B$N;HMQ$9$ke(B MSVC runtime DLL e$B$N%P!\<%8%g%s$,!"e(Bruby e$BK\\BN$,;HMQ$9$k$b$N$H0lCW$7$F$$$J$$\>l9g$Ke(B\[BUG\]e$B$,=P$k!#e(B http://redmine.ruby-lang.org/issues/show/3296 e$B5/…

---

## [Play audio file (AAC) from ruby program](https://www.ruby-forum.com/t/play-audio-file-aac-from-ruby-program/188583)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 6\
**Last updated:** [May 15, 2010, 9:22am UTC](https://www.ruby-forum.com/t/play-audio-file-aac-from-ruby-program/188583 "2010-05-15T09:22:49Z")

</div>

I need to play, pause and resume AAC files from a ruby console program (much like iTunes or any music player). After much searching, I’ve come across these libraries: mp3info metadata id3lib-ruby rvideo (uses ffmpeg) …

---

## [\[Feature #3300\] onig\_number\_of\_captures $B$KAjEv$9$k%a%=%C%I(B Regexp#ncapture](https://www.ruby-forum.com/t/feature-3300-onig-number-of-captures-b-kajev-9-k-a-c-i-b-regexp-ncapture/188639)

<div class="topic-metadata">

**Author:** [@Makoto\_K](https://www.ruby-forum.com/u/Makoto_K)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 8:07am UTC](https://www.ruby-forum.com/t/feature-3300-onig-number-of-captures-b-kajev-9-k-a-c-i-b-regexp-ncapture/188639 "2010-05-15T08:07:45Z")

</div>

Feature #3300: onig\_number\_of\_captures e$B$KAjEv$9$k%a%=%C%Ie(B Regexp#ncapture http://redmine.ruby-lang.org/issues/show/3300 e$B5/I\<\<Te(B: Makoto K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: core, T…

---

## [Problem ruby pwd in different directory](https://www.ruby-forum.com/t/problem-ruby-pwd-in-different-directory/188608)

<div class="topic-metadata">

**Author:** [@gladenko](https://www.ruby-forum.com/u/gladenko)\
**Replies:** 3\
**Last updated:** [May 15, 2010, 4:28am UTC](https://www.ruby-forum.com/t/problem-ruby-pwd-in-different-directory/188608 "2010-05-15T04:28:19Z")

</div>

Hi my problem is this i have a script in direcory ex c:\\temp\\pippo.rb this script have this code a= Dir.pwd() puts a if i exec a script from another directory there is a problem. The script write a path of ruby ex…

---

## [Redis-rb 2.0.0](https://www.ruby-forum.com/t/redis-rb-2-0-0/188638)

<div class="topic-metadata">

**Author:** [@mmaher](https://www.ruby-forum.com/u/mmaher)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 4:04am UTC](https://www.ruby-forum.com/t/redis-rb-2-0-0/188638 "2010-05-15T04:04:18Z")

</div>

Redis-rb 2.0.0 is out. It’s the result of a big refactoring and it now uses the new multi-bulk protocol, has support for sharding, has a thread-safe mode, and is faster than previous versions. More information at http…

---

## [Need a gem or code to retrieve file Summary information with Ruby / Windows](https://www.ruby-forum.com/t/need-a-gem-or-code-to-retrieve-file-summary-information-with-ruby-windows/188377)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [May 15, 2010, 3:46am UTC](https://www.ruby-forum.com/t/need-a-gem-or-code-to-retrieve-file-summary-information-with-ruby-windows/188377 "2010-05-15T03:46:10Z")

</div>

Need a gem or code for Windows to retrieve file Summary information with Ruby. In writing a indexing program, I need the following fields from the file properties “summary information”: such as Title, Subject, Autho…

---

## [WX Ruby - How to Create a MenuBar](https://www.ruby-forum.com/t/wx-ruby-how-to-create-a-menubar/188637)

<div class="topic-metadata">

**Author:** [@iroupa](https://www.ruby-forum.com/u/iroupa)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 3:38am UTC](https://www.ruby-forum.com/t/wx-ruby-how-to-create-a-menubar/188637 "2010-05-15T03:38:32Z")

</div>

Hi all, I have created a basic frame and I’m trying to create a MenuBar inside it but although I have followed the API Documentation instructions I always get this error. This is my code require ‘wx’ include Wx cl…

---

## [\[Bug #2632\](Rejected) Windows $B$G$NL$FI$N$"$k%=%1%C%H$N%/%m!\<%:8e$NFI$\_\<h$j(B](https://www.ruby-forum.com/t/bug-2632-rejected-windows-b-g-nl-fi-n-k-1-c-h-n-m-8e-nfi-h-j-b/188635)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 2:12am UTC](https://www.ruby-forum.com/t/bug-2632-rejected-windows-b-g-nl-fi-n-k-1-c-h-n-m-8e-nfi-h-j-b/188635 "2010-05-15T02:12:59Z")

</div>

e$B%A%1%C%He(B #2632 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BRejectede$B$KJQ99e(B e$B2~$a$F9M$($^$9$H!“:G?7$Ne(B Windows7 e$B$GLdBj$J$$$N$G$”$l$Pe(B e$B$o$6$o$6F0E\*%3%9%H$r$+$1$FBP:v$…

---

## [Segmentation fault while using Ruby::DL](https://www.ruby-forum.com/t/segmentation-fault-while-using-ruby-dl/188565)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 4\
**Last updated:** [May 15, 2010, 1:39am UTC](https://www.ruby-forum.com/t/segmentation-fault-while-using-ruby-dl/188565 "2010-05-15T01:39:37Z")

</div>

Hello. I tried to call a simple method on Windows (XP, Win7 - didn’t matter) machine and it seems that i will get a segmentation fault depending of the Ruby version. Any ideas why that might happen? Here is the offen…

---

## [Tempfile broken in Ruby 1.9.1?](https://www.ruby-forum.com/t/tempfile-broken-in-ruby-1-9-1/188552)

<div class="topic-metadata">

**Author:** [@robertpostill](https://www.ruby-forum.com/u/robertpostill)\
**Replies:** 2\
**Last updated:** [May 15, 2010, 12:49am UTC](https://www.ruby-forum.com/t/tempfile-broken-in-ruby-1-9-1/188552 "2010-05-15T00:49:50Z")

</div>

I’ve been using Tempfile to create ~ 6 files of plot data. However, all but the last two files were unlinked as the new ones were created, so at the end, I only had two files, not six. I tried several combinations -…

---

## [Robust HTTP file upload server in Ruby?](https://www.ruby-forum.com/t/robust-http-file-upload-server-in-ruby/188613)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [May 15, 2010, 12:44am UTC](https://www.ruby-forum.com/t/robust-http-file-upload-server-in-ruby/188613 "2010-05-15T00:44:34Z")

</div>

I’m looking for a server-side HTTP file upload solution in Ruby which would allow a partially completed uploads to be resumed with an HTTP PUT (+ Range?) request. Does anything like this already exist, or is it somet…

---

## [Memory leak in Rails apps](https://www.ruby-forum.com/t/memory-leak-in-rails-apps/197327)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [May 15, 2010, 12:25am UTC](https://www.ruby-forum.com/t/memory-leak-in-rails-apps/197327 "2010-05-15T00:25:49Z")

</div>

We have developed rails reports and deployed in server, report have some hierarchy levels… Initially we have less volume of data in database table and report is running with fine performance… after few months,reports…

---

## [How to check the file is available or not](https://www.ruby-forum.com/t/how-to-check-the-file-is-available-or-not/188581)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 3\
**Last updated:** [May 15, 2010, 12:09am UTC](https://www.ruby-forum.com/t/how-to-check-the-file-is-available-or-not/188581 "2010-05-15T00:09:12Z")

</div>

How to check the file is available or not. write this simple code for checking the file. but if file not found they print the first condition. if(contents = File.read(“c:/test/test.txt”)) log.debug “Text File Availab…

---

## [ANN: guirb 0.01, a multi-toolkit Irb wrapper collection](https://www.ruby-forum.com/t/ann-guirb-0-01-a-multi-toolkit-irb-wrapper-collection/188629)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 12:03am UTC](https://www.ruby-forum.com/t/ann-guirb-0-01-a-multi-toolkit-irb-wrapper-collection/188629 "2010-05-15T00:03:35Z")

</div>

Questions I’ll save you the trouble of Asking Frequently: What? guirb is a collection of graphical frontends for irb, spun off from my old fxirb project. It’s been reworked to have a gui-independent layer, which Tex…

---

## [Ruby Midwest Early Bird Ends Tomorrow](https://www.ruby-forum.com/t/ruby-midwest-early-bird-ends-tomorrow/188625)

<div class="topic-metadata">

**Author:** [@kule](https://www.ruby-forum.com/u/kule)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 11:46pm UTC](https://www.ruby-forum.com/t/ruby-midwest-early-bird-ends-tomorrow/188625 "2010-05-14T23:46:01Z")

</div>

The Ruby Midwest Conference Early Bird pricing ends tomorrow, Saturday, May 15. Don’t miss out on two full days of great talks, networking, and hacking for only $75! Attendees are also invited to the OMGWTFBBQ (htt…

---

## [java.lang.ClassCastException with become\_java!](https://www.ruby-forum.com/t/java-lang-classcastexception-with-become-java/188621)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/java-lang-classcastexception-with-become-java/188621 "2010-05-14T21:37:41Z")

</div>

The example code executed in JRuby 1.5 gives ConcreteJavaProxy.java:84:in needsCreate': java.lang.ClassCastException: ruby.Muh.Test cannot be cast to org.jruby.java.proxies.JavaProxy from ConcreteJavaProxy.java:133:inca…

---

## [Command Line Arguments problem](https://www.ruby-forum.com/t/command-line-arguments-problem/188498)

<div class="topic-metadata">

**Author:** [@dlucci](https://www.ruby-forum.com/u/dlucci)\
**Replies:** 5\
**Last updated:** [May 14, 2010, 8:48pm UTC](https://www.ruby-forum.com/t/command-line-arguments-problem/188498 "2010-05-14T20:48:23Z")

</div>

Greetings, I am working on a project and I added command line options. Today, I took the fateful step in adding the capability to do multiple options in the program. For some reason, the code, which worked perfectly…

---

## [Comparing elements within an array](https://www.ruby-forum.com/t/comparing-elements-within-an-array/188588)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 5\
**Last updated:** [May 14, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/comparing-elements-within-an-array/188588 "2010-05-14T18:14:20Z")

</div>

I’m familiar with the enumberable sort method … my\_array.sort { |a,b| a.property \<=\> b.property } and I’m familiar with reject and delete\_if methods … my\_array.delete\_if { |a| } but can someone advise me on a simple…

---

## [jruby/jndi/ConnectionFactoryAdapter - and casting](https://www.ruby-forum.com/t/jruby-jndi-connectionfactoryadapter-and-casting/188207)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 25\
**Last updated:** [May 14, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/jruby-jndi-connectionfactoryadapter-and-casting/188207 "2010-05-14T18:07:24Z")

</div>

Hello - I have an interesting situation where I am taking a current script (poller) and making to work via OpenMQ/jndi/glassfish - but being that there is no casting it seems in j/ruby - I am curious on how to make t…

---

## [LIFE INSURANCE Life insurance business is analyzed under new business individual insurance, rural](https://www.ruby-forum.com/t/life-insurance-life-insurance-business-is-analyzed-under-new-business-individual-insurance-rural/188585)

<div class="topic-metadata">

**Author:** [@R.Devaki\_R.Devi](https://www.ruby-forum.com/u/R.Devaki_R.Devi)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/life-insurance-life-insurance-business-is-analyzed-under-new-business-individual-insurance-rural/188585 "2010-05-14T12:26:00Z")

</div>

LIFE INSURANCE Life insurance business is analyzed under new business individual insurance, rural new business, development of new products, new business projects under group insurance, new business projects under gr…

---

## [Putting value in sorted array](https://www.ruby-forum.com/t/putting-value-in-sorted-array/122521)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 7\
**Last updated:** [May 14, 2010, 11:23am UTC](https://www.ruby-forum.com/t/putting-value-in-sorted-array/122521 "2010-05-14T11:23:21Z")

</div>

I have an array that’s sorted from highest value to lowest. I also want to insert a value in sort order, but only if the value doesn’t exist already. I ended up with a solution (writing from memory here, it was on ano…

---

## [\[ANN\] Native mac installer for JRuby 1.5.0](https://www.ruby-forum.com/t/ann-native-mac-installer-for-jruby-1-5-0/188550)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 7\
**Last updated:** [May 14, 2010, 11:10am UTC](https://www.ruby-forum.com/t/ann-native-mac-installer-for-jruby-1-5-0/188550 "2010-05-14T11:10:29Z")

</div>

Hi, I just released a version of the JRuby mac installer updated to JRuby 1.5.0, you can grab it from here: http://github.com/calavera/jruby-mac-installer/downloads Please, give it a try!! Cheers

---

## [Ways to compare the performance of different Ruby implementations](https://www.ruby-forum.com/t/ways-to-compare-the-performance-of-different-ruby-implementations/188383)

<div class="topic-metadata">

**Author:** [@Carter\_C](https://www.ruby-forum.com/u/Carter_C)\
**Replies:** 7\
**Last updated:** [May 14, 2010, 10:00am UTC](https://www.ruby-forum.com/t/ways-to-compare-the-performance-of-different-ruby-implementations/188383 "2010-05-14T10:00:15Z")

</div>

Greetings, I have recently become interested in Ruby and I was curious what the correct approach was in measuring the performance of the various VM against one another. I.e. YARV, JRuby, MRI etc. What kind of applica…

---

## [$B@55,I=8=%\*%V%8%'%/%HCf$N%-%c%W%A%c$N?t(B](https://www.ruby-forum.com/t/b-55-i-8-v-8-hcf-n-c-w-a-c-n-t-b/188244)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 7\
**Last updated:** [May 14, 2010, 9:40am UTC](https://www.ruby-forum.com/t/b-55-i-8-v-8-hcf-n-c-w-a-c-n-t-b/188244 "2010-05-14T09:40:21Z")

</div>

e$B$-$7$b$H$G$9e(B e$B@55,I=8=%\*%V%8%’%/%H$+$i%-%c%W%A%c$N?t$rJV$9%a%=%C%I$,M\_$7$$$G$9!#e(B e$B!J54\<V$K$Oe(B onig\_number\_of\_captures e$B$H$$$&4X?t$G$=$&$$$&e(B API e$B$,$"$j$^$9!Ke(B static VALUE numcaptures(VALUE r…

---

## [Hmm. JRuby -S rake jamming](https://www.ruby-forum.com/t/hmm-jruby-s-rake-jamming/188532)

<div class="topic-metadata">

**Author:** [@Kimberley\_Scott](https://www.ruby-forum.com/u/Kimberley_Scott)\
**Replies:** 7\
**Last updated:** [May 14, 2010, 8:16am UTC](https://www.ruby-forum.com/t/hmm-jruby-s-rake-jamming/188532 "2010-05-14T08:16:39Z")

</div>

Ok. I have a rake task that does a lot of file and numeric calculations. (A lot == Tb’s) I’ve tried numerous command line options such as: jruby -J-Xmn512m -J-Xms2048m -J-Xmx2048m -J-server -S rake --trace \[namespac…

---

## [Require jdbc\_adapter is very slow](https://www.ruby-forum.com/t/require-jdbc-adapter-is-very-slow/188553)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 4\
**Last updated:** [May 14, 2010, 7:49am UTC](https://www.ruby-forum.com/t/require-jdbc-adapter-is-very-slow/188553 "2010-05-14T07:49:41Z")

</div>

require 'rubygems 'require ‘jdbc\_adapter’ The above script needs 6 seconds to finish … Is this expected ? Regards Roger To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [Ease of porting (translating) ruby to C (vs. python)?](https://www.ruby-forum.com/t/ease-of-porting-translating-ruby-to-c-vs-python/188209)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 16\
**Last updated:** [May 14, 2010, 7:04am UTC](https://www.ruby-forum.com/t/ease-of-porting-translating-ruby-to-c-vs-python/188209 "2010-05-14T07:04:01Z")

</div>

In a very small bioinformatics group I know of, they are deciding whether to code mostly in python or ruby. The lead knows that python can “easily be ported to C because of its strictness.” How easy is it to port (tr…

---

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

<div class="topic-metadata">

**Author:** [@al\_S](https://www.ruby-forum.com/u/al_S)\
**Replies:** 1\
**Last updated:** [May 14, 2010, 4:53am UTC](https://www.ruby-forum.com/t/net-ssh/188544 "2010-05-14T04:53:30Z")

</div>

Hi List, I’ve a big problema using the last version net-ssh on my Ubuntu (i386) system. My goal is execute a command on a remote system. I tried many things including the manual examples: using exec require ‘net/s…

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

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