# Ruby

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

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

---

## [openCV and ruby](https://www.ruby-forum.com/t/opencv-and-ruby/186310)

<div class="topic-metadata">

**Author:** [@sepehr](https://www.ruby-forum.com/u/sepehr)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 10:21am UTC](https://www.ruby-forum.com/t/opencv-and-ruby/186310 "2010-04-16T10:21:47Z")

</div>

I’ve installed OpenCV image processing library and when I try to install opencv gem(using gem install opencv) for ruby I get the following error when building the library iplimage.cpp: In function â€˜VALUE mOpenCV::cI…

---

## [Ruby-warrior : Teaching AI concepts with Ruby](https://www.ruby-forum.com/t/ruby-warrior-teaching-ai-concepts-with-ruby/186613)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 23\
**Last updated:** [April 16, 2010, 9:45am UTC](https://www.ruby-forum.com/t/ruby-warrior-teaching-ai-concepts-with-ruby/186613 "2010-04-16T09:45:28Z")

</div>

I think this project doesn’t get enough attention :slight\_smile: I’ve tried it and it’s really cool and entertaining. The code is also pretty cool to look at, and it’s got tests and everything. What is your opinion o…

---

## [Stored Procedure problem](https://www.ruby-forum.com/t/stored-procedure-problem/143982)

<div class="topic-metadata">

**Author:** [@jqm](https://www.ruby-forum.com/u/jqm)\
**Replies:** 7\
**Last updated:** [April 16, 2010, 9:08am UTC](https://www.ruby-forum.com/t/stored-procedure-problem/143982 "2010-04-16T09:08:00Z")

</div>

Hello Lords of jRuby, I want to submit something nice : I’m currently trying to use MS SQL Server 2005 and rails 2.1 to play together nicely (using jRuby 1.1.3 and the lastest sqljdbc.jar). So far I’ve been quite co…

---

## [Java class comparison asymmetry, lost to\_java\_object in 1.5](https://www.ruby-forum.com/t/java-class-comparison-asymmetry-lost-to-java-object-in-1-5/187039)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 8:52am UTC](https://www.ruby-forum.com/t/java-class-comparison-asymmetry-lost-to-java-object-in-1-5/187039 "2010-04-16T08:52:47Z")

</div>

http://jira.codehaus.org/ is returning a 404 for me, so sending this here first. Also please advise, is this best as one or two bugs? Thanks for JRuby 1.5.0.RC1. It gave me pause to figure out: An apparent long stan…

---

## [\[RubySpec #3154\] Hidden allocate, new and superclass methods on 1.9.2](https://www.ruby-forum.com/t/rubyspec-3154-hidden-allocate-new-and-superclass-methods-on-1-9-2/187032)

<div class="topic-metadata">

**Author:** [@ujihisa\_S](https://www.ruby-forum.com/u/ujihisa_S)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 5:49am UTC](https://www.ruby-forum.com/t/rubyspec-3154-hidden-allocate-new-and-superclass-methods-on-1-9-2/187032 "2010-04-16T05:49:32Z")

</div>

RubySpec #3154: Hidden allocate, new and superclass methods on 1.9.2 http://redmine.ruby-lang.org/issues/show/3154 e$B5/I\<\<Te(B: ujihisa . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target ver…

---

## [How to use csv to open file in gbk code](https://www.ruby-forum.com/t/how-to-use-csv-to-open-file-in-gbk-code/187043)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 5:20am UTC](https://www.ruby-forum.com/t/how-to-use-csv-to-open-file-in-gbk-code/187043 "2010-04-16T05:20:42Z")

</div>

there is an file(/home/pt/test/shbase.csv) in gbk not utf-8,the following is my progrmm: require ‘csv’ CSV.open(’/home/pt/test/shbase.csv’, ‘r’) do |row| while line=row.gets puts line end end wrong message: /usr…

---

## [Are you using IronRuby? Are you using it inside VS?](https://www.ruby-forum.com/t/are-you-using-ironruby-are-you-using-it-inside-vs/187041)

<div class="topic-metadata">

**Author:** [@Thomas\_Gagne](https://www.ruby-forum.com/u/Thomas_Gagne)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 4:12am UTC](https://www.ruby-forum.com/t/are-you-using-ironruby-are-you-using-it-inside-vs/187041 "2010-04-16T04:12:20Z")

</div>

If you’re using IronRuby and using something so it’ll work inside VS, I’m curious to hear what it is.

---

## [\[ANN\] ri\_cal 0.8.6 has been released](https://www.ruby-forum.com/t/ann-ri-cal-0-8-6-has-been-released/187040)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 3:38am UTC](https://www.ruby-forum.com/t/ann-ri-cal-0-8-6-has-been-released/187040 "2010-04-16T03:38:59Z")

</div>

ri\_cal version 0.8.6 has been released! A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating icalendar files, but do not supp…

---

## [JRuby 1.5.0RC1 Released](https://www.ruby-forum.com/t/jruby-1-5-0rc1-released/187025)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 10:59pm UTC](https://www.ruby-forum.com/t/jruby-1-5-0rc1-released/187025 "2010-04-15T22:59:06Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.5.0.RC1 Homepage: http://www.jruby.org/ Download: Downloads — JRuby.org This development cycle has been our longest cycle yet (nearly 5 months), bu…

---

## [Automatic indentation](https://www.ruby-forum.com/t/automatic-indentation/186987)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 3\
**Last updated:** [April 15, 2010, 10:27pm UTC](https://www.ruby-forum.com/t/automatic-indentation/186987 "2010-04-15T22:27:45Z")

</div>

Hi all, Most IDE integrate automatic indentation for ruby. I googled for an autonomous indentation program (for ruby) in ruby, and did not find any ? Does somebody know of one ? Thks, \_md

---

## [Reading Ruby-Talk in Atom or RSS](https://www.ruby-forum.com/t/reading-ruby-talk-in-atom-or-rss/187016)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 9\
**Last updated:** [April 15, 2010, 9:58pm UTC](https://www.ruby-forum.com/t/reading-ruby-talk-in-atom-or-rss/187016 "2010-04-15T21:58:12Z")

</div>

The recent “moderation” thread raised several questions in my mind. I’m interested in what others are doing about this: Is there a decent threaded RSS or Atom reader on OSX? One not inside an email client? Is there a…

---

## [SNMP trap forwarding](https://www.ruby-forum.com/t/snmp-trap-forwarding/187018)

<div class="topic-metadata">

**Author:** [@zampar](https://www.ruby-forum.com/u/zampar)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 9:24pm UTC](https://www.ruby-forum.com/t/snmp-trap-forwarding/187018 "2010-04-15T21:24:13Z")

</div>

Hi, I want to listen the trap and send this trap to another plataform. At first time and search in web I try this: require ‘snmp’ m = SNMP::TrapListener.new(:Host =\> ‘10.10.5.114’,:Port =\> 162, :Community =\> ‘public’…

---

## [Novice school teacher seeking help in programming](https://www.ruby-forum.com/t/novice-school-teacher-seeking-help-in-programming/186354)

<div class="topic-metadata">

**Author:** [@h77bailey](https://www.ruby-forum.com/u/h77bailey)\
**Replies:** 19\
**Last updated:** [April 15, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/novice-school-teacher-seeking-help-in-programming/186354 "2010-04-15T20:00:31Z")

</div>

I will like to know how to use programming languages to create a computer software. I was advised to start with Ruby. Half-way through ‘Beginning Ruby From Novice to Professional’, it refers to C and/or C++ as fundame…

---

## [Own exception classes](https://www.ruby-forum.com/t/own-exception-classes/187012)

<div class="topic-metadata">

**Author:** [@lykos](https://www.ruby-forum.com/u/lykos)\
**Replies:** 6\
**Last updated:** [April 15, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/own-exception-classes/187012 "2010-04-15T19:57:00Z")

</div>

Hi, I’m working at a bigger private project with my brother now and I wanted to ask, in which cases you recommend own exception classes. One possibility would just be to use no own exceptions and just use raise “mess…

---

## [\[BUG: trunk\]arm-linux$B8~$1%/%m%9%3%s%Q%$%k;~$N%(%i!\<(B](https://www.ruby-forum.com/t/bug-trunk-arm-linux-b8-1-m-9-3-s-q-k-n-i-b/186858)

<div class="topic-metadata">

**Author:** [@Satoshi\_Shiba](https://www.ruby-forum.com/u/Satoshi_Shiba)\
**Replies:** 3\
**Last updated:** [April 15, 2010, 7:51pm UTC](https://www.ruby-forum.com/t/bug-trunk-arm-linux-b8-1-m-9-3-s-q-k-n-i-b/186858 "2010-04-15T19:51:08Z")

</div>

e$B\<G$H?=$7$^$9!%e(B i686-linuxe$B$+$ie(Barm-linuxe$B8~$1$K%/%m%9%3%s%Q%$%k$r$7$h$&$H$7$?$H$3$m!$e(B gc.he$B!$e(Bgc.ce$B!$e(Bthread\_pthread.ce$B$Ne(B3e$B$D$N%U%!%$%k$G%3%s%Q%$%k%(%i!\<$r3NG’$7$^e(B e$B$7$?!%e(B e$B%-%…

---

## [Deep Clone of array?](https://www.ruby-forum.com/t/deep-clone-of-array/111626)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 6\
**Last updated:** [April 15, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/deep-clone-of-array/111626 "2010-04-15T18:36:07Z")

</div>

Is there a standard way of doing a deep copy of an object (in particular, of an array)? class Object - RDoc Documentation mentions a function ‘dclone’, but this doesn’t seem to exist: undefined method \`dclone'

---

## [QTKit glitchy on Snow Leopard Server - Help!](https://www.ruby-forum.com/t/qtkit-glitchy-on-snow-leopard-server-help/186883)

<div class="topic-metadata">

**Author:** [@spencer](https://www.ruby-forum.com/u/spencer)\
**Replies:** 5\
**Last updated:** [April 15, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/qtkit-glitchy-on-snow-leopard-server-help/186883 "2010-04-15T17:33:36Z")

</div>

I have written a script to pull a frame image from a QuickTime Movie. It works great on Snow Leopard, Leopard, and Leopard Server but I get weird results on Snow Leopard Server. When pulling on the 3 working OSs I get…

---

## [PDF::Writer officially retired in favor of Prawn](https://www.ruby-forum.com/t/pdf-writer-officially-retired-in-favor-of-prawn/187009)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/pdf-writer-officially-retired-in-favor-of-prawn/187009 "2010-04-15T17:24:11Z")

</div>

I have an announcement to make: PDF::Writer is officially no longer supported or recommended in any way, please use Prawn instead: Prawn, (the spiritual successor to PDF::Writer) is in the final planning stages fo…

---

## [JRuby and Rake](https://www.ruby-forum.com/t/jruby-and-rake/187010)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/jruby-and-rake/187010 "2010-04-15T17:07:12Z")

</div>

Hi, I am using JRuby and Cucumber v 0.6.4. This command successfully runs my test C:\\svnProjects\\hydra\>jruby -S cucumber features\\phase\_one\_workflow.feature However, when I run through rake #rakefile require ‘cucu…

---

## [My vim and cream can't work!](https://www.ruby-forum.com/t/my-vim-and-cream-cant-work/187004)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 6\
**Last updated:** [April 15, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/my-vim-and-cream-cant-work/187004 "2010-04-15T16:22:07Z")

</div>

i have installed vim and cream,Make install ruby myself. now ,in my console: pt@pt-laptop:~$ vim vim: error while loading shared libraries: libruby1.8.so.1.8: cannot open shared object file: No such file or directory …

---

## [Transfer GBK into UTF-8 in csv file](https://www.ruby-forum.com/t/transfer-gbk-into-utf-8-in-csv-file/187006)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/transfer-gbk-into-utf-8-in-csv-file/187006 "2010-04-15T15:49:18Z")

</div>

here is my programm programm1: require ‘csv’ require ‘iconv’ CSV.open(’/home/pt/test/shbaseback.csv’, ‘w’) do |wrow| CSV.open(’/home/pt/test/shbase.csv’, ‘r’) do |row| wrow \<\< Iconv.iconv(‘UTF-8’,‘GBK’,row) end e…

---

## [OT(?): Adapting rdoc to produce documentation for something other than ruby or c--advisable?](https://www.ruby-forum.com/t/ot-adapting-rdoc-to-produce-documentation-for-something-other-than-ruby-or-c-advisable/186947)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 15, 2010, 3:00pm UTC](https://www.ruby-forum.com/t/ot-adapting-rdoc-to-produce-documentation-for-something-other-than-ruby-or-c-advisable/186947 "2010-04-15T15:00:43Z")

</div>

Hey All, In my day job I’m a sas (www.sas.com) programmer. I’ve got a plain text file of sas macros (roughly equivalent to ruby’s methods) for which I would love to have rdoc-style documentation. Specifically, I’d …

---

## [Safer monkey-patching?](https://www.ruby-forum.com/t/safer-monkey-patching/186974)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 1\
**Last updated:** [April 15, 2010, 1:29pm UTC](https://www.ruby-forum.com/t/safer-monkey-patching/186974 "2010-04-15T13:29:56Z")

</div>

Sometimes (or often, depending on your use) it is useful to add or override methods to an already existing class, aka monkey-patching. Would it be useful to subclass an existing object, while still using the same cl…

---

## [Early-bird rate for Compleat Rubyist training, Chicago, June 18-19](https://www.ruby-forum.com/t/early-bird-rate-for-compleat-rubyist-training-chicago-june-18-19/186994)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 12:40pm UTC](https://www.ruby-forum.com/t/early-bird-rate-for-compleat-rubyist-training-chicago-june-18-19/186994 "2010-04-15T12:40:46Z")

</div>

Hi all – The early-bird rate is in effect all this month for The Compleat Rubyist, being held in the Chicago area in June. You can also save if you sign up as a group of five or more – which can be from one company, …

---

## [Excetion in Tomcat](https://www.ruby-forum.com/t/excetion-in-tomcat/186561)

<div class="topic-metadata">

**Author:** [@khanmurtuza](https://www.ruby-forum.com/u/khanmurtuza)\
**Replies:** 6\
**Last updated:** [April 15, 2010, 11:46am UTC](https://www.ruby-forum.com/t/excetion-in-tomcat/186561 "2010-04-15T11:46:54Z")

</div>

I am trying to run Redmine in Tomcat 6, after I deployed the war file I am getting below error. org.jruby.rack.RackInitializationException: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Lja…

---

## [Memory leak](https://www.ruby-forum.com/t/memory-leak/177553)

<div class="topic-metadata">

**Author:** [@rdennett](https://www.ruby-forum.com/u/rdennett)\
**Replies:** 26\
**Last updated:** [April 15, 2010, 10:28am UTC](https://www.ruby-forum.com/t/memory-leak/177553 "2010-04-15T10:28:50Z")

</div>

Hi all, I’m writing web crawler with threads support. And after working with some amount of link memory usage increase more and more. When program just started in use 20mb of mem. After crawling of 150-200 link, memor…

---

## [Extend Class to include attr?](https://www.ruby-forum.com/t/extend-class-to-include-attr/186975)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 15, 2010, 8:01am UTC](https://www.ruby-forum.com/t/extend-class-to-include-attr/186975 "2010-04-15T08:01:33Z")

</div>

Can I extend a class to add an attr\_accessor? So that getter & setter are created? MarkT

---

## [\[Backport #3149\] Mac OS X $B$N(B ruby 1.9.1p378 $B$G:F(B open $B8e(B delete $B$7$?(B Tempfi](https://www.ruby-forum.com/t/backport-3149-mac-os-x-b-n-b-ruby-1-9-1p378-b-g-f-b-open-b8e-b-delete-b-7-b-tempfi/186979)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 6:56am UTC](https://www.ruby-forum.com/t/backport-3149-mac-os-x-b-n-b-ruby-1-9-1p378-b-g-f-b-open-b8e-b-delete-b-7-b-tempfi/186979 "2010-04-15T06:56:00Z")

</div>

Backport #3149: Mac OS X e$B$Ne(B ruby 1.9.1p378 e$B$G:Fe(B open e$B8ee(B delete e$B$7$?e(B Tempfile e$B$,e(B closed stream e$B$K$J$ke(B http://redmine.ruby-lang.org/issues/show/3149 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA …

---

## [MacRuby help...?](https://www.ruby-forum.com/t/macruby-help/186976)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 5:45am UTC](https://www.ruby-forum.com/t/macruby-help/186976 "2010-04-15T05:45:50Z")

</div>

I am confused - everything I have read tells me 0.5 should run sinatra, etc fine but… can someone please share the magic recipe to get something like… macgem install sinatra to maybe somehow actually work. RB

---

## [Is there a way to make class and object constants in Ruby?](https://www.ruby-forum.com/t/is-there-a-way-to-make-class-and-object-constants-in-ruby/186969)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 5\
**Last updated:** [April 15, 2010, 5:27am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-make-class-and-object-constants-in-ruby/186969 "2010-04-15T05:27:36Z")

</div>

I am reading up in other areas, and it occurs to me much of the items I have as class and object variables really should be constants, but ideally still in the class or object context. Is there a way to do this? xc …

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

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