# Ruby

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

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

---

## [Second Ruby and Rails devroom at Fosdem (Brussels, 7 Feb 2009)](https://www.ruby-forum.com/t/second-ruby-and-rails-devroom-at-fosdem-brussels-7-feb-2009/155440)

<div class="topic-metadata">

**Author:** [@Calamitas](https://www.ruby-forum.com/u/Calamitas)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/second-ruby-and-rails-devroom-at-fosdem-brussels-7-feb-2009/155440 "2008-12-11T20:25:53Z")

</div>

Hi folks, After last year’s success, the Belgian Ruby U. Group is happy to announce the second Ruby and Rails devroom at Fosdem 2009. Fosdem is a gathering of Free and Open Source Software developers and the ideal oc…

---

## [RubyZip:](https://www.ruby-forum.com/t/rubyzip/155434)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/rubyzip/155434 "2008-12-11T20:10:56Z")

</div>

Hello, all. I’m setting up some code to pull a zipped up build of our software from a server, unzip it, and place it in a directory to be tested against. I’m having some issues using the RubyZip gem. Here’s my strippe…

---

## [Q: FFI and C++?](https://www.ruby-forum.com/t/q-ffi-and-c/155408)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 13\
**Last updated:** [December 11, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/q-ffi-and-c/155408 "2008-12-11T18:45:09Z")

</div>

If I want to wrap a C++ library using FFI, can it cope with the name mangling? I’ve got a working example where I compile a C wrapper for the C++ and call the wrapper from FFI. That’s rather clunky, I’d hope ther…

---

## [Gruff labels](https://www.ruby-forum.com/t/gruff-labels/155028)

<div class="topic-metadata">

**Author:** [@ukbell](https://www.ruby-forum.com/u/ukbell)\
**Replies:** 5\
**Last updated:** [December 11, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/gruff-labels/155028 "2008-12-11T18:19:48Z")

</div>

I have been working on this code for a few days and can’t seem to figure out what I am doing wrong… Labeling gruff is pretty easy for the most part (just put it in hash format) but I can’t get this to work for anythin…

---

## [Several units of the System, Help!](https://www.ruby-forum.com/t/several-units-of-the-system-help/155427)

<div class="topic-metadata">

**Author:** [@darkskull](https://www.ruby-forum.com/u/darkskull)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/several-units-of-the-system-help/155427 "2008-12-11T18:19:36Z")

</div>

Hi, I have a little doubt with a code that I’m doing, and that is what I need is to open a file with “File”, with the exact route, but saying that I look at all the units of the system, or the ‘A’ to ‘Z’. How could I …

---

## [Error during gem install with 1.1](https://www.ruby-forum.com/t/error-during-gem-install-with-1-1/155419)

<div class="topic-metadata">

**Author:** [@bemmi](https://www.ruby-forum.com/u/bemmi)\
**Replies:** 4\
**Last updated:** [December 11, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/error-during-gem-install-with-1-1/155419 "2008-12-11T18:05:14Z")

</div>

I get this error when I try to install a gem: jruby -J-Xmx512M -S gem install mocha JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL Bulk up…

---

## [Timer Alternatives](https://www.ruby-forum.com/t/timer-alternatives/155342)

<div class="topic-metadata">

**Author:** [@Tom\_E\_Purl](https://www.ruby-forum.com/u/Tom_E_Purl)\
**Replies:** 2\
**Last updated:** [December 11, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/timer-alternatives/155342 "2008-12-11T16:32:18Z")

</div>

I would like to write a Jruby script that starts a timer, tries to complete something, and then fails if it times out. I took at look at the Ruby PLEAC page, and saw that this is typically done using the “timeout” m…

---

## [P shows object values, so can u put P and value in txt?](https://www.ruby-forum.com/t/p-shows-object-values-so-can-u-put-p-and-value-in-txt/155333)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 8\
**Last updated:** [December 11, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/p-shows-object-values-so-can-u-put-p-and-value-in-txt/155333 "2008-12-11T15:57:00Z")

</div>

This is something that I have been working on using diff/lcs. I am beginner. With my code (at bottom) I am now outputing to output window values like #\<Diff::LCS::ContextChange:24252450 @action== positions=0,0 elemen…

---

## [Folder actions](https://www.ruby-forum.com/t/folder-actions/155361)

<div class="topic-metadata">

**Author:** [@Einar\_MagnSSSSs\_Bos](https://www.ruby-forum.com/u/Einar_MagnSSSSs_Bos)\
**Replies:** 4\
**Last updated:** [December 11, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/folder-actions/155361 "2008-12-11T15:35:49Z")

</div>

Hi all, I need to have a script run every time a file is added to a folder on OS X, I have found out that this can be done with applescript but I can’t for the life of me figure out how to write anything that works i…

---

## [RSS::Maker.create(version)](https://www.ruby-forum.com/t/rss-maker-create-version/154275)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 14\
**Last updated:** [December 11, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/rss-maker-create-version/154275 "2008-12-11T13:24:05Z")

</div>

ã€€RSS::Maker ã§ã€ “2.0” ç­‰ã®æ–‡å­—åˆ—ã§ãƒ•ã‚£ãƒ¼ãƒ‰ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã‚’æ¸¡ã™ ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ã¯äº‹å®Ÿä¸Š RSS::Maker.make(version) {|maker| … } ã—ã‹ã‚ã‚Šã¾ã›ã‚“ã€‚(maker = RSS::Maker::XXXXX.new …

---

## [Autoload hang](https://www.ruby-forum.com/t/autoload-hang/155398)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/autoload-hang/155398 "2008-12-11T13:23:29Z")

</div>

autoload e$B$r0J2\<$N$h$&$K;H$&$H%O%s%0$7$^$9!#e(B % cat foo.rb class Foo end % ./ruby -ve ’ autoload “Foo”, “foo” p Foo ’ ruby 1.9.1 (2008-12-11 revision 20633) \[i686-linux\] e$B$3$3$G%O%s%0e(B e$B$J$\*!"e(Bruby …

---

## [Ruby-mysql API on Windows](https://www.ruby-forum.com/t/ruby-mysql-api-on-windows/155274)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/ruby-mysql-api-on-windows/155274 "2008-12-11T13:14:29Z")

</div>

Where do I find the latest version of Ruby-mysql API on Windows which will interface with MYSQL 5.1. I do not have a MS C complier, thus I am looking for the compiled version. Thank you for your help. John

---

## [To get help from inside irb console](https://www.ruby-forum.com/t/to-get-help-from-inside-irb-console/155380)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/to-get-help-from-inside-irb-console/155380 "2008-12-11T12:14:04Z")

</div>

Hi How to get help from inside irb console I would like to know what the following is OpenSSL::Random.random\_bytes Thanks in advance Sijo

---

## [Apache Tapestry Creator to Speak on Clojure, Tapestry 5](https://www.ruby-forum.com/t/apache-tapestry-creator-to-speak-on-clojure-tapestry-5/155393)

<div class="topic-metadata">

**Author:** [@shaguf](https://www.ruby-forum.com/u/shaguf)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/apache-tapestry-creator-to-speak-on-clojure-tapestry-5/155393 "2008-12-11T12:11:10Z")

</div>

Apache Tapestry Creator to Speak on Clojure, Tapestry 5 Bangalore, December 10, 2008: If you are a Java developer building web- based applications and tired of the countless frameworks that promise you a slick UI fast…

---

## [Lambda with $1 fails as gsub block](https://www.ruby-forum.com/t/lambda-with-1-fails-as-gsub-block/155359)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 11:02am UTC](https://www.ruby-forum.com/t/lambda-with-1-fails-as-gsub-block/155359 "2008-12-11T11:02:30Z")

</div>

I came across this problem: def meth(replace) “\>x”.gsub(%r!(\\W)x!, &replace) end replace = lambda { |match| puts “$1 is #{$1.inspect}” } “\>x”.gsub(%r!(\\W)x!, &replace) # =\> $1 is “\>” “” =~ %r!! # reset $1 meth…

---

## [\[Bug #853\] Rake $B$N%F%9%H$,L5$$(B](https://www.ruby-forum.com/t/bug-853-rake-b-n-f-9-h-l5-b/155386)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 10:01am UTC](https://www.ruby-forum.com/t/bug-853-rake-b-n-f-9-h-l5-b/155386 "2008-12-11T10:01:58Z")

</div>

Bug #853: Rake e$B$N%F%9%H$,L5$$e(B http://redmine.ruby-lang.org/issues/show/853 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib Rake e$B$N%F%9%H$,e(B test/ e$B0J2\<$K$“$j$^$;$s…

---

## [Status info like rc.status](https://www.ruby-forum.com/t/status-info-like-rc-status/155214)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 2\
**Last updated:** [December 11, 2008, 9:33am UTC](https://www.ruby-forum.com/t/status-info-like-rc-status/155214 "2008-12-11T09:33:52Z")

</div>

Hello, is there already a library I’m not aware of which allows for easy console message formatting similar to the usage of rc.status with the init.d scripts? Is there an established “best practices” way for displayi…

---

## [Displaying long floats without scientific notation](https://www.ruby-forum.com/t/displaying-long-floats-without-scientific-notation/155316)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 2\
**Last updated:** [December 11, 2008, 8:44am UTC](https://www.ruby-forum.com/t/displaying-long-floats-without-scientific-notation/155316 "2008-12-11T08:44:34Z")

</div>

Hello - I need to display the long forms of numbers read from a database table without scientific notation. For example, a number read as 1.5e-6 should be displayed as “0.0000015”, and so on. Is there an easy way to…

---

## [Completely new programmer lacks direction](https://www.ruby-forum.com/t/completely-new-programmer-lacks-direction/155238)

<div class="topic-metadata">

**Author:** [@fannus](https://www.ruby-forum.com/u/fannus)\
**Replies:** 14\
**Last updated:** [December 11, 2008, 8:02am UTC](https://www.ruby-forum.com/t/completely-new-programmer-lacks-direction/155238 "2008-12-11T08:02:26Z")

</div>

Hi. I recently picked up a beginning ruby book, having only lightly touched python and HLA before jumping into this, and I really lack the vision needed to form any programs. It’s sort of a combination of not quite ha…

---

## [ParseTree 3.0.2 Released](https://www.ruby-forum.com/t/parsetree-3-0-2-released/152544)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [December 11, 2008, 7:06am UTC](https://www.ruby-forum.com/t/parsetree-3-0-2-released/152544 "2008-12-11T07:06:51Z")

</div>

ParseTree version 3.0.2 has been released! http://rubyforge.org/projects/parsetree/ http://www.zenspider.com/ZSS/Products/ParseTree/ removed\_email\_address@domain.invalid ParseTree is a C extension (using RubyInline) t…

---

## [\[Feature #850\] Symbian patch for 1.9.x](https://www.ruby-forum.com/t/feature-850-symbian-patch-for-1-9-x/155374)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 5:50am UTC](https://www.ruby-forum.com/t/feature-850-symbian-patch-for-1-9-x/155374 "2008-12-11T05:50:15Z")

</div>

Feature #850: Symbian patch for 1.9.x http://redmine.ruby-lang.org/issues/show/850 e$B5/I\<\<Te(B: Yukihiro M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yukihiro M., Target version: 1.9.x Alexandre Za…

---

## [\[Feature #841\] Object#self](https://www.ruby-forum.com/t/feature-841-object-self/155272)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 12\
**Last updated:** [December 11, 2008, 5:44am UTC](https://www.ruby-forum.com/t/feature-841-object-self/155272 "2008-12-11T05:44:24Z")

</div>

Feature #841: Object#self http://redmine.ruby-lang.org/issues/show/841 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B\<+J,\<+?H$rJV$9%a%=%C%I$,$"$C$F$b$$$$$s$8$c$J$$$G$7$g$&$+!)e(B e$BL\>A0$…

---

## [Copy txt file - only copies 1/3 of the file - what happened?](https://www.ruby-forum.com/t/copy-txt-file-only-copies-1-3-of-the-file-what-happened/155370)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 5:10am UTC](https://www.ruby-forum.com/t/copy-txt-file-only-copies-1-3-of-the-file-what-happened/155370 "2008-12-11T05:10:58Z")

</div>

File.open(‘oldFile.txt’, ‘r’) do |f1| #file contains XML type data m = f1.gets File.open(‘newFile.txt’,‘w’) do |f2| #newFile to separate data in oldFile f2.puts m.split("\<") end end Hello All. There is something …

---

## [Dose jruby conflict with other dynamic language on JVM?](https://www.ruby-forum.com/t/dose-jruby-conflict-with-other-dynamic-language-on-jvm/155295)

<div class="topic-metadata">

**Author:** [@swung](https://www.ruby-forum.com/u/swung)\
**Replies:** 4\
**Last updated:** [December 11, 2008, 4:49am UTC](https://www.ruby-forum.com/t/dose-jruby-conflict-with-other-dynamic-language-on-jvm/155295 "2008-12-11T04:49:26Z")

</div>

Hi guru, I am trying to use jruby in my project now. It seems that jruby does not work with other dynamic language on JVM, for example, jython. My story is to use jruby to setup a testing environment. It contains Web…

---

## [Rawr 1.1.1](https://www.ruby-forum.com/t/rawr-1-1-1/155345)

<div class="topic-metadata">

**Author:** [@Logan\_B](https://www.ruby-forum.com/u/Logan_B)\
**Replies:** 7\
**Last updated:** [December 11, 2008, 3:40am UTC](https://www.ruby-forum.com/t/rawr-1-1-1/155345 "2008-12-11T03:40:57Z")

</div>

JRuby users, Your favorite packaging and deployment tool for JRuby is now at 1.1.1! This is mostly a minor release, fixing a bug where Windows users with spaces in their names couldn’t generate exes. For those new t…

---

## [\[Bug #827\] Fix document for Gem::Installer#write\_spec](https://www.ruby-forum.com/t/bug-827-fix-document-for-gem-installer-write-spec/154920)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 3:28am UTC](https://www.ruby-forum.com/t/bug-827-fix-document-for-gem-installer-write-spec/154920 "2008-12-11T03:28:36Z")

</div>

Bug #827: Fix document for Gem::Installer#write\_spec http://redmine.ruby-lang.org/issues/show/827 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib e$B%3!\<%I$H%I%-%e%a%s%H$,0lCW$…

---

## [\[Bug #842\] endless loop of ObjectSpace.each\_object](https://www.ruby-forum.com/t/bug-842-endless-loop-of-objectspace-each-object/155275)

<div class="topic-metadata">

**Author:** [@Narihiro\_N](https://www.ruby-forum.com/u/Narihiro_N)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 3:28am UTC](https://www.ruby-forum.com/t/bug-842-endless-loop-of-objectspace-each-object/155275 "2008-12-11T03:28:01Z")

</div>

Bug #842: endless loop of ObjectSpace.each\_object http://redmine.ruby-lang.org/issues/show/842 e$B5/I\<\<Te(B: Narihiro N. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal narie$B$G$9!%e(B e$B0J2\<$NMM$K$9$k$HL58B%k!\<%W$KF…

---

## [\[Bug #525\] test\_convert(TestBignum) on NETBSD](https://www.ruby-forum.com/t/bug-525-test-convert-testbignum-on-netbsd/147328)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 2:27am UTC](https://www.ruby-forum.com/t/bug-525-test-convert-testbignum-on-netbsd/147328 "2008-12-11T02:27:46Z")

</div>

Bug #525: test\_convert(TestBignum) on NETBSD http://redmine.ruby-lang.org/issues/show/525 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core NetBSD 4.99.72 i386 e$B$K$F!"e(Bte…

---

## [\[Bug #553\] REXML::Document#write(io, 1, true, true) #=\> NameError/ArgumentError](https://www.ruby-forum.com/t/bug-553-rexml-document-write-io-1-true-true-nameerror-argumenterror/148123)

<div class="topic-metadata">

**Author:** [@akira\_yamada](https://www.ruby-forum.com/u/akira_yamada)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 2:27am UTC](https://www.ruby-forum.com/t/bug-553-rexml-document-write-io-1-true-true-nameerror-argumenterror/148123 "2008-12-11T02:27:46Z")

</div>

Bug #553: REXML::Document#write(io, 1, true, true) #=\> NameError/ArgumentError http://redmine.ruby-lang.org/issues/show/553 e$B5/I\<\<Te(B: akira yamada e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib …

---

## [\[Bug #849\] --enable-shared $B$G(B btest $B$,F0$+$J$$(B](https://www.ruby-forum.com/t/bug-849-enable-shared-b-g-b-btest-b-f0-j-b/155364)

<div class="topic-metadata">

**Author:** [@Koichi\_Sasada](https://www.ruby-forum.com/u/Koichi_Sasada)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 1:43am UTC](https://www.ruby-forum.com/t/bug-849-enable-shared-b-g-b-btest-b-f0-j-b/155364 "2008-12-11T01:43:55Z")

</div>

Bug #849: --enable-shared e$B$Ge(B btest e$B$,F0$+$J$$e(B http://redmine.ruby-lang.org/issues/show/849 e$B5/I\<\<Te(B: Koichi Sasada e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Nobuyoshi N. configure e$…

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

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