122895-127537 subjects 123367-124043

[ANN] TeX::Hyphen 0.4.0
123147 [halostatue@g] It is with great pleasure that I announce the release of TeX::Hyphen 0.4.0, the

Is there any project like Zope or Plone?
123149 [ruby@3c .c m] Is there any project like Zope or Plone in Ruby except Rails?
+ 123150 [transami@ru ] Not really.
| 123163 [ gm@na el gr] I havent used Zope that much. Can you elaborate on those 'nice'
| 123169 [onurb@xi ud ] Acquisition, ZopePageTemplates...
+ 123151 [steven_todd_] Funny,
  + 123159 [onurb@xi ud ] (top-post corrected)
  + 123162 [rff_rff@re o] not really. Plone is somewhat like a nuke, in the sense of being a CMS

adding object attributes
123160 [merke@ju it ] class A
+ 123171 [dblack@wo bl] What you want to do is use attr_accessor -- but, as you say, not in
| + 123175 [merke@ju it ] Thanx David, that's the solution, and even fits into one line
| + 123177 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
+ 123173 [clr4.10.rand] what about

[ANN] Nitro 0.6.0
123179 [george.mosch] a new version of Nitro was just released.
+ 123182 [raphael.baud] Cool to see Nitro continue to evolve. I'm especially interested in testing Og (as soon as time permits)
| + 123185 [mneumann@nt ] Me too! BTW, postgres-pr should now work together with Og. At least it
| | 123187 [george.mosch] I promise it will be 'officially' supported in the next version :)
| | 123188 [mneumann@nt ] Great!
| + 123186 [george.mosch] ActiveRecord.
| + 123191 [linguist@gm ] Out of curiosity (and unfamiliarity with Og), in what ways do youu
|   + 123194 [ gm@na el gr] Nope, AR works just fine with Pg. From what I 've heard DHH develops
|   + 123238 [rb@ra hi ou ] Quote from a message of David to c.l.r
+ 123183 [ gm@na el gr] I would like to hear suggestions on the logo. Please use my email,
+ 123438 [tquas@ya oo ] That's great! I'm currently evaluating Og, the OR mapper, for my
  123461 [george.mosch] I 'll gladly review your patch :-D

[QUIZ] Learning Tic-Tac-Toe (#11)
123189 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 123190 [transami@ru ] program in VB over a decade ago!
+ 123192 [ruby@br an s] It is not fair to set up an exciting quiz like this only three days before my
| 123193 [james@gr yp ] Save it for the courtroom, pal!  ;)
+ 123196 [ruby@br an s] Oh, I couldn't resist this cribbling in my fingers...
| 123198 [james@gr yp ] But I'll be blamed, of course.  :D
| 123204 [ruby@br an s] I expect the world to tell me what the legal moves are. Otherwise my agent
| + 123206 [james@gr yp ] I'm using a Board object, in my playing around.  My goal in writing the
| | 123218 [ruby@br an s] In this case, would a minimax-a/b algorithm be teaching the ai a strategie?
| | + 123219 [james@gr yp ] While you could argue that a minimax search has nothing to do with
| | | 123223 [ruby@br an s] Well, the evalutation routine -100 for lost, +100 for won, 0 otherwise is not
| | | 123227 [james@gr yp ] So what is your program learning at this point and thus how do you
| | | + 123230 [ruby@br an s] Good Question. At least I know have a perfect opponent for my learning
| | | + 123231 [transami@ru ] Does it have to learn how to play tic-tac-toe? Or just how to win?
| | |   123234 [james@gr yp ] In my opinion, all that matters is what the human playing against it
| | + 123220 [michael.deha] Man, I really wish I had the energy after work to work on these
| + 123207 [jannis@ha de] I think you know the rules and the board but you don't know which moves
|   123211 [ruby@br an s] Nice and colourfull. Do you use a compact sig creator program?
|   123212 [jannis@ha de] Not a creator program.... an "universal" "color" "picture" sig ;)
|   123216 [ruby@br an s] Really nicely done.
+ 123239 [mkhan@le tr ] Board size =  N x N ( N >= 3 )
| 123240 [james@gr yp ] I'm using a standard Tic-Tac-Toe board, which is 3 x 3.
+ 123241 [mkhan@le tr ] 1. How to make a move.
| + 123242 [james@gr yp ] Sure.  Assume away.
| + 123286 [rasputnik@he] When I did this a while ago, I used libneural and the ai learnt what a good move
+ 123313 [fugalh@xm ss] ...
| + 123327 [transami@ru ] I'm up for this if I we can a get a couple day extension on the quiz.
| | 123417 [james@gr yp ] The quiz will stick to it's normal schedule, but as this doesn't
| + 123342 [intinig@gm i] I tried testing it by connecting twice to a server running locally and
| | 123352 [fugalh@xm ss] Oops. Patch.
| + 123344 [ruby@br an s] This is a good idea. Let me propose one enhancement to the protocol. If we
| | 123354 [fugalh@xm ss] Well, the idea is that if it's your turn to move you will receive
| | 123355 [fugalh@xm ss] This will teach me to test a patch first!
| + 123360 [ruby@br an s] ...
| | + 123372 [fugalh@xm ss] I think, in retrospect, that what you thought were inconsistencies were
| | | 123397 [ruby@br an s] Thank you! Call it a dumb question, but how are row-major, row-minor and
| | | 123418 [james@gr yp ] Row major means the row comes first.  So you would handle addressing
| | | 123421 [ruby@br an s] Then I'm implementing row major, while the original server that claimed to
| | | 123498 [fugalh@xm ss] Well, unless I've unwittingly fixed a bug in the meantime, it _is_ using
| | + 123396 [ruby@br an s] ...
| + 123419 [james@gr yp ] Now that's just cool!  Thanks Hans.
+ 123447 [james@gr yp ] Okay, I think I have a working solution.  My problem is in another
| 123478 [james@gr yp ] Following up on this with my findings.  I believe my results may have
+ 123460 [martin.anker] Has anyone tried a genetic programming approach? I have tried it, but
| 123476 [transami@ru ] I did. It's interesting b/c genetic agents are absolutely stupid and take a
| 123482 [martin.anker] Your idea with the operators is very good. Please post your program
+ 123479 [t_leitner@gm] So, I have also tried to program a learning AI player. However, it still
  + 123484 [james@gr yp ] I'm not able to see an obvious flaw in your logic, but I did want to
  + 123533 [ruby@br an s] If I understand your code correctly, you choose with highest probability the
    123665 [t_leitner@gm] Thanks for your help! However, after I changed the code to use

