# Ruby

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

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

---

## [I'm bringing back sexy ... to (J)ruby OR Time for a new logo](https://www.ruby-forum.com/t/im-bringing-back-sexy-to-j-ruby-or-time-for-a-new-logo/153000)

<div class="topic-metadata">

**Author:** [@Forrest\_C](https://www.ruby-forum.com/u/Forrest_C)\
**Replies:** 11\
**Last updated:** [November 11, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/im-bringing-back-sexy-to-j-ruby-or-time-for-a-new-logo/153000 "2008-11-11T18:39:30Z")

</div>

Hi all: So I talked to Charlie Nutter briefly at RubyConf and we got to talking about how they were thinking of dropping “Ruby Duke” as the mascot. Sexy technologies should have a sexy mascot/symbol. Since we’re alw…

---

## [About instance\_eval](https://www.ruby-forum.com/t/about-instance-eval/153050)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/about-instance-eval/153050 "2008-11-11T16:37:59Z")

</div>

class A WHY = “I don’t know why!!” def self.foo WHY end end puts A.instance\_eval(“foo”) # =\> I don’t know why!! puts A.instance\_eval(“WHY”) # =\> uninitialized constant Class::WHY (NameError) What’s difference? …

---

## [Using gnuplot to plot large data set under Windows XP](https://www.ruby-forum.com/t/using-gnuplot-to-plot-large-data-set-under-windows-xp/153053)

<div class="topic-metadata">

**Author:** [@swabianeagle](https://www.ruby-forum.com/u/swabianeagle)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/using-gnuplot-to-plot-large-data-set-under-windows-xp/153053 "2008-11-11T16:28:17Z")

</div>

Hi, I’ve been using gnuplot for the last little while to plot data and I really like it. So far I’ve been processing my data with ruby and generated a csv file, that I then read from a gnuplot script. This works fine…

---

## [Using regular expressions](https://www.ruby-forum.com/t/using-regular-expressions/153048)

<div class="topic-metadata">

**Author:** [@soldier.coder](https://www.ruby-forum.com/u/soldier.coder)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/using-regular-expressions/153048 "2008-11-11T14:53:26Z")

</div>

I have the following code: require ‘open-uri’ def scrape\_table(html) %r{\</thead.?\>(.?)}m =~html $1 end def scrape\_case(a\_line) %r{(\<a\\s.\*?\\d{6}-\\d{2}’\>\\d{6}-\\d{2}\</a\>)}m =~ a\_line $1 end if $0 == FILE url = 'h…

---

## [How to optimize my ruby code](https://www.ruby-forum.com/t/how-to-optimize-my-ruby-code/153043)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 2\
**Last updated:** [November 11, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/how-to-optimize-my-ruby-code/153043 "2008-11-11T14:33:12Z")

</div>

I am writing a script to get the process image in unix through ssh, then insert the record to database. As I am a new ruby user, I think my method is quite stupid and I would like to know if you can make my code prett…

---

## [TATFT -- The Movie](https://www.ruby-forum.com/t/tatft-the-movie/196841)

<div class="topic-metadata">

**Author:** [@bryanl](https://www.ruby-forum.com/u/bryanl)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/tatft-the-movie/196841 "2008-11-11T13:45:55Z")

</div>

If someone asked you what you thought about the state of testing in the Ruby community, what would you say? Are you for more testing, or are you testing enough? Are we doing it wrong, or are we on the right path? Or, …

---

## [\[Feature #735\] Date#inspect](https://www.ruby-forum.com/t/feature-735-date-inspect/152923)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 13\
**Last updated:** [November 11, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/feature-735-date-inspect/152923 "2008-11-11T13:17:46Z")

</div>

Feature #735: Date#inspect http://redmine.ruby-lang.org/issues/show/735 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B!Ve(Binspecte$B$O?M4V$KM%$7$$J8;zNs2=!W$H$$$&4QE@$+$i!"e(BDate#inspect…

---

## [\[Bug #668\] BigDecimal#to\_r $B$,$"$j$^$;$s(B](https://www.ruby-forum.com/t/bug-668-bigdecimal-to-r-b-j-s-b/151352)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 2\
**Last updated:** [November 11, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/bug-668-bigdecimal-to-r-b-j-s-b/151352 "2008-11-11T12:34:42Z")

</div>

Bug #668: BigDecimal#to\_r e$B$,$"$j$^$;$se(B http://redmine.ruby-lang.org/issues/show/668 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal BigDecimal#to\_r e$B$,$"$j$^$;$s!#e(B main@190-200…

---

## [Problem with object methods?](https://www.ruby-forum.com/t/problem-with-object-methods/152958)

<div class="topic-metadata">

**Author:** [@jearb](https://www.ruby-forum.com/u/jearb)\
**Replies:** 15\
**Last updated:** [November 11, 2008, 10:57am UTC](https://www.ruby-forum.com/t/problem-with-object-methods/152958 "2008-11-11T10:57:13Z")

</div>

I recently made an object for a game I’m making. It uses the constructor method, but it won’t use its other methods. I tried calling upon it by inserting the method’s name into the object’s text, but it still won’t ca…

---

## [Roguelike project?](https://www.ruby-forum.com/t/roguelike-project/152168)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 40\
**Last updated:** [November 11, 2008, 8:24am UTC](https://www.ruby-forum.com/t/roguelike-project/152168 "2008-11-11T08:24:23Z")

</div>

Anyone interested in a Roguelike game written in Ruby/Ncurses project? Email me/post here! (removed\_email\_address@domain.invalid)

---

## [Is this a bug?](https://www.ruby-forum.com/t/is-this-a-bug/152847)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 7:33am UTC](https://www.ruby-forum.com/t/is-this-a-bug/152847 "2008-11-11T07:33:02Z")

</div>

works in linux… a= Tempfile.new ‘a’ =\> #\<File:C:/DOCUME~1/RANDOM~1/LOCALS~1/Temp/a20081107-940-1dev029-0\> a.write\_nonblock ‘yoyo’ Errno::EBADF: Bad file descriptor - C:/DOCUME~1/RANDOM~1/LOCALS~1/Temp/a20081107-…

---

## [Ruby 1.9.1 without native threads?](https://www.ruby-forum.com/t/ruby-1-9-1-without-native-threads/152989)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 11, 2008, 7:31am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-without-native-threads/152989 "2008-11-11T07:31:02Z")

</div>

I downloaded ruby 1.9.1-preview1 and ran ./configure --enable- threads=no on both Leopard and an old RH box. According to the configure script, this is a valid option. However, when I try to run make, I get an error…

---

## [Watir: links with similar text in a page. How to access?](https://www.ruby-forum.com/t/watir-links-with-similar-text-in-a-page-how-to-access/152951)

<div class="topic-metadata">

**Author:** [@mandeepbaruah](https://www.ruby-forum.com/u/mandeepbaruah)\
**Replies:** 5\
**Last updated:** [November 11, 2008, 7:29am UTC](https://www.ruby-forum.com/t/watir-links-with-similar-text-in-a-page-how-to-access/152951 "2008-11-11T07:29:31Z")

</div>

Hi All, I need Help! In a page I am having two section(windows and linux) with has some installation instructions. This “Installation instruction” text link which calls some javascript functions are placed twice in t…

---

## [Live Coding in Ruby?](https://www.ruby-forum.com/t/live-coding-in-ruby/103552)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 9\
**Last updated:** [November 11, 2008, 7:19am UTC](https://www.ruby-forum.com/t/live-coding-in-ruby/103552 "2008-11-11T07:19:27Z")

</div>

I was wondering if anyone here has run across references for Live Coding in Ruby. I have kind of wanted to play around with Live Coding but dont really want to work with some other language to do it. I’d rather play i…

---

## [RubyForge upgrading to Subversion 1.5](https://www.ruby-forum.com/t/rubyforge-upgrading-to-subversion-1-5/153013)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 4:24am UTC](https://www.ruby-forum.com/t/rubyforge-upgrading-to-subversion-1-5/153013 "2008-11-11T04:24:38Z")

</div>

Hi all - I’m upgrading RubyForge from Subversion 1.4 to 1.5 this evening. With any luck there won’t be any hiccups, but, we shall see. FWIW, here are the Subversion 1.5 release notes, looks like some good stuff ther…

---

## [CGI::Session Problem](https://www.ruby-forum.com/t/cgi-session-problem/153011)

<div class="topic-metadata">

**Author:** [@omgitsads](https://www.ruby-forum.com/u/omgitsads)\
**Replies:** 0\
**Last updated:** [November 11, 2008, 3:55am UTC](https://www.ruby-forum.com/t/cgi-session-problem/153011 "2008-11-11T03:55:15Z")

</div>

Hello, I am creating my own random 16 digit session\_id and am passing the id through the cgi params to keep track of it. The problem is that the session\_id does not seem to be set. The following is in a login.rb code…

---

## [Help me understand this](https://www.ruby-forum.com/t/help-me-understand-this/153010)

<div class="topic-metadata">

**Author:** [@elpee](https://www.ruby-forum.com/u/elpee)\
**Replies:** 2\
**Last updated:** [November 11, 2008, 3:32am UTC](https://www.ruby-forum.com/t/help-me-understand-this/153010 "2008-11-11T03:32:32Z")

</div>

I have my own theory, but I haven’t seen the implementation yet. Or maybe it’s something simple, and I am just making things complicated. Here goes: -\> irb irb(main):001:0\> b,c = 1,2 =\> \[1, 2\] irb(main):002:0\> a = …

---

## [JRuby 1.0.3 broken gem install](https://www.ruby-forum.com/t/jruby-1-0-3-broken-gem-install/152830)

<div class="topic-metadata">

**Author:** [@tick](https://www.ruby-forum.com/u/tick)\
**Replies:** 6\
**Last updated:** [November 11, 2008, 12:45am UTC](https://www.ruby-forum.com/t/jruby-1-0-3-broken-gem-install/152830 "2008-11-11T00:45:45Z")

</div>

I’m stuck trying to do what I’m doing in a Java 1.4 environment. That being said, I’m trying to use jruby-1.0.3. It’s failing out of the box to do any gem installs right now… $ jruby -v ruby 1.8.5 (2007-12-15 rev 520…

---

## [Trouble with a dropdown menu on a web page (Watir?)](https://www.ruby-forum.com/t/trouble-with-a-dropdown-menu-on-a-web-page-watir/152996)

<div class="topic-metadata">

**Author:** [@chutenro](https://www.ruby-forum.com/u/chutenro)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/trouble-with-a-dropdown-menu-on-a-web-page-watir/152996 "2008-11-10T23:47:03Z")

</div>

I’m trying to select two items in two dropdown menus that are semi-connected in the page. When you select an option on the first menu it changes the options in the second menu. The problem is that when I directly sen…

---

## [Look up objects by object\_id](https://www.ruby-forum.com/t/look-up-objects-by-object-id/152987)

<div class="topic-metadata">

**Author:** [@exiquio](https://www.ruby-forum.com/u/exiquio)\
**Replies:** 3\
**Last updated:** [November 10, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/look-up-objects-by-object-id/152987 "2008-11-10T23:00:37Z")

</div>

So ruby objects have an object\_id. What is the intended purpose of these unique identifiers? Is their a method that allows one to retrieve a object by object\_id? Thanks in advanced.

---

## [Socket Progamming - Beginner questions](https://www.ruby-forum.com/t/socket-progamming-beginner-questions/152466)

<div class="topic-metadata">

**Author:** [@grish](https://www.ruby-forum.com/u/grish)\
**Replies:** 5\
**Last updated:** [November 10, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/socket-progamming-beginner-questions/152466 "2008-11-10T21:37:30Z")

</div>

Hi, I’m trying to learn Ruby and Socket programming. So far I managed to find some tutorials about Ruby and Socket programming and have made really simple applications like a Time server sending the time to a client.…

---

## [New and improved GlassFish gem ver 0.9.0 released](https://www.ruby-forum.com/t/new-and-improved-glassfish-gem-ver-0-9-0-released/152845)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 13\
**Last updated:** [November 10, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/new-and-improved-glassfish-gem-ver-0-9-0-released/152845 "2008-11-10T20:29:45Z")

</div>

Pleased to announce GlassFish gem ver 0.9.0. It was a long gap. Lots of effort went in. Hope users will like it. Read the release announcement: http://weblogs.java.net/blog/vivekp/archive/2008/11/new\_and\_improve\_1.htm…

---

## [Require and symbolic links](https://www.ruby-forum.com/t/require-and-symbolic-links/152919)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 3\
**Last updated:** [November 10, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/require-and-symbolic-links/152919 "2008-11-10T19:54:20Z")

</div>

Hi, thanks to the Shebang my /usr/local/somewhere/over/the/rainbow.rb get ruby interpretor launched automagically. BUT, because I need it very often I’ve created a /usr/local/bin/rainbow symlink to it. Now, the requi…

---

## [How to build a program with command-line interface and autocompletion support?](https://www.ruby-forum.com/t/how-to-build-a-program-with-command-line-interface-and-autocompletion-support/152970)

<div class="topic-metadata">

**Author:** [@kylichuku](https://www.ruby-forum.com/u/kylichuku)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 6:57pm UTC](https://www.ruby-forum.com/t/how-to-build-a-program-with-command-line-interface-and-autocompletion-support/152970 "2008-11-10T18:57:59Z")

</div>

Hi everyone, Is there any analog of Cmd.cmd in Python which helps to build CLI programs with autocompletion support? Thanks, Kirill.

---

## [Moving large amount of files, 1.750.000+](https://www.ruby-forum.com/t/moving-large-amount-of-files-1-750-000/152913)

<div class="topic-metadata">

**Author:** [@abeansits](https://www.ruby-forum.com/u/abeansits)\
**Replies:** 14\
**Last updated:** [November 10, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/moving-large-amount-of-files-1-750-000/152913 "2008-11-10T16:31:45Z")

</div>

Hello fellow Rubyists! I’m trying to impress my boss and co-workers with Ruby so we hopefully can start to use it in work more often. I was given the task with moving a large repository of images from one source to t…

---

## [TONIGHT November Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/tonight-november-phoenix-ruby-user-group-meeting/152962)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/tonight-november-phoenix-ruby-user-group-meeting/152962 "2008-11-10T16:07:05Z")

</div>

November Phoenix Ruby U. Group Meeting Date: Monday, November 10, 2008 Time: 6:30 pm - at Happy Camper Studios offices Place: Happy Camper Studios 4643 E. Thomas Rd. Suite #3 Phoenix, AZ 85018 Topics: Recap of…

---

## [Design advice for newbie](https://www.ruby-forum.com/t/design-advice-for-newbie/152927)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [November 10, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/design-advice-for-newbie/152927 "2008-11-10T16:05:14Z")

</div>

Hello, I have a typical class called Users. Each user has a Role (one of administrator, teacher, student, parent, or trustee). How do I design my controller/views/routes to best implement links to administer each gro…

---

## [Replace values in hash](https://www.ruby-forum.com/t/replace-values-in-hash/152564)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 8\
**Last updated:** [November 10, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/replace-values-in-hash/152564 "2008-11-10T15:37:40Z")

</div>

how would I iterate over a hash, such as x = { ‘a’ =\> “hi”, ‘b’ =\> nil, ‘c’ =\> “do”} and replace nil values with ‘foo’ then return the hash again?

---

## [Passing array instead of individual parameters?](https://www.ruby-forum.com/t/passing-array-instead-of-individual-parameters/152959)

<div class="topic-metadata">

**Author:** [@Stefan\_Kruger](https://www.ruby-forum.com/u/Stefan_Kruger)\
**Replies:** 2\
**Last updated:** [November 10, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/passing-array-instead-of-individual-parameters/152959 "2008-11-10T15:31:48Z")

</div>

\[New to this fine language, from a Perl background\] I expected (wrongly) the following to work - def myroutine(one, two, three) puts “first: #{one} second: #{two} third: #{three}” end myroutine(‘brave’, ‘new’, ‘worl…

---

## [How to find self class name inside self difinition?](https://www.ruby-forum.com/t/how-to-find-self-class-name-inside-self-difinition/152936)

<div class="topic-metadata">

**Author:** [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Replies:** 6\
**Last updated:** [November 10, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/how-to-find-self-class-name-inside-self-difinition/152936 "2008-11-10T14:50:04Z")

</div>

module Aa end class Aa::Name def self.class\_name self.class.name end end puts Aa::Name.class\_name # ‘Class’ But i want my class name as ‘Aa::Name’ instead of ‘Class’ any idea ?

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

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