# Ruby

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

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

---

## [Is the Fixnum size difference a problem?](https://www.ruby-forum.com/t/is-the-fixnum-size-difference-a-problem/123902)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 2\
**Last updated:** [December 21, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/is-the-fixnum-size-difference-a-problem/123902 "2007-12-21T23:08:55Z")

</div>

The size of Fixnum in a standard C implementation of Ruby is a machine word minus one bit. I.E. For most 32 bit machines that is 31 bits. (The implementation uses the bottom bit as a flag). Therefore the largest v…

---

## [Rb-appscript 0.5.0 released](https://www.ruby-forum.com/t/rb-appscript-0-5-0-released/123910)

<div class="topic-metadata">

**Author:** [@has](https://www.ruby-forum.com/u/has)\
**Replies:** 0\
**Last updated:** [December 21, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/rb-appscript-0-5-0-released/123910 "2007-12-21T23:06:00Z")

</div>

Announcing the release of rb-appscript 0.5.0, a high-level, user- friendly Apple event bridge that allows you to control scriptable Mac OS X applications using ordinary Ruby scripts: http://rb-appscript.rubyforge.org/…

---

## [Requiring external libraries directly](https://www.ruby-forum.com/t/requiring-external-libraries-directly/123773)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 5\
**Last updated:** [December 21, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/requiring-external-libraries-directly/123773 "2007-12-21T22:09:03Z")

</div>

I want to put all the external libraries I’m using in my project in a folder and require directly from there instead of installing the gem in ruby. MyProject folder ExternalLibraries folder Watir rexml oci8 … my…

---

## [Binary file reading in Ruby](https://www.ruby-forum.com/t/binary-file-reading-in-ruby/123855)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 21, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/binary-file-reading-in-ruby/123855 "2007-12-21T21:10:32Z")

</div>

Hi All, I am trying to read in a binary file of size ‘n’ using: mem\_buf = IO.read(file\_name, n, 0) Where file\_name is an argument to the script. But after the read I observed that the size of the mem\_buf is less tha…

---

## [Starting multiple processes](https://www.ruby-forum.com/t/starting-multiple-processes/123719)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 7\
**Last updated:** [December 21, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/starting-multiple-processes/123719 "2007-12-21T20:56:30Z")

</div>

hello i have to do the following exec("E:\\\\TradingTools\\\\IBController\\ \\IBControllerStart\_customised.bat") 2. application = WIN32OLE.new(“Broker.Application”) I want to start 1 and then continue doing 2. how…

---

## [Autocomplete (Code Completion) for Ruby in OS X's Textmate or Other](https://www.ruby-forum.com/t/autocomplete-code-completion-for-ruby-in-os-xs-textmate-or-other/115525)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [December 21, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/autocomplete-code-completion-for-ruby-in-os-xs-textmate-or-other/115525 "2007-12-21T20:25:21Z")

</div>

Hi, Is there a way to add autocomplete functionality within Textmate for Ruby files? If not, what the best editor or IDE for Ruby on OS X that supports autocomplete? Thanks, ~Phil

---

## [How to Kill iexplore](https://www.ruby-forum.com/t/how-to-kill-iexplore/123882)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/how-to-kill-iexplore/123882 "2007-12-21T20:01:56Z")

</div>

Hi, Can anybody give a code example on how to kill a process using the “image name” (in windows task manager)? is there something like Process.kill\_image(image\_name)? Thanks!

---

## [Autosetting field before validation](https://www.ruby-forum.com/t/autosetting-field-before-validation/123862)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 4\
**Last updated:** [December 21, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/autosetting-field-before-validation/123862 "2007-12-21T19:52:30Z")

</div>

Why this code do not work(permalize is from plug-in): def before\_validation\_on\_create permalink ||= name.permalize unless name.nil? end Regards PS. The method is called but it do not change attribute. How to change…

---

## [Unparenthesized method call with block](https://www.ruby-forum.com/t/unparenthesized-method-call-with-block/196547)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/unparenthesized-method-call-with-block/196547 "2007-12-21T19:01:18Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B0J2\<$G%(%i!\<$b?t;z$b=PNO$5$l$J$$$N$OJQ$G$O$J$$$G$7$g$&$+!#e(B $ ./ruby -ve ‘1.upto 10 {|v| p v }’ ruby 1.9.0 (2007-12-19 patchlevel 0) \[i686-linux\] $ parse.y e$B$K;vee(B cmd\_brace\_block e$B…

---

## [New RCRchive, including new process](https://www.ruby-forum.com/t/new-rcrchive-including-new-process/76918)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 31\
**Last updated:** [December 21, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/new-rcrchive-including-new-process/76918 "2007-12-21T17:42:15Z")

</div>

Hi everyone – The new RCRchive has gone live, at http://www.rcrchive.net. Please note the following important points: We’re starting again, and it’s for Ruby 1.9/2.0 requests only. Yes, I know it’s not a design maste…

---

## [Syntax errors on ext/tk/sample](https://www.ruby-forum.com/t/syntax-errors-on-ext-tk-sample/123857)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 4\
**Last updated:** [December 21, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/syntax-errors-on-ext-tk-sample/123857 "2007-12-21T17:25:51Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B@h$\[$I$N1J0f@h@8$Ne(Bext/tke$B$X$Ne(Bcommit(\[ruby-cvs:21663\], r14426) e$B$G$9$,!"e(Bmake teste$B$Ge(Bsyntax errore$B$,B??t=P$^$9!#e(B e$B\<B:\]$K=P$k%(%i!\<$Oe(Bmake te…

---

## [Problem with case statements](https://www.ruby-forum.com/t/problem-with-case-statements/123854)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 11\
**Last updated:** [December 21, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/problem-with-case-statements/123854 "2007-12-21T17:00:41Z")

</div>

I have an innocent looking code: 54: def find(\*args) 55: options = args.extract\_options! 56: validate\_find\_options(options) 57: case args.first 58: when :first: find\_first(options) 59: w…

---

## [Encode! $B$OJQ49$7$J$$$H$-$K(B \<nil\> $B$K$J$C$F$7$^$&!#(B](https://www.ruby-forum.com/t/encode-b-ojq49-7-j-h-k-b-nil-b-k-j-c-f-7-b/123849)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 6\
**Last updated:** [December 21, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/encode-b-ojq49-7-j-h-k-b-nil-b-k-j-c-f-7-b/123849 "2007-12-21T16:16:07Z")

</div>

e$BCfED$5$s!"$3$s$K$A$O!#e(B test/ruby/test\_transcode.rb e$B$Ne(B 37 e$B9TL$G%(%i!\<$K$J$C$F$7$^$C$F$$$^$9!#e(B assert\_equal('abc'.force\_encoding('Shift\_JIS'), ‘abc’.force\_encoding(‘Shift\_JIS’).encode!(‘Shift\_JIS’)) …

---

## [Making ODBC connections without explicitly coding a password](https://www.ruby-forum.com/t/making-odbc-connections-without-explicitly-coding-a-password/118302)

<div class="topic-metadata">

**Author:** [@anneb](https://www.ruby-forum.com/u/anneb)\
**Replies:** 3\
**Last updated:** [December 21, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/making-odbc-connections-without-explicitly-coding-a-password/118302 "2007-12-21T15:18:57Z")

</div>

We’re developing Ruby programs which read and write from/to DB2 tables on a mainframe. We’re the first people in the company to use Ruby so are rather feeling our way. So far we’ve been using our own IDs and passwor…

---

## [How to use jruby with Apache Jackrabbit](https://www.ruby-forum.com/t/how-to-use-jruby-with-apache-jackrabbit/123861)

<div class="topic-metadata">

**Author:** [@anavso](https://www.ruby-forum.com/u/anavso)\
**Replies:** 0\
**Last updated:** [December 21, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/how-to-use-jruby-with-apache-jackrabbit/123861 "2007-12-21T13:54:20Z")

</div>

hi, I am newbie here, How to use jruby with Apache Jackrabbit, Thanks. my page http://www.softsea.com

---

## [New to ruby](https://www.ruby-forum.com/t/new-to-ruby/123549)

<div class="topic-metadata">

**Author:** [@joshua](https://www.ruby-forum.com/u/joshua)\
**Replies:** 14\
**Last updated:** [December 21, 2007, 9:04am UTC](https://www.ruby-forum.com/t/new-to-ruby/123549 "2007-12-21T09:04:43Z")

</div>

Hey guys, I’m pretty new to ruby. I’ve got a question I want to parse a log file (standard apache log) and look for a couple things. 1270.0.1 - - \[13/Dec/2007:09:44:41 -0600\] “GET /v700.php? GN=MosherHB&UN=mosherhb&U…

---

## [Best GUI toolkit for windows/OSX](https://www.ruby-forum.com/t/best-gui-toolkit-for-windows-osx/123765)

<div class="topic-metadata">

**Author:** [@e\_deleflie](https://www.ruby-forum.com/u/e_deleflie)\
**Replies:** 8\
**Last updated:** [December 21, 2007, 9:02am UTC](https://www.ruby-forum.com/t/best-gui-toolkit-for-windows-osx/123765 "2007-12-21T09:02:58Z")

</div>

Hi, I’m developing a simple little application (with a GUI) in Ruby (newb status). Needs to run windows and OSX (and later on linux). So far I’ve been building it with tcl tk … but I’m wondering if there’s an other …

---

## [Next 1.8.6 patch release? (was Re: 1.9.1$B$N%j%j!\<%9;~4|$K$D$$$F(B)](https://www.ruby-forum.com/t/next-1-8-6-patch-release-was-re-1-9-1-b-n-j-j-9-4-k-d-f-b/121647)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 31\
**Last updated:** [December 21, 2007, 8:18am UTC](https://www.ruby-forum.com/t/next-1-8-6-patch-release-was-re-1-9-1-b-n-j-j-9-4-k-d-f-b/121647 "2007-12-21T08:18:28Z")

</div>

e$B$3$s$P$s$O!#e(B 1.9.1e$B$N%j%j!\<%9$NOC$,=P$F$$$^$9$,!"e(B1.8.6e$B$N%Q%C%A%j%j!\<%9$NJ}$Oe(B e$B$I$&$G$7$g$&$+e(B? o \[ruby-dev:32296\] CGI::Session::FileStore e$B$N%G!\<%?$,2u$l$ke(B e$B$H$$$C$?OC$b$"$j$^$7$?$,!"e(B o…

---

## [Rails 2.0 error script/generate login Account](https://www.ruby-forum.com/t/rails-2-0-error-script-generate-login-account/123829)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 6:29am UTC](https://www.ruby-forum.com/t/rails-2-0-error-script-generate-login-account/123829 "2007-12-21T06:29:46Z")

</div>

Hi, I made the instalation of gems using: Generator gems are also available: gem search -r generator gem install login\_generator script/generate login Then I get this error: pcamacho@Seed:~/Projects/restlocate$ scr…

---

## [Random Positioning of Radio Form Items?](https://www.ruby-forum.com/t/random-positioning-of-radio-form-items/123835)

<div class="topic-metadata">

**Author:** [@garg](https://www.ruby-forum.com/u/garg)\
**Replies:** 2\
**Last updated:** [December 21, 2007, 6:16am UTC](https://www.ruby-forum.com/t/random-positioning-of-radio-form-items/123835 "2007-12-21T06:16:23Z")

</div>

I made a short multiple choice quiz in ruby using erb in an rhtml page. I have an array of arrays: @allanswers = \[\[“thailand”, “jamaica”, “nairobi”, “indonesia”\], \[“lincoln”, “kennedy”, “roosevelt”, “reagan”\], \[“braz…

---

## [Soap wsdl envelope](https://www.ruby-forum.com/t/soap-wsdl-envelope/123836)

<div class="topic-metadata">

**Author:** [@jaredmoody](https://www.ruby-forum.com/u/jaredmoody)\
**Replies:** 0\
**Last updated:** [December 21, 2007, 3:55am UTC](https://www.ruby-forum.com/t/soap-wsdl-envelope/123836 "2007-12-21T03:55:03Z")

</div>

I’m having some trouble getting my SOAP envelope to do what I want and need a little tip. I can’t get the SubscriberCustomField nodes to be anything but blank: Here’s what I want it to look like: \<?xml version="1.0"…

---

## [Rule Engine in Ruby](https://www.ruby-forum.com/t/rule-engine-in-ruby/123637)

<div class="topic-metadata">

**Author:** [@srinivasan](https://www.ruby-forum.com/u/srinivasan)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 2:22am UTC](https://www.ruby-forum.com/t/rule-engine-in-ruby/123637 "2007-12-21T02:22:28Z")

</div>

Hi, I need to use ruby rules engine in my application.I dont the purpose of rules engine.if possible can any of u help me in creating a sample application in rails. or sample application using rails. Regards Srini

---

## [Command-set 0.8.4 Released](https://www.ruby-forum.com/t/command-set-0-8-4-released/123828)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 21, 2007, 1:01am UTC](https://www.ruby-forum.com/t/command-set-0-8-4-released/123828 "2007-12-21T01:01:49Z")

</div>

command-set version 0.8.4 has been released! CommandSet is a interactive program framework. Its focus is a DSL for defining commands, much like Rake or RSpec. The actual interpreter is left as an open question, alth…

---

## [Duration 0.1.0 released](https://www.ruby-forum.com/t/duration-0-1-0-released/123743)

<div class="topic-metadata">

**Author:** [@mhinton](https://www.ruby-forum.com/u/mhinton)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 12:58am UTC](https://www.ruby-forum.com/t/duration-0-1-0-released/123743 "2007-12-21T00:58:33Z")

</div>

I’m thrilled to announce the release of Duration 0.1.0. Duration is a timespan manipulation library that tells you how much time has passed since a certain time, or how long a certain amount of seconds is in more huma…

---

## [OptionParser Question](https://www.ruby-forum.com/t/optionparser-question/123804)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 4\
**Last updated:** [December 21, 2007, 12:48am UTC](https://www.ruby-forum.com/t/optionparser-question/123804 "2007-12-21T00:48:23Z")

</div>

Hello all, I’m using OptionParser to parse command line options. I’ve figured out how to handle options for each flag (i.e. opts.on(’–port PORT’)), but I’m not sure how to handle command line arguments that aren’t …

---

## [Invalid Data Source Name](https://www.ruby-forum.com/t/invalid-data-source-name/123819)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 2\
**Last updated:** [December 21, 2007, 12:46am UTC](https://www.ruby-forum.com/t/invalid-data-source-name/123819 "2007-12-21T00:46:38Z")

</div>

Hello, Does anyone know what causes the “Invalid Data Source Name” exception? I get this from OptionParser. Here’s my code: opts = OptionParser.new opts.on(’–load-file FILE’) do |file| end begin opts.parse!(AR…

---

## [Xml-rpc client result](https://www.ruby-forum.com/t/xml-rpc-client-result/123800)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 7\
**Last updated:** [December 21, 2007, 12:06am UTC](https://www.ruby-forum.com/t/xml-rpc-client-result/123800 "2007-12-21T00:06:13Z")

</div>

I posted this on Nabble but don’t think it made it through to the list. Here’s the q: I can use the xmlrpc library to call a remote Web Service, but the results appear always to be returned as an XML stream. The code …

---

## [Send email using gmail as smtp](https://www.ruby-forum.com/t/send-email-using-gmail-as-smtp/123731)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 3\
**Last updated:** [December 20, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/send-email-using-gmail-as-smtp/123731 "2007-12-20T23:30:42Z")

</div>

hello can i send email thro ruby using gmail as smtp. appreciate any help here. seede

---

## [Join us for Vancouver's 1st RubyCamp @ WorkSpace on January 26th, 2008](https://www.ruby-forum.com/t/join-us-for-vancouvers-1st-rubycamp-workspace-on-january-26th-2008/123820)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/join-us-for-vancouvers-1st-rubycamp-workspace-on-january-26th-2008/123820 "2007-12-20T22:50:50Z")

</div>

Hello Rubyists, You are invited to RubyCamp 2008 in Vancouver on Saturday, January 26th. RubyCamp is an one-day gathering for Rubyists and Railers. When and Where: WorkSpace in downtown Vancouver, B.C., Canada Janu…

---

## [A few easy (?) JRuby 1.1 bugs](https://www.ruby-forum.com/t/a-few-easy-jruby-1-1-bugs/123813)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/a-few-easy-jruby-1-1-bugs/123813 "2007-12-20T22:20:26Z")

</div>

If anyone’s interested in getting involved in JRuby, I’ve posted a list of bugs I think would be good for a first-time JRuby debugger to look at. They range from IO to native code to core classes, but most should be e…

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

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