125237-127239 subjects 125671-126412

[QUIZ] LCD Numbers (#14)
125427 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 125430 [robert.mcgov] Question, I assume the idea is for a 7 seqment LCD?
| + 125432 [robert.mcgov] In Internet Explorer 6 but fine in Firefox 1.0
| + 125436 [james@gr yp ] When -s == 1, yes.
+ 125494 [zdennis@mk e] This quiz got my attention. I can't wait until I get home from work and
+ 125666 [lucsky@ma .c] **************************** [begin code ] ****************************
| + 125672 [    v@vs .r ] Maybe this is irrelevant, but
| | 125681 [lucsky@ma .c] Right, your comment is of course valid, but I assumed that the purpose
| | 125703 [    v@vs .r ] But personally I enjoy to find "smart and/or elegant" solutions
| | 125705 [lucsky@ma .c] Ok, you win, very good point. :)
| + 125677 [lucsky@ma .c] Woops, found a bug: displaying the same digit multiple times wasn't
+ 125670 [    v@vs .r ] Thanks for the quiz, it was really fun to code :-)
+ 125684 [lmarlow@ya o] ************************* lcd_quiz.rb *************************
+ 126382 [zdennis@mk e] This is a very late posting...and I see that James already posted the

Re: win32-sapi 0.1.0
125437 [djberg96@ho ] [i386-mswin32]

