# Ruby

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

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

---

## [Waves 0.7.7 Released](https://www.ruby-forum.com/t/waves-0-7-7-released/142849)

<div class="topic-metadata">

**Author:** [@danoyoung](https://www.ruby-forum.com/u/danoyoung)\
**Replies:** 0\
**Last updated:** [July 12, 2008, 3:57am UTC](https://www.ruby-forum.com/t/waves-0-7-7-released/142849 "2008-07-12T03:57:17Z")

</div>

Waves 0.7.7 is now a gem. Read all about it: NameBright - Coming Soon What is Waves? A think-outside-the-box Web app framework. Read more: http://rubywaves.com Thank you for your support! Regards, Dan

---

## [GUI for a newbie](https://www.ruby-forum.com/t/gui-for-a-newbie/127745)

<div class="topic-metadata">

**Author:** [@matthewmurcia](https://www.ruby-forum.com/u/matthewmurcia)\
**Replies:** 27\
**Last updated:** [July 12, 2008, 3:44am UTC](https://www.ruby-forum.com/t/gui-for-a-newbie/127745 "2008-07-12T03:44:13Z")

</div>

Hello All- I have taken up Ruby over the past year and have finally written 7 applications for various functions for my job as a clinical pharmacist. The problem I have here is that while my programs all work great, t…

---

## [Threadify-0.0.3](https://www.ruby-forum.com/t/threadify-0-0-3/142848)

<div class="topic-metadata">

**Author:** [@ara\_howard](https://www.ruby-forum.com/u/ara_howard)\
**Replies:** 0\
**Last updated:** [July 12, 2008, 3:37am UTC](https://www.ruby-forum.com/t/threadify-0-0-3/142848 "2008-07-12T03:37:23Z")

</div>

NAME threadify.rb SYNOPSIS enumerable = %w( a b c d ) enumerable.threadify(2){ ‘process this block using two worker threads’ } DESCRIPTION threadify.rb makes it stupid easy to process a bunch of data using ‘n’ w…

---

## [Thread-safe priority queue?](https://www.ruby-forum.com/t/thread-safe-priority-queue/142595)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 12\
**Last updated:** [July 12, 2008, 1:40am UTC](https://www.ruby-forum.com/t/thread-safe-priority-queue/142595 "2008-07-12T01:40:59Z")

</div>

Hi, Does anyone know of a solid, thread-safe priority queue implementation in Ruby? The only one I can find is Joel Vanderwerf’s (http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/9d9db98931e4a74f) …

---

## [MSpec in SVN/TFS closing down](https://www.ruby-forum.com/t/mspec-in-svn-tfs-closing-down/142840)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [July 11, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/mspec-in-svn-tfs-closing-down/142840 "2008-07-11T23:58:39Z")

</div>

Now that I’ve ported the MSpec changes to Git, I’ll be getting ready to delete the version in the SVN/TFS repository. Before I do that I wanted to make sure there aren’t any outstanding patches that need to be incorpo…

---

## [More spec review](https://www.ruby-forum.com/t/more-spec-review/142771)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [July 11, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/more-spec-review/142771 "2008-07-11T23:35:14Z")

</div>

I’ve commited some more stuff to my Rubyspec fork, I’d like to get some reviews before I merge them to Johns. The commit numbers are: 123084 fb9a920 b7d69ef ddbab38 a2a3c4b cc48d366 That’s the last 6 commits I’ve…

---

## [Working on a first plain Ruby script, need help with \`join'](https://www.ruby-forum.com/t/working-on-a-first-plain-ruby-script-need-help-with-join/142823)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 5\
**Last updated:** [July 11, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/working-on-a-first-plain-ruby-script-need-help-with-join/142823 "2008-07-11T21:31:25Z")

</div>

I need help in the block to create a csv file of these entries. the file, abridged: @verb\_index = " aah v 1 1 @ 1 0 00865776 abacinate v 1 1 @ 1 0 02168378 abandon v 5 4 @ ~ $ + 5 5 02228031 02227741 02076676 006133…

---

## [How to Authenticate against the Windows NT Domain via Ruby](https://www.ruby-forum.com/t/how-to-authenticate-against-the-windows-nt-domain-via-ruby/140591)

<div class="topic-metadata">

**Author:** [@ChessMess](https://www.ruby-forum.com/u/ChessMess)\
**Replies:** 11\
**Last updated:** [July 11, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/how-to-authenticate-against-the-windows-nt-domain-via-ruby/140591 "2008-07-11T21:01:38Z")

</div>

We are running a Rails application on Linux RedHat with a requirement to validate users against a Windows NT Domain (single sign-on scenario). Some sites use LDAP, others do not. Is there any Ruby libraries or code sa…

---

## [Piping data in on the command line](https://www.ruby-forum.com/t/piping-data-in-on-the-command-line/142566)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 5\
**Last updated:** [July 11, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/piping-data-in-on-the-command-line/142566 "2008-07-11T20:13:37Z")

</div>

Hello all, I know you can get command line args using ARGV, but is there a way to use the ‘\<’ operator to pipe data into your program, as in ruby myprog.rb \< ~/myfile.txt

---

## [Block variable not working how I expect it to work](https://www.ruby-forum.com/t/block-variable-not-working-how-i-expect-it-to-work/142806)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 4\
**Last updated:** [July 11, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/block-variable-not-working-how-i-expect-it-to-work/142806 "2008-07-11T19:32:38Z")

</div>

Here is my ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\] Here is the block I wrote (this is actually a little test block for testing part of a larger block): def myblock testvar = \[‘cool’, ’ arr…

---

## [MS SQL 2005 Express and MySQL on Windows](https://www.ruby-forum.com/t/ms-sql-2005-express-and-mysql-on-windows/142760)

<div class="topic-metadata">

**Author:** [@kyle](https://www.ruby-forum.com/u/kyle)\
**Replies:** 6\
**Last updated:** [July 11, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/ms-sql-2005-express-and-mysql-on-windows/142760 "2008-07-11T19:25:37Z")

</div>

The short question: Has anybody successfully connected to both MS SQL 2005 Express and MySQL databases using Ruby on Windows XP? How? The long description: My company’s point-of-sale system uses MS SQL. A recent upgr…

---

## [Trying to write a first plain ruby script](https://www.ruby-forum.com/t/trying-to-write-a-first-plain-ruby-script/142774)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/trying-to-write-a-first-plain-ruby-script/142774 "2008-07-11T19:08:10Z")

</div>

In irb, the method “one\\ntwo\\nthree”.split worked fine but in a file… @text = " line one line two line three " @lines = @text.split(/\\n/) … it fails: “private method \`split’ called for nil:NilClass (NoMethodErro…

---

## [ANNOUNCE: Rucola 0.5 released](https://www.ruby-forum.com/t/announce-rucola-0-5-released/142779)

<div class="topic-metadata">

**Author:** [@el-oy](https://www.ruby-forum.com/u/el-oy)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/announce-rucola-0-5-released/142779 "2008-07-11T18:58:05Z")

</div>

Hi, I’ve just released Rucola 0.5 Rucola is a light weight framework that helps you write RubyCocoa apps. It allows you to build, test, and deploy applications using rake commands, eliminating the need to use XCode …

---

## [Regex to find urls in text?](https://www.ruby-forum.com/t/regex-to-find-urls-in-text/142803)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [July 11, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/regex-to-find-urls-in-text/142803 "2008-07-11T18:35:31Z")

</div>

On our site, our resources have a description, which is often copied and pasted from somewhere else. Often these descriptions have urls in them, just as normal text, and i’d like to automatically make these into work…

---

## [Gem update](https://www.ruby-forum.com/t/gem-update/142797)

<div class="topic-metadata">

**Author:** [@phdjlc](https://www.ruby-forum.com/u/phdjlc)\
**Replies:** 4\
**Last updated:** [July 11, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/gem-update/142797 "2008-07-11T18:07:40Z")

</div>

Hi, I’m behind a firewall. How can I update ruby modules? If I try to do a gem update --system I get the following error: ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) getaddrinfo: no address ass…

---

## [Mail\_fetcher socket error](https://www.ruby-forum.com/t/mail-fetcher-socket-error/142801)

<div class="topic-metadata">

**Author:** [@axees335](https://www.ruby-forum.com/u/axees335)\
**Replies:** 0\
**Last updated:** [July 11, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/mail-fetcher-socket-error/142801 "2008-07-11T17:25:26Z")

</div>

Hi, I am using the mail\_fetcher from rubyforge.org/var/svn/slantwise/fetcher as described in Advanced Rails Recipes, Recipe 40. It works great, but every once in a while I get a SocketError and it dies with the er…

---

## [Unescape xml element content](https://www.ruby-forum.com/t/unescape-xml-element-content/142785)

<div class="topic-metadata">

**Author:** [@stonebreaker](https://www.ruby-forum.com/u/stonebreaker)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/unescape-xml-element-content/142785 "2008-07-11T17:06:02Z")

</div>

Is there a way to unescape this string? Lätt B bed. Två omgångar A:0 och A:0

---

## [\[Ruby 1.9 - Feature #17\] (Closed) deadlock detection for 1.9](https://www.ruby-forum.com/t/ruby-1-9-feature-17-closed-deadlock-detection-for-1-9/142795)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 0\
**Last updated:** [July 11, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/ruby-1-9-feature-17-closed-deadlock-detection-for-1-9/142795 "2008-07-11T16:44:59Z")

</div>

e$B%A%1%C%He(B #17 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$BC4Ev\<Te(B Koichi Sasadae$B$+$ie(BYusuke E.e$B$KJQ99e(B integrated in r17110 http://redmine.ruby-lang.org…

---

## [Got my redirect to work... something.cgi](https://www.ruby-forum.com/t/got-my-redirect-to-work-something-cgi/142752)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/got-my-redirect-to-work-something-cgi/142752 "2008-07-11T15:57:30Z")

</div>

require “#{ScriptLib}/CGIUtils.rb” if $CGIo.has\_key?(‘user\_name’) and $CGIo\[‘user\_name’\] != ‘’ then # ## Add call to CVS Access validation here eventually. # un = $CGIo\['user\_name'\] cookie = CGI::Cookie.new('user…

---

## [Overloading the \[\]-Operator](https://www.ruby-forum.com/t/overloading-the-operator/142693)

<div class="topic-metadata">

**Author:** [@mawi](https://www.ruby-forum.com/u/mawi)\
**Replies:** 3\
**Last updated:** [July 11, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/overloading-the-operator/142693 "2008-07-11T13:02:31Z")

</div>

Hi, I’m trying to overload the \[ \] operator. It works fine for read-only access: def @myValues\[acc\] end However, I’d also need write access. I’ve tried: def =(value) @myValues\[acc\] = value end And get a syntax…

---

## [Ruby extension for qt](https://www.ruby-forum.com/t/ruby-extension-for-qt/142772)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 11:13am UTC](https://www.ruby-forum.com/t/ruby-extension-for-qt/142772 "2008-07-11T11:13:37Z")

</div>

Dear all, I am planning to write ‘ruby extension for accessing qt classes’( I dont want to use the existing “qtruby” ). if anyone having idea regarding this, please help me. Thanks in advance. regards.

---

## [Cc always picks ruby/ruby.h on OS X](https://www.ruby-forum.com/t/cc-always-picks-ruby-ruby-h-on-os-x/142550)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 6\
**Last updated:** [July 11, 2008, 7:48am UTC](https://www.ruby-forum.com/t/cc-always-picks-ruby-ruby-h-on-os-x/142550 "2008-07-11T07:48:19Z")

</div>

ã€€ruby 1.8 ã® tk ãƒ©ã‚¤ãƒ–ãƒ©ãƒªãŒ OS X ä¸Šã§ãƒ“ãƒ«ãƒ‰ã§ããªã„ä»¶ã§ã™ã€‚ ã€€OS X ã® gcc ã«ã¯ä»•æŽ›ã‘ãŒã‚ã‚Šã€ ruby 1.9 ãŒå…¥ã£ã¦ã„ãªãã¦ã‚‚ #include \<ruby/ruby.h\> ã¯ /System/Library/Frameworks…

---

## [String#upcase/downcase with UTF-8 strings in Ruby 1.9](https://www.ruby-forum.com/t/string-upcase-downcase-with-utf-8-strings-in-ruby-1-9/142639)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 6\
**Last updated:** [July 11, 2008, 7:34am UTC](https://www.ruby-forum.com/t/string-upcase-downcase-with-utf-8-strings-in-ruby-1-9/142639 "2008-07-11T07:34:51Z")

</div>

Hello, in Ruby 1.9 I get the following behaviour: “aoueäöüé”.upcase =\> “AOUEäöüé”\>\> “AOUEÄÖÜÉ”.downcase =\> “aoueÄÖÜÉ” I can’t find however find a bug in the bug tracking system. Doesn’t this qualify as a bug? …

---

## [Communication between 2 ruby programs](https://www.ruby-forum.com/t/communication-between-2-ruby-programs/142741)

<div class="topic-metadata">

**Author:** [@julien51](https://www.ruby-forum.com/u/julien51)\
**Replies:** 7\
**Last updated:** [July 11, 2008, 5:46am UTC](https://www.ruby-forum.com/t/communication-between-2-ruby-programs/142741 "2008-07-11T05:46:38Z")

</div>

Hi! I am having a hard time solving this issue and I’m sure you guys know how to treat that very easily! I’ve got a “bot” on one side which runs : class Bot def self.start loop do input = gets # Get a user input f…

---

## [Map with &:method\_name](https://www.ruby-forum.com/t/map-with-method-name/142736)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 3\
**Last updated:** [July 11, 2008, 4:07am UTC](https://www.ruby-forum.com/t/map-with-method-name/142736 "2008-07-11T04:07:10Z")

</div>

I see this a lot but it doesn’t work for me in IRB. Is a gem required or something? \[1,2,3\].map(&:to\_s) TypeError: wrong argument type Symbol (expected Proc) from (irb):2

---

## [Code Review: StringGsubVersion](https://www.ruby-forum.com/t/code-review-stringgsubversion/142755)

<div class="topic-metadata">

**Author:** [@Dave\_Remy](https://www.ruby-forum.com/u/Dave_Remy)\
**Replies:** 3\
**Last updated:** [July 11, 2008, 4:01am UTC](https://www.ruby-forum.com/t/code-review-stringgsubversion/142755 "2008-07-11T04:01:53Z")

</div>

tfpt review “/shelveset:StringGsubVersion;REDMOND\\dremy” Comment : This change fixes all of the gsub, each, and each\_line specs. Added aditional tests to gsub spec. The excluded gsub tests are only failing on unim…

---

## [Compile ruby sources with mingw for ms-windows-386](https://www.ruby-forum.com/t/compile-ruby-sources-with-mingw-for-ms-windows-386/142751)

<div class="topic-metadata">

**Author:** [@Ranieri\_T](https://www.ruby-forum.com/u/Ranieri_T)\
**Replies:** 0\
**Last updated:** [July 11, 2008, 2:51am UTC](https://www.ruby-forum.com/t/compile-ruby-sources-with-mingw-for-ms-windows-386/142751 "2008-07-11T02:51:03Z")

</div>

Can you point me to the path that will show how to compile ruby sources with mingw?

---

## [Ruby Raw Sockets](https://www.ruby-forum.com/t/ruby-raw-sockets/142735)

<div class="topic-metadata">

**Author:** [@fdmanana](https://www.ruby-forum.com/u/fdmanana)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 12:09am UTC](https://www.ruby-forum.com/t/ruby-raw-sockets/142735 "2008-07-11T00:09:34Z")

</div>

Hello, I am trying to do packet injection through a Ruby socket, like this: PF\_PACKET = 17 # linux/socket.h AF\_PACKET = PF\_PACKET # linux/socket.h ETH\_P\_ALL = 0x03\_00 # linux/if\_ether.h (but in netw…

---

## [File modes](https://www.ruby-forum.com/t/file-modes/142726)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 5\
**Last updated:** [July 10, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/file-modes/142726 "2008-07-10T23:49:40Z")

</div>

A post on Arc \[Arcane Sentiment: Arc gets I/O right\] made an excellent point - file modes are essentially exposing a low level implementation detail for a high level feature. Would be nice to have File.open\_read, ope…

---

## [Code Review: BlockDispatch7](https://www.ruby-forum.com/t/code-review-blockdispatch7/142659)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/code-review-blockdispatch7/142659 "2008-07-10T23:43:14Z")

</div>

tfpt review “/shelveset:BlockDispatch7;REDMOND\\tomat” Improves dispatch to blocks. Previously, DynamicSites were used to adapt call site’s arguments to the signature of the target block. In block invocation no resolut…

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

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