# Ruby

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

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

---

## [Fwd: BigInteger.ToString(int radix)](https://www.ruby-forum.com/t/fwd-biginteger-tostring-int-radix/120626)

<div class="topic-metadata">

**Author:** [@cephas](https://www.ruby-forum.com/u/cephas)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 10:27am UTC](https://www.ruby-forum.com/t/fwd-biginteger-tostring-int-radix/120626 "2007-11-19T10:27:10Z")

</div>

This never seemed to appear on the list… ---------- Forwarded message ---------- From: Peter Bacon D. removed\_email\_address@domain.invalid Date: 17 Nov 2007 21:43 Subject: BigInteger.ToString(int radix) To: removed\_…

---

## [\[$BDs0F(B\] Array#tail](https://www.ruby-forum.com/t/bds0f-b-array-tail/119728)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 20\
**Last updated:** [November 19, 2007, 10:13am UTC](https://www.ruby-forum.com/t/bds0f-b-array-tail/119728 "2007-11-19T10:13:35Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B@hF,$NMWAG0J30$NG\[Ns$rJV$9e(B Array#tail e$B$H$$$&%a%=%C%I$rDs0F$7$^$9!#e(B \[1, 2, 3, 4\].tail #=\> \[2, 3, 4\] e$B8=\>u$G$Oe(B ary\[1…-1\] e$B$,%$%G%#%\*%\`$K$J$C$F$$$k$H;W$$$^$9$,!"e(B e$B%$%s%G%…

---

## [How to run same test suite multiple times using watir](https://www.ruby-forum.com/t/how-to-run-same-test-suite-multiple-times-using-watir/120623)

<div class="topic-metadata">

**Author:** [@vishwanath](https://www.ruby-forum.com/u/vishwanath)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 10:11am UTC](https://www.ruby-forum.com/t/how-to-run-same-test-suite-multiple-times-using-watir/120623 "2007-11-19T10:11:34Z")

</div>

Hi Friends, I am using watir for testing our websites. I have a test suite to run multiple times. I’m using the following code to iterate test suite require ‘watir’ require ‘test/unit/ui/console/testrunner’ include…

---

## [Call with async method](https://www.ruby-forum.com/t/call-with-async-method/120486)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 6\
**Last updated:** [November 19, 2007, 9:56am UTC](https://www.ruby-forum.com/t/call-with-async-method/120486 "2007-11-19T09:56:01Z")

</div>

Hi @all I’m developing a tool who sniff the networktraffic on the nic. I would like to call the method asynchron from a other pc. I realize this problem with xmlrpc4r. To sniff the networkpackets, I use the pcaplet. N…

---

## [Single Sign on](https://www.ruby-forum.com/t/single-sign-on/120622)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 9:30am UTC](https://www.ruby-forum.com/t/single-sign-on/120622 "2007-11-19T09:30:49Z")

</div>

Hello, I have been trying to have a single sign on for my rails application. I somehow fail to understand how to access that particular user object from within the login method from the account controller. I tried: U…

---

## [My GUI is not work in ruby 1.8.6](https://www.ruby-forum.com/t/my-gui-is-not-work-in-ruby-1-8-6/120614)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 8:21am UTC](https://www.ruby-forum.com/t/my-gui-is-not-work-in-ruby-1-8-6/120614 "2007-11-19T08:21:03Z")

</div>

already i used ruby 1.8.5 (my GUI program is worked well) after i installed ruby 1.8.6 the error is… temp.rb:551: \[BUG\] glib signal in another thread, but gthreads not supported ruby 1.8.6 (2007-03-13) \[i686-linux\] A…

---

## [Default argument of Array#permutation](https://www.ruby-forum.com/t/default-argument-of-array-permutation/120604)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 8:00am UTC](https://www.ruby-forum.com/t/default-argument-of-array-permutation/120604 "2007-11-19T08:00:09Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B Array#permutation e$B$O%G%U%)%k%H$GA4MWAG$N=gNse(B (e$B$D$^$jCV49e(B) e$B$r7W;;$9$k$He(B e$B$$$$$H;W$$$^$9!#$I$&$G$7$g$&$+!#e(B a = \[1,2,3\] a.permutation.to\_a #=\> \[\[1,2,3\],\[1,3,2\],\[2,1,3\],\[2,…

---

## [Nanosecond Time and stat](https://www.ruby-forum.com/t/nanosecond-time-and-stat/120477)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 8\
**Last updated:** [November 19, 2007, 4:57am UTC](https://www.ruby-forum.com/t/nanosecond-time-and-stat/120477 "2007-11-19T04:57:09Z")

</div>

e$B:G6a!“e(Bnanosecond e$BC10L$Je(B timestamp e$B$,$”$k$h$&$G$9!#e(B e$B$?$H$($Pe(B boron e$B$@$He(B timestamp e$B$,e(B nanosecond e$BC10L$G$9!#e(B % stat . File: \`.’ Size: 4096 Blocks: 8 IO Bloc…

---

## [Checking for uniqueness](https://www.ruby-forum.com/t/checking-for-uniqueness/120601)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 4:44am UTC](https://www.ruby-forum.com/t/checking-for-uniqueness/120601 "2007-11-19T04:44:52Z")

</div>

I am using FeedTools to parse an rss feed and store it in my Meetings model. I am trying to store only unique parsed rss feeds. To check for uniqueness, I have decided to use the Feed’s link. How can I check if there…

---

## [Eval, module\_eval, define\_method, and all that](https://www.ruby-forum.com/t/eval-module-eval-define-method-and-all-that/120519)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [November 19, 2007, 1:22am UTC](https://www.ruby-forum.com/t/eval-module-eval-define-method-and-all-that/120519 "2007-11-19T01:22:10Z")

</div>

I don’t know how Ruby scoping works when the code involves: nested "def"s eval module\_eval instance\_eval define\_method It would be nice to find an app-note for this issue. (More generally, it would be nice to see wri…

---

## [Re: Goedel (#147)](https://www.ruby-forum.com/t/re-goedel-147/120594)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 12:07am UTC](https://www.ruby-forum.com/t/re-goedel-147/120594 "2007-11-19T00:07:16Z")

</div>

Obviously, I didn’t know about the mathn library when I wrote this: PRIMES = \[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71, 73,79,83,89,97,101,103,107,109,113, 127,131,137,139,149,151,157,163,167,173, 179,…

---

## [Five Top programming Languages](https://www.ruby-forum.com/t/five-top-programming-languages/120540)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 14\
**Last updated:** [November 19, 2007, 12:01am UTC](https://www.ruby-forum.com/t/five-top-programming-languages/120540 "2007-11-19T00:01:26Z")

</div>

Five Top programming Languages 1 Ruby 2 CHZZ 3 Actionscript 4 Java 5 C# 6 Phyton Best Markup Language -\> XML Cheers, #LoonyDudd

---

## [Save The Date: Gotham Ruby Conference 2008](https://www.ruby-forum.com/t/save-the-date-gotham-ruby-conference-2008/120555)

<div class="topic-metadata">

**Author:** [@sdsykes](https://www.ruby-forum.com/u/sdsykes)\
**Replies:** 2\
**Last updated:** [November 18, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/save-the-date-gotham-ruby-conference-2008/120555 "2007-11-18T22:45:52Z")

</div>

The 2008 Gotham Ruby Conference will be held Saturday, April 26th 2008 at Pave University in (surprise, surprise) New York, New York. More details will be available shortly on this list. -Stephen S.

---

## [Fwd: #147 Goedelize message](https://www.ruby-forum.com/t/fwd-147-goedelize-message/229163)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [November 18, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/fwd-147-goedelize-message/229163 "2007-11-18T22:06:33Z")

</div>

Begin forwarded message:

---

## [Bug in IRb?](https://www.ruby-forum.com/t/bug-in-irb/120569)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 9\
**Last updated:** [November 18, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/bug-in-irb/120569 "2007-11-18T21:55:53Z")

</div>

I’m trying to track down a long standing issue with my IRb setup that is very annoying. To test, I’ve commented out everything in my .irbrc file and then loaded IRb with: $ irb --readline Now, these steps show the p…

---

## [Question about GUI toolkit](https://www.ruby-forum.com/t/question-about-gui-toolkit/120561)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 4\
**Last updated:** [November 18, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/question-about-gui-toolkit/120561 "2007-11-18T20:42:34Z")

</div>

I want suggest about gui tool kit for ruby I use ‘tk’ but it’s seem simple then I search about that and found many toolkit I see ‘gtk’ but I don’t know it can use with window?? why I use it, it seem problem about out…

---

## [Alternative Ruby grammar](https://www.ruby-forum.com/t/alternative-ruby-grammar/120365)

<div class="topic-metadata">

**Author:** [@uberalles](https://www.ruby-forum.com/u/uberalles)\
**Replies:** 22\
**Last updated:** [November 18, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/alternative-ruby-grammar/120365 "2007-11-18T20:14:33Z")

</div>

I have spent the last months to write an alternative Ruby grammar now registered at rubyforge.org under the name “Ruby top down grammar”. The grammar is hosting language neutral. It must be interpreted or translated t…

---

## [Count substrings from a string](https://www.ruby-forum.com/t/count-substrings-from-a-string/120563)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 8\
**Last updated:** [November 18, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/count-substrings-from-a-string/120563 "2007-11-18T19:58:06Z")

</div>

Hi, I am able to know if there is a substring in a string with: if string =~ /#{word}/: puts “match” else puts “do not match” end But I would like to count all the substring from a string… Thanks for help :slight…

---

## [Executing another cmdl-app with ruby and typing in a password?](https://www.ruby-forum.com/t/executing-another-cmdl-app-with-ruby-and-typing-in-a-password/120512)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 3\
**Last updated:** [November 18, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/executing-another-cmdl-app-with-ruby-and-typing-in-a-password/120512 "2007-11-18T18:02:47Z")

</div>

Hi, I’m writing a gui with ruby and glade and so far it works well. Now the program I write a gui for has an option which wants you to type a password in the console. I start it this way: system(“anotherapp --encrypt…

---

## [Which script shall I choose for web automation?](https://www.ruby-forum.com/t/which-script-shall-i-choose-for-web-automation/120542)

<div class="topic-metadata">

**Author:** [@campos](https://www.ruby-forum.com/u/campos)\
**Replies:** 6\
**Last updated:** [November 18, 2007, 9:56am UTC](https://www.ruby-forum.com/t/which-script-shall-i-choose-for-web-automation/120542 "2007-11-18T09:56:35Z")

</div>

Hi, I’m trying to write an application which uses script to control web browser, such as inputing some data in the form, submitting, button clicking and so on. I wonder which script language is the best for such oper…

---

## [Make a hash object to string object as look like a hash?](https://www.ruby-forum.com/t/make-a-hash-object-to-string-object-as-look-like-a-hash/120514)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 8\
**Last updated:** [November 18, 2007, 6:25am UTC](https://www.ruby-forum.com/t/make-a-hash-object-to-string-object-as-look-like-a-hash/120514 "2007-11-18T06:25:40Z")

</div>

user\_name@host:~$irb irb(main):001:0\> h={‘k1’=\>‘v1’,‘k2’=\>‘v2’,‘k3’=\>‘v3’} =\> {“k1”=\>“v1”, “k2”=\>“v2”, “k3”=\>“v3”} -------\>i want as a string object irb(main):002:0\> k irb(main):004:0\> puts h k1v1k2v2k3v3 …

---

## [Letters with accent marks](https://www.ruby-forum.com/t/letters-with-accent-marks/120452)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [November 18, 2007, 5:24am UTC](https://www.ruby-forum.com/t/letters-with-accent-marks/120452 "2007-11-18T05:24:55Z")

</div>

Any ideas? I have a textBox that users will be entering data into and most likely they will not bother to write the accent marks over the correct letters. When performing the search I need a way to look at the words i…

---

## [Build failure trying to use rb\_define\_alias on rb\_mKernel](https://www.ruby-forum.com/t/build-failure-trying-to-use-rb-define-alias-on-rb-mkernel/120539)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [November 18, 2007, 4:29am UTC](https://www.ruby-forum.com/t/build-failure-trying-to-use-rb-define-alias-on-rb-mkernel/120539 "2007-11-18T04:29:59Z")

</div>

Hi, In object.c, I tried to change this line: rb\_define\_method(rb\_mKernel, “is\_a?”, rb\_obj\_is\_kind\_of, 1); To this: rb\_define\_alias(rb\_mKernel, “is\_a?”, “kind\_of?”); But it dies during the build. What’s the issue? I…

---

## [4th Annual RejectConf Videos](https://www.ruby-forum.com/t/4th-annual-rejectconf-videos/120440)

<div class="topic-metadata">

**Author:** [@Coby\_Randquist](https://www.ruby-forum.com/u/Coby_Randquist)\
**Replies:** 6\
**Last updated:** [November 18, 2007, 4:28am UTC](https://www.ruby-forum.com/t/4th-annual-rejectconf-videos/120440 "2007-11-18T04:28:49Z")

</div>

The 4th Annual Reject Conf Videos are now posted at http://rejectconf4.confreaks.com. The rest of the RubyConf 2007 will be arriving in the near future. Thanks, -Coby Randquist Confreaks, LLC

---

## [Readline + completion of "all files in current directory"](https://www.ruby-forum.com/t/readline-completion-of-all-files-in-current-directory/120497)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [November 18, 2007, 4:18am UTC](https://www.ruby-forum.com/t/readline-completion-of-all-files-in-current-directory/120497 "2007-11-18T04:18:18Z")

</div>

Hi, I am having a hard time understanding readline. If i have a list of possible matches for given files (and subdirectories) in a directory, how can I make readline work with that, so that i can type something like: …

---

## [non-English path problem](https://www.ruby-forum.com/t/non-english-path-problem/119770)

<div class="topic-metadata">

**Author:** [@amaranth](https://www.ruby-forum.com/u/amaranth)\
**Replies:** 3\
**Last updated:** [November 18, 2007, 3:35am UTC](https://www.ruby-forum.com/t/non-english-path-problem/119770 "2007-11-18T03:35:38Z")

</div>

I’ve been stumped on this problem for days and I have a feeling that it is really simple… I am trying to create a folder at the following location: C:\\documents and settings\[username\]\\application data\\amaranth The fo…

---

## [Csspool 0.1.1 Released](https://www.ruby-forum.com/t/csspool-0-1-1-released/120536)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [November 18, 2007, 2:34am UTC](https://www.ruby-forum.com/t/csspool-0-1-1-released/120536 "2007-11-18T02:34:51Z")

</div>

csspool version 0.1.1 has been released! http://csspool.rubyforge.org/ CSSpool (pronounced “cesspool”) is a validating SAC parser for CSS. The parser calls methods on a document handler depending on what it has fou…

---

## [How to avoid Fixnum rounding error](https://www.ruby-forum.com/t/how-to-avoid-fixnum-rounding-error/120515)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 5\
**Last updated:** [November 18, 2007, 1:50am UTC](https://www.ruby-forum.com/t/how-to-avoid-fixnum-rounding-error/120515 "2007-11-18T01:50:26Z")

</div>

Which is the best approach to avoid division rounding errors when performing integer division with a Fixnum? Is there any built-in method for this? Best regards, Jari W.

---

## [String escape mystery](https://www.ruby-forum.com/t/string-escape-mystery/120517)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 5\
**Last updated:** [November 17, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/string-escape-mystery/120517 "2007-11-17T23:59:18Z")

</div>

I can’t figure out what’s happening here: shadowfax:~ rick$ ruby -ve’p “a\\b\\c”’ ruby 1.8.6 (2007-03-13 patchlevel 0) \[i686-darwin8.10.2\] -e:1: unterminated string meets end of file shadowfax:~ rick$ ruby -e’p “a\\b\\c”…

---

## [Weird behavior with hpricot and variable assignment](https://www.ruby-forum.com/t/weird-behavior-with-hpricot-and-variable-assignment/120491)

<div class="topic-metadata">

**Author:** [@ridcully](https://www.ruby-forum.com/u/ridcully)\
**Replies:** 2\
**Last updated:** [November 17, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/weird-behavior-with-hpricot-and-variable-assignment/120491 "2007-11-17T23:35:56Z")

</div>

Hi, Could someone please help me to understand the difference of: html = Hpricot( “ ” ) (html/’/div’).each do |item| x = (item/’/div’)\[0\].to\_html p x end output: “ ” and html = Hpricot( “ ” ) (html/’/div’).each d…

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

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