# Ruby

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

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

---

## [Rubybind library](https://www.ruby-forum.com/t/rubybind-library/129750)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 21, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/rubybind-library/129750 "2008-02-21T20:36:02Z")

</div>

Hey. I’m currently developing a C++/Ruby binding library, called rubybind. (If you know luabind, you’ll know what I aim at) It’s open source, under the MIT license. Currently it’s in a pretty early stage of developme…

---

## [Object#freeze as a basis for caching of method results?](https://www.ruby-forum.com/t/object-freeze-as-a-basis-for-caching-of-method-results/129556)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 11\
**Last updated:** [February 21, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/object-freeze-as-a-basis-for-caching-of-method-results/129556 "2008-02-21T20:02:51Z")

</div>

Hello, ruby-talk. After profiling my code I figured out I might want to attempt some caching of results obtained in â€˜heavyâ€™ methods. Is there an idiomatic way to do method-results caching in Ruby? The first thing…

---

## [Extension methods etc](https://www.ruby-forum.com/t/extension-methods-etc/129819)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/extension-methods-etc/129819 "2008-02-21T19:51:40Z")

</div>

Hi As you’ve probably seen before I’d like to write a couple of articles that show how to use ironruby with a couple of .NET ORMS but in the process of writing those I get constantly tripped up. When I have to pass…

---

## [Skeleton external libraries required by simple RoR use cases](https://www.ruby-forum.com/t/skeleton-external-libraries-required-by-simple-ror-use-cases/129795)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 3\
**Last updated:** [February 21, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/skeleton-external-libraries-required-by-simple-ror-use-cases/129795 "2008-02-21T19:44:00Z")

</div>

Attached is a zipfile containing skeleton definitions for all classes and methods from Zlib, Win32API, Thread, Syck, StrScan, StringIO, SQLite3, Socket, OpenSSL and Digest that get called during the execution of a num…

---

## [Simple array of strings sorting](https://www.ruby-forum.com/t/simple-array-of-strings-sorting/129811)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 21, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/simple-array-of-strings-sorting/129811 "2008-02-21T19:42:49Z")

</div>

Say I have an array of strings that looks like this: test-3 test-31 test-11 test-12 test-13 test-32 test-10 test-14 I want them sorted like so: test-3 test-10 test-11 test-12 test-13 test-14 test-31 test…

---

## [IP Address to Decimal - is an one-liner possible?](https://www.ruby-forum.com/t/ip-address-to-decimal-is-an-one-liner-possible/129609)

<div class="topic-metadata">

