# Ruby

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

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

---

## [Browser applications (applets, flash...) with Ruby?](https://www.ruby-forum.com/t/browser-applications-applets-flash-with-ruby/68410)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [September 14, 2006, 9:11pm UTC](https://www.ruby-forum.com/t/browser-applications-applets-flash-with-ruby/68410 "2006-09-14T21:11:30Z")

</div>

Howdy, Is it possible to write applications in Ruby and let them run in an internet browser, just like you could with applets or flash? Preferably without the user having to install a special plug-in… Has it been don…

---

## [Re: modifying the hour in a datetime object already created](https://www.ruby-forum.com/t/re-modifying-the-hour-in-a-datetime-object-already-created/68716)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/re-modifying-the-hour-in-a-datetime-object-already-created/68716 "2006-09-14T19:07:04Z")

</div>

From: Josselin \[mailto:removed\_email\_address@domain.invalid\] but how can I modify the hour, which stays at 16:00:00 ? You can’t - DateTime objects are immutable. You’d need to create the DateTime object with the cor…

---

## [Modifying the hour in a datetime object already created](https://www.ruby-forum.com/t/modifying-the-hour-in-a-datetime-object-already-created/68712)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/modifying-the-hour-in-a-datetime-object-already-created/68712 "2006-09-14T19:05:04Z")

</div>

In my prog, I create a datetime object d1s = DateTime.civil(2006,6,5,16,00,00) then later on, I need to create another datetime from this one by adding 1 day and changing the hour to 10:00:00 I can do easily d1e = …

---

## [Rails -\> add a column -\> NoMethodError in Admin#edit](https://www.ruby-forum.com/t/rails-add-a-column-nomethoderror-in-admin-edit/68714)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/rails-add-a-column-nomethoderror-in-admin-edit/68714 "2006-09-14T18:51:03Z")

</div>

\[While I try to get on the Rails mailing list here…\] Rubies: I am a Ruby on Rails newbie, and have been reading the book, “Agile Web Development with Rails”, by Thomas & Hansson. I seem to be stuck on page 61. The sh…

---

## [Creating zip files](https://www.ruby-forum.com/t/creating-zip-files/68686)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 5\
**Last updated:** [September 14, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/creating-zip-files/68686 "2006-09-14T18:38:48Z")

</div>

I’m sure this is a common question – is there a plugin/lib/gem for generating and manipulating zip files from Ruby?

---

## [Apache2, CGI, Ruby & Hello-World](https://www.ruby-forum.com/t/apache2-cgi-ruby-hello-world/68689)

<div class="topic-metadata">

