# Ruby

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

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

---

## [Process.times inaccuracy](https://www.ruby-forum.com/t/process-times-inaccuracy/153311)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 8:09am UTC](https://www.ruby-forum.com/t/process-times-inaccuracy/153311 "2008-11-15T08:09:30Z")

</div>

A few of you have raised (valid) concerns about Process.times not accurately representing the actual CPU usage. This is of course true…currently it is implemented as a clock time counter from startup, since under Java…

---

## [Re: SVN version 171](https://www.ruby-forum.com/t/re-svn-version-171/153272)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 12:55am UTC](https://www.ruby-forum.com/t/re-svn-version-171/153272 "2008-11-15T00:55:43Z")

</div>

Absolutely! I forgot to pull them into TFS before I pushed out. I’m really sorry about that. I’ll pull them in tomorrow to prevent it from happening again. I’m also working on a diff based transfer between TFS and SVN…

---

## [How to tell Scite where Ruby is located](https://www.ruby-forum.com/t/how-to-tell-scite-where-ruby-is-located/153330)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 12:16am UTC](https://www.ruby-forum.com/t/how-to-tell-scite-where-ruby-is-located/153330 "2008-11-15T00:16:53Z")

</div>

Hi all, I install Ruby to a new place instead of the default path, and I can’t set Ruby’s path from within system’s enviroment variables due to write/read restriction on the computer. How can I tell Scite where Ruby …

---

## [Ruby on WindowsXP can't load module wx](https://www.ruby-forum.com/t/ruby-on-windowsxp-cant-load-module-wx/153321)

<div class="topic-metadata">

