# Ruby

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

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

---

## [How to jump forward in BiteScript](https://www.ruby-forum.com/t/how-to-jump-forward-in-bitescript/186415)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 1:37am UTC](https://www.ruby-forum.com/t/how-to-jump-forward-in-bitescript/186415 "2010-04-07T01:37:54Z")

</div>

I was wondering how I can port the following code to BiteScript since the label statement has to appear before I can use it in BiteScript: 28: if\_icmpge 44 31: getstatic #8; //Field java/lang/System.out:Ljava/io/…

---

## [Splib 1.4.3 released](https://www.ruby-forum.com/t/splib-1-4-3-released/186421)

<div class="topic-metadata">

**Author:** [@spox](https://www.ruby-forum.com/u/spox)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 12:46am UTC](https://www.ruby-forum.com/t/splib-1-4-3-released/186421 "2010-04-07T00:46:54Z")

</div>

Splib is a library of helper methods and classes. Nothing fancy or flashy, just some simple helpers that are tested and known to work on Ruby \>= 1.8.6 as well as JRuby 1.4.0 Quick overview in the README: GitHub - sp…

---

## [Custom Exceptions](https://www.ruby-forum.com/t/custom-exceptions/186405)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 7\
**Last updated:** [April 6, 2010, 11:58pm UTC](https://www.ruby-forum.com/t/custom-exceptions/186405 "2010-04-06T23:58:54Z")

</div>

Hi everyone I want to make a custom exception like so: class BillRowError \< StandardError def initialize(field, index) @field = field @index = index end end I’ll call this like so: raise(BillRowError.new(:roamin…

---

## [Kramdown 0.6.0 released](https://www.ruby-forum.com/t/kramdown-0-6-0-released/186394)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 10:36pm UTC](https://www.ruby-forum.com/t/kramdown-0-6-0-released/186394 "2010-04-06T22:36:22Z")

</div>

About kramdown kramdown (sic, not Kramdown or KramDown, just kramdown) is a free GPL-licensed Ruby library for parsing a superset of Markdown. It is completely written in Ruby, supports standard Markdown (with some m…

---

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

<div class="topic-metadata">

**Author:** [@jcubed](https://www.ruby-forum.com/u/jcubed)\
**Replies:** 7\
**Last updated:** [April 6, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/tk-delay/186289 "2010-04-06T21:49:46Z")

</div>

I am somewhat new to Ruby and Tk, I have made a couple of simple programs, but now I’m working on a Music Automation Program… like for a Radio Station… something that will play song after song, infinitely. Right now I…

---

## [SQLite3 Exception](https://www.ruby-forum.com/t/sqlite3-exception/185649)

<div class="topic-metadata">

**Author:** [@Miles\_S](https://www.ruby-forum.com/u/Miles_S)\
**Replies:** 3\
**Last updated:** [April 6, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/sqlite3-exception/185649 "2010-04-06T19:16:44Z")

</div>

I have a simple IRC Bot that’s running with ActiveRecord and a small SQLite3 DB. When I run as root, the db can be accessed fine, however, when I run it as a normal user, I get a SQLite3::SQLException: unable to open …

---

## [\[ANN\] Warbler 1.0](https://www.ruby-forum.com/t/ann-warbler-1-0/186413)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [April 6, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/ann-warbler-1-0/186413 "2010-04-06T19:15:34Z")

</div>

Hi all, Warbler 1.0 is out now (as well as a quick 1.0.1 bugfix release). You can see the details of the release here: http://bit.ly/warbler-1-0 Feel free to respond on this thread with any issues you find. /Nick =…

---

## [/usr/bin/ld: cannot find -lruby](https://www.ruby-forum.com/t/usr-bin-ld-cannot-find-lruby/186350)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 6\
**Last updated:** [April 6, 2010, 7:10pm UTC](https://www.ruby-forum.com/t/usr-bin-ld-cannot-find-lruby/186350 "2010-04-06T19:10:42Z")

</div>

Hello I got the following error when I tried to install ruby-opengl gem. I attached the entire command line output. The error seems to be “/usr/bin/ld: cannot find -lruby”. I have a locally compiled ruby 1.9.1p2…

---

## [Public/private/protected instead of def](https://www.ruby-forum.com/t/public-private-protected-instead-of-def/186407)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/public-private-protected-instead-of-def/186407 "2010-04-06T18:21:42Z")

</div>

First of all, I am curious. Is there any way to do the following but still retain backward compatibility? class Module # unfortunately super doesn’t work alias :publicize :public alias :privatize :private alias :pr…

---

## [Has someone tried to use Shoulda with IronRuby?](https://www.ruby-forum.com/t/has-someone-tried-to-use-shoulda-with-ironruby/186337)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 9\
**Last updated:** [April 6, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/has-someone-tried-to-use-shoulda-with-ironruby/186337 "2010-04-06T18:16:26Z")

</div>

Hi there, I’m trying to use Shoulda to test code (not in a Rails project) and I can’t get it to work. It seems like it doesn’t convert the should statements to test methods at all. Has anyone run into this before? …

---

## [\[Feature #3018\](Closed) UNINITIALIZED\_VAR() $B%^%/%m$NF3F~(B](https://www.ruby-forum.com/t/feature-3018-closed-uninitialized-var-b-m-nf3f-b/186403)

<div class="topic-metadata">

**Author:** [@Motohiro\_KOSAKI](https://www.ruby-forum.com/u/Motohiro_KOSAKI)\
**Replies:** 0\
**Last updated:** [April 6, 2010, 4:17pm UTC](https://www.ruby-forum.com/t/feature-3018-closed-uninitialized-var-b-m-nf3f-b/186403 "2010-04-06T16:17:31Z")

</div>

e$B%A%1%C%He(B #3018 e$B$,99?7$5$l$^$7$?!#e(B (by Motohiro KOSAKI) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B This issue was solved with changeset r27238. Motohiro, than…

---

## [Snapshot of JRuby OS X pkg installer](https://www.ruby-forum.com/t/snapshot-of-jruby-os-x-pkg-installer/186383)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/snapshot-of-jruby-os-x-pkg-installer/186383 "2010-04-06T15:46:30Z")

</div>

I’ve uploaded a snapshot build of David C.'s pkg installer here: http://github.com/jruby/jruby/downloads It installs under /Library/Frameworks/JRuby.framework and modifies your .profile to add JRuby’s bin location to …

---

## [Find a set of common elements from a multi-dimensional array](https://www.ruby-forum.com/t/find-a-set-of-common-elements-from-a-multi-dimensional-array/186401)

<div class="topic-metadata">

**Author:** [@shreyas12](https://www.ruby-forum.com/u/shreyas12)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/find-a-set-of-common-elements-from-a-multi-dimensional-array/186401 "2010-04-06T15:05:32Z")

</div>

I have a multi-dimensional array ; a=\[\[2,3,4\],\[1,3,4\],\[1,2\],\[1,2,3,4\]\] i’ve to compare all the 4 sub-arrays and get common elements.Next,take 3 subarrays at a time and get common elements.then take 2 sub arrays at a t…

---

## [More on logger hang-ups](https://www.ruby-forum.com/t/more-on-logger-hang-ups/186377)

<div class="topic-metadata">

**Author:** [@matthewmurcia](https://www.ruby-forum.com/u/matthewmurcia)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 2:33pm UTC](https://www.ruby-forum.com/t/more-on-logger-hang-ups/186377 "2010-04-06T14:33:53Z")

</div>

Here’s what I see in my program, two threads stuck on writing to the same logger: –\> #0 MonitorMixin.mon\_acquire(queue#Array) at line /usr/lib/ruby/1.8/monitor.rb:286 #1 MonitorMixin.mon\_enter at line /usr/lib/ruby/1…

---

## [\[Bug #2724\] fork from other than the main thread causes wrong pthread condition on NetBSD](https://www.ruby-forum.com/t/bug-2724-fork-from-other-than-the-main-thread-causes-wrong-pthread-condition-on-netbsd/183131)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/bug-2724-fork-from-other-than-the-main-thread-causes-wrong-pthread-condition-on-netbsd/183131 "2010-04-06T12:50:54Z")

</div>

Bug #2724: fork from other than the main thread causes wrong pthread condition on NetBSD http://redmine.ruby-lang.org/issues/show/2724 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Third Party’s Issue, e$BM%@hEYe(B: Nor…

---

## [Uninitialized constant SDL::TTF (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-sdl-ttf-nameerror/186364)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 11:51am UTC](https://www.ruby-forum.com/t/uninitialized-constant-sdl-ttf-nameerror/186364 "2010-04-06T11:51:10Z")

</div>

Hello I am getting the above error when I tried the SDL::TTF.init function. I have rubysdl gem installed. Synaptic shows that all the necessary libsdl libraries installed. Is the sdl\_ttf distributed as a seperate g…

---

## [Ruby soc](https://www.ruby-forum.com/t/ruby-soc/185960)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 9:31am UTC](https://www.ruby-forum.com/t/ruby-soc/185960 "2010-04-06T09:31:17Z")

</div>

Might be worthwhile for IronRuby to put together a project list wiki and add it to the ruby Soc list (Ruby Summer of Code). The one I’d like to see would be “Ruby in the server and the client using silverlight” (guide…

---

## [Rubygems 1.3.6 for jruby broken?](https://www.ruby-forum.com/t/rubygems-1-3-6-for-jruby-broken/186388)

<div class="topic-metadata">

**Author:** [@Tommy\_C](https://www.ruby-forum.com/u/Tommy_C)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 8:55am UTC](https://www.ruby-forum.com/t/rubygems-1-3-6-for-jruby-broken/186388 "2010-04-06T08:55:34Z")

</div>

I just updated my jruby to rubygems 1.3.6 but the jgem no longer works: $jgem -v 1.3.5 $jgem update --system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.3.6 Updating RubyGem…

---

## [How to use an array to load html data with ruby](https://www.ruby-forum.com/t/how-to-use-an-array-to-load-html-data-with-ruby/186386)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 7:46am UTC](https://www.ruby-forum.com/t/how-to-use-an-array-to-load-html-data-with-ruby/186386 "2010-04-06T07:46:30Z")

</div>

there is a html file: report\_data liu\_asset cash finance\_asset note 2009-12-31 0 1,693,048,000,000 20,147,000,000 500 2009-09-30 0 1,777,512,000,000 24,977,000,000 700 how can i use an array to load data wit…

---

## [$B%F%9%HBP\>\]$r(B 2 $B$D;XDj$9$k$HMn$A$k(B](https://www.ruby-forum.com/t/b-f-9-hbp-r-b-2-b-d-xdj-9-k-hmn-a-k-b/186385)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 4\
**Last updated:** [April 6, 2010, 7:35am UTC](https://www.ruby-forum.com/t/b-f-9-hbp-r-b-2-b-d-xdj-9-k-hmn-a-k-b/186385 "2010-04-06T07:35:58Z")

</div>

e$B$-$7$b$H$G$9e(B amd64 FreeBSD8 e$B$G!"e(Bruby e$B$Oe(B trunk e$B$G$9!#%S%k%IMQ$N%G%#%l%/%H%j$r7!$C$Fe(B e$B%S%k%I$7$F$$$^$9!#e(B e$B0J2\<$N$h$&$K!"%F%9%HBP\>\]$re(B 2 e$B$D;XDj$9$k$HMn$A$^$9!#e(B1 e$B$De(B e$B$^$?$O…

---

## [The problem of to\_yaml](https://www.ruby-forum.com/t/the-problem-of-to-yaml/186384)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 5:16am UTC](https://www.ruby-forum.com/t/the-problem-of-to-yaml/186384 "2010-04-06T05:16:05Z")

</div>

here is a program MIT LICENSE Copyright (c) 2007 Soledad Penades www.soledadpenades.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation …

---

## [Defender v1.0.0beta1](https://www.ruby-forum.com/t/defender-v1-0-0beta1/186379)

<div class="topic-metadata">

**Author:** [@groogy](https://www.ruby-forum.com/u/groogy)\
**Replies:** 0\
**Last updated:** [April 6, 2010, 2:05am UTC](https://www.ruby-forum.com/t/defender-v1-0-0beta1/186379 "2010-04-06T02:05:52Z")

</div>

Defender is a ruby wrapper for the Defensio spam filtering API. Version 1.0.0beta1 is a complete rewrite of defender, and I hope that it will make spam filtering an easy task in Ruby. Defensio uses the concept of “doc…

---

## [Where to ask some Bitescript questions](https://www.ruby-forum.com/t/where-to-ask-some-bitescript-questions/186368)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/where-to-ask-some-bitescript-questions/186368 "2010-04-05T21:50:05Z")

</div>

I was wondering if someone can’t point me to a resource where I can ask some Bitescript question, since the whole kenai pages don’t look very alive… Regards Roger To unsubscribe from this list, please visit: http…

---

## [Long-standing bug in logger or monitor?](https://www.ruby-forum.com/t/long-standing-bug-in-logger-or-monitor/186347)

<div class="topic-metadata">

**Author:** [@matthewmurcia](https://www.ruby-forum.com/u/matthewmurcia)\
**Replies:** 2\
**Last updated:** [April 5, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/long-standing-bug-in-logger-or-monitor/186347 "2010-04-05T20:45:42Z")

</div>

Hi there, I’ve spotted some bad behaviour in a program that I’ve boiled down to a test case, and I think it demonstrates a bug in either logger or monitor or my understanding of how either should work. It runs 1000 t…

---

## [\[ANN\] Trinidad, a rack based server on top of Apache Tomcat, release its version 0.8.0](https://www.ruby-forum.com/t/ann-trinidad-a-rack-based-server-on-top-of-apache-tomcat-release-its-version-0-8-0/186315)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/ann-trinidad-a-rack-based-server-on-top-of-apache-tomcat-release-its-version-0-8-0/186315 "2010-04-05T20:40:26Z")

</div>

Hi, this days people are talking a lot about the future of glassfish gem, and with this release, I just wanted to notice that there are also other alternatives. Trinidad is a rack based server on top of Apache Tomca…

---

## [Expectations for runs of irtests](https://www.ruby-forum.com/t/expectations-for-runs-of-irtests/186332)

<div class="topic-metadata">

**Author:** [@Zac\_Brown](https://www.ruby-forum.com/u/Zac_Brown)\
**Replies:** 8\
**Last updated:** [April 5, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/expectations-for-runs-of-irtests/186332 "2010-04-05T19:29:01Z")

</div>

Hi all, I’ve run irtests and I know failures expected. I am however unclear on how to determine whether or not I’ve got the expected results for my current build of IronRuby. Could someone shed some light on what I’m …

---

## [Nested hash](https://www.ruby-forum.com/t/nested-hash/186352)

<div class="topic-metadata">

**Author:** [@shortnose](https://www.ruby-forum.com/u/shortnose)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/nested-hash/186352 "2010-04-05T19:16:08Z")

</div>

Hello All. Sample code: class NestedHash \< Hash attr\_accessor :val alias :to\_str :to\_s @val=0 def initialize blk = lambda {|h,k| h\[k\] = NestedHash.new(&blk)} super(&blk) end def \[\]= (key,value) if value.is\_a?(…

---

## [Reading contents of all files from a Directory](https://www.ruby-forum.com/t/reading-contents-of-all-files-from-a-directory/185505)

<div class="topic-metadata">

**Author:** [@hawksury](https://www.ruby-forum.com/u/hawksury)\
**Replies:** 22\
**Last updated:** [April 5, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/reading-contents-of-all-files-from-a-directory/185505 "2010-04-05T19:11:13Z")

</div>

Hello, I am new to Ruby. I am trying to “Read Content” of all the files from a Directory. So far I can “Open” all files but this just shows the “names of all files” in the directory and not the “file content”. My Pr…

---

## [When {integer:0} \<\> 0?](https://www.ruby-forum.com/t/when-integer-0-0/186340)

<div class="topic-metadata">

**Author:** [@richardfairhurst](https://www.ruby-forum.com/u/richardfairhurst)\
**Replies:** 7\
**Last updated:** [April 5, 2010, 7:05pm UTC](https://www.ruby-forum.com/t/when-integer-0-0/186340 "2010-04-05T19:05:36Z")

</div>

Greetings, folks! This one will be so obvious to you all, but it has had me baffled for hours. (Script appended below.) Please enlighten me! Thank you! Richard F. the following is called with: do shell script “arch…

---

## [Plans for a jruby maintaince release 1.4.1 (or 1.5.0) soon?](https://www.ruby-forum.com/t/plans-for-a-jruby-maintaince-release-1-4-1-or-1-5-0-soon/186342)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 1\
**Last updated:** [April 5, 2010, 7:00pm UTC](https://www.ruby-forum.com/t/plans-for-a-jruby-maintaince-release-1-4-1-or-1-5-0-soon/186342 "2010-04-05T19:00:20Z")

</div>

Hi, I am eager for a stable release of JRuby with the current bug fixes, since I have some problems with JRuby’s current version that appears to have been fixed in trunk since Nov 2nd 2009 last year when Jruby was la…

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

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