**Author:** [@tipsantos](https://www.ruby-forum.com/u/tipsantos)\
**Replies:** 21\
**Last updated:** [February 21, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/ip-address-to-decimal-is-an-one-liner-possible/129609 "2008-02-21T19:12:12Z")

</div>

Hi guys, A friend of mine needs to convert a string containing an IP Address (such as “127.0.0.1”) to a decimal (that example would translate to 2130706433, http://www.allredroster.com/iptodec.htm said). We got a sol…

---

## [Timers and Alarms](https://www.ruby-forum.com/t/timers-and-alarms/129789)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 4\
**Last updated:** [February 21, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/timers-and-alarms/129789 "2008-02-21T19:01:03Z")

</div>

I want a program to wait for some moment in time, and resume operation at that moment. sleep is ruled out because it just counts cycles and is thrown off when my laptop suspends. In C I’d use a one-fire timer, using s…

---

## [Connecting to HyperTerminal](https://www.ruby-forum.com/t/connecting-to-hyperterminal/129446)

<div class="topic-metadata">

**Author:** [@rubynoob](https://www.ruby-forum.com/u/rubynoob)\
**Replies:** 15\
**Last updated:** [February 21, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/connecting-to-hyperterminal/129446 "2008-02-21T18:50:26Z")

</div>

Hi all… I am doing a project using Ruby. It is a SMS to Email sort of thing. Hence, I need to know if it is possible to connect to Hyperterminal using Ruby. If it is, how? I have already completed most of the stuff u…

---

## [Displaying user inputed arrays](https://www.ruby-forum.com/t/displaying-user-inputed-arrays/129358)

<div class="topic-metadata">

**Author:** [@toothyxdip](https://www.ruby-forum.com/u/toothyxdip)\
**Replies:** 35\
**Last updated:** [February 21, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/displaying-user-inputed-arrays/129358 "2008-02-21T18:23:33Z")

</div>

puts "Ok now enter in 5 words, just be sure there are spaces inbetween them" i = 0 while i \< 5 words\_group = gets\["","","","",""\] print "#{words\_group\[i\]}" i =+ 1 end What im trying to do is ask the user to input some…

---

## [CSV.parse error](https://www.ruby-forum.com/t/csv-parse-error/129797)

<div class="topic-metadata">

**Author:** [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/csv-parse-error/129797 "2008-02-21T17:39:51Z")

</div>

e$B$H$\_$?$G$9!#e(B 1.8 e$B$GLdBj$J$$e(B CSV e$B%G!\<%?$re(B 1.9 e$B$Ge(B CSV.parse e$B$9$k$H%(%i!\<$K$J$k$3$H$,$"e(B e$B$j$^$9!#e(B e$B$I$&$d$ie(B " e$B$G3g$i$l$?Cf$K!"%l%3!\<%IKvHx$N2~9T%3!\<%I$H0\[$J$k2~9T%3!\<%I$,e(B …

---

## [Recursive merge for hash](https://www.ruby-forum.com/t/recursive-merge-for-hash/129226)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 5\
**Last updated:** [February 21, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/recursive-merge-for-hash/129226 "2008-02-21T16:52:23Z")

</div>

Hi, Does anyone know of a good recursive merge method for Hashes? I’d like to be able to do something like: new\_h = first.merge\_r(second).merge\_r(third) … everything would be a copy, and hashes applied later in the …

---

## [Code Reduction](https://www.ruby-forum.com/t/code-reduction/129786)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 6\
**Last updated:** [February 21, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/code-reduction/129786 "2008-02-21T16:38:36Z")

</div>

I am using ERB templates in my code. It seems too big, can’t get my head around on how to reduce it. I am sure this can be made smaller. My problem is that if there ain’t any flash messages than the contained HTML sho…

---

## [Reusing the existing code](https://www.ruby-forum.com/t/reusing-the-existing-code/129768)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 7\
**Last updated:** [February 21, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/reusing-the-existing-code/129768 "2008-02-21T16:04:42Z")

</div>

Hi! I have a new class which needs to reuse the code in two classes. But I can only derive it from one class. How should I go about it then?

---

## [Bones 1.3.4 (Finite State Puppy)](https://www.ruby-forum.com/t/bones-1-3-4-finite-state-puppy/129785)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/bones-1-3-4-finite-state-puppy/129785 "2008-02-21T15:51:45Z")

</div>

Mr Bones version 1.3.4 by Tim P. http://codeforpeople.rubyforge.org/bones (the “Finite State Puppy” release) == DESCRIPTION Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton …

---

## [Tail call elimination](https://www.ruby-forum.com/t/tail-call-elimination/127300)

<div class="topic-metadata">

**Author:** [@Hrvoje\_B](https://www.ruby-forum.com/u/Hrvoje_B)\
**Replies:** 2\
**Last updated:** [February 21, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/tail-call-elimination/127300 "2008-02-21T15:49:23Z")

</div>

Does ruby implement tail call elimination? – Hrvoje

---

## [Coding Ruby Extension with C++ on Win32](https://www.ruby-forum.com/t/coding-ruby-extension-with-c-on-win32/127322)

<div class="topic-metadata">

**Author:** [@daniel\_SSSSkerud](https://www.ruby-forum.com/u/daniel_SSSSkerud)\
**Replies:** 2\
**Last updated:** [February 21, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/coding-ruby-extension-with-c-on-win32/127322 "2008-02-21T15:45:51Z")

</div>

Here are some hurdles that I overcame when coding a Ruby Extension in C++ on Win32. Feel free to add to this or to comment. I hope it will help someone someday. (If you ask WHY?, my answer is: I’m very comfy with STL…

---

## [FastRI 0.3.1: faster, Leopard compatibility, etc](https://www.ruby-forum.com/t/fastri-0-3-1-faster-leopard-compatibility-etc/127923)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 20\
**Last updated:** [February 21, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/fastri-0-3-1-faster-leopard-compatibility-etc/127923 "2008-02-21T14:38:47Z")

</div>

FastRI is an alternative to the ri documentation browser for Ruby. Why prefer it over ri? FastRI actually works is much faster than ri can perform fast full-text searching over all your rdoc documentation is smarter t…

---

## [Memory profiling hooks](https://www.ruby-forum.com/t/memory-profiling-hooks/129760)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 2\
**Last updated:** [February 21, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/memory-profiling-hooks/129760 "2008-02-21T14:29:56Z")

</div>

å‰ç”°ã§ã™ã€‚ ruby-profã®Charlie S.ã•ã‚“ã‹ã‚‰ä»¥ä¸‹ã®ã‚ˆã†ãªãƒ¡ãƒ¼ãƒ«ã‚’ã‚‚ã‚‰ã„ã¾ã—ãŸã€‚ ãƒ¡ãƒ¢ãƒªã®ãƒ—ãƒ­ãƒ•ã‚¡ã‚¤ãƒªãƒ³ã‚°ã®ãŸã‚ã«ã‚¤ãƒ³ã‚¿ãƒ—ãƒªã‚¿ã«æ©Ÿèƒ½ã‚’è¿½åŠ ã—ã¦ã»ã—ã„ ã¨ã„ã†ã“ã¨…

---

## [Capture a web scrolling page in a image](https://www.ruby-forum.com/t/capture-a-web-scrolling-page-in-a-image/129653)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 3\
**Last updated:** [February 21, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/capture-a-web-scrolling-page-in-a-image/129653 "2008-02-21T14:12:50Z")

</div>

How can i capturie a web scrolling page in a image with ruby? i don’t want to capture only what is visible, i want to capture and the page after scrolling. Tnx.

---

## [Confused about OCI8](https://www.ruby-forum.com/t/confused-about-oci8/129678)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [February 21, 2008, 11:26am UTC](https://www.ruby-forum.com/t/confused-about-oci8/129678 "2008-02-21T11:26:11Z")

</div>

Hi folks, I’m studying Ruby converting old Java programs. I’m encoutering many difficults connecting to a Oracle 8.0.6 box (say responding at 10.0.0.22). With Java I simply connect using this infos: host: 10.0.0.22 …

---

## [Amsterdam.rb meeting next monday](https://www.ruby-forum.com/t/amsterdam-rb-meeting-next-monday/129766)

<div class="topic-metadata">

**Author:** [@remvee](https://www.ruby-forum.com/u/remvee)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 11:10am UTC](https://www.ruby-forum.com/t/amsterdam-rb-meeting-next-monday/129766 "2008-02-21T11:10:16Z")

</div>

More Ruby-chit-chat and local beers next monday (25th) at “de bekeerde suster”; http://amsterdam-rb.org/ Join us!

---

## [Scotland on Rails Conference April 3/4/5](https://www.ruby-forum.com/t/scotland-on-rails-conference-april-3-4-5/129759)

<div class="topic-metadata">

**Author:** [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 10:30am UTC](https://www.ruby-forum.com/t/scotland-on-rails-conference-april-3-4-5/129759 "2008-02-21T10:30:43Z")

</div>

\*\*\* Registration now open \*\*\* Scotland on Rails is pleased to announce that conference2008 is open for registration. There is a limit to the number of registrations we’re able to accept so we’d advise you to get in q…

---

## [Patch for inspect](https://www.ruby-forum.com/t/patch-for-inspect/129756)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 10:20am UTC](https://www.ruby-forum.com/t/patch-for-inspect/129756 "2008-02-21T10:20:49Z")

</div>

æˆç€¬ã§ã™ã€‚ æ‡¸æ¡ˆã® inspect ã‚’ã€ç”°ä¸­ã•ã‚“ã®ç¤ºå”†ã‚’åŸºã«å¤‰ãˆã‚‹ãƒ‘ãƒƒãƒã§ã™ã€‚ æ„å›³ã¨ã—ã¦ã¯ã€p ã¨ irb ã§ç”Ÿã®æ–‡å­—åˆ—ãŒå‡ºã‚‹ã‚ˆã†ã«ã™ã‚‹ã“ã¨ã‚’ç¬¬ä¸€ã«ã—ã€ãã‚Œ ä»¥å¤–ã®ã‚±ãƒ¼…

---

## [Fwd: \[ruby-cvs:22802\] Ruby:r15565 (trunk): Thu Feb 21 17:15:15 2008 Martin Duerst \<duerst@it.aoyam](https://www.ruby-forum.com/t/fwd-ruby-cvs-22802-ruby-r15565-trunk-thu-feb-21-1715-2008-martin-duerst-duerst-it-aoyam/129755)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 10:17am UTC](https://www.ruby-forum.com/t/fwd-ruby-cvs-22802-ruby-r15565-trunk-thu-feb-21-1715-2008-martin-duerst-duerst-it-aoyam/129755 "2008-02-21T10:17:53Z")

</div>

e$B$^$D$b$H$5$s!“3’$5$s!”$3$s$K$A$O!#e(B e$B$A$g$C$H%O%C%7%e$G%\*%W%7%g%s$r\<BAu$7;O$a$^$7$?$,!“e(B e$B$3$NJ}8~$G$$$$$G$7$g$&$+%”%I%P%$%9$r$4j$$$7$^$9!#e(B (e$B\<BAu$H$=$7$FB\>$N8=:\_9M$($F$$$k%%W%7%g%se(B (ruby-core e$B$…

---

## [Rubygems install hook](https://www.ruby-forum.com/t/rubygems-install-hook/76352)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 21, 2008, 8:23am UTC](https://www.ruby-forum.com/t/rubygems-install-hook/76352 "2008-02-21T08:23:23Z")

</div>

searching the docs and archives - i’m still unclear: is there, or is there not a way to have gems run pre-post install steps? regards. -a

---

## [Thread safety](https://www.ruby-forum.com/t/thread-safety/129251)

<div class="topic-metadata">

**Author:** [@reversejt](https://www.ruby-forum.com/u/reversejt)\
**Replies:** 6\
**Last updated:** [February 21, 2008, 7:14am UTC](https://www.ruby-forum.com/t/thread-safety/129251 "2008-02-21T07:14:09Z")

</div>

With the discussion surrounding merb/rails and thread safety, I’ve been somewhat concerned with making my own tiny home-rolled web apps that I write thread safe, if only to become more knowledgeable on the subject. I …

---

## [From a URL to XPath 2.0](https://www.ruby-forum.com/t/from-a-url-to-xpath-2-0/129713)

<div class="topic-metadata">

**Author:** [@evansenter](https://www.ruby-forum.com/u/evansenter)\
**Replies:** 1\
**Last updated:** [February 21, 2008, 6:04am UTC](https://www.ruby-forum.com/t/from-a-url-to-xpath-2-0/129713 "2008-02-21T06:04:59Z")

</div>

Hi, I am trying to write a small script that allows me to scrape HTML using XPath 2.0. As much as I enjoyed using hPricot, it’s lack of support for indexed paths has forced me to look to a different tool (I’ve heard …

---

## [\[BUG\] Segmentation fault on 'make test' (revision 15560)](https://www.ruby-forum.com/t/bug-segmentation-fault-on-make-test-revision-15560/129737)

<div class="topic-metadata">

**Author:** [@Masayoshi\_T](https://www.ruby-forum.com/u/Masayoshi_T)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 5:52am UTC](https://www.ruby-forum.com/t/bug-segmentation-fault-on-make-test-revision-15560/129737 "2008-02-21T05:52:05Z")

</div>

e$B9b66@,5A$G$9!#e(B rev.15560e$B$Ne(BRubye$B$Ge(Bmake teste$B$,ESCf$G;\`$K$^$9!#e(B e$B\<B9T7k2L$O0J2\<$NDL$j$G$9!#e(B $ uname -rms Linux 2.4.20-8 i686 $ make test sample/test.rb:assignment … sample/test.rb:conditi…

---

## [Rubynode won't build on Leopard Ruby](https://www.ruby-forum.com/t/rubynode-wont-build-on-leopard-ruby/129399)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 5\
**Last updated:** [February 21, 2008, 5:06am UTC](https://www.ruby-forum.com/t/rubynode-wont-build-on-leopard-ruby/129399 "2008-02-21T05:06:24Z")

</div>

I’m trying to build rubynode on a macports installed Ruby on Leopard, and failing. (I’m aware rubynode is one of the stock gems installed in leopard, but its out of date and my whole dev world is in macports, so I’d …

---

## [Array#unshift dumps core](https://www.ruby-forum.com/t/array-unshift-dumps-core/129732)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 4:09am UTC](https://www.ruby-forum.com/t/array-unshift-dumps-core/129732 "2008-02-21T04:09:33Z")

</div>

e$B$$$^$$$G$9!#e(B e$B$“$kDxEY$NBg$-$5$NG\[Ns$re(B splat e$B$GJL$NG\[Ns$Ke(B unshift e$B$9$k$H%”%!\<%H$7$^e(B e$B$7$?!#$h$/J,$+$C$F$^$;$s$,!“0J2\<$N$h$&$J46$8$G$9!#B\>$K2?$+\<($9$Y$-\>pJse(B e$B$,$”$l$P65$($F$/$@$5$$!#e(B $…

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

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