# Ruby

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

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

---

## [Hoe 2.4.0 Released](https://www.ruby-forum.com/t/hoe-2-4-0-released/179979)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 4:46am UTC](https://www.ruby-forum.com/t/hoe-2-4-0-released/179979 "2009-12-09T04:46:22Z")

</div>

hoe version 2.4.0 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ http://seattlerb.rubyforge.org/hoe/Hoe.pdf http://github.com/jbarnette/hoe-plugin-examples Hoe is a rak…

---

## [Uninitialized constant MysqlCompat::MysqlRes](https://www.ruby-forum.com/t/uninitialized-constant-mysqlcompat-mysqlres/179918)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 2\
**Last updated:** [December 9, 2009, 3:21am UTC](https://www.ruby-forum.com/t/uninitialized-constant-mysqlcompat-mysqlres/179918 "2009-12-09T03:21:30Z")

</div>

I’m hoping someone can help with this. I’m baffled. I recently upgraded to Mac OS X 10.6 (Snow Leopard). I am now experiencing the following when I try to do any MySQL database operations: uninitialized constant Mysq…

---

## [Java thread list all](https://www.ruby-forum.com/t/java-thread-list-all/179955)

<div class="topic-metadata">

**Author:** [@jasonfs](https://www.ruby-forum.com/u/jasonfs)\
**Replies:** 1\
**Last updated:** [December 9, 2009, 3:01am UTC](https://www.ruby-forum.com/t/java-thread-list-all/179955 "2009-12-09T03:01:00Z")

</div>

dear groupies, does anyone know how I can get a list of all running threads in the jvm from jruby code. things like this return nil: root = java.lang.thread.currentThread.getThreadGroup.getParent puts java.lang.thre…

---

## [Code Review: AstImprovements](https://www.ruby-forum.com/t/code-review-astimprovements/179976)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 2:38am UTC](https://www.ruby-forum.com/t/code-review-astimprovements/179976 "2009-12-09T02:38:46Z")

</div>

tfpt review “/shelveset:AstImprovements;REDMOND\\tomat” Comment : DLR: Adds ExpressionCollectionBuilder (moves the implementation from IronRuby). This allows to construct optimized expressions via C# initializer syn…

---

## [Convert string into a variable object](https://www.ruby-forum.com/t/convert-string-into-a-variable-object/179906)

<div class="topic-metadata">

**Author:** [@adad](https://www.ruby-forum.com/u/adad)\
**Replies:** 15\
**Last updated:** [December 9, 2009, 2:28am UTC](https://www.ruby-forum.com/t/convert-string-into-a-variable-object/179906 "2009-12-09T02:28:46Z")

</div>

Hi, I have a string named “ruby”. I want to create an empty object by that name: @ruby Is there a way to do this?

---

## [Example Ruby Code](https://www.ruby-forum.com/t/example-ruby-code/179952)

<div class="topic-metadata">

**Author:** [@christoforever](https://www.ruby-forum.com/u/christoforever)\
**Replies:** 6\
**Last updated:** [December 9, 2009, 12:19am UTC](https://www.ruby-forum.com/t/example-ruby-code/179952 "2009-12-09T00:19:28Z")

</div>

Can anybody explain how this code actually works in simple terms if possible :). def animals yield “Tiger” yield “Giraffe” end animals { |x| puts “Hello, #{x}” }

---

## [Task/method dependency library?](https://www.ruby-forum.com/t/task-method-dependency-library/179958)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [December 9, 2009, 12:10am UTC](https://www.ruby-forum.com/t/task-method-dependency-library/179958 "2009-12-09T00:10:42Z")

</div>

Has anyone developed a dependency management library akin to Rake’s, but for use as a library --does not lie at the top-level and tie into the command-line? I tried my hand at it some time ago, but was never happy wit…

---

## [Install ruby 1.9.1](https://www.ruby-forum.com/t/install-ruby-1-9-1/179925)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 5\
**Last updated:** [December 9, 2009, 12:00am UTC](https://www.ruby-forum.com/t/install-ruby-1-9-1/179925 "2009-12-09T00:00:10Z")

</div>

I spent an hour trying to find reasonable instructions on how to install ruby 1.9.1 as a standalone ruby instance. Everything seems to be directed at side-by-side 1.8/1.9 installation. I found this in some ad swamp, b…

---

## [How about ruby's threads?](https://www.ruby-forum.com/t/how-about-rubys-threads/179846)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 18\
**Last updated:** [December 8, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/how-about-rubys-threads/179846 "2009-12-08T23:29:56Z")

</div>

Hello, Is ruby’s threads safe enough? Once I used perl for programming a lot, but perl’s threads is not so nice, and modperl’s threads is not safe. Thanks.

---

## [Rubygems - invalid gem format](https://www.ruby-forum.com/t/rubygems-invalid-gem-format/179913)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 2\
**Last updated:** [December 8, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/rubygems-invalid-gem-format/179913 "2009-12-08T22:44:01Z")

</div>

Hello, I am having issues installing gems on both windows 7 and OpenSuSE 11.2. I installed Ruby 1.9.1 and RubyGems 1.3.5. I tried installing a few gems like gemcutter and heroku but I get the following error: ERROR: …

---

## [Swine flu h1n1 virus symptoms measures precautions treatment vaccine](https://www.ruby-forum.com/t/swine-flu-h1n1-virus-symptoms-measures-precautions-treatment-vaccine/179966)

<div class="topic-metadata">

**Author:** [@Connecting\_World](https://www.ruby-forum.com/u/Connecting_World)\
**Replies:** 1\
**Last updated:** [December 8, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/swine-flu-h1n1-virus-symptoms-measures-precautions-treatment-vaccine/179966 "2009-12-08T21:43:47Z")

</div>

SWINE FLU H1N1 VIRUS SYMPTOMS MEASURES PRECAUTIONS TREATMENT VACCINE . CHECK OVERALL INFORMATION ON WHAT IS SWINE FLU AT http://knowledgeatheaven.blogspot.com/2009/09/swine-flu.html SYMPTOMS PRECAUTIONS MEASURES OF SW…

---

## [Using the 'amatch' gem with 'find'](https://www.ruby-forum.com/t/using-the-amatch-gem-with-find/179960)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [December 8, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/using-the-amatch-gem-with-find/179960 "2009-12-08T20:23:53Z")

</div>

Hello all, Has anyone used the gem ‘amatch’ for a search or with the ‘find’ method. I need to search or find a project title using a similar search string. I know that ‘amatch’ returns a number and not a related strin…

---

## [Sample code for doing a â€œchunkedâ€ webfile HTTP d ownload, and then stream to HTTP upload to anot](https://www.ruby-forum.com/t/sample-code-for-doing-a-a-oechunkeda-webfile-http-d-ownload-and-then-stream-to-http-upload-to-anot/179957)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [December 8, 2009, 7:37pm UTC](https://www.ruby-forum.com/t/sample-code-for-doing-a-a-oechunkeda-webfile-http-d-ownload-and-then-stream-to-http-upload-to-anot/179957 "2009-12-08T19:37:56Z")

</div>

Hi, QUESTION: Does anyone have sample code that shows how to do an (a) chunked HTTP file download, and then (b) stream this into the HTTP uploading of this to another web application with a file upload controller? B…

---

## [How to understand Ruby code? (noting various mixins/includes) Is there a tool to assist here?](https://www.ruby-forum.com/t/how-to-understand-ruby-code-noting-various-mixins-includes-is-there-a-tool-to-assist-here/179915)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [December 8, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/how-to-understand-ruby-code-noting-various-mixins-includes-is-there-a-tool-to-assist-here/179915 "2009-12-08T19:22:08Z")

</div>

Hi, I seem to spend a good deal of time trying to make sense of open source ruby code due to the way it is very dynamic. There are various code files that are really just ready to be “mixed in” to other files (e.g. …

---

## [IRB GUI on OSX?](https://www.ruby-forum.com/t/irb-gui-on-osx/179869)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 13\
**Last updated:** [December 8, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/irb-gui-on-osx/179869 "2009-12-08T18:58:18Z")

</div>

Is there a good GUI IRB on OSX? Preferably one that lets me easily browse RI documentation? I used FXIRB (a Fox-based client) on Windows a while ago, seems it is abandoned and/or won’t run on Mac. Thanks!

---

## [Loading ruby files from a jar](https://www.ruby-forum.com/t/loading-ruby-files-from-a-jar/178862)

<div class="topic-metadata">

**Author:** [@joshmoore](https://www.ruby-forum.com/u/joshmoore)\
**Replies:** 13\
**Last updated:** [December 8, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/loading-ruby-files-from-a-jar/178862 "2009-12-08T16:35:19Z")

</div>

Hi, I am having problem with JRuby not being able to find ruby classes inside jar files. Here is what I am doing. I add the gem.jar file’s path to the $: variable. The gem.jar file contains this file “bundler\_gems/…

---

## [Rake-compiler 0.7.0 Released](https://www.ruby-forum.com/t/rake-compiler-0-7-0-released/179948)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 8, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/rake-compiler-0-7-0-released/179948 "2009-12-08T15:44:59Z")

</div>

rake-compiler version 0.7.0 has been released! http://github.com/luislavena/rake-compiler http://rubyforge.org/projects/rake-compiler = rake-compiler rake-compiler aims to help Gem developers deal with Ruby extension…

---

## [Matz's keynote at Rubyconf 2009](https://www.ruby-forum.com/t/matzs-keynote-at-rubyconf-2009/179945)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 0\
**Last updated:** [December 8, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/matzs-keynote-at-rubyconf-2009/179945 "2009-12-08T15:18:03Z")

</div>

Hi there, just saw the hilarious presentation and was wondering whether it makes sense to add Brainfu\*\*k (Brainfuck - Wikipedia) or Whitespace ( Whitespace (programming language) - Wikipedia) to one’s CV. Thanks f…

---

## [How to get more visitors to my blog or website](https://www.ruby-forum.com/t/how-to-get-more-visitors-to-my-blog-or-website/179943)

<div class="topic-metadata">

**Author:** [@Connecting\_World](https://www.ruby-forum.com/u/Connecting_World)\
**Replies:** 0\
**Last updated:** [December 8, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/how-to-get-more-visitors-to-my-blog-or-website/179943 "2009-12-08T15:11:02Z")

</div>

EASY TIPS TO GET MORE VISITORS TO MY BLOG OR WEBSITE . CHECK IT AT http://blogcreationandhosting.blogspot.com/2009/10/how-to-get-visitors-to-your-blog.html PULI LINKS : (1) Improve your knowledge quickly . Check At …

---

## [Indent strings(make them lined up)](https://www.ruby-forum.com/t/indent-strings-make-them-lined-up/179920)

<div class="topic-metadata">

**Author:** [@jonk](https://www.ruby-forum.com/u/jonk)\
**Replies:** 7\
**Last updated:** [December 8, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/indent-strings-make-them-lined-up/179920 "2009-12-08T14:33:34Z")

</div>

Hi, I am newbie in Ruby. I have a question about indenting string. there is strings like below: www.google.com =\> 123.123.123.12 www.ibm.com =\> 123.112.123.12 www.iowahawkeyes =\> 123.123.112.12 i want to make above…

---

## [How do I know what to require in my ruby script?](https://www.ruby-forum.com/t/how-do-i-know-what-to-require-in-my-ruby-script/179939)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 3\
**Last updated:** [December 8, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/how-do-i-know-what-to-require-in-my-ruby-script/179939 "2009-12-08T13:36:00Z")

</div>

Hello all, How do I know what ‘require’ to include after installing a ruby gem? The reason I ask is because I just installed the pdf-writer gem, but none of these work: require ‘pdf-writer’ require ‘pdf’ require ‘p…

---

## [Depot application and some changes!](https://www.ruby-forum.com/t/depot-application-and-some-changes/179919)

<div class="topic-metadata">

**Author:** [@knight2010](https://www.ruby-forum.com/u/knight2010)\
**Replies:** 1\
**Last updated:** [December 8, 2009, 10:48am UTC](https://www.ruby-forum.com/t/depot-application-and-some-changes/179919 "2009-12-08T10:48:01Z")

</div>

hi, i want to Modify the depot application so that clicking on an image of an item in the catalogue adds that item to the shopping cart. the Second thing is to Change the application so that the cart smoothly blinds…

---

## [How to use tls1 but not sslv2/3 in https?](https://www.ruby-forum.com/t/how-to-use-tls1-but-not-sslv2-3-in-https/179757)

<div class="topic-metadata">

**Author:** [@liping](https://www.ruby-forum.com/u/liping)\
**Replies:** 5\
**Last updated:** [December 8, 2009, 9:44am UTC](https://www.ruby-forum.com/t/how-to-use-tls1-but-not-sslv2-3-in-https/179757 "2009-12-08T09:44:39Z")

</div>

Hello All I need to https connect an apache server that only support tls1 protocol. How do I switch to use ONLY tls1 in https module? I searched over internet for a long while and found nothing useful for me. The a…

---

## [WEBrick doesn't work (permission/port error)](https://www.ruby-forum.com/t/webrick-doesnt-work-permission-port-error/179910)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 2\
**Last updated:** [December 8, 2009, 8:46am UTC](https://www.ruby-forum.com/t/webrick-doesnt-work-permission-port-error/179910 "2009-12-08T08:46:10Z")

</div>

Hi. I get an error when I start a WEBrick server. Here’s my application. server.rb encoding: utf-8 require ‘webrick’ class Server class \<\< self def start(config = {}) config.merge(:BindAddress =\> ‘0.0.0.0’, :Port …

---

## [Regexp.escape with un-escapes](https://www.ruby-forum.com/t/regexp-escape-with-un-escapes/179880)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [December 8, 2009, 6:10am UTC](https://www.ruby-forum.com/t/regexp-escape-with-un-escapes/179880 "2009-12-08T06:10:48Z")

</div>

Hi– I want to translate a string into a regular expression, but I want to “un-escape” portions as raw regexp. For example: “here is a setting ‘a’ equal to ((\\d+))” So I want to Regexp.escape the string, before I pass…

---

## [Http://realwebwonders.com/](https://www.ruby-forum.com/t/http-realwebwonders-com/179924)

<div class="topic-metadata">

**Author:** [@ashok](https://www.ruby-forum.com/u/ashok)\
**Replies:** 0\
**Last updated:** [December 8, 2009, 5:45am UTC](https://www.ruby-forum.com/t/http-realwebwonders-com/179924 "2009-12-08T05:45:38Z")

</div>

One of the most important aspects of a website today is the webcopy - sometimes called the sales letter. In days gone bye, banners and graphics were all important but now it’s the words that do the selling. This shor…

---

## [Announcing MountainWest RubyConf 2010](https://www.ruby-forum.com/t/announcing-mountainwest-rubyconf-2010/179917)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [December 8, 2009, 1:55am UTC](https://www.ruby-forum.com/t/announcing-mountainwest-rubyconf-2010/179917 "2009-12-08T01:55:01Z")

</div>

I’m pleased to announce the 4th iteration of MountainWest RubyConf on March 11-12, 2010 in Salt Lake City, Utah. MWRC is a two-day single-track Ruby conference full of WIN. Registration is not yet open, but our Call f…

---

## [Use of extend \<module\> from within a Class](https://www.ruby-forum.com/t/use-of-extend-module-from-within-a-class/179836)

<div class="topic-metadata">

**Author:** [@mperham](https://www.ruby-forum.com/u/mperham)\
**Replies:** 6\
**Last updated:** [December 8, 2009, 12:36am UTC](https://www.ruby-forum.com/t/use-of-extend-module-from-within-a-class/179836 "2009-12-08T00:36:33Z")

</div>

I would like to include a module into a ‘static’ class - such that all the modules methods are class methods. The problem is that code in the module that uses "self.class.XYZ’ breaks and when this code is included, ru…

---

## [Git push](https://www.ruby-forum.com/t/git-push/179908)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [December 7, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/git-push/179908 "2009-12-07T22:09:39Z")

</div>

I’ve pushed out a new TFS update. Sorry for the delay, but my computer’s clock was off and I wasn’t able to remote in. I know that there may be an issue with ActiveSupport tests in irtests, so I’ll be investigating th…

---

## [Reading Images](https://www.ruby-forum.com/t/reading-images/179895)

<div class="topic-metadata">

**Author:** [@alexandro](https://www.ruby-forum.com/u/alexandro)\
**Replies:** 13\
**Last updated:** [December 7, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/reading-images/179895 "2009-12-07T20:12:32Z")

</div>

Hei there, ruby coders, I’m quite new to ruby and have just done some very basic projects for my university and now have encountered a problem while programming CG with openGL bindings for ruby. Most my mates are very…

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

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