# Ruby

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

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

---

## [Windows registry delete value oddity](https://www.ruby-forum.com/t/windows-registry-delete-value-oddity/57981)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 0\
**Last updated:** [April 17, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/windows-registry-delete-value-oddity/57981 "2006-04-17T14:14:13Z")

</div>

Say I have four registry values under the same key with these names: ‘this\_text’ ‘this\_text1’ ‘this\_text2’ ‘this\_text3’ When I run the script below, two of the values will be deleted. When I run it again, one value w…

---

## [Authoritative only DNS in ruby](https://www.ruby-forum.com/t/authoritative-only-dns-in-ruby/57608)

<div class="topic-metadata">

**Author:** [@Xan](https://www.ruby-forum.com/u/Xan)\
**Replies:** 4\
**Last updated:** [April 17, 2006, 3:34am UTC](https://www.ruby-forum.com/t/authoritative-only-dns-in-ruby/57608 "2006-04-17T03:34:57Z")

</div>

Hi, I want to know if you can help me in writing a ruby authoritative only DNS server. I have my local network and I want a authoritative DNS server for resolve the local names. So I don’t need recursive DNS servers. …

---

## [Understanding "cross-thread violation on rb\_gc()"](https://www.ruby-forum.com/t/understanding-cross-thread-violation-on-rb-gc/57912)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 7\
**Last updated:** [April 17, 2006, 2:28am UTC](https://www.ruby-forum.com/t/understanding-cross-thread-violation-on-rb-gc/57912 "2006-04-17T02:28:17Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, After some deep thought, I think I finally understand what the error message “\[BUG\] cross-thread violation on rb\_gc()” means. I will present my understanding here…

---

## [Ruby Install vs. Gimp Install: how to make them both happy?](https://www.ruby-forum.com/t/ruby-install-vs-gimp-install-how-to-make-them-both-happy/57891)

<div class="topic-metadata">

**Author:** [@Michael\_Prior](https://www.ruby-forum.com/u/Michael_Prior)\
**Replies:** 3\
**Last updated:** [April 17, 2006, 2:00am UTC](https://www.ruby-forum.com/t/ruby-install-vs-gimp-install-how-to-make-them-both-happy/57891 "2006-04-17T02:00:47Z")

</div>

Hello all, I’ve installed ruby via the 1-click installer with defaults selected (on a very clean win2000 machine), then I went to install GIMP, which needs the latest GTK+2 runtime as a prerequisite. On installing th…

---

## [Server-side sandbox for running ruby scripts](https://www.ruby-forum.com/t/server-side-sandbox-for-running-ruby-scripts/57955)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 2\
**Last updated:** [April 17, 2006, 1:54am UTC](https://www.ruby-forum.com/t/server-side-sandbox-for-running-ruby-scripts/57955 "2006-04-17T01:54:44Z")

</div>

Hello, I would like to accomplish the following tasks: The user writes some ruby code into a text field inside the browser, clicks submit, the code travels to the server where it is evaluated and the result is sent b…

---

## [Simple Enumerations in Rub](https://www.ruby-forum.com/t/simple-enumerations-in-rub/93968)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 17, 2006, 1:40am UTC](https://www.ruby-forum.com/t/simple-enumerations-in-rub/93968 "2006-04-17T01:40:28Z")

</div>

Hi all, Recently I’ve had to come up with a way to simulate an enumerated type for a Rails project that I am working on. I looked around for a bit to see what is out there and what people are doing now, but nothing I …

---

## [Postfix -\> perl/ruby (ActionMailer) question](https://www.ruby-forum.com/t/postfix-perl-ruby-actionmailer-question/57952)

<div class="topic-metadata">

**Author:** [@ror-user](https://www.ruby-forum.com/u/ror-user)\
**Replies:** 0\
**Last updated:** [April 17, 2006, 1:27am UTC](https://www.ruby-forum.com/t/postfix-perl-ruby-actionmailer-question/57952 "2006-04-17T01:27:04Z")

</div>

Hi guys, I am a ruby nuby, and am trying to learn ruby while setting up a craigslist-like site. So instead of going all out with ActionMailer, right now I am trying to start very simple with perl and am having difficu…

---

## [Gems package for TMail](https://www.ruby-forum.com/t/gems-package-for-tmail/54172)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 2\
**Last updated:** [April 17, 2006, 1:20am UTC](https://www.ruby-forum.com/t/gems-package-for-tmail/54172 "2006-04-17T01:20:59Z")

</div>

Is there a gems package for TMail? So many of the gems packages contain names that are not immediately indicative of what they contain. A first look at listed packages did not show one for TMail. There is a package…

---

## [Cobra vs Mongoose 0.0.1](https://www.ruby-forum.com/t/cobra-vs-mongoose-0-0-1/57949)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [April 17, 2006, 12:31am UTC](https://www.ruby-forum.com/t/cobra-vs-mongoose-0-0-1/57949 "2006-04-17T00:31:57Z")

</div>

Cobra vs Mongoose translates XML to and from Ruby Hash objects, following the BadgerFish (http://badgerfish.ning.com/) convention. Usage Converting XML to a Ruby Hash require ‘cobravsmongoose’ xml = ‘charliedavid’ …

---

## [Bug: Requiring "breakpoint" causes the entire Rails framewor](https://www.ruby-forum.com/t/bug-requiring-breakpoint-causes-the-entire-rails-framewor/93937)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 10\
**Last updated:** [April 16, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/bug-requiring-breakpoint-causes-the-entire-rails-framewor/93937 "2006-04-16T20:13:49Z")

</div>

Hi I’m working with: Ruby 1.8.4 (i386-mswin32) RubyGems 0.8.11 Rails 1.1.2 (obtained through RubyGems) ruby-breakpoint (0.5.0) Whenever I require ‘breakpoint’, the entire Rails framework gets loaded as well. I tri…

---

## [Re-defining an initialize method](https://www.ruby-forum.com/t/re-defining-an-initialize-method/57933)

<div class="topic-metadata">

**Author:** [@dirk](https://www.ruby-forum.com/u/dirk)\
**Replies:** 1\
**Last updated:** [April 16, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/re-defining-an-initialize-method/57933 "2006-04-16T15:43:15Z")

</div>

hi all, while editing a class, i caught myself doing this: class Foobar alias initialize old\_initialize def initialize old\_initialize # code end end and it doesn’t look nice to me, is this really horrible in any…

---

## [Ruby Game Programming](https://www.ruby-forum.com/t/ruby-game-programming/57900)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 9\
**Last updated:** [April 16, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/ruby-game-programming/57900 "2006-04-16T13:36:48Z")

</div>

Hi All There is quite a lot of resources in the Python community for “Python game programming”. I just wondered if there were any resources for game programming in the Ruby arena?

---

## [Typeout during RubyGems Install](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 4\
**Last updated:** [April 16, 2006, 10:24am UTC](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879 "2006-04-16T10:24:51Z")

</div>

\[Note: I’m reposting this to the mailing list since I think the gateway was down when I posted through news:comp.lang.ruby\] Hello, The NASA Open Source Agreement, NASA Open Source Agreement v1.3 – Open Source Initiat…

---

## [Rubygarden under sustained spam attack](https://www.ruby-forum.com/t/rubygarden-under-sustained-spam-attack/57914)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 1\
**Last updated:** [April 16, 2006, 7:27am UTC](https://www.ruby-forum.com/t/rubygarden-under-sustained-spam-attack/57914 "2006-04-16T07:27:53Z")

</div>

It looks like there’s a continuing run of spam against the RubyGarden wiki. I’ve just cleaned up 8 or so pages that were defaced multiple times today. Anyone with a couple of minutes might want to take the time to …

---

## [Canada on Rails, Day One](https://www.ruby-forum.com/t/canada-on-rails-day-one/93925)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 2\
**Last updated:** [April 16, 2006, 3:51am UTC](https://www.ruby-forum.com/t/canada-on-rails-day-one/93925 "2006-04-16T03:51:24Z")

</div>

Just in case anyone is interested I’ve posted a summary of the Vancouver Conference to my blog with photos. http://noodlejunkie.com/ Day one was just awesome, but now I really need to get some sleep.

---

## [Raking RubyGems](https://www.ruby-forum.com/t/raking-rubygems/93940)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 1\
**Last updated:** [April 16, 2006, 2:35am UTC](https://www.ruby-forum.com/t/raking-rubygems/93940 "2006-04-16T02:35:35Z")

</div>

\[Note: I’m reposting this to the mailing list since I think the gateway was down when I posted through news:comp.lang.ruby\] Hello, So I’m finally getting around to learning how to package a gem with rake, and I’ve fo…

---

## [Rational](https://www.ruby-forum.com/t/rational/93660)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 48\
**Last updated:** [April 16, 2006, 2:32am UTC](https://www.ruby-forum.com/t/rational/93660 "2006-04-16T02:32:21Z")

</div>

e$B$U$J$P$G$9!#e(B ruby e$B$NI8=\`%i%$%V%i%je(B Rational e$B$rJXMx$K$D$+$o$;$F$b$i$C$F$$$^$9$,!“B.e(B e$BEYLL$G2\]Bj$,$J$$$o$1$G$O$”$j$^$;$s!#$=$3$G!"86$5$s$Ne(B rational (http://raa.ruby-lang.org/project/rational/) e…

---

## [Q about tk buttons](https://www.ruby-forum.com/t/q-about-tk-buttons/57555)

<div class="topic-metadata">

**Author:** [@braas](https://www.ruby-forum.com/u/braas)\
**Replies:** 12\
**Last updated:** [April 15, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/q-about-tk-buttons/57555 "2006-04-15T22:24:28Z")

</div>

Hi guys, I have a little problem with the buttons in tk. I want to add 1 to a variable when pushing a button but tk won’t let me. Here some of my code: require “tk” var = TkVariable.new(0) #defining variable var +=…

---

## [Map\_if, collect\_if?](https://www.ruby-forum.com/t/map-if-collect-if/57690)

<div class="topic-metadata">

**Author:** [@midnightcoder](https://www.ruby-forum.com/u/midnightcoder)\
**Replies:** 9\
**Last updated:** [April 15, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/map-if-collect-if/57690 "2006-04-15T21:16:31Z")

</div>

Hi, I have been through the pickaxe book, looking at the array and enumerable built-in class and module and can’t find a way of achieving a map\_if or collect\_if. From pickaxe, collect “Returns a new array containing…

---

## [Comp.lang.ruby FAQ](https://www.ruby-forum.com/t/comp-lang-ruby-faq/93947)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 15, 2006, 7:32pm UTC](https://www.ruby-forum.com/t/comp-lang-ruby-faq/93947 "2006-04-15T19:32:00Z")

</div>

RUBY NEWSGROUP FAQ – Welcome to comp.lang.ruby! (Revised 2005-4-14) This FAQ contains information for those who want to: learn more about Ruby, and want to post to comp.lang.ruby or to the ruby-lang mail list, or wan…

---

## [String#downcase for accented letters in UTF-8?](https://www.ruby-forum.com/t/string-downcase-for-accented-letters-in-utf-8/57884)

<div class="topic-metadata">

**Author:** [@gioele](https://www.ruby-forum.com/u/gioele)\
**Replies:** 1\
**Last updated:** [April 15, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/string-downcase-for-accented-letters-in-utf-8/57884 "2006-04-15T17:10:19Z")

</div>

How can I convert to lowercase a string that contains accented characters encoded in UTF-8? String#downcase does not work with accented letters.

---

## [Super-unstable Webrick on Windows 2000](https://www.ruby-forum.com/t/super-unstable-webrick-on-windows-2000/57851)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 12\
**Last updated:** [April 15, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/super-unstable-webrick-on-windows-2000/57851 "2006-04-15T16:30:36Z")

</div>

I’m using Ruby 1.8.4 on a Windows 2000 machine. When running anything more than a trivial application, I experience frequent segmentation faults in completely random places. I’ve read some blogs and the such that indi…

---

## [Proxy authentication patches for open-uri and rubygems](https://www.ruby-forum.com/t/proxy-authentication-patches-for-open-uri-and-rubygems/57867)

<div class="topic-metadata">

**Author:** [@Tadashi\_Kadowaki](https://www.ruby-forum.com/u/Tadashi_Kadowaki)\
**Replies:** 2\
**Last updated:** [April 15, 2006, 8:38am UTC](https://www.ruby-forum.com/t/proxy-authentication-patches-for-open-uri-and-rubygems/57867 "2006-04-15T08:38:20Z")

</div>

e$BLgOF$H?=$7$^$9!#e(B gemse$B$r;H$\*$&$H$7$FITJX$r46$8$?$N$G!"%Q%C%A$r:n$j$^$7$?!#e(B e$B0l$DL$O!“4D6-JQ?te(Bhttp\_proxye$B$,e(B"http://user:removed\_email\_address@domain.invalid:8080"e$B$H$J$C$F$$$ke(B e$B\>l9g$K$&$^$/G…

---

## [Ruby-GetText-Package-1.3.0](https://www.ruby-forum.com/t/ruby-gettext-package-1-3-0/57873)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 1\
**Last updated:** [April 15, 2006, 8:14am UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-3-0/57873 "2006-04-15T08:14:13Z")

</div>

Hi, Ruby-GetText-Package-1.4.0 is now available. Changes Support OpenBSD. Fix bugs Enhance supports of Ruby on Rails. Improved ActionMailer localization support. Support ActionWebService test/gettext\_test\_rails.rb w…

---

## [Calling instance\_eval on a block in C](https://www.ruby-forum.com/t/calling-instance-eval-on-a-block-in-c/57839)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 5\
**Last updated:** [April 14, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/calling-instance-eval-on-a-block-in-c/57839 "2006-04-14T22:40:44Z")

</div>

If I have this ruby method: def eval\_it(obj, &b) obj.instance\_eval(&b) end How do write the C code to make this happen? If I do this: rb\_funcall(obj, rb\_intern(“instance\_eval”), 1, zz); Ruby is apparently expecting…

---

## [Stupid Question But](https://www.ruby-forum.com/t/stupid-question-but/57846)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 3\
**Last updated:** [April 14, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/stupid-question-but/57846 "2006-04-14T22:00:25Z")

</div>

I’m very new to Ruby. We have a dedicated server from Rackspace and I was told Ruby was installed. How do I find out if it was really installed? On a linux, what directories should I look for? I know - pretty stupid q…

---

## [GET doesnt seem to work in this case](https://www.ruby-forum.com/t/get-doesnt-seem-to-work-in-this-case/57842)

<div class="topic-metadata">

**Author:** [@SSMKSM](https://www.ruby-forum.com/u/SSMKSM)\
**Replies:** 1\
**Last updated:** [April 14, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/get-doesnt-seem-to-work-in-this-case/57842 "2006-04-14T20:00:27Z")

</div>

Hello, I’m trying to grab some info off www.yellowbook.com for a specific city. While testing a simple program to just grab the index page i couldnt manage to get it working. Here’s what i have so far. http = Net::HT…

---

## [Default value for any type?](https://www.ruby-forum.com/t/default-value-for-any-type/93928)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 9\
**Last updated:** [April 14, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/default-value-for-any-type/93928 "2006-04-14T19:51:14Z")

</div>

Hello all. I have code: def create\_default(type) type.new end But with, for example, Float, it suddenly said: create\_default(Float) #\<=== undefined method \`new’ for Float:Class (NoMethodError) Hmmm? How can I uni…

---

## [Rake: Making "cleanup" task](https://www.ruby-forum.com/t/rake-making-cleanup-task/56924)

<div class="topic-metadata">

**Author:** [@pistos](https://www.ruby-forum.com/u/pistos)\
**Replies:** 17\
**Last updated:** [April 14, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/rake-making-cleanup-task/56924 "2006-04-14T17:57:43Z")

</div>

I’m just getting my feet wet with Rake, at least as far as running unit tests is concerned. I have some initializer and cleanup stuff that I’d like run before and after ANY rake task (all of which are TestTasks in my …

---

## [Ruby/tk HTML\_Widget and href's](https://www.ruby-forum.com/t/ruby-tk-html-widget-and-hrefs/57775)

<div class="topic-metadata">

**Author:** [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Replies:** 6\
**Last updated:** [April 14, 2006, 4:19pm UTC](https://www.ruby-forum.com/t/ruby-tk-html-widget-and-hrefs/57775 "2006-04-14T16:19:26Z")

</div>

Consider the following goal: Parse the html “click me” and display. Detect user clicks convert to href. The following code does not work: require ‘tk’ require ‘tkextlib/tkHTML’ def do\_click(s) puts s + “\\n” end …

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

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