iconv replacement for windows?
123195 [t_leitner@gm] I'm using the iconv library form the Ruby Standard Library under Linux
123199 [halostatue@g] My recommendation is to request that iconv be included with the
123205 [t_leitner@gm] I have looked at the feature request page of the One-Click-Installer
123217 [curt@hi bs c] If someone would be willing to package iconv as a RubyGem, them it would
123221 [rff_rff@re o] yes, but iconv is one of the things that is part of the standard ruby
+ 123226 [halostatue@g] Right. If it's provided with standard Ruby (e.g., OpenSSL, iconv, a
| 123316 [ceaser@ro e.] personally im kinda sick of all the duplication.
| + 123333 [halostatue@g] For extra/external libraries, I can agree with you. Thus, iconv.dll
| | 123347 [ceaser@ro e.] like i said, I have nothing against loading the installer with
| + 123339 [angus@qu va ] [Stu <ceaser@rome.net>, 2004-12-11 21.12 CET]
| + 123362 [rff_rff@re o] just a thing: you can get a binary ruby for win32 withouth all the
| + 123363 [gsinclair@so] People tend to think that if it's installed with Ruby on other
|   123585 [ruby-lists@l] curses would sure be nice
|   123591 [djberg96@ho ] Without cygwin, the closest I think you can get is win32-console.
|   123601 [rff_rff@re o] I may be wrong, but IIRC, ext/curses worked reasonably when compiled
|   123698 [ruby-lists@l] yup works fine. there was at some point a perfectly working
+ 123228 [curt@hi bs c] <embarrassed> That'll teach me to dash off a quick reply before heading out

A neat article on Rails performance...
123197 [tom@in oe he] Nice article (and lovely charts) Scott!
+ 123200 [linguist@gm ] Thanks Tom.  Wow, I actually meant to post that here when I put it up
| 123215 [tom@in oe he] It's a cool article - I ran across a link to it from Brian McAllister's
+ 123201 [matt@te hn r] Interesting.  I would like to see the performance with the DBMS running on
+ 123214 [drbrain@se m] Since I see Scott reads this list,
  123233 [linguist@gm ] I was just using a stock NetBSD system.  I hadn't turned on any magic

IOWA book ideas
123209 [    s@xs .d ] Since I've received positive feedback on the idea of writing a book
123229 [joe.vandyk@b] What's IOWA?
+ 123232 [michael.deha] I would be interested in hearing a really basic paragraph summary of
| 123237 [transami@ru ] They need html docs too. For example, Nitro has very little online docs. I
+ 123296 [    s@xs .d ] Integrated Objects for Web Applications

