# Ruby

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

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

---

## [Sequel Newbie question](https://www.ruby-forum.com/t/sequel-newbie-question/156235)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [December 25, 2008, 2:51am UTC](https://www.ruby-forum.com/t/sequel-newbie-question/156235 "2008-12-25T02:51:08Z")

</div>

Hello Folks, I am trying out sequel and have a simple question. Here is my sample: DB = Sequel.connect(‘mysql://blah:blah@localhost:3306/thyu’) news\_stories = DB\[:feed\_items\].filter({:content\_grabbed =\> ‘0’} & (:url.…

---

## [Ini file reader/writer](https://www.ruby-forum.com/t/ini-file-reader-writer/156338)

<div class="topic-metadata">

**Author:** [@madhan\_sym](https://www.ruby-forum.com/u/madhan_sym)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/ini-file-reader-writer/156338 "2008-12-24T22:50:38Z")

</div>

Hi Guys, I am new joinee to this forum and also to ruby language.After spent two weeks of ruby learning,I have written a module “IniParser” which basically read/write ini files. I know there are few ruby gems availab…

---

## [\[Bug #917\] cannot make with bison-2.4.1 (cont.)](https://www.ruby-forum.com/t/bug-917-cannot-make-with-bison-2-4-1-cont/156192)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/bug-917-cannot-make-with-bison-2-4-1-cont/156192 "2008-12-24T21:07:41Z")

</div>

Bug #917: cannot make with bison-2.4.1 (cont.) http://redmine.ruby-lang.org/issues/show/917 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal tUPLUSe$B$J$I$,e(Benume$B$N$\_$Ge(B#definee$B$5…

---

## [Run a function as a stand-alone app with arguments](https://www.ruby-forum.com/t/run-a-function-as-a-stand-alone-app-with-arguments/156330)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/run-a-function-as-a-stand-alone-app-with-arguments/156330 "2008-12-24T17:37:40Z")

</div>

Hey all, i have a function that needs to be able to be called from within a ruby script or run as a stand-alone app from the CLI. so if i have, for example: def do\_something(arg1, arg2) return arg1 + arg2 end in a…

---

## [Newbie - open file permission denied](https://www.ruby-forum.com/t/newbie-open-file-permission-denied/156326)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [December 24, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/newbie-open-file-permission-denied/156326 "2008-12-24T17:35:50Z")

</div>

I am attempting to open a directory, open each file and send each line of the file to a network host. I can get the code to work for a single file, but the script fails with a “permission denied” error when I attempt …

---

## [Net::HTTPResponse#read\_body usable for timing?](https://www.ruby-forum.com/t/net-httpresponse-read-body-usable-for-timing/156272)

<div class="topic-metadata">

**Author:** [@helix\_tp](https://www.ruby-forum.com/u/helix_tp)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/net-httpresponse-read-body-usable-for-timing/156272 "2008-12-24T15:20:04Z")

</div>

I have some simple network performance analysis I need to do; easiest and most flexible thing to do would be to use Net::HTTP in Ruby to do this, but I want to make sure I’m getting somewhat realistic results. (Note s…

---

## [Integer.step is inclusive?!](https://www.ruby-forum.com/t/integer-step-is-inclusive/156277)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 5\
**Last updated:** [December 24, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/integer-step-is-inclusive/156277 "2008-12-24T14:00:26Z")

</div>

I don’t know how to post the output of irb so I’ll just have to describe it but if I run the following code: 0.upto(10){ |i| puts i } ...I will get 11 lines of output. This iterates eleven times. Really?! Why it d…

---

## [Can't build with GCC's -ansi option](https://www.ruby-forum.com/t/cant-build-with-gccs-ansi-option/156317)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/cant-build-with-gccs-ansi-option/156317 "2008-12-24T13:05:59Z")

</div>

e$B?\\F#$G$9!#e(B e$B:#F|!"e(BSubversione$B$N?M$?$A$Ke(BRubye$B%P%$%s%G%#%s%0$,%S%k%I$G$-$J$$e(B e$B$H8@$o$l$F5$IU$$$?$N$G$9$,!"e(BGCCe$B$Ne(B-ansie$B%\*%W%7%g%s$r$D$1$k$H3He(B e$BD%%i%$%V%i%j$,%S%k%I$G$-$^$;$s!#e(B e$…

---

## [OptionParser can't tell me about non-options on command line](https://www.ruby-forum.com/t/optionparser-cant-tell-me-about-non-options-on-command-line/156281)

<div class="topic-metadata">

**Author:** [@alanp](https://www.ruby-forum.com/u/alanp)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/optionparser-cant-tell-me-about-non-options-on-command-line/156281 "2008-12-24T12:55:26Z")

</div>

I’d like to have a command line invocation of my ruby script that looks like the following: Usage: vmci.rb \[options\] command args … options: -h, -?, --help generate this usage message -l, --log-file FILE …

---

## [Script/runner error](https://www.ruby-forum.com/t/script-runner-error/156290)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 10:41am UTC](https://www.ruby-forum.com/t/script-runner-error/156290 "2008-12-24T10:41:59Z")

</div>

Hi folks ^^, Ok I need some help here. I’m trying to create a script to automatically send Newsletters every day. The script is ready, but as I never used ruby script/runner I just wanted to make some test before. So…

---

## [About Float](https://www.ruby-forum.com/t/about-float/155805)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 9\
**Last updated:** [December 24, 2008, 9:35am UTC](https://www.ruby-forum.com/t/about-float/155805 "2008-12-24T09:35:27Z")

</div>

a = 1333.3339999999964 b = 1333.3339999999965 c = 1333.334 puts a # 1333.334 puts b # 1333.334 puts c # 1333.334 puts a == b # =\> false puts a == c # =\> false puts b == c # =\> false ########…

---

## [(was Re: \[ruby-cvs:28066\])](https://www.ruby-forum.com/t/was-re-ruby-cvs-28066/155843)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 7\
**Last updated:** [December 24, 2008, 8:00am UTC](https://www.ruby-forum.com/t/was-re-ruby-cvs-28066/155843 "2008-12-24T08:00:06Z")

</div>

At Wed, 17 Dec 2008 19:57:17 +0900 (JST), I wrote: Modified files: branches/ruby\_1\_8/ChangeLog branches/ruby\_1\_8/string.c ã“ã‚ŒãŒã‚‰ã¿ã®ä¿®æ­£ã§ã™ã€‚ruby\_1\_8 ãƒ–ãƒ©ãƒ³ãƒã® SOAP4R ã¯ç¾è¡Œç‰ˆã§å‡çµ ã—…

---

## [Another nil concern](https://www.ruby-forum.com/t/another-nil-concern/156296)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 4:15am UTC](https://www.ruby-forum.com/t/another-nil-concern/156296 "2008-12-24T04:15:40Z")

</div>

irb(main):012:0\> nil =~ /foo/ =\> false Should’nt it return nil instead? BR nasir

---

## [Name that data structure!](https://www.ruby-forum.com/t/name-that-data-structure/156221)

<div class="topic-metadata">

**Author:** [@simon780](https://www.ruby-forum.com/u/simon780)\
**Replies:** 17\
**Last updated:** [December 24, 2008, 3:43am UTC](https://www.ruby-forum.com/t/name-that-data-structure/156221 "2008-12-24T03:43:27Z")

</div>

I’m using a data structure that I’m sure has been implemented and studied to death several times over… but I don’t know it’s name. The structure is simple: any given node may have one or more previous nodes. Nodes ca…

---

## [Grepper: object-oriented grepping](https://www.ruby-forum.com/t/grepper-object-oriented-grepping/156294)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 3:26am UTC](https://www.ruby-forum.com/t/grepper-object-oriented-grepping/156294 "2008-12-24T03:26:28Z")

</div>

Hi – If you feel the need to do simple object-oriented grepping, have a look at the Grepper class, which is in a project I’ve started on RubyForge (http://rubyforge.org/projects/grepper/). You give a Grepper object a…

---

## [JotBot, a JRuby desktop tool for tracking time](https://www.ruby-forum.com/t/jotbot-a-jruby-desktop-tool-for-tracking-time/156224)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 2:42am UTC](https://www.ruby-forum.com/t/jotbot-a-jruby-desktop-tool-for-tracking-time/156224 "2008-12-24T02:42:37Z")

</div>

The first commercial JRuby desktop application is available. JotBot, a unique “pull” time tracking application, has been released. JotBot leverages the power and agility of JRuby atop several key Java technologies inc…

---

## [Error after install](https://www.ruby-forum.com/t/error-after-install/156231)

<div class="topic-metadata">

**Author:** [@callenmas](https://www.ruby-forum.com/u/callenmas)\
**Replies:** 10\
**Last updated:** [December 24, 2008, 2:12am UTC](https://www.ruby-forum.com/t/error-after-install/156231 "2008-12-24T02:12:22Z")

</div>

I installed Ruby on my RHEL 3 system. I did the following: ./configure make make test make install No errors in the whole process. Now when I try to run irb in /usr/local/bin/irb I’m gettin the following error: $…

---

## [Jruby-1.6 and FFI (and GLPK)](https://www.ruby-forum.com/t/jruby-1-6-and-ffi-and-glpk/155928)

<div class="topic-metadata">

**Author:** [@Maurice\_Diamantini](https://www.ruby-forum.com/u/Maurice_Diamantini)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 12:47am UTC](https://www.ruby-forum.com/t/jruby-1-6-and-ffi-and-glpk/155928 "2008-12-24T00:47:59Z")

</div>

Bonjour à tous ! Thank you for putting FFI in JRuby. If I understand well it’s new possibility, it would allow me to use native C extension (perhaps C++ later ?) directly from a JRuby script as well as a standard Rub…

---

## [Ruby midi problem](https://www.ruby-forum.com/t/ruby-midi-problem/156088)

<div class="topic-metadata">

**Author:** [@rick\_2047](https://www.ruby-forum.com/u/rick_2047)\
**Replies:** 3\
**Last updated:** [December 23, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/ruby-midi-problem/156088 "2008-12-23T22:48:57Z")

</div>

Ok i was going through the book “Ruby practical Projects” and right at the first chapter i had this problem. The first chapter is all about calling the alsa raw midi functions in ruby to play midi from ruby. I think i…

---

## [Re: JRuby 1.1.6 and json-jruby on Tomcat](https://www.ruby-forum.com/t/re-jruby-1-1-6-and-json-jruby-on-tomcat/156275)

<div class="topic-metadata">

**Author:** [@ed\_copony](https://www.ruby-forum.com/u/ed_copony)\
**Replies:** 0\
**Last updated:** [December 23, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/re-jruby-1-1-6-and-json-jruby-on-tomcat/156275 "2008-12-23T20:04:56Z")

</div>

Just for the record, I got around this issue by switching to from json\_jruby to json-pure, but I had to use a patched version of json-pure so it would play nice in our environment: Tomcat is able to find and load th…

---

## [Rjudy](https://www.ruby-forum.com/t/rjudy/156273)

<div class="topic-metadata">

**Author:** [@beho](https://www.ruby-forum.com/u/beho)\
**Replies:** 0\
**Last updated:** [December 23, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/rjudy/156273 "2008-12-23T19:43:11Z")

</div>

Hi, does anyone have experience running rjudy lately (http://raa.ruby-lang.org/project/rjudy/) ? I can’t get over ‘install.rb setup’ phase because of this error: judy\_wrap.c:1211: error: lvalue required as left opera…

---

## [Loading up a hash with variables if they are defined](https://www.ruby-forum.com/t/loading-up-a-hash-with-variables-if-they-are-defined/156265)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 4\
**Last updated:** [December 23, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/loading-up-a-hash-with-variables-if-they-are-defined/156265 "2008-12-23T18:35:16Z")

</div>

Is there a cleaner, more Rubyesque way to do this? Return a hash of the navigation parameters def nav\_params params = {} params\[:prefix\] = @prefix if @prefix params\[:category\_id\] = @category\_id if @category\_…

---

## [Looking for a way to detach attachment from email at arrival](https://www.ruby-forum.com/t/looking-for-a-way-to-detach-attachment-from-email-at-arrival/156269)

<div class="topic-metadata">

**Author:** [@Asif\_Iqbal](https://www.ruby-forum.com/u/Asif_Iqbal)\
**Replies:** 0\
**Last updated:** [December 23, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/looking-for-a-way-to-detach-attachment-from-email-at-arrival/156269 "2008-12-23T18:10:39Z")

</div>

I am looking for a ruby way to receive an email with attachment, detach the attachment, convert it to a URL, insert the url in the body and send the email away to the recipeint. I see the modules ActionMailer and TMai…

---

## [Logfile name format in logging](https://www.ruby-forum.com/t/logfile-name-format-in-logging/156237)

<div class="topic-metadata">

**Author:** [@murraj](https://www.ruby-forum.com/u/murraj)\
**Replies:** 3\
**Last updated:** [December 23, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/logfile-name-format-in-logging/156237 "2008-12-23T17:13:34Z")

</div>

Hi, I am using the “logging” gem for logging. I used the “RollingFile” appender to rotate the log files. When the files are rotated they are saved with the sequential number extension. That is like develeopment.1.lo…

---

## [January Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/156262)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [December 23, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/156262 "2008-12-23T16:47:47Z")

</div>

January '09 Phoenix Ruby U. Group Meeting Date: Monday, January 12, 2008 Time: 6:30 pm - at Happy Camper Studios offices (But come for pizza at 6pm!) Place: Happy Camper Studios 4643 E. Thomas Rd. Suite #3 Phoeni…

---

## [\[Bug #913\](Closed) mathn $B$7$?\>l9g!"(Bsqrt(NaN) $B$,J#AG?t$K$J$k(B](https://www.ruby-forum.com/t/bug-913-closed-mathn-b-7-l9g-bsqrt-nan-b-j-ag-t-k-j-k-b/156247)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 0\
**Last updated:** [December 23, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/bug-913-closed-mathn-b-7-l9g-bsqrt-nan-b-j-ag-t-k-j-k-b/156247 "2008-12-23T12:33:51Z")

</div>

e$B%A%1%C%He(B #913 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.) e$B%+%F%4%je(B libe$B$K%;%C%He(B e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B applied in r20938. http://redmine.ruby-lang.org/issues/show/913

---

## [\[Bug #470\] File::open$B$N%I%-%e%a%s%H(B](https://www.ruby-forum.com/t/bug-470-file-open-b-n-i-e-a-s-h-b/146574)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 2\
**Last updated:** [December 23, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/bug-470-file-open-b-n-i-e-a-s-h-b/146574 "2008-12-23T12:32:40Z")

</div>

Bug #470: File::opene$B$N%I%-%e%a%s%He(B http://redmine.ruby-lang.org/issues/show/470 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: DOC e$B8=\>u$G$Oe(BFile::opene$B$N5sF0$re(Brdoc…

---

## [Jruby-memcache-client project started on GitHub](https://www.ruby-forum.com/t/jruby-memcache-client-project-started-on-github/155987)

<div class="topic-metadata">

**Author:** [@ilan](https://www.ruby-forum.com/u/ilan)\
**Replies:** 9\
**Last updated:** [December 23, 2008, 9:27am UTC](https://www.ruby-forum.com/t/jruby-memcache-client-project-started-on-github/155987 "2008-12-23T09:27:22Z")

</div>

If you’ve been following the thread about MemCache issues in production, you know that this has been bothering me. Well, hopefully, no more! I’ve started a GitHub project to track my work here: Obviously, do not u…

---

## [How to .exe(instalation file) file of a Ruby Qt application](https://www.ruby-forum.com/t/how-to-exe-instalation-file-file-of-a-ruby-qt-application/156233)

<div class="topic-metadata">

**Author:** [@Narasimha\_raju\_N](https://www.ruby-forum.com/u/Narasimha_raju_N)\
**Replies:** 1\
**Last updated:** [December 23, 2008, 9:24am UTC](https://www.ruby-forum.com/t/how-to-exe-instalation-file-file-of-a-ruby-qt-application/156233 "2008-12-23T09:24:53Z")

</div>

Hi all, I am developing an application using Ruby Qt. Now i want to make that application as an installation file so that i can install that application in any system and any platform. Can any one help me how to do…

---

## [\[Bug #919\] tool/file2lastrev.rb$B$G%(%i!\<(B](https://www.ruby-forum.com/t/bug-919-tool-file2lastrev-rb-b-g-i-b/156197)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 3\
**Last updated:** [December 23, 2008, 7:47am UTC](https://www.ruby-forum.com/t/bug-919-tool-file2lastrev-rb-b-g-i-b/156197 "2008-12-23T07:47:19Z")

</div>

Bug #919: tool/file2lastrev.rbe$B$G%(%i!\<e(B http://redmine.ruby-lang.org/issues/show/919 e$B5/I\<\<Te(B: Tadashi S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yuki S., Target version: 1.9.x e$B%=!\<%9$…

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

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