# Ruby

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

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

---

## [Slightly odd Integer() behavior](https://www.ruby-forum.com/t/slightly-odd-integer-behavior/122013)

<div class="topic-metadata">

**Author:** [@Lorenzo\_ESDanielss](https://www.ruby-forum.com/u/Lorenzo_ESDanielss)\
**Replies:** 6\
**Last updated:** [December 6, 2007, 3:28pm UTC](https://www.ruby-forum.com/t/slightly-odd-integer-behavior/122013 "2007-12-06T15:28:26Z")

</div>

Integer(gets), works well if you enter any integer apart from 0, which complains about “0\\n” not being a valid integer. As expected, Integer(gets.chomp) works for all integers, including 0. Is it just me, or is this a…

---

## [Postfix to Infix (#148)](https://www.ruby-forum.com/t/postfix-to-infix-148/122308)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/postfix-to-infix-148/122308 "2007-12-06T13:36:00Z")

</div>

The big advantage of postfix expressions is that they are built with a stack in mind. This turns out to be a powerful way to do math both for computers and humans. HP makes some great RPN calculators that literally…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229133 "2007-12-06T13:28:24Z")

</div>

Begin forwarded message:

---

## [Win32/process problem](https://www.ruby-forum.com/t/win32-process-problem/122209)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 3\
**Last updated:** [December 6, 2007, 12:47pm UTC](https://www.ruby-forum.com/t/win32-process-problem/122209 "2007-12-06T12:47:38Z")

</div>

I have an application that consists of serveral independent parts. I want to use the Windows Process API to spawn the different processes. e.g. require ‘rubygems’ require ‘win32/process’ x = Process.create(:app\_name…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229123 "2007-12-06T12:31:16Z")

</div>

Begin forwarded message:

---

## [Using popen with 0,1,2,3,4 streams](https://www.ruby-forum.com/t/using-popen-with-0-1-2-3-4-streams/121888)

<div class="topic-metadata">

**Author:** [@Jan\_Koprowski](https://www.ruby-forum.com/u/Jan_Koprowski)\
**Replies:** 5\
**Last updated:** [December 6, 2007, 9:43am UTC](https://www.ruby-forum.com/t/using-popen-with-0-1-2-3-4-streams/121888 "2007-12-06T09:43:27Z")

</div>

Hi ! I try to run command system and get streams handlers to 0 (stdin), 1(stdout), 2(stderr), 3(myOwnStdIn1), 4(myOwnStdIn2). I do something like that in PHP by proc\_open and table of pipes, but here I don’t know how…

---

## [Ruby method to strip out XML codes?](https://www.ruby-forum.com/t/ruby-method-to-strip-out-xml-codes/122269)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 8:57am UTC](https://www.ruby-forum.com/t/ruby-method-to-strip-out-xml-codes/122269 "2007-12-06T08:57:08Z")

</div>

I am trying to process an XML file that includes various codes. The problem I am running into is that some of these codes are inserted into the middle of an encrypted string. If I display the file using a browser th…

---

## [\[ANN\] Rassmalog 9.0.0](https://www.ruby-forum.com/t/ann-rassmalog-9-0-0/122289)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 8:46am UTC](https://www.ruby-forum.com/t/ann-rassmalog-9-0-0/122289 "2007-12-06T08:46:20Z")

</div>

Rassmalog A static blog engine based on YAML, eRuby, and Rake. It transforms blog entries written in Textile or other formatting systems into valid XHTML files that you can view on your computer or …

---

## [File Timestamp](https://www.ruby-forum.com/t/file-timestamp/122288)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 8:18am UTC](https://www.ruby-forum.com/t/file-timestamp/122288 "2007-12-06T08:18:51Z")

</div>

Hello, I want to be able to read a file in a directory based on its timestamp?

---

## [Unicode in Regex](https://www.ruby-forum.com/t/unicode-in-regex/121786)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 32\
**Last updated:** [December 6, 2007, 8:06am UTC](https://www.ruby-forum.com/t/unicode-in-regex/121786 "2007-12-06T08:06:12Z")

</div>

This is mostly a Ruby thing, and partly a Rails thing. I’m expecting a validate\_format\_of with a regex like this /^\[a-zA-Z\\xC0-\\xD6\\xD9-\\xF6\\xF9-\\xFF.’-\\ \]\*?$/ to allow many of the normal characters like Ã¶ Ã© Ã¥ to b…

---

## [Ruby/Tk](https://www.ruby-forum.com/t/ruby-tk/121716)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 5\
**Last updated:** [December 6, 2007, 7:54am UTC](https://www.ruby-forum.com/t/ruby-tk/121716 "2007-12-06T07:54:28Z")

</div>

I have been looking for a good ruby GUI, and TK seems to be easiest for me. I am quite new to programing in general, so bare with me if i’m using the wrong “wordage” for things. I have been creating simple programs, i…

---

## [Ruby Tk?](https://www.ruby-forum.com/t/ruby-tk/122283)

<div class="topic-metadata">

**Author:** [@keersarge](https://www.ruby-forum.com/u/keersarge)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 7:52am UTC](https://www.ruby-forum.com/t/ruby-tk/122283 "2007-12-06T07:52:43Z")

</div>

I have started learning Ruby (on Debian Linux) and am at the point to get out of the books and enter the just try and see mode. I was trying to bring up a very small example program with the graphical TK toolkit. I…

---

## [Komodo debugger question](https://www.ruby-forum.com/t/komodo-debugger-question/122276)

<div class="topic-metadata">

**Author:** [@jimc](https://www.ruby-forum.com/u/jimc)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 7:30am UTC](https://www.ruby-forum.com/t/komodo-debugger-question/122276 "2007-12-06T07:30:30Z")

</div>

I writing my first gem and have a question about how to set up Komodo 4.2 to debug it correctly. My project has three directories: lib, test, and examples. Now if I open up a DOS window to the top level project direct…

---

## [Telnet - attempting to initiate a telnet session within an established telnet session](https://www.ruby-forum.com/t/telnet-attempting-to-initiate-a-telnet-session-within-an-established-telnet-session/122279)

<div class="topic-metadata">

**Author:** [@Carcarius](https://www.ruby-forum.com/u/Carcarius)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 4:29am UTC](https://www.ruby-forum.com/t/telnet-attempting-to-initiate-a-telnet-session-within-an-established-telnet-session/122279 "2007-12-06T04:29:48Z")

</div>

My company builds a product that has a dual slot architecture for redundancy. Each slot has 2 significant Ethernet interfaces; one for network connectivity and one for connectivity between slots. Only one of the slo…

---

## [Rails/Informix 1.1.0 released](https://www.ruby-forum.com/t/rails-informix-1-1-0-released/122273)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 3:40am UTC](https://www.ruby-forum.com/t/rails-informix-1-1-0-released/122273 "2007-12-06T03:40:06Z")

</div>

Rails/Informix is the ActiveRecord adapter for Informix. Web site: http://rails-informix.rubyforge.org Changelog: 1.1.0 12/5/2007 Features: \* DECIMAL support Bugs fixed: \* db/schema.rb was not being generated. \* …

---

## [Ruby-1.8.6-p111 build on osx 10.5.0 fails; ok on 10.4.10. bug or config?](https://www.ruby-forum.com/t/ruby-1-8-6-p111-build-on-osx-10-5-0-fails-ok-on-10-4-10-bug-or-config/119827)

<div class="topic-metadata">

**Author:** [@snowcrashSrubytalk](https://www.ruby-forum.com/u/snowcrashSrubytalk)\
**Replies:** 10\
**Last updated:** [December 6, 2007, 2:14am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p111-build-on-osx-10-5-0-fails-ok-on-10-4-10-bug-or-config/119827 "2007-12-06T02:14:21Z")

</div>

hi, not sure if this is a bug or a config issue … since ruby ships on osx, i thought i’d check here first … any hints ? thanks! i’m building ruby-1.8.6-p111 w/ ./configure –prefix=/usr/local/ruby –mandir=/usr/l…

---

## [Ruby works but not JRuby - when using MySQL Driver](https://www.ruby-forum.com/t/ruby-works-but-not-jruby-when-using-mysql-driver/122167)

<div class="topic-metadata">

**Author:** [@Venks](https://www.ruby-forum.com/u/Venks)\
**Replies:** 9\
**Last updated:** [December 6, 2007, 1:49am UTC](https://www.ruby-forum.com/t/ruby-works-but-not-jruby-when-using-mysql-driver/122167 "2007-12-06T01:49:33Z")

</div>

Here is the simple Ruby program that works with “Ruby” but gives an error with “JRuby”. file: connection.rb ================================================ #!/usr/bin/ruby -w Use Ruby MySQL module to test connectio…

---

## [Hash](https://www.ruby-forum.com/t/hash/122206)

<div class="topic-metadata">

**Author:** [@johnsmith](https://www.ruby-forum.com/u/johnsmith)\
**Replies:** 13\
**Last updated:** [December 6, 2007, 1:46am UTC](https://www.ruby-forum.com/t/hash/122206 "2007-12-06T01:46:14Z")

</div>

hi im writing a class which so far: reads a text file and prints out the the number of Tags it encounters however now i want to create an empty hash every time it encounters a tag line, and if it encounters any oth…

---

## [Are there module existing for system test](https://www.ruby-forum.com/t/are-there-module-existing-for-system-test/122260)

<div class="topic-metadata">

**Author:** [@Tammo\_T](https://www.ruby-forum.com/u/Tammo_T)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 12:46am UTC](https://www.ruby-forum.com/t/are-there-module-existing-for-system-test/122260 "2007-12-06T00:46:26Z")

</div>

I have looked around a little at rubyforge and RAA. I would like to have something like unit tests also for system tests. What I have in mind is, that I have a ruby-wrapper starting the programs “under test” (e.g. Ma…

---

## [Infinite streams in ruby 1.9?](https://www.ruby-forum.com/t/infinite-streams-in-ruby-1-9/122221)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 5\
**Last updated:** [December 5, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/infinite-streams-in-ruby-1-9/122221 "2007-12-05T23:42:05Z")

</div>

with continuations going away, what’s a good way to do infinite streams? – Giles B. Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog…

---

## [December Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/december-phoenix-ruby-user-group-meeting/122253)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [December 5, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/december-phoenix-ruby-user-group-meeting/122253 "2007-12-05T22:48:47Z")

</div>

December Phoenix Ruby U. Group Meeting Date: Monday, December 10, 2007 Time: 6:00pm - Socializing 7:00pm - Official start of meeting Place: Rising Tide Software 4643 E. Thomas Rd, Suite #3 Phoenix, AZ 85018 See h…

---

## [WIN32OLE Date Conversion](https://www.ruby-forum.com/t/win32ole-date-conversion/122252)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 0\
**Last updated:** [December 5, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/win32ole-date-conversion/122252 "2007-12-05T22:45:52Z")

</div>

I’m using WIN32OLE calls to grab data from Microsoft’s Active Directory. The values returned for the date fields are WIN32OLE objects, which I need to convert to MySQL timestamp format. Can anyone tell me how to do …

---

## [Redirect to pdf](https://www.ruby-forum.com/t/redirect-to-pdf/122192)

<div class="topic-metadata">

**Author:** [@Bober](https://www.ruby-forum.com/u/Bober)\
**Replies:** 2\
**Last updated:** [December 5, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/redirect-to-pdf/122192 "2007-12-05T21:58:20Z")

</div>

Hello! in folder public/pdf I have a file “test.pdf” when I try it open http://127.0.0.1:3001/pdf/test.pd everything is ok, browser open test.pdf. but when I try to redirect in method (redirect\_to\_path “/pdf/test.pd…

---

## [Need to parse a HTML table into an Array/hash](https://www.ruby-forum.com/t/need-to-parse-a-html-table-into-an-array-hash/121792)

<div class="topic-metadata">

**Author:** [@ernsttanaka](https://www.ruby-forum.com/u/ernsttanaka)\
**Replies:** 8\
**Last updated:** [December 5, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/need-to-parse-a-html-table-into-an-array-hash/121792 "2007-12-05T21:46:34Z")

</div>

I am new to ruby; having a lot of fun, but currently I am stuck with the following. I want to read this page Into an array or hash. I found the gem yahoo-finance; but that does not what I need. I need to find the …

---

## [Iconv problems with different machines](https://www.ruby-forum.com/t/iconv-problems-with-different-machines/122185)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 4\
**Last updated:** [December 5, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/iconv-problems-with-different-machines/122185 "2007-12-05T21:05:59Z")

</div>

Hi, I have the following piece of code: ic = Iconv.new(‘US-ASCII//TRANSLIT’, ‘UTF-8’) puts ic.iconv(“AÃ¼thor”) on my local machine (OSX 10.5) when I run this, I get the output: A"uthor when I run this same code…

---

## [Keeping variables across requires?](https://www.ruby-forum.com/t/keeping-variables-across-requires/122223)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 5\
**Last updated:** [December 5, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/keeping-variables-across-requires/122223 "2007-12-05T20:53:06Z")

</div>

I’m making a Befunge interpreter in Ruby - I like to keep my brain active. I want to be able to switch between different sets of rules, so as well as my base program befunge.rb, I’ve got a file called befunge-93.rb th…

---

## [London Ruby User Group - 10th December 2007](https://www.ruby-forum.com/t/london-ruby-user-group-10th-december-2007/122236)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [December 5, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/london-ruby-user-group-10th-december-2007/122236 "2007-12-05T20:18:30Z")

</div>

Hi all, The London Ruby U. Group will be having it’s December meeting this coming Monday: Date: December 10th Time: 6:30pm onwards Location: the Skills Matter offices at 1 Sekforde Street, EC1R 0BEL\[1\] Closest tub…

---

## [Hiding backtrace with "x levels"](https://www.ruby-forum.com/t/hiding-backtrace-with-x-levels/119882)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 9\
**Last updated:** [December 5, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/hiding-backtrace-with-x-levels/119882 "2007-12-05T20:10:53Z")

</div>

I must say hiding the backtrace with x levels is a major annoyance. I know the “solution” is to “simply put begin/rescue around the error”, but thats asinine. I noticed that the code that does this is deep in ruby’s C …

---

## [Ruby equivalent for \`du\`](https://www.ruby-forum.com/t/ruby-equivalent-for-du/122217)

<div class="topic-metadata">

**Author:** [@Christian\_von\_Kleis](https://www.ruby-forum.com/u/Christian_von_Kleis)\
**Replies:** 3\
**Last updated:** [December 5, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/ruby-equivalent-for-du/122217 "2007-12-05T19:55:39Z")

</div>

I wrote a simple method for recursively finding the size of a directory, because I didn’t see anything in File::Stat or FileUtils that does that. Am I missing it? Does Ruby already have an equivalent to du? def siz…

---

## [Webrick:Daemonize under Windows](https://www.ruby-forum.com/t/webrick-daemonize-under-windows/120255)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 9\
**Last updated:** [December 5, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/webrick-daemonize-under-windows/120255 "2007-12-05T19:06:50Z")

</div>

Hey! How do i run Webrick as Daemon under Windows, since the fork() command is not supported? Are Threads an Option? Can somebody give me some input on this? thx ck

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

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