151358-152549 subjects 151715-154194

^ Re: Stock Portfolios (#41)
151534 [email55555 g] Typo error ?
151541 [james graypr] You're right and I should know better.  Thanks!

^ Date from dd-mmm-yyyy
151543 [chris seagul] I've just spent a short while creating a couple of methods that take a
+ 151546 [patrick.fern] require 'date'
| 151547 [patrick.fern] d.strftime("%F") #=> "2005-08-10"
+ 151548 [khaines enig] irb(main):001:0> require 'date'
  151646 [chris seagul] Just as I thought, two different ways to achieve in a max of two lines

^ Modules, identical methods and warnings
151551 [Daniel.Berge] I was just thinking about the potential issue of including multiple
151552 [matz ruby-la] As Module#ancestors tell you, priority line is Foo - Baz - Bar, you

^ Problem with Time.iso8601
151553 [the.chrismo ] I'm assuming Time.now.iso8601 should work? Do I have a muffed
151556 [threeve.org ] irb(main):001:0> Time.now.iso8601
151583 [the.chrismo ] Ah, muffed brain it is, then. :-)

^ Need some help setting up ruby mode
151557 [francisramme] I'm an emacs newbie but would like to use the editor for ruby coding.
151558 [ jimm io.com] Put ruby-mode.el somewhere where Emacs can find it. I have a directory where
151567 [francisramme] I can find my emacs file. Am I supposed to create it myself? I'm using
+ 151568 [ jimm io.com] I set the environment variable HOME to point to my home directory, then I
+ 151573 [francisramme] Ok I found out that I can create a file called _emacs in C:\
  151579 [ jimm io.com] (global-font-lock-mode t)		; always turn on, where available
  151585 [francisramme] Thanks Jim, it works now!

^ File::Spec equivalent?
151570 [mreed theree] Dumb question: does Ruby have an equivalent to the Perl File::Spec module
151575 [james graypr] I can't remember File::Spec right off the top of my head, but does
151582 [mreed theree] What I'm specificalliy looking for is a version of File.join() that will join
151584 [Daniel.Berge] See pathname2, on the RAA.
+ 151593 [mreed theree] Great!  It was even easier than that - "gem install pathname2" worked like a
| 151595 [james graypr] Gems do their docs differently.  Type "gem_server" at a command
+ 166473 [thorin thesh] Isn't this what File.join is supposed to do?  I haven't tried Ruby on
  166486 [dave burt.id] ["/", "a/b"]

^ Ruby on windows -- slow startup time?
151577 [brockweaver ] I've noticed that running Ruby on XP is significantly slower than on Linux.=
151603 [nobu.nokada ] One Click Installer sets RUBYOPT environement to "rubygems",

^ anonym variable $_ and foreach similar in Ruby ?
151578 [ngoc yahoo.c] In perl
+ 151580 [james graypr] array.each { |e| puts e }
| 151586 [florgro gmai] [1, 2, 3].each(&method(:puts))
| 151589 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
| 151594 [florgro gmai] In this case I would also use puts ary, of course, but there is cases like
+ 151581 [acharlieblue] There is also
| 151610 [ptkwt aracne] print $_, "\n" foreach (@array);
+ 151825 [daniel brock] The following syntax comes out naturally for Ruby,
+ 152020 [flori nixe.p] class Proc

^ Emacs commands for running Ruby code
151587 [francisramme] I have a question about running Ruby code with emacs.
+ 151588 [jeff opendbm] I use ruby GUD mode, M-x rubydb
+ 152956 [fkc_email-ne] Depends on how you want to code.  Running the irb inferior and

^ POSIX regex character classes on Windows Platform
151590 [kevin.olbric] I've been mucking about with regular expressions and have not managed to get
151615 [nobuyoshi.na] $ ruby -e 'p /[[:alnum:]]+/ =~ ":ab0d,fd"; p $&'

^ Ruby-Postgres-0.7.1 Installation Question
151591 [greg.kujawa ] Has anyone out there been able to build the Ruby-Postgres-0.7.1 package
151639 [mail vrtprj.] A way to get the sockets is to cross-compile Ruby for ARM, with the
151667 [greg.kujawa ] Thanks for the tip. I will look into doing this. I recall working with
151753 [greg.kujawa ] I am getting closer to stumbling onto this. I had to edit the
151874 [greg.kujawa ] I googled around and found that I needed to comment out the reference
151990 [mail vrtprj.] A guess: Glibc 2.0. Postgres has PQsocket. I have postgres-0.7.1

^ [OT] Zaurus on #ruby-lang?
151592 [rubyhacker g] The other day I was chatting with some Ruby people about
+ 151597 [binary42 gma] You are going to be up to your neck in high prices but if that is not
+ 151636 [aglarond gma] I've got the SL-C3000, and it works great for what I need. The 4GB harddriv=

