# Ruby

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

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

---

## [Nubie question](https://www.ruby-forum.com/t/nubie-question/110705)

<div class="topic-metadata">

**Author:** [@Mac\_Pat](https://www.ruby-forum.com/u/Mac_Pat)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 1:09am UTC](https://www.ruby-forum.com/t/nubie-question/110705 "2007-07-30T01:09:30Z")

</div>

I am trying to learn Ruby and I have read the picax book at least twice and seems to understand most of what is said in the book. Now I am reading through some of the code written that I down loaded. I saw some code …

---

## [Hpricot and xpath doesn't work like they should ?!?](https://www.ruby-forum.com/t/hpricot-and-xpath-doesnt-work-like-they-should/110693)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 5\
**Last updated:** [July 29, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/hpricot-and-xpath-doesnt-work-like-they-should/110693 "2007-07-29T22:13:14Z")

</div>

hi, I wanted to write me a little console tv-guide with ruby and hpricot. I installed the firefox xpath checker plugin and went to http://www.klack.de/TvEvening1.php3?HPTFRAME=%2FTvAtEvening.php3 . Then I checked the…

---

## [Protect objects of a C extension from GC](https://www.ruby-forum.com/t/protect-objects-of-a-c-extension-from-gc/110677)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 29, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/protect-objects-of-a-c-extension-from-gc/110677 "2007-07-29T17:23:38Z")

</div>

Hi, I’m writing on a video procession system. In this i have a C extension, which creates ruby objects that encapsulate images. This objects are passed with some ruby code to an other C extension which shall store th…

---

## [Quarks](https://www.ruby-forum.com/t/quarks/110640)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 9\
**Last updated:** [July 29, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/quarks/110640 "2007-07-29T14:51:28Z")

</div>

Why? class X; end X.methods(false) =\> \[\] But… X.public\_methods(false) =\> \[“allocate”, “superclass”, “new”\] X.private\_methods(false) =\> \[“initialize”, “initialize\_copy”, “inherited”\] T.

---

## [How can i use a ruby class in object way](https://www.ruby-forum.com/t/how-can-i-use-a-ruby-class-in-object-way/110417)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 10\
**Last updated:** [July 29, 2007, 11:12am UTC](https://www.ruby-forum.com/t/how-can-i-use-a-ruby-class-in-object-way/110417 "2007-07-29T11:12:54Z")

</div>

hello: can you help me ?we all know that we can use a class’object in main method in java,but how can i use a class’object after designing a class in ruby? i only know i can make an object and use it after having a …

---

## [Ruby Gems](https://www.ruby-forum.com/t/ruby-gems/110669)

<div class="topic-metadata">

**Author:** [@eizesus](https://www.ruby-forum.com/u/eizesus)\
**Replies:** 0\
**Last updated:** [July 29, 2007, 10:07am UTC](https://www.ruby-forum.com/t/ruby-gems/110669 "2007-07-29T10:07:27Z")

</div>

Hi all, is there any good tutorial on how to create a gem?

---

## [Icanhasaudio 0.0.2 Released](https://www.ruby-forum.com/t/icanhasaudio-0-0-2-released/110665)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [July 29, 2007, 6:23am UTC](https://www.ruby-forum.com/t/icanhasaudio-0-0-2-released/110665 "2007-07-29T06:23:41Z")

</div>

O HAI! Monorail cat says: icanhasaudio version 0.0.2 has been released! http://seattlerb.rubyforge.org/ Hai! icanhasaudio? is an interface to lame for decoding ur MP3s. I iz in ur computer. Decodin ur mp3s. What…

---

## [Faster Bignum#to\_s](https://www.ruby-forum.com/t/faster-bignum-to-s/110667)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [July 29, 2007, 5:27am UTC](https://www.ruby-forum.com/t/faster-bignum-to-s/110667 "2007-07-29T05:27:38Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B Karatsuba e$B$N4p?tJQ49%"%k%4%j%:%\`$Ge(B Bignum#to\_s e$B$r9bB.2=$9$k%Q%C%A$re(B e$B=q$-$^$7$?!#2?@i7e$b$"$k$h$&$JBg$-$Je(B Bignum e$B$NI=\<($,B.$/$J$j$^$9!#e(B (e$B$=$&$$$&$3$H$r$7$?$$$3$H$,$I$…

---

## [Best OS-X GUI creator for non-programmer](https://www.ruby-forum.com/t/best-os-x-gui-creator-for-non-programmer/110648)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 15\
**Last updated:** [July 29, 2007, 4:18am UTC](https://www.ruby-forum.com/t/best-os-x-gui-creator-for-non-programmer/110648 "2007-07-29T04:18:34Z")

</div>

I’ve written a relatively simple script which has about five files/directories that need to be selected and several other options. They are currently manually set in the script, i.e., as variables. I’d like to have a …

---

## [YAML problem with Method pointers](https://www.ruby-forum.com/t/yaml-problem-with-method-pointers/110647)

<div class="topic-metadata">

**Author:** [@lfast](https://www.ruby-forum.com/u/lfast)\
**Replies:** 2\
**Last updated:** [July 29, 2007, 3:20am UTC](https://www.ruby-forum.com/t/yaml-problem-with-method-pointers/110647 "2007-07-29T03:20:14Z")

</div>

It looks like YAML can’t restore a Method pointer. True? Or am I doing something wrong here. Is this a known Ruby bug or a limitation of YAML or a Larry-is-a-goof problem? The following code frag fails on the last l…

---

## [FileUtils in widows](https://www.ruby-forum.com/t/fileutils-in-widows/110656)

<div class="topic-metadata">

**Author:** [@jdruse](https://www.ruby-forum.com/u/jdruse)\
**Replies:** 5\
**Last updated:** [July 29, 2007, 2:51am UTC](https://www.ruby-forum.com/t/fileutils-in-widows/110656 "2007-07-29T02:51:29Z")

</div>

I am fairly new to ruby and am working with windows xp. I’m trying to copy files from one directory to another using the FileUtils module. When I run the program, I get a Permission Denied error (EACCES). Any though…

---

## [Checking if machine is 64-bit](https://www.ruby-forum.com/t/checking-if-machine-is-64-bit/110645)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 10\
**Last updated:** [July 29, 2007, 1:39am UTC](https://www.ruby-forum.com/t/checking-if-machine-is-64-bit/110645 "2007-07-29T01:39:25Z")

</div>

Hello, I am checking if the machine is 64-bit by doing this: require ‘rbconfig’ is\_machine\_64\_bit = ( Config::CONFIG\[“arch”\] =~ /64/ ) Is there a better way? Thanks.

---

## [Need help to install FileMagic on Ubuntu Fiesty](https://www.ruby-forum.com/t/need-help-to-install-filemagic-on-ubuntu-fiesty/110655)

<div class="topic-metadata">

**Author:** [@sams](https://www.ruby-forum.com/u/sams)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 11:31pm UTC](https://www.ruby-forum.com/t/need-help-to-install-filemagic-on-ubuntu-fiesty/110655 "2007-07-28T23:31:10Z")

</div>

I’m trying to install FileMagic on Ubuntu. I’ve done this a number of times on OS X (swapping out apt-get for macports) like so: $ apt-get install file $ curl -O http://grub.ath.cx/filemagic/ruby-filemagic-0.1.1.tar.g…

---

## [OCI.dll was not found error](https://www.ruby-forum.com/t/oci-dll-was-not-found-error/110584)

<div class="topic-metadata">

**Author:** [@maung](https://www.ruby-forum.com/u/maung)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/oci-dll-was-not-found-error/110584 "2007-07-28T22:39:42Z")

</div>

Hi all, While I was trying to run a ruby file, I got the following error message box: ruby.exe - unable to locate component This application has failed to start because oci.dll was not found. Re-installing the appli…

---

## [Great new site for IT GURUS - www.itkong.com](https://www.ruby-forum.com/t/great-new-site-for-it-gurus-www-itkong-com/110654)

<div class="topic-metadata">

**Author:** [@itkong](https://www.ruby-forum.com/u/itkong)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/great-new-site-for-it-gurus-www-itkong-com/110654 "2007-07-28T22:36:07Z")

</div>

Check out this site - WWW.ITKONG.COM. Focused solely on the community of IT specialists, web developers, technological experts, companies and individuals alike. Currently we are up and running in our beta phase, ta…

---

## [Shut up, RDoc!](https://www.ruby-forum.com/t/shut-up-rdoc/110632)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [July 28, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/shut-up-rdoc/110632 "2007-07-28T22:05:03Z")

</div>

Can someone please tell me how shut RDoc up. Every time I run it I get: lib/facets.rb:49:29: Skipping require of dynamic string: “facets/ #{lib}” I’ve tried everything I can think of to suppress this output. Thanks, …

---

## [Bug on resolv.rb? or I'm just a newbe?](https://www.ruby-forum.com/t/bug-on-resolv-rb-or-im-just-a-newbe/110642)

<div class="topic-metadata">

**Author:** [@urubatan](https://www.ruby-forum.com/u/urubatan)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/bug-on-resolv-rb-or-im-just-a-newbe/110642 "2007-07-28T21:29:28Z")

</div>

I can’t get the point in this problem … this code works fine … require ‘resolv’ r = Resolv::DNS.new puts r.getaddress(“www.google.com”) r.each\_resource(“urubatan.com.br”, Resolv::DNS::Resource::IN::A) { |mx| puts m…

---

## [Issue with gem](https://www.ruby-forum.com/t/issue-with-gem/110615)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 6\
**Last updated:** [July 28, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/issue-with-gem/110615 "2007-07-28T20:07:52Z")

</div>

whenever I install something via gem which presents a menu of options to me (versions, and ‘ruby’ vs ‘mswin32’ , I make my selection and it gives me this: 1 Building native extensions. This could take a while… ext…

---

## [How to delete array element and add to previous element](https://www.ruby-forum.com/t/how-to-delete-array-element-and-add-to-previous-element/110516)

<div class="topic-metadata">

**Author:** [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Replies:** 18\
**Last updated:** [July 28, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/how-to-delete-array-element-and-add-to-previous-element/110516 "2007-07-28T18:56:27Z")

</div>

Hello, I have an array that has elements that are arrays. It looks like this(I’ll call it array), it has: \[ \[POS1, POS2a, POS2b, POS3, POS4\], # this array is in position array\[0\] \[POS2c, POS2d, POS2e\], …

---

## [Why is it so hard to kill Ruby?](https://www.ruby-forum.com/t/why-is-it-so-hard-to-kill-ruby/110398)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 15\
**Last updated:** [July 28, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/why-is-it-so-hard-to-kill-ruby/110398 "2007-07-28T18:51:35Z")

</div>

Since I’ve been using Ruby I’ve noticed that a running Ruby script is hard to kill. Control-C won’t do it. I have to use kill -9. Today I notice it with Ruby 1.8.6 on OS X 10.4.9, but it’s been this way since I starte…

---

## [Finding un-escaped characters in scan()](https://www.ruby-forum.com/t/finding-un-escaped-characters-in-scan/110630)

<div class="topic-metadata">

**Author:** [@no137b](https://www.ruby-forum.com/u/no137b)\
**Replies:** 9\
**Last updated:** [July 28, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/finding-un-escaped-characters-in-scan/110630 "2007-07-28T18:09:31Z")

</div>

I have a string that looks like this: “test,test”. And I’m trying to count the commas which don’t follow a . But when using scan(/\[^\\\],/) it only finds the first comma. I think this is because after scan() has found …

---

## [Organizing My Ruby Code - Do I use modules](https://www.ruby-forum.com/t/organizing-my-ruby-code-do-i-use-modules/110576)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 28, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/organizing-my-ruby-code-do-i-use-modules/110576 "2007-07-28T18:07:31Z")

</div>

I need a little help determining the best way to organize my Ruby code. I’ve got a script I’m writing. Lets call it somecoolscript.rb. I have also created three (3) utility classes that I need to use in somecoolscript…

---

## [Usage patterns and trusted libraries](https://www.ruby-forum.com/t/usage-patterns-and-trusted-libraries/110512)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 12\
**Last updated:** [July 28, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/usage-patterns-and-trusted-libraries/110512 "2007-07-28T15:57:19Z")

</div>

Hi y’all, This may end up being regarded as an incendiary posting, but it’s not meant to be. This is just an observation from a relative Ruby (in general) and Rails (in particular) newb. So I’m beavering away at my l…

---

## [How to generated integrated (core+stdlib+otherlib) documenta](https://www.ruby-forum.com/t/how-to-generated-integrated-core-stdlib-otherlib-documenta/110616)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 10:10am UTC](https://www.ruby-forum.com/t/how-to-generated-integrated-core-stdlib-otherlib-documenta/110616 "2007-07-28T10:10:50Z")

</div>

Is it possible to set up and run rdoc in such a manner that core api documentation, standard library documentation, and documentation for other installed libraries, is all generated and installed on my system as an in…

---

## [Report: broken link to chad's site](https://www.ruby-forum.com/t/report-broken-link-to-chads-site/110624)

<div class="topic-metadata">

**Author:** [@Arie\_Kusuma\_A](https://www.ruby-forum.com/u/Arie_Kusuma_A)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 9:59am UTC](https://www.ruby-forum.com/t/report-broken-link-to-chads-site/110624 "2007-07-28T09:59:50Z")

</div>

From here: http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html this one is broken: http://www.chadfowler.com/ruby/drb.html and this one has no article found: File not found: http://www.rubycentral.com/book/o…

---

## [Re: beginner Q](https://www.ruby-forum.com/t/re-beginner-q/110514)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 13\
**Last updated:** [July 28, 2007, 9:22am UTC](https://www.ruby-forum.com/t/re-beginner-q/110514 "2007-07-28T09:22:48Z")

</div>

I don’t know about hh’s implementation but how about irb(main):003:0\> print “foo:”; gets().split foo:this is a test =\> \[“this”, “is”, “a”, “test”\] Also, look at highline at http://highline.rubyforge.org/ Johnny P —…

---

## [N00b if condition quest](https://www.ruby-forum.com/t/n00b-if-condition-quest/110509)

<div class="topic-metadata">

**Author:** [@licinius](https://www.ruby-forum.com/u/licinius)\
**Replies:** 10\
**Last updated:** [July 28, 2007, 1:48am UTC](https://www.ruby-forum.com/t/n00b-if-condition-quest/110509 "2007-07-28T01:48:20Z")

</div>

I’m sure theres a way, so how does one do: if (a = b or a = c or a = d or a = f) in a shorter, easier to view if (a = (b c d or f)) kind of way?

---

## ["stack level too deep" when getting SHA-1 hash](https://www.ruby-forum.com/t/stack-level-too-deep-when-getting-sha-1-hash/110590)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 27, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep-when-getting-sha-1-hash/110590 "2007-07-27T23:54:07Z")

</div>

Here is a session I had with irb: \[200\]~% irb irb(main):001:0\> require ‘digest/sha1’ =\> true irb(main):002:0\> Digest::Sha1.new.hexdigest(‘fdjslk’) SystemStackError: stack level too deep from d:/ruby/lib/ruby/1.8/di…

---

## [Facets error while using Time.parse](https://www.ruby-forum.com/t/facets-error-while-using-time-parse/110583)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [July 27, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/facets-error-while-using-time-parse/110583 "2007-07-27T23:53:07Z")

</div>

I have install latest facets using gem. I am having this issue with Time.parse with facets. Any ideas? \[spatel@taamserver ~\]$ ruby --version ruby 1.8.6 (2007-06-07 patchlevel 36) \[i686-linux\] Everything is fine here: …

---

## [Some issues with Ruby](https://www.ruby-forum.com/t/some-issues-with-ruby/110593)

<div class="topic-metadata">

**Author:** [@airmind](https://www.ruby-forum.com/u/airmind)\
**Replies:** 2\
**Last updated:** [July 27, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/some-issues-with-ruby/110593 "2007-07-27T23:32:46Z")

</div>

Hi, I’m having a couple of issues, unfortunately I couldn’t find anything on the internet. I’m using Ubuntu 7.04, with Ruby 1.8 installed with Synaptic. My irb doesnt autocomplete objects. When I press TAB, it auto…

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

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