# Ruby

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

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

---

## [Bluetooth on OSX](https://www.ruby-forum.com/t/bluetooth-on-osx/70999)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 9:31pm UTC](https://www.ruby-forum.com/t/bluetooth-on-osx/70999 "2006-02-21T21:31:35Z")

</div>

Hi, I’m trying to connect, over bluetooth, to a mobile device and send a picure. That’s my code: require ‘osx/cocoa’ OSX::NSBundle.bundleWithPath("/System/Library/Frameworks/IOBluetoothUI.framework").load OSX.ns\_im…

---

## [Help with Ruby-Activeldap](https://www.ruby-forum.com/t/help-with-ruby-activeldap/71572)

<div class="topic-metadata">

**Author:** [@Carlos\_Diaz](https://www.ruby-forum.com/u/Carlos_Diaz)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/help-with-ruby-activeldap/71572 "2006-02-21T21:16:14Z")

</div>

Anyone have some experience with Ruby-activeldap? I am trying to install activeldap according to: Peak Obsession but I am getting the following error when I try to generate the model: ====BEGIN ERROR==== /usr/lib/r…

---

## [GC Bug? Ruby 1.8.4 core dumps on a very small extension](https://www.ruby-forum.com/t/gc-bug-ruby-1-8-4-core-dumps-on-a-very-small-extension/54001)

<div class="topic-metadata">

**Author:** [@Danie\_Roux](https://www.ruby-forum.com/u/Danie_Roux)\
**Replies:** 3\
**Last updated:** [February 21, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/gc-bug-ruby-1-8-4-core-dumps-on-a-very-small-extension/54001 "2006-02-21T20:35:34Z")

</div>

Hi all, Long (and tiring) story short: I have an extension that is 40 lines\* in total, the C code and Ruby code that exercise it. It core dumps, while I repeatedly call a method that just returns Qtrue. All it reall…

---

## [Sodoku-Generator](https://www.ruby-forum.com/t/sodoku-generator/70566)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 8\
**Last updated:** [February 21, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/sodoku-generator/70566 "2006-02-21T20:35:33Z")

</div>

Hi, with Google I found a Quiz about a Sodoku-solver, but I didn’t find a Sodoku generator. Also RAA and RubyForge did not list one. Is there any out there ? May be one, which also generated a solution for the genera…

---

## [Can't convert String into Integer](https://www.ruby-forum.com/t/cant-convert-string-into-integer/70951)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [February 21, 2006, 8:29pm UTC](https://www.ruby-forum.com/t/cant-convert-string-into-integer/70951 "2006-02-21T20:29:22Z")

</div>

i have a hash like that : @label\_list={} with only one key for the time being : @label\_list\[“BookmarksBar”\]=\[\] then, the value is an Array populated like that : @label\_list\[“BookmarksBar”\] \<\< folder.attributes\[“labe…

---

## [Ruby port for Nokia 770 Wireless Internet Tablet](https://www.ruby-forum.com/t/ruby-port-for-nokia-770-wireless-internet-tablet/67246)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [February 21, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/ruby-port-for-nokia-770-wireless-internet-tablet/67246 "2006-02-21T19:58:54Z")

</div>

Greetings Fellow Ruby Enthusiasts, I recently purchased a Nokia 770 wireless Internet Tablet (http://europe.nokia.com/nokia/0,,75023,00.html) and a few days ago I successfully ported Ruby 1.8.4 to it. For those of yo…

---

## [Ruby Murray - Sub::Curry on Ruby Acid](https://www.ruby-forum.com/t/ruby-murray-sub-curry-on-ruby-acid/71296)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 5\
**Last updated:** [February 21, 2006, 7:55pm UTC](https://www.ruby-forum.com/t/ruby-murray-sub-curry-on-ruby-acid/71296 "2006-02-21T19:55:47Z")

</div>

Ruby Murray, a Ruby port of Perl’s Sub::Curry (with added Ruby goodness), is now available in it’s first 0.1.2 release. Ruby Murray allows block arguments to be supplied prior to calling (to be ‘curried’) and also sup…

---

## [Trouble with FileUtils.rm\_rf / .rmdir](https://www.ruby-forum.com/t/trouble-with-fileutils-rm-rf-rmdir/71483)

<div class="topic-metadata">

**Author:** [@James\_BSByrne](https://www.ruby-forum.com/u/James_BSByrne)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 7:54pm UTC](https://www.ruby-forum.com/t/trouble-with-fileutils-rm-rf-rmdir/71483 "2006-02-21T19:54:27Z")

</div>

I am trying to dynamically setup and teardown a directory structure for testing. The code that I am using employs .rm\_rf but I get the same results if I use .rmdir instead. #-----------------------------------------…

---

## [Metakoans.rb (#67)](https://www.ruby-forum.com/t/metakoans-rb-67/69690)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 79\
**Last updated:** [February 21, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/metakoans-rb-67/69690 "2006-02-21T19:25:06Z")

</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: …

---

## [Next beta of Rails Recipes is available](https://www.ruby-forum.com/t/next-beta-of-rails-recipes-is-available/71484)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 7:12pm UTC](https://www.ruby-forum.com/t/next-beta-of-rails-recipes-is-available/71484 "2006-02-21T19:12:51Z")

</div>

The second beta of Rails Recipes, Chad F.'s killer book or writing real-world Rails, is now available. It features seven new recipes: In Place Editing Making Your Own JavaScript Helper Many To Many With Attributes On…

---

## [Can opengl work with an object method?](https://www.ruby-forum.com/t/can-opengl-work-with-an-object-method/71123)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 7\
**Last updated:** [February 21, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/can-opengl-work-with-an-object-method/71123 "2006-02-21T18:14:31Z")

</div>

I started with robot.rb in the sample folder of opengl-0.32g It comes with a display proc: display = Proc.new {} which is called by a glut function GLUT.DisplayFunc(display); When I place the exact same code in a me…

---

## [Daedalus](https://www.ruby-forum.com/t/daedalus/71395)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/daedalus/71395 "2006-02-21T17:34:35Z")

</div>

I remember coming across a Ruby script - I beleive called Daedalus - to watch daemons and restart them when they stop. Alas, even with Google, I am not able to find it. Can anyone point me to it? Gracias.

---

## [RailsConf 2005 podcasts](https://www.ruby-forum.com/t/railsconf-2005-podcasts/71044)

<div class="topic-metadata">

**Author:** [@railsroad](https://www.ruby-forum.com/u/railsroad)\
**Replies:** 4\
**Last updated:** [February 21, 2006, 5:09pm UTC](https://www.ruby-forum.com/t/railsconf-2005-podcasts/71044 "2006-02-21T17:09:50Z")

</div>

I’m looking for a downloads of ALL podcasts from RubyConf2005. I found this: http://odeo.com/channel/34396/view but the files are only 1 second long. I’ve poked around for a while and wasn’t able to find any other do…

---

## ["exporting" module methods](https://www.ruby-forum.com/t/exporting-module-methods/71291)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 6\
**Last updated:** [February 21, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/exporting-module-methods/71291 "2006-02-21T16:51:43Z")

</div>

Is there standard idiom to add module methods to classes that mixin them? (Heh, is “mixin” also a verb in Ruby?) That is, I would like class C to croak: module M def self.croak puts “croak!” end end class C incl…

---

## [DateTime.parse speed question](https://www.ruby-forum.com/t/datetime-parse-speed-question/53690)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 6\
**Last updated:** [February 21, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/datetime-parse-speed-question/53690 "2006-02-21T16:45:37Z")

</div>

I’m trying to speed up a small app that I’ve written. When I run the profiler I see that 46% of my applications time is spent on Integer#gcd. This seems to be coming from DateTime. I need to store dates, and then fi…

---

## [How can I search value from xml](https://www.ruby-forum.com/t/how-can-i-search-value-from-xml/54014)

<div class="topic-metadata">

**Author:** [@Artit\_S](https://www.ruby-forum.com/u/Artit_S)\
**Replies:** 14\
**Last updated:** [February 21, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/how-can-i-search-value-from-xml/54014 "2006-02-21T16:42:28Z")

</div>

How can i search value from xml file such as I want to find from \*pubdate and return \*\*biblioentry Please give me some source code for further study \*\* \<?xml version="1.0" encoding="ISO-8859-15"?\> …

---

## [Ruby vim](https://www.ruby-forum.com/t/ruby-vim/71295)

<div class="topic-metadata">

**Author:** [@SteveC](https://www.ruby-forum.com/u/SteveC)\
**Replies:** 2\
**Last updated:** [February 21, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/ruby-vim/71295 "2006-02-21T16:39:24Z")

</div>

Hi On Debian out of the box the ruby indenting is a little poor with it seeming to much prefer braces rather than 'end’ed blocks. Are people using http://vim-ruby.rubyforge.org/ (says 2003 for last update?) or anythi…

---

## [Metakoans.rb (#67)](https://www.ruby-forum.com/t/metakoans-rb-67/70565)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 5\
**Last updated:** [February 21, 2006, 3:35pm UTC](https://www.ruby-forum.com/t/metakoans-rb-67/70565 "2006-02-21T15:35:07Z")

</div>

I’ve got two. Here’s the first one I did: class Module def attribute( name, &default\_block ) name, default\_value = name.to\_a.first if name.is\_a? Hash default\_block ||= proc { default\_value } ivar = "@#{ name }".to…

---

## [Re: How to make Ruby on Rails working with appache 2.0?](https://www.ruby-forum.com/t/re-how-to-make-ruby-on-rails-working-with-appache-2-0/54041)

<div class="topic-metadata">

**Author:** [@LinnertzS\_Todd\_SFoo](https://www.ruby-forum.com/u/LinnertzS_Todd_SFoo)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/re-how-to-make-ruby-on-rails-working-with-appache-2-0/54041 "2006-02-21T15:13:44Z")

</div>

Cathy, Do you know if CTGAG04 rebooted on Saturday? Thanks, Todd

---

## [Define\_method fun](https://www.ruby-forum.com/t/define-method-fun/53954)

<div class="topic-metadata">

**Author:** [@patrickreilly](https://www.ruby-forum.com/u/patrickreilly)\
**Replies:** 8\
**Last updated:** [February 21, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/define-method-fun/53954 "2006-02-21T14:58:09Z")

</div>

Hi All, I just setup the following in one of my classes, I’ll let the code speak for itself: \["\<", “\<=”, “\>”, “\>=”, “==”, “\<=\>”\].each do |op| define\_method(op) { |comparison| eval “#{self.order} #{op} #{comparison.o…

---

## [Accents and String#tr](https://www.ruby-forum.com/t/accents-and-string-tr/71085)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [February 21, 2006, 2:55pm UTC](https://www.ruby-forum.com/t/accents-and-string-tr/71085 "2006-02-21T14:55:07Z")

</div>

I wrote this method def self.normalize\_for\_sorting(s) return nil unless s norm = s.downcase norm.tr!(‘ÁÉÍÓÚ’, ‘aeiou’) norm.tr!(‘ÀÈÌÒÙ’, ‘aeiou’) norm.tr!(‘ÄËÏÖÜ’, ‘aeiou’) norm.tr!(‘ÂÊÎÔÛ’, ‘aeiou’) norm.tr!(‘áé…

---

## [Is there a seperate mailing list for novices?](https://www.ruby-forum.com/t/is-there-a-seperate-mailing-list-for-novices/54037)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [February 21, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/is-there-a-seperate-mailing-list-for-novices/54037 "2006-02-21T13:41:32Z")

</div>

After having writen many lines of bloat… Is there a seperate list for noobs for embarassingly simple questions and such?

---

## [A dotnet UI on top of a Ruby code, anyone?](https://www.ruby-forum.com/t/a-dotnet-ui-on-top-of-a-ruby-code-anyone/69694)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 21, 2006, 11:39am UTC](https://www.ruby-forum.com/t/a-dotnet-ui-on-top-of-a-ruby-code-anyone/69694 "2006-02-21T11:39:22Z")

</div>

Hi! I’m currently investigating how to create nice non-web UI on top of Ruby applications, in a productive way. As I’m very comfortable with it I thought about using .Net. Did anyone actually developed a .Net UI (as …

---

## [Idiomatic Ruby: Enumerations](https://www.ruby-forum.com/t/idiomatic-ruby-enumerations/71209)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 10:50am UTC](https://www.ruby-forum.com/t/idiomatic-ruby-enumerations/71209 "2006-02-21T10:50:07Z")

</div>

Hi. I’d appreciate comments/criticisms on the following approach & code: For some variables, we need to be able to choose from enumerations. For instance, we track different choices on a webform - each has an intege…

---

## [Ruby Weekly News 13th - 19th February 2006](https://www.ruby-forum.com/t/ruby-weekly-news-13th-19th-february-2006/71213)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 10:36am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-13th-19th-february-2006/71213 "2006-02-21T10:36:29Z")

</div>

http://www.rubyweeklynews.org/20060219.html Ruby Weekly News 13th - 19th February 2006 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup / Ruby forum, br…

---

## [Idiomatic Ruby: Enumerations](https://www.ruby-forum.com/t/idiomatic-ruby-enumerations/102546)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 10:05am UTC](https://www.ruby-forum.com/t/idiomatic-ruby-enumerations/102546 "2006-02-21T10:05:41Z")

</div>

Hi. I’d appreciate comments/criticisms on the following approach & code: For some variables, we need to be able to choose from enumerations. For instance, we track different choices on a webform - each has an intege…

---

## [Fwd: Ruby Reports 0.3.8 Released](https://www.ruby-forum.com/t/fwd-ruby-reports-0-3-8-released/71172)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 9:04am UTC](https://www.ruby-forum.com/t/fwd-ruby-reports-0-3-8-released/71172 "2006-02-21T09:04:30Z")

</div>

= Ruport 0.3.8, The “Officially no longer vaporware” Release = The story behind the madness. Yeah, Ruport 0.3.0 came and went with no release. And months later, so did Ruport 0.3.5 What can I say, something about th…

---

## [Need help understanding exceptions handling from C extension](https://www.ruby-forum.com/t/need-help-understanding-exceptions-handling-from-c-extension/54036)

<div class="topic-metadata">

**Author:** [@Jacob\_Repp](https://www.ruby-forum.com/u/Jacob_Repp)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 8:34am UTC](https://www.ruby-forum.com/t/need-help-understanding-exceptions-handling-from-c-extension/54036 "2006-02-21T08:34:18Z")

</div>

I’m working on the test cases for my AIO extension library on windows and I have been running into this error consistently on one of my tests: test\_addr\_lookup\_name\_async(ClientTest): ArgumentError: NULL pointer give…

---

## [RedCloth development?](https://www.ruby-forum.com/t/redcloth-development/70426)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 6:07am UTC](https://www.ruby-forum.com/t/redcloth-development/70426 "2006-02-21T06:07:21Z")

</div>

It’s been a few months since RedCloth got moved off to SVN, and it looks like there’s been some activity, but no new releases. Since 3.0.4 is seriously broken, any chance of a gem release soon? How stable is HEAD? E…

---

## [Class instance variables, class variables and constants](https://www.ruby-forum.com/t/class-instance-variables-class-variables-and-constants/70867)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 5\
**Last updated:** [February 21, 2006, 4:06am UTC](https://www.ruby-forum.com/t/class-instance-variables-class-variables-and-constants/70867 "2006-02-21T04:06:09Z")

</div>

Hello, Thanks to the code in attach, I’ve figured out what is now completely obvious to me: CLASS VARIABLE (@@something) Inherited by subclasses SAME ALLOCATION: If it’s changed in Child, then it will change in Par…

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

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