# Ruby

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

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

---

## [Ruby Quiz Solutions (#63 Grid Folding)](https://www.ruby-forum.com/t/ruby-quiz-solutions-63-grid-folding/53062)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 24, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/ruby-quiz-solutions-63-grid-folding/53062 "2006-01-24T15:33:02Z")

</div>

Since the gateway is misbehaving, I have crawled the newsgroup looking for solutions I never saw. Everything I have found is now listed on: http://www.rubyquiz.com/quiz63.html If you submitted and do not see your so…

---

## [Re: Making Array#uniq work](https://www.ruby-forum.com/t/re-making-array-uniq-work/53061)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 0\
**Last updated:** [January 24, 2006, 1:04pm UTC](https://www.ruby-forum.com/t/re-making-array-uniq-work/53061 "2006-01-24T13:04:34Z")

</div>

the one I would wish for. Any pointers? I’m running 1.8.2 Hi, you have to define a ‘hash’ method because Array uses a Hash to remove the duplicates. e.g.: class A attr\_accessor :a,:b def initialize a @a=a @b=A…

---

## [Making Array#uniq work](https://www.ruby-forum.com/t/making-array-uniq-work/96518)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 24, 2006, 12:37pm UTC](https://www.ruby-forum.com/t/making-array-uniq-work/96518 "2006-01-24T12:37:11Z")

</div>

OK, according to the Pickaxe 2nd. Edition, Array#uniq judges uniqueness based on eql?. Somehow this doesn’t seem to work for me :). Following code returns the Array with two members instead of the one I would wish for…

---

## [\[SOLUTION\] Grid Folding (#63)](https://www.ruby-forum.com/t/solution-grid-folding-63/64366)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 3\
**Last updated:** [January 24, 2006, 10:21am UTC](https://www.ruby-forum.com/t/solution-grid-folding-63/64366 "2006-01-24T10:21:01Z")

</div>

def fold(row, col, operations) def t2b(table) t1 = table\[0…table.size/2\].reverse t2 = table\[table.size/2…-1\] row = t1.size col = t1\[0\].size row.times { |r| col.times { |c| t2\[r\]\[c\] = t1\[r\]\[c\].reverse + t2\[r\]\[c\] } …

---

## [Why there's no ruby 1.8.4 for win-one-click-installer?](https://www.ruby-forum.com/t/why-theres-no-ruby-1-8-4-for-win-one-click-installer/51062)

<div class="topic-metadata">

**Author:** [@Arie\_Kusuma\_A](https://www.ruby-forum.com/u/Arie_Kusuma_A)\
**Replies:** 13\
**Last updated:** [January 24, 2006, 8:46am UTC](https://www.ruby-forum.com/t/why-theres-no-ruby-1-8-4-for-win-one-click-installer/51062 "2006-01-24T08:46:58Z")

</div>

http://rubyforge.org/frs/?group\_id=167 why there’s no ruby 1.8.4 for win-one-click-installer? thx – regards \<%= arie %\> email: removed\_email\_address@domain.invalid Arie Kusuma A. removed\_email\_address@domain.inval…

---

## [Buffered IO and UDPSocket](https://www.ruby-forum.com/t/buffered-io-and-udpsocket/96451)

<div class="topic-metadata">

**Author:** [@giom](https://www.ruby-forum.com/u/giom)\
**Replies:** 3\
**Last updated:** [January 24, 2006, 7:31am UTC](https://www.ruby-forum.com/t/buffered-io-and-udpsocket/96451 "2006-01-24T07:31:02Z")

</div>

This one is driving me nuts! What causes and IO object (more specifically a UDPSocket here, bound to port 1025) to become “buffered”? When I do simple test case in irb with such a socket, I can call #recvfrom on it wi…

---

## [My Thought on the "Pickaxe book" (from a Ruby novice)](https://www.ruby-forum.com/t/my-thought-on-the-pickaxe-book-from-a-ruby-novice/62882)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 31\
**Last updated:** [January 24, 2006, 7:09am UTC](https://www.ruby-forum.com/t/my-thought-on-the-pickaxe-book-from-a-ruby-novice/62882 "2006-01-24T07:09:51Z")

</div>

Chaps, Ruby seems like a great language and the book’s good too. However a novice like me won’t be able to appreciate \*.rb when there’s soooo many examples of “there’s more than one way to do it”. I learn pretty quick…

---

## [Test::Unit::XML 0.1.4](https://www.ruby-forum.com/t/test-xml-0-1-4/53056)

<div class="topic-metadata">

**Author:** [@Henrik\_M](https://www.ruby-forum.com/u/Henrik_M)\
**Replies:** 0\
**Last updated:** [January 24, 2006, 6:54am UTC](https://www.ruby-forum.com/t/test-xml-0-1-4/53056 "2006-01-24T06:54:41Z")

</div>

Test::Unit::XML version 0.1.4 has just been released on RubyForge. This release adds Doctype comparisons, including comparisons of entity and notation declarations in the internal DTD subset. There is one bug fix: emb…

---

## [Re: Grid Folding (#63)](https://www.ruby-forum.com/t/re-grid-folding-63/96448)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [January 24, 2006, 6:29am UTC](https://www.ruby-forum.com/t/re-grid-folding-63/96448 "2006-01-24T06:29:18Z")

</div>

My solution, performs all the extra credits. tate.rb It’s basically: get a stack of 2d arrays, chop them in half, rotate them around and plonk them on top. The key bit was probably figuring out that you could just …

---

## [Fwd: Grid Folding (#63)](https://www.ruby-forum.com/t/fwd-grid-folding-63/53010)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 7\
**Last updated:** [January 24, 2006, 4:01am UTC](https://www.ruby-forum.com/t/fwd-grid-folding-63/53010 "2006-01-24T04:01:08Z")

</div>

Begin forwarded message:

---

## [Unsubscribe?](https://www.ruby-forum.com/t/unsubscribe/96347)

<div class="topic-metadata">

**Author:** [@Christian\_Baumann](https://www.ruby-forum.com/u/Christian_Baumann)\
**Replies:** 2\
**Last updated:** [January 23, 2006, 11:14pm UTC](https://www.ruby-forum.com/t/unsubscribe/96347 "2006-01-23T23:14:04Z")

</div>

Hi! How can I unsubscribe from this mailinglist?! Kind Regards, Chriss

---

## [Raising my own exceptions with DRb](https://www.ruby-forum.com/t/raising-my-own-exceptions-with-drb/96316)

<div class="topic-metadata">

**Author:** [@Reto\_S](https://www.ruby-forum.com/u/Reto_S)\
**Replies:** 1\
**Last updated:** [January 23, 2006, 10:58pm UTC](https://www.ruby-forum.com/t/raising-my-own-exceptions-with-drb/96316 "2006-01-23T22:58:39Z")

</div>

Hi I’m looking for a way to raise my own exceptions over drb. It’s no problem to raise the usual/standard exceptions like ArgumentError etc. I tried to define the Exceptions in the client and I tried to include the D…

---

## [Flickr-ruby moved to Rubyforge](https://www.ruby-forum.com/t/flickr-ruby-moved-to-rubyforge/96366)

<div class="topic-metadata">

**Author:** [@Premshree\_Pillai](https://www.ruby-forum.com/u/Premshree_Pillai)\
**Replies:** 0\
**Last updated:** [January 23, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/flickr-ruby-moved-to-rubyforge/96366 "2006-01-23T22:34:01Z")

</div>

Hello, Just wanted to inform that I moved flickr-ruby to rubyforge some days back. It now resides at http://rubyforge.org/projects/libyws There’s a sample uploder script in /flickr/apps for those interested in knowin…

---

## [Error:- "regex literal in condition"](https://www.ruby-forum.com/t/error-regex-literal-in-condition/52937)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 31\
**Last updated:** [January 23, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/error-regex-literal-in-condition/52937 "2006-01-23T22:31:00Z")

</div>

Hi Guys, Simple script that spits out “Ruby” if it was typed at stdin. What’s the error, see below. #!/usr/bin/env ruby while gets if /Ruby/ print end end jayeola@tp20$ ruby fx/ruby/p22 fx/ruby/p22:4: warning: …

---

## [Install lib!](https://www.ruby-forum.com/t/install-lib/96294)

<div class="topic-metadata">

**Author:** [@beer](https://www.ruby-forum.com/u/beer)\
**Replies:** 1\
**Last updated:** [January 23, 2006, 7:04pm UTC](https://www.ruby-forum.com/t/install-lib/96294 "2006-01-23T19:04:30Z")

</div>

i find this lib in this url http://rubyforge.org/projects/win32console/ But I donÂ´t no know install it thanks!!!

---

## [Gstreamer tag usage](https://www.ruby-forum.com/t/gstreamer-tag-usage/53038)

<div class="topic-metadata">

**Author:** [@Payton\_S](https://www.ruby-forum.com/u/Payton_S)\
**Replies:** 0\
**Last updated:** [January 23, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/gstreamer-tag-usage/53038 "2006-01-23T18:48:25Z")

</div>

I’m working on a Ruby application which uses the GStreamer bindings, and I’ve got playback working quite well, but I am very confused about the Gst::Tag (and Gst::TagSetter) usage. I am inexperienced with GStreamer, b…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/96291)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 0\
**Last updated:** [January 23, 2006, 6:39pm UTC](https://www.ruby-forum.com/t/no-subject/96291 "2006-01-23T18:39:17Z")

</div>

chaddr removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid

---

## [Line Breaks in RDoc?](https://www.ruby-forum.com/t/line-breaks-in-rdoc/95948)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 2\
**Last updated:** [January 23, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/line-breaks-in-rdoc/95948 "2006-01-23T17:41:10Z")

</div>

In RDoc format, how do I get it to insert an HTML line break ( )?

---

## [List of drives?](https://www.ruby-forum.com/t/list-of-drives/52906)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 23, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/list-of-drives/52906 "2006-01-23T17:19:05Z")

</div>

Is there a way in ruby with out extra libraries to get a list of drives? hard drives, dvd drives, network drives, …? Becker

---

## [Net::HTTP post](https://www.ruby-forum.com/t/net-http-post/96076)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 7\
**Last updated:** [January 23, 2006, 3:50pm UTC](https://www.ruby-forum.com/t/net-http-post/96076 "2006-01-23T15:50:15Z")

</div>

Can someone point me to an example of sending a POST request using Net::HTTP? I found one at http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html, but this use the method post\_data which, when I …

---

## [Sending email body text based on form content](https://www.ruby-forum.com/t/sending-email-body-text-based-on-form-content/53019)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 1\
**Last updated:** [January 23, 2006, 3:06am UTC](https://www.ruby-forum.com/t/sending-email-body-text-based-on-form-content/53019 "2006-01-23T03:06:35Z")

</div>

As a noob to Rails and web development in general, I think I still need a broader understanding of how Views, Controllers, and Models pass information and variables to each other. I’m creating a site that allows for e…

---

## [Re: Grid Folding (#63)](https://www.ruby-forum.com/t/re-grid-folding-63/64303)

<div class="topic-metadata">

**Author:** [@Bill\_Dolinar](https://www.ruby-forum.com/u/Bill_Dolinar)\
**Replies:** 0\
**Last updated:** [January 23, 2006, 2:45am UTC](https://www.ruby-forum.com/t/re-grid-folding-63/64303 "2006-01-23T02:45:18Z")

</div>

Here’s my solution. Looks like it didn’t get from google to the mailing list. I used arrays within arrays as well. I wrote my own loops to do the folding. I see now I could have done it much more succinctly. I we…

---

## [C-extension problem](https://www.ruby-forum.com/t/c-extension-problem/63798)

<div class="topic-metadata">

**Author:** [@hotjuneshen](https://www.ruby-forum.com/u/hotjuneshen)\
**Replies:** 8\
**Last updated:** [January 23, 2006, 12:31am UTC](https://www.ruby-forum.com/t/c-extension-problem/63798 "2006-01-23T00:31:57Z")

</div>

Dear list. After reading through this walkthrough (1) of compiling c-extensions on Windows I was finally able to build the pickaxe example on two different PC’s. One with Visual Studio 2003, the other with Visual C++ …

---

## [Newbie: Recursive deletion of files and dir](https://www.ruby-forum.com/t/newbie-recursive-deletion-of-files-and-dir/53015)

<div class="topic-metadata">

**Author:** [@FredrikC](https://www.ruby-forum.com/u/FredrikC)\
**Replies:** 1\
**Last updated:** [January 22, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/newbie-recursive-deletion-of-files-and-dir/53015 "2006-01-22T22:52:19Z")

</div>

Hi! I’m designing (newbie level) a script to clean up empty directories and old files recursivly. Something is wrong…works fine when not actually deleting anything, but when I start removing files and directories it …

---

## [Talking to other applications on windows](https://www.ruby-forum.com/t/talking-to-other-applications-on-windows/52968)

<div class="topic-metadata">

**Author:** [@hotjuneshen](https://www.ruby-forum.com/u/hotjuneshen)\
**Replies:** 4\
**Last updated:** [January 22, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/talking-to-other-applications-on-windows/52968 "2006-01-22T22:03:04Z")

</div>

Dear list For a customer I’m building a GUI for a analytical application. The analytical algorithm is confidential and implemented in a seperate .exe program. However I am very pleased to have the customer agreeing t…

---

## [Protected methods and class methods](https://www.ruby-forum.com/t/protected-methods-and-class-methods/63516)

<div class="topic-metadata">

**Author:** [@gioele](https://www.ruby-forum.com/u/gioele)\
**Replies:** 3\
**Last updated:** [January 22, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/protected-methods-and-class-methods/63516 "2006-01-22T18:59:39Z")

</div>

Hi, is there a way to call a protected method of a class from a static method of the same class? Or to acces an instance variable of a class from a static method of the same class? Now I’m facing a problem. I use s…

---

## [Radius 0.0.1 -- Powerful Tag-Based Templates](https://www.ruby-forum.com/t/radius-0-0-1-powerful-tag-based-templates/95953)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 2\
**Last updated:** [January 22, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/radius-0-0-1-powerful-tag-based-templates/95953 "2006-01-22T15:20:36Z")

</div>

I am pleased to announce the immediate release of Radius 0.0.1. This is very beta right now, but I wanted to release it so that I could begin getting feedback. Radius is a small, but powerful tag-based template langua…

---

## [Rdoc under Windows: --exclude pattern](https://www.ruby-forum.com/t/rdoc-under-windows-exclude-pattern/63413)

<div class="topic-metadata">

**Author:** [@Burkhard\_Boerner](https://www.ruby-forum.com/u/Burkhard_Boerner)\
**Replies:** 1\
**Last updated:** [January 22, 2006, 2:41pm UTC](https://www.ruby-forum.com/t/rdoc-under-windows-exclude-pattern/63413 "2006-01-22T14:41:10Z")

</div>

Hello, I need a little help: under UNIX the pattern for the --exclude option works well ( --exclude /base|hidden/ ), but under Windows (Batch-File) ==\> “hidden is not a command …” Can someone me help to write a…

---

## [Ruby Parser Combinator](https://www.ruby-forum.com/t/ruby-parser-combinator/52916)

<div class="topic-metadata">

**Author:** [@sfwalter](https://www.ruby-forum.com/u/sfwalter)\
**Replies:** 10\
**Last updated:** [January 22, 2006, 9:51am UTC](https://www.ruby-forum.com/t/ruby-parser-combinator/52916 "2006-01-22T09:51:17Z")

</div>

Hello all, this is my first post on the ruby-talk list. I’ve been using ruby for a while though :slight\_smile: Anyway, just horsing around I tried my hand at writing a ruby parser combinator. It (along with an explan…

---

## [Double metaphone](https://www.ruby-forum.com/t/double-metaphone/52976)

<div class="topic-metadata">

**Author:** [@Paul\_Rush](https://www.ruby-forum.com/u/Paul_Rush)\
**Replies:** 0\
**Last updated:** [January 22, 2006, 4:28am UTC](https://www.ruby-forum.com/t/double-metaphone/52976 "2006-01-22T04:28:15Z")

</div>

does anyone know if there is an implementation of the double metaphone algorithm available in ruby? google searching turns up very little of interest. if not, i’d be happy to port the jakarta commons version and make…

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

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