# Ruby

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

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

---

## [Syntax checker wtf?](https://www.ruby-forum.com/t/syntax-checker-wtf/65446)

<div class="topic-metadata">

**Author:** [@inboulder](https://www.ruby-forum.com/u/inboulder)\
**Replies:** 47\
**Last updated:** [August 21, 2006, 6:54pm UTC](https://www.ruby-forum.com/t/syntax-checker-wtf/65446 "2006-08-21T18:54:00Z")

</div>

I’m new to Ruby and RoR; I was messing around with it today and had trouble with error codes. Specifically, the ruby syntax checker frequently spits out ‘syntax error’ with the last line of the code as the error line …

---

## [Re: QAPrototype (#91) - Updated solution with bells and whis](https://www.ruby-forum.com/t/re-qaprototype-91-updated-solution-with-bells-and-whis/65750)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 3\
**Last updated:** [August 21, 2006, 6:37pm UTC](https://www.ruby-forum.com/t/re-qaprototype-91-updated-solution-with-bells-and-whis/65750 "2006-08-21T18:37:59Z")

</div>

On 8/20/06, Rick DeNatale removed\_email\_address@domain.invalid wrote: I’ve been away from e-mail for a few days. I haven’t looked at anyone elses solution yet. Here’s my initial solution which didn’t take long. I e…

---

## [Building ruby with source rpms on ppc](https://www.ruby-forum.com/t/building-ruby-with-source-rpms-on-ppc/65820)

<div class="topic-metadata">

**Author:** [@amjadcsu](https://www.ruby-forum.com/u/amjadcsu)\
**Replies:** 0\
**Last updated:** [August 21, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/building-ruby-with-source-rpms-on-ppc/65820 "2006-08-21T18:13:20Z")

</div>

folks I am trying to build ruby 1.8.4 on ppc architecture for fedora using src rpms. The problem i am getting is it fails to create ri directory /devel3/chroot/errata41-aj/BUILD/ruby-1.8.4/ruby-1.8.4/lib/yaml.rb:9:i…

---

## [Detect user](https://www.ruby-forum.com/t/detect-user/65719)

<div class="topic-metadata">

**Author:** [@ryank](https://www.ruby-forum.com/u/ryank)\
**Replies:** 5\
**Last updated:** [August 21, 2006, 6:11pm UTC](https://www.ruby-forum.com/t/detect-user/65719 "2006-08-21T18:11:52Z")

</div>

Hi Im new to ruby and trying to learn by building a small app for mac osx. So far I love it. However, one thing I want to do is to detect the current user (of the app’s) system directory name ie - /Users/johnsmith/… …

---

## [Convert "ThisIsSomeString" to "this\_is\_some\_string"?](https://www.ruby-forum.com/t/convert-thisissomestring-to-this-is-some-string/65594)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 21\
**Last updated:** [August 21, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/convert-thisissomestring-to-this-is-some-string/65594 "2006-08-21T17:45:44Z")

</div>

Hi all What’s the fastest way to convert “ThisIsSomeString” to “this\_is\_some\_string”? Thanks for help, Joshua

---

## [XMLRPC serialization bug?](https://www.ruby-forum.com/t/xmlrpc-serialization-bug/65807)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 1\
**Last updated:** [August 21, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/xmlrpc-serialization-bug/65807 "2006-08-21T17:43:44Z")

</div>

serializes the name / value parts of a struct in the wrong order? If I do a calll as below templatevalues = \[:name=\>“code”,:value=\>“thecode”},{:name=\>“name”, :value=\>“the name” }\] result = server.call(“OrangeAPI.Sen…

---

## [Traits-0.9.2 - better living through metaprogramming](https://www.ruby-forum.com/t/traits-0-9-2-better-living-through-metaprogramming/65816)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 21, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/traits-0-9-2-better-living-through-metaprogramming/65816 "2006-08-21T17:37:44Z")

</div>

URLS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby/traits ABOUT traits.rb is set of attr\_\* like methods on steroids, caffeine, and botox. it encourages better living through meta-p…

---

## [Vim Question](https://www.ruby-forum.com/t/vim-question/65734)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 6\
**Last updated:** [August 21, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/vim-question/65734 "2006-08-21T17:23:40Z")

</div>

This is for all the Rubyists out there who can really rock the Vim. How do you invoke a shell command and pass arguments to said command? function Put(computer) !rsync -v -rulptzCF string(getcwd()) . “/” string(a:comp…

---

## [ZipFile Replace/Add on demand](https://www.ruby-forum.com/t/zipfile-replace-add-on-demand/65815)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 21, 2006, 5:17pm UTC](https://www.ruby-forum.com/t/zipfile-replace-add-on-demand/65815 "2006-08-21T17:17:38Z")

</div>

I would like to add new files or replace existing entries as I’m looping through a directory (folder.) ZipFile.open will open a zipfile if it exists, or create it if does not. I would like to take the contents of a …

---

## [Seeing the XML if for and XMLRPC server.call](https://www.ruby-forum.com/t/seeing-the-xml-if-for-and-xmlrpc-server-call/65802)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 0\
**Last updated:** [August 21, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/seeing-the-xml-if-for-and-xmlrpc-server-call/65802 "2006-08-21T16:03:10Z")

</div>

Hi Is there any way to see the XML generated by an XMLRPC server.call method? as in server = XMLRPC::Client.new2(‘https://XXX.XXXX.XXX’) result = server.call(“API.Send”, {:username=\>“”,:password=\>“”,:“remote-ip”=\>“…

---

## [Class variables in Ruby](https://www.ruby-forum.com/t/class-variables-in-ruby/65529)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 20\
**Last updated:** [August 21, 2006, 3:09pm UTC](https://www.ruby-forum.com/t/class-variables-in-ruby/65529 "2006-08-21T15:09:21Z")

</div>

Hello all, I am trying to cache lookup table values from a database table into a hash that is stored in a class variable. This will allow me to read and store the id/descr value pairs from the database one time only a…

---

## [Threads and fake forking](https://www.ruby-forum.com/t/threads-and-fake-forking/65729)

<div class="topic-metadata">

**Author:** [@Logan\_C](https://www.ruby-forum.com/u/Logan_C)\
**Replies:** 4\
**Last updated:** [August 21, 2006, 2:29pm UTC](https://www.ruby-forum.com/t/threads-and-fake-forking/65729 "2006-08-21T14:29:16Z")

</div>

Today I was thinking about how you could use a Thread + Continuation to create a new thread with the interface of fork. Apparently I was mistaken. class Thread def self.vfork callcc do |cc| Thread.new { cc.call(nil…

---

## [Percentage of time spent in method dispatch?](https://www.ruby-forum.com/t/percentage-of-time-spent-in-method-dispatch/65399)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 8\
**Last updated:** [August 21, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/percentage-of-time-spent-in-method-dispatch/65399 "2006-08-21T14:17:15Z")

</div>

I was wondering if anyone had taken a look at what % of time that ruby spends doing method dispatch? I’ll eventually do the experiments myself, but I wanted to check with y’all to see if someone had already done some …

---

## [Ruby Accessibility Analysis Kit (RAAKT) 0.4](https://www.ruby-forum.com/t/ruby-accessibility-analysis-kit-raakt-0-4/65789)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 1\
**Last updated:** [August 21, 2006, 2:05pm UTC](https://www.ruby-forum.com/t/ruby-accessibility-analysis-kit-raakt-0-4/65789 "2006-08-21T14:05:13Z")

</div>

Raakt is a toolkit to find accessibility issues in HTML documents. It can be used as part of a an automatic test procedure or as a command line tool to evaluate remote web sites. Focus is on finding accessibility issu…

---

## [Ruby 1.8.5 preview4](https://www.ruby-forum.com/t/ruby-1-8-5-preview4/65375)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 20\
**Last updated:** [August 21, 2006, 1:39pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-preview4/65375 "2006-08-21T13:39:11Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B=P$7$^$7$?!#$3$s$J$KCY$/$J$k$H$O!#e(B ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.5-preview4.tar.gz c30cdad5b208116682db24d548f20b2f e$B%A%’%C%/$7$F$$$?$@$1$k$H=u$+$j$^$9!#e(B

---

## [Spreadsheet-Excel 0.3.5 released](https://www.ruby-forum.com/t/spreadsheet-excel-0-3-5-released/65483)

<div class="topic-metadata">

**Author:** [@spreadsheet](https://www.ruby-forum.com/u/spreadsheet)\
**Replies:** 3\
**Last updated:** [August 21, 2006, 1:21pm UTC](https://www.ruby-forum.com/t/spreadsheet-excel-0-3-5-released/65483 "2006-08-21T13:21:08Z")

</div>

== What is it? Spreadsheet::Excel is a port of John McNamara’s Perl module “Spreadsheet::WriteExcel”. It allows you to generate Microsoft Excel compatible spreadsheets (in Excel 95 format) on any platform. These spre…

---

## [Ruby is exploding onto the scene as Java did at the end of 1](https://www.ruby-forum.com/t/ruby-is-exploding-onto-the-scene-as-java-did-at-the-end-of-1/65147)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 32\
**Last updated:** [August 21, 2006, 1:09pm UTC](https://www.ruby-forum.com/t/ruby-is-exploding-onto-the-scene-as-java-did-at-the-end-of-1/65147 "2006-08-21T13:09:05Z")

</div>

Java is no longer the answer to every software development problem. Ruby is exploding onto the scene, just as Java did at the end of 1990s. Developers are driving the revolution, and the amazing productivity of Ruby o…

---

## [Newbie help with scaffold generator](https://www.ruby-forum.com/t/newbie-help-with-scaffold-generator/65777)

<div class="topic-metadata">

**Author:** [@dohmer](https://www.ruby-forum.com/u/dohmer)\
**Replies:** 3\
**Last updated:** [August 21, 2006, 12:57pm UTC](https://www.ruby-forum.com/t/newbie-help-with-scaffold-generator/65777 "2006-08-21T12:57:05Z")

</div>

Hi I’m new to rails and ruby and am working through Agile Web D. with Rails Edition 1 and have a question if someone could point me in the right direction. I have my table which has a datetime field I generate a sca…

---

## [LibTomCrypt Author Sponsoring Student Trip to toorcon](https://www.ruby-forum.com/t/libtomcrypt-author-sponsoring-student-trip-to-toorcon/65764)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 0\
**Last updated:** [August 21, 2006, 9:06am UTC](https://www.ruby-forum.com/t/libtomcrypt-author-sponsoring-student-trip-to-toorcon/65764 "2006-08-21T09:06:32Z")

</div>

Hello Everyone, My friend Tom St. Denis has asked me to send out this slightly OT notice. Tom is graciously offering a student of his choosing a free or nearly free trip to toorcon (http://www.toorcon.org/ ) in sunny…

---

## [QAPrototype (#91)](https://www.ruby-forum.com/t/qaprototype-91/65482)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 10\
**Last updated:** [August 21, 2006, 8:58am UTC](https://www.ruby-forum.com/t/qaprototype-91/65482 "2006-08-21T08:58:31Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Help with TkRoot](https://www.ruby-forum.com/t/help-with-tkroot/65567)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 3\
**Last updated:** [August 21, 2006, 8:32am UTC](https://www.ruby-forum.com/t/help-with-tkroot/65567 "2006-08-21T08:32:27Z")

</div>

Hello, I would like to write a program on the Mac which at the start only shows the menubar: only after the user has selected an option from the menu would the first window appear. However I can’t get that to work in…

---

## [Nebular Gauntlet v0.2a](https://www.ruby-forum.com/t/nebular-gauntlet-v0-2a/65758)

<div class="topic-metadata">

**Author:** [@S-redyck](https://www.ruby-forum.com/u/S-redyck)\
**Replies:** 0\
**Last updated:** [August 21, 2006, 7:08am UTC](https://www.ruby-forum.com/t/nebular-gauntlet-v0-2a/65758 "2006-08-21T07:08:20Z")

</div>

I am incredibly pleased to announce the second public release of Nebular Gauntlet along with an update of the map editor. It’s been a couple months since the last release and there have been a multitude of fixes and f…

---

## [Syntax errors when job run from cron](https://www.ruby-forum.com/t/syntax-errors-when-job-run-from-cron/65742)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 7\
**Last updated:** [August 21, 2006, 6:18am UTC](https://www.ruby-forum.com/t/syntax-errors-when-job-run-from-cron/65742 "2006-08-21T06:18:06Z")

</div>

Well this is weird! I’m used to odd problems when you run programs from cron but these are almost invariably to do with file permissions or stuff in the environment variables not matching the command line environment…

---

## [Ripper and Ruby 1.8](https://www.ruby-forum.com/t/ripper-and-ruby-1-8/65672)

<div class="topic-metadata">

**Author:** [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Replies:** 6\
**Last updated:** [August 21, 2006, 4:05am UTC](https://www.ruby-forum.com/t/ripper-and-ruby-1-8/65672 "2006-08-21T04:05:55Z")

</div>

Hi all, For the past two days I’ve been trying to get Ripper to compile with Ruby 1.8 After searching and semi-translating some Japanese messages \[1\] with Babelfish I managed to compile Ripper for 1.8 but when using …

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/102507)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 21, 2006, 3:17am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/102507 "2006-08-21T03:17:52Z")

</div>

Begin forwarded message:

---

## [When to use :symbol and when to use String?](https://www.ruby-forum.com/t/when-to-use-symbol-and-when-to-use-string/65673)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [August 21, 2006, 3:09am UTC](https://www.ruby-forum.com/t/when-to-use-symbol-and-when-to-use-string/65673 "2006-08-21T03:09:52Z")

</div>

Hi all I experience that the use of symbols and strings is not consistent in Rails. Very often I can use symbols as values in methods: has\_and\_belongs\_to\_many :musician\_profiles, :join\_table =\> “musician\_profiles\_do…

---

## [User Interface Designer for GTK+ and GNOME](https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537)

<div class="topic-metadata">

**Author:** [@felipe](https://www.ruby-forum.com/u/felipe)\
**Replies:** 3\
**Last updated:** [August 21, 2006, 2:27am UTC](https://www.ruby-forum.com/t/user-interface-designer-for-gtk-and-gnome/65537 "2006-08-21T02:27:48Z")

</div>

Hello, I’m posting here since I cannot do it in the Ruby-Gnome 2 forum. I’m new to ruby and ruby-Gnome2.I’ve written a small script for extracting table names from a trace file from Microsoft Analizer. I decided I wa…

---

## [Invoking a batch file with Ruby on Windows](https://www.ruby-forum.com/t/invoking-a-batch-file-with-ruby-on-windows/65737)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 21, 2006, 2:05am UTC](https://www.ruby-forum.com/t/invoking-a-batch-file-with-ruby-on-windows/65737 "2006-08-21T02:05:49Z")

</div>

Hi Does anyone know how I could invoke a Windows batch file (e.g. MyBatchFile.bat) and check the ERRORLEVEL environment variable after the batch file completes execution. Thanks

---

## [How to turn off input echo in irb?](https://www.ruby-forum.com/t/how-to-turn-off-input-echo-in-irb/65532)

<div class="topic-metadata">

**Author:** [@jacklty](https://www.ruby-forum.com/u/jacklty)\
**Replies:** 5\
**Last updated:** [August 21, 2006, 1:07am UTC](https://www.ruby-forum.com/t/how-to-turn-off-input-echo-in-irb/65532 "2006-08-21T01:07:46Z")

</div>

How to turn off input echo in irb? jacklty

---

## [Time.parse of empty string returns Time.now?](https://www.ruby-forum.com/t/time-parse-of-empty-string-returns-time-now/65727)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 2\
**Last updated:** [August 21, 2006, 12:55am UTC](https://www.ruby-forum.com/t/time-parse-of-empty-string-returns-time-now/65727 "2006-08-21T00:55:45Z")

</div>

Hi! I am Ruby newbie and have a question regarding Time.parse(). I am using Time.parse to scan arbitrary strings for a datetime value. When I feed strings that have no datetime value in them Time.parse seems to retur…

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

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