# Ruby

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

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

---

## [Problem using pstore with multi-users](https://www.ruby-forum.com/t/problem-using-pstore-with-multi-users/66935)

<div class="topic-metadata">

**Author:** [@noam](https://www.ruby-forum.com/u/noam)\
**Replies:** 11\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/problem-using-pstore-with-multi-users/66935 "2006-09-04T14:43:46Z")

</div>

Hi all, when i’m using pstore with multi-users: Permission denied - …/comments.dat.new it seems that more then one user is asking to use the same file. i tried to use synchronize for locking the transaction until it…

---

## [NetBSD $B$G(B 1.8.5 $B$r:n$k$H(B site\_ruby $B$r8+$F$/$](https://www.ruby-forum.com/t/netbsd-b-g-b-1-8-5-b-r-n-k-h-b-site-ruby-b-r8-f/66762)

<div class="topic-metadata">

**Author:** [@GOTO\_Kentaro](https://www.ruby-forum.com/u/GOTO_Kentaro)\
**Replies:** 3\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/netbsd-b-g-b-1-8-5-b-r-n-k-h-b-site-ruby-b-r8-f/66762 "2006-09-04T14:43:42Z")

</div>

e$B$$$A$\*$&Js9p!#e(BNetBSD e$B$Ge(B ruby-1.8.5.tar.gz e$B$+$i%S%k%I$9$k$H!"e(B configure e$B$N$H$-$Ke(B config.h e$B$Ne(B RUBY\_SITE\_LIB e$B$,6u$K$J$C$F$7$^$$!"e(B e$B3Fe(B site\_ruby e$B$,e(B $: e$B$K4^$^$l$^$;$s!#e(B …

---

## [Integer to byte string - Speed improvements](https://www.ruby-forum.com/t/integer-to-byte-string-speed-improvements/67110)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 9\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/integer-to-byte-string-speed-improvements/67110 "2006-09-04T14:43:41Z")

</div>

I’m writing code that needs to store an integer as a sequence of bytes. Array#pack works for 1-, 2-, and 4-byte integers, but I want to be able to support Bignums as well. I have working code below. I’m happy with it.…

---

## [Default value?](https://www.ruby-forum.com/t/default-value/67422)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/default-value/67422 "2006-09-04T14:43:40Z")

</div>

i’m writting a C ext to Ruby. i want the User from ruby being able to pass 1 or 2 arg(s) to this ruby, without any Ruby wraper. i know that in standard C their is no way to have a function with default value. since …

---

## [Time#rfc2822](https://www.ruby-forum.com/t/time-rfc2822/67381)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 10\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/time-rfc2822/67381 "2006-09-04T14:43:40Z")

</div>

e$B$U$J$P$G$9!#e(B e$B\<ALd$G$9$,!“e(BTime#rfc2822 e$B$O!“e(BUTC e$B$N\>l9g!”;~:9$r$”$($Fe(B ‘-0000’ e$B$K$7$F$$e(B e$B$k$h$&$G$9$,!"$3$l$O2?8N$G$7$g$&!#e(B ‘-0000’ e$B$@$H!";~:9\>pJs$,$J$$$H$$$&0UL#$K$J$k$h$&$J5$$,$9$…

---

## [RegExp issues](https://www.ruby-forum.com/t/regexp-issues/67311)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 13\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/regexp-issues/67311 "2006-09-04T14:43:37Z")

</div>

I am trying to validate user input so it contains only letters, numbers, underscores and dashes. I am using this regexp:/\[A-Z0-9\_-\]/. However, when I type in ‘hello’ in the field, it says that it doesn’t match the reg…

---

## [Right way to partly upgrade standard library?](https://www.ruby-forum.com/t/right-way-to-partly-upgrade-standard-library/67317)

<div class="topic-metadata">

