# Ruby

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

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

---

## [QtRuby: system tray](https://www.ruby-forum.com/t/qtruby-system-tray/151824)

<div class="topic-metadata">

**Author:** [@bizzz](https://www.ruby-forum.com/u/bizzz)\
**Replies:** 4\
**Last updated:** [October 26, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/qtruby-system-tray/151824 "2008-10-26T20:23:44Z")

</div>

Hello, fellow rubyists! I need an ability to hide my Qt-based app in tray and unhide it back :slight\_smile: I’ve read C examples at http://doc.trolltech.com/4.2/desktop-systray.html but couldn’t understand it enough …

---

## [Trunk SEGV nkf?](https://www.ruby-forum.com/t/trunk-segv-nkf/151694)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 6\
**Last updated:** [October 26, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/trunk-segv-nkf/151694 "2008-10-26T17:42:28Z")

</div>

e$BEOJUE/Li$G$9!#e(B SEGV e$B$7$F$$$k$N$G$\*CN$i$;$7$^$9!#=EJ#$7$F$$$?$i$9$$$^$;e(B e$B$s$G$9!#e(B ruby 1.9.0 (2008-10-24 revision 19913) \[i686-linux\] e$B:F8=%9%/%j%W%H$G$9!#e(B e$B:F8=J}K!$O!“F~NO9T$,e(B 82 e$B9T$”$…

---

## [Init attributes and set value](https://www.ruby-forum.com/t/init-attributes-and-set-value/151835)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/init-attributes-and-set-value/151835 "2008-10-26T17:31:18Z")

</div>

Hey all, sorry for the noob question. But how can i init a big amount of attributes with empty strings. And overwrite the empty string if the field of the form is filled with some value. I try update\_attributes(hash…

---

## [\[Bug #6\] sprintf() of %f on Windows(MSVCRT)](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/151810)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/bug-6-sprintf-of-f-on-windows-msvcrt/151810 "2008-10-26T12:44:12Z")

</div>

e$B%A%1%C%He(B #6 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) e$B%U%!%$%ke(B sprintf.patch e$BDI2Ce(B missing/vsnprintf.c e$B$rMxMQ$9$k$h$&$J%Q%C%A$r=q$-$^$7$?!#e(B vsnprintf.c e$BCf$Ne(B vsnprintf e$B$r30$K=P$9$d$jJ}$,$…

---

## [Regular expressions and conditionals](https://www.ruby-forum.com/t/regular-expressions-and-conditionals/151795)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 11:35am UTC](https://www.ruby-forum.com/t/regular-expressions-and-conditionals/151795 "2008-10-26T11:35:40Z")

</div>

I’m writting a little program to convert some source files to html. I’m using regexp’s to determine the content of each line and format it accordingly. For example, if the line starts with a #, then it should be outpu…

---

## [Re: Overriding CLS Virtuals](https://www.ruby-forum.com/t/re-overriding-cls-virtuals/151750)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 11\
**Last updated:** [October 26, 2008, 8:43am UTC](https://www.ruby-forum.com/t/re-overriding-cls-virtuals/151750 "2008-10-26T08:43:03Z")

</div>

We’re thinking now that we’re going to go with the mangled version of the name instead of the originally cased-version. “Dispose” just doesn’t look Rubyish enough. Any objections? From: Curt H. Sent: Monday, Septem…

---

## [Object#instance\_eval but better](https://www.ruby-forum.com/t/object-instance-eval-but-better/151721)

<div class="topic-metadata">

**Author:** [@croxmeister](https://www.ruby-forum.com/u/croxmeister)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 5:42am UTC](https://www.ruby-forum.com/t/object-instance-eval-but-better/151721 "2008-10-26T05:42:29Z")

</div>

I have a bit of code here that I’d love to make better: class Foo def initialize(path) self.instance\_eval(File.read(path)) end end I don’t want to continue down the path of reading an entire file into a string and…

---

## [\[Bug #684\] io.read(nil, buf) $B$G(B buf $B$,JQ99$5$l$J$$(B](https://www.ruby-forum.com/t/bug-684-io-read-nil-buf-b-g-b-buf-b-jq99-5-l-j-b/151809)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [October 26, 2008, 2:26am UTC](https://www.ruby-forum.com/t/bug-684-io-read-nil-buf-b-g-b-buf-b-jq99-5-l-j-b/151809 "2008-10-26T02:26:41Z")

</div>

Bug #684: io.read(nil, buf) e$B$Ge(B buf e$B$,JQ99$5$l$J$$e(B http://redmine.ruby-lang.org/issues/show/684 e$B5/I\<\<Te(B: \_ wanabe e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal IO#read e$B$NBh0l0z?t$Ke(B nile$B!"BhFs0…

---

## [Hash Lookup Problem](https://www.ruby-forum.com/t/hash-lookup-problem/151800)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 1\
**Last updated:** [October 26, 2008, 1:48am UTC](https://www.ruby-forum.com/t/hash-lookup-problem/151800 "2008-10-26T01:48:28Z")

</div>

I am writing a blackjack simulator. I have classes like Dealer, Player, Deck, and Play\_Strategy. Play\_Strategy describes the strategy a player will use. The strategy basically says what a player should do (hit, stan…

---

## [Extracting information from "john-2222-8888@domain.com"](https://www.ruby-forum.com/t/extracting-information-from-john-2222-8888-domain-com/151799)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 1:20am UTC](https://www.ruby-forum.com/t/extracting-information-from-john-2222-8888-domain-com/151799 "2008-10-26T01:20:25Z")

</div>

Hello, I’m wondering how you’d extract information from an email address like “removed\_email\_address@domain.invalid” to get these results from that email: @player\_id = 2222 @game\_id = 8888 I’m thinking it’s somethin…

---

## [CSV to XML](https://www.ruby-forum.com/t/csv-to-xml/151793)

<div class="topic-metadata">

**Author:** [@btard](https://www.ruby-forum.com/u/btard)\
**Replies:** 2\
**Last updated:** [October 25, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/csv-to-xml/151793 "2008-10-25T21:33:10Z")

</div>

Great forum, been a reader for a long time. My first post comes as a request for some help. I am trying to process a CSV of undetermined length (want to know how to incorporate ‘wc -l’). The CSV has 4 columns that I …

---

## [\[ANN\] Sipper 1.1.3 Released](https://www.ruby-forum.com/t/ann-sipper-1-1-3-released/151737)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 5\
**Last updated:** [October 25, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/ann-sipper-1-1-3-released/151737 "2008-10-25T17:54:06Z")

</div>

1.1.3 of SIPr pronounced as Sipper has been released earlier this month. http://sipr.agnity.com or http://rubyforge.org/projects/sipper/ SIPr is complete SIP (Session Initiation Protocol) stack written in Ruby (with …

---

## [Ruby$B9q:\]I8=\`$NAp0F:n@.(B](https://www.ruby-forum.com/t/ruby-b9q-i8-nap0f-n-b/151780)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/ruby-b9q-i8-nap0f-n-b/151780 "2008-10-25T15:36:29Z")

</div>

NaCle$B$NA0ED$G$9!#e(B IPA(e$B\>pJs=hM}?d?J5!9=e(B)e$B$G!Ve(BRubye$B$N9q:\]I8=\`2=$K4X$9$kD4::$N@AIi7@Ls!W$K78$ke(B e$B8xJg$,9T$o$l$F$$$^$7$?$,!“e(BNaCl(e$B%M%C%H%o!\<%/1~MQDL?.8&5f=je(B)e$B$,:NBr$5$l$^e(B e$B$7$?$N$G!”$\*…

---

## [How to tell if two paths point to the same file?](https://www.ruby-forum.com/t/how-to-tell-if-two-paths-point-to-the-same-file/151713)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 11\
**Last updated:** [October 25, 2008, 10:22am UTC](https://www.ruby-forum.com/t/how-to-tell-if-two-paths-point-to-the-same-file/151713 "2008-10-25T10:22:08Z")

</div>

I’ve tried using File.expand\_path to normalize path names, but this doesn’t always seem to give identical results for the same file, if one of the involved paths goes through a symbolic link. Is there another way to d…

---

## [Rack::Cache 0.2, Real HTTP caching for Ruby web apps](https://www.ruby-forum.com/t/rack-cache-0-2-real-http-caching-for-ruby-web-apps/151755)

<div class="topic-metadata">

**Author:** [@ryantate](https://www.ruby-forum.com/u/ryantate)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 5:58am UTC](https://www.ruby-forum.com/t/rack-cache-0-2-real-http-caching-for-ruby-web-apps/151755 "2008-10-25T05:58:25Z")

</div>

I’m pleased to announce the initial release of Rack::Cache, a piece of Rack middleware that implements many of RFC 2616’s caching features with a basic set of storage options (disk, heap, and memcached) and a configu…

---

## [Rubygame 2.4 released; Project seeking new maintainer](https://www.ruby-forum.com/t/rubygame-2-4-released-project-seeking-new-maintainer/151756)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 5:35am UTC](https://www.ruby-forum.com/t/rubygame-2-4-released-project-seeking-new-maintainer/151756 "2008-10-25T05:35:03Z")

</div>

I have two major announcements related to Rubygame: Rubygame 2.4 is now available I’m stepping down from my position as project maintainer First, the happier news. Rubygame 2.4 is, finally, done. This release contain…

---

## [Re: Overriding CLS Virtuals](https://www.ruby-forum.com/t/re-overriding-cls-virtuals/151751)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 3:58am UTC](https://www.ruby-forum.com/t/re-overriding-cls-virtuals/151751 "2008-10-25T03:58:03Z")

</div>

Hey that’s one of the best parts of Ruby, aside from the siglets and capitalization rules for constants, you can do whatever naming you want. Glad to haave your support :slight\_smile: JD

---

## [Hoe 1.8.2 Released](https://www.ruby-forum.com/t/hoe-1-8-2-released/151748)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 1:34am UTC](https://www.ruby-forum.com/t/hoe-1-8-2-released/151748 "2008-10-25T01:34:10Z")

</div>

hoe version 1.8.2 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 ge…

---

## [RubyInline 3.8.1 Released](https://www.ruby-forum.com/t/rubyinline-3-8-1-released/151747)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 1:31am UTC](https://www.ruby-forum.com/t/rubyinline-3-8-1-released/151747 "2008-10-25T01:31:49Z")

</div>

RubyInline version 3.8.1 has been released! http://rubyforge.org/projects/rubyinline/ http://rubyinline.rubyforge.org/RubyInline/ http://www.zenspider.com/ZSS/Products/RubyInline/ removed\_email\_address@domain.invalid I…

---

## [Xmpp4r broken? examples out of date?](https://www.ruby-forum.com/t/xmpp4r-broken-examples-out-of-date/151745)

<div class="topic-metadata">

**Author:** [@wonderdog](https://www.ruby-forum.com/u/wonderdog)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 1:30am UTC](https://www.ruby-forum.com/t/xmpp4r-broken-examples-out-of-date/151745 "2008-10-25T01:30:39Z")

</div>

gem install xmpp4r cd /var/lib/gems/1.8/gems/xmpp4r-0.4/data/doc/xmpp4r/examples/basic ruby versionbot.rb someid somepass versionbot.rb:71: undefined method process' for #\<Jabber::Client: 0x7f7dec8a9a28\> (NoMethodErro…

---

## [Glassfish database pool and rails persistent connections](https://www.ruby-forum.com/t/glassfish-database-pool-and-rails-persistent-connections/151638)

<div class="topic-metadata">

**Author:** [@asmodi](https://www.ruby-forum.com/u/asmodi)\
**Replies:** 7\
**Last updated:** [October 25, 2008, 1:09am UTC](https://www.ruby-forum.com/t/glassfish-database-pool-and-rails-persistent-connections/151638 "2008-10-25T01:09:01Z")

</div>

I have read Arun G.'s bloghttp://weblogs.java.net/blog/arungupta/archive/2007/09/totd\_9\_using\_jd.html on using jruby/rails with a glassfish database connection pool and I have been able to set this up. I have a ques…

---

## [Simple JRuby app on application server](https://www.ruby-forum.com/t/simple-jruby-app-on-application-server/151549)

<div class="topic-metadata">

**Author:** [@Martijn\_S](https://www.ruby-forum.com/u/Martijn_S)\
**Replies:** 4\
**Last updated:** [October 25, 2008, 1:06am UTC](https://www.ruby-forum.com/t/simple-jruby-app-on-application-server/151549 "2008-10-25T01:06:40Z")

</div>

Hi, I have a simple non-web-based JRuby app (a JMS consumer) that I would like to run alongside a Rails app which is deployed on Glassfish. I’m just learning the whole Java EE thing, so my question is: Is it possible…

---

## [Code Review: miscrubyfixes](https://www.ruby-forum.com/t/code-review-miscrubyfixes/151722)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [October 25, 2008, 12:31am UTC](https://www.ruby-forum.com/t/code-review-miscrubyfixes/151722 "2008-10-25T00:31:36Z")

</div>

tfpt review “/shelveset:miscrubyfixes;REDMOND\\tomat” Comment : Implements range conditions: If a range whose bounds are not integer literals is used as a control flow condition (if/unless/while-loop/until-loop/…

---

## [Ruby openssl "no config database"](https://www.ruby-forum.com/t/ruby-openssl-no-config-database/151744)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 12:10am UTC](https://www.ruby-forum.com/t/ruby-openssl-no-config-database/151744 "2008-10-25T00:10:24Z")

</div>

Hi all! I’m creating X509 certificates with ruby openssl. Everything worked well, until I was trying to add custom OID’s to the certificatePolicy extension. I have a lot of rake tasks running against the library I’m …

---

## [Aliasing vs Delegation](https://www.ruby-forum.com/t/aliasing-vs-delegation/151720)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [October 25, 2008, 12:01am UTC](https://www.ruby-forum.com/t/aliasing-vs-delegation/151720 "2008-10-25T00:01:44Z")

</div>

Which would you recommend for the implementation of a stub/mock lib? Thanks, trans.

---

## [Re: Logging - Rack](https://www.ruby-forum.com/t/re-logging-rack/151743)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/re-logging-rack/151743 "2008-10-24T23:52:23Z")

</div>

This works ok on Tomcat with JRuby 1.1.3, but doesn’t work with 1.1.4. I tried to test against trunk, but got errors installing gems. I vaguely remember someone saying that there was an issue with 1.1.4 and logging, b…

---

## [Is it to query foxruby](https://www.ruby-forum.com/t/is-it-to-query-foxruby/151741)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/is-it-to-query-foxruby/151741 "2008-10-24T23:44:27Z")

</div>

Hello, Since FoxRuby is bundled with Ruby in window installer. Is it possible to query Ruby about it? Thanks, Li

---

## [XML Schema Parser](https://www.ruby-forum.com/t/xml-schema-parser/151723)

<div class="topic-metadata">

**Author:** [@nounours](https://www.ruby-forum.com/u/nounours)\
**Replies:** 1\
**Last updated:** [October 24, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/xml-schema-parser/151723 "2008-10-24T20:45:20Z")

</div>

Hi all, Does anyone know of a Ruby xml schema parser? Looks like REXML will not do the job Thanks. Bob

---

## [Make us\_ascii\_mbc\_enc\_len() static](https://www.ruby-forum.com/t/make-us-ascii-mbc-enc-len-static/151718)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/make-us-ascii-mbc-enc-len-static/151718 "2008-10-24T19:54:54Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B enc/us\_ascii.ce$BFb$Ne(Bus\_ascii\_mbc\_enc\_len()e$B$K!“e(Bprefixe$B$,IU$$$F$$$J$$$G$9!#e(B e$BM}M3$OJ,$+$j$^$;$s$,!”!Ve(Bexterne$B!W$,IU$$$F$$$k$N$G!"$3$l$O30It$G;H$o$l$kI,MW$,e(B e$B$"$k4X?t$J$N$…

---

## [Prefix signal\_buff](https://www.ruby-forum.com/t/prefix-signal-buff/151716)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/prefix-signal-buff/151716 "2008-10-24T19:51:58Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B signal.ce$B$G@k8@$5$l$F$$$k9=B$BNe(B signal\_buffe$B$G$9$,!"F1%U%!%$%k0J30$+$i$Oe(B e$B;2\>H$5$l$F$$$J$$$h$&$G$9!#e(Bstatice$B$K$7$F$O$I$&$G$7$g$&!#e(B Index: …/signal.c — …/signal.c (revision 1…

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

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