# Ruby

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

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

---

## [Fast searching of large files](https://www.ruby-forum.com/t/fast-searching-of-large-files/190944)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 6\
**Last updated:** [July 1, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/fast-searching-of-large-files/190944 "2010-07-01T19:03:56Z")

</div>

Hey all, Could anyone advise me on a fast way to search a single, but very large file (1Gb) quickly for a string of text? Also, is there a library to identify the file offset this string was found within the file? Th…

---

## [New AES gem available -- fast-aes](https://www.ruby-forum.com/t/new-aes-gem-available-fast-aes/181926)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 3\
**Last updated:** [July 1, 2010, 6:12pm UTC](https://www.ruby-forum.com/t/new-aes-gem-available-fast-aes/181926 "2010-07-01T18:12:41Z")

</div>

I’ve just released a new AES gem for Ruby, written in C for speed. This gem leverages some open source AES C code that has been in use for many years. I created this gem because other AES implementations didn’t even …

---

## [ANN: Sequel 3.13.0 Released](https://www.ruby-forum.com/t/ann-sequel-3-13-0-released/190961)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-13-0-released/190961 "2010-07-01T17:31:11Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. Sequel includes a comprehensive ORM layer f…

---

## [Best practices resource/guidance for strings](https://www.ruby-forum.com/t/best-practices-resource-guidance-for-strings/190909)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 6\
**Last updated:** [July 1, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/best-practices-resource-guidance-for-strings/190909 "2010-07-01T15:51:12Z")

</div>

Hello, I am working with scraping quite a bit of data and I would like to make sure that I’m following some best practices for string manipulation. I would like to be sure to take into account any speed and garbage …

---

## [Synchronized Circular Buffer](https://www.ruby-forum.com/t/synchronized-circular-buffer/226069)

<div class="topic-metadata">

**Author:** [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Replies:** 3\
**Last updated:** [July 1, 2010, 1:14pm UTC](https://www.ruby-forum.com/t/synchronized-circular-buffer/226069 "2010-07-01T13:14:59Z")

</div>

I’m relatively new to Ruby, having switched from a PHP and Java background, and I’m having some trouble with the Monitor class trying to implement a synchronised circular buffer. The other posts here on synchronised m…

---

## [Pathname.rb:270: warning: \`\*' interpreted as argument prefix](https://www.ruby-forum.com/t/pathname-rb-warning-interpreted-as-argument-prefix/190901)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 11\
**Last updated:** [July 1, 2010, 10:05am UTC](https://www.ruby-forum.com/t/pathname-rb-warning-interpreted-as-argument-prefix/190901 "2010-07-01T10:05:54Z")

</div>

/opt/local/lib/ruby1.9/1.9.1/pathname.rb:270: warning: \`\*’ interpreted as argument prefix I keep getting this. I am including highline, sqlite3 and arrayfields in my code. I am using ruby -w inside my code. ruby 1.9…

---

## [\[ANN\] Ruby Hoedown 2010 Registration Open and CFP Closing Soon!](https://www.ruby-forum.com/t/ann-ruby-hoedown-2010-registration-open-and-cfp-closing-soon/190935)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 5:23am UTC](https://www.ruby-forum.com/t/ann-ruby-hoedown-2010-registration-open-and-cfp-closing-soon/190935 "2010-07-01T05:23:12Z")

</div>

Hello all, Just wanted to drop a reminder here that the CFP for the Ruby Hoedown 2010 is closing in just a few days, so make sure to get those proposals in at http://bit.ly/9jn1ec. If you didn’t see the initial anno…

---

## [How can i make an exe in xp using jruby+swing](https://www.ruby-forum.com/t/how-can-i-make-an-exe-in-xp-using-jruby-swing/190788)

<div class="topic-metadata">

**Author:** [@jinleileiking](https://www.ruby-forum.com/u/jinleileiking)\
**Replies:** 11\
**Last updated:** [July 1, 2010, 2:34am UTC](https://www.ruby-forum.com/t/how-can-i-make-an-exe-in-xp-using-jruby-swing/190788 "2010-07-01T02:34:38Z")

</div>

I try the rawr,but failed. how can i make an exe in xp using jruby+swing? thanks a lot!

---

## [Drb problem? ringy-dingy won't answer](https://www.ruby-forum.com/t/drb-problem-ringy-dingy-wont-answer/226071)

<div class="topic-metadata">

**Author:** [@koicat](https://www.ruby-forum.com/u/koicat)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 1:40am UTC](https://www.ruby-forum.com/t/drb-problem-ringy-dingy-wont-answer/226071 "2010-07-01T01:40:47Z")

</div>

The following code works fine as long as I don’t try to run it through the distributed server. It doesn’t get there… It runs fine out of delayed\_job, runs fine if called directly. But if ‘distrib’ is true (the defaul…

---

## [Newbie tomcat deployment issue](https://www.ruby-forum.com/t/newbie-tomcat-deployment-issue/190924)

<div class="topic-metadata">

**Author:** [@leithaus](https://www.ruby-forum.com/u/leithaus)\
**Replies:** 7\
**Last updated:** [July 1, 2010, 1:03am UTC](https://www.ruby-forum.com/t/newbie-tomcat-deployment-issue/190924 "2010-07-01T01:03:27Z")

</div>

Dear JRubyists, i’m deploying a JRuby app under tomcat locally to attempt to repro an error i’m seeing on a stax.net deployment. Normally, i test under jetty – and the app works like a charm under jetty – so tomcat is…

---

## [Errno::ENOEXEC](https://www.ruby-forum.com/t/errno-enoexec/189847)

<div class="topic-metadata">

**Author:** [@santhosh214](https://www.ruby-forum.com/u/santhosh214)\
**Replies:** 9\
**Last updated:** [June 30, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/errno-enoexec/189847 "2010-06-30T20:00:45Z")

</div>

I have the following line in my code: puts bundle install This gives me the following error: C:/…/.rb:11:in \`\`’: Exec format error - bundle install (Errno::ENOEXEC) Im using a windows machine. What could be wrong? …

---

## [Multi-cpu and ruby Threading](https://www.ruby-forum.com/t/multi-cpu-and-ruby-threading/190865)

<div class="topic-metadata">

**Author:** [@raubarede](https://www.ruby-forum.com/u/raubarede)\
**Replies:** 6\
**Last updated:** [June 30, 2010, 7:58pm UTC](https://www.ruby-forum.com/t/multi-cpu-and-ruby-threading/190865 "2010-06-30T19:58:57Z")

</div>

Hello, We receive a new PC based on I Core 7 on Windows 7. So i try to compare the use processors resources of each Ruby interpretor (JRuby,IronRuby,Ruby 1.9.1 ). I do the same (stupid) treatment by 1 to 8 threads, a…

---

## [How can I deploy jruby console app?](https://www.ruby-forum.com/t/how-can-i-deploy-jruby-console-app/190919)

<div class="topic-metadata">

**Author:** [@cyberjom](https://www.ruby-forum.com/u/cyberjom)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 7:54pm UTC](https://www.ruby-forum.com/t/how-can-i-deploy-jruby-console-app/190919 "2010-06-30T19:54:42Z")

</div>

I have a jruby script which require some gems. It’s can run on my development machine. I try jrubyc but it’s output a class which cannot run on deployment machine. Look like it’s can’t find jruby. And it is on that m…

---

## [Newbie](https://www.ruby-forum.com/t/newbie/190907)

<div class="topic-metadata">

**Author:** [@rtfiya](https://www.ruby-forum.com/u/rtfiya)\
**Replies:** 2\
**Last updated:** [June 30, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/newbie/190907 "2010-06-30T19:45:29Z")

</div>

Hello Everyone,I found using ruby as a demand freelance career.But don’t have idea with this.Is there a free tutorial for this one?. floor tape sidewalk stencils

---

## [RubyGems 1.3.7](https://www.ruby-forum.com/t/rubygems-1-3-7/188577)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 8\
**Last updated:** [June 30, 2010, 7:34pm UTC](https://www.ruby-forum.com/t/rubygems-1-3-7/188577 "2010-06-30T19:34:21Z")

</div>

rubygems version 1.3.7 has been released! http://rubygems.org/ http://docs.rubygems.org/ http://rubygems.rubyforge.org/ http://rubyforge.org/projects/rubygems RubyGems is a package management framework for Ruby. This…

---

## [NoMethodError: undefined method \`recvfrom' for #\<TCPSocket:0](https://www.ruby-forum.com/t/nomethoderror-undefined-method-recvfrom-for-tcpsocket-0/190890)

<div class="topic-metadata">

**Author:** [@jinleileiking](https://www.ruby-forum.com/u/jinleileiking)\
**Replies:** 3\
**Last updated:** [June 30, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-recvfrom-for-tcpsocket-0/190890 "2010-06-30T18:59:57Z")

</div>

NoMethodError: undefined method \`recvfrom’ for #TCPSocket:0xd5e270 ok in ruby 1.8, but get this error in jruby. wtf! Is jruby so ugly???

---

## [Preferred Gem building utility](https://www.ruby-forum.com/t/preferred-gem-building-utility/190917)

<div class="topic-metadata">

**Author:** [@Jose\_Hales-Garcia](https://www.ruby-forum.com/u/Jose_Hales-Garcia)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 6:46pm UTC](https://www.ruby-forum.com/t/preferred-gem-building-utility/190917 "2010-06-30T18:46:21Z")

</div>

I’ve used Echoe to build a few gems and I like it so far, but other people recommend Jeweler, which I haven’t tried. What are this list’s preferences for these libraries? Jose … Jose Hales-Garcia UCLA Department of…

---

## [Aliasing classes](https://www.ruby-forum.com/t/aliasing-classes/190913)

<div class="topic-metadata">

**Author:** [@sshaikh](https://www.ruby-forum.com/u/sshaikh)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/aliasing-classes/190913 "2010-06-30T18:22:20Z")

</div>

Hi all, Is it possible to alias a class? That is for ClassA.run to call ClassB.run instead? I have a third party library requiring a dependency which I’ve already defined with my own name. I’m currently subclassing, …

---

## [Increase significant digits in Float](https://www.ruby-forum.com/t/increase-significant-digits-in-float/184437)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 11\
**Last updated:** [June 30, 2010, 4:56pm UTC](https://www.ruby-forum.com/t/increase-significant-digits-in-float/184437 "2010-06-30T16:56:22Z")

</div>

If I want to increase my significant digits beyond 15 in a result of a math expression involving floats, how do I do it? So, for example, I would like more than 15 sig digits in the result of: irb(main):001:0\> 4.005 /…

---

## [Threading with Activerecord](https://www.ruby-forum.com/t/threading-with-activerecord/190911)

<div class="topic-metadata">

**Author:** [@joe1](https://www.ruby-forum.com/u/joe1)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 3:57pm UTC](https://www.ruby-forum.com/t/threading-with-activerecord/190911 "2010-06-30T15:57:39Z")

</div>

Hello all, First, let me give a little background. I have two applications, which both connect to two different databases (but on the same server.) These applications run on about 40+ computers. The default pool size …

---

## [Optparser question](https://www.ruby-forum.com/t/optparser-question/190902)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/optparser-question/190902 "2010-06-30T14:35:07Z")

</div>

I am using optparser to parse arguments.How can I set a mandatory option? If user doesn’t specify this option, parse() method should throw an error message. thanks, Zhao Yi

---

## [RCR: IO.popen4](https://www.ruby-forum.com/t/rcr-io-popen4/190731)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 5\
**Last updated:** [June 30, 2010, 11:31am UTC](https://www.ruby-forum.com/t/rcr-io-popen4/190731 "2010-06-30T11:31:18Z")

</div>

Currently with the std lib there is no (built in) way to get the PID of a currently running child process (short of using fork, which is unavailable on windows). i.e. IO.popen(“ls”) # what’s the PID? r,w,e,thread = …

---

## [MiniTest::Assertions#assert\_in\_delta $B$N5sF0(B](https://www.ruby-forum.com/t/minitest-assertions-assert-in-delta-b-n5sf0-b/190897)

<div class="topic-metadata">

**Author:** [@okkez](https://www.ruby-forum.com/u/okkez)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 11:21am UTC](https://www.ruby-forum.com/t/minitest-assertions-assert-in-delta-b-n5sf0-b/190897 "2010-06-30T11:21:21Z")

</div>

okkez e$B$G$9!#e(B e$B%P%0$+$I$&$+\<+?.$,;}$F$J$$$N$G3NG’$5$;$F$/$@$5$$!#e(B MiniTest::Assertions#assert\_in\_delta e$B$N%3!\<%I$O0J2\<$N$h$&$K$J$C$F$$$^$9!#e(B Ruby1.9.2 ## # For comparing Floats. Fails unless +exp+ an…

---

## [Bindings for Silveright](https://www.ruby-forum.com/t/bindings-for-silveright/189084)

<div class="topic-metadata">

**Author:** [@Miguel\_Madero](https://www.ruby-forum.com/u/Miguel_Madero)\
**Replies:** 2\
**Last updated:** [June 30, 2010, 10:52am UTC](https://www.ruby-forum.com/t/bindings-for-silveright/189084 "2010-06-30T10:52:40Z")

</div>

Jimmy, I heard on the Sparkling Clieent Podcast that you wrote in silverlight.netabout Silverlight and Dynamic Languages, they mentioned that bindings to dynamic objects work now. I can’t find any info about this. Do…

---

## [Autotest idea](https://www.ruby-forum.com/t/autotest-idea/190895)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 10:28am UTC](https://www.ruby-forum.com/t/autotest-idea/190895 "2010-06-30T10:28:40Z")

</div>

http://blog.zenspider.com/2010/06/autotest-idea.html whatcha think?

---

## [Re: Net::SCP download from windows to linux and encrypt password](https://www.ruby-forum.com/t/re-net-scp-download-from-windows-to-linux-and-encrypt-password/190880)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 9:16am UTC](https://www.ruby-forum.com/t/re-net-scp-download-from-windows-to-linux-and-encrypt-password/190880 "2010-06-30T09:16:21Z")

</div>

Make sure your backslashes don’t generate tab characters. Use single quotes or escape the backlashes with extra backslash. Sent from my HTC ----- Reply message ----- From: “Kalpesh P.” removed\_email\_address@domain.in…

---

## [Syncing RubySpec and mspec](https://www.ruby-forum.com/t/syncing-rubyspec-and-mspec/190847)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 3\
**Last updated:** [June 30, 2010, 8:24am UTC](https://www.ruby-forum.com/t/syncing-rubyspec-and-mspec/190847 "2010-06-30T08:24:00Z")

</div>

Hey all! I’ve been talking with Jim via email about helping with syncing IronRuby’s copy of RubySpec and mspec with the official repos. I’v started work on pulling in the latest RubySpec changes. These also require t…

---

## [Taking out text between symbols and joining together](https://www.ruby-forum.com/t/taking-out-text-between-symbols-and-joining-together/190886)

<div class="topic-metadata">

**Author:** [@bob05](https://www.ruby-forum.com/u/bob05)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 8:21am UTC](https://www.ruby-forum.com/t/taking-out-text-between-symbols-and-joining-together/190886 "2010-06-30T08:21:40Z")

</div>

Hello, I have some text files that I would like to extract text from, then join them on one single line and save them to a text file. Here is an example of the text I want to take out: Protein complexes in Saccharomy…

---

## [Count substrings in string, scan too slow](https://www.ruby-forum.com/t/count-substrings-in-string-scan-too-slow/190656)

<div class="topic-metadata">

**Author:** [@dji](https://www.ruby-forum.com/u/dji)\
**Replies:** 17\
**Last updated:** [June 30, 2010, 4:05am UTC](https://www.ruby-forum.com/t/count-substrings-in-string-scan-too-slow/190656 "2010-06-30T04:05:22Z")

</div>

Hello everyone, I need to count the number of times a substring occurs in a string. I am currently doing this using the scan method, but it is simply too slow. I feel there should be a faster way to do this since the…

---

## [Active\_support classify truncating](https://www.ruby-forum.com/t/active-support-classify-truncating/190885)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 1\
**Last updated:** [June 30, 2010, 12:45am UTC](https://www.ruby-forum.com/t/active-support-classify-truncating/190885 "2010-06-30T00:45:11Z")

</div>

I tried to use “my\_class”.classify and got MyClas as a result. Tried others that ended in ‘ss’ and got the same results. Tried other endings and they work. Ruby 1.9.2-preview3 and activesupport-3.0.0.beta4 is being u…

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

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