# Ruby

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

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

---

## [PDF::Writer](https://www.ruby-forum.com/t/pdf-writer/66494)

<div class="topic-metadata">

**Author:** [@Kyrre\_SSiso-8859-1](https://www.ruby-forum.com/u/Kyrre_SSiso-8859-1)\
**Replies:** 3\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/pdf-writer/66494 "2006-09-04T14:46:17Z")

</div>

Hello! Will this thing eventually replace LaTeX? Are there any examples of well designed documents / posters / books made using PDF::Writer? Thanks, Kyrre

---

## [Re: Can you temporarily turn off STDERR?](https://www.ruby-forum.com/t/re-can-you-temporarily-turn-off-stderr/66499)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 2\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/re-can-you-temporarily-turn-off-stderr/66499 "2006-09-04T14:46:14Z")

</div>

can’t change http://codeforpeople.com/lib/ruby/session/session-2.4.0/README http://codeforpeople.com/lib/ruby/open4/open4-0.5.1/README in particular the Open4::spawn command. both are available as This comes up o…

---

## [\[SoC\] Ariel 0.1.0 released](https://www.ruby-forum.com/t/soc-ariel-0-1-0-released/66013)

<div class="topic-metadata">

**Author:** [@ASSSBradbury](https://www.ruby-forum.com/u/ASSSBradbury)\
**Replies:** 5\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/soc-ariel-0-1-0-released/66013 "2006-09-04T14:46:09Z")

</div>

= Ariel release 0.1.0 == About - Ariel: A Ruby I.rmation Extraction Library Ariel is a library that allows you to extract information from semi-structured documents (such as websites). It is different to existing too…

---

## [Require and the site\_ruby directory](https://www.ruby-forum.com/t/require-and-the-site-ruby-directory/65434)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 9\
**Last updated:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/require-and-the-site-ruby-directory/65434 "2006-09-04T14:45:50Z")

</div>

I placed a Ruby script in the site\_ruby directory, expecting to find it from other ruby scripts using the “require” keyword but, to my surprise, it does nothing. Do I have no idea how “require” works? How does “requ…

---

## [Question about if-statements](https://www.ruby-forum.com/t/question-about-if-statements/64973)

<div class="topic-metadata">

**Author:** [@fabsy](https://www.ruby-forum.com/u/fabsy)\
**Replies:** 7\
**Last updated:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/question-about-if-statements/64973 "2006-09-04T14:45:43Z")

</div>

Im a newbie to ruby (hehe). I have a question. Is there any better way to do this? : puts “Enter Username” usr = gets puts “Enter Password” usr\_pass = gets User = “user” Pass = “pass” if usr \> User if usr\_pass…

---

## [Getting Really Started with Rails - Tutorial styled Slides A](https://www.ruby-forum.com/t/getting-really-started-with-rails-tutorial-styled-slides-a/102364)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 11\
**Last updated:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/getting-really-started-with-rails-tutorial-styled-slides-a/102364 "2006-09-04T14:45:36Z")

</div>

For those that missed out joining the amazing turnout of ~70 people here in Vancouver for the mini-workshop I did on the 27th last month, I am making available the 30 slides I used for the presentation. The slides w…

---

## [Rails 1.1.5: Mandatory security patch (and other tidbits)](https://www.ruby-forum.com/t/rails-1-1-5-mandatory-security-patch-and-other-tidbits/64530)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 36\
**Last updated:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/rails-1-1-5-mandatory-security-patch-and-other-tidbits/64530 "2006-09-04T14:45:23Z")

</div>

We’re still hard at work on Rails 1.2, which features all the new dandy REST stuff and more, but a serious security concern has come to our attention that needed to be addressed sooner than the release of 1.2 would al…

---

## [The perens in lisp dilects is there for a reson... macros](https://www.ruby-forum.com/t/the-perens-in-lisp-dilects-is-there-for-a-reson-macros/101493)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 88\
**Last updated:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/the-perens-in-lisp-dilects-is-there-for-a-reson-macros/101493 "2006-09-04T14:45:18Z")

</div>

macros are sort of like c macros but more powerful. they are the manafestation of treating code like data. lisp code is just a textual representation of a data structure that is the list. this means that you can manip…

---

## [Re: Off topic: What is "top posting"?](https://www.ruby-forum.com/t/re-off-topic-what-is-top-posting/67298)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 4\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/re-off-topic-what-is-top-posting/67298 "2006-09-04T14:44:23Z")

</div>

As a blind person, I realize that I represent a small minority perspective on this topic. For whatever it’s worth, what I’ll call “contextual top posting” works much better for me than traditional quoting. With the…

---

## [Which is the best Ruby Wiki system like implemented so far?](https://www.ruby-forum.com/t/which-is-the-best-ruby-wiki-system-like-implemented-so-far/67477)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/which-is-the-best-ruby-wiki-system-like-implemented-so-far/67477 "2006-09-04T14:44:22Z")

</div>

