# Ruby

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

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

---

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

<div class="topic-metadata">

**Author:** [@Chi-Hua\_Li](https://www.ruby-forum.com/u/Chi-Hua_Li)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 6:08am UTC](https://www.ruby-forum.com/t/unsubscribe/130433 "2008-02-28T06:08:15Z")

</div>

unsubscribe

---

## [Client Error while acessing MySQL 5.0](https://www.ruby-forum.com/t/client-error-while-acessing-mysql-5-0/130353)

<div class="topic-metadata">

**Author:** [@adad](https://www.ruby-forum.com/u/adad)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 5:46am UTC](https://www.ruby-forum.com/t/client-error-while-acessing-mysql-5-0/130353 "2008-02-28T05:46:00Z")

</div>

Hi, I am trying to access MySQL 5.0 using the mysql.rb got from: http://raa.ruby-lang.org/project/ruby-mysql/ Apparently, this client is pre 4.1 and can’t be used to access MySQl 5.0. I get this error while trying t…

---

## [Bones 1.3.5 (Skeletor)](https://www.ruby-forum.com/t/bones-1-3-5-skeletor/130429)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 5:43am UTC](https://www.ruby-forum.com/t/bones-1-3-5-skeletor/130429 "2008-02-28T05:43:04Z")

</div>

Mr Bones version 1.3.5 by Tim P. http://codeforpeople.rubyforge.org/bones (the “Skeletor” release) == DESCRIPTION Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton contains s…

---

## [Scheduling a function call in ror automatically](https://www.ruby-forum.com/t/scheduling-a-function-call-in-ror-automatically/130332)

<div class="topic-metadata">

**Author:** [@seena](https://www.ruby-forum.com/u/seena)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 3:38am UTC](https://www.ruby-forum.com/t/scheduling-a-function-call-in-ror-automatically/130332 "2008-02-28T03:38:17Z")

</div>

For automatically scheduling a function call at a specified time i used a plugin BackgrounDRb but it is not creating connection for MiddleMan.new\_worker (gives an error : Not able to connect) Please give me any idea …

---

## [Preferred way to mark a method as deprecated](https://www.ruby-forum.com/t/preferred-way-to-mark-a-method-as-deprecated/130418)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 1:55am UTC](https://www.ruby-forum.com/t/preferred-way-to-mark-a-method-as-deprecated/130418 "2008-02-28T01:55:47Z")

</div>

Does Ruby have built in functionality or a convention for marking a method as deprecated? Something like ActiveSupport’s deprecate method is what I have in mind, but more general. http://ryandaigle.com/articles/2006/…

---

## [Delegate to allow subclassing Integer, Float](https://www.ruby-forum.com/t/delegate-to-allow-subclassing-integer-float/130297)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 4\
**Last updated:** [February 28, 2008, 12:16am UTC](https://www.ruby-forum.com/t/delegate-to-allow-subclassing-integer-float/130297 "2008-02-28T00:16:02Z")

</div>

I have the following code using facets/basicobject with 1.8, and want to know what the equivalent would be for 1.9: class Real \< BasicObject def initialize® @\_\_value = r.to\_f end define\_method(:class) { self.class …

---

## [Checking for blank line](https://www.ruby-forum.com/t/checking-for-blank-line/130391)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 8\
**Last updated:** [February 27, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/checking-for-blank-line/130391 "2008-02-27T23:30:10Z")

</div>

Hello, I know this is an elementary problem, but I have been fooling around with RoR for a little while and am now in need of doing some ruby scripting. I am reading a text file line by line and I want to check if th…

---

## [Anyone have a good dark-background-based ruby/rails colourscheme for kate?](https://www.ruby-forum.com/t/anyone-have-a-good-dark-background-based-ruby-rails-colourscheme-for-kate/130396)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/anyone-have-a-good-dark-background-based-ruby-rails-colourscheme-for-kate/130396 "2008-02-27T22:58:53Z")

</div>

Does anyone have a good dark-background-based ruby/rhtml colourscheme for kate? The default white-background-based one is a strain on the eyes after a while. martin

---

## [Ruby screenshot?](https://www.ruby-forum.com/t/ruby-screenshot/130360)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/ruby-screenshot/130360 "2008-02-27T22:57:03Z")

</div>

Is there any way I an take a screenshot and paste it to Word through Ruby. Here is hwat I have got. require ‘win32ole’ word = WIN32OLE.new(‘Word.Application’) #word.Visible = true document = word.Documents.Open(‘c:\\…

---

## [Graphs using ruport](https://www.ruby-forum.com/t/graphs-using-ruport/130324)

<div class="topic-metadata">

**Author:** [@seena](https://www.ruby-forum.com/u/seena)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/graphs-using-ruport/130324 "2008-02-27T22:31:41Z")

</div>

plz help!!! i am trying to create graphs using the ruport gem. even though it creates the graph “sales.png”. but it does not show it on the browser in the application. when i try to call it on the browser window it g…

---

## [SQL server](https://www.ruby-forum.com/t/sql-server/130100)

<div class="topic-metadata">

**Author:** [@LegioFox](https://www.ruby-forum.com/u/LegioFox)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/sql-server/130100 "2008-02-27T21:20:50Z")

</div>

Hello all : How connect from ruby to Microsoft SQL Server Express edition? Thanks

---

## [Aliasing, and another regex question](https://www.ruby-forum.com/t/aliasing-and-another-regex-question/130370)

<div class="topic-metadata">

**Author:** [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/aliasing-and-another-regex-question/130370 "2008-02-27T20:21:46Z")

</div>

Is there a preferred way to alias inconveniently long things like Oniguruma::ORegexp? Is it possible to have one regex that matches all lines that have word “foo”, but only if word “bar” doesn’t appear anywhere on the…

---

## [ASCII text highlighting](https://www.ruby-forum.com/t/ascii-text-highlighting/130358)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/ascii-text-highlighting/130358 "2008-02-27T19:07:36Z")

</div>

Hi Team, Is there way to highlight plain (ASCII) text? I mean something like: v = “This text should be displayed as bold” I need to create an ASCII report, where I imbed tabs (\\t) and later import into an excel spr…

---

## [Question about how ruby sources is parsed](https://www.ruby-forum.com/t/question-about-how-ruby-sources-is-parsed/130357)

<div class="topic-metadata">

**Author:** [@ThoML](https://www.ruby-forum.com/u/ThoML)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/question-about-how-ruby-sources-is-parsed/130357 "2008-02-27T17:02:57Z")

</div>

Hi, I recently came came up with this piece of (monkey-inspired) code: class String0 \< String def foo 123 end end Object.send :remove\_const, :String String = String0 This makes the following two state…

---

## [Couple of Questions](https://www.ruby-forum.com/t/couple-of-questions/129967)

<div class="topic-metadata">

**Author:** [@josetomas\_r](https://www.ruby-forum.com/u/josetomas_r)\
**Replies:** 18\
**Last updated:** [February 27, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/couple-of-questions/129967 "2008-02-27T16:55:54Z")

</div>

Hi everyone, I was watching yesterday’s John L.'s Lang.NET presentation on IronRuby (Great presentation, btw, really enjoyed it), and it was pretty informative (to me, at least). Besides that, I’ve been looking at th…

---

## [Dialog button doesn't work](https://www.ruby-forum.com/t/dialog-button-doesnt-work/130356)

<div class="topic-metadata">

**Author:** [@mirth](https://www.ruby-forum.com/u/mirth)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/dialog-button-doesnt-work/130356 "2008-02-27T16:11:03Z")

</div>

Hi guys, I’m using watir to do some tests. During the test, an alert window will pop up. When it pops up, I will click the “OK” button on the dialog so that the test will continue. So I have below code to check the d…

---

## [:true not workin!](https://www.ruby-forum.com/t/true-not-workin/130351)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/true-not-workin/130351 "2008-02-27T15:50:45Z")

</div>

before reinstallin ubuntu… while checking condition for enum column i used :ture if it was (‘true’, ‘false’) but as my system got formated…i installed ruby 1.8.6 and rails 1.1.6 newly but now where all i user :true …

---

## [Instance variable into call linux command](https://www.ruby-forum.com/t/instance-variable-into-call-linux-command/130345)

<div class="topic-metadata">

**Author:** [@gugui](https://www.ruby-forum.com/u/gugui)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/instance-variable-into-call-linux-command/130345 "2008-02-27T15:17:32Z")

</div>

Hi all, I need to call a Linux command from ruby app to print a text file ! so iÂ´d like to put a instance variable (@printer\_name) into the command ! for example: def imprimir lpr -P@printer\_name /tmp/impressao…

---

## [Read a windows system tray balloon in Ruby?](https://www.ruby-forum.com/t/read-a-windows-system-tray-balloon-in-ruby/130235)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/read-a-windows-system-tray-balloon-in-ruby/130235 "2008-02-27T13:13:15Z")

</div>

Hi, Is there anyway we can read a windows system tray balloon in Ruby? Cheers Aidy

---

## [Memory Allocation in Ruby](https://www.ruby-forum.com/t/memory-allocation-in-ruby/130319)

<div class="topic-metadata">

**Author:** [@vikrant](https://www.ruby-forum.com/u/vikrant)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/memory-allocation-in-ruby/130319 "2008-02-27T13:06:43Z")

</div>

Hello All, This is the first time I am working on Ruby and I am not sure if I am asking very basics of the language. I am working on a tool which is written in Ruby and I need to implement a new feature in it. Althou…

---

## [How to parse attributes in ruby?](https://www.ruby-forum.com/t/how-to-parse-attributes-in-ruby/130318)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 10:28am UTC](https://www.ruby-forum.com/t/how-to-parse-attributes-in-ruby/130318 "2008-02-27T10:28:44Z")

</div>

Dear friends, I’am in process of creating a new parser class. My parser was showing parsing errors in case of input like, \<product prod\_name="jean" size=" 24" boot-cut" price="$99"\> i have got parsing error in attrib…

---

## [Reduce three line method to one line](https://www.ruby-forum.com/t/reduce-three-line-method-to-one-line/129878)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 10:15am UTC](https://www.ruby-forum.com/t/reduce-three-line-method-to-one-line/129878 "2008-02-27T10:15:08Z")

</div>

Hi, I am trying to get the following method down to 1 line so that I can lazy-load it. def get\_category\_data(category\_id) rows = \[\] FasterCSV.parse(@data) { |row| rows \<\< row if row\[0\] == category\_id } rows end I…

---

## [Open classes and language extensibility](https://www.ruby-forum.com/t/open-classes-and-language-extensibility/130304)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 9:35am UTC](https://www.ruby-forum.com/t/open-classes-and-language-extensibility/130304 "2008-02-27T09:35:59Z")

</div>

I was pondering the whole “monkeypatching” debate, and I realised that disallowing modification of core classes removes an extremely important property of the language - the ability to have extension code you write be…

---

## [Mechanize Timeout Exception - How To?](https://www.ruby-forum.com/t/mechanize-timeout-exception-how-to/130098)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 9:22am UTC](https://www.ruby-forum.com/t/mechanize-timeout-exception-how-to/130098 "2008-02-27T09:22:11Z")

</div>

Hi all, I am very new at scraping and using mechanize. Its all a smooth run until I faced this problem of handling Timeout while fetching a web page. The Timeout::timeout() is unable to rescue this kind of error…

---

## [Windows System Administration: State of the Art](https://www.ruby-forum.com/t/windows-system-administration-state-of-the-art/130252)

<div class="topic-metadata">

**Author:** [@Krishna\_Kirti\_Das](https://www.ruby-forum.com/u/Krishna_Kirti_Das)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 9:05am UTC](https://www.ruby-forum.com/t/windows-system-administration-state-of-the-art/130252 "2008-02-27T09:05:34Z")

</div>

I am a long-time user of Perl user who is evaluating different scripting languages for use as a scripting platform for system administrators on the Windows platform. Perl already has many modules that allow sys admins…

---

## [Read remote file](https://www.ruby-forum.com/t/read-remote-file/130218)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 8:30am UTC](https://www.ruby-forum.com/t/read-remote-file/130218 "2008-02-27T08:30:31Z")

</div>

How can i read the file sample.txt in c:\\ from the network machine PC1 The script is running on the PC2 machine. I can log on the machine PC1 with user1 and pass1. Can i do it?

---

## [Does Calibre (California Library for Ruby Enthusiasts) still exist?](https://www.ruby-forum.com/t/does-calibre-california-library-for-ruby-enthusiasts-still-exist/130081)

<div class="topic-metadata">

**Author:** [@Joe\_K](https://www.ruby-forum.com/u/Joe_K)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 8:07am UTC](https://www.ruby-forum.com/t/does-calibre-california-library-for-ruby-enthusiasts-still-exist/130081 "2008-02-27T08:07:01Z")

</div>

There appears to be an extensive library of interesting ruby functions which show up on ruby gems but I can’t download the gem, nor can I find anything on the web. It seems odd that they’d completely pull the project…

---

## [IronRuby Support with VWD 2008 ---- Cheers](https://www.ruby-forum.com/t/ironruby-support-with-vwd-2008-cheers/130305)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 7:21am UTC](https://www.ruby-forum.com/t/ironruby-support-with-vwd-2008-cheers/130305 "2008-02-27T07:21:51Z")

</div>

Hi, I’m quoting the latest blog by ScottGu for Silverlight 2.0 Developers can write Silverlight applications using any .NET language (including VB, C#, JavaScript, IronPython and IronRuby). We will ship Visual Studio…

---

## [Web archive for ruby newsgroup](https://www.ruby-forum.com/t/web-archive-for-ruby-newsgroup/186754)

<div class="topic-metadata">

**Author:** [@Ward\_B](https://www.ruby-forum.com/u/Ward_B)\
**Replies:** 8\
**Last updated:** [February 27, 2008, 6:13am UTC](https://www.ruby-forum.com/t/web-archive-for-ruby-newsgroup/186754 "2008-02-27T06:13:49Z")

</div>

Just live: Ruby Newsgroup Archive : A simple & searchable web-archive for comp.lang.ruby. (build with Ruby on Rails). Find only anwers because we do not show messages without a reply. :wink: ruby.equanimity.nl Regar…

---

## [Creating tables with "variable" field names](https://www.ruby-forum.com/t/creating-tables-with-variable-field-names/130300)

<div class="topic-metadata">

**Author:** [@kretch](https://www.ruby-forum.com/u/kretch)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 5:59am UTC](https://www.ruby-forum.com/t/creating-tables-with-variable-field-names/130300 "2008-02-27T05:59:11Z")

</div>

Hi All I’m slowly ramping up on Ruby (Ex-PERL’y), and have the following question: \*) I’d like to create a table , but with column names which are not fixed. So instead of doing def self.up create\_table mytable…

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

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