Ruby Quiz Site (was Re: [QUIZ] LCD Numbers (#14))
125438 [james@gr yp ] I'm unhappy with the current Ruby Quiz Web site and intend to replace
125440 [rampant@gm i] Replace
125443 [james@gr yp ] This is a hold-over of the original site design when I didn't use
125464 [rampant@gm i] True, you did say that.
125484 [james@gr yp ] I dropped this in and saw no change in any of my browsers, just as you
125508 [robert.mcgov] It does indeed fix the problem for IE6, thanks Douglas for finding a

FIT ( or Fitnesse ) ... for Ruby?
125442 [jeff@da k- i] I read once that Dave Thomas is/was working on a port of Fit ( or
+ 125537 [giulio.pianc] I'm working on a Ruby conversion of the FIT Java version 1.0 right now.
+ 125577 [Dave@Pr gP o] Ward asked me to port his Java version to Ruby, which I did a long time
  125620 [ryand-ruby@z] I'm pretty sure Ward forfeited any rights wrt QA/testing when he went
  125688 [jeff@da k- i] Ok,
  126244 [itsme213@ho ] There was an intriguing posting about this recently

DBI Question
125445 [dwerder@gm .] while using dbi (with postgres) I wondered if there is sth similar to
125517 [cmills@fr es] there
125565 [dwerder@gm .] thanks a lot!!
125581 [cmills@fr es] right
125587 [dwerder@gm .] 100% ack!

Using additional widget in Ruby
125446 [markus.liebe] Is it possible to install an additional widget written in Tcl/Tk and using
125674 [nagai@ai ky ] Yes, of course.

Kernel.y and yes,yes,yes not least surprise
125453 [jlst@ge ty g] Sometimes using emacs makes me think of Molly Bloom (never a good idea
125470 [ruby-talk@wh] Yeah, whoa, I just committed.  Thanky.

Ruby on AIX?
125460 [as@co pu er ] Anybody who uses Ruby on an AIX machine (version 5.2 or higher)?
+ 125476 [austin.moody] I've been using Ruby on AIX (both 4.3 and 5.2) and it hasn't been easy.
| + 125497 [as@co pu er ] Thanks for the answer.
| + 125499 [victor.reyes] I also use Ruby in AIX, but I have problems every now and then.
| | 125579 [as@co pu er ] A sad story. Really. Sorry for you.
| + 126364 [matt@te hn r] Please let me know what you find out, I'm trying to build ruby on AIX 5.1.
+ 125583 [as@co pu er ] Is someone currently working on a "port" for Ruby on AIX?
  126401 [kubo@ji ba .] I have successfully compiled socket.so on AIX 4.3.3 and ruby 1.8.2.
  126507 [matt@te hn r] Ok, that seems to work on AIX 5.1.  However, it gets a Segmentation fault
  126515 [nobu.nokada@] Does it direct the entry point or to export the symbol?
  + 126800 [kubo@ji ba .] It directs the entry point.
  | 126856 [nobu.nokada@] Sorry, it seems my typo.
  | + 127124 [kubo@ji ba .] This cause an error while linking miniruby by passing '-eInit_' to the linker.
  | | 127544 [nobu.nokada@] What about adding the option to DLDFLAGS instead of ARCH_FLAG?
  | | 128791 [kubo@ji ba .] Another error at ext/curses.
  | | 128969 [nobu.nokada@] I see.  What about this patch?
  | | 130256 [matt@te hn r] Now that I finally have time to work on building Ruby again, it seems to
  | | 135706 [gerard.bras@] I've got 1.8.2 built with xlc on 5.1.  Sockets seem to work and though
  | + 128588 [matt@te hn r] Ok, the patch didn't seem to work, so I added in a fix that should do the
  + 126930 [matt@te hn r] Sure.  This is with a script that only has 'require "net/telnet"'

Profiler bug in 1.8.2?
125473 [bugmenot@wo ] I'm getting an exception when I profile an application of mine. It profiled
125610 [matz@ru y- a] It didn't reproduce on my Linux machine.  Does anyone else get same
125652 [flgr@cc n. e] I'm able to reproduce it when RUBYOPT is set to 'rubygems' which is the
125656 [matt.mower@g] It makes using the debugger a pain as well since you don't drop into

RubyForge themes
125474 [tom@in oe he] Howdy -
+ 125478 [james@gr yp ] I find this very classy, for what it's worth.
+ 125479 [jeff@op nd m] Definately go with red.
| 125558 [intinig@gm i] I would go with red, increase a bit the text size and add some images,
| 125567 [mailing-list] Why images?  Do we inherently need images on web pages?  And as for the
| 125630 [intinig@gm i] IMHO a few images, even just a logo add some life and dynamism to the page.
| 125633 [rampant@gm i] +1
| 125638 [rff_rff@re o] +1
| 125641 [tom@in oe he] Hm, that's a good thought.  What ways do you think the headers be
| 125660 [rff_rff@re o] nice :)
+ 125482 [eustaquioran] I love blue, but on this case it hurts the eye. The red is better there.
+ 125486 [carlwork@yc ] I like the red theme.  It's more utilitarian and it cuts right to the
+ 125487 [carlwork@yc ] One other thing.  It seems like the margins around different sections
+ 125492 [zdennis@mk e] They are both very nice. The red is better because it is easier on the
+ 125493 [ryan-ruby@tr] The red theme is much easier on the eyes.
+ 125496 [rff_rff@re o] maybe... too much red. Ok I know ruby is suypposed to be red, but imo
| + 125501 [eero.saynatk] I've got a few other ones in the works, mainly one green and one grey
| | 125572 [rb@ra hi ou ] The red one is also my choice.
| + 125521 [bg-rubytalk@] I agree about the font size and about the colour.  It's nice, but too
+ 125502 [billk@ct .c ] Between the two I prefer the red; I'd concur with
+ 125504 [cameron.mcbr] red +1.  The default font is really small of the several machines I
| 125509 [eero.saynatk] All the fonts are in em but I forgot to clear the top-level
+ 125564 [flgr@cc n. e] I prefer the Red one though having a bit more contrast in it might be nice.
+ 125574 [maslists@co ] To my eye, the colors are not nearly as important as the contrast.  Give
+ 125787 [hramrach@ce ] This one is completely unreadable because it has wrong colors
+ 125872 [jamesUNDERBA] The pervasive brick-red text and trim makes everything blend together.

Webrick and Basic Auth
125506 [jim@fr ez .o] I have a directory of files that I want to share over the net
125553 [sarahtanemba] Is Webrick secure? What's precautions and gotchas should we put our
125575 [peter@te bo ] Use controller (before_filter) with rubyonrails and the login generator
125603 [batkins57@gm] Well, that won't do the OP any good if he isn't using Rails.

List assignment syntax
125518 [ambrus@ma h.] I'm a little dissatisfied with the list assignment syntax of ruby.
+ 125520 [ambrus@ma h.] Sorry, I've just found that this works instead:  x, (*), z = a
| 125540 [georgesawyer] Good!
+ 125563 [flgr@cc n. e] Personally, I would like being able to assign to nil in that case. I've
| + 125590 [transami@ru ] That seems like a good idea.
| + 125783 [itsme213@ho ] Is there not a more general pattern-match + assign variables, much like
+ 125585 [martindemell] Is there any reason this can't be changed to a.at(1,2,3,4)? It'd make
  125589 [transami@ru ] Problem is with what gets returned.

Is There A Standard XML Parser?
125523 [mark@th -b n] I'm just getting started with Ruby and need one of my applications to
+ 125524 [halostatue@g] Yes.
+ 125584 [martindemell] REXML *is* included in the 1.8 distribution

Construct [*nil] works differently in 1.6 and 1.8
125528 [gfb@to es ft] a = [ *o ]
+ 125546 [pit@ca it in] p Array( [ 1, 2, 3, ] )
| + 125548 [gfb@to es ft] I have checked that Array(nil) works fine both in 1.6 and 1.8, thanks
| + 125655 [chneukirchen] do you maybe also know a nice trick to make it a single-element Array
|   + 125659 [pit@ca it in] I didn't know this behavior before, but it is documented. I think you have to
|   | 125717 [chneukirchen] I know.
|   + 125696 [bob.news@gm ] "Christian Neukirchen" <chneukirchen@gmail.com> schrieb im Newsbeitrag
|     125716 [chneukirchen] irb(main):001:0> a = [1,2,3]
|     125755 [bob.news@gm ] "Christian Neukirchen" <chneukirchen@gmail.com> schrieb im Newsbeitrag
|     125844 [chneukirchen] I needed that rather often for convenience stuff (pass a single
|     125858 [bob.news@gm ] "Christian Neukirchen" <chneukirchen@gmail.com> schrieb im Newsbeitrag
|     125866 [chneukirchen] The splat operator works differently here.
+ 125568 [bob.news@gm ] "Gennady Bystritksy" <gfb@tonesoft.com> schrieb im Newsbeitrag

library method isolation
125535 [wmorgan-ruby] Dear gurus,
125541 [cmills@fr es] applications
125582 [wmorgan-ruby] Thanks. That would certainly solve this issue. The wiki page mentions

Strange behavior of hash key
125547 [A.Reith@gm i] I want to use some hash who have a hash key. But, i don't understand
125549 [matt.mower@g] I believe the answer is because each time you use {1,2} you are
125550 [vjoel@PA H. ] $ ruby -v -e 'a={ {1,2}=>3 }; p a[{1,2}]'
125551 [A.Reith@gm i] => 22476232
125554 [matt.mower@g] I think the answer here is that String redefines the eql? method to
125555 [matt.mower@g] def eql?( o ); self == o; end;
125556 [timsuth@ih g] You also need to define Hash#hash so that eql objects have the same hash
+ 125570 [bob.news@gm ] "Tim Sutherland" <timsuth@ihug.co.nz> schrieb im Newsbeitrag
+ 125578 [matt.mower@g] Of course, I got sidetracked by eql? and forgot that the problem was,
  125580 [cmills@fr es] -Charlie

[ANN] Deadline extended for Codefest Grant program
125566 [dblack@wo bl] Dear Rubyists,
125745 [Bil.Kleb@NA ] Wife permitting, I am willing to donate an off season week of

Re: multiple values & variable assignment
125569 [bob.news@gm ] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
+ 125614 [cmills@fr es] You can think of it as return splat.  Looks like Ruby 2.0 will give you
+ 125780 [itsme213@ho ] But this is about more than just assignment, it is also about method calls
  125814 [bob.news@gm ] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag

Real Election Reform
125588 [david@qs p. ] What do you think about this and have you seen this popular site before?
125760 [ jupp@gm .d ] Matz is a benevolent dictator; elections are OT here.

Type inference in ruby
125594 [trevor.andra] ...
+ 125595 [eric@af ik u] I am sure it is possible to implement but I think most people end up
| + 125602 [trevor.andra] Let me just point out that I am NOT ADVOCATING STATIC TYPING.  I don't think
| | 125617 [ruby-lists@l] its possible to redefine integer additions in ruby.
| | 125622 [trevor.andra] In this case I did not mean redefine integers and integer addition I meant
| + 125679 [premshree.pi] Your sentence seems ambiguous. What exactly do you mean by it? _All_
|   125680 [rff_rff@re o] well, a guy did CheckR as its thesis, IIRC, but nothing has been
+ 125596 [logancapaldo] Minor correction, x = x + 1 IS not the same as x.+(1), its the same as
+ 125598 [jamesUNDERBA] <snip/>
| + 125599 [eero.saynatk] A TI system could be implemented as a separate library to be run
| + 125637 [rff_rff@re o] and some comments on matz' blog that I could not decipher :)
+ 125600 [ruby-lists@l] i see no difficulty in using ruby's advanced tracing
| + 125607 [trevor.andra] I was just wondering how do they fit together?  Are you talking about
| | + 125611 [ruby-lists@l] i can't really explain.
| | + 125616 [ruby-lists@l] having reread this i must say i'm greatly confused
| | | 125621 [trevor.andra] That example was just intended to demonstrate the difference between the two
| | + 125726 [halostatue@g] I don't know your language background. I do not consider this
| |   + 125758 [trevor.andra] You are correct.  I have fundamentally misunderstood the ruby language.  It
| |   + 125784 [itsme213@ho ] Somewhat like instance variables, array members, ... ?
| |     125790 [jamesUNDERBA] Shh!  Some will tell you it's lists all the way down.
| + 125685 [mailinglists] Rubys tracing facilities are far away from being advanced.
+ 125653 [flgr@cc n. e] class Fixnum
+ 125722 [halostatue@g] I'm not sure what you're trying to say here; are you wanting the

Garbage collector
125612 [eustaquioran] Hey, how often the garbage collector runs?
+ 125615 [batkins57@gm] It runs when Ruby runs out of memory or when it's manually invoked (by
+ 125618 [cmills@fr es] It basically runs when a certain amount of memory is used - see
+ 125639 [rff_rff@re o] btw, I thought 1.9 could see the light of a different GC.. Is someone
+ 125719 [crf@sb x. u-] While I lack the skill to go source diving, I too am interested in more
  125727 [mneumann@nt ] Yes, that should help, as the mark function would no more mark all the
  125735 [mailinglists] This would only help if there is something on the stack that looks
  125737 [mneumann@nt ] Hm, my understanding of Ruby's GC is that it scans the stack
  125750 [mailinglists] Yes. It was a typo i meant "not only the stack like ruby".

file io question
125623 [hash_bang@re] I'm writing a fido mail tosser for my ruby bbs.  (A thankless task that
+ 125625 [cmills@fr es] that
+ 125752 [snowzone5@ho] i have working perl code for doing this (well, tosses to text files

HTML template recommendations
125626 [mreed@th re ] Okay, right now I run my website with mod_ruby + eruby,
+ 125663 [mcl-ruby-tal] I am unfamiliar with Mason or Struts (and your requirements, therefore,
| + 125714 [cameron.mcbr] +1  I'm also a big amrita fan.
| | 125751 [sarahtanemba] Amrita, how is the performace? And, how do you handle the security for a
| + 125776 [mreed@th re ] Amrita looks interesting.  Haven't found much in the way of English doc on it,
|   125998 [rubyzbibd@ub] Download Amrita and take a look in the docs directory.  There are a number
+ 125779 [dido.sevilla] Well, if what you're looking for is an actual MVC system for Ruby

ruby from command line timing out?
125627 [jperkins@sn ] I'm running a script from the command line that's going to take a
125628 [sera@fh an .] Is it safe to guess, based on the name of the script, that it spiders
125629 [jperkins@sn ] I'm catching those errors with no problem with a 'rescue'. This seems
125631 [batkins57@gm] Can you post the code?
125632 [jperkins@sn ] Sure. The blogs variable is an array of the urls of blogs - I intend to
+ 125678 [sera@fh an .] Jason,
| 125711 [jperkins@sn ] Yeah, that's the line that's timing out and why I was wondering if
| 125918 [drbrain@se m] Your Timeout::Error probably comes out of HTTP, open-uri doesn't
+ 125692 [angus@qu va ] ["Jason N.Perkins" <jperkins@sneer.org>, 2005-01-09 02.29 CET]

Re: Ruby design question: lazy construction of object graph containi
125634 [georgesawyer] I recommend Ruby constants.
125636 [georgesawyer] I recommend Ruby constants.

small consulting job parsing web pages
125647 [no_spam@in a] Greetings,
+ 125657 [georgesawyer] Yes, please!
+ 125718 [james@gr yp ] You might want to give a valid email address for people to write to.  ;)
| 125724 [mneumann@nt ] Well, that probably was the first test to get the job, right?
+ 125803 [ashwin.ramje] I am very much interested in this position.

[ANN] soap4r module changes in ruby-1.8.2
125650 [nakahiro@sa ] Here's the changes of soap4r module in ruby-1.8.2.

LoadError while installing RubyGems 0.8.4
125651 [nospam@no pa] I'm running into an error when installing RubyGems on new Linux box
125806 [nospam@no pa] The solution was to recompile/reinstall ruby after installing zlibc.

Dir.getwd returning empty string on Windows
125658 [matt.mower@g] I'm using 1-click final on Windows XP-SP1.
125809 [djberg96@ho ] I cannot duplicate this.  Do you have a code sample?
126005 [matt.mower@g] The code sample was as simple as opening irb and typing "Dir.getwd" it

[SOLUTION] Ruby Quiz #14 LCD Numbers
125664 [email55555@g] #!/usr/bin/env ruby
+ 125667 [myfirstname@] David a few things that I have noticed while running the program.
| 125668 [email55555@g] My gmail send out with line wrap...
| 125669 [email55555@g] OK, Thank you for your suggestion.
+ 125715 [james@gr yp ] My own solution.  It looks a long but it's mostly the digits, arguments
+ 125723 [ jimm@io co ] Here's my solution: http://www.io.com/~jimm/rubyquiz/quiz14/
+ 125769 [sross@co ne ] # lcd.rb
| 125773 [sross@co ne ] gap = ' '*size
+ 125772 [dave@bu t. d] You can see my solution at http://www.dave.burt.id.au/ruby/lcd_digits.rb
| 125848 [flgr@cc n. e] Your solution is very similar to mine. We both represented the number
| 125960 [dave@bu t. d] My newsreader missed your post :(
+ 125869 [dmartenson@m] require 'getoptlong'