# Ruby

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

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

---

## [Regexp](https://www.ruby-forum.com/t/regexp/97487)

<div class="topic-metadata">

**Author:** [@outrelouxhe](https://www.ruby-forum.com/u/outrelouxhe)\
**Replies:** 6\
**Last updated:** [July 7, 2006, 1:08pm UTC](https://www.ruby-forum.com/t/regexp/97487 "2006-07-07T13:08:48Z")

</div>

Hello, I’m new to Ruby and I’m fighting with regexp. I would like to replace ‘test1\<\\math\>’ and ‘test2\<\\math\>’ by ‘ok’ in the string “blabla1 blabla1 test1\<\\math\> blabla2 blabla2 test2\<\\math\>” When I try this : @a …

---

## [Re: debugging proposal](https://www.ruby-forum.com/t/re-debugging-proposal/97438)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 1\
**Last updated:** [July 7, 2006, 11:41am UTC](https://www.ruby-forum.com/t/re-debugging-proposal/97438 "2006-07-07T11:41:29Z")

</div>

A few points I’d like to make on the “do we or don’t we need a debugger” debate. These are my personal opinions and not intended to upset anybody: a debugger is very helpful in understanding other people’s code (wh…

---

## [Jcode.rb ruby-1.9](https://www.ruby-forum.com/t/jcode-rb-ruby-1-9/97464)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 2\
**Last updated:** [July 7, 2006, 10:29am UTC](https://www.ruby-forum.com/t/jcode-rb-ruby-1-9/97464 "2006-07-07T10:29:45Z")

</div>

e$BEOJUE/Li$G$9!#e(B jcode.rb e$B$G%(%i!\<$,$G$^$7$?$N$G!"$$7$i$;$7$Fe(B e$B$$-$^$9!#e(B $ ruby -v ruby 1.9.0 (2006-07-07) \[i686-linux\] e$B$K$F!"\<!$N%9%/%j%W%H$rF0$+$9$He(B #! /usr/local/bin/ruby -Ke e$B%F%9%H;~$O…

---

## [Danish Characters in Ruby Uri](https://www.ruby-forum.com/t/danish-characters-in-ruby-uri/97462)

<div class="topic-metadata">

**Author:** [@scrozier](https://www.ruby-forum.com/u/scrozier)\
**Replies:** 9\
**Last updated:** [July 7, 2006, 8:25am UTC](https://www.ruby-forum.com/t/danish-characters-in-ruby-uri/97462 "2006-07-07T08:25:08Z")

</div>

Hi, There would appear to be a deficiency in the common.rb URI module of uri when processing non-standard characters e.g. c:/ruby/lib/ruby/1.8/uri/common.rb:432:in split': bad URI(is not URI?): http:// fakebase/twik…

---

## [Achieving Equality](https://www.ruby-forum.com/t/achieving-equality/97392)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [July 7, 2006, 6:57am UTC](https://www.ruby-forum.com/t/achieving-equality/97392 "2006-07-07T06:57:19Z")

</div>

I have this fancy class: Read from one and write to another. class RWDelegator def initialize( read, write ) @read = read @write = write end def inspect "#{@read.call.inspect}\*" end def ==( other ) @read.call…

---

## [Re: text to speech?](https://www.ruby-forum.com/t/re-text-to-speech/97452)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [July 7, 2006, 5:19am UTC](https://www.ruby-forum.com/t/re-text-to-speech/97452 "2006-07-07T05:19:34Z")

</div>

fr Jamal: Programming is practical, however, with a text editor like TextPad or NoteTab. In fact, I have personally developed a text editor called TextPal, using the Ruby language and wrappers for the WxWidgets GUI …

---

## [How to create directory in file system](https://www.ruby-forum.com/t/how-to-create-directory-in-file-system/97445)

<div class="topic-metadata">

**Author:** [@jeffl](https://www.ruby-forum.com/u/jeffl)\
**Replies:** 2\
**Last updated:** [July 7, 2006, 3:42am UTC](https://www.ruby-forum.com/t/how-to-create-directory-in-file-system/97445 "2006-07-07T03:42:27Z")

</div>

This seems like it should be an easy thing to figure out, but I’ve been Googling for a half hour, plus looked in the Pickaxe book, but can’t seem to find an answer, so please forgive a really newbie-ish question, but… …

---

## [Re: debugging proposal](https://www.ruby-forum.com/t/re-debugging-proposal/97434)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 0\
**Last updated:** [July 7, 2006, 2:31am UTC](https://www.ruby-forum.com/t/re-debugging-proposal/97434 "2006-07-07T02:31:19Z")

</div>

Excellent! Attached is a fix for getting the correct binding. Now it is attched. I always do that… Max

---

## [Accessing strings](https://www.ruby-forum.com/t/accessing-strings/97432)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 4\
**Last updated:** [July 7, 2006, 2:18am UTC](https://www.ruby-forum.com/t/accessing-strings/97432 "2006-07-07T02:18:45Z")

</div>

If I something like word = “ruby” can’t I do something like (I thought it was possible) word\[0\] -\> r word\[1\] -\> u word\[2\] -\> b word\[3\] -\> y Trying something like that now and it’s giving me “weird” numbers Yet I’m…

---

## [Re: debugging proposal](https://www.ruby-forum.com/t/re-debugging-proposal/97431)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 0\
**Last updated:** [July 7, 2006, 1:38am UTC](https://www.ruby-forum.com/t/re-debugging-proposal/97431 "2006-07-07T01:38:22Z")

</div>

I went ahead and simplified the code + made an extension (you can find it attached). \[Florian, are you reading this?\] BTW, it now works with ruby 1.8 too (just remove the File.expand\_path calls in dbg.rb). Excelle…

---

## [Converting Directory Names to Strings](https://www.ruby-forum.com/t/converting-directory-names-to-strings/97423)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 9\
**Last updated:** [July 7, 2006, 1:07am UTC](https://www.ruby-forum.com/t/converting-directory-names-to-strings/97423 "2006-07-07T01:07:24Z")

</div>

I’m having a little trouble understanding something. Save the following script in an empty directory and run it: Dir.new(".").to\_a.each do |x| puts “x=#{x}” puts “x.class=#{x.class}” puts “x\[0\]=#{x\[0\]}” puts end Y…

---

## [The Gateway Showing Signs of Life](https://www.ruby-forum.com/t/the-gateway-showing-signs-of-life/97375)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 5\
**Last updated:** [July 7, 2006, 1:07am UTC](https://www.ruby-forum.com/t/the-gateway-showing-signs-of-life/97375 "2006-07-07T01:07:08Z")

</div>

I’m sure all you mailing list regulars noticed the threads coming through this morning that were never started here. Those were from the newsgroup. We had the gateway half restored this morning. Sadly, we were not a…

---

## [Ruby plugin in EasyEclipse](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 6\
**Last updated:** [July 7, 2006, 1:03am UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859 "2006-07-07T01:03:08Z")

</div>

Hi you all, anybody knows and/or uses Ruby plugin for Eclipse or EasyEclipse? If not, just don’t keep on reading :slight\_smile: If yes… I am writing a simple program: print "Enter your new idea: " idea = gets print …

---

## [RedLetter Ruby Journal](https://www.ruby-forum.com/t/redletter-ruby-journal/96244)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 9\
**Last updated:** [July 7, 2006, 1:01am UTC](https://www.ruby-forum.com/t/redletter-ruby-journal/96244 "2006-07-07T01:01:03Z")

</div>

Has anyone who subscribed to the RedLetter gotten their money back? Has anyone tried to? It looks like the website http://redletter.rubyjournal.com is gone, http://rubyjournal.com redirects to a domain rexseller, an…

---

## [Downloading ruby-talk as mbox](https://www.ruby-forum.com/t/downloading-ruby-talk-as-mbox/97407)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 1\
**Last updated:** [July 6, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/downloading-ruby-talk-as-mbox/97407 "2006-07-06T22:48:42Z")

</div>

I’ll be away from the net for awhile. Is there anywhere I can download this list as a gzipped mbox? I find googling the list of great help in my ruby learning experience. alex

---

## [Dependency framework for RSpec](https://www.ruby-forum.com/t/dependency-framework-for-rspec/97402)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [July 6, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/dependency-framework-for-rspec/97402 "2006-07-06T20:58:36Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I’ve been having difficulty sharing verification code between different contexts when using RSpec. For example, there is common verification code, between the fol…

---

## [Re: text to speech?](https://www.ruby-forum.com/t/re-text-to-speech/97395)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 6, 2006, 8:29pm UTC](https://www.ruby-forum.com/t/re-text-to-speech/97395 "2006-07-06T20:29:37Z")

</div>

Dear Arun, for reading out texts in many languages (including Hindi), there is MBROLA \_http://tcts.fpms.ac.be/synthesis/mbrola.html\_ (http://tcts.fpms.ac.be/synthesis/mbrola.html) . The authors provide it for many …

---

## [Re: - background color problem for FXCombobox](https://www.ruby-forum.com/t/re-background-color-problem-for-fxcombobox/97391)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 6, 2006, 8:09pm UTC](https://www.ruby-forum.com/t/re-background-color-problem-for-fxcombobox/97391 "2006-07-06T20:09:42Z")

</div>

Dear Lyle, Thank you for your reply. I’ll have to update to the next one-click installer version in Windows :slight\_smile: Best regards, Axel

---

## [Question: formatting strings from array for text files](https://www.ruby-forum.com/t/question-formatting-strings-from-array-for-text-files/97373)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 8\
**Last updated:** [July 6, 2006, 7:56pm UTC](https://www.ruby-forum.com/t/question-formatting-strings-from-array-for-text-files/97373 "2006-07-06T19:56:45Z")

</div>

I’m not sure who to have an array format correctly when written to a text file. Doing something like myarray = \[‘five’,‘four’,‘three’,‘two’,‘one’\] works almost correctly but myarray = \[’…/./\*.docs’\] seems to write t…

---

## [Pop3s](https://www.ruby-forum.com/t/pop3s/97388)

<div class="topic-metadata">

**Author:** [@Alexandru\_ESUngur](https://www.ruby-forum.com/u/Alexandru_ESUngur)\
**Replies:** 0\
**Last updated:** [July 6, 2006, 7:49pm UTC](https://www.ruby-forum.com/t/pop3s/97388 "2006-07-06T19:49:45Z")

</div>

Hi all, Does anybody have any ideea how can I use POP3 with ssl from Ruby? I googled all I could and all I found was this solution, which is quite outdated, as it references ‘ssl’ while now the library its being call…

---

## [Text to speech?](https://www.ruby-forum.com/t/text-to-speech/97371)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 2\
**Last updated:** [July 6, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/text-to-speech/97371 "2006-07-06T19:46:35Z")

</div>

Hi, I’m new to Ruby and to Linux, but not to programming. I teach blind people how to program in New Delhi, and it saddens me that they all use MS Windows. I teach them Visual Basic version 6, which is far more access…

---

## [Ruby Reports Roundtable on Freenode (2006.07.08)](https://www.ruby-forum.com/t/ruby-reports-roundtable-on-freenode-2006-07-08/97291)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 7\
**Last updated:** [July 6, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/ruby-reports-roundtable-on-freenode-2006-07-08/97291 "2006-07-06T18:33:29Z")

</div>

Hello folks, I’d just like to mention that for my google summer of code project, Ruby Reports, I am trying to make the development process as open as possible. I had a wacky idea which I hope some of you will enjoy: …

---

## [Telling the time (was: Ruby Reports Roundtable on Freenode (](https://www.ruby-forum.com/t/telling-the-time-was-ruby-reports-roundtable-on-freenode/97376)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 0\
**Last updated:** [July 6, 2006, 6:22pm UTC](https://www.ruby-forum.com/t/telling-the-time-was-ruby-reports-roundtable-on-freenode/97376 "2006-07-06T18:22:55Z")

</div>

Robert K. wrote: The worldclock link I posted earlier is an excellent site for handling that. For example, I put my collection of cities in a URL and have a FF keyword on it - so I just need to type “clock” in the ad…

---

## [Ruby Gateway Needs NNTP Host](https://www.ruby-forum.com/t/ruby-gateway-needs-nntp-host/97246)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [July 6, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/ruby-gateway-needs-nntp-host/97246 "2006-07-06T18:15:57Z")

</div>

Hello everyone. In the process of restoring the Ruby gateway script, I’m hunting for a public NNTP host that carries comp.lang.ruby. I need a host that allows posting please. Can someone point me to such a host? J…

---

## [Retired Ruby Mascott?](https://www.ruby-forum.com/t/retired-ruby-mascott/96982)

<div class="topic-metadata">

**Author:** [@makenai](https://www.ruby-forum.com/u/makenai)\
**Replies:** 21\
**Last updated:** [July 6, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/retired-ruby-mascott/96982 "2006-07-06T17:30:30Z")

</div>

Hi all, My memory could be fuzzy - but didn’t the Ruby language used to have a sort of anime-girl type mascott several years ago? In fact, I just came across this page as I was using google to do my recollecting for …

---

## [MP3 - ID 2 or 3 tags](https://www.ruby-forum.com/t/mp3-id-2-or-3-tags/97350)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 8\
**Last updated:** [July 6, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/mp3-id-2-or-3-tags/97350 "2006-07-06T16:39:01Z")

</div>

Can anyone give me a hint how to pull MP3 ID tags out of the file ? I’m guessing, it’s just part of the header information. I’m going to dig around ruby-lang.org but just in case thought to ask here as well. TIA St…

---

## [FXruby problem finding fox14](https://www.ruby-forum.com/t/fxruby-problem-finding-fox14/97359)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 0\
**Last updated:** [July 6, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/fxruby-problem-finding-fox14/97359 "2006-07-06T16:38:50Z")

</div>

Weirdness is that irb loads it , but in Scite error no such file to load – fox14 (LoadError). This is win32 so I guess put something in my env variables ? Stuart

---

## [C-Style Ints (#85)](https://www.ruby-forum.com/t/c-style-ints-85/97360)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [July 6, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/c-style-ints-85/97360 "2006-07-06T16:34:56Z")

</div>

There was quite a bit of confusion over what we were after in the quiz. Ironically, I think that’s all my fault for giving the author’s simple quiz the name “C-Style Ints.” Things are always complicated when you drag…

---

## [Thread mystery](https://www.ruby-forum.com/t/thread-mystery/97253)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 14\
**Last updated:** [July 6, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/thread-mystery/97253 "2006-07-06T16:30:58Z")

</div>

any idea why this script slows downs drastically as it runs and seems to leak memory? require ‘sync’ class Switch ON, OFF, NEITHER = true, false, nil def initialize state = OFF extend Sync\_m @state = NEITHER @ob…

---

## [Re: - background color problem for FXCombobox](https://www.ruby-forum.com/t/re-background-color-problem-for-fxcombobox/97261)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 6, 2006, 3:58pm UTC](https://www.ruby-forum.com/t/re-background-color-problem-for-fxcombobox/97261 "2006-07-06T15:58:54Z")

</div>

Lyle, thanks for your reply. I’ve now tried p.recursive{|w| w.baseColor=STD\_BACK\_COLOR next if w.kind\_of? TextField next if w.backColor==HEADER\_COLOR if /ComboBox/.match(w.type.to\_s) w.baseColor=WHITE\_BACK\_COLO…

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

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