# Ruby

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

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

---

## [Get Variable Name from object\_id](https://www.ruby-forum.com/t/get-variable-name-from-object-id/125859)

<div class="topic-metadata">

**Author:** [@Evan\_M](https://www.ruby-forum.com/u/Evan_M)\
**Replies:** 3\
**Last updated:** [January 13, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/get-variable-name-from-object-id/125859 "2008-01-13T16:28:14Z")

</div>

If I am perusing through the each\_object loop and find the objects I’m interested in, how can I get their variable names? Thanks!

---

## [A patch for the manpage and ruby -h](https://www.ruby-forum.com/t/a-patch-for-the-manpage-and-ruby-h/125903)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/a-patch-for-the-manpage-and-ruby-h/125903 "2008-01-13T15:51:55Z")

</div>

Yuguiã¨ã„ã„ã¾ã™ã€‚ ã‚¤ãƒ³ã‚¿ãƒ—ãƒªã‚¿ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³å¼•æ•°ã«ã¤ã„ã¦ã€manpageã¨ruby -hã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’ruby.cã®å®Ÿè£…ã¨ åŒæœŸã—ã¦ã¿ã¾ã—ãŸã€‚ãƒ‘ãƒƒãƒã‚’æ·»ä»˜ã—ã¾ã™ã€‚

---

## [Problems with first gem using Rake/Hoe](https://www.ruby-forum.com/t/problems-with-first-gem-using-rake-hoe/125783)

<div class="topic-metadata">

**Author:** [@jimc](https://www.ruby-forum.com/u/jimc)\
**Replies:** 3\
**Last updated:** [January 13, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/problems-with-first-gem-using-rake-hoe/125783 "2008-01-13T15:50:45Z")

</div>

Hi, I’m trying to package my first gem using Hoe (1.4.0) and am having difficulties with Rake (0.8.1) on a Windows XP system. What I notice is that when I execute the task through Rake, it will fail yet I can execute…

---

## [Ar archives](https://www.ruby-forum.com/t/ar-archives/125724)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/ar-archives/125724 "2008-01-13T14:26:57Z")

</div>

Is there cross-platform way of extracting or creating \`ar’ archives? Daniel Brumbaugh K.

---

## [Using a variable as 1st param in gsub](https://www.ruby-forum.com/t/using-a-variable-as-1st-param-in-gsub/125861)

<div class="topic-metadata">

**Author:** [@gluis](https://www.ruby-forum.com/u/gluis)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/using-a-variable-as-1st-param-in-gsub/125861 "2008-01-13T14:19:52Z")

</div>

hi all, i’m trying to use a user entered variable in a gsub method and for some reason, if i insert it within a regex it doesn’t work. passing it as-is works fine. en example will be clearer: user\_variable = ‘some\_…

---

## [Syntax highlighting for regexp](https://www.ruby-forum.com/t/syntax-highlighting-for-regexp/125873)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 6\
**Last updated:** [January 13, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/syntax-highlighting-for-regexp/125873 "2008-01-13T12:45:55Z")

</div>

We all now regular expressions can be difficult to read, but it seems to me like good syntax highlighting within a regexp would make the task much easier. Even something as simple as a different color for control char…

---

## [Re: IS there a problem building usinf 3.5?](https://www.ruby-forum.com/t/re-is-there-a-problem-building-usinf-3-5/125793)

<div class="topic-metadata">

**Author:** [@LangstonS\_Jason](https://www.ruby-forum.com/u/LangstonS_Jason)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 6:36am UTC](https://www.ruby-forum.com/t/re-is-there-a-problem-building-usinf-3-5/125793 "2008-01-13T06:36:45Z")

</div>

I’ve successfully(\*) built using “rake compile” and the Visual C# 2008 Compiler version 3.5.21022.8. I think you’ll have to post a bit more about the exact error you are getting. Jason Langston http://rubydoes.net …

---

## [Re: IS there a problem building usinf 3.5?](https://www.ruby-forum.com/t/re-is-there-a-problem-building-usinf-3-5/125826)

<div class="topic-metadata">

**Author:** [@bantic](https://www.ruby-forum.com/u/bantic)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 6:30am UTC](https://www.ruby-forum.com/t/re-is-there-a-problem-building-usinf-3-5/125826 "2008-01-13T06:30:20Z")

</div>

Note that there shouldn’t be any difference between 2.0 and 3.5 - 2.0, 3.0 and 3.5 all use the 2.0 CLR. They just add additional features (like workflow, WCF and WPF) Cory

---

## [.times loop returns the number?](https://www.ruby-forum.com/t/times-loop-returns-the-number/125785)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 9\
**Last updated:** [January 13, 2008, 6:27am UTC](https://www.ruby-forum.com/t/times-loop-returns-the-number/125785 "2008-01-13T06:27:24Z")

</div>

12.times do |month\_ahead| end returns 12 I would have expected this to return a collected array of the return value of each block. Odd?

---

## [\[ANN\] Gerbil 1.0.0](https://www.ruby-forum.com/t/ann-gerbil-1-0-0/125868)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 2:27am UTC](https://www.ruby-forum.com/t/ann-gerbil-1-0-0/125868 "2008-01-13T02:27:05Z")

</div>

Gerbil Gerbil is an extensible document generator based on eRuby that outputs to any format you want: plain text, HTML, LaTeX, UNIX man page, your own custom format, and so on. http://gerb…

---

## [Rubotz v0.0.1 - Program Lego Mindstorms NXT Robots In Ruby](https://www.ruby-forum.com/t/rubotz-v0-0-1-program-lego-mindstorms-nxt-robots-in-ruby/125854)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 2:00am UTC](https://www.ruby-forum.com/t/rubotz-v0-0-1-program-lego-mindstorms-nxt-robots-in-ruby/125854 "2008-01-13T02:00:58Z")

</div>

http://rubotz.rubyforge.org/ http://gilesbowkett.blogspot.com/2008/01/program-lego-mindstorms-nxt-robots-in.html Rubotz is a code generator and compiler wrapper for NXC, a language for Lego Mindstorms NXT robots. This…

---

## [Monday January 14 Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/monday-january-14-phoenix-ruby-user-group-meeting/125864)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 12:56am UTC](https://www.ruby-forum.com/t/monday-january-14-phoenix-ruby-user-group-meeting/125864 "2008-01-13T00:56:39Z")

</div>

January Phoenix Ruby U. Group Meeting Date: Monday, January 14, 2008 Time: 6:15pm - Socializing 7:00pm - Official start of meeting Place: Rising Tide Software 4643 E. Thomas Rd, Suite #3 Phoenix, AZ 85018 (602) …

---

## [TK unpack?](https://www.ruby-forum.com/t/tk-unpack/125828)

<div class="topic-metadata">

**Author:** [@pass-the-past](https://www.ruby-forum.com/u/pass-the-past)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/tk-unpack/125828 "2008-01-12T21:05:47Z")

</div>

I’ve seen to forgot how to unpack a object in TK, can anyone help me out? Sincerely, Past

---

## [\[ANN\] Rassmalog 10.0.0](https://www.ruby-forum.com/t/ann-rassmalog-10-0-0/125811)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/ann-rassmalog-10-0-0/125811 "2008-01-12T19:17:46Z")

</div>

Version 10.0.0 Contents â€¢ Caution â€¢ Improvements â€¢ Repairs â€¢ Usability This release improves usability, adds support for multiple feeds, and adds an official user guide. Furthermore, the project mailing l…

---

## [Rb\_rescue2 crashes 1.9.0-0](https://www.ruby-forum.com/t/rb-rescue2-crashes-1-9-0-0/125825)

<div class="topic-metadata">

**Author:** [@j4nusx](https://www.ruby-forum.com/u/j4nusx)\
**Replies:** 2\
**Last updated:** [January 12, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/rb-rescue2-crashes-1-9-0-0/125825 "2008-01-12T18:40:17Z")

</div>

good day all, the following rb\_rescue2 works with old versions - tested with 1.8.5 and 1.8.6. but crashes 1.9.0-0. something’s wrong with the code or is it a problem in 1.9.0-0’s rb\_rescue2? #include \<ruby.h\> #incl…

---

## [Segmentation fault when File.open](https://www.ruby-forum.com/t/segmentation-fault-when-file-open/125837)

<div class="topic-metadata">

**Author:** [@Jun\_Mukai](https://www.ruby-forum.com/u/Jun_Mukai)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/segmentation-fault-when-file-open/125837 "2008-01-12T18:16:17Z")

</div>

å‘äº•ã¨ç”³ã—ã¾ã™ã€‚ æ¬¡ã®ã‚ˆã†ã«ãƒ—ãƒ­ã‚°ãƒ©ãƒ ã‚’å®Ÿè¡Œã™ã‚‹ã¨ ruby (1.9ç³»)ãŒè½ã¡ã¾ã™ã€‚ã‚ãŸã—ã®ç’°å¢ƒã§ ã¯ ruby ãŒåœæ­¢ã—ãªããªã£ãŸã®ã§(sigintã‚‚åŠ¹ã‹ãªã„)å¤§å¤‰ã‹ã‚‚ã—ã‚Œã¾ã›ã‚…

---

## [Charlie 0.7.0 Released - A genetic algorithms library](https://www.ruby-forum.com/t/charlie-0-7-0-released-a-genetic-algorithms-library/125726)

<div class="topic-metadata">

**Author:** [@sander](https://www.ruby-forum.com/u/sander)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/charlie-0-7-0-released-a-genetic-algorithms-library/125726 "2008-01-12T15:42:47Z")

</div>

Hi all, I’m pleased to announce another release of charlie, a genetic algorithms library for Ruby. This release extends the options for TreeGenotype, making the library more useful for genetic programming. It also i…

---

## [ASCII is alias of US-ASCII; replica of dummy encoding is not a dummy](https://www.ruby-forum.com/t/ascii-is-alias-of-us-ascii-replica-of-dummy-encoding-is-not-a-dummy/125385)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 17\
**Last updated:** [January 12, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/ascii-is-alias-of-us-ascii-replica-of-dummy-encoding-is-not-a-dummy/125385 "2008-01-12T14:56:26Z")

</div>

e$B@.@%$G$9!#e(B = ASCII is alias of US-ASCII UTF-{16,32}{BE,LE} e$B$,AH$9~$^$l$?Mm$$G!“e(BNKF e$B$r=$@5$7$F$$$F5$IU$$$?$N$Ge(B e$B$9$,!”:#e(B ASCII e$B$Oe(B ASCII-8BIT e$B$Ne(B alias e$B$J$N$G$9$M!#e(BIANA Charaset…

---

## [Problem with installing gems via rubygems](https://www.ruby-forum.com/t/problem-with-installing-gems-via-rubygems/196564)

<div class="topic-metadata">

**Author:** [@dizz](https://www.ruby-forum.com/u/dizz)\
**Replies:** 3\
**Last updated:** [January 12, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/problem-with-installing-gems-via-rubygems/196564 "2008-01-12T13:29:07Z")

</div>

Hey I am having a problem installing rails on my ubuntu machine. I cannot install any gems and keep on getting the following error. ERROR: Error installing rails: invalid gem format for /usr/lib/ruby/gems/1.8/cache/ …

---

## [OpenUri doesn't retry HTTP credentials after a redirect](https://www.ruby-forum.com/t/openuri-doesnt-retry-http-credentials-after-a-redirect/125816)

<div class="topic-metadata">

**Author:** [@romuloceccon](https://www.ruby-forum.com/u/romuloceccon)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/openuri-doesnt-retry-http-credentials-after-a-redirect/125816 "2008-01-12T12:53:40Z")

</div>

Hi. Ruby’s openuri library has code to specifically drop authentication options after being redirected by the server: /trunk/lib/open-uri.rb@14609, line 212: if options.include? :http\_basic\_authentication # send au…

---

## [If statement with multiple conditions](https://www.ruby-forum.com/t/if-statement-with-multiple-conditions/125730)

<div class="topic-metadata">

**Author:** [@katsuo](https://www.ruby-forum.com/u/katsuo)\
**Replies:** 2\
**Last updated:** [January 12, 2008, 8:49am UTC](https://www.ruby-forum.com/t/if-statement-with-multiple-conditions/125730 "2008-01-12T08:49:42Z")

</div>

Hi, I am pretty new to programming. What is the good way to write the following condition. def cart if request.post and @cart.size \< 10 puts “order accepted” else redirect\_to :action =\> ‘list’ end end

---

## [Problem with closure/block](https://www.ruby-forum.com/t/problem-with-closure-block/125526)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [January 12, 2008, 7:58am UTC](https://www.ruby-forum.com/t/problem-with-closure-block/125526 "2008-01-12T07:58:39Z")

</div>

\########################### y=5 print “y: " + y.to\_s + “\\n” text\_at\_the\_end = lambda do |y| print y + " text at the end\\n” end print "y: " + y.to\_s + “\\n” def oneparam yield(“oneparam”) end oneparam(&text\_at\_th…

---

## [Ruby-Debugger newbie problem](https://www.ruby-forum.com/t/ruby-debugger-newbie-problem/124893)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 5\
**Last updated:** [January 12, 2008, 6:10am UTC](https://www.ruby-forum.com/t/ruby-debugger-newbie-problem/124893 "2008-01-12T06:10:32Z")

</div>

Hi All, Following is a Command window session trying to run Ruby Debugger on a trivial program. The debugger seems to be stuck in “ubygems.rb” in my Ruby installation rather than in my test program. Is my installati…

---

## [Multiline (block) CSV file processing](https://www.ruby-forum.com/t/multiline-block-csv-file-processing/125602)

<div class="topic-metadata">

**Author:** [@philippeqc](https://www.ruby-forum.com/u/philippeqc)\
**Replies:** 9\
**Last updated:** [January 12, 2008, 5:54am UTC](https://www.ruby-forum.com/t/multiline-block-csv-file-processing/125602 "2008-01-12T05:54:11Z")

</div>

People, I am looking for suggestions for Ruby utilities (and gems?) for a flexible, easy method of processing multi-line blocks of CSV text eg in a CSV file, lines 1-5 are the first block and lines 6-10 are the second …

---

## [Shellwords alias bug?](https://www.ruby-forum.com/t/shellwords-alias-bug/125803)

<div class="topic-metadata">

**Author:** [@Masahiro\_Kawato](https://www.ruby-forum.com/u/Masahiro_Kawato)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 5:46am UTC](https://www.ruby-forum.com/t/shellwords-alias-bug/125803 "2008-01-12T05:46:00Z")

</div>

e$B@n8M$H?=$7$^$9!#e(B Ruby 1.9.0 e$B$Ne(Bshellwordse$B%i%$%V%i%j$K%P%0$i$7$-$b$N$r8+$D$1$?$N$G!"Js9p$7$^$9!#e(B lib/shellwords.rb e$B$NCf$G!"e(BShellwords.escape e$B$,e(B Shellwords.shellsplit e$B$NJLL\>e(B e$B$H$7$…

---

## [Vintage 0.0.5 - The super slim web framework for templating](https://www.ruby-forum.com/t/vintage-0-0-5-the-super-slim-web-framework-for-templating/125802)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 5:36am UTC](https://www.ruby-forum.com/t/vintage-0-0-5-the-super-slim-web-framework-for-templating/125802 "2008-01-12T05:36:04Z")

</div>

Hello all, I’d like to announce the next release of Vintage. It has a few bugfixes and feature additions. The next steps after this release are to add session management, multipart parsing, and tests/specs for all o…

---

## [B1.03 of Programming Ruby now available](https://www.ruby-forum.com/t/b1-03-of-programming-ruby-now-available/125660)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 5\
**Last updated:** [January 12, 2008, 4:39am UTC](https://www.ruby-forum.com/t/b1-03-of-programming-ruby-now-available/125660 "2008-01-12T04:39:58Z")

</div>

I’ll keep it brief :slight\_smile: Updated through the end of “Ruby in its Setting”. Includes a new chapter on Ruby 1.9’s character encoding support. removed libraries no longer in 1.9 Chapter One lists the major change…

---

## [Minor nit in Rakefile (-r71)](https://www.ruby-forum.com/t/minor-nit-in-rakefile-r71/125796)

<div class="topic-metadata">

**Author:** [@Jason\_Langston](https://www.ruby-forum.com/u/Jason_Langston)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 3:30am UTC](https://www.ruby-forum.com/t/minor-nit-in-rakefile-r71/125796 "2008-01-12T03:30:57Z")

</div>

Hey all, Don’t know if it’s just me (I had to tweak the Rakefile to run under cygwin), but noticed a problem running the Rakefile. Specifically the compile IronRubyTestHost task was failing with the message: can’t f…

---

## [Copying data into a String inside a C extension](https://www.ruby-forum.com/t/copying-data-into-a-string-inside-a-c-extension/125771)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [January 12, 2008, 3:26am UTC](https://www.ruby-forum.com/t/copying-data-into-a-string-inside-a-c-extension/125771 "2008-01-12T03:26:51Z")

</div>

I’m extracting data from a function in C which accepts a pointer to the string to dump the data into. I know the length beforehand, so what I need to do is create a new String of a given length and pass the pointer t…

---

## [Command-set 0.9.1 Released](https://www.ruby-forum.com/t/command-set-0-9-1-released/125794)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 12, 2008, 2:24am UTC](https://www.ruby-forum.com/t/command-set-0-9-1-released/125794 "2008-01-12T02:24:55Z")

</div>

command-set version 0.9.1 has been released! CommandSet is a interactive program framework. Its focus is a DSL for defining commands, much like Rake or RSpec. The actual interpreter is left as an open question, alth…

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

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