# Ruby

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

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

---

## [Accessing class constants in included modules](https://www.ruby-forum.com/t/accessing-class-constants-in-included-modules/75203)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 3\
**Last updated:** [November 9, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/accessing-class-constants-in-included-modules/75203 "2006-11-09T20:58:14Z")

</div>

module Foo def display puts self.class::A end end class Bar A = 5 include Foo end class Baz A = 6 include Foo end Bar.new.display Baz.new.display Anything cleaner-looking than self.class::Constant to acces…

---

## [Using qtruby with qtdesigner query](https://www.ruby-forum.com/t/using-qtruby-with-qtdesigner-query/75317)

<div class="topic-metadata">

**Author:** [@Nigel\_W](https://www.ruby-forum.com/u/Nigel_W)\
**Replies:** 2\
**Last updated:** [November 9, 2006, 8:20pm UTC](https://www.ruby-forum.com/t/using-qtruby-with-qtdesigner-query/75317 "2006-11-09T20:20:06Z")

</div>

Hi folks I’ve recently started experimenting with qtruby and have decided to used qtdesigner to do the GUI. Looking in the example “colortool” the file mainform.rb which is generated by rbuic calls a method init() wh…

---

## [Too greedy of a regexp](https://www.ruby-forum.com/t/too-greedy-of-a-regexp/75396)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 3\
**Last updated:** [November 9, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/too-greedy-of-a-regexp/75396 "2006-11-09T20:04:54Z")

</div>

i have a regexp: /(^BillHead(.))(^Bill\_End(.))/m that’s too greedy for processing a billing extract file containing: BillHead…\<\<\>\\n \<\<one or more detail lines here\\n\>\> Bill\_End…\<\<\>\\n BillHead…\<\<\>\\n \<\<one or more d…

---

## [Use new net/smtp in ruby 1.8.5 (SMTPS support)](https://www.ruby-forum.com/t/use-new-net-smtp-in-ruby-1-8-5-smtps-support/75411)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/use-new-net-smtp-in-ruby-1-8-5-smtps-support/75411 "2006-11-09T19:01:50Z")

</div>

I’d like to use the new net/smtp library in ruby 1.8.5 because it supports SMTPS. What should I do in order to install just what is needed and nothing more? Which is the right way (if any) to make the new library coh…

---

## [Select\_list WATIR codes](https://www.ruby-forum.com/t/select-list-watir-codes/75366)

<div class="topic-metadata">

**Author:** [@curious](https://www.ruby-forum.com/u/curious)\
**Replies:** 5\
**Last updated:** [November 9, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/select-list-watir-codes/75366 "2006-11-09T18:51:47Z")

</div>

I have something funny going on with my WATIR. code. in the code below, test.txt file has about 50 lines… for example, line number 1 is ‘test1’, number 2 is ‘test2’, and so on… I am trying to choose this line value in…

---

## [The Ruby Way review on Slashdot](https://www.ruby-forum.com/t/the-ruby-way-review-on-slashdot/75302)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 16\
**Last updated:** [November 9, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/the-ruby-way-review-on-slashdot/75302 "2006-11-09T17:57:27Z")

</div>

Whoo-hoo! My review of Hal F.'s \_The\_Ruby\_Way,Second\_Edition is on Slashdot! Nice respite after a loooong day at work fixing bugs in C programs…

---

## [Bytecode Compiler (#100)](https://www.ruby-forum.com/t/bytecode-compiler-100/75380)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/bytecode-compiler-100/75380 "2006-11-09T16:01:06Z")

</div>

I’m very glad this quiz came along, because I honestly had no idea what “bytecode” meant before I read this quiz. I think it was good for dumbing the idea down for the masses (or just me, if everyone else already kne…

---

## [Quicky](https://www.ruby-forum.com/t/quicky/75334)

<div class="topic-metadata">

**Author:** [@skt](https://www.ruby-forum.com/u/skt)\
**Replies:** 9\
**Last updated:** [November 9, 2006, 3:39pm UTC](https://www.ruby-forum.com/t/quicky/75334 "2006-11-09T15:39:02Z")

</div>

Alright, can somebody point me to a guide that doesn’t leave me all kinds of confused? For instance. def thingHere(self, params) @params = so and so I guess I just don’t “get it” I mean I do, I’m inches away but the…

---

## [REXML ... performance & memory usage](https://www.ruby-forum.com/t/rexml-performance-memory-usage/74882)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 13\
**Last updated:** [November 9, 2006, 3:19pm UTC](https://www.ruby-forum.com/t/rexml-performance-memory-usage/74882 "2006-11-09T15:19:00Z")

</div>

Wow … I am trying to use REXML to parse through an 8.8Mb xml file … it currently eats almost 800Mb of ram before it seems to do anything … Does anybody have any tips on getting REXML to run faster and/or smaller ??? I…

---

## [Autoload problem in 1.8.5](https://www.ruby-forum.com/t/autoload-problem-in-1-8-5/75360)

<div class="topic-metadata">

**Author:** [@hanholl](https://www.ruby-forum.com/u/hanholl)\
**Replies:** 4\
**Last updated:** [November 9, 2006, 3:10pm UTC](https://www.ruby-forum.com/t/autoload-problem-in-1-8-5/75360 "2006-11-09T15:10:59Z")

</div>

Hi, I encountered a problem in 1.8.5, or at least in ruby-1.8.5-4.fc6 from Fedora Core 6. Do this: irb irb(main):001:0\> autoload :Syslog, ‘syslog’ =\> nil irb(main):002:0\> require ‘syslog’ and get a lot of error m…

---

## [Array question](https://www.ruby-forum.com/t/array-question/75371)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 2\
**Last updated:** [November 9, 2006, 2:06pm UTC](https://www.ruby-forum.com/t/array-question/75371 "2006-11-09T14:06:48Z")

</div>

Hello, I have a function like this: def f(\*args) #do something end and I have an array, say a = \[1,2,3\] Now I would like to call f() with the contents of the array i.e. f(1,2,3) in this case (i.e. not f(\[1,2,3\]) …

---

## [Can not download plugins for jEdit (help!)](https://www.ruby-forum.com/t/can-not-download-plugins-for-jedit-help/75335)

<div class="topic-metadata">

**Author:** [@BillJosephson](https://www.ruby-forum.com/u/BillJosephson)\
**Replies:** 2\
**Last updated:** [November 9, 2006, 1:38pm UTC](https://www.ruby-forum.com/t/can-not-download-plugins-for-jedit-help/75335 "2006-11-09T13:38:31Z")

</div>

Hi all. I am trying to use jEdit, but can’t seem to download any plugins. I go to Plugin Manager, and select Download options. I update the mirro and can see lots of servers. I select the first (plugin central default…

---

## [Another quicky, sorry](https://www.ruby-forum.com/t/another-quicky-sorry/75340)

<div class="topic-metadata">

**Author:** [@skt](https://www.ruby-forum.com/u/skt)\
**Replies:** 9\
**Last updated:** [November 9, 2006, 10:38am UTC](https://www.ruby-forum.com/t/another-quicky-sorry/75340 "2006-11-09T10:38:03Z")

</div>

Ok, I’m doing the examples from http://www.math.umd.edu/~dcarrera/ruby/0.3/chp\_04/classes2.html Exactly as it’s written on the page. The first part returns fine, and then I start the second part with the “sandy\_addr …

---

## [Ruby to C?](https://www.ruby-forum.com/t/ruby-to-c/75308)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 4\
**Last updated:** [November 9, 2006, 9:55am UTC](https://www.ruby-forum.com/t/ruby-to-c/75308 "2006-11-09T09:55:57Z")

</div>

Okay, I’m working an a robotics project and instead of using C could I actually write it in ruby then convert it into C code?

---

## [How to include this library into ruby?](https://www.ruby-forum.com/t/how-to-include-this-library-into-ruby/75192)

<div class="topic-metadata">

**Author:** [@trsew](https://www.ruby-forum.com/u/trsew)\
**Replies:** 4\
**Last updated:** [November 9, 2006, 9:51am UTC](https://www.ruby-forum.com/t/how-to-include-this-library-into-ruby/75192 "2006-11-09T09:51:53Z")

</div>

i have download rbCurl-0.0.2a0.tgz(this library is about ftps) from http://www.d1.dion.ne.jp/~matuyuki/ruby.html i extract rbCurl-0.0.2a0.tgz and i got api.def auto\_defs.inc auto\_funcs.inc example.rb extconf.rb g…

---

## [ZenTest 3.4.2 Released](https://www.ruby-forum.com/t/zentest-3-4-2-released/75338)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 8:41am UTC](https://www.ruby-forum.com/t/zentest-3-4-2-released/75338 "2006-11-09T08:41:49Z")

</div>

ZenTest version 3.4.2 has been released! Between this and today’s Hoe release with test\_deps should fix all issues with autotest and rake test disagreeing. http://www.zenspider.com/ZSS/Products/ZenTest/ ZenTest provi…

---

## [Replacing a formula from a string](https://www.ruby-forum.com/t/replacing-a-formula-from-a-string/75253)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 1\
**Last updated:** [November 9, 2006, 8:35am UTC](https://www.ruby-forum.com/t/replacing-a-formula-from-a-string/75253 "2006-11-09T08:35:47Z")

</div>

I have a long formula expressed as a string formula\_1 = “6366.00 \* Math.acos(Math.cos(self.latitude) \* Math.cos(latitude) \* Math.cos(longitude -self.longitude) + (Math.sin(self.latitude) \* Math.sin(LatitudeRad)) )” I…

---

## [Hoe 1.1.3 Released](https://www.ruby-forum.com/t/hoe-1-1-3-released/75337)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 8:07am UTC](https://www.ruby-forum.com/t/hoe-1-1-3-released/75337 "2006-11-09T08:07:41Z")

</div>

hoe version 1.1.3 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

## [MasterView rails-optimized (x)html friendly template engine](https://www.ruby-forum.com/t/masterview-rails-optimized-x-html-friendly-template-engine/75333)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 7:45am UTC](https://www.ruby-forum.com/t/masterview-rails-optimized-x-html-friendly-template-engine/75333 "2006-11-09T07:45:38Z")

</div>

MasterView is a rails-optimized (x)html friendly template engine plugin that provides another option to the existing rails view templates (rhtml and rxml). The main idea is to provide a template engine that would prov…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/75328)

<div class="topic-metadata">

**Author:** [@David\_AielloS\_sympa](https://www.ruby-forum.com/u/David_AielloS_sympa)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 7:19am UTC](https://www.ruby-forum.com/t/no-subject/75328 "2006-11-09T07:19:37Z")

</div>

please remove me. thanks. david

---

## [Unicode in irb on windows (respectively script/console in in](https://www.ruby-forum.com/t/unicode-in-irb-on-windows-respectively-script-console-in-in/75167)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [November 9, 2006, 5:25am UTC](https://www.ruby-forum.com/t/unicode-in-irb-on-windows-respectively-script-console-in-in/75167 "2006-11-09T05:25:32Z")

</div>

Hi everyone! I have a problem with Unicode in irb on Windows. I recognized it when trying to save an attribute of an ActiveRecord-Model with an umlaut (for example “ü”) in script/console. If the database connection is …

---

## [\[ANN\] Ruby-VPI 11.1.0](https://www.ruby-forum.com/t/ann-ruby-vpi-11-1-0/75324)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 4:07am UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-11-1-0/75324 "2006-11-09T04:07:11Z")

</div>

Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Website: http://ruby-vpi.rubyforge.org Install: gem install ruby-vpi Version 11.1.0 (2006-11…

---

## [Ruby noobist, roobist?](https://www.ruby-forum.com/t/ruby-noobist-roobist/74724)

<div class="topic-metadata">

**Author:** [@Skotty](https://www.ruby-forum.com/u/Skotty)\
**Replies:** 3\
**Last updated:** [November 9, 2006, 3:29am UTC](https://www.ruby-forum.com/t/ruby-noobist-roobist/74724 "2006-11-09T03:29:22Z")

</div>

I know guys, I’m sorry. Anyways, I was wondering. I’ve been following a guide on http://clarkware.com/cgi/blosxom/2005/04/index.html and on the first example for the tutorial he posts 2 test to do, at the end of the …

---

## [Ruby Shipping Gem Setup](https://www.ruby-forum.com/t/ruby-shipping-gem-setup/75318)

<div class="topic-metadata">

**Author:** [@tharealpatton](https://www.ruby-forum.com/u/tharealpatton)\
**Replies:** 0\
**Last updated:** [November 9, 2006, 2:43am UTC](https://www.ruby-forum.com/t/ruby-shipping-gem-setup/75318 "2006-11-09T02:43:17Z")

</div>

Hi There, I’m new to the list, and found some posts on this topic, but never any answers to the questions, so I’m gonna try posting again. I’m trying to setup the ruby shipping gem, and can’t figure out how to config…

---

## [1.8 proposal of RUBY\_PATCHLEVEL](https://www.ruby-forum.com/t/1-8-proposal-of-ruby-patchlevel/74886)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 53\
**Last updated:** [November 9, 2006, 1:13am UTC](https://www.ruby-forum.com/t/1-8-proposal-of-ruby-patchlevel/74886 "2006-11-09T01:13:09Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 e$B$"!#$5$5$@$5$s$,%a!\<%k=q$$$?$+$i26$b=q$3$&!#e(B RubyConfe$B$N:G=\*F|$Ke(BYARVe$B$r%^!\<%8$7$m$H$$$$$^$7$?$,26\<+?H$O2?$b:n6H$7$F$Je(B e$B$/$F$4$a$s$J$5$$!“KNIt$G$9!#$3$N%…

---

## [Ruby Cgi Puzzle on Apache](https://www.ruby-forum.com/t/ruby-cgi-puzzle-on-apache/75224)

<div class="topic-metadata">

**Author:** [@shiwei\_zhang](https://www.ruby-forum.com/u/shiwei_zhang)\
**Replies:** 1\
**Last updated:** [November 9, 2006, 12:10am UTC](https://www.ruby-forum.com/t/ruby-cgi-puzzle-on-apache/75224 "2006-11-09T00:10:55Z")

</div>

Hi, All, On my Linux machine, I configured Mod\_fcgid.2.0 in Apache2.2.3. And I also installed ruby-1.8.5. Then I wrote two .rb files in the Apache cgi-bin directory, as follows. //////////////////////cgitest0…

---

## [Ruby, rexml, xml, xslt...?](https://www.ruby-forum.com/t/ruby-rexml-xml-xslt/75174)

<div class="topic-metadata">

**Author:** [@Christo](https://www.ruby-forum.com/u/Christo)\
**Replies:** 3\
**Last updated:** [November 8, 2006, 11:46pm UTC](https://www.ruby-forum.com/t/ruby-rexml-xml-xslt/75174 "2006-11-08T23:46:51Z")

</div>

Hello, Any suggestions as to practical ways ahead for this situation: I have little programming experience 2.a. I have begun teaching and have information that structures itself around the lesson plans for a term (s…

---

## [Win32ole and excel and copy](https://www.ruby-forum.com/t/win32ole-and-excel-and-copy/75254)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [November 8, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/win32ole-and-excel-and-copy/75254 "2006-11-08T23:19:26Z")

</div>

Hi all, I use wind32ole to import data and create graphs into Excel. I find the graphs can’t be copied or resized. Any comments? Thanks, Li

---

## [RubyX11 - how to make it work?](https://www.ruby-forum.com/t/rubyx11-how-to-make-it-work/75282)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 9:26pm UTC](https://www.ruby-forum.com/t/rubyx11-how-to-make-it-work/75282 "2006-11-08T21:26:29Z")

</div>

Hello I tried RubyX11. As seen in some sort of example code I tried to create an instance of Display first. However, I get a message about invalid cookie. 0.5 and 0.6pre1 give the same result. $ irb -I. -r X11/Displ…

---

## [Parse date fields from mysql database](https://www.ruby-forum.com/t/parse-date-fields-from-mysql-database/75259)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 4\
**Last updated:** [November 8, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/parse-date-fields-from-mysql-database/75259 "2006-11-08T21:04:26Z")

</div>

I would like to be able to parse date fields from a MySQL database in order to get the day, year, hour etc. separately. Which library could do that for me? I can’t think that I would have to parse those dates myself,…

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

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