# Ruby

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

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

---

## [Very easy question GET METHOD](https://www.ruby-forum.com/t/very-easy-question-get-method/107886)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 5:27am UTC](https://www.ruby-forum.com/t/very-easy-question-get-method/107886 "2007-06-27T05:27:32Z")

</div>

so I have an ID at the top of my page. but how do i access the #?

---

## [OS X reads builtin version of ruby](https://www.ruby-forum.com/t/os-x-reads-builtin-version-of-ruby/107715)

<div class="topic-metadata">

**Author:** [@Herb\_F](https://www.ruby-forum.com/u/Herb_F)\
**Replies:** 6\
**Last updated:** [June 27, 2007, 4:56am UTC](https://www.ruby-forum.com/t/os-x-reads-builtin-version-of-ruby/107715 "2007-06-27T04:56:09Z")

</div>

Ok, so i’ve tried to install 1.8.6 in a few ways, the first was building it from source and most recently using macports. I’ve added the correct lines to both my /etc/profile and ~/.bash\_login. Whenever I reload these …

---

## [String allocation in rb\_intern](https://www.ruby-forum.com/t/string-allocation-in-rb-intern/107841)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 3:38am UTC](https://www.ruby-forum.com/t/string-allocation-in-rb-intern/107841 "2007-06-27T03:38:01Z")

</div>

rb\_intern e$B$,Kh2s!“e(B(e$B$9$G$K%7%s%%k$,$”$C$F$be(B) String e$B%\*%V%8%'e(B e$B%/%H$r@8@.$7$^$9!#e(B e$B$=$&$7$J$$$h$&$K$9$k$U$6$1$?%3!\<%I$r$D$$=q$$$F$7$^$C$?$N$G$He(B e$B$j$"$($:Aw$C$F$\*$-$^$9!#e(B Index: parse.y …

---

## [Optimizing Hash deletions](https://www.ruby-forum.com/t/optimizing-hash-deletions/107781)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 6\
**Last updated:** [June 27, 2007, 1:18am UTC](https://www.ruby-forum.com/t/optimizing-hash-deletions/107781 "2007-06-27T01:18:49Z")

</div>

I have a recursive file-compare program that I run on 2 directories that each contain about 10,000 files, 99% of which don’t change. I read all the filenames into hashes and then (first) delete all the matches, using …

---

## [How to get data from database as string](https://www.ruby-forum.com/t/how-to-get-data-from-database-as-string/107871)

<div class="topic-metadata">

**Author:** [@maung](https://www.ruby-forum.com/u/maung)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 1:06am UTC](https://www.ruby-forum.com/t/how-to-get-data-from-database-as-string/107871 "2007-06-27T01:06:15Z")

</div>

Hi all, How can i read a cell from database and retrieve as a string in ruby with OCI8? I was doing like this and didn’t succeed: cursor=conn.parse(“Select name From empl where ssn=123456789”) cursor.define(1, Stri…

---

## [Following a Javascript Link Using Mechanize](https://www.ruby-forum.com/t/following-a-javascript-link-using-mechanize/107836)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 12:50am UTC](https://www.ruby-forum.com/t/following-a-javascript-link-using-mechanize/107836 "2007-06-27T00:50:46Z")

</div>

Hello, I am on a page that lists 78 items and can only show 25 per page, so are links for each page of results and a “Next \>” link. I’d like to get Mechanize to follow the Next link but the link looks like this: Next…

---

## [Error in ancestor?](https://www.ruby-forum.com/t/error-in-ancestor/107012)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 40\
**Last updated:** [June 27, 2007, 12:39am UTC](https://www.ruby-forum.com/t/error-in-ancestor/107012 "2007-06-27T00:39:46Z")

</div>

Hi list I just observed this (and it cost me quite some effort to debug my code :frowning: ) 515/15 \> ruby -ve ‘class \<\< Class::new; puts self; puts ancestors.inspect end’ ruby 1.8.5 (2006-12-04 patchlevel 2) \[i686-…

---

## [Oniguruma : can't get it to search for \\ (backslash)](https://www.ruby-forum.com/t/oniguruma-cant-get-it-to-search-for-backslash/107864)

<div class="topic-metadata">

**Author:** [@deanhiller](https://www.ruby-forum.com/u/deanhiller)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/oniguruma-cant-get-it-to-search-for-backslash/107864 "2007-06-26T23:51:36Z")

</div>

I can’t seem to get Oniguruma to look for a single backslash, am I doing anything wrong here?: I should be able to escape the single with another: irb(main):043:0\> reg = Oniguruma::ORegexp.new(’\\’) ArgumentError: Oni…

---

## [Class instance into included module](https://www.ruby-forum.com/t/class-instance-into-included-module/107840)

<div class="topic-metadata">

**Author:** [@galevsky](https://www.ruby-forum.com/u/galevsky)\
**Replies:** 8\
**Last updated:** [June 26, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/class-instance-into-included-module/107840 "2007-06-26T23:44:59Z")

</div>

Hi all, here is my problem: I would like to handle class instances into a module included by the class. This case is illustrated below: module Mod instanceOfClas = ??? method\_HelloWorld = instanceOfClas.method(‘hell…

---

## [SslRequirement module](https://www.ruby-forum.com/t/sslrequirement-module/170525)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/sslrequirement-module/170525 "2007-06-26T22:46:35Z")

</div>

This is a question is about the SslRequirement rails plugin. However, it’s also about core concepts behind ruby modules. Here’s the code for the plugin. http://pastie.caboo.se/73773 Here’s an example of how you use …

---

## [Ruby script that will restart a Windows server](https://www.ruby-forum.com/t/ruby-script-that-will-restart-a-windows-server/107848)

<div class="topic-metadata">

**Author:** [@grooveska](https://www.ruby-forum.com/u/grooveska)\
**Replies:** 5\
**Last updated:** [June 26, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/ruby-script-that-will-restart-a-windows-server/107848 "2007-06-26T22:17:33Z")

</div>

I have been researching on how to write a script that will restart a Windows 2003 server. I haven’t had much luck yet and was wondering if anyone else had done anything similar, and how you went about creating that s…

---

## [Vaguely humorous Test::Unit problem (long)](https://www.ruby-forum.com/t/vaguely-humorous-test-unit-problem-long/107784)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 26, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/vaguely-humorous-test-unit-problem-long/107784 "2007-06-26T22:16:31Z")

</div>

Hi everybody, I have a problem I can’t figure out. I’ve created a test class using Test::Unit::TestCase. One of the test cases is failing, but if I comment out the passing one, the failing one passes. Moreover, if …

---

## [How much to charge for a freelance project in ruby in the st](https://www.ruby-forum.com/t/how-much-to-charge-for-a-freelance-project-in-ruby-in-the-st/107808)

<div class="topic-metadata">

**Author:** [@urielka](https://www.ruby-forum.com/u/urielka)\
**Replies:** 8\
**Last updated:** [June 26, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/how-much-to-charge-for-a-freelance-project-in-ruby-in-the-st/107808 "2007-06-26T22:11:31Z")

</div>

i work in Israel and i wanted to know how much should i charge per hour for a freelance project in ruby in USA. here in Israel a freelance charge for hour is about 30$ but i think that is too low for USA. also i am g…

---

## [Gecode/R 0.3.0](https://www.ruby-forum.com/t/gecode-r-0-3-0/107851)

<div class="topic-metadata">

**Author:** [@andreas\_l](https://www.ruby-forum.com/u/andreas_l)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/gecode-r-0-3-0/107851 "2007-06-26T21:57:29Z")

</div>

Gecode/R version 0.3.0 has been released. http://gecoder.rubyforge.org/ It’s still early in the development, so don’t expect any form of backwards compatibility (things will change left and right if needed to). == W…

---

## [Trac](https://www.ruby-forum.com/t/trac/107752)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/trac/107752 "2007-06-26T20:55:16Z")

</div>

Thanks to the PragProgs, I’ve been using Subversion\[1\] for a while now. Recently, I’ve started working with a couple of other programmers, and I started looking for svn hosting. I experimented with a couple of free …

---

## [Ruby/Tk - simple task that I'm srtuck](https://www.ruby-forum.com/t/ruby-tk-simple-task-that-im-srtuck/107807)

<div class="topic-metadata">

**Author:** [@val](https://www.ruby-forum.com/u/val)\
**Replies:** 4\
**Last updated:** [June 26, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/ruby-tk-simple-task-that-im-srtuck/107807 "2007-06-26T20:33:35Z")

</div>

I have: $lb\_1 = TkLabel.new(root){…} - label bt\_toss=TkButton.new(root){…} - button I want when I press the button: 1. label’s background is changed to blue 2. display changed label’s background …

---

## [When i using "rubyscript2exe", occur error](https://www.ruby-forum.com/t/when-i-using-rubyscript2exe-occur-error/107777)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 5\
**Last updated:** [June 26, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/when-i-using-rubyscript2exe-occur-error/107777 "2007-06-26T18:00:54Z")

</div>

When i using the “rubyscript2exe”, there occur error. Because i cannot use any picture in the project. How can i put picture in my project that no error after built the .exe file???

---

## [Watir Read javascript popups contents](https://www.ruby-forum.com/t/watir-read-javascript-popups-contents/107835)

<div class="topic-metadata">

**Author:** [@dionsis](https://www.ruby-forum.com/u/dionsis)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/watir-read-javascript-popups-contents/107835 "2007-06-26T17:15:33Z")

</div>

am looking to evaluate the contents of a javascript popup using watir, i have googled around heavily and found some code that people suggest would work but nothing i have tried so far works, the only thing i have foun…

---

## [Multiple Instance of rand?](https://www.ruby-forum.com/t/multiple-instance-of-rand/107695)

<div class="topic-metadata">

**Author:** [@are](https://www.ruby-forum.com/u/are)\
**Replies:** 5\
**Last updated:** [June 26, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/multiple-instance-of-rand/107695 "2007-06-26T16:58:42Z")

</div>

Is it possible to have multiple instances Ruby’s random-number generator running within one program? I would like to have different random sequences, each with its own seed.

---

## [Fwd: Please Forward: Ruby Quiz Submission LSRC Name Picker](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-lsrc-name-picker/107828)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-lsrc-name-picker/107828 "2007-06-26T16:42:41Z")

</div>

Begin forwarded message: Regards Florian http://rubyquiz.com/hosted\_solutions/129/florian/lsrc.zip

---

## [Last week of last On Ruby/Apress blogging contest](https://www.ruby-forum.com/t/last-week-of-last-on-ruby-apress-blogging-contest/107821)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/last-week-of-last-on-ruby-apress-blogging-contest/107821 "2007-06-26T15:32:35Z")

</div>

If you haven’t entered the June blogging contest over at: it’s coming down to the wire. We’re looking for blog posts about your favorite gem (besides Rails) – tell us what you’re using it for, tell us why you like …

---

## [How to make the .exe file insert to the diskette](https://www.ruby-forum.com/t/how-to-make-the-exe-file-insert-to-the-diskette/107776)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-make-the-exe-file-insert-to-the-diskette/107776 "2007-06-26T15:27:35Z")

</div>

I using the “rubyscript2exe” to built my project to .exe format. But the .exe file is around 3.3mb - 6.6mb. So i cannot save the file into my diskatte. Can i built the .exe file that size is around 1mb???

---

## [Avoiding nil.methodcalls short and cheap](https://www.ruby-forum.com/t/avoiding-nil-methodcalls-short-and-cheap/107507)

<div class="topic-metadata">

**Author:** [@rossnet](https://www.ruby-forum.com/u/rossnet)\
**Replies:** 16\
**Last updated:** [June 26, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/avoiding-nil-methodcalls-short-and-cheap/107507 "2007-06-26T15:11:32Z")

</div>

Hi, I often have to check if a methodcall A is not returning nil before calling another method on the return value of the methodcall A. I’m looking for a short and cheap (avoiding to call method A two times like in t…

---

## [I need some help clarifying issues with YAML and hashes](https://www.ruby-forum.com/t/i-need-some-help-clarifying-issues-with-yaml-and-hashes/107805)

<div class="topic-metadata">

**Author:** [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/i-need-some-help-clarifying-issues-with-yaml-and-hashes/107805 "2007-06-26T15:04:31Z")

</div>

The code below, config.yml and testvars.rb are supposed to created some arrays and hashes. When I assign the directory1 and directory2 hashes directly into dirArray : dirname.each { | k | dirArray = k } dirArray d…

---

## ["".clear dumps core](https://www.ruby-forum.com/t/clear-dumps-core/107814)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/clear-dumps-core/107814 "2007-06-26T14:31:28Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B 1.9 e$B$G0J2\<$N$h$&$K$9$k$HMn$A$^$9!#e(B $ ./ruby -e ‘"".clear’ \*\*\* glibc detected \*\*\* free(): invalid pointer: 0xb7ce7ebc \*\*\* e$B%"%!\<%H$7$^$7$?e(B (core dumped) e$BB\>$N$H$3$m$N%3!\<%I$+$i?dB,…

---

## [Default IRB Directory](https://www.ruby-forum.com/t/default-irb-directory/106677)

<div class="topic-metadata">

**Author:** [@rpgaction](https://www.ruby-forum.com/u/rpgaction)\
**Replies:** 6\
**Last updated:** [June 26, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/default-irb-directory/106677 "2007-06-26T14:11:26Z")

</div>

I’m new to Ruby, and I’ve never used a similar language that could be executed from the command line, so I’m pretty clueless in these first couple of steps, and I hope that you’ll help me here. Is there a way under Wi…

---

## [Building ruby with bcc32](https://www.ruby-forum.com/t/building-ruby-with-bcc32/107811)

<div class="topic-metadata">

**Author:** [@yusufcelik](https://www.ruby-forum.com/u/yusufcelik)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/building-ruby-with-bcc32/107811 "2007-06-26T13:57:47Z")

</div>

Hi, Has anybody tried to build ruby using bcc32? I tried and followed the steps. Here what I’ve got D:\\Ruby\_test\_ver\>bcc32\\configure.bat MAKE Version 5.2 Copyright (c) 1987, 2000 Borland MAKE Version 5.2 Copyrigh…

---

## [Setting consolefont for text output](https://www.ruby-forum.com/t/setting-consolefont-for-text-output/107717)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 1:02pm UTC](https://www.ruby-forum.com/t/setting-consolefont-for-text-output/107717 "2007-06-26T13:02:13Z")

</div>

Hi, I was wondering if there is a way in linux to output text in cp437 with my ruby script. Is there at all a way to influence the font within ruby in a console? – greets one must still have chaos …

---

## [Some help needed with understanding ruby hashes](https://www.ruby-forum.com/t/some-help-needed-with-understanding-ruby-hashes/107773)

<div class="topic-metadata">

**Author:** [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Replies:** 7\
**Last updated:** [June 26, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/some-help-needed-with-understanding-ruby-hashes/107773 "2007-06-26T12:56:12Z")

</div>

If a ruby hash rubyhash has a key such as “hashkey” is there a way of retrieving the value by the expression rubyhash\[“hashkey”\] ? It only seems logical that is rubyhash.has\_key?(“hashkey”) returns true rubyhash\[“hash…

---

## [Bee 0.4.0 Released](https://www.ruby-forum.com/t/bee-0-4-0-released/107798)

<div class="topic-metadata">

**Author:** [@mangoosta](https://www.ruby-forum.com/u/mangoosta)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/bee-0-4-0-released/107798 "2007-06-26T12:12:08Z")

</div>

Bee is a build tool running YAML files. These build files have a clean syntax à la Ant and run as fast as make. They are made of shell commands, Ruby code or Bee tasks for platform independent builds. Hello World exam…

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

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