# Ruby

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

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

---

## [Need to split string into letters and numbers](https://www.ruby-forum.com/t/need-to-split-string-into-letters-and-numbers/167978)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 6\
**Last updated:** [May 14, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/need-to-split-string-into-letters-and-numbers/167978 "2009-05-14T18:22:51Z")

</div>

Hey all I need to be able to split a string into lumps of numbers and letters. so for example if st = “JJ542JQ83” would become \[‘JJ’, ‘542’,‘JQ’,“83”\] i have been using st.split(/(\[a-zA-Z\]+)(?=\[0-9\])/) , this does pre…

---

## [Find previous & next in array](https://www.ruby-forum.com/t/find-previous-next-in-array/167932)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 6\
**Last updated:** [May 14, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/find-previous-next-in-array/167932 "2009-05-14T17:38:27Z")

</div>

hi, anyone know how to do this? basically i’ve got an array of items a = \[‘a’,‘b’,‘c’,‘d’\] now given i can find the position of say ‘c’ using .index(‘c’), how do i get the positions of the ones previous & next to it. …

---

## [Performance issues with large files -- ruby vs. python :)](https://www.ruby-forum.com/t/performance-issues-with-large-files-ruby-vs-python/154304)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 15\
**Last updated:** [May 14, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/performance-issues-with-large-files-ruby-vs-python/154304 "2009-05-14T17:07:08Z")

</div>

Hi all - I’m new to ruby after working with python for a while. My work is performing data mining and doing some web dev for my company. We recently started looking at rails, and I wanted to see if it’s worth migrati…

---

## [How can I use the "test/unit"](https://www.ruby-forum.com/t/how-can-i-use-the-test-unit/167970)

<div class="topic-metadata">

