# Ruby

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

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

---

## [Displaying Total Registered Users](https://www.ruby-forum.com/t/displaying-total-registered-users/115366)

<div class="topic-metadata">

**Author:** [@kobrakai](https://www.ruby-forum.com/u/kobrakai)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/displaying-total-registered-users/115366 "2007-09-24T15:30:17Z")

</div>

Hi ppl I’m looking for a way to display the total number of registered users on my site, and also how many are logged in. Can anybody help out? Cheers KK

---

## [weakref.rb$B$K%G%P%C%0MQ(Bprint](https://www.ruby-forum.com/t/weakref-rb-b-k-g-p-c-0mq-bprint/115057)

<div class="topic-metadata">

**Author:** [@madoka\_yamamoto](https://www.ruby-forum.com/u/madoka_yamamoto)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/weakref-rb-b-k-g-p-c-0mq-bprint/115057 "2007-09-24T15:16:15Z")

</div>

e$B$3$s$K$A$O;3K$H$b$&$7$^$9!#e(B trunke$B$Ne(Bweakref.rbe$B$K%G%P%C%0MQ$H;W$o$l$ke(Bprintfe$B$,F~$C$F$$$Fe(B e$BIaDL$K;H$&$@$1$G2hLL$K%a%C%;!\<%8$,=P$F$7$^$$$^$9!#e(B ruby -rweakref -ve ‘WeakRef.new(0)’ ruby 1.9.0 (2…

---

## [How to get irb to run code as if it was typed in](https://www.ruby-forum.com/t/how-to-get-irb-to-run-code-as-if-it-was-typed-in/115367)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 2:34pm UTC](https://www.ruby-forum.com/t/how-to-get-irb-to-run-code-as-if-it-was-typed-in/115367 "2007-09-24T14:34:38Z")

</div>

it seems that we can load “some\_file.rb” or require “some\_file.rb” in irb to run the program. But after the run, i and a are both undefined. $g and foo on the other hand, are both defined. how can we make i and …

---

## [Foo || 0 will cause exception but not for himself](https://www.ruby-forum.com/t/foo-0-will-cause-exception-but-not-for-himself/115238)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 7\
**Last updated:** [September 24, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/foo-0-will-cause-exception-but-not-for-himself/115238 "2007-09-24T13:49:57Z")

</div>

if foo is undefined, it will throw exception when referred to… as in try 1, 2, and 3 below. However, it won’t throw exception when assigned to himself… how is that interpreted? irb(main):001:0\> foo NameError: undef…

---

## [Nested array filling well.. but tricky search back](https://www.ruby-forum.com/t/nested-array-filling-well-but-tricky-search-back/115360)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/nested-array-filling-well-but-tricky-search-back/115360 "2007-09-24T13:00:46Z")

</div>

thanks to your help… I got a nice nested array ALL\_CATEGORIES = \[\[\[1, “category1”\], \[2, “category2”\], \[3, “category3”\], \[4, “category4”\]\], \[\[5, “category5”\], \[6, “category6”\], \[7, “category7”\], \[8, “category8”\]\], \[\[…

---

## [I'm looking for this certain ruby blog software](https://www.ruby-forum.com/t/im-looking-for-this-certain-ruby-blog-software/115318)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/im-looking-for-this-certain-ruby-blog-software/115318 "2007-09-24T12:51:24Z")

</div>

Hi, I sometime had this ruby blog software which just created html files. No rails, no db was needed. It just created html-files looking like a blog but I can’t remember anymore its name :frowning: One of you knows it…

---

## [How do I create an RBA Ruby Archive File?](https://www.ruby-forum.com/t/how-do-i-create-an-rba-ruby-archive-file/114905)

<div class="topic-metadata">

**Author:** [@jayson](https://www.ruby-forum.com/u/jayson)\
**Replies:** 11\
**Last updated:** [September 24, 2007, 12:46pm UTC](https://www.ruby-forum.com/t/how-do-i-create-an-rba-ruby-archive-file/114905 "2007-09-24T12:46:17Z")

</div>

I am using rubyscript2exe to wrap an application. The problem is that the files that are external to the ruby script are not getting wrapped into the exe file. I think I need to create a RBA file first and then wrap i…

---

## [Nested array filling bad](https://www.ruby-forum.com/t/nested-array-filling-bad/115307)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/nested-array-filling-bad/115307 "2007-09-24T12:20:40Z")

</div>

I try to fill a nested array this way irb(main):001:0\> cat\_a = Array.new(7, Array.new) irb(main):002:0\> cat\_a\[0\] \<\< 0 =\> \[0\] irb(main):004:0\> cat\_a\[1\] \<\< 1 =\> \[0, 1\] but it gives me back irb(main):005:0\> cat\_a =\> …

---

## [Statistical software and data transformation?](https://www.ruby-forum.com/t/statistical-software-and-data-transformation/115027)

<div class="topic-metadata">

**Author:** [@robert](https://www.ruby-forum.com/u/robert)\
**Replies:** 8\
**Last updated:** [September 24, 2007, 11:56am UTC](https://www.ruby-forum.com/t/statistical-software-and-data-transformation/115027 "2007-09-24T11:56:35Z")

</div>

How many ruby-ists have to do statistical analysis or data cleaning prior to analysis? Is it not something that is done often by web developers? What is the well known software out there for statistical software or d…

---

## [Valgrind fiber](https://www.ruby-forum.com/t/valgrind-fiber/115355)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 11:24am UTC](https://www.ruby-forum.com/t/valgrind-fiber/115355 "2007-09-24T11:24:40Z")

</div>

test\_fiber.rb e$B$re(B valgrind e$B2\<$GF0$+$9$He(B Invalid read of size 4 e$B$K$J$k$N$G$9$,!"e(B e$B=L$a$k$H0J2\<$G:F8=$G$-$k$h$&$G$9!#e(B % cat y.rb require ‘fiber’ Fiber.new do return end.resume % valgrind ./rub…

---

## [Watir xpath problem!](https://www.ruby-forum.com/t/watir-xpath-problem/115353)

<div class="topic-metadata">

**Author:** [@lote](https://www.ruby-forum.com/u/lote)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 10:51am UTC](https://www.ruby-forum.com/t/watir-xpath-problem/115353 "2007-09-24T10:51:31Z")

</div>

hi, i have installed Ruby 1.8.2 version because i need ModalDialog support.Only this version support modal dialog…and i’ve installed watir 1.5.2 for same reason…so when i try to access element by xpath using "ie.elem…

---

## [ANN: GuessMethod 0.1.0](https://www.ruby-forum.com/t/ann-guessmethod-0-1-0/115336)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 7:42am UTC](https://www.ruby-forum.com/t/ann-guessmethod-0-1-0/115336 "2007-09-24T07:42:47Z")

</div>

I’m pleased to announce version 0.1 of my little aggressive spelling corrector for irb. sudo gem install guessmethod And live the life! – an irb session: 003:0\> Strin.tos attention: replacing non-existant constant …

---

## [Kernel#\` is blocked with Ruby/GLib2 on Intel Mac](https://www.ruby-forum.com/t/kernel-is-blocked-with-ruby-glib2-on-intel-mac/115339)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 7:39am UTC](https://www.ruby-forum.com/t/kernel-is-blocked-with-ruby-glib2-on-intel-mac/115339 "2007-09-24T07:39:47Z")

</div>

e$B?\\F#$G$9!#e(B 1.8.6-p110e$B$G$b:F8=$9$k$+$I$&$+$O$o$+$i$J$$$N$G$9$,!"!J$?$V$s!Ke(B Intel Mace$B\>e$Ge(Brequire 'glib2’e$B$7$?\>uBV$Ge(BKernel#\`e$B$r;H$&$H%V%m%Ce(B e$B%/$9$k$\_$?$$$G$9!#e(B require ‘glib2’ date ht…

---

## [Installation problem](https://www.ruby-forum.com/t/installation-problem/115345)

<div class="topic-metadata">

**Author:** [@Michael\_Darmousseh](https://www.ruby-forum.com/u/Michael_Darmousseh)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 7:37am UTC](https://www.ruby-forum.com/t/installation-problem/115345 "2007-09-24T07:37:47Z")

</div>

I am trying to install Instant Rails, but I am having trouble with my environment variables. Currently I can issue the ruby command but not that rails command nor rake command. What should my environment variables lo…

---

## [How would you write it vs Smalltalk](https://www.ruby-forum.com/t/how-would-you-write-it-vs-smalltalk/115259)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 7\
**Last updated:** [September 24, 2007, 6:10am UTC](https://www.ruby-forum.com/t/how-would-you-write-it-vs-smalltalk/115259 "2007-09-24T06:10:40Z")

</div>

i found a description of Smalltalk in http://www.engin.umd.umich.edu/CIS/course.des/cis400/smalltalk/freq.html and then I tried it in Ruby: h = Hash.new(0) print "Enter line: " gets.downcase.each\_byte {|b| c = “%c” …

---

## [\[Rails\] How to debug "no route to..."](https://www.ruby-forum.com/t/rails-how-to-debug-no-route-to/115331)

<div class="topic-metadata">

**Author:** [@Miss\_Elaine\_E](https://www.ruby-forum.com/u/Miss_Elaine_E)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 5:58am UTC](https://www.ruby-forum.com/t/rails-how-to-debug-no-route-to/115331 "2007-09-24T05:58:27Z")

</div>

I’m new to Ruby/Rails and doing pretty well and liking it a lot. However, deep into one of the tutorials, I was feeling so confident that I went several pages (read: hours) without double-checking that my changes were…

---

## [Object's allocated memory](https://www.ruby-forum.com/t/objects-allocated-memory/115309)

<div class="topic-metadata">

**Author:** [@underbluewaters](https://www.ruby-forum.com/u/underbluewaters)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 4:17am UTC](https://www.ruby-forum.com/t/objects-allocated-memory/115309 "2007-09-24T04:17:33Z")

</div>

I have an application where I need to sort objects based on their memory footprint. What is the easiest way to get this information from Ruby1.6 ? I have no problem with having to call some C functions to get this in…

---

## [Weird variable scope behaviour](https://www.ruby-forum.com/t/weird-variable-scope-behaviour/115276)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 7\
**Last updated:** [September 24, 2007, 4:05am UTC](https://www.ruby-forum.com/t/weird-variable-scope-behaviour/115276 "2007-09-24T04:05:32Z")

</div>

I just wrote some code that shouldn’t have worked, in my estimation, but it did, anyway. While this was a pleasant surprise, I prefer to understand why things don’t work than to wonder why they did work… What was ha…

---

## [Trunk $B$G8=\>u%;%k%U%S%k%I$,$G$-$^$;$s(B](https://www.ruby-forum.com/t/trunk-b-g8-u-k-u-s-k-i-g-s-b/115315)

<div class="topic-metadata">

**Author:** [@SSSBS-SSSiS3SSSSSAS](https://www.ruby-forum.com/u/SSSBS-SSSiS3SSSSSAS)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 3:31am UTC](https://www.ruby-forum.com/t/trunk-b-g8-u-k-u-s-k-i-g-s-b/115315 "2007-09-24T03:31:29Z")

</div>

e$BLZB\<$G$9!#e(B e$B0J2\<$N=$@5$,860x$G!"$3$N=$@5$,F~$C$?0J9\_$Ne(Bruby e$B$rM%@hE\*$K5/F0$9$k4D6-$Ke(B e$B$\*$$$F!"e(Btrunk e$B$N%;%k%U%S%k%I$,$G$-$J$/$J$C$F$$$^$9!#e(B Revision 13447 - (view) (download) (annotate) - \[s…

---

## [Ruby 1.8.6-p110 released](https://www.ruby-forum.com/t/ruby-1-8-6-p110-released/115297)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 1:39am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p110-released/115297 "2007-09-24T01:39:06Z")

</div>

Hi all, I am pleased to announce that a new bug fix release for Ruby 1.8.6 has been released. This release includes some fixes made upon Ruby 1.8.6. The source code tarballs are available in several formats at the f…

---

## [Does open("| #{cmd}", "r") work in Windows?](https://www.ruby-forum.com/t/does-open-cmd-r-work-in-windows/115316)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [September 23, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/does-open-cmd-r-work-in-windows/115316 "2007-09-23T22:54:50Z")

</div>

All, Attempting to debug the autotest gem on Windows. I’ve gotten as far as discovering that in the code below, the open call will succeed (and cmd has a real command in it), however the file object f, will be at eof …

---

## [Quick way for total count of a Hash object or a Tally class](https://www.ruby-forum.com/t/quick-way-for-total-count-of-a-hash-object-or-a-tally-class/115298)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 2\
**Last updated:** [September 23, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/quick-way-for-total-count-of-a-hash-object-or-a-tally-class/115298 "2007-09-23T21:42:36Z")

</div>

for the hash \[“apple” =\> 3, “banana” =\> 2\] is there an instant way to tally up all the counts? (instead of looping through all keys and add up all counts, because the hash can be very big, like thousands of items, a…

---

## [%w| a b c| %w\_a b c\_ %w\<a b c\> all work](https://www.ruby-forum.com/t/w-a-b-c-w-a-b-c-w-a-b-c-all-work/115245)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 7\
**Last updated:** [September 23, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/w-a-b-c-w-a-b-c-w-a-b-c-all-work/115245 "2007-09-23T21:35:14Z")

</div>

%w|a b c| %w\_a b c\_ %w all work is there an official doc or book that says so? seems like the first character that after “%w” can be used as a delimiter.

---

## [Keyboard input: one character](https://www.ruby-forum.com/t/keyboard-input-one-character/113535)

<div class="topic-metadata">

**Author:** [@gugugu](https://www.ruby-forum.com/u/gugugu)\
**Replies:** 8\
**Last updated:** [September 23, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/keyboard-input-one-character/113535 "2007-09-23T21:27:10Z")

</div>

hi to all! i’ve seen this question posted many times without a single definitive answer. what i’m trying to get is a single character from the keyboard in a multiplatform solution: i hit the key “h” and rubu knows “h”…

---

## [Searching Spotlight with ruby](https://www.ruby-forum.com/t/searching-spotlight-with-ruby/115284)

<div class="topic-metadata">

**Author:** [@Filipe](https://www.ruby-forum.com/u/Filipe)\
**Replies:** 4\
**Last updated:** [September 23, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/searching-spotlight-with-ruby/115284 "2007-09-23T20:51:59Z")

</div>

Is it possible to search for files using spotlight in ruby just like it’s done on the terminal with the command ‘mdfind’?

---

## [\[ANN\] new random\_data gem for better development data](https://www.ruby-forum.com/t/ann-new-random-data-gem-for-better-development-data/115146)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 2\
**Last updated:** [September 23, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/ann-new-random-data-gem-for-better-development-data/115146 "2007-09-23T20:14:47Z")

</div>

I’ve released a small gem that provides a Random singleton class with a series of methods for generating random test data including names, mailing addresses, dates, phone numbers, e-mail addresses, and text. This lets…

---

## [Any experience with Bluehost?](https://www.ruby-forum.com/t/any-experience-with-bluehost/110924)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 14\
**Last updated:** [September 23, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/any-experience-with-bluehost/110924 "2007-09-23T16:12:34Z")

</div>

I am looking for hosting for RoR, but I’d also like to be able to do some PHP with MySQL on the same account as well. I have been looking at Bluehost. Does anyone have anything comments good or bad about them? Thanks…

---

## [Questions about Date.strptime](https://www.ruby-forum.com/t/questions-about-date-strptime/115292)

<div class="topic-metadata">

**Author:** [@allenyoung](https://www.ruby-forum.com/u/allenyoung)\
**Replies:** 7\
**Last updated:** [September 23, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/questions-about-date-strptime/115292 "2007-09-23T16:05:17Z")

</div>

Hi all, I want to parse some strings into Date object and I find in rdoc that strptime is the right place to go. For some formats of string it’s really easy to parse it. For instance, ‘%Y.%m.%d’ will parse something …

---

## [Is it planned to release OneClickInstaller for Ruby 1.9.1?](https://www.ruby-forum.com/t/is-it-planned-to-release-oneclickinstaller-for-ruby-1-9-1/115306)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/is-it-planned-to-release-oneclickinstaller-for-ruby-1-9-1/115306 "2007-09-23T15:34:33Z")

</div>

Moin, moin! I have a question related to the near future. Are there plans to release OneClickInstaller Ruby versions for Ruby 1.9.1? Wolfgang NÃ¡dasi-Donner

---

## [Sequel problem: no such file to load -- mysql (LoadError)](https://www.ruby-forum.com/t/sequel-problem-no-such-file-to-load-mysql-loaderror/115247)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 9\
**Last updated:** [September 23, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/sequel-problem-no-such-file-to-load-mysql-loaderror/115247 "2007-09-23T15:29:30Z")

</div>

Hi, i tried to learn about sequel (and Ruby) and got this problem /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in require\_\_': no such file to load -- mysql (LoadError) from /usr/lib/ruby/site\_ruby/1.8/ruby…

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

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