**Author:** [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 12:15am UTC](https://www.ruby-forum.com/t/ruby-on-windowsxp-cant-load-module-wx/153321 "2008-11-15T00:15:56Z")

</div>

Hi, any idea why this happens? c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wxruby2.so: 126: The specified module could not be found. - c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/l…

---

## [Differences between BSF and JSR 223](https://www.ruby-forum.com/t/differences-between-bsf-and-jsr-223/149271)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 9\
**Last updated:** [November 14, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/differences-between-bsf-and-jsr-223/149271 "2008-11-14T21:34:52Z")

</div>

Thanks to Yoko’s recent message (http://tinyurl.com/3qwnnu), I was able to try out JSR 223 in Java 5 for the first time recently. I noticed some differences in the way these two engines behave, and I’m wondering if o…

---

## [Mapping C long unsigned integer with swig for ruby](https://www.ruby-forum.com/t/mapping-c-long-unsigned-integer-with-swig-for-ruby/153224)

<div class="topic-metadata">

**Author:** [@lyes](https://www.ruby-forum.com/u/lyes)\
**Replies:** 2\
**Last updated:** [November 14, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/mapping-c-long-unsigned-integer-with-swig-for-ruby/153224 "2008-11-14T18:50:34Z")

</div>

Hi everyone I want to now how can I indicate to swig to consider a n unsigned long long function input/output parameter as a ruby BigNum object. with python, we use the typemap to do the conversion.: for example /\* …

---

## [Getting the comments(RDoc/ri) while running](https://www.ruby-forum.com/t/getting-the-comments-rdoc-ri-while-running/153219)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 6\
**Last updated:** [November 14, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/getting-the-comments-rdoc-ri-while-running/153219 "2008-11-14T17:48:26Z")

</div>

The problem: There is this parser, dynamically extensible with methods from modules. In very mundane fashion the methods have a standard prefix (like Test::Unit does it) so there is no problem getting the list of the …

---

## [How to set socket option SO\_RCVTIMEO](https://www.ruby-forum.com/t/how-to-set-socket-option-so-rcvtimeo/77758)

<div class="topic-metadata">

**Author:** [@Zakaria](https://www.ruby-forum.com/u/Zakaria)\
**Replies:** 9\
**Last updated:** [November 14, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/how-to-set-socket-option-so-rcvtimeo/77758 "2008-11-14T17:25:41Z")

</div>

Hi, How to set socket option SO\_RCVTIMEO in Windows XP? The C version use somekind struct. Regards, – Zakaria removed\_email\_address@domain.invalid Yahoo!: z4k4ri4

---

## [Matching](https://www.ruby-forum.com/t/matching/153177)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 8\
**Last updated:** [November 14, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/matching/153177 "2008-11-14T17:04:46Z")

</div>

I am trying to parse out some characters from a string and I am having some trouble because the string may have a space or it may not. Basically I have a string that looks like this: Seattle, WA\[SEA\] or Colorado Sp…

---

## [Memcached - clear all keys matching a pattern?](https://www.ruby-forum.com/t/memcached-clear-all-keys-matching-a-pattern/153303)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [November 14, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/memcached-clear-all-keys-matching-a-pattern/153303 "2008-11-14T16:58:25Z")

</div>

I have some pages that serve up a massive tree of html, with a few different varieties used on different pages. Generating the html is quite intensive so I use memcached to store the different flavours, generating a …

---

## [Convert text string i.e 'Peter' into integer ID](https://www.ruby-forum.com/t/convert-text-string-i-e-peter-into-integer-id/153127)

<div class="topic-metadata">

**Author:** [@justus](https://www.ruby-forum.com/u/justus)\
**Replies:** 22\
**Last updated:** [November 14, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/convert-text-string-i-e-peter-into-integer-id/153127 "2008-11-14T16:14:34Z")

</div>

Hello, is there any method to quickly convert a text string such as ‘Peter’ into an integer? (And vice versa?) I am not asking about just changing the format (to\_i). I’m looking for a method thus can do the computati…

---

## [Mechanize Select List Help Needed](https://www.ruby-forum.com/t/mechanize-select-list-help-needed/153252)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/mechanize-select-list-help-needed/153252 "2008-11-14T15:23:01Z")

</div>

Hello. I thought that I’d tap into the group to find out if anyone has had this problem with select lists through Mechanize. I am submitting a form that has a multi select list option. When I view the code submitted …

---

## [Ruby Sub Regular Expression](https://www.ruby-forum.com/t/ruby-sub-regular-expression/153145)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 6\
**Last updated:** [November 14, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/ruby-sub-regular-expression/153145 "2008-11-14T15:14:35Z")

</div>

Hello! I have a string: “Hello - 1 - World” irb(main):017:0\> a = “Hello - 1 - World” =\> “Hello - 1 - World” I want to chop off the "Hello - " part. Hello could be any word, so I want to match it generically. To ma…

---

## [Sudoku Generator (#182)](https://www.ruby-forum.com/t/sudoku-generator-182/152805)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 13\
**Last updated:** [November 14, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/sudoku-generator-182/152805 "2008-11-14T14:45:45Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on th…

---

## [File.fnmatch? doesn't distinguish between .filename and ./filename?](https://www.ruby-forum.com/t/file-fnmatch-doesnt-distinguish-between-filename-and-filename/153288)

<div class="topic-metadata">

**Author:** [@crocco](https://www.ruby-forum.com/u/crocco)\
**Replies:** 0\
**Last updated:** [November 14, 2008, 11:52am UTC](https://www.ruby-forum.com/t/file-fnmatch-doesnt-distinguish-between-filename-and-filename/153288 "2008-11-14T11:52:04Z")

</div>

I know that File.fnmatch? returns false for file names starting with a dot, unless you specify the File::FNM\_DOTMATCH argument. The reason is that files starting with a dot are hidden files and so you (usually) don’t…

---

## [Unable to rescue Errno::ECONNRESET during](https://www.ruby-forum.com/t/unable-to-rescue-errno-econnreset-during/153260)

<div class="topic-metadata">

**Author:** [@yfung](https://www.ruby-forum.com/u/yfung)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 9:30am UTC](https://www.ruby-forum.com/t/unable-to-rescue-errno-econnreset-during/153260 "2008-11-14T09:30:41Z")

</div>

For some reason my rescue clause is not catching this exception. Here’s the stack trace: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/openssl/buffering.rb:35:in sysread': Connection reset by…

---

## [Issue with block and getting to local variables](https://www.ruby-forum.com/t/issue-with-block-and-getting-to-local-variables/153166)

<div class="topic-metadata">

**Author:** [@ruby\_coder99](https://www.ruby-forum.com/u/ruby_coder99)\
**Replies:** 11\
**Last updated:** [November 14, 2008, 8:35am UTC](https://www.ruby-forum.com/t/issue-with-block-and-getting-to-local-variables/153166 "2008-11-14T08:35:31Z")

</div>

Ok I’m new to ruby and want to do the following, I want to define a function that is a ble to call a block and I want that block to have access to the calling function’s local variables. Also I’d like that block of co…

---

## [SVN version 171](https://www.ruby-forum.com/t/svn-version-171/153253)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 7:00am UTC](https://www.ruby-forum.com/t/svn-version-171/153253 "2008-11-14T07:00:04Z")

</div>

I’ve just pushed out SVN revision 171, which in addition to the normal new code stuff, should compile from the command line with rake compile! The RubySpecs have been updated, too. Enjoy JD http://blog.jredville.com

---

## [FileInputStream.new myfile fails?](https://www.ruby-forum.com/t/fileinputstream-new-myfile-fails/152769)

<div class="topic-metadata">

**Author:** [@drrs](https://www.ruby-forum.com/u/drrs)\
**Replies:** 10\
**Last updated:** [November 14, 2008, 5:20am UTC](https://www.ruby-forum.com/t/fileinputstream-new-myfile-fails/152769 "2008-11-14T05:20:06Z")

</div>

Why does this fail on Jruby 1.1.4? Platform is Windows XP myfile = ‘C:\\test.xml’ fis = FileInputStream.new myfile java.io.FileNotFoundException: (The system cannot find the file specified) at java.io.FileInputS…

---

## [Subject: rubygoo 0.0.6 Released](https://www.ruby-forum.com/t/subject-rubygoo-0-0-6-released/153268)

<div class="topic-metadata">

**Author:** [@allgeier](https://www.ruby-forum.com/u/allgeier)\
**Replies:** 0\
**Last updated:** [November 14, 2008, 4:54am UTC](https://www.ruby-forum.com/t/subject-rubygoo-0-0-6-released/153268 "2008-11-14T04:54:57Z")

</div>

rubygoo version 0.0.6 has been released! http://rubygoo.googlecode.com GUI library for use with Gosu or Rubygame Changes: 0.0.6 / 2008-11-13 Getting closer to a 1.0 release Better TextField support for Gosu small…

---

## [Ruby-net-ldap](https://www.ruby-forum.com/t/ruby-net-ldap/130003)

<div class="topic-metadata">

**Author:** [@imdwalrus](https://www.ruby-forum.com/u/imdwalrus)\
**Replies:** 3\
**Last updated:** [November 14, 2008, 2:53am UTC](https://www.ruby-forum.com/t/ruby-net-ldap/130003 "2008-11-14T02:53:36Z")

</div>

I’m running ruby 1.8.6 on Windows. I’ve installed the ruby-net-ldap 0.0.4 gem. When I require ‘net/ldap’ I get nothing. All calls to ruby-net-ldap methods fail. I’ve used this gem successfully in another project a…

---

## [Nokogiri 1.0.5 Released](https://www.ruby-forum.com/t/nokogiri-1-0-5-released/153197)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/nokogiri-1-0-5-released/153197 "2008-11-13T22:32:13Z")

</div>

nokogiri version 1.0.5 has been released! http://nokogiri.rubyforge.org/ http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master http://rubyforge.org/mailman/listinfo/nokogiri-talk …

---

## [Are java hashtable objects Ruby Hash objects?](https://www.ruby-forum.com/t/are-java-hashtable-objects-ruby-hash-objects/153226)

<div class="topic-metadata">

**Author:** [@eipipuz](https://www.ruby-forum.com/u/eipipuz)\
**Replies:** 1\
**Last updated:** [November 13, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/are-java-hashtable-objects-ruby-hash-objects/153226 "2008-11-13T18:19:44Z")

</div>

Hello guys, I need to access from Ruby information stored in a java hashtable inside of a Java class. The class has a getter method that returns the hashtable object. My question is: How can access the key/value pair…

---

## [Oddness with gems](https://www.ruby-forum.com/t/oddness-with-gems/153200)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/oddness-with-gems/153200 "2008-11-13T16:57:00Z")

</div>

I am running 1.8.6 (2008-08-11 patchlevel 287) \[i386-mswin32\] and I installed the libxslt and libxml gems so that I could play with some xslt. I set up this code: #!/usr/bin/ruby require ‘rubygems’ require ‘libxslt’ …

---

## [Need tutoring on using a path environment variable](https://www.ruby-forum.com/t/need-tutoring-on-using-a-path-environment-variable/153168)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 9\
**Last updated:** [November 13, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/need-tutoring-on-using-a-path-environment-variable/153168 "2008-11-13T15:46:33Z")

</div>

I don’t know what to do. I have an environment variable, PW\_PATH, that contains the folder names where applications can be executed from. I want to start a particular application that is in one of those folders. I …

---

## [Connect to Windows Share using Ruby](https://www.ruby-forum.com/t/connect-to-windows-share-using-ruby/153140)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 3\
**Last updated:** [November 13, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/connect-to-windows-share-using-ruby/153140 "2008-11-13T15:46:09Z")

</div>

Hello, I’m looking to connect to a Windows share using Ruby. Is there a library, or gem that would help me do this? Just a nudge in the right direction would be great. Thank you!

---

## ['#' characters are breaking my regexp](https://www.ruby-forum.com/t/characters-are-breaking-my-regexp/153205)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 13\
**Last updated:** [November 13, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/characters-are-breaking-my-regexp/153205 "2008-11-13T14:50:49Z")

</div>

I’m trying to build a regexp that includes music notes, eg Bb or C#. However, the ‘#’ character is breaking them - basically it just stops reading the string as soon as it gets to a #: string = “(Ab|Bb|Db|Eb|Gb|A#|C…

---

## [Ruby-1.8.7-p72 (mswin32) socket protocol missing](https://www.ruby-forum.com/t/ruby-1-8-7-p72-mswin32-socket-protocol-missing/153211)

<div class="topic-metadata">

**Author:** [@arton](https://www.ruby-forum.com/u/arton)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p72-mswin32-socket-protocol-missing/153211 "2008-11-13T13:59:01Z")

</div>

artonã§ã™ã€‚ Ruby-1.8.7-p72 ã§ã™ãŒã€WSAEnumProtocolsã§åˆ—æŒ™ã•ã‚Œãªã„ãƒ—ãƒ­ãƒˆã‚³ãƒ«ãŒã‚ã‚‹ãŸ ã‚ã€Socketä½œæˆã«å¤±æ•—ã—ã¾ã™ã€‚1.9.1ã§ã‚‚åŒæ§˜ã ã¨æ€ã„ã¾ã™ã€‚ å…·ä½“çš„ã«ã¯ã€Vista64ï¼ˆ32ãƒ…

---

## [Using Class methods](https://www.ruby-forum.com/t/using-class-methods/153208)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/using-class-methods/153208 "2008-11-13T13:13:14Z")

</div>

Hi - I’m new to ruby and trying to write some classes to help me with my work. What I’m trying to figure out is how to access the class methods from other files. Say that my class is Class Example $glob\_1 def method…

---

## [\[Bug #750\] Pathname.\[\]](https://www.ruby-forum.com/t/bug-750-pathname/153165)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 11:28am UTC](https://www.ruby-forum.com/t/bug-750-pathname/153165 "2008-11-13T11:28:48Z")

</div>

Bug #750: Pathname.\[\] http://redmine.ruby-lang.org/issues/show/750 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Dir.globe$B$He(BDir.\[\]e$B$He(BPathname.globe$B$,Dj5A$5$l$F$$$k$N$K!“$J$\<$+e(BP…

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

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