# Ruby

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

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

---

## [Attributes\[:xxx\] does not work within model?](https://www.ruby-forum.com/t/attributes-xxx-does-not-work-within-model/65597)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [August 19, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/attributes-xxx-does-not-work-within-model/65597 "2006-08-19T17:15:49Z")

</div>

Hi all I have a model User that contains the attribute avatar. I’d like to rewrite the avatar method with something like that: def avatar “#{file\_path}/#{attributes\[:avatar\]}” end Sadly attributes\[:avatar\] doesn’t …

---

## [Client/server with threads](https://www.ruby-forum.com/t/client-server-with-threads/65592)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [August 19, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/client-server-with-threads/65592 "2006-08-19T16:30:55Z")

</div>

Yow! I’m trying to make a script that will act as a server (server 1), and when a connection to the server server 1 is made, it will start a thread that will connect to another server (server 2), and it will keep the…

---

## [Ruby on Rails testing/ fixtures question](https://www.ruby-forum.com/t/ruby-on-rails-testing-fixtures-question/65574)

<div class="topic-metadata">

**Author:** [@Stephen\_Richards](https://www.ruby-forum.com/u/Stephen_Richards)\
**Replies:** 1\
**Last updated:** [August 19, 2006, 12:16pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-testing-fixtures-question/65574 "2006-08-19T12:16:38Z")

</div>

Hi, I’m using Test::Unit::TastCase and am having some problems getting expected database state before the test methods. My Ruby on rails book quite clearly says that the following things happen before every test meth…

---

## [How does sort work on hash](https://www.ruby-forum.com/t/how-does-sort-work-on-hash/65559)

<div class="topic-metadata">

**Author:** [@hemant\_kumar](https://www.ruby-forum.com/u/hemant_kumar)\
**Replies:** 1\
**Last updated:** [August 19, 2006, 10:04am UTC](https://www.ruby-forum.com/t/how-does-sort-work-on-hash/65559 "2006-08-19T10:04:26Z")

</div>

I am just a little curious about how exactly sort workes on hashes. for example: a = {:foo =\> 10,:bar =\> 5,:duh =\> 20} a.sort {|x,y| y\[1\] \<=\> x\[1\]} now how exactly the above line works.the block is passed two element…

---

## [Curier-IMAP and imap.create()](https://www.ruby-forum.com/t/curier-imap-and-imap-create/65560)

<div class="topic-metadata">

**Author:** [@Henrik\_SSiso-8859-1](https://www.ruby-forum.com/u/Henrik_SSiso-8859-1)\
**Replies:** 0\
**Last updated:** [August 19, 2006, 8:30am UTC](https://www.ruby-forum.com/t/curier-imap-and-imap-create/65560 "2006-08-19T08:30:20Z")

</div>

I don’t get imap.create to work on Courier-IMAP. I can search mailboxes etc. But not create. Tried to create on another imap account and that worked (don’t know what imap server is used here). Here is the error messag…

---

## [\`cmd\` and UTF-8](https://www.ruby-forum.com/t/cmd-and-utf-8/65507)

<div class="topic-metadata">

**Author:** [@atd](https://www.ruby-forum.com/u/atd)\
**Replies:** 5\
**Last updated:** [August 19, 2006, 4:16am UTC](https://www.ruby-forum.com/t/cmd-and-utf-8/65507 "2006-08-19T04:16:02Z")

</div>

I have spent several hours searching for this and I still don’t know how it works. How is cmd string encoded? I want it in UTF-8, but I don’t know how to do it! I have tried with $KCODE = ‘u’ but it doesn’t works. M…

---

## [File.rename](https://www.ruby-forum.com/t/file-rename/65418)

<div class="topic-metadata">

**Author:** [@Beyond](https://www.ruby-forum.com/u/Beyond)\
**Replies:** 2\
**Last updated:** [August 19, 2006, 4:06am UTC](https://www.ruby-forum.com/t/file-rename/65418 "2006-08-19T04:06:01Z")

</div>

Beyonde$B$G$9!#e(B cygwine$B$@$1$@$H;W$$$^$9$,!"\<!$N$h$&$J%9%/%j%W%H$Ge(Bcoree$B$r$O$-$^$9!#e(B $ ruby mv.rb mv.rb:5: \[BUG\] rb\_sys\_fail(b or a) - errno == 0 ruby 1.8.5 (2006-08-06) \[i386-cygwin\] Aborted (core dumped…

---

## [Multiple arguments for Hash#delete](https://www.ruby-forum.com/t/multiple-arguments-for-hash-delete/65215)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 17\
**Last updated:** [August 19, 2006, 2:21am UTC](https://www.ruby-forum.com/t/multiple-arguments-for-hash-delete/65215 "2006-08-19T02:21:43Z")

</div>

This may be a Facet: class Hash alias\_method :delete, :delete def delete(\*keys, &block) if keys.length == 1 \_\_delete\_\_(keys.first, &block) else keys.map{|key| \_\_delete\_\_(key, &block) } end end en…

---

## [Re: Microsoft Timestamp (Active Directory)](https://www.ruby-forum.com/t/re-microsoft-timestamp-active-directory/65487)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [August 19, 2006, 12:24am UTC](https://www.ruby-forum.com/t/re-microsoft-timestamp-active-directory/65487 "2006-08-19T00:24:34Z")

</div>

\-----Original Message----- From: Francis C. \[mailto:removed\_email\_address@domain.invalid\] Sent: Friday, August 18, 2006 8:51 AM To: ruby-talk ML Subject: Re: Microsoft Timestamp (Active Directory) On 8/18/06, Cliff…

---

## [Hpricot](https://www.ruby-forum.com/t/hpricot/65480)

<div class="topic-metadata">

**Author:** [@fabsy](https://www.ruby-forum.com/u/fabsy)\
**Replies:** 10\
**Last updated:** [August 19, 2006, 12:06am UTC](https://www.ruby-forum.com/t/hpricot/65480 "2006-08-19T00:06:32Z")

</div>

Hey… I just installed hpricot but it acts strange… I tried an example from http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics but it didn’t work… It just gave me “test.rb:1: parse error, unexpected tIDENTIFI…

---

## [How do I download Ruby DBI?](https://www.ruby-forum.com/t/how-do-i-download-ruby-dbi/65536)

<div class="topic-metadata">

**Author:** [@jmjmjm](https://www.ruby-forum.com/u/jmjmjm)\
**Replies:** 1\
**Last updated:** [August 18, 2006, 11:56pm UTC](https://www.ruby-forum.com/t/how-do-i-download-ruby-dbi/65536 "2006-08-18T23:56:00Z")

</div>

I’m trying to download ruby dbi. I am using Apache on Windows. What I found was this: http://ruby-dbi.rubyforge.org/ But I can’t find anywhere to download anything. On rubyforge I can find ruby dbi, but nothing sp…

---

## [\[ANN\] Radius 0.0.1 -- Powerful Tag-Based Templates](https://www.ruby-forum.com/t/ann-radius-0-0-1-powerful-tag-based-templates/59358)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 3\
**Last updated:** [August 18, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/ann-radius-0-0-1-powerful-tag-based-templates/59358 "2006-08-18T23:00:29Z")

</div>

I am pleased to announce the immediate release of Radius 0.5.0. Radius is a small, but powerful tag-based template language for Ruby inspired by the template languages used in MovableType \<www.movabletype.org\> and Tex…

---

## [File creation time](https://www.ruby-forum.com/t/file-creation-time/65535)

<div class="topic-metadata">

**Author:** [@Ken\_S\_Deb\_Allen](https://www.ruby-forum.com/u/Ken_S_Deb_Allen)\
**Replies:** 1\
**Last updated:** [August 18, 2006, 10:27pm UTC](https://www.ruby-forum.com/t/file-creation-time/65535 "2006-08-18T22:27:25Z")

</div>

I see the File.atime/ctime/mtime methods documented, but is there a way to determine the creation timestamp associated with a file? -ken

---

## [Exception handling in ruby](https://www.ruby-forum.com/t/exception-handling-in-ruby/65533)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [August 18, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/exception-handling-in-ruby/65533 "2006-08-18T22:03:23Z")

</div>

HI My exception handling routine is not able to thro the stack trace etc of the exception . for eg. rescue Exception puts $\_ I get a nil in $\_ However when i dont handle the exception, i get the nice exception me…

---

## [Cross-installing gems](https://www.ruby-forum.com/t/cross-installing-gems/65534)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 18, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/cross-installing-gems/65534 "2006-08-18T22:03:23Z")

</div>

Obvisouly I want post-install.rb to write in ./ipkg, as setup.rb does. What is post-install.rb trying to do? I am trying to prepare a ruby-gems package for the iPAQ (armv4l architecture, linux familiar distro) $ unam…

---

## [Question on speed](https://www.ruby-forum.com/t/question-on-speed/65481)

<div class="topic-metadata">

**Author:** [@L7L7L7](https://www.ruby-forum.com/u/L7L7L7)\
**Replies:** 3\
**Last updated:** [August 18, 2006, 9:57pm UTC](https://www.ruby-forum.com/t/question-on-speed/65481 "2006-08-18T21:57:23Z")

</div>

Based on the following snippet: File.open(name).each { |line| case line when /not found/, /^\[gBbTi\]/ next when /^S/ # start or stop condition when /^I/ # iteration indicator else # actual data end } In the f…

---

## [RubyPhone 0.1.8 released](https://www.ruby-forum.com/t/rubyphone-0-1-8-released/65386)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 1\
**Last updated:** [August 18, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/rubyphone-0-1-8-released/65386 "2006-08-18T21:33:18Z")

</div>

An version update is now available for the RubyPhone project (see http://raa.ruby-lang.org/project/rubyphone/ or http://tsapi.rubyforge.org for details). This project is providing a CTI implementation wrapped in the e…

---

## [Refactoring transactional support within Puppet (long)](https://www.ruby-forum.com/t/refactoring-transactional-support-within-puppet-long/65502)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 2\
**Last updated:** [August 18, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/refactoring-transactional-support-within-puppet-long/65502 "2006-08-18T21:15:17Z")

</div>

Hi all, This is one of those “complicated” problems I mentioned a bit ago. I’m looking for help simplifying some of Puppet’s internals, specifically the parts related to transactions and idempotency. Transactional su…

---

## [DateBocks v2.0.0 Released](https://www.ruby-forum.com/t/datebocks-v2-0-0-released/65454)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 19\
**Last updated:** [August 18, 2006, 9:03pm UTC](https://www.ruby-forum.com/t/datebocks-v2-0-0-released/65454 "2006-08-18T21:03:16Z")

</div>

Excert from http://www.nshb.net/datebocks-2-0-0-released Woohoo!! Finally released the next generation of DateBocks (aka DateBox) v2.0.0. This was a long time coming, after its initial version release allll the way b…

---

## [Coming from Perl question](https://www.ruby-forum.com/t/coming-from-perl-question/65397)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 8\
**Last updated:** [August 18, 2006, 8:24pm UTC](https://www.ruby-forum.com/t/coming-from-perl-question/65397 "2006-08-18T20:24:10Z")

</div>

I’m looking to switch from perl to something more object oriented. I’m trying to decide between ruby and python, but I’m having some issues with some aspects of ruby. The language looks great to me, but I am intereste…

---

## [New to Ruby and Programming](https://www.ruby-forum.com/t/new-to-ruby-and-programming/65092)

<div class="topic-metadata">

**Author:** [@hfashina](https://www.ruby-forum.com/u/hfashina)\
**Replies:** 14\
**Last updated:** [August 18, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/new-to-ruby-and-programming/65092 "2006-08-18T20:00:06Z")

</div>

Hi, I am making yet another attempt at learning to program. I have a little experience with QBASIC, RealBASIC, and Actionscript, but I am pretty much a novice. I am working my way through Chris P.'s tutorial but I…

---

## [Is there a tutorial for RoR using legacy DB's](https://www.ruby-forum.com/t/is-there-a-tutorial-for-ror-using-legacy-dbs/65497)

<div class="topic-metadata">

**Author:** [@johnf](https://www.ruby-forum.com/u/johnf)\
**Replies:** 2\
**Last updated:** [August 18, 2006, 7:57pm UTC](https://www.ruby-forum.com/t/is-there-a-tutorial-for-ror-using-legacy-dbs/65497 "2006-08-18T19:57:05Z")

</div>

Hi, I need to setup a website reporting tool. I thought I try RoR (therefore I’m a newbie). But I need to access a legacy database and tables. All the tutorials I have seen deal with “green” setups. Of course my …

---

## [Parsing commandline parameters to a win32ole instance of an](https://www.ruby-forum.com/t/parsing-commandline-parameters-to-a-win32ole-instance-of-an/65499)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 18, 2006, 7:33pm UTC](https://www.ruby-forum.com/t/parsing-commandline-parameters-to-a-win32ole-instance-of-an/65499 "2006-08-18T19:33:03Z")

</div>

Hi everybody, I’m a newby to ruby and I’m trying to whrite a script that uses the comobject of business objects. The normal executable accepts a couple of commandline parameters. Does anybody kwon if it’s possible to…

---

## [Re: Net::LDAP 0.0.4 released](https://www.ruby-forum.com/t/re-net-ldap-0-0-4-released/65070)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [August 18, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/re-net-ldap-0-0-4-released/65070 "2006-08-18T19:21:01Z")

</div>

I noticed you had given your original code sample without parens around the filter. Out of curiosity, what kind of LDAP server are you connecting to? I’m afraid I can’t say much more than it’s a 3rd party solution. …

---

## [Net/LDAP, eRuby/CGI problem](https://www.ruby-forum.com/t/net-ldap-eruby-cgi-problem/65492)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 18, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/net-ldap-eruby-cgi-problem/65492 "2006-08-18T18:17:56Z")

</div>

I’ve been trying to build a CGI LDAP tool for password changes using Net/LDAP (0.0.4), but I’m bumping against what looks like a taint issue. I’ve never dealt with taint before. In irb, my library works perfectly. I…

---

## [Pdf-writer Postscript Type 1 font handling problems](https://www.ruby-forum.com/t/pdf-writer-postscript-type-1-font-handling-problems/65443)

<div class="topic-metadata">

**Author:** [@RaySSbiesS\_Smundo](https://www.ruby-forum.com/u/RaySSbiesS_Smundo)\
**Replies:** 2\
**Last updated:** [August 18, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/pdf-writer-postscript-type-1-font-handling-problems/65443 "2006-08-18T18:05:54Z")

</div>

Folks/Admin, apologies for this cross post. I posted to the wrong group previously. Hi, I am trying to get pdf-writer to load up Postscript Type 1 fonts but am encountering a problem. Using the gettysburg.rb example a…

---

## [Ruby 1.8.5 + Rails$B$G(Bwarning](https://www.ruby-forum.com/t/ruby-1-8-5-rails-b-g-bwarning/65439)

<div class="topic-metadata">

**Author:** [@Masayoshi\_T](https://www.ruby-forum.com/u/Masayoshi_T)\
**Replies:** 8\
**Last updated:** [August 18, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-rails-b-g-bwarning/65439 "2006-08-18T17:35:49Z")

</div>

e$B9b66@,5A$G$9!#e(B thene$B$NBe$o$j$K%;%\_%3%m%s$,;H$($k$H$$$&$N$O!"$=$b$=$be(B e$BIaDL$K%5%\]!\<%H$5$l$F$k$3$H$K$J$C$F$?$s$G$7$?$C$1!)e(B 1.8.5e$B$G;H$($J$/$J$C$F$$$k$h$&$J$N$G!“e(BRailse$B$Ge(B warninge$B$,=P$k!”$H$$…

---

## [Noob rails question](https://www.ruby-forum.com/t/noob-rails-question/65339)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 18, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/noob-rails-question/65339 "2006-08-18T17:11:45Z")

</div>

I am trying to set up an app where I track games between teams and the winners… So I have one “teams” table with info like the name and coach and whatever with one row per team. I then have a “game” table with the hom…

---

## [Google Calendar + ruby = timesheets](https://www.ruby-forum.com/t/google-calendar-ruby-timesheets/65240)

<div class="topic-metadata">

**Author:** [@Aleks\_Kissinger](https://www.ruby-forum.com/u/Aleks_Kissinger)\
**Replies:** 2\
**Last updated:** [August 18, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/google-calendar-ruby-timesheets/65240 "2006-08-18T16:57:44Z")

</div>

I use Google C. to manage my hours and excel to push out timesheets, so I wrote a little ruby script that extacts all the events from a google cal and dumps them to CSV: I thought someone else here might like it. Jus…

---

## [Pen and Paper (#90)](https://www.ruby-forum.com/t/pen-and-paper-90/65315)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 8\
**Last updated:** [August 18, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/pen-and-paper-90/65315 "2006-08-18T16:08:34Z")

</div>

I enjoyed this problem. It’s fun to play with and gives you a little room to get creative with solving techniques. As many people pointed out, this is pretty much the Knight’s Tour problem with some unusual Knight …

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

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