# Ruby

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

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

---

## [String from code points?](https://www.ruby-forum.com/t/string-from-code-points/167007)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 3\
**Last updated:** [May 27, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/string-from-code-points/167007 "2009-05-27T16:59:46Z")

</div>

Given a(n array of) numeric value(s) representing (a) Unicode code point(s), how do I get a string of the indicated character(s)? Integer#chr doesn’t seem to know about encodings; it just outputs the byte value (and f…

---

## [Select Options](https://www.ruby-forum.com/t/select-options/168946)

<div class="topic-metadata">

**Author:** [@Rachel\_N](https://www.ruby-forum.com/u/Rachel_N)\
**Replies:** 1\
**Last updated:** [May 27, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/select-options/168946 "2009-05-27T16:55:31Z")

</div>

Hello All, I have some code per View, Controller, Model (below). The issue I have is, in the View, I need to pass the category\[‘wsc\_uid\_pk’\] data returned from \<% @list\_service\_categories.each do |category| %\> to the…

---

## [Cryptogram II (#206)](https://www.ruby-forum.com/t/cryptogram-ii-206/168596)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 16\
**Last updated:** [May 27, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/cryptogram-ii-206/168596 "2009-05-27T15:25:06Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Updating rubygems and rake for ruby-1.9](https://www.ruby-forum.com/t/updating-rubygems-and-rake-for-ruby-1-9/168759)

<div class="topic-metadata">

**Author:** [@chauk-mean](https://www.ruby-forum.com/u/chauk-mean)\
**Replies:** 4\
**Last updated:** [May 27, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/updating-rubygems-and-rake-for-ruby-1-9/168759 "2009-05-27T13:20:59Z")

</div>

Hi, There have been updates to rubygems and rake recently. I’m just wondering if it is safe to update my ruby-1.9.1-p129 installation with these updates ? Thanks for any clarification on this topic. Chauk-Mean.

---

## [String representing relative file name, adding (meta) data?](https://www.ruby-forum.com/t/string-representing-relative-file-name-adding-meta-data/168806)

<div class="topic-metadata">

**Author:** [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Replies:** 9\
**Last updated:** [May 27, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/string-representing-relative-file-name-adding-meta-data/168806 "2009-05-27T12:25:46Z")

</div>

Hello, just getting started into Ruby, I’m working with relative filenames as strings (e.g. “foo/bar/baz.bla”) which I’ve to pass around a lot. Sometimes I’ve those strings in simply arrays, sometimes I use them in a …

---

## [Problem in accessing MySQL](https://www.ruby-forum.com/t/problem-in-accessing-mysql/168915)

<div class="topic-metadata">

**Author:** [@bhaskar](https://www.ruby-forum.com/u/bhaskar)\
**Replies:** 0\
**Last updated:** [May 27, 2009, 11:16am UTC](https://www.ruby-forum.com/t/problem-in-accessing-mysql/168915 "2009-05-27T11:16:03Z")

</div>

Hi, I’m new to ruby and facing the following problem in connecting to MySQL from my script. Here is the script: #!/usr/bin/ruby -w #~ # simple.rb - simple MySQL script using Ruby DBI module gem “mysql” gem “dbi” …

---

## [Online docs for OpenSSL](https://www.ruby-forum.com/t/online-docs-for-openssl/168914)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 0\
**Last updated:** [May 27, 2009, 11:10am UTC](https://www.ruby-forum.com/t/online-docs-for-openssl/168914 "2009-05-27T11:10:57Z")

</div>

Hello. The official OpenSSL documentation seems to be incomplete: http://www.ruby-doc.org/stdlib/libdoc/openssl/rdoc/index.html I don’t see any usefull methods: RSA.new(\[size | encoded\_key\] \[, pass\]) â†’ rsa rsa.pub…

---

## [Marshaling URI between 1.8 and 1.9](https://www.ruby-forum.com/t/marshaling-uri-between-1-8-and-1-9/167265)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [May 27, 2009, 10:13am UTC](https://www.ruby-forum.com/t/marshaling-uri-between-1-8-and-1-9/167265 "2009-05-27T10:13:38Z")

</div>

e$B5$$,$D$$$?$s$G$9$,!"e(BURI e$B%\*%V%8%'%/%H$re(B marshal e$B$Ge(B 1.9 e$B$+$ie(B 1.8 e$B$K0$=$&$H$9$k$H\<:GT$7$^$9!#e(B % ruby -v ruby 1.9.2dev (2009-05-02 trunk 23326) \[i686-linux\] % ruby-1.8 -v ruby 1.8.8dev (20…

---

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

<div class="topic-metadata">

**Author:** [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Replies:** 0\
**Last updated:** [May 27, 2009, 10:03am UTC](https://www.ruby-forum.com/t/error/168904 "2009-05-27T10:03:21Z")

</div>

At the time of running my application it give the reeor 126: The specified module could not be found. - c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so

---

## [Ruby Technologist - Estes Park Colorado](https://www.ruby-forum.com/t/ruby-technologist-estes-park-colorado/168896)

<div class="topic-metadata">

**Author:** [@dbf](https://www.ruby-forum.com/u/dbf)\
**Replies:** 0\
**Last updated:** [May 27, 2009, 7:22am UTC](https://www.ruby-forum.com/t/ruby-technologist-estes-park-colorado/168896 "2009-05-27T07:22:24Z")

</div>

ePark Labs has an immediate opening for a Ruby technologist in or around Estes Park, Colorado. If you like to drive or fly long distances once or twice a week, then you can live further away. About ePark Labs ePark L…

---

## [99 bottles countdown](https://www.ruby-forum.com/t/99-bottles-countdown/168888)

<div class="topic-metadata">

**Author:** [@calvin](https://www.ruby-forum.com/u/calvin)\
**Replies:** 1\
**Last updated:** [May 27, 2009, 3:55am UTC](https://www.ruby-forum.com/t/99-bottles-countdown/168888 "2009-05-27T03:55:55Z")

</div>

Hi, I am a beginner trying to write a Ruby program that mimics the song ‘99 bottles of beer on the wall’. I want the program to ask ‘how many bottles…’ on the wall, subract 1 from that number, and then ask the ques…

---

## [Bit-struct and arrays of members?](https://www.ruby-forum.com/t/bit-struct-and-arrays-of-members/168719)

<div class="topic-metadata">

**Author:** [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Replies:** 2\
**Last updated:** [May 27, 2009, 2:33am UTC](https://www.ruby-forum.com/t/bit-struct-and-arrays-of-members/168719 "2009-05-27T02:33:48Z")

</div>

Hi, I’m using the bit-struct \[1\] (which is just awesome, btw) and wondering how I can realize arrays of members. I’m reading binary data from pre-existing files which are based on C structs which look similar to this…

---

## [Review: Kernel.system fix](https://www.ruby-forum.com/t/review-kernel-system-fix/168876)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [May 26, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/review-kernel-system-fix/168876 "2009-05-26T23:58:14Z")

</div>

Files changed: Merlin/External.LCA\_RESTRICTED/Languages/IronRuby/mspec/rubyspec/core/kernel/system\_spec.rbhttp://github.com/shri/ironruby/commit/73e175bc448480423e2417adc80955149c7dd914#diff-0 \* Merlin/Main/Lang…

---

## [Saving values in block problem](https://www.ruby-forum.com/t/saving-values-in-block-problem/168852)

<div class="topic-metadata">

**Author:** [@Peng\_Zuo](https://www.ruby-forum.com/u/Peng_Zuo)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/saving-values-in-block-problem/168852 "2009-05-26T23:18:20Z")

</div>

Hi,I’m using ruby 1.87. this problem seems to be the block context bug for 1.8x, in the results array, I always got the same value, which is the last return value of the iteration . I’ve got an object, which has mul…

---

## [Do you nest classes inside classes?](https://www.ruby-forum.com/t/do-you-nest-classes-inside-classes/168749)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 10\
**Last updated:** [May 26, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/do-you-nest-classes-inside-classes/168749 "2009-05-26T22:56:39Z")

</div>

Object Orientation is conceptually about a sea of objects interacting with each other. They are all however in one sea. Earlier in Computer Science, we had stepwise refinement, which was a tree-like view of applicatio…

---

## [Test::Unit : assert\_aborts](https://www.ruby-forum.com/t/test-unit-assert-aborts/168678)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 10\
**Last updated:** [May 26, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/test-unit-assert-aborts/168678 "2009-05-26T22:51:21Z")

</div>

Is there an existing way to assert that abort is invoked with Test::Unit. Here’s what I came up with. Place in “test\_helper.rb” for example. Three redefinitions to be able to assert aborts. class AbortException \< Exc…

---

## [Code completion and Qt](https://www.ruby-forum.com/t/code-completion-and-qt/168851)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 10:48pm UTC](https://www.ruby-forum.com/t/code-completion-and-qt/168851 "2009-05-26T22:48:25Z")

</div>

hello, I would like to know if there is a ruby IDE allowing to have the completion for Qt classes. I tried some IDE, and nor eclipse nor visual studio (+ruby in steel) have this cool feature. thank you, olivier. Y…

---

## [Dbm on RedHat](https://www.ruby-forum.com/t/dbm-on-redhat/168601)

<div class="topic-metadata">

**Author:** [@David\_Brodbeck](https://www.ruby-forum.com/u/David_Brodbeck)\
**Replies:** 3\
**Last updated:** [May 26, 2009, 10:41pm UTC](https://www.ruby-forum.com/t/dbm-on-redhat/168601 "2009-05-26T22:41:23Z")

</div>

A user I support is trying to use the dbm module that’s part of Ruby’s standard library, but it doesn’t seem to be installed. We’re running RedHat Enterprise Linux 5.3, with Ruby 1.8.5 installed via RPM from RedHat’s…

---

## [Replace empty or strange characters within array of arrays](https://www.ruby-forum.com/t/replace-empty-or-strange-characters-within-array-of-arrays/168866)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 5\
**Last updated:** [May 26, 2009, 10:17pm UTC](https://www.ruby-forum.com/t/replace-empty-or-strange-characters-within-array-of-arrays/168866 "2009-05-26T22:17:56Z")

</div>

Hi everyone: I’m a newcomer to Ruby and started learning it approximately one-week ago. I learn very fast (I have a photographic and logical memory) and own a large section of books… I wanted my first program to be …

---

## [Ri\_cal 0.5.0 Released](https://www.ruby-forum.com/t/ri-cal-0-5-0-released/168869)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/ri-cal-0-5-0-released/168869 "2009-05-26T22:10:19Z")

</div>

ri\_cal version 0.5.0 has been released! http://ri-cal.rubyforge.org/ A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating…

---

## [Download a comic strip and email to myself with Ruby?](https://www.ruby-forum.com/t/download-a-comic-strip-and-email-to-myself-with-ruby/168813)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 7\
**Last updated:** [May 26, 2009, 9:56pm UTC](https://www.ruby-forum.com/t/download-a-comic-strip-and-email-to-myself-with-ruby/168813 "2009-05-26T21:56:11Z")

</div>

using Ruby on my local Windows machine, can I easily write a script to download a comic strip every day and email it to myself? such as http://comics.com/peanuts

---

## [JRuby error coming from RubyRegexp.java inside of Rails method](https://www.ruby-forum.com/t/jruby-error-coming-from-rubyregexp-java-inside-of-rails-method/168843)

<div class="topic-metadata">

**Author:** [@Joseph\_A](https://www.ruby-forum.com/u/Joseph_A)\
**Replies:** 5\
**Last updated:** [May 26, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/jruby-error-coming-from-rubyregexp-java-inside-of-rails-method/168843 "2009-05-26T20:10:31Z")

</div>

Background: we are using JRuby 1.3 RC1 with Rails 2.3.2 and the Glassfish gem. We are running Rails in threadsafe mode and have a couple other background threads constantly running which pretty heavily use XML seria…

---

## [\[Bug #1506\] irb$B$GF|K\\8l$rF~NO$G$-$J$$(B](https://www.ruby-forum.com/t/bug-1506-irb-b-gf-k-8l-rf-no-g-j-b/168647)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/bug-1506-irb-b-gf-k-8l-rf-no-g-j-b/168647 "2009-05-26T19:47:37Z")

</div>

Bug #1506: irbe$B$GF|K\\8l$rF~NO$G$-$J$$e(B http://redmine.ruby-lang.org/issues/show/1506 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-05-23 trunk 23548) \[i686-…

---

## [DBI Connect failure - can we retry please?](https://www.ruby-forum.com/t/dbi-connect-failure-can-we-retry-please/168826)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/dbi-connect-failure-can-we-retry-please/168826 "2009-05-26T17:32:02Z")

</div>

Hi Guys, I got a DBI connection that tries to connect to a source that sometimes has an unreliable connection behind it. DBH = DBI.connect(‘dbi:ODBC:conenction\_name’, ‘username’, ‘password’) It has failed a couple of…

---

## [List the files based on the modified time in FTP](https://www.ruby-forum.com/t/list-the-files-based-on-the-modified-time-in-ftp/168849)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/list-the-files-based-on-the-modified-time-in-ftp/168849 "2009-05-26T17:20:28Z")

</div>

List the files based on the modified time in ftp. ftpclient.list(’\*’) It gives all the files in a directory , But It should list the file based on the modified time

---

## [Params\[:id\]](https://www.ruby-forum.com/t/params-id/168836)

<div class="topic-metadata">

**Author:** [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/params-id/168836 "2009-05-26T15:51:34Z")

</div>

What is params\[:…\]? for what purpose it use? how i use this params?

---

## [How to ignore whitespaces difference while taking htmldiff](https://www.ruby-forum.com/t/how-to-ignore-whitespaces-difference-while-taking-htmldiff/168822)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 0\
**Last updated:** [May 26, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/how-to-ignore-whitespaces-difference-while-taking-htmldiff/168822 "2009-05-26T12:57:39Z")

</div>

hi I want to know how can I ignore the white spaces which too get into account while taking the difference between the two html I mean if I have an html like this hi in body and suppose I insert a space between t…

---

## [How to destoy / Invalidate java servlet session](https://www.ruby-forum.com/t/how-to-destoy-invalidate-java-servlet-session/168761)

<div class="topic-metadata">

**Author:** [@Andres\_K](https://www.ruby-forum.com/u/Andres_K)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/how-to-destoy-invalidate-java-servlet-session/168761 "2009-05-26T12:07:17Z")

</div>

Hello, I’m trying do invalidate a java servlet session in an application. The glassfish (v2) server is configured to use container based auth which allows us to use the REMOTE\_USER request variable. However I’ve not …

---

## [Mono builds](https://www.ruby-forum.com/t/mono-builds/168810)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 11:45am UTC](https://www.ruby-forum.com/t/mono-builds/168810 "2009-05-26T11:45:36Z")

</div>

Hi I’m going to kill off the mono-builds repo. When I build our mono branch or the ironruby master branch with mono ironruby gets broken for comparing Arrays the \<=\> throws a NullReferenceException When I use the bi…

---

## [Issue installing gem on Mac OS 10.5.6](https://www.ruby-forum.com/t/issue-installing-gem-on-mac-os-10-5-6/168804)

<div class="topic-metadata">

**Author:** [@rkrkrk21](https://www.ruby-forum.com/u/rkrkrk21)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 11:33am UTC](https://www.ruby-forum.com/t/issue-installing-gem-on-mac-os-10-5-6/168804 "2009-05-26T11:33:53Z")

</div>

Hi all, I am having issues with installing the mysql gem with the mysql version 5.0.81 .Bulk updating Gem source index for: http://gems.rubyforge.org Building native extensions. This could take a while… ERROR: Err…

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

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