# Ruby

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

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

---

## [Zoomable TkCanvas?](https://www.ruby-forum.com/t/zoomable-tkcanvas/175086)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 10\
**Last updated:** [September 9, 2009, 12:16am UTC](https://www.ruby-forum.com/t/zoomable-tkcanvas/175086 "2009-09-09T00:16:54Z")

</div>

Hello, It looks like TkCanvas has no methods for zooming in and out. For Perl, I have found the Tk::Worldcanvas and Tk::Abstractcanvas modules. Anybody knows about something like that for ruby?

---

## [Newcomer to Ruby](https://www.ruby-forum.com/t/newcomer-to-ruby/174823)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 10\
**Last updated:** [September 9, 2009, 12:00am UTC](https://www.ruby-forum.com/t/newcomer-to-ruby/174823 "2009-09-09T00:00:30Z")

</div>

I am a newcomer to programming and wish to explore ruby. Can anyone recomend a book for this purpose.

---

## [Simple New Ruby Programmer Problem with $stdin.gets](https://www.ruby-forum.com/t/simple-new-ruby-programmer-problem-with-stdin-gets/174839)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 13\
**Last updated:** [September 8, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/simple-new-ruby-programmer-problem-with-stdin-gets/174839 "2009-09-08T16:39:38Z")

</div>

I’m having difficulty getting any command to work to pick up input from a screen or what looks like a DOS box when I run a script from SciTE. In the following code, which you will recognize as a slightly modified “…

---

## [Mixins](https://www.ruby-forum.com/t/mixins/175107)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 4\
**Last updated:** [September 8, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/mixins/175107 "2009-09-08T16:34:08Z")

</div>

I have the following code separated in 2 files. module UsefulFeatures def class\_name self.class.to\_s end end require UsefulFeatures class Person include UsefulFeatures end x = Person.new puts x.class\_name Ev…

---

## [How to convert a "normal" searchstring into regexp](https://www.ruby-forum.com/t/how-to-convert-a-normal-searchstring-into-regexp/175006)

<div class="topic-metadata">

**Author:** [@noxx000](https://www.ruby-forum.com/u/noxx000)\
**Replies:** 8\
**Last updated:** [September 8, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-convert-a-normal-searchstring-into-regexp/175006 "2009-09-08T16:23:19Z")

</div>

Hi there, I’m really new to Ruby and I hope I didn’t overlook something while searching through forums and docs but I got a small problem which I can’t solve myself… :frowning: As many users aren’t familiar with rege…

---

## [Re: Need a Ruby-doc](https://www.ruby-forum.com/t/re-need-a-ruby-doc/175111)

<div class="topic-metadata">

**Author:** [@Eric\_Tucker](https://www.ruby-forum.com/u/Eric_Tucker)\
**Replies:** 3\
**Last updated:** [September 8, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/re-need-a-ruby-doc/175111 "2009-09-08T14:26:21Z")

</div>

To generate something that looks like RDoc Documentation look at rdoc. Unless you’re trying to do something else?

---

## [Iconv "\\n" (Iconv::InvalidCharacter)](https://www.ruby-forum.com/t/iconv-n-iconv-invalidcharacter/175126)

<div class="topic-metadata">

**Author:** [@ciapecki](https://www.ruby-forum.com/u/ciapecki)\
**Replies:** 0\
**Last updated:** [September 8, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/iconv-n-iconv-invalidcharacter/175126 "2009-09-08T14:19:49Z")

</div>

I have following tab delimited ucs-2le input file ucs2le\_sample.txt: Job Title Second case “EVP; COO, DIGITAL TV” “ESPTA TÉCNICO ““B””” there are 2 columns (Job Title, Second case) internally in Ruby: irb(main):001…

---

## ['\\\\\\\\\\\\\\\\' madness?](https://www.ruby-forum.com/t/madness/175069)

<div class="topic-metadata">

**Author:** [@fstroehle](https://www.ruby-forum.com/u/fstroehle)\
**Replies:** 3\
**Last updated:** [September 8, 2009, 1:29pm UTC](https://www.ruby-forum.com/t/madness/175069 "2009-09-08T13:29:28Z")

</div>

hi, trying to solve someones mailinglist posted problem, I just created my own. Why do 2 backslashes produce the same result as 4 and 6 the same as 8? 014:0\> ‘ab’.gsub(‘a’, ‘\\’) =\> “\\b” 015:0\> ‘ab’.gsub(‘a’, ‘\\\\’) …

---

## [Caty 0.0.1 initial release](https://www.ruby-forum.com/t/caty-0-0-1-initial-release/175122)

<div class="topic-metadata">

**Author:** [@fstroehle](https://www.ruby-forum.com/u/fstroehle)\
**Replies:** 0\
**Last updated:** [September 8, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/caty-0-0-1-initial-release/175122 "2009-09-08T13:16:36Z")

</div>

Hi folks! I just finished my new gem: Caty It’s a command line parser that maps the user input directly to instance methods of a class – much like the great Thor does. It supports global and task-specific options tha…

---

## [Executing system commands in threads under Ruby 1.8.6](https://www.ruby-forum.com/t/executing-system-commands-in-threads-under-ruby-1-8-6/175066)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 16\
**Last updated:** [September 8, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/executing-system-commands-in-threads-under-ruby-1-8-6/175066 "2009-09-08T13:00:12Z")

</div>

I tried to write a script that makes use of external binaries. Each external binary is called from a different thread, but, under 1.8.6, this doesn’t seem to work. Everything is executing in a sequential-like manner. …

---

## [\["test string\\n", nil\] i need to strip \\n and nil](https://www.ruby-forum.com/t/test-string-n-nil-i-need-to-strip-n-and-nil/175043)

<div class="topic-metadata">

**Author:** [@i8igmac](https://www.ruby-forum.com/u/i8igmac)\
**Replies:** 15\
**Last updated:** [September 8, 2009, 11:20am UTC](https://www.ruby-forum.com/t/test-string-n-nil-i-need-to-strip-n-and-nil/175043 "2009-09-08T11:20:08Z")

</div>

im sending files back and forth form a client and a server using sockets, the first string the server sends to the client is the size of the file, “59023” the client recives this string in this format “59023\\n”, nil …

---

## [Need a Ruby-doc](https://www.ruby-forum.com/t/need-a-ruby-doc/175108)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 0\
**Last updated:** [September 8, 2009, 7:19am UTC](https://www.ruby-forum.com/t/need-a-ruby-doc/175108 "2009-09-08T07:19:01Z")

</div>

Hi Everybody, Good morning! I need a Source code documentation tool with free version “To extract all the user comments from the ruby source code”. Can anybody help me out?. Thanks, Periyasamy

---

## [Delete cookie](https://www.ruby-forum.com/t/delete-cookie/139646)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [September 8, 2009, 6:51am UTC](https://www.ruby-forum.com/t/delete-cookie/139646 "2009-09-08T06:51:59Z")

</div>

Hi, Does anyone know of an effective way to delete cookies? I have been using this: class Cookie def kill (dir= \\ "C:\\\\Documents and Settings\\\\"+ENV\['USERNAME'\]+"\\ \\Local Settings\\\\Temporary In…

---

## [How to delete local cookie](https://www.ruby-forum.com/t/how-to-delete-local-cookie/161437)

<div class="topic-metadata">

**Author:** [@baoju](https://www.ruby-forum.com/u/baoju)\
**Replies:** 2\
**Last updated:** [September 8, 2009, 6:47am UTC](https://www.ruby-forum.com/t/how-to-delete-local-cookie/161437 "2009-09-08T06:47:23Z")

</div>

I should delete cookie in “C:\\Documents and Settings\\hxr\\Cookies” . how do by ruby delete them?

---

## [Problems with cross-thread violation](https://www.ruby-forum.com/t/problems-with-cross-thread-violation/174782)

<div class="topic-metadata">

**Author:** [@grish](https://www.ruby-forum.com/u/grish)\
**Replies:** 8\
**Last updated:** [September 8, 2009, 6:09am UTC](https://www.ruby-forum.com/t/problems-with-cross-thread-violation/174782 "2009-09-08T06:09:24Z")

</div>

Been having problems with cross-thread violation in my program and been researching on how I can get around it. I really want to continue using ruby, because learning and using it has been fun, but if I can’t find som…

---

## [Clogger 0.0.6 - configurable request logging for Rack](https://www.ruby-forum.com/t/clogger-0-0-6-configurable-request-logging-for-rack/175104)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [September 8, 2009, 2:18am UTC](https://www.ruby-forum.com/t/clogger-0-0-6-configurable-request-logging-for-rack/175104 "2009-09-08T02:18:07Z")

</div>

Clogger is Rack middleware for logging HTTP requests. The log format is customizable so you can specify exactly which fields to log. http://clogger.rubyforge.org/ removed\_email\_address@domain.invalid git://git.bogomi…

---

## [Syntax Highlighting (#218)](https://www.ruby-forum.com/t/syntax-highlighting-218/174264)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [September 8, 2009, 12:39am UTC](https://www.ruby-forum.com/t/syntax-highlighting-218/174264 "2009-09-08T00:39:50Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Opinion: Scripting in a Ruby program](https://www.ruby-forum.com/t/opinion-scripting-in-a-ruby-program/175028)

<div class="topic-metadata">

**Author:** [@puck6633](https://www.ruby-forum.com/u/puck6633)\
**Replies:** 8\
**Last updated:** [September 7, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/opinion-scripting-in-a-ruby-program/175028 "2009-09-07T23:38:22Z")

</div>

Hello all, I’m working on a small program – and learning to love Ruby all over again – but I’ve come across a small dilemma: What if you want to make a Ruby program that can be extended without modifying the original …

---

## [OpenGl and ruby](https://www.ruby-forum.com/t/opengl-and-ruby/175096)

<div class="topic-metadata">

**Author:** [@unnown](https://www.ruby-forum.com/u/unnown)\
**Replies:** 0\
**Last updated:** [September 7, 2009, 10:54pm UTC](https://www.ruby-forum.com/t/opengl-and-ruby/175096 "2009-09-07T22:54:10Z")

</div>

Hello all, i have been working with ruby for less than a month now so sory if this is a stupid mistake i have been trying to get ruby to work with opengl, i found an app which integrates ruby with gosu and opengl whi…

---

## [1/2 price print books @ Manning, today only](https://www.ruby-forum.com/t/1-2-price-print-books-manning-today-only/175091)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [September 7, 2009, 9:22pm UTC](https://www.ruby-forum.com/t/1-2-price-print-books-manning-today-only/175091 "2009-09-07T21:22:34Z")

</div>

Hi – Today only, Manning is giving 50% off print books, if you use the code pop0907 when you check out. Manning books include “The Well-Grounded Rubyist” (by me) and “Ruby in Practice” (Jeremy McAnally et al.). “The…

---

## [Rss parsing error](https://www.ruby-forum.com/t/rss-parsing-error/172030)

<div class="topic-metadata">

**Author:** [@Young\_Gyu\_P](https://www.ruby-forum.com/u/Young_Gyu_P)\
**Replies:** 4\
**Last updated:** [September 7, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/rss-parsing-error/172030 "2009-09-07T20:05:31Z")

</div>

At these days, I try to parse ‘http://www.forbes.com/news/index.xml’ using feedzirra. As you access this url, you can recognize what the problem is. They added an unnecessary html tag which made malformed rss format. …

---

## [Regular expression NOT operator](https://www.ruby-forum.com/t/regular-expression-not-operator/175072)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 3\
**Last updated:** [September 7, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/regular-expression-not-operator/175072 "2009-09-07T19:31:28Z")

</div>

Regex is something I’ve managed to ignore for some time, only learning bits when needed. I’m trying to do code highlighting, so I’ve been using Reg to find parts of the code I’ve run into an issue with comments A co…

---

## [Modules as namespace](https://www.ruby-forum.com/t/modules-as-namespace/175089)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/modules-as-namespace/175089 "2009-09-07T19:17:18Z")

</div>

i am writing plugins for sketchup and use a module to encapsulate and protect my variable and methods from name clashes. Is there any difference between the following? module A def A.say\_hi # or self.say puts “hi” …

---

## [Date & time validation](https://www.ruby-forum.com/t/date-time-validation/174741)

<div class="topic-metadata">

**Author:** [@nescripter](https://www.ruby-forum.com/u/nescripter)\
**Replies:** 9\
**Last updated:** [September 7, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/date-time-validation/174741 "2009-09-07T18:56:03Z")

</div>

Hi all, I am looking for an easy way to validate date and time values in a script I have written. The script takes values from a large file containing various data sets, some dates and some times. I need to validate …

---

## [Two Dimensional Arrays in Ruby?](https://www.ruby-forum.com/t/two-dimensional-arrays-in-ruby/175057)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 7\
**Last updated:** [September 7, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/two-dimensional-arrays-in-ruby/175057 "2009-09-07T16:59:07Z")

</div>

No doubt this question has been asked before but I cannot find it and it is not documented in three Ruby books I’ve checked, which is very strange as two dimensional arrays are a common need in programming. How does…

---

## [RoR-Sql query](https://www.ruby-forum.com/t/ror-sql-query/175064)

<div class="topic-metadata">

**Author:** [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/ror-sql-query/175064 "2009-09-07T13:47:37Z")

</div>

Hi everyone Consider there are three tables book,money,card in database. Book has got column names name,price. Money has got column names price,type. Card has got column names type,id. Now based on the ‘id’ of the ‘…

---

## [1.8.7 backward compatibility with 1.8.6](https://www.ruby-forum.com/t/1-8-7-backward-compatibility-with-1-8-6/175033)

<div class="topic-metadata">

**Author:** [@navac](https://www.ruby-forum.com/u/navac)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 11:10am UTC](https://www.ruby-forum.com/t/1-8-7-backward-compatibility-with-1-8-6/175033 "2009-09-07T11:10:40Z")

</div>

Hi, Is ruby 1.8.7 on snow leopard backward compatible with ruby 1.8.6 on leopard. I’d like to know if there are special known issues, that should be taken care of when porting projects, based 1.8.6 leopard to 1.8.7 1…

---

## [\[Bug #1976\] Errors in test/fileutils/test\_fileutils.rb](https://www.ruby-forum.com/t/bug-1976-errors-in-test-fileutils-test-fileutils-rb/174165)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 5\
**Last updated:** [September 7, 2009, 10:43am UTC](https://www.ruby-forum.com/t/bug-1976-errors-in-test-fileutils-test-fileutils-rb/174165 "2009-09-07T10:43:18Z")

</div>

Bug #1976: Errors in test/fileutils/test\_fileutils.rb http://redmine.ruby-lang.org/issues/show/1976 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-08-21 tru…

---

## [Something.new( :attribute =\> value) thing](https://www.ruby-forum.com/t/something-new-attribute-value-thing/174994)

<div class="topic-metadata">

**Author:** [@kingkadelfek](https://www.ruby-forum.com/u/kingkadelfek)\
**Replies:** 6\
**Last updated:** [September 7, 2009, 10:10am UTC](https://www.ruby-forum.com/t/something-new-attribute-value-thing/174994 "2009-09-07T10:10:04Z")

</div>

Hello, I saw something very interesting in the code of FXRuby, and I would like to use this kind of code in my scripts : My\_Window.new(app, “Button Test”, :opts =\> DECOR\_ALL, :x =\> 100, :y =\> 100) I’m only able to do…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/174979)

<div class="topic-metadata">

**Author:** [@Patti\_B](https://www.ruby-forum.com/u/Patti_B)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 9:34am UTC](https://www.ruby-forum.com/t/unsubscribe/174979 "2009-09-07T09:34:12Z")

</div>

Hello, Could you remove me from the mailing list? Thanks, Steve Connelly

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

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