# Ruby

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

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

---

## [How to do "do" blocks](https://www.ruby-forum.com/t/how-to-do-do-blocks/115762)

<div class="topic-metadata">

**Author:** [@datorrey](https://www.ruby-forum.com/u/datorrey)\
**Replies:** 8\
**Last updated:** [September 28, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/how-to-do-do-blocks/115762 "2007-09-28T12:03:37Z")

</div>

How come this works: collection\_of\_objects = \[\] 10.times do collection\_of\_objects \<\< MyObject.create end But this doesn’t: collection\_of\_objects = \[\] 10.times do { collection\_of\_objects \<\< MyObject.create } I did…

---

## [Packed st\_table](https://www.ruby-forum.com/t/packed-st-table/113721)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 7\
**Last updated:** [September 28, 2007, 11:29am UTC](https://www.ruby-forum.com/t/packed-st-table/113721 "2007-09-28T11:29:40Z")

</div>

e$B$J$+$@$G$9!#e(B e$BEDCf$5$s$K!Ve(BHashe$B$N=g=x$O$I$C$A$G$b$$$$$+$i$3$C$A$r$d$l!W$H$$$o$le(B e$B$?$N$G!"e(Bst\_tablee$B$Ne(Bentries\_packede$B$r0lHL2=$7$F$\_$^$7$?!#e(B Index: st.c — st.c (revision 13339) +++ st.c …

---

## [Rubyscript2exe \> Invalid char \`\\220' in expression (RC=256)?](https://www.ruby-forum.com/t/rubyscript2exe-invalid-char-220-in-expression-rc-256/115761)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 2\
**Last updated:** [September 28, 2007, 10:41am UTC](https://www.ruby-forum.com/t/rubyscript2exe-invalid-char-220-in-expression-rc-256/115761 "2007-09-28T10:41:02Z")

</div>

Hi, i want to create an executable of the following simple ruby snippet = time=Time.now.strftime(‘%d.%m.%Y’) exec(“c:/Programme/Internet Explorer/IEXPLORE.EXE http://scmcs/deploy/ControllerServlet?startsuchdatum=#{t…

---

## [Thread book!](https://www.ruby-forum.com/t/thread-book/115758)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 2\
**Last updated:** [September 28, 2007, 9:36am UTC](https://www.ruby-forum.com/t/thread-book/115758 "2007-09-28T09:36:34Z")

</div>

Dear Friends, Now I ahve started to study Ruby threads. Please Any one help me. Is there any seprate link for ruby threads, I don’t any thread links,I want to know more Thread concepts,but I am unable to find the li…

---

## [How to start!](https://www.ruby-forum.com/t/how-to-start/115755)

<div class="topic-metadata">

**Author:** [@funfeast](https://www.ruby-forum.com/u/funfeast)\
**Replies:** 3\
**Last updated:** [September 28, 2007, 9:13am UTC](https://www.ruby-forum.com/t/how-to-start/115755 "2007-09-28T09:13:48Z")

</div>

Dear all, I am new to programming and ruby too. since last one week i am trying to find online tutorials for Starters (ruby basics), I found almost every thing, How to install, what to install, what and how to update …

---

## [Valgrind set\_trace\_func](https://www.ruby-forum.com/t/valgrind-set-trace-func/115263)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [September 28, 2007, 8:25am UTC](https://www.ruby-forum.com/t/valgrind-set-trace-func/115263 "2007-09-28T08:25:53Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B Invalid read of size 4 e$B$H$J$j$^$9!#e(B % valgrind ./ruby -ve ‘set\_trace\_func(proc {})’ ==13641== Memcheck, a memory error detector. ==13641== Copyright © 2002-2006, and GNU GPL’d, by Julian…

---

## [Plugin Separation/Integration using method\_missing](https://www.ruby-forum.com/t/plugin-separation-integration-using-method-missing/115751)

<div class="topic-metadata">

**Author:** [@daaku](https://www.ruby-forum.com/u/daaku)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 6:44am UTC](https://www.ruby-forum.com/t/plugin-separation-integration-using-method-missing/115751 "2007-09-28T06:44:37Z")

</div>

I’m trying to implement a framework where I have a concept of ‘plugin overlays’. They plug into an application which provides a well defined external interface. The core of the plugin is a ‘service’ method that potent…

---

## [Search jruby @ codehaus broken](https://www.ruby-forum.com/t/search-jruby-codehaus-broken/115724)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 1\
**Last updated:** [September 28, 2007, 6:19am UTC](https://www.ruby-forum.com/t/search-jruby-codehaus-broken/115724 "2007-09-28T06:19:03Z")

</div>

As Mark mentioned in the previous thread, the mailing list search and site search are broken on th e JRuby Codehaus page : Application error Change this error message for exceptions thrown outside of an action (like …

---

## [Wiki syntax](https://www.ruby-forum.com/t/wiki-syntax/115736)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 2:02am UTC](https://www.ruby-forum.com/t/wiki-syntax/115736 "2007-09-28T02:02:08Z")

</div>

Phil created some wiki pages on RubyForge, but his (or other’s) wiki syntax is wrong, so some links are not working. I think he is using MediaWiki syntax, but RubyForge’s wiki is using UseModWiki. UseModWiki documenta…

---

## [Vlad the D. - help and observations](https://www.ruby-forum.com/t/vlad-the-d-help-and-observations/115612)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 9\
**Last updated:** [September 28, 2007, 12:15am UTC](https://www.ruby-forum.com/t/vlad-the-d-help-and-observations/115612 "2007-09-28T00:15:51Z")

</div>

Hi, I started using VD recently just to compare the differences with Cap. Here goes: I like the idea, but where do you get support? Is there a google group? So far, nothing compares to the support Jamis B. puts out o…

---

## [Trouble with pathname (i.e slashes) & windows](https://www.ruby-forum.com/t/trouble-with-pathname-i-e-slashes-windows/115633)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [September 27, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/trouble-with-pathname-i-e-slashes-windows/115633 "2007-09-27T23:26:04Z")

</div>

Hi, I am a bit of a ruby newbie, and i cant figure out this problem. I am recursively searching through some directories, and when i find the one i want, i try to pass it to an external process, through ‘system’ but …

---

## [scRUBYt! 0.3.4](https://www.ruby-forum.com/t/scrubyt-0-3-4/115723)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/scrubyt-0-3-4/115723 "2007-09-27T23:09:41Z")

</div>

Hey all, I am pleased to announce that the long-awaited new release of scRUBYt!, 0.3.4 is available for download. A lot of bugs have been fixed and some cool features scrubbed in, so be sure to check it out! =======…

---

## [Object\_id 1, 2, 3](https://www.ruby-forum.com/t/object-id-1-2-3/115415)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 13\
**Last updated:** [September 27, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/object-id-1-2-3/115415 "2007-09-27T23:08:30Z")

</div>

Fixnum object\_id 0 1 1 3 2 5 -1 -1 -2 -3 so the question is… which objects have the object\_id 2, 4, 6, and -2, -4, etc? irb(main):041:0\> a = 0 =\> 0 irb(main…

---

## [Ruby Scales just fine!](https://www.ruby-forum.com/t/ruby-scales-just-fine/115461)

<div class="topic-metadata">

**Author:** [@rubymarc](https://www.ruby-forum.com/u/rubymarc)\
**Replies:** 23\
**Last updated:** [September 27, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/ruby-scales-just-fine/115461 "2007-09-27T23:06:45Z")

</div>

Just buy a bunch of Quad Core Opterons and get over it ! If you don’t think Ruby is scalable just check with the folks at Twitter - they have been successfully using Ruby for some time now - all they had to do was buy…

---

## [RDT, Eclipse configuration problem](https://www.ruby-forum.com/t/rdt-eclipse-configuration-problem/115719)

<div class="topic-metadata">

**Author:** [@elucify](https://www.ruby-forum.com/u/elucify)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/rdt-eclipse-configuration-problem/115719 "2007-09-27T22:58:30Z")

</div>

I am new to (j)ruby. I initially setup ruby and rdt in my eclipse environment. I have since switched to jruby, since I work in a java environment. I am confused about how to configure rdt to work with a jruby vm. …

---

## [Gsub-ing each character](https://www.ruby-forum.com/t/gsub-ing-each-character/115699)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 4\
**Last updated:** [September 27, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/gsub-ing-each-character/115699 "2007-09-27T21:34:37Z")

</div>

I want to convert certain letters to numbers on a gets.chomp… my initial approach was this---- words = gets.chomp new = words.each {|p| p.gsub(/\[h\]/, ‘00’)} puts new however this doesnt work the miracle :slight\_smi…

---

## [Ruby's a = b vs PHP5's $obj1 =& $obj2](https://www.ruby-forum.com/t/rubys-a-b-vs-php5s-obj1-obj2/115676)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 7\
**Last updated:** [September 27, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/rubys-a-b-vs-php5s-obj1-obj2/115676 "2007-09-27T21:27:35Z")

</div>

Just want to confirm Ruby’s a = b is the same as PHP5’s $obj1 = $obj2 in other words, the reference is copied. While $obj1 =& $obj2 or $obj1 = &$obj2 in both PHP4 and PHP5 isn’t the same as Ruby’s a = b $obj1…

---

## [Help with error when executing a remote command via ssh](https://www.ruby-forum.com/t/help-with-error-when-executing-a-remote-command-via-ssh/115704)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/help-with-error-when-executing-a-remote-command-via-ssh/115704 "2007-09-27T21:15:28Z")

</div>

Team, I am running the following piece of code, which simply executes a remote command and output its outcome! However, I am getting a warning when executing the remote command. 1 - #!/usr/local/bin/ruby 2 - 3 - fh…

---

## [Symbol.all\_symbols](https://www.ruby-forum.com/t/symbol-all-symbols/115428)

<div class="topic-metadata">

**Author:** [@eklerni](https://www.ruby-forum.com/u/eklerni)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/symbol-all-symbols/115428 "2007-09-27T20:05:17Z")

</div>

eklernie$B$G$9!#e(B e$B%j%U%!%l%s%9JT=8Cf$K5$$E$$$?$3$H$K$D$$$F$N\<ALd$G$9!#e(B Symbol.all\_symbolse$B%a%=%C%I$N!"\<0E83+$r4^$\`%7%s%%k%j%F%i%ke(B e$B$N07$$$,e(B1.8e$B$He(B1.9e$B$GJQ2=$7$F$$$k$N$G$9$,!"$3$l$O0U?^$7$?JQ99$…

---

## [PDF::Writer and simpletable height](https://www.ruby-forum.com/t/pdf-writer-and-simpletable-height/115656)

<div class="topic-metadata">

**Author:** [@pege](https://www.ruby-forum.com/u/pege)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/pdf-writer-and-simpletable-height/115656 "2007-09-27T19:03:04Z")

</div>

Hi! I was wondering if there’s any way to track the height of a simpletable? I mean the height of course increases if rows are split over two or more rows, which means that I can’t blindly check for amount of objects …

---

## [Open-URI and percent sign in url](https://www.ruby-forum.com/t/open-uri-and-percent-sign-in-url/115689)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/open-uri-and-percent-sign-in-url/115689 "2007-09-27T18:26:07Z")

</div>

I am trying to use open-uri to open the following url http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#%\_toc\_start and I’m getting the following error :/ruby/lib/ruby/1.8/uri/common.rb:436:in split': bad UR…

---

## [Seek repositories in RubyGems](https://www.ruby-forum.com/t/seek-repositories-in-rubygems/115683)

<div class="topic-metadata">

**Author:** [@asmo](https://www.ruby-forum.com/u/asmo)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/seek-repositories-in-rubygems/115683 "2007-09-27T18:15:31Z")

</div>

That’s possible? As an example I’ll present the APT (Debian Package System)… killavus@manganux:~ apt-cache search ruby ruby - An interpreter of object-oriented scripting language Ruby ruby-elisp - Emacs-lisp ruby-mod…

---

## [Configuring Ruby On rails on Windows XP](https://www.ruby-forum.com/t/configuring-ruby-on-rails-on-windows-xp/115649)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [September 27, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/configuring-ruby-on-rails-on-windows-xp/115649 "2007-09-27T16:43:54Z")

</div>

Hi Ruby Folks, I am using Komodo 4.2 as an IDE for working with Ruby. I have already installed Instant Rails and its working fine. The few problems i am facing are… (1) Cannot make MySQL and MSSQL work with Instant r…

---

## [Shirt Reader (#140)](https://www.ruby-forum.com/t/shirt-reader-140/115674)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/shirt-reader-140/115674 "2007-09-27T16:19:50Z")

</div>

This quiz is surprisingly challenging. Our brain is capable of making some pretty complex associations between sounds to make sense of these puzzles quite quickly. To code that up is a non-trivial task. All of the…

---

## [Some file operations](https://www.ruby-forum.com/t/some-file-operations/115644)

<div class="topic-metadata">

**Author:** [@blufur](https://www.ruby-forum.com/u/blufur)\
**Replies:** 8\
**Last updated:** [September 27, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/some-file-operations/115644 "2007-09-27T14:57:01Z")

</div>

A couple quick questions: how can my ruby program tell me how many lines are in a text file? how can i have my ruby program edit the last line of a text file (not add another line at the end, but get and then change t…

---

## [How to make link using image with ajax](https://www.ruby-forum.com/t/how-to-make-link-using-image-with-ajax/89970)

<div class="topic-metadata">

**Author:** [@saravanan](https://www.ruby-forum.com/u/saravanan)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/how-to-make-link-using-image-with-ajax/89970 "2007-09-27T14:48:49Z")

</div>

Hi, I have an image. I want to make it as a link using ajax. Please anybody, tell me the way how to do it? with regards, saravanan.

---

## [RFacebook Issue](https://www.ruby-forum.com/t/rfacebook-issue/196474)

<div class="topic-metadata">

**Author:** [@suja](https://www.ruby-forum.com/u/suja)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/rfacebook-issue/196474 "2007-09-27T14:46:27Z")

</div>

Hi, I want to integrate my application with facebook. To this i follow, the steps in “http://wiki.developers.facebook.com/index.php/Ruby\_on\_Rails” But when i use this sample application it goes to login page after …

---

## [RFacebook](https://www.ruby-forum.com/t/rfacebook/115671)

<div class="topic-metadata">

**Author:** [@suja](https://www.ruby-forum.com/u/suja)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/rfacebook/115671 "2007-09-27T14:38:48Z")

</div>

Hi, I want to integrate my application with facebook. To this i follow, the steps in “http://wiki.developers.facebook.com/index.php/Ruby\_on\_Rails” But when i use this sample application it goes to login page after …

---

## [ANN: RuPy 2008 Python & Ruby Conference](https://www.ruby-forum.com/t/ann-rupy-2008-python-ruby-conference/115668)

<div class="topic-metadata">

**Author:** [@Jakub\_PSNowak](https://www.ruby-forum.com/u/Jakub_PSNowak)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/ann-rupy-2008-python-ruby-conference/115668 "2007-09-27T13:40:53Z")

</div>

RuPy 2008 Python & Ruby Conference Poznan, Poland April 12-13, 2008 – Call for speakers RuPy is a Ruby and Python conference. Held for the first time in April 2007 it gathered enthusiasts from Poland and other cou…

---

## [Problems with multiple reads in rinda](https://www.ruby-forum.com/t/problems-with-multiple-reads-in-rinda/115665)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/problems-with-multiple-reads-in-rinda/115665 "2007-09-27T12:03:17Z")

</div>

I had some problems doing a number of multiple accesses to the rinda tuplespace. First I have filled the space with about 8000 records (5 field strings, ints and symbols), the I run a client performing read operation…

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

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