# Ruby

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

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

---

## [How to generate local API documentation?](https://www.ruby-forum.com/t/how-to-generate-local-api-documentation/107070)

<div class="topic-metadata">

**Author:** [@stephan](https://www.ruby-forum.com/u/stephan)\
**Replies:** 3\
**Last updated:** [June 18, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/how-to-generate-local-api-documentation/107070 "2007-06-18T12:14:38Z")

</div>

Hi all. I’m fairly new to Ruby and I’m trying to generate a local copy of the docs for the core and standard API, as shown online at I ran rdoc in my ruby installation directory (/usr/lib/ruby) but it ate all my mem…

---

## [File name and content not corresponding](https://www.ruby-forum.com/t/file-name-and-content-not-corresponding/107056)

<div class="topic-metadata">

**Author:** [@tomtoday](https://www.ruby-forum.com/u/tomtoday)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 11:59am UTC](https://www.ruby-forum.com/t/file-name-and-content-not-corresponding/107056 "2007-06-18T11:59:33Z")

</div>

Hi folks, The code below almost works perfect. Thus it creates the text files with the right content. However, the name of the text file should correspond to the Bugtraq ID. As of now it’s Bugtraq ID 1 and 3.txt, 2…

---

## [Probable bug: net/ftp and mysql thread problem](https://www.ruby-forum.com/t/probable-bug-net-ftp-and-mysql-thread-problem/107116)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 11:50am UTC](https://www.ruby-forum.com/t/probable-bug-net-ftp-and-mysql-thread-problem/107116 "2007-06-18T11:50:33Z")

</div>

I found a bug, which seems to appear in Ruby 1.8.5 and 1.8.6 under Windows, when net/ftp and the mysql 2.7.3 gem are used in the same program. The but can be demonstrated with the following program: require ‘mysql’ …

---

## [Ruby 1.8.6-p36 released](https://www.ruby-forum.com/t/ruby-1-8-6-p36-released/106365)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 10\
**Last updated:** [June 18, 2007, 11:47am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p36-released/106365 "2007-06-18T11:47:31Z")

</div>

Hi all, I am pleased to announce that the first bug fix release for Ruby 1.8.6 has been released. This release includes some fixes made upon Ruby 1.8.6, the latest stable release. The source code tarballs are availa…

---

## [Syntax error with blocks](https://www.ruby-forum.com/t/syntax-error-with-blocks/107067)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 6\
**Last updated:** [June 18, 2007, 10:11am UTC](https://www.ruby-forum.com/t/syntax-error-with-blocks/107067 "2007-06-18T10:11:36Z")

</div>

OK guys, wtf am I doing wrong here? The manual says I should be able to do this. ======================= irb(main):150:0\> { puts ‘foo’ } SyntaxError: compile error (irb):150: syntax error, unexpected tSTRING\_BEG, ex…

---

## [Mock object standard?](https://www.ruby-forum.com/t/mock-object-standard/107107)

<div class="topic-metadata">

**Author:** [@byronsalty](https://www.ruby-forum.com/u/byronsalty)\
**Replies:** 2\
**Last updated:** [June 18, 2007, 10:01am UTC](https://www.ruby-forum.com/t/mock-object-standard/107107 "2007-06-18T10:01:15Z")

</div>

I see a lot of discussion from a few years ago about Mock objects but I’m unclear if there was any decision made. What is everyone using for this? I see a lot of Java based mock software ported over and it didn’t look …

---

## [Raop-client 0.1.1 Released](https://www.ruby-forum.com/t/raop-client-0-1-1-released/107111)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 8:45am UTC](https://www.ruby-forum.com/t/raop-client-0-1-1-released/107111 "2007-06-18T08:45:07Z")

</div>

raop-client version 0.1.1 has been released! http://raop.rubyforge.org/ Net::RAOP::Client is an Airport Express client. It allows you to stream music to an Airport Express. Changes: = Net::RAOP::Client CHANGELOG =…

---

## [How to make .exe file?](https://www.ruby-forum.com/t/how-to-make-exe-file/107094)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 3\
**Last updated:** [June 18, 2007, 4:48am UTC](https://www.ruby-forum.com/t/how-to-make-exe-file/107094 "2007-06-18T04:48:18Z")

</div>

I using RUBYSCRIPT2EXE to built an .exe file for my project. After i install RUBYSCRIPT2EXE gem, but i do not know how to built an .exe file. Any one can teach me with sample code???

---

## [Mexican Blanket (#127) Problem](https://www.ruby-forum.com/t/mexican-blanket-127-problem/225952)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 3:01am UTC](https://www.ruby-forum.com/t/mexican-blanket-127-problem/225952 "2007-06-18T03:01:37Z")

</div>

Hey all, I was attempting Mexican Blanket today, and found it to be more of a brain teaser (for me) than a coding problem. Which doesn’t mean there were no coding problems. I keep getting an error for the Integer#tim…

---

## [Help on making a simple program](https://www.ruby-forum.com/t/help-on-making-a-simple-program/107085)

<div class="topic-metadata">

**Author:** [@wyman](https://www.ruby-forum.com/u/wyman)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 1:26am UTC](https://www.ruby-forum.com/t/help-on-making-a-simple-program/107085 "2007-06-18T01:26:31Z")

</div>

I hope this is in the right group: I’m learning my way through Ruby-Gnome2 right now and am working on a simple program. All that it is going to do is let the user select a number from one combo box and another number…

---

## [Nervous Nuby Starting Out!](https://www.ruby-forum.com/t/nervous-nuby-starting-out/107055)

<div class="topic-metadata">

**Author:** [@The\_MacRubyist](https://www.ruby-forum.com/u/The_MacRubyist)\
**Replies:** 11\
**Last updated:** [June 17, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/nervous-nuby-starting-out/107055 "2007-06-17T21:57:08Z")

</div>

Anybody out there who’s patient and willing to give a newby help if required? I’m just starting out considering trying to learn Ruby as a first language (considering Applescript as language 0.5). This is largely beca…

---

## [ObjectGraph 0.2.0 Released](https://www.ruby-forum.com/t/objectgraph-0-2-0-released/107078)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 17, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/objectgraph-0-2-0-released/107078 "2007-06-17T20:59:59Z")

</div>

ObjectGraph version 0.2.0 has been released! http://seattlerb.rubyforge.org/ ObjectGraph will output Graphviz dot files of your objects in memory. It will ferret out your instance variables and enumerate over your en…

---

## [Ramaze Version 0.1.2](https://www.ruby-forum.com/t/ramaze-version-0-1-2/107047)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 1\
**Last updated:** [June 17, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/ramaze-version-0-1-2/107047 "2007-06-17T18:01:41Z")

</div>

This time we are proud to announce Version 0.1.2 of the Ramaze framework, an open source web framework with the aim to be light and modular. Since the 0.1.0 release we have made a lot of progress and the overall API …

---

## [Solaris door Ruby bindings](https://www.ruby-forum.com/t/solaris-door-ruby-bindings/106996)

<div class="topic-metadata">

**Author:** [@Banzai](https://www.ruby-forum.com/u/Banzai)\
**Replies:** 2\
**Last updated:** [June 17, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/solaris-door-ruby-bindings/106996 "2007-06-17T17:10:34Z")

</div>

I’m writing a ruby extension in C to the Solaris door library. The door library provides for fast IPC locally on Solaris. I wonder if such a thing is of interest to you. If you are interested (or not), I’d appreciat…

---

## [Mechanize 0.6.6 Released](https://www.ruby-forum.com/t/mechanize-0-6-6-released/90025)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 1\
**Last updated:** [June 17, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/mechanize-0-6-6-released/90025 "2007-06-17T15:35:22Z")

</div>

mechanize version 0.6.6 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, …

---

## [Need Help in Aol Login with mechanize](https://www.ruby-forum.com/t/need-help-in-aol-login-with-mechanize/107063)

<div class="topic-metadata">

**Author:** [@Md.elme\_focruzzaman](https://www.ruby-forum.com/u/Md.elme_focruzzaman)\
**Replies:** 0\
**Last updated:** [June 17, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/need-help-in-aol-login-with-mechanize/107063 "2007-06-17T15:16:48Z")

</div>

Hello There, I am tring to develop an aotometed login script for http://www.aol.com in ruby.For this purpose I am using mechanize. my code is given bellow: require ‘rubygems’; require ‘mechanize’ agent = WWW::Mechani…

---

## [Setuid script - require failing](https://www.ruby-forum.com/t/setuid-script-require-failing/107060)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 0\
**Last updated:** [June 17, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/setuid-script-require-failing/107060 "2007-06-17T13:01:02Z")

</div>

ruby 1.8.5 and 1.9 I have a script that I am trying to run as setuid. I’ve created a simple C wrapper program for it that calls exec and invokes the script. This wrapper program is set to another user (not root), ch…

---

## [Building 1.8.6-p36 with Sun Studio 12 compiler](https://www.ruby-forum.com/t/building-1-8-6-p36-with-sun-studio-12-compiler/106861)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 17, 2007, 10:33am UTC](https://www.ruby-forum.com/t/building-1-8-6-p36-with-sun-studio-12-compiler/106861 "2007-06-17T10:33:44Z")

</div>

All - I am trying to build 1.8.6-p36 (from the .tar.bz2 source) on Solaris Developer Express using the Sun Studio 12 compiler. If I try to configure it with “–enable-pthread” it fails to build with errors in eval.c: …

---

## [Facets Units. How do I use it?](https://www.ruby-forum.com/t/facets-units-how-do-i-use-it/106971)

<div class="topic-metadata">

**Author:** [@fREW\_Schmidt](https://www.ruby-forum.com/u/fREW_Schmidt)\
**Replies:** 8\
**Last updated:** [June 17, 2007, 6:18am UTC](https://www.ruby-forum.com/t/facets-units-how-do-i-use-it/106971 "2007-06-17T06:18:28Z")

</div>

Hi all, I am trying to use the facet units and I am having no luck. If I do require ‘facets’ and I still can’t use any for the unit examples on the facets site. So I tried to do require ‘facet/units’ and I get th…

---

## [Getting ri working on FreeBSD](https://www.ruby-forum.com/t/getting-ri-working-on-freebsd/106663)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 7\
**Last updated:** [June 17, 2007, 2:47am UTC](https://www.ruby-forum.com/t/getting-ri-working-on-freebsd/106663 "2007-06-17T02:47:15Z")

</div>

I seem to have run into a small problem on FreeBSD. Hopefully, someone here has an answer. (Note: cross-posted to freebsd-questions list) No matter what I try to look up with ri (the Ruby information utility that is…

---

## [How to set the timeout attr when using open-uri to open a ur](https://www.ruby-forum.com/t/how-to-set-the-timeout-attr-when-using-open-uri-to-open-a-ur/106912)

<div class="topic-metadata">

**Author:** [@sishen](https://www.ruby-forum.com/u/sishen)\
**Replies:** 6\
**Last updated:** [June 16, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/how-to-set-the-timeout-attr-when-using-open-uri-to-open-a-ur/106912 "2007-06-16T23:24:55Z")

</div>

I met a problem using open-uri. I want to set the timeout of the open process. And i see the open method has a option named “read\_timeout”. So i just code as open(“www.abc.com”, {:read\_timeout =\> 10}). But, i can’t…

---

## [Negative lookahead in Regexp question](https://www.ruby-forum.com/t/negative-lookahead-in-regexp-question/107018)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 6\
**Last updated:** [June 16, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/negative-lookahead-in-regexp-question/107018 "2007-06-16T21:55:41Z")

</div>

Dear all, I have strings like this one: " In North Carolina " and I’d like to match the part in between the brackets with a regexp with negative lookahead excluding a substring, ( in this case, rather than just sing…

---

## [Process id](https://www.ruby-forum.com/t/process-id/107021)

<div class="topic-metadata">

**Author:** [@joksy](https://www.ruby-forum.com/u/joksy)\
**Replies:** 3\
**Last updated:** [June 16, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/process-id/107021 "2007-06-16T19:51:21Z")

</div>

Hi everybody I m nobie of ruby I need some hint about to catch a id of a certain process for instance if I run this line of code ruby file.rb there is a possibility to have the id of this process (file.rb process) m…

---

## [Subject: textpow 0.9.1 Released](https://www.ruby-forum.com/t/subject-textpow-0-9-1-released/106817)

<div class="topic-metadata">

**Author:** [@Dizan\_V](https://www.ruby-forum.com/u/Dizan_V)\
**Replies:** 3\
**Last updated:** [June 16, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/subject-textpow-0-9-1-released/106817 "2007-06-16T19:35:15Z")

</div>

textpow version 0.9.1 has been released! http://textpow.rubyforge.org A library for parsing TextMate\[http://macromates.com/\] bundles. Changes: 0.9.1 / 2007-06-14 FIX: Score manager now handles multiple subtractio…

---

## [Question on Getting back in the swing of things & Time Manag](https://www.ruby-forum.com/t/question-on-getting-back-in-the-swing-of-things-time-manag/106981)

<div class="topic-metadata">

**Author:** [@Samantha](https://www.ruby-forum.com/u/Samantha)\
**Replies:** 3\
**Last updated:** [June 16, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/question-on-getting-back-in-the-swing-of-things-time-manag/106981 "2007-06-16T18:51:10Z")

</div>

Hello all, It’s been a substantial length of time since I’ve posted here, let alone did anything in the realms of learning Ruby. While I was out of work, I was spending a serious amount of time diving into Ruby and …

---

## [Test to see if a variable exists](https://www.ruby-forum.com/t/test-to-see-if-a-variable-exists/106970)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 4\
**Last updated:** [June 16, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/test-to-see-if-a-variable-exists/106970 "2007-06-16T17:44:58Z")

</div>

So I am stealing all these identities and storing everything in a big array of objects stolen\_identity, and having the index be social security numbers: ss\[34323843\] = Stolen\_identity.new But say I pick up a paycheck…

---

## [Dynamic Class Initialization](https://www.ruby-forum.com/t/dynamic-class-initialization/106949)

<div class="topic-metadata">

**Author:** [@pallan](https://www.ruby-forum.com/u/pallan)\
**Replies:** 8\
**Last updated:** [June 16, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/dynamic-class-initialization/106949 "2007-06-16T17:28:54Z")

</div>

Hi all, I know this can be done, but I can’t find out how to do it. I have a string with the name of the class that I want to initialize, but how do I do it? This is what I tried, class = “Product” product = class…

---

## [Ruby arithmetic question](https://www.ruby-forum.com/t/ruby-arithmetic-question/107016)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 2\
**Last updated:** [June 16, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/ruby-arithmetic-question/107016 "2007-06-16T17:16:53Z")

</div>

Dear all, I am very new to ruby language. I have some question in Ruby arthmetic operation. Why did i get 2 \*\* 2 = 4 ?? a = 2 \*\* 2 puts a –\> 4 Why ? It is like 2 ^ 2 = 4 ??? regards, salai.

---

## [Abstract interfaces as a means of documentation](https://www.ruby-forum.com/t/abstract-interfaces-as-a-means-of-documentation/106941)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 5\
**Last updated:** [June 16, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/abstract-interfaces-as-a-means-of-documentation/106941 "2007-06-16T15:54:42Z")

</div>

Hi all, The issue of abstract interfaces has been discussed extensively in this group. The general consensus is that Ruby’s duck typing coupled with the power of mixins renders solves the vast majority of the problem…

---

## [Decrypt challenge - perl encrypt with ruby decrypt](https://www.ruby-forum.com/t/decrypt-challenge-perl-encrypt-with-ruby-decrypt/106779)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 16, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/decrypt-challenge-perl-encrypt-with-ruby-decrypt/106779 "2007-06-16T15:31:39Z")

</div>

Ok, so I am trying integrate with someone who is sending me a string that is triple des encrypted thru perl. I need to decrypt the string thru ruby. I have had no luck decrypting, so decided I would try to encrypt in …

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

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