# Ruby

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

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

---

## [Using qui rather than rbuic for qtdesigner .ui files](https://www.ruby-forum.com/t/using-qui-rather-than-rbuic-for-qtdesigner-ui-files/157653)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [January 21, 2009, 10:58am UTC](https://www.ruby-forum.com/t/using-qui-rather-than-rbuic-for-qtdesigner-ui-files/157653 "2009-01-21T10:58:06Z")

</div>

I’m trying to load .ui files at runtime using the qui extension and WidgetFactory rather than pre-translating the .ui XML file to ruby with rbuic. Here’s a simple program: require 'Qt' require 'qui' a = Qt::App…

---

## [Command line arguments ruby](https://www.ruby-forum.com/t/command-line-arguments-ruby/158216)

<div class="topic-metadata">

**Author:** [@ivmafo](https://www.ruby-forum.com/u/ivmafo)\
**Replies:** 1\
**Last updated:** [January 21, 2009, 9:13am UTC](https://www.ruby-forum.com/t/command-line-arguments-ruby/158216 "2009-01-21T09:13:20Z")

</div>

argumentos en linea de comando Posted by Foreero I. (ivmafo) on 20.01.2009 17:02 Hola, me gustaria saber si existe alguna forma de generar mis propios argumentos en una linea de comando . Algo asi como como se usa el…

---

## [Custom ftp server with Apache mina](https://www.ruby-forum.com/t/custom-ftp-server-with-apache-mina/158264)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 9:08am UTC](https://www.ruby-forum.com/t/custom-ftp-server-with-apache-mina/158264 "2009-01-21T09:08:03Z")

</div>

Hi, I wondered if anyone had developed a custom ftp server with Apache Mina’s FtpServer and JRuby. I need to authenticate users with data in a postgresql database, and the files to display for each user is also comin…

---

## [\[Bug:trunk\] Array#zip cannot accept enumerables as arguments](https://www.ruby-forum.com/t/bug-trunk-array-zip-cannot-accept-enumerables-as-arguments/158196)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 1\
**Last updated:** [January 21, 2009, 6:47am UTC](https://www.ruby-forum.com/t/bug-trunk-array-zip-cannot-accept-enumerables-as-arguments/158196 "2009-01-21T06:47:29Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B In message “\[ruby-cvs:28896\] Ruby:r21678 (trunk): \* array.c (take\_items), enum.c (enum\_zip): tries to convert to” on Jan.20,2009 06:47:50, removed\_email\_address@domain.…

---

## [Efficient access of instance variables](https://www.ruby-forum.com/t/efficient-access-of-instance-variables/158240)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [January 21, 2009, 5:25am UTC](https://www.ruby-forum.com/t/efficient-access-of-instance-variables/158240 "2009-01-21T05:25:36Z")

</div>

I’m having my first extended day working with classes - trying to convert some functioning methods in my current project to classes. I’m looking for a way to call a class instance and get back a couple of its instance…

---

## [Minitest 1.3.1 Released](https://www.ruby-forum.com/t/minitest-1-3-1-released/158238)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [January 21, 2009, 4:33am UTC](https://www.ruby-forum.com/t/minitest-1-3-1-released/158238 "2009-01-21T04:33:00Z")

</div>

minitest version 1.3.1 has been released! http://rubyforge.org/projects/bfts minitest/unit is a small and fast replacement for ruby’s huge and slow test/unit. This is meant to be clean and easy to use both as a regul…

---

## [Cannot get attr\_accessor to work](https://www.ruby-forum.com/t/cannot-get-attr-accessor-to-work/158251)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 9\
**Last updated:** [January 21, 2009, 3:50am UTC](https://www.ruby-forum.com/t/cannot-get-attr-accessor-to-work/158251 "2009-01-21T03:50:14Z")

</div>

I’ve been staring at this for a couple of hours, and I cannot crack the nut. This SHOULD work, but I’m obviously screwing up. Just cannot see where. I’m carefully following several examples, but…I cannot get access to…

---

## [\[Feature #1029\] \\C-z as an EOF](https://www.ruby-forum.com/t/feature-1029-c-z-as-an-eof/158210)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 3\
**Last updated:** [January 21, 2009, 3:41am UTC](https://www.ruby-forum.com/t/feature-1029-c-z-as-an-eof/158210 "2009-01-21T03:41:24Z")

</div>

Feature #1029: \\C-z as an EOF http://redmine.ruby-lang.org/issues/show/1029 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: core, Target version: 1.9.x http://pc11.2ch.net/test/rea…

---

## [Flay 1.1.0 Released](https://www.ruby-forum.com/t/flay-1-1-0-released/158246)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 1:17am UTC](https://www.ruby-forum.com/t/flay-1-1-0-released/158246 "2009-01-21T01:17:58Z")

</div>

flay version 1.1.0 has been released! http://ruby.sadi.st/ http://rubyforge.org/projects/seattlerb Flay analyzes ruby code for structural similarities. Differences in literal values, variable, class, method names, wh…

---

## [Minitest/spec: must\_include backwards?](https://www.ruby-forum.com/t/minitest-spec-must-include-backwards/158187)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [January 21, 2009, 1:13am UTC](https://www.ruby-forum.com/t/minitest-spec-must-include-backwards/158187 "2009-01-21T01:13:36Z")

</div>

Hello, In minitest/spec (version 1.3.0), the must\_include assertion is backwards: require ‘rubygems’ require ‘minitest/spec’ MiniTest::Unit.autorun describe ‘foo’ do it ‘bar’ do 5.must\_include \[5\] # \<== passes …

---

## [Ruby2ruby 1.2.2 Released](https://www.ruby-forum.com/t/ruby2ruby-1-2-2-released/158242)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 12:56am UTC](https://www.ruby-forum.com/t/ruby2ruby-1-2-2-released/158242 "2009-01-21T00:56:53Z")

</div>

ruby2ruby version 1.2.2 has been released! http://seattlerb.rubyforge.org/ http://rubyforge.org/projects/seattlerb ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps. This makes mak…

---

## [Ruby\_parser 2.0.2 Released](https://www.ruby-forum.com/t/ruby-parser-2-0-2-released/158244)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 12:51am UTC](https://www.ruby-forum.com/t/ruby-parser-2-0-2-released/158244 "2009-01-21T00:51:38Z")

</div>

ruby\_parser version 2.0.2 has been released! http://parsetree.rubyforge.org/ ruby\_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same a…

---

## [Possible to get C# code/algorithm translated to Ruby code](https://www.ruby-forum.com/t/possible-to-get-c-code-algorithm-translated-to-ruby-code/158239)

<div class="topic-metadata">

**Author:** [@kamaljeetsinghsaini](https://www.ruby-forum.com/u/kamaljeetsinghsaini)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 12:30am UTC](https://www.ruby-forum.com/t/possible-to-get-c-code-algorithm-translated-to-ruby-code/158239 "2009-01-21T00:30:33Z")

</div>

Can someone please help in translating the following C# code to Ruby code.The following code bascially is reading data from a “.text” binary data file and then turns that into “.bmp” image of 24 bit. Bitmap…

---

## [Rails console output shows "\\n" rather than putting in new line? is there a way to change this?](https://www.ruby-forum.com/t/rails-console-output-shows-n-rather-than-putting-in-new-line-is-there-a-way-to-change-this/158225)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [January 20, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/rails-console-output-shows-n-rather-than-putting-in-new-line-is-there-a-way-to-change-this/158225 "2009-01-20T23:35:29Z")

</div>

Hi, I note rails console shows “\\n” rather than putting in new line? For example: ?\> Category.find(:first).to\_yaml =\> “— !ruby/object:Category \\nattributes: \\n updated\_at: 2009-01-20 03:39:22\\n tax\_item\_id: \\n categ…

---

## [Problems with text() and REXML](https://www.ruby-forum.com/t/problems-with-text-and-rexml/158219)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/problems-with-text-and-rexml/158219 "2009-01-20T23:30:48Z")

</div>

I’m finding that in REXML, the XPath selector “//abstract//style” correctly selects nodes in the tree, but “//abstract//style//text()” does not then extract the text from those nodes. Is this a known problem with XPat…

---

## [ZenTest 3.11.1 Released](https://www.ruby-forum.com/t/zentest-3-11-1-released/158235)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/zentest-3-11-1-released/158235 "2009-01-20T23:16:03Z")

</div>

ZenTest version 3.11.1 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools and 1 library: ze…

---

## [Hoe 1.8.3 Released](https://www.ruby-forum.com/t/hoe-1-8-3-released/158233)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/hoe-1-8-3-released/158233 "2009-01-20T23:11:55Z")

</div>

hoe version 1.8.3 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…

---

## [Gsub!("\\n","\\n")](https://www.ruby-forum.com/t/gsub-n-n/158169)

<div class="topic-metadata">

**Author:** [@simon1tan](https://www.ruby-forum.com/u/simon1tan)\
**Replies:** 9\
**Last updated:** [January 20, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/gsub-n-n/158169 "2009-01-20T19:17:54Z")

</div>

Hi all, I’m not sure why but I assumed gsub! would allow me to replace \\n with line feeds or \\r for carriage returns. How do I gsub! and replace everything with a nonvisible character like newline? I was using this re…

---

## [Issue using method 'odd?'](https://www.ruby-forum.com/t/issue-using-method-odd/158217)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 3\
**Last updated:** [January 20, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/issue-using-method-odd/158217 "2009-01-20T18:30:42Z")

</div>

I keep getting a no method error when trying to find out if a count is an odd number. I had tested the code with actual numbers and it works fine. It seems like it is not liking how I am trying to use the method ‘odd?…

---

## [Argumentos en linea de comando](https://www.ruby-forum.com/t/argumentos-en-linea-de-comando/158213)

<div class="topic-metadata">

**Author:** [@ivmafo](https://www.ruby-forum.com/u/ivmafo)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/argumentos-en-linea-de-comando/158213 "2009-01-20T17:58:18Z")

</div>

Hola, me gustaria saber si existe alguna forma de generar mis propios argumentos en una linea de comando . Algo asi como como se usa el ARGV: $ ruby miscript.rb --miargumento1=1 --miargumento2=2 … para poder usar las…

---

## [QA - Ruby -Watir Opportunity](https://www.ruby-forum.com/t/qa-ruby-watir-opportunity/158212)

<div class="topic-metadata">

**Author:** [@leahann](https://www.ruby-forum.com/u/leahann)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/qa-ruby-watir-opportunity/158212 "2009-01-20T16:41:45Z")

</div>

Hi All, I really need some help here. I am a recruiter and my client has been looking for QAs with Ruby -Watir experience. They are located at San Francisco, CA. Pay is as per market rate. Please mail me back at remo…

---

## [How can we call a method without using . operator](https://www.ruby-forum.com/t/how-can-we-call-a-method-without-using-operator/158130)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 9\
**Last updated:** [January 20, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/how-can-we-call-a-method-without-using-operator/158130 "2009-01-20T16:28:32Z")

</div>

Hi all, This might sound a bit wierd but I would like to know if there are any other ways of calling a method without using . operator or calling send(). Is it possible using blocks or something else?

---

## [Class \<\< self](https://www.ruby-forum.com/t/class-self/158186)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 1:51pm UTC](https://www.ruby-forum.com/t/class-self/158186 "2009-01-20T13:51:33Z")

</div>

Hi I have code like class A class \<\<self def first ------- end def second ------ end end end What I understood is now the def first and second becomes class methods of class A…Am I right? Is that its only us…

---

## [Remember me](https://www.ruby-forum.com/t/remember-me/158190)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/remember-me/158190 "2009-01-20T12:25:03Z")

</div>

HI all In my application, in login page by entering the details username and password and check the checkbox REMEMBER ME. the system has to remember the details and when ever i open it again instead of showing login…

---

## [Is it possible to override a 'read only' environmental variable like $"?](https://www.ruby-forum.com/t/is-it-possible-to-override-a-read-only-environmental-variable-like/158180)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 11:50am UTC](https://www.ruby-forum.com/t/is-it-possible-to-override-a-read-only-environmental-variable-like/158180 "2009-01-20T11:50:41Z")

</div>

Hi guys/gals, I am trying to write a method to give the full paths of all files loaded into a program when a require statement is executed. I would like to be able to get the same result each time a “require ‘file’” …

---

## [Begining with Ruby](https://www.ruby-forum.com/t/begining-with-ruby/158184)

<div class="topic-metadata">

**Author:** [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 10:29am UTC](https://www.ruby-forum.com/t/begining-with-ruby/158184 "2009-01-20T10:29:28Z")

</div>

Hi All, I am new to ruby and i want to develop an web service in ruby that will be invoked by the PHP application and will return the output to the PHP variable. Please suggest me how i should proceed in terms of lea…

---

## [Load C extension in Mac OS X linked a a dylib](https://www.ruby-forum.com/t/load-c-extension-in-mac-os-x-linked-a-a-dylib/154546)

<div class="topic-metadata">

**Author:** [@elathan](https://www.ruby-forum.com/u/elathan)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 10:11am UTC](https://www.ruby-forum.com/t/load-c-extension-in-mac-os-x-linked-a-a-dylib/154546 "2009-01-20T10:11:41Z")

</div>

Hello! I noticed that Ruby is refusing to load an extension in Mac OS X (Leopard, 2.5.5), unless it is a bundle. I used dtruss to confirm that Ruby is looking only for .rb and .bundle files to load. Is there a specia…

---

## [How to access the given url with parameters in your rails ap](https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158181)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 10:03am UTC](https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158181 "2009-01-20T10:03:04Z")

</div>

Hi All, I have a problem. How can i use my rails created URL in my application. I Explain it briefly with an Example what i have to do . First please see the website (www.rails2u.com/bgmaker). I have to make the Imag…

---

## [RubyForge downtime](https://www.ruby-forum.com/t/rubyforge-downtime/158172)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 5:38am UTC](https://www.ruby-forum.com/t/rubyforge-downtime/158172 "2009-01-20T05:38:32Z")

</div>

Hi all - I’m taking RubyForge offline for a bit for a database upgrade. svn/ git/lists/gem installs/virtual hosts should still be available; only the PHP part of the site should be affected. Yours, Tom

---

## [Installing rsruby gem on windows](https://www.ruby-forum.com/t/installing-rsruby-gem-on-windows/158108)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 2:22am UTC](https://www.ruby-forum.com/t/installing-rsruby-gem-on-windows/158108 "2009-01-20T02:22:32Z")

</div>

Hi, I installed R on my Windows machine, and set up an environment variable called R\_HOME that points to the folder where the R.exe file is: C:\\Program Files\\R\\R-2.8.1\\bin But when I just tried to run the gem command…

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

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