^ trying to make rails work
151596 [mkhan lextra] [mkhan@localhost ~]$ ruby -v
151598 [kevin.olbric] Try this first..

^ File size descrepancy via IO#write or IO#syswrite
151599 [zdennis mkte] I have a gzipped xml file, which I get from a Java Client on a Windows
151622 [zdennis mkte] After restarting the ruby process, the problem still occurred. After
151644 [ruby.brian g] Maybe you were shown the space the file occupied, this may be more due

^ Ruby on .NET?
151600 [neutralm gma] I'm about to start a .NET project, slated to be written mostly in ugly
+ 151601 [shalev simpl] ...or did you already try that?
+ 151602 [florgro gmai] There's already various proxies that can let Ruby code talk to .NET one.

^ POSIX regex character classes on Windows Platform
151606 [kevin_olbric] I've been mucking about with regular expressions and have not managed
151609 [w_a_x_man ya] irb(main):010:0> p "@@@ abc".scan( /[[:alnum:]]+/ )
151613 [kevin.olbric] A missing set of brackets will get ya every time.

^ Ruby,Rails mentioned in Salon article
151607 [ptkwt aracne] A friend of mine just sent me an email where he said something like: "Are
+ 151678 [Bil.Kleb nas] Follow the "skip to salon" link at the top right
+ 151712 [james_b neur] The Web started with Netscape Navigator?
  151718 [brianm apach] charset=US-ASCII;

^ Nuke on Rails
151608 [paniagua pcm] Does anyone knows if there is any Nuke-like package for Rails? I mean
152240 [gerardo.sant] Gerardo Santana Gez Garrido

^ Have Scripting Languages Peaked?
151614 [basi_lio hot] Ruby is prominently discussed in this thread at LtU. I apologize if
151794 [adrianh quie] I have to admit I find the results as stated hard to believe. The
151858 [mailinglists] I'm not sure where the authors found that numbers but i think they are

^ Failed to install Rails No such file to load -- rubygems/security (LoadError)
151617 [zoong zoong.] I failed to install Rails on OpenBSD-3.6 following instruction from
151672 [chadfowler g] /usr/local/lib/ruby/site_ruby/1.8/rubygems/security.rb?  It looks like

^ [RubyConf] help us reach 100 registrations!
151618 [dblack wobbl] We've got 96 people registered so far for RubyConf 2005, which is
151663 [adam thereal] I've heard rumblings of a pre-RubyConf hackathon to be held the

^ fxruby (nonexistent) html widget
151619 [hal9000 hype] Fox apparently doesn't have an HTML widget.
151620 [mailinglists] Did you look at SWT Fox, Ivan Markov implemented an embedded
151625 [hal9000 hype] I have not heard of that... is it very "heavy"? Would I have
151634 [mailinglists] On windows you don't need to install anything.

^ Re: help us reach 100 registrations!
151623 [greg7224 gma] I will be registering as soon as my pay check clears.  Friday most

^ Ruby report generation tool
151627 [greg7224 gma] For as long as I can remember the end of the summer meant slaving over
+ 151673 [greg7224 gma] <snip my code>
| 151692 [Daniel.Berge] Funny you should mention it.  I've created a generic reporting framework
| + 151698 [james graypr] [snip very interesting project description]
| | + 151747 [Daniel.Berge] The Spreadsheet::WriteExcel port I did was originally for reporting
| | + 151795 [djberg96 gma] Ok, I've put something together.
| |   + 151800 [greg7224 gma] Neat!  I will look at this more later but it definitely has some of the
| |   | 151803 [djberg96 gma] Go ahead. :)
| |   | 151816 [greg7224 gma] Thank you Daniel.  You will be given credit for anything I use.  Anyone
| |   + 152031 [james graypr] Thanks for sharing this.  I'm playing with it and getting a lot of
| |     152054 [djberg96 gma] Thanks.  I was just thinking that I should add a "config" directory for
| |     152058 [greg7224 gma] This exists in Ruport :)
| |     152086 [djberg96 gma] Without looking at Ruport, I added support for YAML config files in
| |     152110 [greg7224 gma] You'd need to break into some computers to see Ruport just yet :)  It
| |     152414 [djberg96 gma] I've put release 0.0.2 out there which has the config support, and a
| + 151708 [greg7224 gma] <snip project details>
+ 151729 [rhkramer gma] This is probably pretty far OT for your current project, but I'll mention it
+ 152037 [greg7224 gma] Regarding Ruport, I have received some requests to consider a license
| 152062 [halostatue g] When working on PDF::Writer, I deliberately chose the MIT-style licence
| + 152064 [tom infoethe] +1.  I BSD license my projects whenever possible - if someone wants to
| | 152094 [julian coret] how do u earn money from them then?
| | + 152095 [halostatue g] I can't speak for Tom, but I've actually never earned a penny from my
| | + 152111 [greg7224 gma] Austin put this quite well though I have to say that I've made my
| + 152067 [greg7224 gma] <snip insightful license discussion>
|   152068 [halostatue g] Neither the Ruby licence nor the Clarified Artistic licences are
|   152070 [greg7224 gma] That's not true.  The 8th clause is the one that makes the Artistic
|   152072 [halostatue g] If that's the clause that makes the difference between the CAL and the
|   152077 [greg7224 gma] <snip lots of practical opinions about licensing>
|   152087 [halostatue g] I'll happily use it. (Just to be clear.)
+ 152428 [the.mindstor] #: Greg Brown changed the world a bit at a time by saying on  8/11/2005 5:46 AM :#
| 152467 [greg7224 gma] This is a great idea and I will do my best to make Ruport model this
| 152482 [the.mindstor] #: Greg Brown changed the world a bit at a time by saying on  8/17/2005 12:18 AM :#
+ 152476 [greg7224 gma] In an effort to make Ruport either a) the most community inclusive
  152532 [greg7224 gma] I've updated this survey and it has nearly double the questions and all

