# Ruby

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

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

---

## [Regex: Get Class Name](https://www.ruby-forum.com/t/regex-get-class-name/174661)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 5\
**Last updated:** [August 31, 2009, 10:34am UTC](https://www.ruby-forum.com/t/regex-get-class-name/174661 "2009-08-31T10:34:22Z")

</div>

This a C++ class name, const std::string DRAPBase::CLASS\_NAME = “DRAPBase”; I am writing like this classname = text.scan(/::CLASS\_NAME = (.\*?)\\s+";/) but it is not true. how can I get the class name with regex?

---

## [Ruby 1.9 compilation - question](https://www.ruby-forum.com/t/ruby-1-9-compilation-question/174664)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 4\
**Last updated:** [August 31, 2009, 10:01am UTC](https://www.ruby-forum.com/t/ruby-1-9-compilation-question/174664 "2009-08-31T10:01:35Z")

</div>

I’m following the instructions at - http://amerj.info/2009/03/19/howto-install-rails-23-and-ruby-19-on-ubuntu-for-mysql-and-sqlite3/ I don’t know if I’m having a critical problem or not. Here’s the abbreviated CLI out…

---

## [Thumbnails in Ruby/Rails](https://www.ruby-forum.com/t/thumbnails-in-ruby-rails/196991)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 9:53am UTC](https://www.ruby-forum.com/t/thumbnails-in-ruby-rails/196991 "2009-08-31T09:53:58Z")

</div>

Hi Champs, Actually, i am uploading a file to my server… Now suppose if i uploads the file of more than 1Mb… then its taking a lot of space… And also taking a lot of time in showing that image … Just like thumbnails ……

---

## [Ruby 1.9 build requirements](https://www.ruby-forum.com/t/ruby-1-9-build-requirements/174609)

<div class="topic-metadata">

**Author:** [@tirins.play](https://www.ruby-forum.com/u/tirins.play)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 8:36am UTC](https://www.ruby-forum.com/t/ruby-1-9-build-requirements/174609 "2009-08-31T08:36:05Z")

</div>

I have just installed Ubuntu 9.04 Server Edition. I followed the instructions on the Ubuntu site to build Ruby 1.9 (p243) from scratch. The build appeared to work, but gem installs complain about missing zlib. I have…

---

## ["Missing these required gems: rspec-rails" in ruby 1.9](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174660)

<div class="topic-metadata">

**Author:** [@oreng](https://www.ruby-forum.com/u/oreng)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 8:15am UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174660 "2009-08-31T08:15:35Z")

</div>

i get the above error when running rake. I tried switching rails 2.3.3 with 2.3.2 but it didn’t help. here are my gems: actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesup…

---

## [Loofah 0.2.2 Released](https://www.ruby-forum.com/t/loofah-0-2-2-released/174656)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 6:00am UTC](https://www.ruby-forum.com/t/loofah-0-2-2-released/174656 "2009-08-31T06:00:58Z")

</div>

loofah version 0.2.2 has been released! http://loofah.rubyforge.org/ http://rubyforge.org/projects/loofah http://github.com/flavorjones/loofah Loofah is an HTML sanitizer. It will always fix broken markup, but can al…

---

## [\[ANN\] ERBook 7.1.0](https://www.ruby-forum.com/t/ann-erbook-7-1-0/174653)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 5:41am UTC](https://www.ruby-forum.com/t/ann-erbook-7-1-0/174653 "2009-08-31T05:41:40Z")

</div>

ERBook 7.1.0 Extensible document processor based on eRuby http://snk.tuxfamily.org/lib/erbook/ ERBook is an extensible document processor that emits \[1\]any document you can im…

---

## [Programming Noob Chris Pine Tutorial sorting without use of array.sort method](https://www.ruby-forum.com/t/programming-noob-chris-pine-tutorial-sorting-without-use-of-array-sort-method/154335)

<div class="topic-metadata">

**Author:** [@whisperjim](https://www.ruby-forum.com/u/whisperjim)\
**Replies:** 9\
**Last updated:** [August 31, 2009, 4:12am UTC](https://www.ruby-forum.com/t/programming-noob-chris-pine-tutorial-sorting-without-use-of-array-sort-method/154335 "2009-08-31T04:12:58Z")

</div>

I’m working through the following tutorial http://pine.fm/LearnToProgram/ (recommended by the official Ruby site) as a starting point and I’ve got to chapter 7 and struggling with the following assignment… " Let’s…

---

## [5 Facts You MUST Understand if You Are Going to Lose Your Belly Fat](https://www.ruby-forum.com/t/5-facts-you-must-understand-if-you-are-going-to-lose-your-belly-fat/174647)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/5-facts-you-must-understand-if-you-are-going-to-lose-your-belly-fat/174647 "2009-08-30T23:45:48Z")

</div>

5 Facts You MUST Understand if You Are Ever Going to Lose Your Belly Fat and Get Six Pack Abs www.MoreAboutAbs.com/2 Many so-called “health foods” are actually cleverly disguised junk foods that actually stimulate y…

---

## [Guys, stop living with that big ugly gut and flabby abs](https://www.ruby-forum.com/t/guys-stop-living-with-that-big-ugly-gut-and-flabby-abs/174644)

<div class="topic-metadata">

**Author:** [@Mike\_Geary](https://www.ruby-forum.com/u/Mike_Geary)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/guys-stop-living-with-that-big-ugly-gut-and-flabby-abs/174644 "2009-08-30T23:30:35Z")

</div>

Learn how… A 19-year old college student used this technique to uncover those stubborn bottom Abs and finally got a Six Pack A 37-year old flabby business man lost 21 pounds of ugly belly fat in 7 weeks And a 62-yea…

---

## [Sorting an array by multiple elements?](https://www.ruby-forum.com/t/sorting-an-array-by-multiple-elements/174625)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 13\
**Last updated:** [August 30, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/sorting-an-array-by-multiple-elements/174625 "2009-08-30T23:08:56Z")

</div>

Hi there, I have an array of arrays that I want to sort by multiple elements. Sample data in the array looks like: \[ \[ id, date, num, name \], \[ id, date, num, name \], … \] I need to sort by : (1) name, (2) date, and (…

---

## [Reference for rdoc conventions](https://www.ruby-forum.com/t/reference-for-rdoc-conventions/174643)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/reference-for-rdoc-conventions/174643 "2009-08-30T21:57:30Z")

</div>

Are there any good references for rdoc conventions used to document classes, methods, etc? I’ve found plenty of rdoc references that explain the basic syntax, but I haven’t found anything about conventions for definin…

---

## [\#map, #select semantics](https://www.ruby-forum.com/t/map-select-semantics/174538)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 15\
**Last updated:** [August 30, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/map-select-semantics/174538 "2009-08-30T18:12:08Z")

</div>

I imagine this has come up before, though I can’t find anything about it. I was talking to a friend last night who mentioned that in Smalltalk, the #collect and #select methods (and some others) return the same type a…

---

## [Update latest Ruby Version 1.9 on Mac OSX](https://www.ruby-forum.com/t/update-latest-ruby-version-1-9-on-mac-osx/163996)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 13\
**Last updated:** [August 30, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/update-latest-ruby-version-1-9-on-mac-osx/163996 "2009-08-30T14:25:31Z")

</div>

Dear All, How can I Update latest Ruby Version 1.9 ? I still use Ruby v1.8.6 version on Mac OSX 10.5.6 best regards, Salai.

---

## [Gnuplot line color](https://www.ruby-forum.com/t/gnuplot-line-color/174601)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 3\
**Last updated:** [August 30, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/gnuplot-line-color/174601 "2009-08-30T14:21:30Z")

</div>

How do I choose the color used to make a gnuplot? I’m doing something like: def plot( output ) require ‘gnuplot’ Gnuplot.open do |gp| Gnuplot::Plot.new( gp ) do |plot| if ( output ) plot…

---

## [How to get redirect log in Mechanize?](https://www.ruby-forum.com/t/how-to-get-redirect-log-in-mechanize/174634)

<div class="topic-metadata">

**Author:** [@roddik](https://www.ruby-forum.com/u/roddik)\
**Replies:** 1\
**Last updated:** [August 30, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/how-to-get-redirect-log-in-mechanize/174634 "2009-08-30T12:05:07Z")

</div>

Hello. In ruby, if you use mechanize following 301/302 redirects like this require ‘mechanize’ m = WWW::Mechanize.new m.get(‘http://google.com’) how to get the list of the pages mechanize was redirected through? (Li…

---

## [Looksee 0.2.1 Released](https://www.ruby-forum.com/t/looksee-0-2-1-released/174629)

<div class="topic-metadata">

**Author:** [@cage](https://www.ruby-forum.com/u/cage)\
**Replies:** 1\
**Last updated:** [August 30, 2009, 11:08am UTC](https://www.ruby-forum.com/t/looksee-0-2-1-released/174629 "2009-08-30T11:08:21Z")

</div>

looksee version 0.2.1 has been released! http://github.com/oggy/looksee Looksee lets you examine the method lookup path of objects in ways not possible in plain ruby. Changes: 0.2.1 2009-08-30 Updated history.

---

## [\[Bug #1950\] $B7Y9p$,@5$7$/H/$C$;$i$l$J$$(B](https://www.ruby-forum.com/t/bug-1950-b7y9p-5-7-h-c-i-l-j-b/173938)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 1\
**Last updated:** [August 30, 2009, 10:13am UTC](https://www.ruby-forum.com/t/bug-1950-b7y9p-5-7-h-c-i-l-j-b/173938 "2009-08-30T10:13:54Z")

</div>

Bug #1950: e$B7Y9p$,@5$7$/H/$C$;$i$l$J$$e(B http://redmine.ruby-lang.org/issues/show/1950 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-08-18 trunk 24578) \[i…

---

## [Telnet client, can't get end of message](https://www.ruby-forum.com/t/telnet-client-cant-get-end-of-message/174621)

<div class="topic-metadata">

**Author:** [@born\_in\_USSR](https://www.ruby-forum.com/u/born_in_USSR)\
**Replies:** 1\
**Last updated:** [August 30, 2009, 4:20am UTC](https://www.ruby-forum.com/t/telnet-client-cant-get-end-of-message/174621 "2009-08-30T04:20:30Z")

</div>

\[code\]#!/usr/bin/ruby require “socket” require “timeout” socket=TCPSocket.new(‘192.168.56.101’,23) puts “socket=#{socket}” if !socket.closed? mes=socket.gets end socket.close puts mes \[code\] Script can’t finis…

---

## [1.8 SEGV by 100000.times { ThreadGroup.new }](https://www.ruby-forum.com/t/1-8-segv-by-100000-times-threadgroup-new/174624)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 4:15am UTC](https://www.ruby-forum.com/t/1-8-segv-by-100000-times-threadgroup-new/174624 "2009-08-30T04:15:40Z")

</div>

e$B0J2\<$N$h$&$Ke(B 1.8 e$B$,e(B 100000.times { ThreadGroup.new } 100000.times { Time.now } 100000.times { method(:p) } e$B$J$I$H$$$C$?$b$N$Ge(B SEGV e$B$7$^$9!#e(B % ./ruby -e ‘100000.times { ThreadGroup.new }’ -e:…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/174620)

<div class="topic-metadata">

**Author:** [@Rachel\_N](https://www.ruby-forum.com/u/Rachel_N)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 2:10am UTC](https://www.ruby-forum.com/t/unsubscribe/174620 "2009-08-30T02:10:59Z")

</div>

unsubscribe

---

## [Clogger 0.0.2 - configurable request logging for Rack](https://www.ruby-forum.com/t/clogger-0-0-2-configurable-request-logging-for-rack/174617)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/clogger-0-0-2-configurable-request-logging-for-rack/174617 "2009-08-29T23:24:44Z")

</div>

http://clogger.rubyforge.org/ removed\_email\_address@domain.invalid git://rubyforge.org/clogger.git Clogger is Rack middleware for logging HTTP requests. The log format is customizable so you can specify exactly which…

---

## [Ruby Editor](https://www.ruby-forum.com/t/ruby-editor/174220)

<div class="topic-metadata">

**Author:** [@sasan](https://www.ruby-forum.com/u/sasan)\
**Replies:** 20\
**Last updated:** [August 29, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/ruby-editor/174220 "2009-08-29T16:04:00Z")

</div>

I need a good software for ruby programming. please post message for me about the ruby software.

---

## [The ruby editor and ide roundup](https://www.ruby-forum.com/t/the-ruby-editor-and-ide-roundup/174588)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 3\
**Last updated:** [August 29, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/the-ruby-editor-and-ide-roundup/174588 "2009-08-29T15:03:43Z")

</div>

http://en.wikibooks.org/wiki/Ruby\_Programming/Ruby\_editors People contributing to the perennial editor and ide thread, please help update/maintain this page and point there. I was thinking that we have two links for e…

---

## [Possible to use Ruby for Dynamic HTML sites without Rails?](https://www.ruby-forum.com/t/possible-to-use-ruby-for-dynamic-html-sites-without-rails/174508)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 12\
**Last updated:** [August 29, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/possible-to-use-ruby-for-dynamic-html-sites-without-rails/174508 "2009-08-29T13:58:35Z")

</div>

How easy is this to do? I’ve been going though a Ruby book again (was going to get into Ruby before but got busy with other stuff awhile back) and they don’t really cover using Ruby online, its just a foundation book.…

---

## [Jruby-openssl version 0.5.2 Released](https://www.ruby-forum.com/t/jruby-openssl-version-0-5-2-released/174099)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 1\
**Last updated:** [August 29, 2009, 11:43am UTC](https://www.ruby-forum.com/t/jruby-openssl-version-0-5-2-released/174099 "2009-08-29T11:43:31Z")

</div>

jruby-openssl version 0.5.2 has been released! http://jruby-extras.rubyforge.org/jruby-openssl JRuby-OpenSSL Changes: 0.5.2 Multiple bugs fixed: \*\* JRUBY-3895 Could not verify server signature with net-ssh again…

---

## [How to call this method](https://www.ruby-forum.com/t/how-to-call-this-method/174551)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 14\
**Last updated:** [August 29, 2009, 11:23am UTC](https://www.ruby-forum.com/t/how-to-call-this-method/174551 "2009-08-29T11:23:02Z")

</div>

Hi list the recent thread about all\_indicies has somehow made me think that I need a more general inject. Here is my first shot on it: http://pastie.org/597659 But how to call that beast, #inject\_with is somehow not…

---

## [Special dating](https://www.ruby-forum.com/t/special-dating/174587)

<div class="topic-metadata">

**Author:** [@Estrella\_Roja](https://www.ruby-forum.com/u/Estrella_Roja)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 7:29am UTC](https://www.ruby-forum.com/t/special-dating/174587 "2009-08-29T07:29:31Z")

</div>

This is a personal dating and matchmaking service for singles looking for a partner to share love, romance, friendship and relationships. Find a date and spice up your life! http://getiton.maxurl-go.info

---

## [Clogger 0.0.1](https://www.ruby-forum.com/t/clogger-0-0-1/174586)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 7:27am UTC](https://www.ruby-forum.com/t/clogger-0-0-1/174586 "2009-08-29T07:27:46Z")

</div>

= Clogger - configurable request logging for Rack http://clogger.rubyforge.org/ mailto:removed\_email\_address@domain.invalid == DESCRIPTION Clogger is Rack middleware for logging HTTP requests. The log format is cus…

---

## [I need a string#all\_indices method--is there such a thing?](https://www.ruby-forum.com/t/i-need-a-string-all-indices-method-is-there-such-a-thing/174536)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 21\
**Last updated:** [August 29, 2009, 7:01am UTC](https://www.ruby-forum.com/t/i-need-a-string-all-indices-method-is-there-such-a-thing/174536 "2009-08-29T07:01:26Z")

</div>

In ruby you can use string#index as follows: str = “some text” str.index(/t/) =\>5 But what if I want to get all the indices for a regex in the string? Is there an string#all\_indices method? I wrote the following, w…

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

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