**Author:** [@graham\_w](https://www.ruby-forum.com/u/graham_w)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/right-way-to-partly-upgrade-standard-library/67317 "2006-09-04T14:43:28Z")

</div>

Folks: Following on from my discovery that the 1.9 version of Pathname is needed for Windows, what’s the right way to incorporate that file into a 1.8.4 setup while avoiding disruption? Should I replace the existin…

---

## [AIX 5.3 ruby-1.8.5 Binaries](https://www.ruby-forum.com/t/aix-5-3-ruby-1-8-5-binaries/67295)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/aix-5-3-ruby-1-8-5-binaries/67295 "2006-09-04T14:43:28Z")

</div>

I tried compiling ruby-1.8.5 on AIX5.3 and evrytime it fsils saying “unable to compute size of rlim\_t” during the configure command. I was wondering if anybody was able to compile ruby on AIX5.3 and have its binaries

---

## [Method\_missing in Ruby 1.9.0](https://www.ruby-forum.com/t/method-missing-in-ruby-1-9-0/67375)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/method-missing-in-ruby-1-9-0/67375 "2006-09-04T14:43:27Z")

</div>

e$B=uED$G$9!#e(B e$B\<!$N%9%/%j%W%H$,!"e(Bruby 1.9.0 (2006-09-03)e$B$Ge(B falsee$B$H=PNO$5$l$^$9!#e(B class Foo def method\_missing(id, \*arg) p id # =\> false end end foo = Foo.new foo.visible = true e$B\<B9T7k2Le(…

---

## [Debugger problem on windows xp](https://www.ruby-forum.com/t/debugger-problem-on-windows-xp/67403)

<div class="topic-metadata">

**Author:** [@randw](https://www.ruby-forum.com/u/randw)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 3:10am UTC](https://www.ruby-forum.com/t/debugger-problem-on-windows-xp/67403 "2006-09-04T03:10:37Z")

</div>

I am new to Ruby and have just tried using the debugger for the first time. Unfortunately, the result is nothing like I expected. Here is the first part of session: C:\\ruby\\ruby4rails\>ruby -r debug c2fi.rb Debug.rb …

---

## [\[ANN\] Exporting Netvibes bookmarks to Del.icio.us](https://www.ruby-forum.com/t/ann-exporting-netvibes-bookmarks-to-del-icio-us/67398)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 0\
**Last updated:** [September 3, 2006, 10:20pm UTC](https://www.ruby-forum.com/t/ann-exporting-netvibes-bookmarks-to-del-icio-us/67398 "2006-09-03T22:20:49Z")

</div>

Here is a script for importing bookmarks into Delicious in Ruby. It also includes how to export bookmarks from Netvibes. I’ve used Netvibes bookmarks for 12 mths, and accumulated 250 of them. Glad I didn’t have to mig…

---

## [Soap/wsdl/betfair](https://www.ruby-forum.com/t/soap-wsdl-betfair/66099)

<div class="topic-metadata">

**Author:** [@tad](https://www.ruby-forum.com/u/tad)\
**Replies:** 10\
**Last updated:** [September 3, 2006, 6:07pm UTC](https://www.ruby-forum.com/t/soap-wsdl-betfair/66099 "2006-09-03T18:07:07Z")

</div>

Hi, I have been making a foray into the world of SOAP/WSDL etc and having been encouraged with the success of running the googleapi demo code, I thought I would have a go with Betfair. Alas, things are not going well…

---

## [Stalled Rubyist](https://www.ruby-forum.com/t/stalled-rubyist/67374)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 6\
**Last updated:** [September 3, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/stalled-rubyist/67374 "2006-09-03T17:49:13Z")

</div>

Hi Folks, I’m still enjoying Ruby now after about six months of learning ruby and rails together. I’m doing well at continuing my understanding of how to get the most out of Rails, but I feel like I’ve hit a bit of a…

---

## [Mem\_inspect and png](https://www.ruby-forum.com/t/mem-inspect-and-png/67140)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 7\
**Last updated:** [September 3, 2006, 4:13am UTC](https://www.ruby-forum.com/t/mem-inspect-and-png/67140 "2006-09-03T04:13:38Z")

</div>

I’m pleased to announce to new libraries written by members of the Seattle Ruby Brigade, mem\_inspect and png! === mem\_inspect is ObjectSpace.each\_object on crack. mem\_inspect gives you the contents of each slot in R…

---

## [System](https://www.ruby-forum.com/t/system/67376)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 0\
**Last updated:** [September 3, 2006, 3:05am UTC](https://www.ruby-forum.com/t/system/67376 "2006-09-03T03:05:35Z")

</div>

e$B$U$J$P$G$9!#e(B e$B\<ALd$G$9$,!"e(B system “date\\000date” e$B$OLdBj$J$/\<B9T$G$-$^$9!#e(Bexec e$B$de(B spawn e$B$bF1$8$h$&$G$9!#e(B date\\000date e$B$O!"e(B1.8 e$B$G$O%(%i!\<$K$J$j$^$;$s$,!"e(B1.9 e$B$G$O%(%i!\<$K$J$…

---

## [DateBocks 2.0.1 - Bugfix Edition](https://www.ruby-forum.com/t/datebocks-2-0-1-bugfix-edition/65773)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 27\
**Last updated:** [September 3, 2006, 2:19am UTC](https://www.ruby-forum.com/t/datebocks-2-0-1-bugfix-edition/65773 "2006-09-03T02:19:31Z")

</div>

About DateBocks DateBocks is a pure JavaScript library using DHTML and advanced date parsing to generate the date based on the grammar passed. The purpose of DateBocks is to simplify the date entering process using …

---

## [That's Ruby, Virginia!](https://www.ruby-forum.com/t/thats-ruby-virginia/66313)

<div class="topic-metadata">

**Author:** [@henrys](https://www.ruby-forum.com/u/henrys)\
**Replies:** 17\
**Last updated:** [September 2, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/thats-ruby-virginia/66313 "2006-09-02T23:34:23Z")

</div>

Well, you wrote a great Array Analyzer Here it is: def array\_101 for i in \[0 … self.length\] puts “#{i} =\> #{self\[i\]}” end end And prepared the following array for test: a = \[‘a’,‘s’,‘d’\] What do you think, it wi…

---

## [When clever is stupid](https://www.ruby-forum.com/t/when-clever-is-stupid/67273)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 26\
**Last updated:** [September 2, 2006, 11:25pm UTC](https://www.ruby-forum.com/t/when-clever-is-stupid/67273 "2006-09-02T23:25:14Z")

</div>

Some time in the past, I wrote a line of code. It looked like this: if pu : pu = pu.url.to\_s != ‘’ ? pu : nil end There is sat, working fine, for a long time. Today, I was editing the code, doing a variation on it f…

---

## [A selfish ruby question](https://www.ruby-forum.com/t/a-selfish-ruby-question/67277)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 5\
**Last updated:** [September 2, 2006, 11:11pm UTC](https://www.ruby-forum.com/t/a-selfish-ruby-question/67277 "2006-09-02T23:11:12Z")

</div>

why is it that: class Akill def astop(seq) self.select{|astop| astop.first==seq}.collect end end =\> nil grr.astop(b\[0\]) i get this error… NoMethodError: private method select' called for #\<Akill:0x2dd01f8\> f…

---

## [How can I ask to which module a method belongs to?](https://www.ruby-forum.com/t/how-can-i-ask-to-which-module-a-method-belongs-to/67197)

<div class="topic-metadata">

**Author:** [@dk3qu](https://www.ruby-forum.com/u/dk3qu)\
**Replies:** 3\
**Last updated:** [September 2, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/how-can-i-ask-to-which-module-a-method-belongs-to/67197 "2006-09-02T23:05:11Z")

</div>

Hi List, more questions from a Ruby-Newbie… Sam R. from Ruby-Core answered to my original question: irb(main):001:0\> s = “hi” Cheers, Sam That is good news to me. But now I wonder, if and how I can ask e.g. Stri…

---

## [Rescuing a 'require'](https://www.ruby-forum.com/t/rescuing-a-require/67161)

<div class="topic-metadata">

**Author:** [@Garance\_A\_Drosehn](https://www.ruby-forum.com/u/Garance_A_Drosehn)\
**Replies:** 5\
**Last updated:** [September 2, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/rescuing-a-require/67161 "2006-09-02T22:41:10Z")

</div>

I wanted to use Socket.gethostname to get the current hostname without executing a unix command. So: require ‘socket’ $this\_host = Socket.gethostname I have to run this code on several platforms, and it turned out t…

---

## [Rdoc problem](https://www.ruby-forum.com/t/rdoc-problem/66721)

<div class="topic-metadata">

**Author:** [@henrys](https://www.ruby-forum.com/u/henrys)\
**Replies:** 9\
**Last updated:** [September 2, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/rdoc-problem/66721 "2006-09-02T22:22:06Z")

</div>

Playing with rdoc, I found, that it works ONLY for =begin/=end rdoc block. More, if the file starts from regular comment #, even the block =begin/=end does not work. Please, help This is the code: \<\<\<\<CODE STARTS (t…

---

## [Yielding a block to another block](https://www.ruby-forum.com/t/yielding-a-block-to-another-block/67364)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 4\
**Last updated:** [September 2, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/yielding-a-block-to-another-block/67364 "2006-09-02T22:19:06Z")

</div>

Hi all, The mocking framework in rspec uses method\_missing to capture all the messages sent to it, comparing the message to a list of expected messages. For various reasons I’m trying to rework this so that instead o…

---

## [How can I do this without eval](https://www.ruby-forum.com/t/how-can-i-do-this-without-eval/67305)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 5\
**Last updated:** [September 2, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/how-can-i-do-this-without-eval/67305 "2006-09-02T22:19:06Z")

</div>

def load\_default\_attributes(model\_name, options = {}) fixture = options\[:fixture\] || :default attributes = temp\_attributes = model = {} instance\_eval \<\<-FIN temp\_attributes = #{model\_name.to\_s.pluralize}("#{fixture}"…

---

## [Class behaviour](https://www.ruby-forum.com/t/class-behaviour/67358)

<div class="topic-metadata">

**Author:** [@glub](https://www.ruby-forum.com/u/glub)\
**Replies:** 4\
**Last updated:** [September 2, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/class-behaviour/67358 "2006-09-02T20:57:01Z")

</div>

Just curious, can I write a class that can check values as they are assigned to objects? foo = Klass.new foo.legal\_values = (4…10) foo.value = 5 # OK foo.value = 11 # ERROR - out of bounds, raise exception or somet…

---

## [Integer(nil) versus Float(nil) versus String(nil)](https://www.ruby-forum.com/t/integer-nil-versus-float-nil-versus-string-nil/66203)

<div class="topic-metadata">

**Author:** [@Christoffer\_S](https://www.ruby-forum.com/u/Christoffer_S)\
**Replies:** 6\
**Last updated:** [September 2, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/integer-nil-versus-float-nil-versus-string-nil/66203 "2006-09-02T20:32:56Z")

</div>

Dear Rubyists, def x() yield rescue :error end \[ x { Integer(nil) }, x { Float(nil) }, x{ String(nil) } \] =\> \[0, :error, “”\] Isn’t that a bit inconsistent? Cheers,

---

## [Catch all method... e.g perl's autoload](https://www.ruby-forum.com/t/catch-all-method-e-g-perls-autoload/67356)

<div class="topic-metadata">

**Author:** [@Tim\_McIntyre](https://www.ruby-forum.com/u/Tim_McIntyre)\
**Replies:** 2\
**Last updated:** [September 2, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/catch-all-method-e-g-perls-autoload/67356 "2006-09-02T20:10:54Z")

</div>

Hey all, Does ruby have a catchall method similar to perl’s autoload? Thanks in advance! Tim Be who you are and say what you feel, because those who mind don’t matter and those who matter don’t mind. Dr. Seuss

---

## [Too slow drb test](https://www.ruby-forum.com/t/too-slow-drb-test/67326)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 4\
**Last updated:** [September 2, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/too-slow-drb-test/67326 "2006-09-02T19:06:46Z")

</div>

e$B$H$"$k%\[%9%He(B (e$B$H$$$&$N$Oe(B td176.testdrive.hp.com e$B$G$9$,e(B) e$B$Ge(B ruby e$B$N%F%9%H$r$7$F$$$k$N$G$9$,!"e(Bdrb e$B$N%F%9%H$,$9$4$/CY$/$Fe(B e$B$^$$$C$F$$$^$9!#e(B e$B$?$H$($P!"e(Btest\_acl.rb e$B$Ne(B t…

---

## [Bignum limits?](https://www.ruby-forum.com/t/bignum-limits/67330)

<div class="topic-metadata">

**Author:** [@Jean-Claude\_A](https://www.ruby-forum.com/u/Jean-Claude_A)\
**Replies:** 7\
**Last updated:** [September 2, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/bignum-limits/67330 "2006-09-02T16:28:29Z")

</div>

Hi, is there a limit on a Bignum size ? I get this: irb\> a=2262144; a % 1020 =\> 62605349934298300416 irb\> a=2262145; a (irb):1: warning: in ab, b may be too big =\> Infinity But then, irb(main):004:0\> b=a+a; b % …

---

## [Download](https://www.ruby-forum.com/t/download/67334)

<div class="topic-metadata">

**Author:** [@phillt](https://www.ruby-forum.com/u/phillt)\
**Replies:** 1\
**Last updated:** [September 2, 2006, 12:24pm UTC](https://www.ruby-forum.com/t/download/67334 "2006-09-02T12:24:26Z")

</div>

hi there im keen to try ruby, but cant seem to be able to access the ruby homepage at the moment. Is there anywhere else that I can download Ruby from? cheers Phill

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

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