**Author:** [@atraeyu](https://www.ruby-forum.com/u/atraeyu)\
**Replies:** 2\
**Last updated:** [September 14, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/apache2-cgi-ruby-hello-world/68689 "2006-09-14T18:28:03Z")

</div>

According to ProgrammingRuby : You can use Ruby to write CGI scripts quite easily. To have a Ruby script generate HTML output, all you need is Code: #!/usr/bin/env ruby print “HTTP/1.0 200 OK\\r\\n” print “Content-type…

---

## [Clash of RubyZip and PDF::Writer](https://www.ruby-forum.com/t/clash-of-rubyzip-and-pdf-writer/68692)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 3\
**Last updated:** [September 14, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/clash-of-rubyzip-and-pdf-writer/68692 "2006-09-14T18:27:12Z")

</div>

I’m using PDF::Writer to generate files by the hundreds. My spec requires that I batch them up into zip files. I thought this would be a piece of cake, but I appear to have run into a clash. From what I can read in…

---

## [Re: The Well Tempered Ruby Application](https://www.ruby-forum.com/t/re-the-well-tempered-ruby-application/68707)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/re-the-well-tempered-ruby-application/68707 "2006-09-14T18:16:54Z")

</div>

From: Tim B. \[mailto:removed\_email\_address@domain.invalid\] I’ve been starting to put together a small sample project like GNU’s “Hello” (Hello - GNU Project - Free Software Foundation) that provides just the framewor…

---

## [Linux cron : problem with a ruby task](https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 3\
**Last updated:** [September 14, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/linux-cron-problem-with-a-ruby-task/68680 "2006-09-14T18:15:19Z")

</div>

Hello, since two days I’ve added a cron.daily task that launch the task runner of my Ruby on Rails application Two times I had problem : a segfault the first day, and a ‘error’ the second (nothing more than ‘error’, a…

---

## [Re: OT compilation probs (later extension)](https://www.ruby-forum.com/t/re-ot-compilation-probs-later-extension/68673)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 0\
**Last updated:** [September 14, 2006, 10:28am UTC](https://www.ruby-forum.com/t/re-ot-compilation-probs-later-extension/68673 "2006-09-14T10:28:28Z")

</div>

Excuse the bizarre quoting, see below. gcc -R/usr/local/lib -g -I/usr/local/include -z verbose -z rescan -L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/li…

---

## [A solution for public-keyed SFTP and Ruby](https://www.ruby-forum.com/t/a-solution-for-public-keyed-sftp-and-ruby/68670)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 0\
**Last updated:** [September 14, 2006, 10:08am UTC](https://www.ruby-forum.com/t/a-solution-for-public-keyed-sftp-and-ruby/68670 "2006-09-14T10:08:25Z")

</div>

Hello, Lately there has been some talking here on how to send files using scp. Some people are doing just fine by calling scp with a pre-shared password, but neither I like that approach nor does it work for my purp…

---

## [Installing ROR with Darwin Ports](https://www.ruby-forum.com/t/installing-ror-with-darwin-ports/67841)

<div class="topic-metadata">

**Author:** [@lelio98](https://www.ruby-forum.com/u/lelio98)\
**Replies:** 10\
**Last updated:** [September 14, 2006, 9:40am UTC](https://www.ruby-forum.com/t/installing-ror-with-darwin-ports/67841 "2006-09-14T09:40:22Z")

</div>

First let me say that I just got a new MacBook Pro and am looking forward to developing on it. Let me also say that this is my first Mac, so please bear with the infantile questions! I am trying to install RoR with Da…

---

## [Reporter error](https://www.ruby-forum.com/t/reporter-error/68542)

<div class="topic-metadata">

**Author:** [@luke](https://www.ruby-forum.com/u/luke)\
**Replies:** 2\
**Last updated:** [September 14, 2006, 8:58am UTC](https://www.ruby-forum.com/t/reporter-error/68542 "2006-09-14T08:58:18Z")

</div>

I practice at ruby and I’ve done some example test case,now I would like to create test suite and generate report can someone look at this code and explain me what’s wrong? I still get message : C:/Test/ruby/lib/rub…

---

## [Generating raport](https://www.ruby-forum.com/t/generating-raport/68537)

<div class="topic-metadata">

**Author:** [@luke](https://www.ruby-forum.com/u/luke)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 8:56am UTC](https://www.ruby-forum.com/t/generating-raport/68537 "2006-09-14T08:56:17Z")

</div>

I practice at ruby and I’ve done some example test case,now I would like to create test suite and generate report can someone look at this code and explain me what’s wrong? I still get message : C:/Test/ruby/lib/rub…

---

## [Word substitution in file](https://www.ruby-forum.com/t/word-substitution-in-file/67820)

<div class="topic-metadata">

**Author:** [@xanxan](https://www.ruby-forum.com/u/xanxan)\
**Replies:** 13\
**Last updated:** [September 14, 2006, 8:52am UTC](https://www.ruby-forum.com/t/word-substitution-in-file/67820 "2006-09-14T08:52:16Z")

</div>

Hi, Can anyone help me in that? I just want to write the following function: substitute(f,g,w,x) where f and g are files and w and x are strings That function substitutes all the ocurrences of w in the file f and w…

---

## [Using RubyGems](https://www.ruby-forum.com/t/using-rubygems/68641)

<div class="topic-metadata">

**Author:** [@atraeyu](https://www.ruby-forum.com/u/atraeyu)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 8:34am UTC](https://www.ruby-forum.com/t/using-rubygems/68641 "2006-09-14T08:34:14Z")

</div>

I’m reading through the RubyGems docs and found this: Using RUBYOPT By setting the RUBYOPT environment variable to the value rubygems, you tell Ruby to load RubyGems every time it starts up. This is similar to the -r…

---

## [Digest.rb](https://www.ruby-forum.com/t/digest-rb/95504)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 8\
**Last updated:** [September 14, 2006, 7:38am UTC](https://www.ruby-forum.com/t/digest-rb/95504 "2006-09-14T07:38:08Z")

</div>

require ‘digest/sha2’ e$B$Ne(B sha2 e$B$,$I$&$bM\>7W$K;W$($k$N$G!"e(B require ‘digest’ e$B$G:Q$\`$h$&!“0J2\<$N$h$&$Je(B digest.rb e$B$rIU$1$Fe(B e$B$\*$/$H$$$$$N$G$O$J$$$+$H;W$C$?$s$G$9$,!”$I$&$G$7$g$&e(B? module Digest …

---

## [Arbitrary indexes](https://www.ruby-forum.com/t/arbitrary-indexes/68435)

<div class="topic-metadata">

**Author:** [@quangn](https://www.ruby-forum.com/u/quangn)\
**Replies:** 10\
**Last updated:** [September 14, 2006, 7:02am UTC](https://www.ruby-forum.com/t/arbitrary-indexes/68435 "2006-09-14T07:02:07Z")

</div>

There has to be an easier way to do this. If I have v=(1…99).to\_a and I want to index the 20th to 30th elements, this is simply v\[20,10\]. But if I have a list of indexes i=\[9, 11, 35, 47, 48, 55, 58, 63, 92, 96\] that …

---

## [Re: eRB \<%=](https://www.ruby-forum.com/t/re-erb/68650)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [September 14, 2006, 6:32am UTC](https://www.ruby-forum.com/t/re-erb/68650 "2006-09-14T06:32:03Z")

</div>

From: Rob S. \[mailto:removed\_email\_address@domain.invalid\] One thing I’ve often wondered is how do you output from w/i a “non output” block…ie in java scriptlets these are equivalent: \<% out.println(“hi”) %\> \<%= “hi…

---

## [Trying Fjax in ruby](https://www.ruby-forum.com/t/trying-fjax-in-ruby/68648)

<div class="topic-metadata">

**Author:** [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Replies:** 0\
**Last updated:** [September 14, 2006, 6:26am UTC](https://www.ruby-forum.com/t/trying-fjax-in-ruby/68648 "2006-09-14T06:26:29Z")

</div>

Hi all, I am trying to use the new fjax in my ruby on rails project. I have downloaded the Fjax-SDK from the fjax site(unzipped it), included the Fjax folder in the lib folder of my RadRailsproject, modified the envi…

---

## [PuneRuby interviews the "Ruby Programming community" leader](https://www.ruby-forum.com/t/puneruby-interviews-the-ruby-programming-community-leader/68560)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 6:08am UTC](https://www.ruby-forum.com/t/puneruby-interviews-the-ruby-programming-community-leader/68560 "2006-09-14T06:08:00Z")

</div>

It is an interview with the Ericsson Ruby P.ming commmunity leader by a famous Indian Ruby U. Group from Pune, a city called ‘Oxford of the East’ and is also home to many software and IT companies. “PuneRuby” is known…

---

## [eRB \<%=](https://www.ruby-forum.com/t/erb/68604)

<div class="topic-metadata">

**Author:** [@jhoglund](https://www.ruby-forum.com/u/jhoglund)\
**Replies:** 12\
**Last updated:** [September 14, 2006, 5:49am UTC](https://www.ruby-forum.com/t/erb/68604 "2006-09-14T05:49:58Z")

</div>

whats eRBs \<%= doing in contrast to \<%?

---

## [New Ruby Web Site is Officially Launched](https://www.ruby-forum.com/t/new-ruby-web-site-is-officially-launched/68414)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 10\
**Last updated:** [September 14, 2006, 5:43am UTC](https://www.ruby-forum.com/t/new-ruby-web-site-is-officially-launched/68414 "2006-09-14T05:43:58Z")

</div>

I just posted this to the O’Reilly Ruby bloghttp://www.oreillynet.com/ruby/blog/2006/09/new\_ruby\_web\_site\_is\_officiall.html : It took 18 months from inception, a lot of hard work from volunteers (and it almost died …

---

## [Confused by Bignum#remainder](https://www.ruby-forum.com/t/confused-by-bignum-remainder/102344)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 9\
**Last updated:** [September 14, 2006, 5:01am UTC](https://www.ruby-forum.com/t/confused-by-bignum-remainder/102344 "2006-09-14T05:01:56Z")

</div>

Help a guy out who got B’s and C’s in math classes in college: Ruby 1.8.4 on Solaris 10: irb(main):013:0\> -1234567890987654321.remainder(13731) =\> -6966 irb(main):014:0\> -1234567890987654321.remainder(13731.24) =\> -…

---

## [Re: Joel Spolsky on languages for web programmingr](https://www.ruby-forum.com/t/re-joel-spolsky-on-languages-for-web-programmingr/68495)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 16\
**Last updated:** [September 14, 2006, 2:22am UTC](https://www.ruby-forum.com/t/re-joel-spolsky-on-languages-for-web-programmingr/68495 "2006-09-14T02:22:52Z")

</div>

Ah, yes, the increasingly blurry line between Languages and their Standard Libraries is fast becoming a sordid love-triangle between Languages, their Standard Libraries, and their Virtual Machine. I suspect Microsoft …

---

## [Introspection question](https://www.ruby-forum.com/t/introspection-question/67689)

<div class="topic-metadata">

**Author:** [@jdonnell](https://www.ruby-forum.com/u/jdonnell)\
**Replies:** 3\
**Last updated:** [September 14, 2006, 2:16am UTC](https://www.ruby-forum.com/t/introspection-question/67689 "2006-09-14T02:16:51Z")

</div>

is there a way for an object to tell you where it was created a la stacktraces? I tried to hack it in myself, but it’s really slowwwwwww. Here was my hack attempt. I also wanted each object to tell me the time it was …

---

## [Happy Programmer's Day!](https://www.ruby-forum.com/t/happy-programmers-day/68575)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 10\
**Last updated:** [September 14, 2006, 1:10am UTC](https://www.ruby-forum.com/t/happy-programmers-day/68575 "2006-09-14T01:10:47Z")

</div>

$ ruby -r date -e ‘p Date.today.yday’ 256 :wink: James Edward G. II

---

## [Re: How to collect over two arrays then look back to one?](https://www.ruby-forum.com/t/re-how-to-collect-over-two-arrays-then-look-back-to-one/68624)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 0\
**Last updated:** [September 13, 2006, 11:58pm UTC](https://www.ruby-forum.com/t/re-how-to-collect-over-two-arrays-then-look-back-to-one/68624 "2006-09-13T23:58:36Z")

</div>

Thank you for taking the time to do this. I learnt at least five things new things about Ruby from your email.

---

## [Aggregated blogs on ruby:New site](https://www.ruby-forum.com/t/aggregated-blogs-on-ruby-new-site/68472)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 9\
**Last updated:** [September 13, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/aggregated-blogs-on-ruby-new-site/68472 "2006-09-13T23:20:32Z")

</div>

We have recently launched a site which collects blogs and aggregates them . Please check out the blogs on ruby on rails. http://softlogger.com/tags/Ruby-on-Rails/1-9/Ruby-on-Rails-Articles.aspx We have released the be…

---

## [How about Enumerable#find\_pattern?](https://www.ruby-forum.com/t/how-about-enumerable-find-pattern/68205)

<div class="topic-metadata">

**Author:** [@ASSSBradbury](https://www.ruby-forum.com/u/ASSSBradbury)\
**Replies:** 11\
**Last updated:** [September 13, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/how-about-enumerable-find-pattern/68205 "2006-09-13T22:18:25Z")

</div>

Ignore the name, I don’t really know what it’s best to call it. Basically I’ve been thinking it might be useful if Enumerable had a method to efficiently search for a pattern in an Enumerable object. Existing methods…

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

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