# Ruby

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

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

---

## [Finding the first file in a dir, fast, for message queue](https://www.ruby-forum.com/t/finding-the-first-file-in-a-dir-fast-for-message-queue/125347)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/finding-the-first-file-in-a-dir-fast-for-message-queue/125347 "2008-01-08T15:25:03Z")

</div>

I have a file based msg queue, and msgs are stored five folders down. When a request for the next msg is received, I need to grab the first file I can find, as fast as I can. I’ve tried Dir.glob, and only selecting th…

---

## [Strftime on Cygwin](https://www.ruby-forum.com/t/strftime-on-cygwin/125352)

<div class="topic-metadata">

**Author:** [@Corinna\_Vinschen](https://www.ruby-forum.com/u/Corinna_Vinschen)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/strftime-on-cygwin/125352 "2008-01-08T14:22:35Z")

</div>

\[Please use the NG for replies. Thanks in advance.\] Hi, with Cygwin 1.5.25 I removed the link time reference to the non-standard timezone() function in Cygwin. Old applications are still able to use it, but you don…

---

## [Execute Ruby code stored in database](https://www.ruby-forum.com/t/execute-ruby-code-stored-in-database/125162)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/execute-ruby-code-stored-in-database/125162 "2008-01-08T13:55:01Z")

</div>

Hi, I’ve got a hypothetical question, and im hoping someone can answer it. Let’s say ive got a MySql server and I store some Ruby code inside a column/table/database. Is there anyway I can load this data from a Ruby …

---

## [List of win32 processes](https://www.ruby-forum.com/t/list-of-win32-processes/125340)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/list-of-win32-processes/125340 "2008-01-08T13:46:46Z")

</div>

I need to get list of processes running on windows with process names and pids. is there any api that will do it. i was looking at win32/ process and could not fidn a function that will provide list of existing runnin…

---

## [DHCP Client](https://www.ruby-forum.com/t/dhcp-client/125233)

<div class="topic-metadata">

**Author:** [@miquel](https://www.ruby-forum.com/u/miquel)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/dhcp-client/125233 "2008-01-08T12:56:15Z")

</div>

Hi there Does anybody know if any dhcp library exists in Ruby (I have googled a little and I haven’t found anything)? Thanks in advance Miquel

---

## [Creating directory and zipping it](https://www.ruby-forum.com/t/creating-directory-and-zipping-it/125321)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 7\
**Last updated:** [January 8, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/creating-directory-and-zipping-it/125321 "2008-01-08T12:55:05Z")

</div>

hi, can anyone help me. I want to create a folder, create another file of .url type and save the .url file in the folder and zip the folder. I am sending the code which I have written and I am getting following error…

---

## [Compact or uniq that takes a block like sort?](https://www.ruby-forum.com/t/compact-or-uniq-that-takes-a-block-like-sort/125239)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 5\
**Last updated:** [January 8, 2008, 11:56am UTC](https://www.ruby-forum.com/t/compact-or-uniq-that-takes-a-block-like-sort/125239 "2008-01-08T11:56:21Z")

</div>

Hi, I’m looking for an elegant way to do the following: Given an sorted array of (X,Y) pairs where Y is strictly increasing, i.e., no repeated Ys. Compact pairs with repeated Xs, keeping the pair with the highest Y …

---

## [Bacon 0.9, a small RSpec clone](https://www.ruby-forum.com/t/bacon-0-9-a-small-rspec-clone/125283)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 12\
**Last updated:** [January 8, 2008, 11:56am UTC](https://www.ruby-forum.com/t/bacon-0-9-a-small-rspec-clone/125283 "2008-01-08T11:56:21Z")

</div>

Hello, Today I’m proud to release Bacon 0.9. = Bacon – a small RSpec clone. “Truth will sooner come out from error than from confusion.” —Francis Bacon Bacon is a small RSpec clone weighing less than 300 LoC but ne…

---

## [Comparing and Rating Different Frameworks for Ruby](https://www.ruby-forum.com/t/comparing-and-rating-different-frameworks-for-ruby/125337)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 11:55am UTC](https://www.ruby-forum.com/t/comparing-and-rating-different-frameworks-for-ruby/125337 "2008-01-08T11:55:43Z")

</div>

Hello, I was searching for few alternates for Ruby Framework and found quite few of them on the net. It would be nice if there is already a detailed comparison available for them or can be discussed/Rated here based …

---

## [Ruby 1.9 eta? continuations in std lib?](https://www.ruby-forum.com/t/ruby-1-9-eta-continuations-in-std-lib/125308)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 9:45am UTC](https://www.ruby-forum.com/t/ruby-1-9-eta-continuations-in-std-lib/125308 "2008-01-08T09:45:42Z")

</div>

Hi - two related questions, is there a reasonable ballpark timeframe to expect Ruby 1.9 to become official/stable/production-ready? And am I right in thinking that all I have to do to port continuation-based code to 1…

---

## [Vintage 0.0.1 - The super slim, micro web framework based on the idea of the old Merb](https://www.ruby-forum.com/t/vintage-0-0-1-the-super-slim-micro-web-framework-based-on-the-idea-of-the-old-merb/125110)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 22\
**Last updated:** [January 8, 2008, 8:34am UTC](https://www.ruby-forum.com/t/vintage-0-0-1-the-super-slim-micro-web-framework-based-on-the-idea-of-the-old-merb/125110 "2008-01-08T08:34:14Z")

</div>

Vintage is a very small web framework based on the original idea of Merb: Mongrel serving up ERb (Embedded Ruby) templates. The idea has been expanded and now Vintage helps you serve up ERb, HAML, Textile, Markdown, …

---

## [Determining the current charset](https://www.ruby-forum.com/t/determining-the-current-charset/125323)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 7:12am UTC](https://www.ruby-forum.com/t/determining-the-current-charset/125323 "2008-01-08T07:12:55Z")

</div>

Hi all, What’s the best way to determine the current charset, i.e., the value I need to give to Iconv as the ‘to’ encoding so that converted characters display correctly on the terminal? My current best guess is: loc…

---

## [Very simple question about enum.all? and any?](https://www.ruby-forum.com/t/very-simple-question-about-enum-all-and-any/125213)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [January 8, 2008, 7:05am UTC](https://www.ruby-forum.com/t/very-simple-question-about-enum-all-and-any/125213 "2008-01-08T07:05:53Z")

</div>

%w{ ant bear cat}.all? {|word| word.length \>= 3} #=\> true %w{ ant bear cat}.any? {|word| word.length \>= 3} #=\> true Both of these return true or false as expected. The question is is there an equivalent method tha…

---

## [Shift\_JIS variants and UTF-16 support](https://www.ruby-forum.com/t/shift-jis-variants-and-utf-16-support/125206)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 21\
**Last updated:** [January 8, 2008, 6:20am UTC](https://www.ruby-forum.com/t/shift-jis-variants-and-utf-16-support/125206 "2008-01-08T06:20:51Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B transcodee$B$He(BEncodinge$B$K$D$$$F\<ALd$G$9!#e(B (1) e$B8=\>u$Ne(Btranscodee$B$,%5%\]!\<%H$7$F$$$k!Ve(BShift\_JISe$B!W$H$$$&$N$O!“e(B e$B?tB?$”$ke(Bvariante$B$N$&$A$N$I$l…

---

## [More loosely typed expression](https://www.ruby-forum.com/t/more-loosely-typed-expression/125297)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 4\
**Last updated:** [January 8, 2008, 5:15am UTC](https://www.ruby-forum.com/t/more-loosely-typed-expression/125297 "2008-01-08T05:15:25Z")

</div>

I’m just trying out RSpec with some really simple code. I have this line: @subject.num(0).fizz?.should == false And I want it to pass if it’s false OR nil. I tried using =~ but it made no difference. Is there no way …

---

## [Ruby reflection of methods](https://www.ruby-forum.com/t/ruby-reflection-of-methods/125309)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 4:47am UTC](https://www.ruby-forum.com/t/ruby-reflection-of-methods/125309 "2008-01-08T04:47:57Z")

</div>

If I do something like: meth=method(:send) (or any other method) is there anyway to get the actual text of the send method? like meth.body or something? I don’t actually need the text of the method, I was just wond…

---

## [Saving Ruby 1.9 bytecode](https://www.ruby-forum.com/t/saving-ruby-1-9-bytecode/125304)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 4:33am UTC](https://www.ruby-forum.com/t/saving-ruby-1-9-bytecode/125304 "2008-01-08T04:33:52Z")

</div>

Hi, Is there some way to save the bytecode generated by Ruby 1.9 to disk such that I can then run that bytecode again later? Similar to Python and .pyo files? Thanks J

---

## [Http://drawohara.com/post/23234721](https://www.ruby-forum.com/t/http-drawohara-com-post-23234721/125307)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [January 8, 2008, 3:29am UTC](https://www.ruby-forum.com/t/http-drawohara-com-post-23234721/125307 "2008-01-08T03:29:34Z")

</div>

http://drawohara.com/post/23234721 a whole ton of ruby code under the cover here - thought i’d share. a @ codeforpeople

---

## [Using "sort!" in a C extension (1.9 problem)](https://www.ruby-forum.com/t/using-sort-in-a-c-extension-1-9-problem/124521)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 22\
**Last updated:** [January 8, 2008, 2:34am UTC](https://www.ruby-forum.com/t/using-sort-in-a-c-extension-1-9-problem/124521 "2008-01-08T02:34:37Z")

</div>

Hello In ruby 1.8, I could use Array#sort! in a C extension like this: static VALUE call\_sort\_bang(VALUE ary) { return rb\_funcall(ary, rb\_intern(“sort!”), 0); } static VALUE sort\_i(VALUE ary) { long v1 = FIX2LO…

---

## [RDoc's TemplatePage Removed from Ruby](https://www.ruby-forum.com/t/rdocs-templatepage-removed-from-ruby/125288)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 1:53am UTC](https://www.ruby-forum.com/t/rdocs-templatepage-removed-from-ruby/125288 "2008-01-08T01:53:04Z")

</div>

If you’ve got a custom RDoc template, it won’t work in the next release of Ruby 1.9. You can find details on how to convert from an old TemplatePage template to the new ERB-based TemplatePage wrapper here: http://blo…

---

## [GNU Smalltalk 3.0 released](https://www.ruby-forum.com/t/gnu-smalltalk-3-0-released/125275)

<div class="topic-metadata">

**Author:** [@faina](https://www.ruby-forum.com/u/faina)\
**Replies:** 1\
**Last updated:** [January 8, 2008, 1:36am UTC](https://www.ruby-forum.com/t/gnu-smalltalk-3-0-released/125275 "2008-01-08T01:36:42Z")

</div>

My apologies if this message is perceived as spam. Shortly after the long awaited Ruby 1.9.0, GNU Smalltalk 3.0 has been released at ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.0.tar.gz Unlike other Smalltalk environ…

---

## [Miniunit](https://www.ruby-forum.com/t/miniunit/125120)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/miniunit/125120 "2008-01-07T22:54:05Z")

</div>

How does one actually use miniunit, if the normal test/unit is present? For example, when I try to run miniunit’s own tests: $ ruby test\_test\_case.rb test\_test\_case.rb:8: uninitialized constant MiniTest (NameError) O…

---

## [Help with OptionParser](https://www.ruby-forum.com/t/help-with-optionparser/125277)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 8:53pm UTC](https://www.ruby-forum.com/t/help-with-optionparser/125277 "2008-01-07T20:53:27Z")

</div>

Hello all, I’m needing some help with OptionParser. I’m wanting to use it to parse a string rather than ARGV, but when I pass the parse method a string of options, i get the following error: undefined method \`shift…

---

## [Where do I put the ".to\_f"?](https://www.ruby-forum.com/t/where-do-i-put-the-to-f/125274)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 12\
**Last updated:** [January 7, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/where-do-i-put-the-to-f/125274 "2008-01-07T20:46:29Z")

</div>

Hello, I need to do some simply computations on numbers pulled from a file. I get the numbers using “scan.” I’ve proven that I can get the numbers alright. But, I need to do some division and multiplication on those …

---

## [Rexular expression quantifiers](https://www.ruby-forum.com/t/rexular-expression-quantifiers/125259)

<div class="topic-metadata">

**Author:** [@johnsmith](https://www.ruby-forum.com/u/johnsmith)\
**Replies:** 4\
**Last updated:** [January 7, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/rexular-expression-quantifiers/125259 "2008-01-07T20:34:07Z")

</div>

hi there just a quick question what is the difference between greedy and non greedy quantifiers? cheers

---

## [Autocode 0.9.0 released](https://www.ruby-forum.com/t/autocode-0-9-0-released/125217)

<div class="topic-metadata">

**Author:** [@dan\_yoder](https://www.ruby-forum.com/u/dan_yoder)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/autocode-0-9-0-released/125217 "2008-01-07T19:55:54Z")

</div>

Autocode is an open source Ruby library that allows you to mixin automatic code loading, reloading, and even “magic” classes and modules into any module you like, just like the framework folks do. Introduction: http:…

---

## [\>Exit code: 3](https://www.ruby-forum.com/t/exit-code-3/125264)

<div class="topic-metadata">

**Author:** [@Md.elme\_focruzzaman](https://www.ruby-forum.com/u/Md.elme_focruzzaman)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/exit-code-3/125264 "2008-01-07T19:00:12Z")

</div>

Hello Friend, Can you please tell me what is means by \>Exit code: 3. Thank you, Shuvo.

---

## [Translate months and day names](https://www.ruby-forum.com/t/translate-months-and-day-names/125269)

<div class="topic-metadata">

**Author:** [@masoto](https://www.ruby-forum.com/u/masoto)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/translate-months-and-day-names/125269 "2008-01-07T17:30:29Z")

</div>

Hello to all, I’m using Gettext for translate one Rails project to other languages, but I have one problem, the months and days names are no translated and they are showed in English Does anybody know a solution for …

---

## [Buffalo and Western NY Meetup (Jan 7, 2008)](https://www.ruby-forum.com/t/buffalo-and-western-ny-meetup-jan-7-2008/123704)

<div class="topic-metadata">

**Author:** [@jimlast](https://www.ruby-forum.com/u/jimlast)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/buffalo-and-western-ny-meetup-jan-7-2008/123704 "2008-01-07T16:26:04Z")

</div>

Greetings from snowy Buffalo, NY! The WNY Ruby U. Group is meeting in two weeks. This will be our second meetup, and in a new location - we’ve located a large conference room to use, thanks to AMS\[0\]. Refreshments wil…

---

## [BOM of UTF-$B#8(B](https://www.ruby-forum.com/t/bom-of-utf-b-8-b/125252)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 3\
**Last updated:** [January 7, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/bom-of-utf-b-8-b/125252 "2008-01-07T16:03:41Z")

</div>

e$BLZB\<$G$9!#e(B UTF-16e$B$N07$$$N%9%l%C%I$G$be(BBOMe$B$NOCBj$,=P$?$N$GJX\>h$G$9!#e(B e$B@$$NCf$K$O:$$C$?$3$H$Ke(BBOM(e$B$re(BUTF-8e$B7A\<0$K%(%s%3!\<%I$7$?e(B)e$B$,$/$C$D$$$?e(B UTF-8e$B%F%-%9%H$H$$$&$b$N$,B8:\_$7$F$$$?$…

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

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