# Ruby

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

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

---

## [Newbie: def must come before call to def?](https://www.ruby-forum.com/t/newbie-def-must-come-before-call-to-def/88510)

<div class="topic-metadata">

**Author:** [@planetthoughtful](https://www.ruby-forum.com/u/planetthoughtful)\
**Replies:** 4\
**Last updated:** [March 12, 2007, 12:37pm UTC](https://www.ruby-forum.com/t/newbie-def-must-come-before-call-to-def/88510 "2007-03-12T12:37:17Z")

</div>

Hi All, Very new to learning Ruby, so please forgive if this is a moronic question. In Ruby, am I required to put my defs before any code that calls those defs? I’m porting general skills across from PHP, where you c…

---

## [Request.raw\_pos Problem](https://www.ruby-forum.com/t/request-raw-pos-problem/88534)

<div class="topic-metadata">

**Author:** [@pubclub](https://www.ruby-forum.com/u/pubclub)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/request-raw-pos-problem/88534 "2007-03-12T12:25:23Z")

</div>

Hi people i have a very strange problem. I am using a lifesearch function which you can place some text in. Only When i get the Post in the Controller the variable gives me this placedtext= … The equal sign gets p…

---

## [MRplot site not live](https://www.ruby-forum.com/t/mrplot-site-not-live/88525)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 11:42am UTC](https://www.ruby-forum.com/t/mrplot-site-not-live/88525 "2007-03-12T11:42:14Z")

</div>

Does anyone know when the MRplot homepage (bleedingmind.com) will be live again? Chris

---

## [London Ruby User Group - 12th March, 2007](https://www.ruby-forum.com/t/london-ruby-user-group-12th-march-2007/88523)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 11:21am UTC](https://www.ruby-forum.com/t/london-ruby-user-group-12th-march-2007/88523 "2007-03-12T11:21:08Z")

</div>

Hi all, The London Ruby U. Group is meeting tonight (Monday, 12th March, 2007) from 18:30 onwards at the Skills Matter offices (1 Sekeforde Street, London, EC1R 0BE). It’s a code review evening based on your code su…

---

## [DL::PtrData#inspect](https://www.ruby-forum.com/t/dl-ptrdata-inspect/88465)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 5\
**Last updated:** [March 12, 2007, 10:15am UTC](https://www.ruby-forum.com/t/dl-ptrdata-inspect/88465 "2007-03-12T10:15:59Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B DL::PtrData e$B$He(B DL::Symbol e$B$Ne(B inspect e$B$,e(B $ ruby-1.8.5 -rdl -e ‘p DL::Symbol.new(0, “a”, “I”)’ #\<DL::Symbol:0x0x811d210 func=0x(nil) ‘void ((null))()’\> e$B$H$$$&…

---

## [Ruby methods question](https://www.ruby-forum.com/t/ruby-methods-question/88477)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 12, 2007, 9:55am UTC](https://www.ruby-forum.com/t/ruby-methods-question/88477 "2007-03-12T09:55:55Z")

</div>

I followed the online tutorials on how to write plugins. So I have acts\_as\_fox.rb: require ‘active\_record’ module Foo module Acts #:nodoc: module Fox #:nodoc: def self.included(mod) mod.extend(ClassMethods) …

---

## [Basic Windows Deployment](https://www.ruby-forum.com/t/basic-windows-deployment/88335)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 3\
**Last updated:** [March 12, 2007, 8:40am UTC](https://www.ruby-forum.com/t/basic-windows-deployment/88335 "2007-03-12T08:40:33Z")

</div>

Is there any documentation on what files need to be deployed on a client Windows pc to run a Ruby script? The one-click installer includes all sorts of documentation, editors etc etc not applicable to end users.

---

## [Microsoft-IIS $B\>e$G(B cgi.rb $B$,%l%9%\]%s%99T$r#2=E$K=P](https://www.ruby-forum.com/t/microsoft-iis-b-e-g-b-cgi-rb-b-l-9-s-99t-r-2-e-k-p/88503)

<div class="topic-metadata">

**Author:** [@MIYASAKA\_Masaru](https://www.ruby-forum.com/u/MIYASAKA_Masaru)\
**Replies:** 4\
**Last updated:** [March 12, 2007, 8:07am UTC](https://www.ruby-forum.com/t/microsoft-iis-b-e-g-b-cgi-rb-b-l-9-s-99t-r-2-e-k-p/88503 "2007-03-12T08:07:46Z")

</div>

e$B=i$a$F$NEj9F$G$9!#$\_$d$5$+e(B e$B$H?=$7$^$9!#$h$m$7$/$\*4j$$$$$?$7$^$9!#e(B e$BE:IU%i%$%V%i%j$Ne(B cgi.rb e$B$K$D$$$F$J$N$G$9$,!"$3$l$re(B Microsoft-IIS e$B\>e$G;H$&$H!“e(BHTTP e$B$N%l%9%\]%s%99T$,#2=E$K=PNO$5$l$F$7…

---

## [Optparse, needless argument, mac os x intel](https://www.ruby-forum.com/t/optparse-needless-argument-mac-os-x-intel/88508)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 7:39am UTC](https://www.ruby-forum.com/t/optparse-needless-argument-mac-os-x-intel/88508 "2007-03-12T07:39:32Z")

</div>

I’ve just started using optparse. I’m hitting this needless argument error when one of my commandline args excepts strings… I’ve looked around on google seeing that this was a bug that was fixed at some point. How can…

---

## [Installing Ruby and RubyGems on Red Hat Linux 9](https://www.ruby-forum.com/t/installing-ruby-and-rubygems-on-red-hat-linux-9/88511)

<div class="topic-metadata">

**Author:** [@Angrez](https://www.ruby-forum.com/u/Angrez)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 7:10am UTC](https://www.ruby-forum.com/t/installing-ruby-and-rubygems-on-red-hat-linux-9/88511 "2007-03-12T07:10:43Z")

</div>

Hi, I would like to know which versions of Ruby and RubyGems I can install on Red Hat Linux 9? I was able to install Ruby version 1.6.8-5 successfully. But when I tried to install RubyGems 0.8.0 I got error like ther…

---

## [Ruby ABNF parser](https://www.ruby-forum.com/t/ruby-abnf-parser/88502)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 4:57am UTC](https://www.ruby-forum.com/t/ruby-abnf-parser/88502 "2007-03-12T04:57:32Z")

</div>

Can someone point me to any Ruby ABNF library? It seems http://raa.ruby-lang.org/project/abnf/ is no longer available. TIA

---

## [Metaprogramming and class\_eval](https://www.ruby-forum.com/t/metaprogramming-and-class-eval/88486)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 4:28am UTC](https://www.ruby-forum.com/t/metaprogramming-and-class-eval/88486 "2007-03-12T04:28:30Z")

</div>

Hi Whats the differents between this three classes. Why the my\_attr\_accesor dosent create getters and setter clases. Thanks in advance #---------------------------------------------------------------------- #------…

---

## [Directly modify a part on an array for quiz #117 purposes](https://www.ruby-forum.com/t/directly-modify-a-part-on-an-array-for-quiz-117-purposes/88478)

<div class="topic-metadata">

**Author:** [@Albert\_Ng](https://www.ruby-forum.com/u/Albert_Ng)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 1:38am UTC](https://www.ruby-forum.com/t/directly-modify-a-part-on-an-array-for-quiz-117-purposes/88478 "2007-03-12T01:38:19Z")

</div>

From Ruby quiz #117 (much fun) #bad code by me, interesting bits shamelessly stolen from Dave B. neighborhood=\[@grid\[x0\]\[y0\], @grid\[x0\]\[y1\], @grid\[x1\]\[y0\], @grid\[x1\]\[y1\]\] where each element of @grid\[\]\[\] is a string, …

---

## [Phoenix Ruby Users Group March Meeting](https://www.ruby-forum.com/t/phoenix-ruby-users-group-march-meeting/88490)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 1:14am UTC](https://www.ruby-forum.com/t/phoenix-ruby-users-group-march-meeting/88490 "2007-03-12T01:14:16Z")

</div>

What: Phoenix Ruby U. Group When: March 13, 2007, 6:15 PM Where: Axway (formerly known as Cyclone Commerce) offices See http://www.rubyaz.org/groups/prug for address and map Topics: New Stuff in JRuby Testing with …

---

## [Is an embedded ruby interpreter safe to unload](https://www.ruby-forum.com/t/is-an-embedded-ruby-interpreter-safe-to-unload/88433)

<div class="topic-metadata">

**Author:** [@llothar](https://www.ruby-forum.com/u/llothar)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 1:06am UTC](https://www.ruby-forum.com/t/is-an-embedded-ruby-interpreter-safe-to-unload/88433 "2007-03-12T01:06:16Z")

</div>

Hello ruby-talk, when i use ruby embedded in a program where i call “ruby\_init”, do a few ruby magics and then call “ruby\_finalize”. Will this free all used memory?

---

## [Camping: Error when running script](https://www.ruby-forum.com/t/camping-error-when-running-script/88450)

<div class="topic-metadata">

**Author:** [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Replies:** 2\
**Last updated:** [March 11, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/camping-error-when-running-script/88450 "2007-03-11T22:13:06Z")

</div>

Hello, I just installed the Camping micro-framework with the command: gem install camping-omnibus --source http://code.whytheluckystiff.net Then I created a file which contained the following: Camping.goes :Nuts and…

---

## [Creating Ruby objects from C](https://www.ruby-forum.com/t/creating-ruby-objects-from-c/88446)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 2\
**Last updated:** [March 11, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/creating-ruby-objects-from-c/88446 "2007-03-11T21:37:53Z")

</div>

The following snippet of C code shows my attempt to create a Ruby string object by invoking the “new” method on the Ruby String class. I know it would be easier to do this using the rb\_str\_new or rb\_str\_new2 functions…

---

## [Managing Environments for ruby apps](https://www.ruby-forum.com/t/managing-environments-for-ruby-apps/88213)

<div class="topic-metadata">

**Author:** [@rbe5000](https://www.ruby-forum.com/u/rbe5000)\
**Replies:** 1\
**Last updated:** [March 11, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/managing-environments-for-ruby-apps/88213 "2007-03-11T20:49:47Z")

</div>

Hi all, Over the last couple of years I have accumulated a fair amount of Ruby code across a couple of projects at work, and I have factored out several components into reusable libraries, although I haven’t needed t…

---

## [You thoughts/philosphies on manual garbage collection](https://www.ruby-forum.com/t/you-thoughts-philosphies-on-manual-garbage-collection/88208)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 5\
**Last updated:** [March 11, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/you-thoughts-philosphies-on-manual-garbage-collection/88208 "2007-03-11T20:26:44Z")

</div>

The process that initiated my message earlier (about deleting array elements) is a rather long running process of rebuilding and reconfiguring parameter files. There hundreds of files, each with as many as 22,000 par…

---

## [SafeStringValue](https://www.ruby-forum.com/t/safestringvalue/88467)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 1\
**Last updated:** [March 11, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/safestringvalue/88467 "2007-03-11T17:49:19Z")

</div>

I can’t find any documentation that explains what this Ruby C function does. Do you know?

---

## [Ruby 1.8.6 will be released in 24 hours](https://www.ruby-forum.com/t/ruby-1-8-6-will-be-released-in-24-hours/88471)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 0\
**Last updated:** [March 11, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-will-be-released-in-24-hours/88471 "2007-03-11T17:39:05Z")

</div>

ã€€æœ¬æ—¥(3/12)ã®åˆå¾Œã«1.8.6æœ€çµ‚ãƒªãƒªãƒ¼ã‚¹ã‚’å‡ºã—ã¾ã™ã€‚æœ¬å½“ã¯ä»Šæ—¥ä¸­ã« å‡ºã—ãŸã‹ã£ãŸã®ã§ã™ãŒã€ç›´å‰ã«ã¡ã‚‡ã“ã¡ã‚‡ã“ã¨ç´°ã‹ã„ä¿®æ­£ãŒå…¥ã£ãŸãŸã‚ã€ ã•ã‚‰ã«å¹…åºƒã„ãƒ—ãƒ©ãƒƒã…

---

## [Dl/import is not thread safe](https://www.ruby-forum.com/t/dl-import-is-not-thread-safe/88463)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 1\
**Last updated:** [March 11, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/dl-import-is-not-thread-safe/88463 "2007-03-11T17:11:01Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B e$B$\[$H$s$ILdBj$K$J$k\>l9g$O$J$$$H;W$&$N$G$9$,!"e(B dl/import e$B$N0J2\<$NItJ,$,%9%l%C%I0BA4$G$O$J$$$N$G!"e(B e$B%Q%C%A$rE:IU$7$^$9!#e(B @retval e$B$,JV$5$l$kA0$K!“JL$N%9%l%C%I$G…

---

## [Theming Tk with tile](https://www.ruby-forum.com/t/theming-tk-with-tile/88363)

<div class="topic-metadata">

**Author:** [@Sy\_Ali](https://www.ruby-forum.com/u/Sy_Ali)\
**Replies:** 3\
**Last updated:** [March 11, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/theming-tk-with-tile/88363 "2007-03-11T16:30:57Z")

</div>

I have a dream: My own GUI applications looking like other applications. I went hunting around for theming for Tk, and bumped into Tile\[1\]. Tk being legendarily ugly, tile represents a great new hope that with tile …

---

## [\[BUG?\] SIGTERM $B$N\<h$j07$$(B](https://www.ruby-forum.com/t/bug-sigterm-b-n-h-j07-b/88109)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 9\
**Last updated:** [March 11, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/bug-sigterm-b-n-h-j07-b/88109 "2007-03-11T15:27:51Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B e$B:#:"5$IU$/$H$$$&$N$bLdBj$J$N$G$9$,e(B (^\_^;e$B!$e(B Wed Oct 18 23:02:40 2006 Nobuyoshi N. removed\_email\_address@domain.invalid \* signal.c (Init\_signal): handle SIGTERM. fixed: \[r…

---

## [Ruby 1.8.6 preview3 has been released](https://www.ruby-forum.com/t/ruby-1-8-6-preview3-has-been-released/87639)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 9\
**Last updated:** [March 11, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-preview3-has-been-released/87639 "2007-03-11T12:51:34Z")

</div>

ã€€Ruby 1.8.6 preview3 ã‚’ãƒªãƒªãƒ¼ã‚¹ã—ã¾ã—ãŸã€‚ ã€€æœ¬ç‰ˆã¯ã€1.8.6æ­£å¼ç‰ˆã®ãƒªãƒªãƒ¼ã‚¹å€™è£œã¨ã„ã†ä½ç½®ã¥ã‘ã§ã‚ã‚Šã€1.8.5 ãƒªãƒªãƒ¼ã‚¹ä»¥é™ã«è¦‹ã¤ã‹ã£ãŸæ•°å¤šãã®ãƒã‚°ã®ä¿®æ­£ã¨ãƒ©ã‚¤ãƒ–…

---

## [Parse hex ascii](https://www.ruby-forum.com/t/parse-hex-ascii/88443)

<div class="topic-metadata">

**Author:** [@zvilius](https://www.ruby-forum.com/u/zvilius)\
**Replies:** 3\
**Last updated:** [March 11, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/parse-hex-ascii/88443 "2007-03-11T12:10:31Z")

</div>

I want to parse a hex-ascii string into an array of numbers. For example: “0164” =\> \[1,100\] Essentially I need to iterate through character pairs and use String#hex: “01”.hex =\> 1 “64”.hex =\> 100 I can do this eas…

---

## [DL::Symbol#call dumps core](https://www.ruby-forum.com/t/dl-symbol-call-dumps-core/88444)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 1\
**Last updated:** [March 11, 2007, 10:04am UTC](https://www.ruby-forum.com/t/dl-symbol-call-dumps-core/88444 "2007-03-11T10:04:13Z")

</div>

e$B$3$s$K$A$O!"e(B sheepman e$B$G$9!#e(B dl(1.8e$B$KIUB0$NJ}e(B)e$B$N%^%K%e%"%k$r=q$$$F$$$F5$$,$D$$$?$s$G$9$,!"e(B e$B\<!$N$h$&$K$9$k$He(B core e$B$rEG$-$^$9!#e(B strlast = DL.callback(‘IS’){|s| s\[-1\] } p strlast.ca…

---

## [Using ruby-openid/ruby-yadis w/o ruby gems](https://www.ruby-forum.com/t/using-ruby-openid-ruby-yadis-w-o-ruby-gems/88385)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 1\
**Last updated:** [March 11, 2007, 9:26am UTC](https://www.ruby-forum.com/t/using-ruby-openid-ruby-yadis-w-o-ruby-gems/88385 "2007-03-11T09:26:07Z")

</div>

Dear devs, I am trying to use the ruby-openid/ruby-yadis gems without ruby gems, ie I just copied the lib files in a local lib directory (and placed this in the LOAD\_PATH). When running the application I get the foll…

---

## [Post\_form](https://www.ruby-forum.com/t/post-form/88104)

<div class="topic-metadata">

**Author:** [@coosa](https://www.ruby-forum.com/u/coosa)\
**Replies:** 11\
**Last updated:** [March 11, 2007, 6:22am UTC](https://www.ruby-forum.com/t/post-form/88104 "2007-03-11T06:22:51Z")

</div>

Dear all, I’m a newbie and have been looking for a solution regarding the following issue: I’m trying to get the results from the page http://daftarj.spr.gov.my/daftarbi.asp and looking at the source of the page I h…

---

## [Complete beginner needing help](https://www.ruby-forum.com/t/complete-beginner-needing-help/88211)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 2\
**Last updated:** [March 11, 2007, 2:29am UTC](https://www.ruby-forum.com/t/complete-beginner-needing-help/88211 "2007-03-11T02:29:42Z")

</div>

Hi, a completly simple question for pretty much everyone on this site. I’ve just started to teach myself Ruby and writing some very simple programs using the get command. Unfortunately each time I execute the program …

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

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