# Ruby

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

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

---

## [New build errors on Mono](https://www.ruby-forum.com/t/new-build-errors-on-mono/148629)

<div class="topic-metadata">

**Author:** [@C.JSAdams-Collier](https://www.ruby-forum.com/u/C.JSAdams-Collier)\
**Replies:** 4\
**Last updated:** [September 15, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/new-build-errors-on-mono/148629 "2008-09-15T19:00:20Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Need someone who can help](https://www.ruby-forum.com/t/need-someone-who-can-help/148603)

<div class="topic-metadata">

**Author:** [@baiki](https://www.ruby-forum.com/u/baiki)\
**Replies:** 10\
**Last updated:** [September 15, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/need-someone-who-can-help/148603 "2008-09-15T18:47:21Z")

</div>

Hello Please, can someone help me with this problem. I am really stuck. Can’t find my problem. Simple code snippet is not working at all. I totally desperate. Look at this: --------------------start #!/usr/bin/env …

---

## [Shell script](https://www.ruby-forum.com/t/shell-script/148616)

<div class="topic-metadata">

**Author:** [@Vandana](https://www.ruby-forum.com/u/Vandana)\
**Replies:** 4\
**Last updated:** [September 15, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/shell-script/148616 "2008-09-15T18:41:32Z")

</div>

Hi All, I have a shell script which I use to call a ruby program. I pass parameters from the shell script to the ruby program Example: #!/bin/csh -f set DEST\_DIR=/home/vandana/ ruby test.rb -p $DEST\_DIR When I ex…

---

## [How to control thread number](https://www.ruby-forum.com/t/how-to-control-thread-number/148602)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [September 15, 2008, 5:56pm UTC](https://www.ruby-forum.com/t/how-to-control-thread-number/148602 "2008-09-15T17:56:14Z")

</div>

Hi all, I copy the following script from Ruby programming language(bundling with Ruby). If the size for pages (array size) is small,thread works very well. If the array size is big (such 2000) the thread doesn’t work …

---

## [How do deal with huge numbers and keep them accurate?](https://www.ruby-forum.com/t/how-do-deal-with-huge-numbers-and-keep-them-accurate/148536)

<div class="topic-metadata">

**Author:** [@tomi-zeev](https://www.ruby-forum.com/u/tomi-zeev)\
**Replies:** 9\
**Last updated:** [September 15, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/how-do-deal-with-huge-numbers-and-keep-them-accurate/148536 "2008-09-15T17:42:04Z")

</div>

Hello all, I wrote the following code: require “bigdecimal” require “bigdecimal/math” include BigMath odd = gets.chomp.to\_f result = odd/3.0 puts result.to\_f blank = gets.chomp the code works just fine when the i…

---

## [Does Ruby/GD2 work on ruby-mswin32?](https://www.ruby-forum.com/t/does-ruby-gd2-work-on-ruby-mswin32/148617)

<div class="topic-metadata">

**Author:** [@yahata\_hisashi](https://www.ruby-forum.com/u/yahata_hisashi)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/does-ruby-gd2-work-on-ruby-mswin32/148617 "2008-09-15T16:48:19Z")

</div>

Hello, everybody. I am using Windows 2000, and ruby 1.8.4 (2005-12-24) \[i386-mswin32\] on RDE. When I used GD with Perl, it was very easy to install and there was somegood textbooks how to do. Owing to GD, I could m…

---

## [Webrick proxy server and streaming](https://www.ruby-forum.com/t/webrick-proxy-server-and-streaming/148614)

<div class="topic-metadata">

**Author:** [@samba](https://www.ruby-forum.com/u/samba)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/webrick-proxy-server-and-streaming/148614 "2008-09-15T16:47:08Z")

</div>

Hi, I ran webrick proxy server snippet found on webrick.org site. It was working fine except with streaming or large files. Rather than handing over data to browser as it gets it downloading entire file and then flus…

---

## [Remove Encoding#base\_encoding](https://www.ruby-forum.com/t/remove-encoding-base-encoding/148337)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/remove-encoding-base-encoding/148337 "2008-09-15T16:44:10Z")

</div>

e$B@.@%$G$9!#e(B Encoding#base\_encoding e$B$G$9$,!"$3$l:o=|$7$^$;$s$+!#e(B e$B8=\>u$Oe(B replica e$B85$r\<($9$H$$$&$-$o$a$F\<BAu$K6a$$\>pJs$7$+J\];}$7$^$;$s!#e(B e$B$b$H$b$H$NM}A\[$N0l$D$Oe(B Windows-31J e$B$NJ8;zNs$re(B S…

---

## [Spawner 1.0.0](https://www.ruby-forum.com/t/spawner-1-0-0/148607)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/spawner-1-0-0/148607 "2008-09-15T15:58:05Z")

</div>

spawner version 1.0.0 by Tim P. http://codeforpeople.rubyforge.org/spawner == DESCRIPTION Spawn multiple child processes from Ruby and re-spawn those processes if they die. Spawner works on Mac OS X, Linux, Windows…

---

## [\[Bug:1.8\] superclass of singleton class in 1.8](https://www.ruby-forum.com/t/bug-1-8-superclass-of-singleton-class-in-1-8/148601)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/bug-1-8-superclass-of-singleton-class-in-1-8/148601 "2008-09-15T15:03:53Z")

</div>

e$B1sF#$G$9!#e(B http://d.hatena.ne.jp/sumim/20080913/p1 e$B$N:G8e$G;XE&$5$l$F$$$k$3$H$G$9$,!"e(B1.8 e$B$N7Q\>54X78$,$\*$+$7$$$He(B e$B;W$$$^$9!#e(B Kernel e$B$Oe(B Module e$B$N%$%s%9%?%s%9$J$N$G!“e(BKernel e$B$NFC0\[%…

---

## [A menubar for Shoes?](https://www.ruby-forum.com/t/a-menubar-for-shoes/148301)

<div class="topic-metadata">

**Author:** [@f2andy](https://www.ruby-forum.com/u/f2andy)\
**Replies:** 9\
**Last updated:** [September 15, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/a-menubar-for-shoes/148301 "2008-09-15T14:32:49Z")

</div>

I have just recently tarted to look at Shoes, after a quick dabble with Tk and Fox, and I really like its elegant style. However, there seems to be no menu widgets, either built-in or indeed anywhere on the web that I …

---

## [Difference between 2 dates](https://www.ruby-forum.com/t/difference-between-2-dates/148598)

<div class="topic-metadata">

**Author:** [@srinu](https://www.ruby-forum.com/u/srinu)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/difference-between-2-dates/148598 "2008-09-15T14:31:36Z")

</div>

Hi all, duration\_val= Time.now.strftime("%Y-%m-%d %H:%M:%S")-start\_time\_Val Start\_time\_val formate is also same formate ("%Y-%m-%d %H:%M:%S"). I could not able to subtract 2 datetimes . Please suggest me . I am gett…

---

## [Redefe each to include each\_with\_index and arity=2](https://www.ruby-forum.com/t/redefe-each-to-include-each-with-index-and-arity-2/148237)

<div class="topic-metadata">

**Author:** [@dandiebolt](https://www.ruby-forum.com/u/dandiebolt)\
**Replies:** 8\
**Last updated:** [September 15, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/redefe-each-to-include-each-with-index-and-arity-2/148237 "2008-09-15T14:25:08Z")

</div>

Is is possible to redefine each so that each\_with\_index behavior can be acheived with an extra parameter to the block each is called with? In other words, how do you redefine each so that instead of using this constru…

---

## [How to convert the charset of texts in a Execl which has multi-language text and charset?](https://www.ruby-forum.com/t/how-to-convert-the-charset-of-texts-in-a-execl-which-has-multi-language-text-and-charset/148589)

<div class="topic-metadata">

**Author:** [@Wu\_Nan](https://www.ruby-forum.com/u/Wu_Nan)\
**Replies:** 4\
**Last updated:** [September 15, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/how-to-convert-the-charset-of-texts-in-a-execl-which-has-multi-language-text-and-charset/148589 "2008-09-15T13:52:09Z")

</div>

Hello all, I want to use Ruby to read a excel file’s content and convert them in to UTF-8. However, in that file there are many different language texts, such as Greek, Japanese, Korea, Russia and so on. So I use Ic…

---

## [BlitzMax and Ruby](https://www.ruby-forum.com/t/blitzmax-and-ruby/148494)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 2\
**Last updated:** [September 15, 2008, 1:40pm UTC](https://www.ruby-forum.com/t/blitzmax-and-ruby/148494 "2008-09-15T13:40:25Z")

</div>

Hi, I’m new to Ruby but would like to use Ruby as a scripting language within a BlitzMax game engine. BlitzMax supports multiple platforms (Win, Mac & Linux) and can import C/C++ code. However, it uses MinGW to com…

---

## [Define and call methods in ruby](https://www.ruby-forum.com/t/define-and-call-methods-in-ruby/148297)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 11\
**Last updated:** [September 15, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/define-and-call-methods-in-ruby/148297 "2008-09-15T12:56:09Z")

</div>

Hi, I just simply can’t figure out how I can define methods and call it in a class. I’ve tried(as I read so) the following: class Myclass … method\_to\_call … def method\_to\_call … end end but just doesn’t work. S…

---

## [1.1.4 \> buildproblems with jar-complete](https://www.ruby-forum.com/t/1-1-4-buildproblems-with-jar-complete/147703)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 2\
**Last updated:** [September 15, 2008, 9:43am UTC](https://www.ruby-forum.com/t/1-1-4-buildproblems-with-jar-complete/147703 "2008-09-15T09:43:39Z")

</div>

Hi, just downloaed the new release jruby 1.1.4 -src I need to build the jruby-complete.jar, but after ant jar-complete i always run in = jar-complete: \[mkdir\] Created dir: c:\\jruby-1.1.4\\build\\jar-complete\\META-INF…

---

## [I thought ruby didn't optimize tailcalls?](https://www.ruby-forum.com/t/i-thought-ruby-didnt-optimize-tailcalls/148511)

<div class="topic-metadata">

**Author:** [@cnb](https://www.ruby-forum.com/u/cnb)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 9:34am UTC](https://www.ruby-forum.com/t/i-thought-ruby-didnt-optimize-tailcalls/148511 "2008-09-15T09:34:07Z")

</div>

Im using ruby 1.8.6 mri. and it seems to optimize tailcalls which I have been told it doesn’t. what else could be going on here? ################### def factail(n, acc=1) if n \> 0 then factail(n-1, n\*acc) else acc e…

---

## [Amalgalite 0.4.0 Released](https://www.ruby-forum.com/t/amalgalite-0-4-0-released/148573)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 8:42am UTC](https://www.ruby-forum.com/t/amalgalite-0-4-0-released/148573 "2008-09-15T08:42:03Z")

</div>

amalgalite version 0.4.0 has been released. gem install amalgalite http://copiousfreetime.rubyforge.org/amalgalite/ Amalgalite embeds the SQLite database engine in a ruby extension. There is no need to install SQLi…

---

## [Libxml on Jruby](https://www.ruby-forum.com/t/libxml-on-jruby/148490)

<div class="topic-metadata">

**Author:** [@mikael1991](https://www.ruby-forum.com/u/mikael1991)\
**Replies:** 6\
**Last updated:** [September 15, 2008, 8:33am UTC](https://www.ruby-forum.com/t/libxml-on-jruby/148490 "2008-09-15T08:33:51Z")

</div>

Hi I’m currently doing mostly my ruby work on jruby and really enjoying it, it makes deploying to app servers so easy :). However being that there is so few good xml libraries on ruby i’ve to use MRI to be able to ac…

---

## [Hash.c (rb\_any\_cmp)](https://www.ruby-forum.com/t/hash-c-rb-any-cmp/148529)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 7:27am UTC](https://www.ruby-forum.com/t/hash-c-rb-any-cmp/148529 "2008-09-15T07:27:07Z")

</div>

args e$B$H$$$&JQ?t!"\>C$7K:$l$h$&$K$b8+$($^$9$,!"$I$&$G$7$g$&!#e(B Index: hash.c — hash.c (revision 19342) +++ hash.c (working copy) @@ -39,8 +39,6 @@ static int rb\_any\_cmp(VALUE a, VALUE b) { VALUE args\[2\]; …

---

## [Hitimes 0.2.0 Released](https://www.ruby-forum.com/t/hitimes-0-2-0-released/148569)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 5:36am UTC](https://www.ruby-forum.com/t/hitimes-0-2-0-released/148569 "2008-09-15T05:36:00Z")

</div>

hitimes version 0.2.0 has been released. http://copiousfreetime.rubyforge.org/hitimes/ Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate C method calls for ea…

---

## [Hash-equality of Vectors and Matrices](https://www.ruby-forum.com/t/hash-equality-of-vectors-and-matrices/148565)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 5:19am UTC](https://www.ruby-forum.com/t/hash-equality-of-vectors-and-matrices/148565 "2008-09-15T05:19:04Z")

</div>

Yuguiã§ã™ã€‚ \[ruby-dev:36294\]ã«çµ¡ã‚“ã§ã€Vectorã¨Matrixã®ä»•æ§˜ã«ç–‘å•ãŒæ¹§ãã¾ã—ãŸã®ã§ç¢ºèª ã•ã›ã¦ãã ã•ã„ã€‚ ç¾çŠ¶ã¾ã§Matrix#eql? ã¨ Vector#eql? ã¯ãã‚Œãžã‚Œ == ã®ã‚¨ã‚¤ãƒªã‚¢ã‚¹ã§ã…

---

## [Specific gem situation](https://www.ruby-forum.com/t/specific-gem-situation/148564)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 3:56am UTC](https://www.ruby-forum.com/t/specific-gem-situation/148564 "2008-09-15T03:56:03Z")

</div>

I’m missing something (wouldn’t be the first time). Xubuntu, fresh build and install of Ruby 1.8.7 (no apt-get install here), but continually get zlib errors when trying to build rubygems. Now, I know this isn’t a Rub…

---

## [Passing a method call into a method](https://www.ruby-forum.com/t/passing-a-method-call-into-a-method/148540)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 3\
**Last updated:** [September 15, 2008, 2:11am UTC](https://www.ruby-forum.com/t/passing-a-method-call-into-a-method/148540 "2008-09-15T02:11:24Z")

</div>

Hi, I am trying to figure out how to pass a method call into a method. I wrote a generic method that call be called on an array of numbers, and returns an array of the index values in the receiver that meet a specifi…

---

## [Cgi/session , deleting old sessions](https://www.ruby-forum.com/t/cgi-session-deleting-old-sessions/148561)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 1:59am UTC](https://www.ruby-forum.com/t/cgi-session-deleting-old-sessions/148561 "2008-09-15T01:59:12Z")

</div>

Hi, I am wondering how I would go about deleting files created by CGI::Session, there is a huge build up of files in /tmp(everytime a new session is initiated a new one is created) and I can’t think of anyway (beside…

---

## [Libsvm and Ruby](https://www.ruby-forum.com/t/libsvm-and-ruby/148558)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 0\
**Last updated:** [September 14, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/libsvm-and-ruby/148558 "2008-09-14T23:43:55Z")

</div>

Dear all, I am trying to install the Ruby bindings for libsvm from source, but libsvm-ruby can’t find the libsvm header files. How can I specify where they are ? Thank you very much. Best regards, Axel

---

## [Insert into textfile](https://www.ruby-forum.com/t/insert-into-textfile/148526)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 2\
**Last updated:** [September 14, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/insert-into-textfile/148526 "2008-09-14T23:15:43Z")

</div>

I have a text file that I want to insert a new line into between the first and second line. Is there a way to do this?

---

## [User group links on ruby-lang.org](https://www.ruby-forum.com/t/user-group-links-on-ruby-lang-org/148541)

<div class="topic-metadata">

**Author:** [@Cameron\_McBride](https://www.ruby-forum.com/u/Cameron_McBride)\
**Replies:** 1\
**Last updated:** [September 14, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/user-group-links-on-ruby-lang-org/148541 "2008-09-14T21:48:14Z")

</div>

Hello All, Is there a reason two out of the three “user group” links are non-working on: User Groups rubygarden.org: down due to spam? rubyholic,com: rails error Can these be updated, fixed or removed? Cameron

---

## [Mechanize for Ruby on Linux not working](https://www.ruby-forum.com/t/mechanize-for-ruby-on-linux-not-working/148479)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 3\
**Last updated:** [September 14, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/mechanize-for-ruby-on-linux-not-working/148479 "2008-09-14T21:25:19Z")

</div>

The administrator for a server I’m using tried installing Mechanize for Ruby using the gem installer. Gem claims that the installation worked except that programs trying to use it disagree. Programs trying to use Me…

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

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