# Ruby

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

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

---

## [Ruby Reports 0.5.3](https://www.ruby-forum.com/t/ruby-reports-0-5-3/68876)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [September 16, 2006, 5:13am UTC](https://www.ruby-forum.com/t/ruby-reports-0-5-3/68876 "2006-09-16T05:13:51Z")

</div>

= Ruport 0.5.3, the “Sleepy Turtle” edition = == What is Ruport? == Ruby Reports is a software library that aims to make the task of reporting less tedious and painful. It provides tools for data acquisition, databas…

---

## [RubyPhone project updated](https://www.ruby-forum.com/t/rubyphone-project-updated/68872)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 0\
**Last updated:** [September 16, 2006, 4:15am UTC](https://www.ruby-forum.com/t/rubyphone-project-updated/68872 "2006-09-16T04:15:44Z")

</div>

Version 0.2.0 has been released for the RubyPhone CTI project. The project can either be accessed via the RAA (http://raa.ruby-lang.org/project/rubyphone/) or via the RubyForge project page (http://tsapi.rubyforge.org)…

---

## [Convert Binary to Float (and back)](https://www.ruby-forum.com/t/convert-binary-to-float-and-back/68871)

<div class="topic-metadata">

**Author:** [@Nebiru](https://www.ruby-forum.com/u/Nebiru)\
**Replies:** 1\
**Last updated:** [September 16, 2006, 3:57am UTC](https://www.ruby-forum.com/t/convert-binary-to-float-and-back/68871 "2006-09-16T03:57:43Z")

</div>

I’ve hacked together some rather ugly code to convert a Binary to a Float but was hoping there is a more elegant way using perhaps pack and unpack

---

## [Re: arbitrary indexes](https://www.ruby-forum.com/t/re-arbitrary-indexes/68705)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 11\
**Last updated:** [September 16, 2006, 1:45am UTC](https://www.ruby-forum.com/t/re-arbitrary-indexes/68705 "2006-09-16T01:45:39Z")

</div>

From: Jason N. \[mailto:removed\_email\_address@domain.invalid\] Oh course. That’s (now) blindingly obvious. I don’t think there is much I can do to prevent all the value\_at calls. I can’t really lay out my arrays differ…

---

## [Merging two anonymous structs](https://www.ruby-forum.com/t/merging-two-anonymous-structs/68778)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 3\
**Last updated:** [September 15, 2006, 11:53pm UTC](https://www.ruby-forum.com/t/merging-two-anonymous-structs/68778 "2006-09-15T23:53:30Z")

</div>

Hello, I wonder if it’s possible to merge two #struct objects ? For example merging this one #\<struct #Class:0xb7986c00 ident=“237006/19748895”, details=“Some text here”\> With this one #\<struct #Class:0xb79893b0 lib…

---

## [Not sure what is wrong. strange error](https://www.ruby-forum.com/t/not-sure-what-is-wrong-strange-error/68830)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [September 15, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/not-sure-what-is-wrong-strange-error/68830 "2006-09-15T23:47:29Z")

</div>

My class declation is like this class TorontoTraderLoader INDEX\_SYMBOL=2 STOCK\_SYMBOL=1 @backTestDb=\[‘backtestBackTest’, ‘user’,‘pass’\] def initialize(backTesting) @exchanges=@industries=@sectors=@stocksymbols='' …

---

## [Rails: generate scaffold Product Admin overwrites admin page](https://www.ruby-forum.com/t/rails-generate-scaffold-product-admin-overwrites-admin-page/68828)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [September 15, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/rails-generate-scaffold-product-admin-overwrites-admin-page/68828 "2006-09-15T23:40:04Z")

</div>

\[This post belongs on the Rails mailing list but its server is full\] Rubies: I’m up to the infamous Page 57 in Joel Spolsky’s most favoritest book in the whole world, /Agile Web D. with Rails/ by the Daves. It says: …

---

## [Need help about Ruby with text file](https://www.ruby-forum.com/t/need-help-about-ruby-with-text-file/68657)

<div class="topic-metadata">

**Author:** [@oscarlok](https://www.ruby-forum.com/u/oscarlok)\
**Replies:** 11\
**Last updated:** [September 15, 2006, 9:55pm UTC](https://www.ruby-forum.com/t/need-help-about-ruby-with-text-file/68657 "2006-09-15T21:55:18Z")

</div>

Hi, everybody This is my first time get into this forum. I would like to know that is it a forum for us to discuss about everythings in Ruby, please? If so, 1)I would like to know that how can I delete or remove a l…

---

## [Re: not sure what is wrong. strange error](https://www.ruby-forum.com/t/re-not-sure-what-is-wrong-strange-error/68840)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [September 15, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/re-not-sure-what-is-wrong-strange-error/68840 "2006-09-15T20:45:13Z")

</div>

From: Nathan S. \[mailto:removed\_email\_address@domain.invalid\] It’s too bad Ruby does not allow overloaded methods. It makes more sense, IMHO, in this case to have two constructors, each of which perform two differen…

---

## [Rails: Transmit \<select\>\<option\> value into link\_to()](https://www.ruby-forum.com/t/rails-transmit-select-option-value-into-link-to/68808)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 4\
**Last updated:** [September 15, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/rails-transmit-select-option-value-into-link-to/68808 "2006-09-15T20:31:09Z")

</div>

\[Still trying to safely get on the Rails mailing list…\] Rubies: The great thing about Web programming is there’s so many languages to chose from - or mix together. Specifically, an ERb page can contain 3 languages: …

---

## [Monkey-patching const\_missing and friends](https://www.ruby-forum.com/t/monkey-patching-const-missing-and-friends/68818)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 0\
**Last updated:** [September 15, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/monkey-patching-const-missing-and-friends/68818 "2006-09-15T18:06:55Z")

</div>

In RubyCLR, I currently have a baseline dependency on ActiveRecord because I need to patch const\_missing after ActiveRecord does.So in my top rubyclr.rb file it looks something like: require ‘rubygems’ require\_gem ‘A…

---

## [PStore#load\_file](https://www.ruby-forum.com/t/pstore-load-file/68817)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [September 15, 2006, 5:38pm UTC](https://www.ruby-forum.com/t/pstore-load-file/68817 "2006-09-15T17:38:51Z")

</div>

e$B@\>;3OB9-$G$9!#e(B \[ruby-dev:23567\]e$B$N%Q%C%A$K$"$C$?e(Bload\_filee$B$G$9$,!“e(B e$B$=$N8e$Ne(B(e$B%Q%C%A$,\<h$j9~$^$l$k$^$G$Ne(B)e$BB\>$NItJ,$NJQ99$Ge(B e$B\<B:\]$K$OITMW$K$J$C$F$$$k$h$&$J$N$G!”\>C$7$F$7$^$C$Fe(B e$BNI…

---

## [Contracted Ruby Help](https://www.ruby-forum.com/t/contracted-ruby-help/68793)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 8\
**Last updated:** [September 15, 2006, 5:13pm UTC](https://www.ruby-forum.com/t/contracted-ruby-help/68793 "2006-09-15T17:13:42Z")

</div>

Hi everyone. I’m new to the Ruby world and am liking it so far. My company needs a little bit of help writing a handful of scripts to perform various tasks. They aren’t complicated scripts, we’re just busy with other…

---

## [Auto indentation problem; little help please :)](https://www.ruby-forum.com/t/auto-indentation-problem-little-help-please/68761)

<div class="topic-metadata">

**Author:** [@skeptic](https://www.ruby-forum.com/u/skeptic)\
**Replies:** 2\
**Last updated:** [September 15, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/auto-indentation-problem-little-help-please/68761 "2006-09-15T16:47:37Z")

</div>

Hi, I’m new to ruby and irb and am hoping someone can give me a helping hand. Even this issue is small, it’s annoying to me. I’m running irb 0.9.5 on OS X 10.4 within an iterm terminal. I’m doing all this on a MacBoo…

---

## [Newbie regexp question](https://www.ruby-forum.com/t/newbie-regexp-question/68744)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 5\
**Last updated:** [September 15, 2006, 4:46pm UTC](https://www.ruby-forum.com/t/newbie-regexp-question/68744 "2006-09-15T16:46:46Z")

</div>

Hello, I’m trying to split a formatted text file into four separate columns. The data is comprised of lines of text that are bundled into four distinct columns, corresponding to a “Required versus Optional” variable,…

---

## [How to collect over two arrays then look back to one?](https://www.ruby-forum.com/t/how-to-collect-over-two-arrays-then-look-back-to-one/68571)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 8\
**Last updated:** [September 15, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/how-to-collect-over-two-arrays-then-look-back-to-one/68571 "2006-09-15T15:16:17Z")

</div>

I am reading Ruby for Rails and Ruby Cookbock and delighted by the Array#find\_all and Enumerable#collect methods. I’m wondering what the idiomatic way to do the following is? Two parallel arrays A, B . For each elemen…

---

## [Regular expression question](https://www.ruby-forum.com/t/regular-expression-question/68569)

<div class="topic-metadata">

**Author:** [@L7L7L7](https://www.ruby-forum.com/u/L7L7L7)\
**Replies:** 14\
**Last updated:** [September 15, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/regular-expression-question/68569 "2006-09-15T14:46:12Z")

</div>

In trying to parse a C source file I have the following section of code: … … case line when /^./\*.?\*/.$/ # single line comment(s) non\_comments = line.split(//\*.?\*//).to\_s process\_code(non\_comments) when /^./…

---

## [Keep only one part of a string](https://www.ruby-forum.com/t/keep-only-one-part-of-a-string/68743)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 6\
**Last updated:** [September 15, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/keep-only-one-part-of-a-string/68743 "2006-09-15T13:41:57Z")

</div>

Hello, how to better write that : self.ident = self.ident\[/0-9\*/\] I’m pretty sure there is a String method that would keep only the first match of the regex but I didn’t found it in the String doc reference Thanks

---

## [Compile failure on IRIX 6.5](https://www.ruby-forum.com/t/compile-failure-on-irix-6-5/68741)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 2\
**Last updated:** [September 15, 2006, 10:05am UTC](https://www.ruby-forum.com/t/compile-failure-on-irix-6-5/68741 "2006-09-15T10:05:25Z")

</div>

Any ideas? gmake\[1\]: Entering directory \`/users/mz652c/src/ruby-1.8.5/ext/pty’ /usr/bin/cc -I. -I…/… -I…/…/. -I…/…/./ext/pty -DHAVE\_SYS\_STROPTS\_H -DHAVE\_\_GETPTY -KPIC -g -c pty.c cc-1164 cc: WARNING File = pty.c, L…

---

## [Ruby-VPI 7.2.0](https://www.ruby-forum.com/t/ruby-vpi-7-2-0/68774)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [September 15, 2006, 9:47am UTC](https://www.ruby-forum.com/t/ruby-vpi-7-2-0/68774 "2006-09-15T09:47:23Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Version 7.2.0 (2006-09-15) Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Web site: http://ruby…

---

## [Compact join with new line](https://www.ruby-forum.com/t/compact-join-with-new-line/68718)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 3\
**Last updated:** [September 15, 2006, 6:07am UTC](https://www.ruby-forum.com/t/compact-join-with-new-line/68718 "2006-09-15T06:07:08Z")

</div>

I would like to compact join address elements by inserting a new line between them in my class address I am using def to\_s \[@street, @city, @country \].compact.join(" - ") end but I’d like to replace " -" by a new l…

---

## [Script local variables - the root of all mystery?](https://www.ruby-forum.com/t/script-local-variables-the-root-of-all-mystery/68738)

<div class="topic-metadata">

**Author:** [@Jason\_Dusek](https://www.ruby-forum.com/u/Jason_Dusek)\
**Replies:** 2\
**Last updated:** [September 15, 2006, 5:37am UTC](https://www.ruby-forum.com/t/script-local-variables-the-root-of-all-mystery/68738 "2006-09-15T05:37:08Z")

</div>

I have a script with top level variables in it (i.e - variables that are not declared within a block, function definition or class definition). When I run this script through irb with load, I can access the variables …

---

## [TkDialogBox missing?](https://www.ruby-forum.com/t/tkdialogbox-missing/67142)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 22\
**Last updated:** [September 15, 2006, 5:27am UTC](https://www.ruby-forum.com/t/tkdialogbox-missing/67142 "2006-09-15T05:27:06Z")

</div>

Hello! I am pretty new to ruby, but I have used perl/Tk in my previous life :wink: I can’t find ruby’s aequivalent to perl’s Tk::DialogBox. I need to implement something similar to firefox’s “preferences” dialog. Th…

---

## [Codeforpeople's rubyforge 0.2.0 released](https://www.ruby-forum.com/t/codeforpeoples-rubyforge-0-2-0-released/68669)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 15\
**Last updated:** [September 15, 2006, 4:06am UTC](https://www.ruby-forum.com/t/codeforpeoples-rubyforge-0-2-0-released/68669 "2006-09-15T04:06:56Z")

</div>

I’m proud to announce that codeforpeople’s rubyforge 0.2.0 has been released! This release marks a massive revamp to rubyforge splitting the previous command-line script into a script and library with unit tests. Make…

---

## [Vote for Ruby support in SlickEdit](https://www.ruby-forum.com/t/vote-for-ruby-support-in-slickedit/68758)

<div class="topic-metadata">

**Author:** [@magpie](https://www.ruby-forum.com/u/magpie)\
**Replies:** 0\
**Last updated:** [September 15, 2006, 3:26am UTC](https://www.ruby-forum.com/t/vote-for-ruby-support-in-slickedit/68758 "2006-09-15T03:26:54Z")

</div>

SlickEdit is a heavy duty, commercial, crossplatform, multi-language editor and IDE that has some Ruby support, but that support needs further attention. If the SlickEdit developers gave Ruby the attention they give o…

---

## [Ruby blogger atom client library](https://www.ruby-forum.com/t/ruby-blogger-atom-client-library/68572)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 2\
**Last updated:** [September 15, 2006, 2:46am UTC](https://www.ruby-forum.com/t/ruby-blogger-atom-client-library/68572 "2006-09-15T02:46:53Z")

</div>

Hi all anyone know where to find “ruby blogger atom client library” regards.

---

## [Making vim better (was Re: A better syntax highlighting colo](https://www.ruby-forum.com/t/making-vim-better-was-re-a-better-syntax-highlighting-colo/68722)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 5\
**Last updated:** [September 15, 2006, 1:30am UTC](https://www.ruby-forum.com/t/making-vim-better-was-re-a-better-syntax-highlighting-colo/68722 "2006-09-15T01:30:49Z")

</div>

On 9/2/06, Piers H. removed\_email\_address@domain.invalid wrote: Also - if you like vim - you may even like it even more if you haven’t allready disovered mru and Tlist with ctags? This is a little OT since it really…

---

## [Script for ftp using hash](https://www.ruby-forum.com/t/script-for-ftp-using-hash/68740)

<div class="topic-metadata">

**Author:** [@Cristiano\_M](https://www.ruby-forum.com/u/Cristiano_M)\
**Replies:** 0\
**Last updated:** [September 15, 2006, 12:56am UTC](https://www.ruby-forum.com/t/script-for-ftp-using-hash/68740 "2006-09-15T00:56:46Z")

</div>

I’ve written a script that transfer files with ftp. But there is a way to see at what point is the transfert ?? Manually in ftp I write: hash put … (at this point I can see the # that goes on), There is a procedure…

---

## [Codeforpeople's rubyforge 0.2.1 released](https://www.ruby-forum.com/t/codeforpeoples-rubyforge-0-2-1-released/68737)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [September 15, 2006, 12:38am UTC](https://www.ruby-forum.com/t/codeforpeoples-rubyforge-0-2-1-released/68737 "2006-09-15T00:38:44Z")

</div>

I’ve just released version 0.2.1, fixing a gem deployment issue and enhancing the rdoc a bit. sudo gem update rubyforge 0.2.1 / 2006-09-14: Gemspec was too loose about packaging. Now using manifest.

---

## [Rails-\>breakpointer-\>irb-\>debugger?](https://www.ruby-forum.com/t/rails-breakpointer-irb-debugger/68652)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 6\
**Last updated:** [September 14, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/rails-breakpointer-irb-debugger/68652 "2006-09-14T21:33:32Z")

</div>

How do you step through your Rails code from irb? Can you drop into the debugger, or do you have put in a zillion breakpoints? Is there a way to add & delete breakpoints from irb, or do you have to set them all befor…

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

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