# Ruby

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

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

---

## [IMAPCleanse](https://www.ruby-forum.com/t/imapcleanse/90213)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [March 29, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/imapcleanse/90213 "2006-03-29T21:22:35Z")

</div>

= IMAPCleanse Rubyforge Project: http://rubyforge.org/projects/seattlerb/ Documentation: http://seattlerb.rubyforge.org/IMAPCleanse/ == About IMAPCleanse removes old, read, unflagged messages from your IMAP mailbo…

---

## [HTTPS with ruby 1.8.4 on Windows?](https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984)

<div class="topic-metadata">

**Author:** [@worldfox](https://www.ruby-forum.com/u/worldfox)\
**Replies:** 3\
**Last updated:** [March 29, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/https-with-ruby-1-8-4-on-windows/54984 "2006-03-29T20:36:49Z")

</div>

Hello, does anybody know, what to do to get HTTPS working with ruby 1.8.4 on Windows? I get the error: RUBY18/lib/ruby/1.8/net/http.rb:565:in connect': undefined method verify\_mode’ for nil:NilClass (NoMethodError) …

---

## [Getting mails to say someone has added to your topic](https://www.ruby-forum.com/t/getting-mails-to-say-someone-has-added-to-your-topic/89526)

<div class="topic-metadata">

**Author:** [@julian](https://www.ruby-forum.com/u/julian)\
**Replies:** 3\
**Last updated:** [March 29, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/getting-mails-to-say-someone-has-added-to-your-topic/89526 "2006-03-29T20:30:44Z")

</div>

Does this group thing in google have such a facility i wonder, does any one Know, a bit of a basic question but a question never the less?? julian

---

## [Using mysql client to read a file to create a table in a dat](https://www.ruby-forum.com/t/using-mysql-client-to-read-a-file-to-create-a-table-in-a-dat/56120)

<div class="topic-metadata">

**Author:** [@julian](https://www.ruby-forum.com/u/julian)\
**Replies:** 7\
**Last updated:** [March 29, 2006, 8:09pm UTC](https://www.ruby-forum.com/t/using-mysql-client-to-read-a-file-to-create-a-table-in-a-dat/56120 "2006-03-29T20:09:30Z")

</div>

I have a little tech problem: I have a lap top running xp home service pack two and I have installed ruby 1.8.2 and rails 1.0.0 I also have mysql 4.1.16-nt via tcp/ip running on the laptop, so all three pieces of sof…

---

## [Reading/writing binary problem](https://www.ruby-forum.com/t/reading-writing-binary-problem/89988)

<div class="topic-metadata">

**Author:** [@wolfgang](https://www.ruby-forum.com/u/wolfgang)\
**Replies:** 8\
**Last updated:** [March 29, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/reading-writing-binary-problem/89988 "2006-03-29T18:56:26Z")

</div>

Hi, I have some binary files which I need to delete some data at the beginning of the file (to extract the raw data out of the file). I got a matlab file from a colleque but I would prefer if I could do it with ruby. …

---

## [Two arrays problem (although different from the other two ar](https://www.ruby-forum.com/t/two-arrays-problem-although-different-from-the-other-two-ar/56220)

<div class="topic-metadata">

**Author:** [@Kev\_J](https://www.ruby-forum.com/u/Kev_J)\
**Replies:** 2\
**Last updated:** [March 29, 2006, 6:04pm UTC](https://www.ruby-forum.com/t/two-arrays-problem-although-different-from-the-other-two-ar/56220 "2006-03-29T18:04:46Z")

</div>

I have a bunch of japanese encoded words in Kanji and Hirigana (I think). Each set is broken into two pieces, name and type, which can be combined to produce many more words, so this looks like a classic ‘iterate ove…

---

## [Waiter, there's a noob in my soup!](https://www.ruby-forum.com/t/waiter-theres-a-noob-in-my-soup/55997)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 14\
**Last updated:** [March 29, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/waiter-theres-a-noob-in-my-soup/55997 "2006-03-29T18:01:44Z")

</div>

Another thread here made me realize that I have a perfect use for RubyfulSoup. I own a site that was built with the ISP’s online site building tools. I want to move the site to different hosting before my one year “…

---

## [Rsync on rubyforge?](https://www.ruby-forum.com/t/rsync-on-rubyforge/55990)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 7\
**Last updated:** [March 29, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/rsync-on-rubyforge/55990 "2006-03-29T17:49:35Z")

</div>

Has anyone been able to rsync to their project dir on rubyforge? I get the following error message: protocol version mismatch – is your shell clean? (see the rsync man page for an explanation) rsync error: protocol i…

---

## [Rails 1.1 Released](https://www.ruby-forum.com/t/rails-1-1-released/89107)

<div class="topic-metadata">

**Author:** [@pazuzu](https://www.ruby-forum.com/u/pazuzu)\
**Replies:** 20\
**Last updated:** [March 29, 2006, 5:25pm UTC](https://www.ruby-forum.com/t/rails-1-1-released/89107 "2006-03-29T17:25:08Z")

</div>

Ran across this article on digg.com about the release of Rails 1.1: http://weblog.rubyonrails.com/articles/2006/03/28/rails-1-1-rjs-active-recor d-respond\_to-integration-tests-and-500-other-things In case anyone might…

---

## [Using emacs on Apple's PowerBook](https://www.ruby-forum.com/t/using-emacs-on-apples-powerbook/55332)

<div class="topic-metadata">

**Author:** [@Dae\_San\_H](https://www.ruby-forum.com/u/Dae_San_H)\
**Replies:** 31\
**Last updated:** [March 29, 2006, 5:22pm UTC](https://www.ruby-forum.com/t/using-emacs-on-apples-powerbook/55332 "2006-03-29T17:22:01Z")

</div>

I apologize for the off topic post, but knowing that many ruby programmers are emacs/PowerBook users, I don’t think this is completely irrelevant… For all you emacs/PowerBook users, how do you live with your PowerBoo…

---

## [Alarm.rb (#73)](https://www.ruby-forum.com/t/alarm-rb-73/90024)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [March 29, 2006, 5:09pm UTC](https://www.ruby-forum.com/t/alarm-rb-73/90024 "2006-03-29T17:09:38Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Timeout when listening with TCPServer](https://www.ruby-forum.com/t/timeout-when-listening-with-tcpserver/89292)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 13\
**Last updated:** [March 29, 2006, 5:09pm UTC](https://www.ruby-forum.com/t/timeout-when-listening-with-tcpserver/89292 "2006-03-29T17:09:38Z")

</div>

I want to listen for connections for 2 seconds, then timeout. Do I have to use the Timeout module? ~S

---

## [Get the size in pixels for a string](https://www.ruby-forum.com/t/get-the-size-in-pixels-for-a-string/90019)

<div class="topic-metadata">

**Author:** [@StSSSSphane\_Thibaud](https://www.ruby-forum.com/u/StSSSSphane_Thibaud)\
**Replies:** 1\
**Last updated:** [March 29, 2006, 5:00pm UTC](https://www.ruby-forum.com/t/get-the-size-in-pixels-for-a-string/90019 "2006-03-29T17:00:28Z")

</div>

Hi list ! Id like to know the width and height in pixels for a string given a font family, size and style. How could I do that ? Thanks, Stéphane.

---

## [WIN32OLE#= method in Ruby 1.9 (or later)](https://www.ruby-forum.com/t/win32ole-method-in-ruby-1-9-or-later/55930)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 5\
**Last updated:** [March 29, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/win32ole-method-in-ruby-1-9-or-later/55930 "2006-03-29T16:36:09Z")

</div>

Hello, I have a question about Win32OLE. I think that I’ll change the behavior of WIN32OLE#\[\] and WIN32OLE#\[\]= in Ruby 1.9 or later. I have not commited the change yet. Before commiting it, I want suggestions or opi…

---

## [Tagged unions and instantiating objects](https://www.ruby-forum.com/t/tagged-unions-and-instantiating-objects/87747)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [March 29, 2006, 4:20pm UTC](https://www.ruby-forum.com/t/tagged-unions-and-instantiating-objects/87747 "2006-03-29T16:20:49Z")

</div>

I frequently work on binary data files that contain data structures with nested tagged unions: sf2, mp3, smf, CAN, J1939. I can parse the files ad-hoc and look at data bytes to instantiate the correct final object bu…

---

## [Compiling ruby code](https://www.ruby-forum.com/t/compiling-ruby-code/89952)

<div class="topic-metadata">

**Author:** [@z1n](https://www.ruby-forum.com/u/z1n)\
**Replies:** 5\
**Last updated:** [March 29, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/compiling-ruby-code/89952 "2006-03-29T15:01:29Z")

</div>

i know very little about ruby, have only looked shortly at rails Is it possible to compile my own code so that it cannot be viewed by others ? much like the zend compiler does for php

---

## [Why do some methods names which replace the content in place](https://www.ruby-forum.com/t/why-do-some-methods-names-which-replace-the-content-in-place/55992)

<div class="topic-metadata">

**Author:** [@blair](https://www.ruby-forum.com/u/blair)\
**Replies:** 32\
**Last updated:** [March 29, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/why-do-some-methods-names-which-replace-the-content-in-place/55992 "2006-03-29T14:52:11Z")

</div>

Hi, I was wandering why some ruby methods which replaces the contents of its variable doesn’t follow the rules which say that when the method name has a “!” symbol at the end, it means that its contents will be replac…

---

## [Strings and ruby style?](https://www.ruby-forum.com/t/strings-and-ruby-style/89782)

<div class="topic-metadata">

**Author:** [@Kev\_J](https://www.ruby-forum.com/u/Kev_J)\
**Replies:** 9\
**Last updated:** [March 29, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/strings-and-ruby-style/89782 "2006-03-29T14:36:37Z")

</div>

Which of the following is considered better style? $ie.text\_field(args\[0\], $test\_data\[args\[1\].to\_s\]\["#{args\[2\]}\_fld"\]).value=$test\_data\[args\[1\].to\_s\]\[args\[2\].to\_s\] $ie.text\_field(args\[0\], $test\_data\["#{args\[1\]}"\]\["#{…

---

## [Win32OLE output parameter access?](https://www.ruby-forum.com/t/win32ole-output-parameter-access/89717)

<div class="topic-metadata">

**Author:** [@dennismajor1](https://www.ruby-forum.com/u/dennismajor1)\
**Replies:** 5\
**Last updated:** [March 29, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/win32ole-output-parameter-access/89717 "2006-03-29T14:18:06Z")

</div>

I am trying to use Ruby’s WIN32OLE support to drive Mindjet’s Mindmanager. Their Object Model reference shows the following method: \*\*\* GetOffset Method \*\*\* Returns the topic’s position-offset relative to its parent. …

---

## [Functions scope](https://www.ruby-forum.com/t/functions-scope/89788)

<div class="topic-metadata">

**Author:** [@Mirek](https://www.ruby-forum.com/u/Mirek)\
**Replies:** 7\
**Last updated:** [March 29, 2006, 1:03pm UTC](https://www.ruby-forum.com/t/functions-scope/89788 "2006-03-29T13:03:59Z")

</div>

class C def open() # how to call global open function from here? end end

---

## [\[ANN\] Ferret 0.9.0-alpha (port of Apache Lucene to pure ruby](https://www.ruby-forum.com/t/ann-ferret-0-9-0-alpha-port-of-apache-lucene-to-pure-ruby/55307)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [March 29, 2006, 12:43pm UTC](https://www.ruby-forum.com/t/ann-ferret-0-9-0-alpha-port-of-apache-lucene-to-pure-ruby/55307 "2006-03-29T12:43:28Z")

</div>

Hi Folks, I’ve just released version 0.9.0. This latest version of Ferret is an alpha release. I have removed the old c extension and Ferret is now running on a fully ported C library. This has allowed some huge perf…

---

## [How to build a daemon](https://www.ruby-forum.com/t/how-to-build-a-daemon/56224)

<div class="topic-metadata">

**Author:** [@Dominik\_Werder](https://www.ruby-forum.com/u/Dominik_Werder)\
**Replies:** 1\
**Last updated:** [March 29, 2006, 11:54am UTC](https://www.ruby-forum.com/t/how-to-build-a-daemon/56224 "2006-03-29T11:54:41Z")

</div>

Hello! While building a little network daemon I stumbled upon the following issue: I have no idea how much data I can read without blocking. So an attacker could simply ignore the protocol and stop the transfer so th…

---

## [How to 'space' certain things apart?](https://www.ruby-forum.com/t/how-to-space-certain-things-apart/89827)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 29, 2006, 11:34am UTC](https://www.ruby-forum.com/t/how-to-space-certain-things-apart/89827 "2006-03-29T11:34:08Z")

</div>

Hi, I’m trying to learn a programming language and this one came up in my searches as a fairly easy one. I’ve never taken any courses and have absolutely zero knowledge of programming or scripting. The main reason I …

---

## [Retrieving the Date Header with https-access2](https://www.ruby-forum.com/t/retrieving-the-date-header-with-https-access2/89671)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 29, 2006, 11:26am UTC](https://www.ruby-forum.com/t/retrieving-the-date-header-with-https-access2/89671 "2006-03-29T11:26:40Z")

</div>

I’ve been trying to figure out how to retrieve a http head request date using http-access2. I thought this could work: h = HTTPAccess2::Client.new() res = h.head(‘http://involution.com’) print response.header\[‘date’…

---

## [Binary (dmg) for Ruby 1.8.4 on OS X 10.4?](https://www.ruby-forum.com/t/binary-dmg-for-ruby-1-8-4-on-os-x-10-4/89785)

<div class="topic-metadata">

**Author:** [@keithpitty](https://www.ruby-forum.com/u/keithpitty)\
**Replies:** 2\
**Last updated:** [March 29, 2006, 11:12am UTC](https://www.ruby-forum.com/t/binary-dmg-for-ruby-1-8-4-on-os-x-10-4/89785 "2006-03-29T11:12:41Z")

</div>

Hello, I would like to upgrade Ruby from 1.8.2 to 1.8.4 on OS X 10.4 and am wondering if there’s a binary (dmg) file I can use to save me compiling. I’m sure I used one when I installed 1.8.2. Does anybody know of a …

---

## [Rails view sub directories?](https://www.ruby-forum.com/t/rails-view-sub-directories/56222)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 1\
**Last updated:** [March 29, 2006, 10:53am UTC](https://www.ruby-forum.com/t/rails-view-sub-directories/56222 "2006-03-29T10:53:25Z")

</div>

Can anyone show me how to go about placing specific views within a directory? ie: controllers/hello.rb views/hello/english/world.rhtml views/hello/english/people.rhtml views/hello/spanish/mundo.rhtml views/hello/s…

---

## [Range#to\_a, each - why inconsistent?](https://www.ruby-forum.com/t/range-to-a-each-why-inconsistent/89825)

<div class="topic-metadata">

**Author:** [@vsv](https://www.ruby-forum.com/u/vsv)\
**Replies:** 2\
**Last updated:** [March 29, 2006, 10:11am UTC](https://www.ruby-forum.com/t/range-to-a-each-why-inconsistent/89825 "2006-03-29T10:11:23Z")

</div>

Could someone explain me, please, why Range with one element is iterated inconsistently when this element is empty string: $ irb --simple-prompt (‘a’…‘a’).to\_a =\> \[“a”\] (1…1).to\_a =\> \[1\] but: (""…"").to\_a …

---

## [Optimization tweak . Using fork as a "mark" and "release" he](https://www.ruby-forum.com/t/optimization-tweak-using-fork-as-a-mark-and-release-he/56215)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 2\
**Last updated:** [March 29, 2006, 8:43am UTC](https://www.ruby-forum.com/t/optimization-tweak-using-fork-as-a-mark-and-release-he/56215 "2006-03-29T08:43:02Z")

</div>

Some old Pascal implementations had (and I think some still do) had a facility to “mark” the heap, and then at some point “release” all items allocated after that mark. Here is a nifty way of doing the same (and more!…

---

## [Can anyone see the obvious msitake I've made?](https://www.ruby-forum.com/t/can-anyone-see-the-obvious-msitake-ive-made/89746)

<div class="topic-metadata">

**Author:** [@Kev\_J](https://www.ruby-forum.com/u/Kev_J)\
**Replies:** 2\
**Last updated:** [March 29, 2006, 7:49am UTC](https://www.ruby-forum.com/t/can-anyone-see-the-obvious-msitake-ive-made/89746 "2006-03-29T07:49:05Z")

</div>

Hi, I’m hacking up some scripts and I have a lot of repetitive code ie: #corporate name @@ie.text\_field(:id, @test\_data\[‘pg\_401’\]\[‘corp\_nm\_fld’\]).value=@test\_data\[‘pg\_401’\]\[‘corp\_nm’\] @@ie.text\_field(:id, @test\_dat…

---

## [Require "tk" on linux](https://www.ruby-forum.com/t/require-tk-on-linux/55914)

<div class="topic-metadata">

**Author:** [@braas](https://www.ruby-forum.com/u/braas)\
**Replies:** 7\
**Last updated:** [March 29, 2006, 7:03am UTC](https://www.ruby-forum.com/t/require-tk-on-linux/55914 "2006-03-29T07:03:31Z")

</div>

Hi there, I really need to be able to use tk on my linux box, but I get an error: require “tk” =\> test.rb:1:in \`require’: No such file to load – tk (LoadError) I can’t figure out how to solve this, since I got tk in…

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

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