I starting a Knowlege Manament project and would like to have as reference the best “Wiki” system implemented using Ruby. This project is intended to use a non linear Wiki system like TiddlyWiki (see http://www.tiddly…

---

## [Euruko 06](https://www.ruby-forum.com/t/euruko-06/66519)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 7\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/euruko-06/66519 "2006-09-04T14:44:19Z")

</div>

Euruko06, the European Ruby Conference, will be in Munich, November 4 and 5, 2006. \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \* Conference wiki: http://www.euruko.com \* \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Th…

---

## [ActiveRecord has\_many fails on children](https://www.ruby-forum.com/t/activerecord-has-many-fails-on-children/67459)

<div class="topic-metadata">

**Author:** [@inanc](https://www.ruby-forum.com/u/inanc)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/activerecord-has-many-fails-on-children/67459 "2006-09-04T14:44:15Z")

</div>

I have two models and they have has\_many and belongs\_to relationships. When I have updated one of the childs of the parent using " parent.childs\[0\].name = ‘johny walker’ " and called " parent.save! "; it does not save…

---

## [Happy Numbers (#93)](https://www.ruby-forum.com/t/happy-numbers-93/67470)

<div class="topic-metadata">

**Author:** [@kivle](https://www.ruby-forum.com/u/kivle)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/happy-numbers-93/67470 "2006-09-04T14:44:15Z")

</div>

Hi, Here’s my solution to this weeks problem. I haven’t done the “extra credit” work to make it work with different bases, but I have done a bit of work to maybe make the method a bit faster (by caching some results). …

---

## [ActiveRecord Extensions 0.0.4 Released!](https://www.ruby-forum.com/t/activerecord-extensions-0-0-4-released/67469)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/activerecord-extensions-0-0-4-released/67469 "2006-09-04T14:44:14Z")

</div>

ActiveRecord Extensions 0.0.4 Is Released What is ActiveRecord Extensions? ActiveRecord Extensions is a library which extends the power of ActiveRecord providing lower level support for more database specific feature…

---

## [Error: Could not find/open font : Times-Roman](https://www.ruby-forum.com/t/error-could-not-find-open-font-times-roman/67462)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/error-could-not-find-open-font-times-roman/67462 "2006-09-04T14:44:14Z")

</div>

after installing on Mac OS X 10.4.7 graphviz using dp and, afterwards, Ruby-graphviz, i ran the test. i get this error for all the tests : Error: Could not find/open font : Times-Roman unfortunately i don’t have this…

---

## [Strftime](https://www.ruby-forum.com/t/strftime/67377)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 2\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/strftime/67377 "2006-09-04T14:44:12Z")

</div>

e$B$U$J$P$G$9!#e(B e$B\<ALd$G$9$,!"$$$D$+$i$+!“e(BTime#strftime e$B$K4^$^$l$k%J%k$,\>C$($F$7$^$&$h$&e(B e$B$K$J$C$?$\_$?$$$G$9$,!”$3$l$O2?8N$G$7$g$&$+!#e(B $ ruby16 -v -e ‘s=Time.now.strftime("%a\\000%a"); p \[s, s.size\]’ …

---

## [Exploring Metaprogramming](https://www.ruby-forum.com/t/exploring-metaprogramming/67453)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 4\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/exploring-metaprogramming/67453 "2006-09-04T14:44:12Z")

</div>

I’ve got some downtime this weekend, so I’m pooring over various examples of metaprogramming w/ Ruby. I really like \_why’s example regarding Dwemthy, but am curious as to how to achieve my end. The article in quest…

---

## [A little idiom I like](https://www.ruby-forum.com/t/a-little-idiom-i-like/67316)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 10\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/a-little-idiom-i-like/67316 "2006-09-04T14:44:11Z")

</div>

Here’s a little something I like. YMMV. Hal require ‘pathname’ class Pathname alias / + end home = Pathname.new("/home/hal") proj = home/“projects” foo = home/“projects/foobar”

---

## [Controlling USB-RS232 interface](https://www.ruby-forum.com/t/controlling-usb-rs232-interface/67442)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/controlling-usb-rs232-interface/67442 "2006-09-04T14:44:06Z")

</div>

Before reverting to C, et al, can I use Ruby to do this? I have a ccd camera which has a 4 pin serial interface (pwr, gnd, txd, rxd). I have a board that provides a 9-pin rs232 connector which is used to interface to…

---

## [File.ctime for detecting directory modifications?](https://www.ruby-forum.com/t/file-ctime-for-detecting-directory-modifications/67304)

<div class="topic-metadata">

**Author:** [@rue](https://www.ruby-forum.com/u/rue)\
**Replies:** 10\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/file-ctime-for-detecting-directory-modifications/67304 "2006-09-04T14:44:06Z")

</div>

Hi! Can anyone tell me if Ruby’s File.ctime can be reliably used to detect if a directory’s contents have changed? I do not need to know of changes to files, just adds and deletes of files to/from the directory itsel…

---

## [Ext/dbm on ruby-1.8.5](https://www.ruby-forum.com/t/ext-dbm-on-ruby-1-8-5/67433)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 3\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/ext-dbm-on-ruby-1-8-5/67433 "2006-09-04T14:44:05Z")

</div>

e$B$3$s$P$s$O!#e(B ext/dbme$B$N3HD%%i%$%V%i%j$,:n@.$5$l$F$$$J$$$3$H$K5$$,$D$-$^$7$?!#e(B % uname -sr NetBSD 4.99.1 ext/dbm/extconf.rbe$B$O!"e(B1.8.4e$B$+$ie(B1.8.5e$B$G!"e(B diff -dup ruby-1.8.4/ext/dbm/extconf.rb r…

---

## [Re: Happy Numbers (#93)](https://www.ruby-forum.com/t/re-happy-numbers-93/67454)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/re-happy-numbers-93/67454 "2006-09-04T14:44:05Z")

</div>

Here is my simple solution, not thread safe, not optimize for finding happiest number between 2 numbers. happy? method returns false if the number is unhappy or happy list if the number is happy. class Integer def d…

---

## [Best practice? libs and modules](https://www.ruby-forum.com/t/best-practice-libs-and-modules/67250)

<div class="topic-metadata">

**Author:** [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Replies:** 11\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/best-practice-libs-and-modules/67250 "2006-09-04T14:44:04Z")

</div>

Hello, another ‘best practice’ question. Example: I have a library which I think should go into lib/foo/bar/baz.rb Should I use 'module … ’ wrappers to reflect the directory structure? I.e. module Foo module Bar …

---

## [AP4R, Asynchronous Processing for Ruby, initial release](https://www.ruby-forum.com/t/ap4r-asynchronous-processing-for-ruby-initial-release/67218)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/ap4r-asynchronous-processing-for-ruby-initial-release/67218 "2006-09-04T14:44:04Z")

</div>

We are pleased to announce the FIRST release of AP4R. http://rubyforge.org/projects/ap4r/ == DESCRIPTION AP4R, Asynchronous Processing for Ruby, is the implementation of reliable asynchronous message processing. It p…

---

## [Ruby Reports 0.5.2](https://www.ruby-forum.com/t/ruby-reports-0-5-2/67452)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-5-2/67452 "2006-09-04T14:44:04Z")

</div>

= Ruport 0.5.2 : The “I need to test more on Windows” edition = == Synopsis == Just a bug fix release, but important if you are on windows. We’ve also done some reorginization of the formatting system, which may be a…

---

## [SOAP4R basic auth](https://www.ruby-forum.com/t/soap4r-basic-auth/65355)

<div class="topic-metadata">

**Author:** [@rickthemick](https://www.ruby-forum.com/u/rickthemick)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/soap4r-basic-auth/65355 "2006-09-04T14:44:03Z")

</div>

Hi! I’m trying to get SOAP4R running under ruby-1.8.5-preview3 + http-access2 (you can also update 1.8.4 with latest SOAP4R + http-access2 I guess). Everything works too well… I’m suspecting that this basic auth thin…

---

## [Re: Happy Numbers (#93)](https://www.ruby-forum.com/t/re-happy-numbers-93/67451)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/re-happy-numbers-93/67451 "2006-09-04T14:44:03Z")

</div>

( Resend it. It seems lost on last time … ) Here is my simple solution, not thread safe, not optimize for finding happiest number between 2 numbers. happy? method returns false if the number is unhappy or happy list i…

---

## [Struct::Tms.instance\_methods(false) contains false](https://www.ruby-forum.com/t/struct-tms-instance-methods-false-contains-false/67440)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [September 4, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/struct-tms-instance-methods-false-contains-false/67440 "2006-09-04T14:44:03Z")

</div>

e$B0J2\<$N$h$&$K!“e(Binstance\_methods e$B$N7k2L$Ke(B false e$B$,F~$k$3$H$,$”$j$^$9!#e(B % ./ruby -ve ‘p Struct::Tms.instance\_methods(false)’ ruby 1.9.0 (2006-09-03) \[i686-linux\] \[false, :cstime, :utime, :cutime, false…

---

## [Fwd: Already stalled in Pick Axe book - could use some help](https://www.ruby-forum.com/t/fwd-already-stalled-in-pick-axe-book-could-use-some-help/67437)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/fwd-already-stalled-in-pick-axe-book-could-use-some-help/67437 "2006-09-04T14:43:53Z")

</div>

On 3 Sep 2006, at 17:16, Jeff Rohrer wrote: Now the book states that if I type in this: song = Song.new(“Bicylops”, “Fleck”, 260) song.to\_s I should see this: “Song: BicylopsFleck(260)” That should be ‘puts song.…

---

## [Fwd: quiz 93 solution](https://www.ruby-forum.com/t/fwd-quiz-93-solution/229102)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/fwd-quiz-93-solution/229102 "2006-09-04T14:43:49Z")

</div>

Begin forwarded message:

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

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