How to make a deep copy of an object (Searching for Idiom)
123222 [ruby@br an s] I sometimes which to make a deep copy of an object. I know I could use Marshal,
+ 123250 [ksibilev@be ] If your object doesn't have singleton methods you can use this
| 123251 [ruby@br an s] Thanks, but that was what I wanted to avoid.
+ 123259 [cyclists@nc ] Brian, the classes in my new RVG library must have deep_copy methods. I
| 123261 [ruby@br an s] Interesting. But this won't work for instance variables that point to arrays of
| 123265 [cyclists@nc ] I knew you'd spot that :-) In a couple of cases I had to replace Arrays with
+ 123287 [batsman.geo@] Have you considered the somewhat contrived
  123289 [ruby@br an s] Yes, my structures are not cyclic.
  123297 [Killian2422@] I've also been thinking about deep_copy, but for a different reason. I
  + 123298 [halostatue@g] It's not quite the same as what you're saying (it's difficult to do a
  + 123549 [itsme213@ho ] Madeline does something quite similar http://madeleine.sourceforge.net/ ...
    123567 [Killian2422@] Thanks -- Madeline looks terrific.

[REQ] Development Assistance
123225 [halostatue@g] As some of you know, I have several libraries that I develop and

Rails controllers responses emit plain text instead of HTML
123236 [demetrius@in] Since today, when I use rails thru Webrick or Apache (not using FCGI or
123301 [demetrius@in] Dont bother answering this, I reinstalled ruby and rails and it went

Date manipulation in rails
123243 [johan@al ar ] I live in australia in in Australia dates are written as DD/MM/YYYY. In
123246 [tobias.luetk] You could override the date= method of the model to store away the

'[OFF]' as in 'offensive'???
123244 [ jupp@gm .d ] given that 'off-topicness' is indicated as '[OT]' and taking a look at

[OFF] '[OFF]' as in 'offensive'???
123254 [angus@qu va ] [Josef 'Jupp' Schugt <jupp@gmx.de>, 2004-12-10 23.20 CET]

Re: RubyScript2Exe 0.2.0
123255 [steven_todd_] This sounds cool. Anyone know what it would take to have this for OS X?
123299 [pan@er kv en] You need "FreePascal on the Macintosh" [1] and a machine with

Compiling Ruby on OS X Tiger?
123263 [lon@sp ed ma] Sorry if this is off topic for this list. But has anyone had luck
+ 123465 [hramrach@ce ] If you still did not succeed in building it have a look at the fink info
+ 124463 [rblove@ai ma] Well be sure and file a bug report before it is released.

[SERIOUS BUG?] ActiveRecord 1.1.0 and PostgreSQL
123268 [jd@no pa .c ] 1. Create a postgresql table with a varchar primary key.
+ 123269 [jd@no pa .c ] Someone reading this message over my shoulder just asked me,
+ 123274 [sstephenson@] It's not a bug, it's a constraint that Active Record puts on your

Thread.critical and segfaults calling into Ruby callbacks from C
123275 [bitserf@gm i] i just ran into an interesting segfault this weekend.
123277 [drbrain@se m] You may already be in a critical section here.
123279 [bitserf@gm i] Thanks for the tip.
123281 [drbrain@se m] Ruby's threads are 'green' so you won't see a second thread.

fsync on stdout for mod_rewrite
123276 [eric@af ik u] I have a script that I want to ensure has flushed stdout after ever line
123294 [glenn.parker] fsync is only meaningful for files in a file system.  You probably want
123303 [eric@af ik u] ...
+ 123315 [glenn.parker] I'm not too familiar with embedding SQL in Ruby, so I may not be much
| 123413 [eric@af ik u] I'm just using straight ruby. The SQL is just a Ruby here-doc. The
+ 123328 [dwerder@gm .] clear last_request after the puts so that not accidentially an old value
  123414 [eric@af ik u] last_request stores the last request for the next request. It is a basic

Bridging DRb UNIX socket services on two hosts
123278 [kig@mi fi in] I have two computers, both running a bunch of DRb services on them. The
123280 [drbrain@se m] You can use GWIdConv to link process (Gateway id Converter)
123282 [m_seki@mv .b] Thank you, Eric.
123305 [kig@mi fi in] Eric, Masatoshi, thank you for the tips.

Re: How to make a deep copy of an object (Searching for Idiom) [Object State]
123284 [ruby@br an s] Maybe it would make sense to extend the base classes Object, Array, Hash with a
123290 [bob.news@gm ] "Brian Schr?der" <ruby@brian-schroeder.de> schrieb im Newsbeitrag
+ 123291 [ruby@br an s] Ok, then back to the original question. If I don't want a general solution, but
| 123399 [bob.news@gm ] "Brian Schr?der" <ruby@brian-schroeder.de> schrieb im Newsbeitrag
+ 123544 [itsme213@ho ] If your deep copy corresponds to a notion of object state deeper than its
  123555 [bob.news@gm ] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag

[ANN] DBus/Ruby 0.1.7
123292 [bitserf@gm i] this is a bug-fix only release.

[CONFIRMED BUG] ActiveRecord 1.1.0 and PostgreSQL
123295 [jd@no pa .c ] I finally tracked down a bug report and a patch already in CVS.  I tried

How to get parameter names when in set_trace_func callback?
123308 [snail@ob me ] When my code is executing my trace_function set using set_trace_func how
+ 123386 [ksibilev@be ] AFAIK, There is no official way to get names of method parameters. But
| 123393 [snail@ob me ] Sibilev <ksibilev@bellsouth.net> writes
+ 123462 [bob.news@gm ] "Stephen Kellett" <snail@objmedia.demon.co.uk> schrieb im Newsbeitrag

How can I get the return value from a Ruby function, but inside the set_trace_func callback?
123309 [snail@ob me ] When my code is executing my trace_function set using set_trace_func how
123312 [jd@no pa .c ] Stephen,
+ 123314 [snail@ob me ] <jd@nospam.com> writes
+ 123402 [rff_rff@re o] this was true, but it is'nt anymore, nobu "the patch bot" nokada

Email from Ruby?
123310 [transami@ru ] Painless way to send an Email using Ruby?
123311 [mikael@ph bu] Depending on how much pain you prefer: ActionMailer, TMail or RubyMail,
123443 [ jupp@gm .d ] Pros/Cons?

puts / print as method not keyword?
123317 [sean.zuzu@gm] so, i'm thinking about language design with a particular interest in
+ 123319 [kig@mi fi in] As far as I know, it's a matter of
| 123321 [sean.zuzu@gm] yes, precisely!  :D
| + 123329 [matz@ru y- a] It is very interesting to see how POLS differ person to person.
| | 123336 [sean.zuzu@gm] quite true.  it's quite subjective.
| + 123330 [kig@mi fi in] You would then replace STDOUT with e.g. STDERR, or even
|   123341 [sean.zuzu@gm] i wouldn't want to save to a file as an intermediary, and then have to
|   + 123343 [sean.zuzu@gm] here is how jim was thinking of it.  he seems to love mixing in
|   | 123345 [sean.zuzu@gm] er, ward cunningham.  got jim on the brain. :p  sorry ward.
|   | 123368 [jim@we ri hh] Dang, this doesn't even lower my Ward Number
|   + 123350 [kig@mi fi in] Regarding the "string displaying itself"-bit, my view is that a string
|   | 123361 [sean.zuzu@gm] yes yes, i agree.  i came to the same conclusion some time ago
|   + 123388 [gsinclair@so] I'm not normally given to this kind of negative exuberance, but ...
|     123390 [sean.zuzu@gm] read my clarification.  it should know how to describe itself /
+ 123320 [usenet@pl nz] Julius
| 123323 [sean.zuzu@gm] word!!!  yes, thank you.
+ 123322 [angus@qu va ] [zuzu <sean.zuzu@gmail.com>, 2004-12-11 21.13 CET]
  123324 [sean.zuzu@gm] thank you as well, with an even more complete answer.
  + 123325 [ruby@br an s] I can only tell from my experience. I never run across this, because I never
  + 123337 [angus@qu va ] [zuzu <sean.zuzu@gmail.com>, 2004-12-11 21.52 CET]
  + 123467 [martindemell] Well, one reason could be that there are two separate objects involved
    123961 [sean.zuzu@gm] i think this explanation clarifies this matter greatly.

[RDOC] two new bugs
123346 [vjoel@PA H. ] In the rdoc that comes with ruby 1.8.2 (2004-12-08) [i686-linux], two
123365 [pragdave@gm ] Both fixed in CVS. Thanks for the report.

Find every location of "th" in string.
123351 [w_a_x_man@ya] Find location of every "th" in "the thin man thinks".
+ 123353 [jamis_buck@b] "the thin man thinks".scan( /th/ ) { p $& + $' }
| 123356 [dblack@wo bl] "the thin man thinks".scan(/th/) { p $~.offset(0)[0] }
+ 123357 [jamis_buck@b] Next time I'll read the code sippets better. :) The following,
+ 123358 [neil@ha ub .] needle = 'th'
+ 123364 [w_a_x_man@ya] Thanks.  The scan method seems the way to go.
| 123440 [w_a_x_man@ya] In the Icon example, find() is a generator.  You can write your
| 123442 [mneumann@nt ] def fib
| 123535 [w_a_x_man@ya] ...
+ 123400 [bob.news@gm ] "William James" <w_a_x_man@yahoo.com> schrieb im Newsbeitrag
  123408 [glenn.parker] scan doesn't really do that well.
  + 123409 [decoux@mo lo] uln% ruby -e '"banana".scan(/(?=ana)/) { puts $`.length }'
  + 123410 [jamis_buck@b] => "banana"
  + 123531 [lostboard200] mypatt=/ana/