# Ruby

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

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

---

## [Function to Display Ruby Memory Usage](https://www.ruby-forum.com/t/function-to-display-ruby-memory-usage/125205)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/function-to-display-ruby-memory-usage/125205 "2008-01-07T15:58:56Z")

</div>

In Business Basic there is a function, DSZ, that shows the current amount of memory used by the program code and data. This was obviously more useful in the past where each user might have only 16 KB of memory availa…

---

## [Ripper cannot build on win32](https://www.ruby-forum.com/t/ripper-cannot-build-on-win32/125165)

<div class="topic-metadata">

**Author:** [@yukimi\_sake](https://www.ruby-forum.com/u/yukimi_sake)\
**Replies:** 5\
**Last updated:** [January 7, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/ripper-cannot-build-on-win32/125165 "2008-01-07T15:35:19Z")

</div>

e$B@c8+\<r$G$9!#e(B 1e$B7ne(B5e$BF|0J9\_e(Brippere$B$,e(Bmswin(W2K+VC8EE)e$B$Ge(B …/…/…/ruby/ext/ripper/tools/preproc.rb:44:in ===': broken Windows-31J string (ArgumentError) from ../../../ruby/ext/ripper/tools/preproc.r…

---

## [Resolv::DNS#getaddresses doesn't return IPv6 address](https://www.ruby-forum.com/t/resolv-dns-getaddresses-doesnt-return-ipv6-address/124382)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 16\
**Last updated:** [January 7, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/resolv-dns-getaddresses-doesnt-return-ipv6-address/124382 "2008-01-07T14:52:25Z")

</div>

e$B@.@%$G$9!#e(B Resolv::DNS#getaddresses e$BEy$,e(B IPv6 e$B%"%I%l%9$rJV$7$^$;$s!#e(B e$B$?$H$($P!“e(Bwww.jprs.jp e$B$K$Oe(B AAAA e$B%l%3!\<%I$,@\_Dj$7$F$”$k$N$G$9$,!“e(BIPv4e$B%”%Ie(B e$B%l%9$7$+JV$C$F$-$^$;$s!#e(B %…

---

## [Replica $B$H(B alias $B$N0c$$(B(encoding)](https://www.ruby-forum.com/t/replica-b-h-b-alias-b-n0c-b-encoding/125222)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 8\
**Last updated:** [January 7, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/replica-b-h-b-alias-b-n0c-b-encoding/125222 "2008-01-07T14:29:19Z")

</div>

e$BLZB\<$G$9!#e(B Windowse$BHG$Ne(BRuby1.9e$B$G$N%G%U%)%k%H%(%s%3!\<%G%#%s%0$N$H$-$K$A$g$C$HL\>A0$,e(B e$B$G$F$$$F5$$K$J$C$F$$$?$N$G$9$,!"%l%W%j%+e(B(replica) e$B$He(B e$B%(%$%j%"%9e(B (alias) e$B$N0c$$$C$F$J$s$G$7$g$&$…

---

## [\[ANN\] Ruby In Steel Text Edition](https://www.ruby-forum.com/t/ann-ruby-in-steel-text-edition/125247)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/ann-ruby-in-steel-text-edition/125247 "2008-01-07T14:19:02Z")

</div>

SapphireSteel Software has just launched a new version of Ruby In Steel (The Text Edition) complete with a copy of Visual Studio 2008 for an all-in price of $49. It has Ruby and RHTML/ERb editing and debugging and is …

---

## [2nd Cape Town Ruby Brigade Meeting](https://www.ruby-forum.com/t/2nd-cape-town-ruby-brigade-meeting/125243)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/2nd-cape-town-ruby-brigade-meeting/125243 "2008-01-07T14:16:19Z")

</div>

The 2nd meeting of the Cape Town Ruby Brigade will take place at: Venue: Bandwidth Barn Conference Room, 125 Buitengracht Street, Cape Town Date: Wednesday 9th January 2007 Time: 19:00 - 21:00 We have two confirmed …

---

## [SEGV by Symbol#match](https://www.ruby-forum.com/t/segv-by-symbol-match/125234)

<div class="topic-metadata">

**Author:** [@iwadon](https://www.ruby-forum.com/u/iwadon)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 11:13am UTC](https://www.ruby-forum.com/t/segv-by-symbol-match/125234 "2008-01-07T11:13:49Z")

</div>

e$B4d7n$H?=$7$^$9!#e(B Ruby 1.9e$B$Ge(BSymbol#matche$B$r;H$&$He(BSEGVe$B$,H/@8$7$^$7$?!#e(B % gdb --args ruby -ve “:a.match(/a/)” GNU gdb 6.1.1 \[FreeBSD\] Copyright 2004 Free Software Foundation, Inc. GDB is free sof…

---

## [Up-to-date hosting sample?](https://www.ruby-forum.com/t/up-to-date-hosting-sample/125143)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 10:29am UTC](https://www.ruby-forum.com/t/up-to-date-hosting-sample/125143 "2008-01-07T10:29:55Z")

</div>

Hi! I’m preparing an IronRuby article for a french newspaper, and would like to demonstrate the hosting features (possibly to show how to build a small dsl to script a C# application for instance). I’m sitting on SVN…

---

## [Problem with encoding latin1/UTF8](https://www.ruby-forum.com/t/problem-with-encoding-latin1-utf8/124464)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 9:39am UTC](https://www.ruby-forum.com/t/problem-with-encoding-latin1-utf8/124464 "2008-01-07T09:39:05Z")

</div>

I have a database with latin1\_swedish\_ci encoding. In my database.yml file there is: development: adapter: mysql encoding: latin1 When I import data to the database it will store it correctly, but when IÂ´m reading…

---

## [Programmatically creating a local variable using a symol](https://www.ruby-forum.com/t/programmatically-creating-a-local-variable-using-a-symol/125164)

<div class="topic-metadata">

**Author:** [@tho\_mica\_l](https://www.ruby-forum.com/u/tho_mica_l)\
**Replies:** 7\
**Last updated:** [January 7, 2008, 9:17am UTC](https://www.ruby-forum.com/t/programmatically-creating-a-local-variable-using-a-symol/125164 "2008-01-07T09:17:54Z")

</div>

Hi, Where are variables actually stored? Or rather: how do I create a new variable without using eval? I’d like to write something like this. bind :a, 1 p a =\> 1 How could I accompish this? How could a definition of…

---

## [How to keep and access the video files outside public folder](https://www.ruby-forum.com/t/how-to-keep-and-access-the-video-files-outside-public-folder/125223)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 8:05am UTC](https://www.ruby-forum.com/t/how-to-keep-and-access-the-video-files-outside-public-folder/125223 "2008-01-07T08:05:58Z")

</div>

HI all, Grettings, I m using flashplayer helper for playing the videos, but i m getting an error if i tried to fetched them from out side the public/swf folder. The default path is public/swf… i have tried to change …

---

## [Best Ruby book for experienced programmer](https://www.ruby-forum.com/t/best-ruby-book-for-experienced-programmer/125070)

<div class="topic-metadata">

**Author:** [@kamilski81](https://www.ruby-forum.com/u/kamilski81)\
**Replies:** 20\
**Last updated:** [January 7, 2008, 7:42am UTC](https://www.ruby-forum.com/t/best-ruby-book-for-experienced-programmer/125070 "2008-01-07T07:42:52Z")

</div>

Hello, I have about 5 years of work experience in programming websites, and would like to learn Ruby. I would like to learn Ruby first, and then will eventually go on to learning Rails. Which book would you recommend…

---

## [Halcyon 0.3.22](https://www.ruby-forum.com/t/halcyon-0-3-22/125224)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 7:22am UTC](https://www.ruby-forum.com/t/halcyon-0-3-22/125224 "2008-01-07T07:22:44Z")

</div>

= Halcyon == JSON Server App Framework Halcyon is a JSON Web App Server Framework built on Rack for speed and light weight. For more information, check out our website at http://halcyon.rubyforge.org/ or go straight…

---

## [Sound Library?](https://www.ruby-forum.com/t/sound-library/125202)

<div class="topic-metadata">

**Author:** [@shea](https://www.ruby-forum.com/u/shea)\
**Replies:** 8\
**Last updated:** [January 7, 2008, 7:06am UTC](https://www.ruby-forum.com/t/sound-library/125202 "2008-01-07T07:06:20Z")

</div>

I’m fairly new to Ruby and programming in general. I wanted to make a program using the BlinkenLights library(which I already have and know how to use) that would make the LEDs pulsate to the bass of the music. I alre…

---

## [ShortURL 0.8.4 released](https://www.ruby-forum.com/t/shorturl-0-8-4-released/125219)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 6:09am UTC](https://www.ruby-forum.com/t/shorturl-0-8-4-released/125219 "2008-01-07T06:09:39Z")

</div>

Hello all! Vincent F. was kind enough to let me start maintaining the ShortURL gem, which means that I was able to fix the support for RubyURL today and release a new gem. $ gem install shorturl This will give you t…

---

## [Re: Studying Blackjack (#151)](https://www.ruby-forum.com/t/re-studying-blackjack-151/125214)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 4:41am UTC](https://www.ruby-forum.com/t/re-studying-blackjack-151/125214 "2008-01-07T04:41:26Z")

</div>

My solution works by expanding a nested “probability hash.” Each card is a key in this probability hash which contains another probability hash equivalent to what would happen if the dealer were to next gain that card…

---

## [Ci\_reporter xsl](https://www.ruby-forum.com/t/ci-reporter-xsl/125189)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 4:22am UTC](https://www.ruby-forum.com/t/ci-reporter-xsl/125189 "2008-01-07T04:22:40Z")

</div>

Hi, Could anyone provide any xsl for ci\_reporter xml please? Aidy

---

## [Time.gm(1969) chokes on Windows](https://www.ruby-forum.com/t/time-gm-1969-chokes-on-windows/124917)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 17\
**Last updated:** [January 7, 2008, 3:06am UTC](https://www.ruby-forum.com/t/time-gm-1969-chokes-on-windows/124917 "2008-01-07T03:06:13Z")

</div>

I was trying to sort out a YAML parsing issue on Windows XP SP 2 and traced it to Time.gm failing on pre-1970 dates … this works fine on both Ubuntu Linux and my Mac… Any ideas or workarounds? Thanks! Tim

---

## [Links Failing](https://www.ruby-forum.com/t/links-failing/125207)

<div class="topic-metadata">

**Author:** [@harpoon45](https://www.ruby-forum.com/u/harpoon45)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 3:00am UTC](https://www.ruby-forum.com/t/links-failing/125207 "2008-01-07T03:00:18Z")

</div>

In my index.html.erb file; I have the following 4 lines: "\>\<%= @story.name %\> "\>\<%= @story1.name %\> \<%= link\_to @story.name, @story.link %\> \<%= link\_to @story1.name, @story1.link %\> The first two lines have the in…

---

## [Using HPricot to parse a fiddly table](https://www.ruby-forum.com/t/using-hpricot-to-parse-a-fiddly-table/125185)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 1:49am UTC](https://www.ruby-forum.com/t/using-hpricot-to-parse-a-fiddly-table/125185 "2008-01-07T01:49:29Z")

</div>

Hi there, I’m fairly new to Ruby, previously I was an average programmer in Java, so it’s all a bit foreign to me - especially XPath and cSS. I would be grateful if someone could give me a hand with a problem I’m havi…

---

## [Cannot execute ruby files without wrapper in a cron](https://www.ruby-forum.com/t/cannot-execute-ruby-files-without-wrapper-in-a-cron/125196)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 1:00am UTC](https://www.ruby-forum.com/t/cannot-execute-ruby-files-without-wrapper-in-a-cron/125196 "2008-01-07T01:00:52Z")

</div>

whenever i try to execute a ruby file thro cron, i have to write a crapper to cd the folder of the ruby file and then execute it. it is such a hassle. what are the alternatives so that i dont have to write a wrapper. …

---

## [Intercepting events with wxRuby/wxWidgets](https://www.ruby-forum.com/t/intercepting-events-with-wxruby-wxwidgets/125181)

<div class="topic-metadata">

**Author:** [@rainer](https://www.ruby-forum.com/u/rainer)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/intercepting-events-with-wxruby-wxwidgets/125181 "2008-01-06T23:15:36Z")

</div>

Hello everybody, I have a question concerning wxRuby/wxWidgets. I’m getting my feet wet with a simple application that holds one Wx::Frame called VwX. When my application gets closed, I want the user to decide whether…

---

## [DBI doesn't seem to install correctly on CentOS](https://www.ruby-forum.com/t/dbi-doesnt-seem-to-install-correctly-on-centos/125051)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 13\
**Last updated:** [January 6, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/dbi-doesnt-seem-to-install-correctly-on-centos/125051 "2008-01-06T22:09:28Z")

</div>

I tried installing with the old tarfile sequence using setup.rb, as I couldn’t get gems to work and there is apparently no yum install on CentOS. When I went through the sequence found on http://www.kitebird.com/arti…

---

## [Ruby Mentor project](https://www.ruby-forum.com/t/ruby-mentor-project/125161)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/ruby-mentor-project/125161 "2008-01-06T22:05:58Z")

</div>

Hello all, I’ve been listed on the ruby mentors wiki \[1\] for some time now, and have successfully mentored several people, including a person from NASA. Whilst that’s all well and good, and I plan to publish some of …

---

## [Need some help building IronRuby](https://www.ruby-forum.com/t/need-some-help-building-ironruby/125183)

<div class="topic-metadata">

**Author:** [@CSKSPonnappa](https://www.ruby-forum.com/u/CSKSPonnappa)\
**Replies:** 0\
**Last updated:** [January 6, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/need-some-help-building-ironruby/125183 "2008-01-06T19:53:51Z")

</div>

Hi everyone, I’ve just checked out revision 68 and everything compiles in VS. However, when running rake, I get an error. Here’s the truncated rake –trace, with the error at the end. I’m running Win XP Pro 32bit with …

---

## [Add rankings to array?](https://www.ruby-forum.com/t/add-rankings-to-array/125176)

<div class="topic-metadata">

**Author:** [@soprano](https://www.ruby-forum.com/u/soprano)\
**Replies:** 5\
**Last updated:** [January 6, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/add-rankings-to-array/125176 "2008-01-06T19:45:04Z")

</div>

Is it possible to add rankings to an array (allowing ties): Example (rate on points field) - convert \[ { :name =\> “A”, :points =\> 30 }, { :name =\> “B”, :points =\> 20 }, { :name =\> “C”, :points =\> 10 }, { :name =\> “…

---

## [Ruby mail help](https://www.ruby-forum.com/t/ruby-mail-help/125180)

<div class="topic-metadata">

**Author:** [@djlewis](https://www.ruby-forum.com/u/djlewis)\
**Replies:** 0\
**Last updated:** [January 6, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/ruby-mail-help/125180 "2008-01-06T19:20:25Z")

</div>

I’m trying to send simple messages with attachments. The mail goes out, but with numerous problems. Any help would be much appreciated. Thanks. --David. require ‘net/smtp’ require ‘tmail’ email = TMail::Mail.new …

---

## [Problem with sockets](https://www.ruby-forum.com/t/problem-with-sockets/124987)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 12\
**Last updated:** [January 6, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/problem-with-sockets/124987 "2008-01-06T19:17:30Z")

</div>

Hi I’ve just started using ruby and thought I’d do some experimenting with TCPSocket and TCPServer I’ve got a small problem, in that the program I’ve written runs fine on Linux, but runs with a lag on windows. By thi…

---

## [Http post is async or sync?](https://www.ruby-forum.com/t/http-post-is-async-or-sync/124973)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 4\
**Last updated:** [January 6, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/http-post-is-async-or-sync/124973 "2008-01-06T18:52:19Z")

</div>

Hi, I am using Net::HTTP.post\_form URI.parse(Url), { … } in my application. But this slows the process, hence I was wondering if this http call is synchronus or asynchronus? I couldn’t find any i…

---

## [Change the symbol in an interpolated string value?](https://www.ruby-forum.com/t/change-the-symbol-in-an-interpolated-string-value/124850)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [January 6, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/change-the-symbol-in-an-interpolated-string-value/124850 "2008-01-06T17:06:01Z")

</div>

PROBLEM: I would like to be able to change the symbol in an interpolated string value. For example: before whoever = “World”; message = “Hello #{whoever}”; puts message; after whoever = “World”; message = “…

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

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