^ Bindings at the time of Exceptions
151632 [netghost gma] I always thought it would be neat to be able to get the binding at the
+ 151633 [vjoel path.b] No trickery, but you do have to have the cooperation of the code which
| + 151635 [vjoel path.b] And just for fun, because it's late here...
| + 151738 [netghost gma] Well that's the trick of course ;) Being able to view the variables
+ 151640 [bob.news gmx] => e; puts e.backtrace; end'
+ 151651 [mailinglists] Yes indeed and it is not possible with standart ruby at the moment.

^ [ANN] booh: static web-album generator
151648 [gcottenc gma] I'd like to announce the general availability of `booh', a static
+ 151650 [gcottenc gma] And a perfect example of the demo effect: if you launch the GUI for
+ 151655 [surrender_it] <anip>
+ 151666 [bearitall ra] Very nice, no grumbles with what you have done.
| 151683 [gcottenc gma] Yes, I've read some books from Terry Pratchett and I enjoyed them very
+ 151726 [mutoh highwa] Great!

^ [Rails] Two table edition in one time...
151649 [mj-usunto tk] Helo, I'm starting small app in rails and I found a problem.

^ cartesian product - next to last version
151653 [wkehowski co] Since the original thread got a little long, I decided to post my next to
+ 151656 [ruby.brian g] Here is my stab at the problem (I made it as a standalone method, as I
| 151844 [dave burt.id] Wow - that's nice and functional!
| 151852 [ruby.brian g] Yielding the values is certainly a good idea, but it makes the code a
| + 151857 [ruby.brian g] Benchmark.bm(35) do | b |
| | 151888 [dave burt.id] Interesting benchmarks. Thanks for sharing these and your code, Brian.
| | 151911 [ruby.brian g] Thanks Dave,
| | 152018 [dave burt.id] Thanks, Brian.
| + 151996 [wkehowski co] Yielding the values is certainly a good idea, but it makes the code a
|   152045 [ruby.brian g] because otherwise the function would return the base array when
+ 151674 [gavin refine] charset=US-ASCII;
  151745 [wkehowski co] require 'matrix'

^ Performance Ruby
151657 [spam microso] Is there any benchmark of the performance of Ruby vs. C, C++, Java etc?
+ 151658 [bob.news gmx] Yes, there are some public performance shootouts on the web.  I'm sorry, I
+ 151660 [ruby.brian g] You could start reading with this thread
+ 151661 [mailinglists] This makes no sense at all.
| 151664 [spam microso] I'm sorry, but my knowledge is not that deep.
| + 151665 [bob.news gmx] Performance is not everything.  Maybe it helps to know which kinds of
| | 151668 [gene.tani gm] - many apps are bound by external constraints: your DB / web / FTP /
| + 151691 [mailinglists] So the answer is it maybe 200 times slower (for example a pure ruby
| | 151721 [jeff.darklig] There is an online comparison of MANY computer languages ...
| | + 151724 [pythonmailin] Heres another version of that shootout
| | | 151725 [jeff.darklig] Only problem with that one is that it is SO old it's using ruby 1.6.7
| | + 151730 [halostatue g] The best option for this shootout is to NOT implement anything for it.
| |   152258 [igouy yahoo.] This is baseless abuse.
| |   152269 [halostatue g] Incorrect. This is not baseless abuse. It is accurate based on numerous
| |   152274 [igouy yahoo.] You quoted the Shootout website as saying "make your language perform
| |   152279 [halostatue g] Compare programming language performance on a few dozen flawed    benchmarks and contribute faster more elegant programs.
| + 151786 [probertm acm] Perceived performance is a strange issue.
| + 151848 [bearitall ra] When I first tried Ruby, my main software language was c++ and main script
|   152041 [gerardo.sant] right on top of the so called most secure Unix-like OS.
+ 151756 [meta pobox.c] There's the Great Computer Language Shootout.
  151891 [halostatue g] Which, as I keep reminding people, isn't worth the paper it isn't
  152003 [brian.wisti ] I always had the impression that the GCLS was presented as "purely for
  152009 [halostatue g] Okay, to be completely fair: yes, the GCLS is presented as "purely for
  + 152015 [Ara.T.Howard] the other day my co-worker was out in dc.  one of our clients wanted to gain a
  + 152044 [    s xss.de] If I'm into programming mood on the few days I'm not busy programming,
  + 152251 [igouy yahoo.] The FAQ instructions direct you to this bug report page

^ [SUMMARY] Stock Portfolios (#41)
151669 [james graypr] The first thing this quiz requires is a source of stock data.  The only

^ Manual Test::Unit and popen's require space
151670 [transfire gm] to isolate certain requires from others in the
151686 [Ara.T.Howard] i think you'll want to open up a pipe to the ruby interpreter and send a
+ 151714 [transfire gm] Thanks Ara! That's just what I needed!
+ 151727 [transfire gm] Almost have it, but can anyone tell me how to stop Test::Unit from
  151772 [mrcode netro] At first this may not look right, but what it is doing is telling
  151808 [transfire gm] Ryan, Thanks.

^ Time to vote for Ruby: SD's 2005 Readers' Choice Awards
151675 [Bil.Kleb nas] Vote question #4, best scripting language, here,
+ 151676 [Bil.Kleb nas] Actually, I suppose someone should just write a
+ 151685 [dblack wobbl] It looks like the nomination process is where the action is, judging
+ 151689 [james_b neur] Looking over some of the entries in the categories, the whole thing
+ 151703 [rob.02004 gm] The poll is devoid of any meaning. I'm not voting because it will
  151706 [batkins57 gm] Neither Lisp nor Gtk are mentioned?  How can I have a favorite
  151740 [lyle.johnson] I stopped reading when I got to the choice "Max (sic) OS X Tiger
  151842 [web2ed yahoo] Ditto, what a bunch of bull that survey was.

^ java strings read and write
151677 [discussionru] I want to prepare some data so that a java program on a mobile phone can
+ 151690 [bob.news gmx] Can't you just use BufferedReader?  That's present since JDK 1.1 so I
| 151850 [discussionru] No, it is not part of the CLDC/MIDP specification, used in the majority
| 151851 [bob.news gmx] Ah, ok.  Didn't know that.
+ 151713 [dave burt.id] The way I read the Java API, the format is simply the UTF-8-encoded string

^ Java/C# "interface" in Ruby ?
151680 [Peter.Fitzgi] charset="us-ascii"
+ 151682 [halostatue g] Depends. The standard answer is "thank ghu, no." There are some
| 151694 [bob.news gmx] Agree.
| 151699 [james graypr] Yeah, I have to agree here.  To me, the Ruby equivalent of interfaces
| + 151700 [mkelly eleve] Not positive what you mean by the "Java/C# 'interface'", but perhaps
| + 151704 [Daniel.Berge] I released "interface" on the RAA, mainly as proof that interfaces
|   151709 [mkelly eleve] Ah, reading other responses I see that you are'nt looking to interface
+ 152102 [florgro gmai] There is also http://ruby-contract.rubyforge.org/ which tries to do this

^ [SCIRUBY] interview with world famous biologist pjotr prins!
151688 [Ara.T.Howard] well, we don't actually know if he's world famous, but he will be after this!
152183 [drosihn gmai] Garance Alistair Drosehn     =             drosihn@gmail.com
152202 [Ara.T.Howard] sorry!  i re-vamped the acl scheme for the entire site last night and missed

^ Ruby readline - completion based on already-entered commands
151696 [batkins57 gm] How can I use the builtin readline library to complete arguments to
+ 151702 [james graypr] Do you have a Pickaxe (second edition)?  It's demoed on the page for
| 151705 [batkins57 gm] I do.  I have the basics of readline working; I'm just trying to
| + 151707 [james graypr] Oops, sorry.  I misunderstood the question... and it's a great one!
| | 151710 [batkins57 gm] No problem.
| + 151720 [brianm apach] You'd have to have the completion function parse the line "so far" so
+ 151732 [dave.baldwin] Unfortunately the ruby readline bindings are missing some key