# Ruby

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

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

---

## [Need a bit of help](https://www.ruby-forum.com/t/need-a-bit-of-help/178778)

<div class="topic-metadata">

**Author:** [@bguan](https://www.ruby-forum.com/u/bguan)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/need-a-bit-of-help/178778 "2009-11-11T17:21:40Z")

</div>

Hey guys im trying to get this to work but I can’t for reason, can you look over it and tell me the problem, the first part will work 1-9 but when I do the array variable to 1-1000 I cant seem to get it to do it. Plea…

---

## [JRuby 1.4 embedding, '$!' global exception variable - possible RedBridge bug?](https://www.ruby-forum.com/t/jruby-1-4-embedding-global-exception-variable-possible-redbridge-bug/178763)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/jruby-1-4-embedding-global-exception-variable-possible-redbridge-bug/178763 "2009-11-11T16:18:26Z")

</div>

I’m getting some very strange behavior requiring the standard Ruby cgi library running embedded in a Java program using RedBridge with JRuby 1.4.0. This Java program will reproduce the problem: import org.jruby.embed…

---

## [Calling a subprocess with specific arguments and capturing its output?](https://www.ruby-forum.com/t/calling-a-subprocess-with-specific-arguments-and-capturing-its-output/178761)

<div class="topic-metadata">

**Author:** [@Dan\_Q](https://www.ruby-forum.com/u/Dan_Q)\
**Replies:** 8\
**Last updated:** [November 11, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/calling-a-subprocess-with-specific-arguments-and-capturing-its-output/178761 "2009-11-11T16:02:02Z")

</div>

Hi. I haven’t written Ruby in a while, and I was wondering if someone could help with a problem I’ve never managed to solve. I’m writing a shell script that takes filenames as its arguments, and calls “du” to get thei…

---

## [The next generation](https://www.ruby-forum.com/t/the-next-generation/178805)

<div class="topic-metadata">

**Author:** [@AutoBlow](https://www.ruby-forum.com/u/AutoBlow)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/the-next-generation/178805 "2009-11-11T15:40:22Z")

</div>

You wouldn’t use a cell phone today with mid 90’s technology. And you would definitely laugh at the clunky quaintness of an early Walkman. So when it comes to sucking machine sex toys, why would you want to use equipm…

---

## [Likes Michael Jordan? believed that you also like Air Jordans The first anniversary for store:2pair](https://www.ruby-forum.com/t/likes-michael-jordan-believed-that-you-also-like-air-jordans-the-first-anniversary-for-store-2pair/178801)

<div class="topic-metadata">

**Author:** [@jordad](https://www.ruby-forum.com/u/jordad)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/likes-michael-jordan-believed-that-you-also-like-air-jordans-the-first-anniversary-for-store-2pair/178801 "2009-11-11T14:50:37Z")

</div>

Likes Michael Jordan? believed that you also like Air Jordans The first anniversary for store:2pairs=$79.99 welcome to http://www.crocseshop.com Eshop Eshop.

---

## [Changing screen resolution through Ruby](https://www.ruby-forum.com/t/changing-screen-resolution-through-ruby/178751)

<div class="topic-metadata">

**Author:** [@Saturn](https://www.ruby-forum.com/u/Saturn)\
**Replies:** 5\
**Last updated:** [November 11, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/changing-screen-resolution-through-ruby/178751 "2009-11-11T13:20:28Z")

</div>

Hi All, Thanks in advance to all the helpers. I want to change screen resolution using ruby or selenium. Please help me and let me know if it is possible in either way.

---

## [FXRuby table and color questions](https://www.ruby-forum.com/t/fxruby-table-and-color-questions/178707)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 2\
**Last updated:** [November 11, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/fxruby-table-and-color-questions/178707 "2009-11-11T12:17:50Z")

</div>

Hi people! Does the Fox toolkit support partial transparency? None of the documentation I read mentions it explicitly, but there’s this page here: http://www.fxruby.org/doc/ch03s05.html showing (at the bottom) the r…

---

## [File size vs. Directory size problem](https://www.ruby-forum.com/t/file-size-vs-directory-size-problem/178724)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 10:43am UTC](https://www.ruby-forum.com/t/file-size-vs-directory-size-problem/178724 "2009-11-11T10:43:02Z")

</div>

Hi all, Got a bit of a problem I dont know how to go about. Basically my script takes 2 different directories, puts each file/sub directory into an array for each, sorts the array, compares them, and then spits out w…

---

## [Connection failure message trying to run my ruby file](https://www.ruby-forum.com/t/connection-failure-message-trying-to-run-my-ruby-file/178780)

<div class="topic-metadata">

**Author:** [@shekarls](https://www.ruby-forum.com/u/shekarls)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 8:14am UTC](https://www.ruby-forum.com/t/connection-failure-message-trying-to-run-my-ruby-file/178780 "2009-11-11T08:14:18Z")

</div>

Hi All, When I am trying to run an ruby automation script, i get connection failed error.please check below for complete stacktrace. D:/Selenium/RUBY/lib/ruby/1.8/net/http.rb:564:in \`initialize’: A connection atte m…

---

## [IronRuby and Me](https://www.ruby-forum.com/t/ironruby-and-me/178766)

<div class="topic-metadata">

**Author:** [@Martin\_Smith](https://www.ruby-forum.com/u/Martin_Smith)\
**Replies:** 6\
**Last updated:** [November 11, 2009, 4:00am UTC](https://www.ruby-forum.com/t/ironruby-and-me/178766 "2009-11-11T04:00:56Z")

</div>

Hello again (sorry for the double post), We’ve noticed some slightly odd behavior. IronRuby, it seems, won’t mangle methods that have the word “Me” in them, so if I have a method: UncheckMeAndMyChildren, uncheck\_me\_a…

---

## [Upr - Upload Progress for Rack (initial release)](https://www.ruby-forum.com/t/upr-upload-progress-for-rack-initial-release/178771)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 2:39am UTC](https://www.ruby-forum.com/t/upr-upload-progress-for-rack-initial-release/178771 "2009-11-11T02:39:33Z")

</div>

upr is Rack middleware that allows browser-side upload progress monitoring. It is based-on the “mongrel\_upload\_progress” module, but allows any Moneta backing store in addition to DRb. There is also a packaged examp…

---

## [Rake question with mysql](https://www.ruby-forum.com/t/rake-question-with-mysql/178748)

<div class="topic-metadata">

**Author:** [@Kevin\_SSLim](https://www.ruby-forum.com/u/Kevin_SSLim)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 1:28am UTC](https://www.ruby-forum.com/t/rake-question-with-mysql/178748 "2009-11-11T01:28:45Z")

</div>

After deploy:update with Capistrano on our production site, issuing ‘jruby -S rake RAILS\_ENV=production db:schema:load’ did not setup the db correctly. All entries created with the rails app now have ‘id’ field of val…

---

## [Localmemcache-0.4.4: Bugfixes for OS X and Autorepair](https://www.ruby-forum.com/t/localmemcache-0-4-4-bugfixes-for-os-x-and-autorepair/178759)

<div class="topic-metadata">

**Author:** [@Sven\_CSKoehler](https://www.ruby-forum.com/u/Sven_CSKoehler)\
**Replies:** 0\
**Last updated:** [November 10, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/localmemcache-0-4-4-bugfixes-for-os-x-and-autorepair/178759 "2009-11-10T23:38:08Z")

</div>

Version 0.4.4 brings fixes for coredumps on OS X and bugs in the autorepair (now also better covered by tests). New methods: shm\_status, has\_key? (Thanks to Max Schöfmann and Florian Dütsch for feedback/bug reports.) …

---

## [Installing Rails: MySQL issue?](https://www.ruby-forum.com/t/installing-rails-mysql-issue/178750)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 8\
**Last updated:** [November 10, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/installing-rails-mysql-issue/178750 "2009-11-10T20:59:24Z")

</div>

Hello, I am installing Rails, with MySQL, based on the steps found at: The step for MySQL "Now that we have the Rails framework installed on our system, we need a database connector, in order to connect our Rails f…

---

## [Create HTML files using RUBY](https://www.ruby-forum.com/t/create-html-files-using-ruby/178460)

<div class="topic-metadata">

**Author:** [@skrithikaa](https://www.ruby-forum.com/u/skrithikaa)\
**Replies:** 22\
**Last updated:** [November 10, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/create-html-files-using-ruby/178460 "2009-11-10T20:50:24Z")

</div>

Hi, How do you create HTML files using RUBY. I have a requirement where I need to set color and font of the text, and also provide formatting options for tables having different colors for rows and border(on/off). Ca…

---

## [Prawn 0.6 Released](https://www.ruby-forum.com/t/prawn-0-6-released/178752)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [November 10, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/prawn-0-6-released/178752 "2009-11-10T19:44:01Z")

</div>

\[This announcement is about Prawn, a pure ruby PDF generation library that is probably about as awesome as your mom\] Hi folks, Prawn 0.6 is now ready for public consumption, and it’s jam packed with things people hav…

---

## [Called\_from 0.1.0 released](https://www.ruby-forum.com/t/called-from-0-1-0-released/178651)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 5\
**Last updated:** [November 10, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/called-from-0-1-0-released/178651 "2009-11-10T16:59:19Z")

</div>

I releaded called\_from 0.1.0. Kernel#caller() is very useful, but very slow. ‘called\_from’ solves this problem. About ‘called\_from’ provides called\_from() global function which gets filename and line number of call…

---

## [Camelize](https://www.ruby-forum.com/t/camelize/178671)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 11\
**Last updated:** [November 10, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/camelize/178671 "2009-11-10T16:35:27Z")

</div>

Hi I would like to get output as “Re-Open” for the input “re-open” And I tried “re-open”.camelize =\> “Re-open” Could you please tell how can I do this? Thanks in advance Sijo

---

## [FileString - request for comments](https://www.ruby-forum.com/t/filestring-request-for-comments/178654)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 14\
**Last updated:** [November 10, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/filestring-request-for-comments/178654 "2009-11-10T15:44:03Z")

</div>

Hi there I just put FileString on github: GitHub - apeiros/filestring: Treat files like plain normal strings FileString is a class that wraps a path on the filesystem (a file) and provides an exact copy of the String …

---

## [Ruby-Tk LIbraries Runtime Library 3.0 and Gestalt Items](https://www.ruby-forum.com/t/ruby-tk-libraries-runtime-library-3-0-and-gestalt-items/178565)

<div class="topic-metadata">

**Author:** [@Arndt\_Roger\_S](https://www.ruby-forum.com/u/Arndt_Roger_S)\
**Replies:** 4\
**Last updated:** [November 10, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/ruby-tk-libraries-runtime-library-3-0-and-gestalt-items/178565 "2009-11-10T15:36:26Z")

</div>

Hi Ruby commuters It is my distinct pleasure to announce the availability of Runtime Library 3.0 and Gestalt Items 1.1 for Ruby-tk and Ruby. Both libraries are written in Tcl/Tk \>= version 8.4. Ruby-tk based Ruby Wr…

---

## [Trip down memory lane](https://www.ruby-forum.com/t/trip-down-memory-lane/178634)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 7\
**Last updated:** [November 10, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/trip-down-memory-lane/178634 "2009-11-10T15:34:05Z")

</div>

Hi – I’ve been hunting through old RCRs, and came across my favorite rejected one: http://oldrcrs.rubypal.com/rejected.html#rcr120 :slight\_smile: Still trying to find that map(:sym) one… David – The Ruby …

---

## [wxRuby + rcairo ... are driving me mad](https://www.ruby-forum.com/t/wxruby-rcairo-are-driving-me-mad/178648)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [November 10, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/wxruby-rcairo-are-driving-me-mad/178648 "2009-11-10T14:10:58Z")

</div>

How is it possible to use Wx::GraphicsContext#get\_native\_context with rcairo? Let me quote the wxRuby documentation from http://wxruby.rubyforge.org/doc/graphicscontext.html#GraphicsContext\_getnativecontext “Returns t…

---

## [(Installed Ruby 1.9.1) can't get gem working](https://www.ruby-forum.com/t/installed-ruby-1-9-1-cant-get-gem-working/178732)

<div class="topic-metadata">

**Author:** [@michelle1](https://www.ruby-forum.com/u/michelle1)\
**Replies:** 2\
**Last updated:** [November 10, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/installed-ruby-1-9-1-cant-get-gem-working/178732 "2009-11-10T14:02:29Z")

</div>

Hello, RUBY VERSION: ruby 1.9.1 (2008-10-28 revision 19983) \[i386-mswin32\] SYSTEM(S): Windows XP Laptop; Windows XP Desktop PROBLEM: ‘gem’ does not work on my desktop but does on my laptop despite identical installat…

---

## [Errors when using sqlite3's query and prepare methods](https://www.ruby-forum.com/t/errors-when-using-sqlite3s-query-and-prepare-methods/178706)

<div class="topic-metadata">

**Author:** [@cluettr](https://www.ruby-forum.com/u/cluettr)\
**Replies:** 2\
**Last updated:** [November 10, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/errors-when-using-sqlite3s-query-and-prepare-methods/178706 "2009-11-10T13:59:15Z")

</div>

Hello all, I’m trying to prepare a sql statement to send to sqlite3 via ruby and am getting errors when using the query and prepare methods. Here’s my code: #!/usr/bin/env ruby require ‘sqlite3’ db = SQLite3::Data…

---

## [Wrong number of arguments in initialize](https://www.ruby-forum.com/t/wrong-number-of-arguments-in-initialize/178716)

<div class="topic-metadata">

**Author:** [@arti\_singh](https://www.ruby-forum.com/u/arti_singh)\
**Replies:** 3\
**Last updated:** [November 10, 2009, 10:57am UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-in-initialize/178716 "2009-11-10T10:57:32Z")

</div>

I tried to initalize my methods and I get an error def initialize(name,browser,username) @s\_name=name @browser=browser @username=username end #def initialize(dc) attr\_accessor :name,:browser,:username C:/RubyInsta…

---

## [RubyForge and RubyGems and GemCutter](https://www.ruby-forum.com/t/rubyforge-and-rubygems-and-gemcutter/177943)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 4\
**Last updated:** [November 10, 2009, 3:44am UTC](https://www.ruby-forum.com/t/rubyforge-and-rubygems-and-gemcutter/177943 "2009-11-10T03:44:43Z")

</div>

Hi all - This has been announced in various forums, but we should have sent a message here in the initial flurry. To summarize, some major gem indexes are going to be consolidated - GemCutter and gems.rubyforge.org …

---

## [Readout and Edit Cookies](https://www.ruby-forum.com/t/readout-and-edit-cookies/178711)

<div class="topic-metadata">

**Author:** [@daduke](https://www.ruby-forum.com/u/daduke)\
**Replies:** 1\
**Last updated:** [November 9, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/readout-and-edit-cookies/178711 "2009-11-09T23:18:24Z")

</div>

First I send a Form with Net::HTTP.post\_form. Now I want to readout a Cookie and later edit it! How can I make this?

---

## [wxRuby - tabular data with extra widgets](https://www.ruby-forum.com/t/wxruby-tabular-data-with-extra-widgets/178718)

<div class="topic-metadata">

**Author:** [@inertia](https://www.ruby-forum.com/u/inertia)\
**Replies:** 0\
**Last updated:** [November 9, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/wxruby-tabular-data-with-extra-widgets/178718 "2009-11-09T22:49:44Z")

</div>

Hi, I am needing to display a table of data. I need to be able to sort the columns by clicking the label at the top (ideally such that one click sorts ascending, the next descending etc etc) I need grid lines. I nee…

---

## [Understanding Threads](https://www.ruby-forum.com/t/understanding-threads/178713)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 3\
**Last updated:** [November 9, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/understanding-threads/178713 "2009-11-09T22:25:10Z")

</div>

I am writing an app that retrieves multiple web pages in one method call. Threading has improved performance drastically for me, but I need some help understanding how exactly the call to join is going to affect my pr…

---

## [Code Review: InstructionRefactoring](https://www.ruby-forum.com/t/code-review-instructionrefactoring/178715)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [November 9, 2009, 10:22pm UTC](https://www.ruby-forum.com/t/code-review-instructionrefactoring/178715 "2009-11-09T22:22:49Z")

</div>

tfpt review “/shelveset:InstructionRefactoring;REDMOND\\tomat” DLR, Python Ruby: Makes all instruction classes internal except for the base Instruction class. Adds InstructionList class that represents incomplete instr…

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

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