**Author:** [@artoxvw](https://www.ruby-forum.com/u/artoxvw)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/how-can-i-use-the-test-unit/167970 "2009-05-14T15:46:24Z")

</div>

when I run the following code require ‘test/unit’ class TC\_Pram \< Test::Unit::TestCase def initialize(name) @name=name end def test\_array puts assert\_equal(2,@name\[2\]) end end tc=TC\_Pram.new(“wang”) tc.test\_ar…

---

## [How to open a file with perticular exe and copy info to text](https://www.ruby-forum.com/t/how-to-open-a-file-with-perticular-exe-and-copy-info-to-text/167960)

<div class="topic-metadata">

**Author:** [@sangeeta](https://www.ruby-forum.com/u/sangeeta)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/how-to-open-a-file-with-perticular-exe-and-copy-info-to-text/167960 "2009-05-14T15:37:55Z")

</div>

hi all, i m trying to open a audio file with the cooledit ( audio pcm file player/analyser) and i wanted following steps to do it ruby open the file with the cooledit.exe click the statistic button copy the statistic…

---

## [The question about getaddinfo](https://www.ruby-forum.com/t/the-question-about-getaddinfo/167943)

<div class="topic-metadata">

**Author:** [@zq1956](https://www.ruby-forum.com/u/zq1956)\
**Replies:** 7\
**Last updated:** [May 14, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/the-question-about-getaddinfo/167943 "2009-05-14T14:49:44Z")

</div>

I use getaddinfo to get A machine’s hostname, in B machine,the result is correct. but in A machine,the result is just A machine’s name I use nslookup,the result is also correct. who can tell me why in A machineï¼Œthe…

---

## [More interop questions](https://www.ruby-forum.com/t/more-interop-questions/167891)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 17\
**Last updated:** [May 14, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/more-interop-questions/167891 "2009-05-14T14:45:34Z")

</div>

Hi I got into a discussion with Roy Osherhove about overriding statics. I know in C# it can’t be done obviously and as long as I stay in Ruby you can. I understand this may seem like straight-forward stuff. Can you …

---

## [How can I know more about this group?](https://www.ruby-forum.com/t/how-can-i-know-more-about-this-group/167961)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/how-can-i-know-more-about-this-group/167961 "2009-05-14T14:35:37Z")

</div>

How can I know more about this group? Kn http://www.pasgom.org/hometoend.html#Scene\_9

---

## [Regexp](https://www.ruby-forum.com/t/regexp/167955)

<div class="topic-metadata">

**Author:** [@mikael](https://www.ruby-forum.com/u/mikael)\
**Replies:** 4\
**Last updated:** [May 14, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/regexp/167955 "2009-05-14T14:02:33Z")

</div>

Hello! Anyone who can help me with this. If i have a string and want to take out a sub string of that by regexp. string = “Today is it monday after work. blah blah.” or string2 = “monday morning. Nice day today.” A…

---

## [Sympl Language Sample and Walkthrough Document](https://www.ruby-forum.com/t/sympl-language-sample-and-walkthrough-document/167962)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/sympl-language-sample-and-walkthrough-document/167962 "2009-05-14T13:59:09Z")

</div>

(Posting this on behalf of Bill Chiles, who’s done an awesome job with Sympl. The document itself can be found herehttp://dlr.codeplex.com/Wiki/View.aspx?title=Docs%20and%20specs.) There’s a new DLR sample to which I …

---

## [Newbie-Script for copying matching files to new destination](https://www.ruby-forum.com/t/newbie-script-for-copying-matching-files-to-new-destination/167899)

<div class="topic-metadata">

**Author:** [@sansouchi](https://www.ruby-forum.com/u/sansouchi)\
**Replies:** 6\
**Last updated:** [May 14, 2009, 10:12am UTC](https://www.ruby-forum.com/t/newbie-script-for-copying-matching-files-to-new-destination/167899 "2009-05-14T10:12:50Z")

</div>

Hi, Being new to Ruby,am not sure if it can do these but if it can then someone please help.My challenge is that I want to copy certain files from a source location with filenames containing words listed in a text fi…

---

## ["The Well-Grounded Rubyist" now out in paperback](https://www.ruby-forum.com/t/the-well-grounded-rubyist-now-out-in-paperback/167773)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 8\
**Last updated:** [May 14, 2009, 8:49am UTC](https://www.ruby-forum.com/t/the-well-grounded-rubyist-now-out-in-paperback/167773 "2009-05-14T08:49:28Z")

</div>

Hello all – I’m delighted to announce that my new book “The Well-Grounded Rubyist” is now available in paperback (and still in PDF, of course). It’s published by Manning, and it’s in stock at the publisher\[1\] and Ama…

---

## [Bug report involving class variables](https://www.ruby-forum.com/t/bug-report-involving-class-variables/167921)

<div class="topic-metadata">

**Author:** [@Ken\_Ballou](https://www.ruby-forum.com/u/Ken_Ballou)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 7:36am UTC](https://www.ruby-forum.com/t/bug-report-involving-class-variables/167921 "2009-05-14T07:36:51Z")

</div>

(Slight rant: I tried to submit this bug report through the tracker system at redmine.ruby-lang.org. After trying twice to get a username and password \[since the first attempt would not recognize the username and pa…

---

## [Beginner help/direction](https://www.ruby-forum.com/t/beginner-help-direction/167828)

<div class="topic-metadata">

**Author:** [@michael\_engel](https://www.ruby-forum.com/u/michael_engel)\
**Replies:** 4\
**Last updated:** [May 14, 2009, 4:51am UTC](https://www.ruby-forum.com/t/beginner-help-direction/167828 "2009-05-14T04:51:50Z")

</div>

I just finished reading Chris P.'s “Learn to program” with ruby, and am wondering if you wonderful folks could point me in the right direction to continue my education. The book is fairly basic, and I need more expo…

---

## [Longlife gc](https://www.ruby-forum.com/t/longlife-gc/167634)

<div class="topic-metadata">

**Author:** [@Narihiro\_N](https://www.ruby-forum.com/u/Narihiro_N)\
**Replies:** 8\
**Last updated:** [May 14, 2009, 3:57am UTC](https://www.ruby-forum.com/t/longlife-gc/167634 "2009-05-14T03:57:29Z")

</div>

nariã¨ç”³ã—ã¾ã™ï¼Ž GWä¸­ã«GCã®æ”¹è‰¯ã‚’è¡Œã„ã¾ã—ãŸã®ã§ï¼Œå ±å‘Šã„ãŸã—ã¾ã™ï¼Ž = Railsã®ãƒ’ãƒ¼ãƒ—èª¿æŸ» 2ãƒ¶æœˆã»ã©å‰ã«ï¼Œãµã¨æ°—ã«ãªã£ã¦RailsãŒã©ã‚“ãªé¢¨ã«ãƒ’ãƒ¼ãƒ—ã‚’ä½¿ç”¨ã—ã¦ã„ã‚‹ã…

---

## [More Efficiency,More Benefit,Less Risk,Less Work!](https://www.ruby-forum.com/t/more-efficiency-more-benefit-less-risk-less-work/167926)

<div class="topic-metadata">

**Author:** [@6668](https://www.ruby-forum.com/u/6668)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 2:35am UTC](https://www.ruby-forum.com/t/more-efficiency-more-benefit-less-risk-less-work/167926 "2009-05-14T02:35:58Z")

</div>

More Efficiency,More Benefit,Less Risk,Less Work! TOP & BEST quality of products, high reputation, excellent services and professionalism are those that we used compete with others. We sincerely wish to cooperate with…

---

## [Why Fixnum===Fixnum is false?](https://www.ruby-forum.com/t/why-fixnum-fixnum-is-false/167831)

<div class="topic-metadata">

**Author:** [@phasis](https://www.ruby-forum.com/u/phasis)\
**Replies:** 5\
**Last updated:** [May 14, 2009, 2:32am UTC](https://www.ruby-forum.com/t/why-fixnum-fixnum-is-false/167831 "2009-05-14T02:32:27Z")

</div>

Hi, I noticed the following behaviour. irb(main):001:0\> a = 1 =\> 1 irb(main):002:0\> a.class =\> Fixnum irb(main):003:0\> a.class == Fixnum =\> true irb(main):004:0\> a.class === Fixnum =\> false irb(main):005:0\> Fix…

---

## [Net::FTP list empty](https://www.ruby-forum.com/t/net-ftp-list-empty/167925)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 2:14am UTC](https://www.ruby-forum.com/t/net-ftp-list-empty/167925 "2009-05-14T02:14:08Z")

</div>

Ruby 1.8.6. Having trouble getting a file list from an FTP server. AFAICT the connection itself is valid (connections via GUI apps all work just fine). Yet every attempt to get a file listing comes up empty or nil. #\<…

---

## [Review: Fix for TCPSocket.new](https://www.ruby-forum.com/t/review-fix-for-tcpsocket-new/166927)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/review-fix-for-tcpsocket-new/166927 "2009-05-13T23:56:06Z")

</div>

With the memcache-client gem installed, the Rails tests fail to startup as memcache does TCPSocket.new(addr, port, 0) and we were not handling the third argument Files changed: Merlin/External.LCA\_RESTRICTED/L…

---

## [Review: Equality and misc fixes](https://www.ruby-forum.com/t/review-equality-and-misc-fixes/166233)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/review-equality-and-misc-fixes/166233 "2009-05-13T23:52:35Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Review: Rake bug fixes](https://www.ruby-forum.com/t/review-rake-bug-fixes/167827)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/review-rake-bug-fixes/167827 "2009-05-13T23:14:21Z")

</div>

---

## [Jruby-openssl version 0.5 has been released!](https://www.ruby-forum.com/t/jruby-openssl-version-0-5-has-been-released/167914)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/jruby-openssl-version-0-5-has-been-released/167914 "2009-05-13T23:03:10Z")

</div>

jruby-openssl version 0.5 has been released! http://jruby-extras.rubyforge.org/jruby-openssl JRuby-OpenSSL Changes: 0.5 Fixed JRUBY-3614: Unsupported HMAC algorithm (HMACSHA-256) Fixed JRUBY-3570: ActiveMercha…

---

## [\[ANN\] jruby-openssl version 0.5 has been released!](https://www.ruby-forum.com/t/ann-jruby-openssl-version-0-5-has-been-released/167913)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/ann-jruby-openssl-version-0-5-has-been-released/167913 "2009-05-13T23:03:09Z")

</div>

jruby-openssl version 0.5 has been released! http://jruby-extras.rubyforge.org/jruby-openssl JRuby-OpenSSL Changes: 0.5 Fixed JRUBY-3614: Unsupported HMAC algorithm (HMACSHA-256) Fixed JRUBY-3570: ActiveMercha…

---

## [Help with "grammar"](https://www.ruby-forum.com/t/help-with-grammar/167908)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/help-with-grammar/167908 "2009-05-13T21:55:50Z")

</div>

Hi I’m looking into creating a parser that understands a very limited subset of RTF (Rich Text Format). I started with Treetop parser generator \[1\], and was able to get a parser that analysed RTF syntax working in le…

---

## [Rake as a library/API: possible?](https://www.ruby-forum.com/t/rake-as-a-library-api-possible/167866)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/rake-as-a-library-api-possible/167866 "2009-05-13T21:25:14Z")

</div>

Hi all, I’m trying to use rake as a library/API to retrieve the rake tasks in a given directory. Basically I’m looking to mimic the output of rake --tasks --silent Looking through the source code and trying out some…

---

## [Srand implemented?](https://www.ruby-forum.com/t/srand-implemented/166134)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/srand-implemented/166134 "2009-05-13T20:52:14Z")

</div>

Is srand implemented? How can I seed the random number generator if not? A quick search showed some discussion about it last May but I didn’t see any activity since then … Justin

---

## [What libraries are 'missing' from Ruby](https://www.ruby-forum.com/t/what-libraries-are-missing-from-ruby/167896)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/what-libraries-are-missing-from-ruby/167896 "2009-05-13T20:49:17Z")

</div>

Are there libraries that you use with a another language you know that you would like to see in Ruby? Or is there functionality or libraries that you feel are currently ‘missing’ from Ruby? If so, what are they? Tha…

---

## [Code Review: NestedTypes4](https://www.ruby-forum.com/t/code-review-nestedtypes4/167905)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/code-review-nestedtypes4/167905 "2009-05-13T20:19:39Z")

</div>

tfpt review “/shelveset:NestedTypes4;REDMOND\\tomat” Comment : (NestedTypes4) DLR, Python: Removes ModuleGlobalWrapper from DLR - it’s not used. Moves ModuleGlobalCache from DLR to Python. A bit of TypeGroup refact…

---

## [Strange type error](https://www.ruby-forum.com/t/strange-type-error/167847)

<div class="topic-metadata">

**Author:** [@Seo\_S](https://www.ruby-forum.com/u/Seo_S)\
**Replies:** 3\
**Last updated:** [May 13, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/strange-type-error/167847 "2009-05-13T18:30:25Z")

</div>

Any idea what’s going on in the following? $ gem install chronic $ cat test.rb require ‘rubygems’ require ‘chronic’ puts Chronic.parse(‘3pm’) $ mono ir.exe test.rb /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/…

---

## [How to Read Text from Webipage when its disabled](https://www.ruby-forum.com/t/how-to-read-text-from-webipage-when-its-disabled/167887)

<div class="topic-metadata">

**Author:** [@rasein](https://www.ruby-forum.com/u/rasein)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/how-to-read-text-from-webipage-when-its-disabled/167887 "2009-05-13T18:25:43Z")

</div>

the webpage i m testing has many list box, text box, radio butons etc… and it has Text field which is in Diabled and its not Text box; eg:once after registering in website, the name field bcomes disabled and its in Ta…

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

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