122070-123594

121918-123052 subjects 122279-124019

^ Does REXML add spaces to comments?
122070 [phlip2005 gm] I'm using REXML to read and write XML too often.
+ 122117 [jamesUNDERBA] #--------
| 122118 [phlip_cpp ya] I cannot reproduce the problem using a 4 line program like that, with a copy
+ 122146 [langstefan g] I have the same problem: Read document and write it

^ Does anyone use Solaris for Ruby/Rails development?
122079 [abe_ml bozem] charset="US-ASCII"
+ 122122 [linguist gma] Hey Abe,
+ 122220 [probertm nos] I use IOWA, under Webrick, rather than Rails under Solaris 7 - 9 and I

^ Thoughts on Typing Hints (Re: Optional static typing (or, What can Ruby 2.0 borrow from Boo?))
122086 [halostatue g] I don't like that because it then suggests that this should be
122092 [rff_rff remo] well, but is'nt multimethod dispatch something useful ?

^ [OT] No-nonsense guide to Use Cases?
122095 [lyle.johnson] All,
+ 122096 [se digitale-] Well, you named it. I read the book and it is wonderful. It is exactly
| + 122098 [YKloubakov f] I've read a couple of books on use cases (did not read Alistair
| | 122108 [se digitale-] The thing is: After you are done with Cockburn you will not have to read
| | + 122111 [YKloubakov f] Sascha,
| | + 122131 [nick activeh] Cockburn is a great writer, and it's a totally awesome book. I quite
| + 122128 [jim freeze.o] That's just about all you will need on the subject. :)
+ 122102 [jamesUNDERBA] I haven't read Cockburn's book, but have read assorted things from his
+ 122129 [brian pocket] I haven't had a chance to read "Writing Effective Use Cases" yet, but
+ 122169 [joey joeygib] I'll add my recommendation with everyone else's. Cockburn's book is very
| + 122172 [Mlipper doit] I'm in the process of trying user stories instead of use cases on a
| + 122206 [lyle.johnson] Thanks very much for everyone who's responded so far (and I'm still
+ 122320 [p_bossi_AGAI] *) start with "Object Oriented Software Engineering", from Ivar

^ Ruby Graphing/chart libraries?
122109 [cwillia1 roc] charset="us-ascii"
+ 122114 [stoyan gmail] We are using ruby-gd [ http://raa.ruby-lang.org/project/ruby-gd/ ] and
| 122115 [cwillia1 roc] pie,
| 122116 [samgoldman j] I haven't tried SVG::Graph, nor do I have a Windows machine on which to
| 122148 [rff_rff remo] works like a charm, and it generates really nice graphs with little code.
+ 122166 [mneumann nte] I've used gnuplot for this: http://ntecs.de/wee/ehf

^ ordered hash ?
122110 [itsme213 hot] Is there a pure-ruby ordered hash? I'm looking for something that will
+ 122119 [halostatue g] What's buggy about it? I have an ohash in the code to PDF::Writer that
| + 122126 [itsme213 hot] It threw an error on '==', I did not dig much deeper after that.
| + 122138 [gsinclair so] That sounds a bit silly.  Wouldn't there be a performance overhead
| | 122252 [criglerj ear] # Assumes you're not initializing with values at the beginning, i.e.
| + 122139 [nobu.nokada ] No.
| | 122141 [matz ruby-la] Nobu himself made a patch to preserve hash order.  I have not decided
| | 122293 [nobu.nokada ] The performance wouldn't increase for insertion, iteration and
| | + 122336 [mneumann nte] Hm, 2 pointers for each hash entry, that's an increase of 50%. On the
| | + 122377 [hal9000 hype] In my opinion, it would be worth it.
| |   + 122425 [chr_mail gmx] I don't use ruby that often these days but mine
| |   + 122490 [ruby brian-s] I use hashes as large as this. (For building my chordlist.
| |     122577 [lists zara.6] Forbidden
| |     122609 [ruby brian-s] Thanks for pointing me to it. I just buyed some more space on the webserver,
| + 122256 [itsme213 hot] I may have to add some Hash conveniences, like default blocks. Thanks.
|   122282 [ajohnson cpa] There are many more methods than just #[]= and #each that should be
+ 122151 [bob.news gmx] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
| + 122189 [itsme213 hot] You are right.
| + 122270 [hal9000 hype] I'll reply to this, since an ordered hash is on my wish list.
|   122345 [bob.news gmx] "Hal Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
|   122347 [dblack wobbl] The problem is, though, that keys can be anything, including things
|   122352 [bob.news gmx] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
|   122355 [dblack wobbl] There may be a lot of hashes with such keys, but I wouldn't describe
|   122357 [bob.news gmx] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
|   122361 [dblack wobbl] Right, just to the extent that a Hash is Ordered in the first place.
|   + 122365 [bob.news gmx] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
|   + 122407 [dga lcs.mit.] The point is that a hash ordered by insertion order is pretty
|     122793 [bob.news gmx] "David G. Andersen" <dga@lcs.mit.edu> schrieb im Newsbeitrag
+ 122167 [mneumann nte] class OrderedHash < Hash
| 122171 [rff_rff remo] <snipcode>
+ 122176 [mailing-list] Having an ordered Hash is like saying that arrays should be indexed by
  + 122178 [halostatue g] Be that as it may, it is still necessary to have an insertion-ordered
  | + 122186 [hgs dmu.ac.u] Is anyone friendly with the Lua crowd?  Could they donate us a
  | + 122191 [mailing-list] I just gave you one--you seem to have missed the gist of my posting.
  | | 122196 [halostatue g] Which one? The Treap you said is comparison ordered, and you didn't
  | | 122253 [mailing-list] Hm, OK, sorry.  I misunderstood.  I thought you wanted comparison.
  | + 122199 [glenn.parker] How is an "OrderedHash" different from something we might call a
  |   + 122205 [cmills frees] I think an ordered hash typically keeps track of the insertion order.
  |   + 122211 [ruby brian-s] Why is everybody in this thread so fixed on using array and hash. As I see it
  |     122213 [halostatue g] insert(key, value)
  |     122217 [dga lcs.mit.] Which, if you had Brian's mechanism as a base, you could
  |     122221 [itsme213 hot] Sure, but then any operation that is sequence-sensitive (it modifies state)
  |     122226 [dga lcs.mit.] "if you gained significant speed or ease of
  + 122275 [rff_rff remo] <kidding>

^ [SUMMARY] Banned Words (#9)
122113 [james graypr] The general idea behind a lot of the solutions to this week's quiz was pretty

^ Accessing class constants from within a module?
122123 [jos catnook.] Any idea how I can access a class constant from within a module when that
+ 122132 [mcl-ruby-tal] You probably don't want to do that anyway. If you change to Debug::DEBUG
| 122142 [jos catnook.] Joel's solution was what I was looking for originally (thanks Joel!) but your
| 122154 [mcl-ruby-tal] I like the self.class::CONSTANT expression better myself because it
| 122208 [jos catnook.] Your solution has the advantage that you can control debugging on a per-object
+ 122135 [vjoel PATH.B] puts msg unless level > self.class::DEBUG
  122143 [jos catnook.] It's things like these in Ruby that make my head spin :) But it does make

^ Does Ruby have anything like isprint?
122136 [mkcon gmx.de] I want to print out the 'printable' characters from a binary
+ 122144 [dave burt.id] You can use the POSIX regular expression 'metacharacter' [:print:] to match
| 122152 [bob.news gmx] "Dave Burt" <dave@burt.id.au> schrieb im Newsbeitrag
+ 122145 [discordantus] Not that I know of. But here's a way to get a copy of a string with

^ [ANN] DamageControl - Continuous Integration Server in Ruby
122140 [aslak.helles] I am one of the developers of DamageControl (DC), a Continuous
+ 122532 [ndrsbngtssn ] Not much response here, but I think it may be because the website more
| 122584 [csshsh struc] we are using dc for two projects right now. it helps us greatly!
+ 123570 [rff_rff remo] just a thing: this seem to run a 'make test' after the compilation.
  123594 [michael.deha] We are also damage control users where we work, at least thanks to me.

^ What do you use Ruby for?
122150 [coke2k5 gmai] What do you use Ruby for is my question.Me,being 17 I have lots of
+ 122155 [demerzel gma] ...
| 122159 [ryco gmx.net] Another thread that touched this subject starts at
+ 122158 [Stephan.Kaem] Have a look at this:  http://www.rubygarden.org/ruby?RealWorldRuby
+ 122247 [matt technor] Web spiders, data mining, general slice and dice of data while moving it
| 122271 [coke2k5 gmai] Thanks, very usefull links everyone.
+ 122299 [takaoueda ju] I learned the basics of Ruby 4 years ago just after the first edition
+ 122319 [martin.anker] * Whenever shellscripts would get too complicated (I always forget the
  122380 [chris.mcmaho] I started learning Perl a couple of years ago.  I still like

^ Does anyone have benchmark programs for YARV?
122156 [ko1 atdot.ne] I'm developing YARV - Yet Another RubyVM. I'm looking for
+ 122161 [flgr ccan.de] Maybe you can have a look at the Ruby code for the Debian language
| 122164 [ko1 atdot.ne] I already use that:)
| 122174 [flgr ccan.de] Interesting, is the speedup in percent available somewhere?
| 122623 [ko1 atdot.ne] Regards,
| 122629 [mneumann nte] wow! very impressive results... looking forward to be able to use yarv...
+ 122173 [jamis_buck b] I don't know if this is what you are looking for or not, but Needle
| 122625 [ko1 atdot.ne] I'll try it if 'require' is implemented.
+ 122328 [rff_rff remo] I don't have a benchmark.. but I think the OO Richards Benchmark as
| 122369 [rff_rff remo] btw, today I should study butwhen one is forced to do stuff, he revertes
| + 122391 [rff_rff remo] Segmentation fault
| | 122627 [ko1 atdot.ne] Could you run following command on today's revision?
| | 122703 [rff_rff remo] I tried it yesterday and it worked (I tried many times and always worked)
| | 122738 [rff_rff remo] fwiw, this was, again a winxp box on a athlon 2000+,
| | 122792 [ko1 atdot.ne] I added check that gcc is support this option or not.
| | 122951 [tromp cwi.nl] I have a nice integer benchmark solving Connect-4,
| + 122626 [ko1 atdot.ne] I'll try to run your program.
+ 122724 [neoneye gmai] I have made a ruby compatible regexp engine.. written entirely in Ruby.

^ [ANN] Ruby Central, Inc. Codefest Grant Program
122163 [dblack wobbl] Ruby Central, Inc. is pleased to announce its first...
+ 122168 [rff_rff remo] This seem a great initiative, congrats from me :)
+ 122243 [dblack wobbl] Nobu
+ 122260 [jamesUNDERBA] What would it take to get a similar effort to contribute to both the
| + 122261 [ruby-talk wh] I imagine some high-quality documentation could come out of a Codefest
| | 122262 [pat.eyler gm] making a good documentation plan  part of the judging criteria for
| + 122264 [james graypr] This idea interests me quite a bit, probably because I'm currently
|   122284 [dblack wobbl] Some kind of documentation support is certainly not out of the
|   122286 [gsinclair so] Paying to encourage documentation is a good idea, I think, and it
+ 122327 [ gm navel.gr] This is a great initiative! Thank you!

^ nested defs, what if...
122177 [hgs dmu.ac.u] This is too half-baked to be an RCR, but here goes...
+ 122179 [halostatue g] irb(main):001:0> class Thingy
| + 122187 [hgs dmu.ac.u] OH!!  This didn't work in the past.  I never noticed it change.
| + 122212 [ruby brian-s] But where is this usefull? It seems only complicated and inefficent to me
|   122265 [transami run] It is interesting. Does this mean that an _object_ could dynamically change
|   + 122295 [nobu.nokada ] I also have thought the idea, though haven't implemented it.
|   | 122305 [gsinclair so] Is there any difference between an "inner method" (with 'y' in a) and
|   | 122306 [nobu.nokada ] Actually, no.  Just a syntax sugar, and it would be implemented
|   | + 122308 [gsinclair so] I don't think so.  I can't imagine a use case, and the _appearance_ of
|   | | 122310 [transami run] Yea, that's not good. They need to persist, bound to the local scope.
|   | + 122309 [transami run] First, it is debatable as to whether `y' should have an open scope like a
|   |   122324 [batsman.geo ] Not quite...
|   |   122342 [transami run] Ah right. There's a gotchya. Try,
|   + 122313 [kbullock rin] This would also make Ruby more like LISP, which allows any depth of
|   + 122332 [ruby brian-s] I tried this in fact while learning ruby, and was disappointed, that it did not
+ 122182 [matz ruby-la] I had the same half-baked idea before, but has not been sure how much
  122204 [hgs dmu.ac.u] Thanks, Matz.  If I get struck by any "bolts of inspiration" I'll

^ [ANN] Net::SSH 0.6.0
122180 [jamis_buck b] Here's another release of Net::SSH, your friendly neighborhood pure-Ruby
122190 [jamesUNDERBA] Is this supposed to work on Windows with the 1-click installer?
122193 [jamis_buck b] It looks like the version of the Ruby/OpenSSL module you have installed
122198 [halostatue g] The Windows Installer doesn't include OpenSSL.

^ FXRuby-1.2.2 fails to compile
122181 [langstefan g] I compiled and installed fox-1.2.11 on my SUSE-Linux machine.
+ 122185 [netikular gm] FXRuby does not work with 1.8.2 preview 3 bug was reported at the ruby
| 122209 [langstefan g] Thanks for the immediate response.
| 122215 [langstefan g] Sorry for the noise, already found the reason why I have to
+ 122207 [lyle.johnson] As Kevin noted, this is a known problem that I plan to resolve in the

^ [ANN] Net::SFTP 0.5.0
122183 [jamis_buck b] versions 1 through 5. It requires Net::SSH 0.6.0.
122277 [botp delmont] //Net::SFTP is a pure-Ruby implementation of the SFTP client protocol,
122302 [jamis_buck b] I do not. Owing to the (intentional) lack of documentation about
+ 122303 [botp delmont] //> great project. Do you have rpas for these?
+ 122325 [batsman.geo ] It's OK, you are already busy enough creating the RubyGems packages :)

^ Windows + IRB problems
122184 [martin.anker] a strange problem: It is impossible to enter the squared brackets [ and
122188 [ryco gmx.net] This has come up quite a lot recently.

^ figuring out what platform i'm on
122194 [aslak.helles] Can anyone tell me how I can figure out from Ruby what platform I'm
+ 122197 [halostatue g] RUBY_PLATFORM
| 122232 [djberg96 hot] For more detailed information, there is sys-uname.  Available on the
| 122239 [jamis_buck b] And there's always the quick-and-dirty approach that has been mentioned
+ 122200 [flgr ccan.de] Use RUBY_PLATFORM or rbconfig.rb
+ 122202 [ksibilev bel] $ irb

^ [ANN] Ruby-MemCache 0.0.2
122195 [ged FaerieMU] I'd like to announce the second release of a Ruby client library for

^ OpenSSL and 1-click installer (Re: [ANN] Net::SSH 0.6.0)
122201 [jamesUNDERBA] -e:1:in `initialize': wrong number of arguments (0 for 1) (ArgumentError)
122203 [jamis_buck b] Well, I have, but only because I compiled the Ruby/OpenSSL module
122218 [jamesUNDERBA] Thank you; I may take you up on the offer of the binary.  I have
122225 [curt hibbs.c] I'm planning to incloude OpenSSL in the next time I post a release of the
+ 122227 [jamesUNDERBA] Thank you, that is great news.
| 122231 [curt hibbs.c] I use VC++7.1 (aka Visual Studio .NET 2003). But the one-click installer
+ 122229 [jamis_buck b] Well, here's the process I went through to get this to work.
  122235 [curt hibbs.c] Thanks Jamis... Having the steps you went through should be a *big* help.

^ Problem with Rails and embedded SVG?
122210 [CAWilliams c] I've gone and bit the bullet and used SVG::Graph to generate my charts
+ 122219 [tobias.luetk] does your rails run on localhost ?
| 122228 [CAWilliams c] Yes it does.
| 122237 [tobias.luetk] try to put the working html in your public dir and request it directly
| 122249 [CAWilliams c] I've accessed it through Apache (pointing at my localhost) and it works
| 122250 [CAWilliams c] How can I easily do this? I'm not sure how to check...
| 122257 [flgr ccan.de] request with telnet or dump the HTTP headers with wget -s.
| 122358 [CAWilliams c] Well, after some googling I found a suitable hack to embed the SVG.
| 122389 [jeremy bitsw] This might help.
+ 122236 [flgr ccan.de] This sounds a lot like a Content-Type problem. Can you compare the

^ any way to manipulate variables and bindings?
122224 [itsme213 hot] def foo
+ 122233 [discordantus] def bar(&block)
+ 122234 [flgr ccan.de] You need the binding of the caller. Then you can just do eval("#{symbol}
| 122382 [itsme213 hot] I'm exploring some domain-specific language capabilities in Ruby. One of the
+ 122346 [bob.news gmx] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
  122456 [discordantus] I should clarify: Ruby will set the variables, they are just

^ generating HTML: what is the best Ruby library ?
122242 [markusjais y] I have some datta in a MySQL DB
+ 122244 [drbrain segm] How does the data get into the database?
+ 122276 [cameron.mcbr] Hey Marus,

^ Software patents (was: SOT gmail invites)
122266 [glenn.parker] Sorry to push this topic even further off course, but this is near and
+ 122323 [batsman.geo ] Hassle-free packages for Ruby?
+ 123054 [gaffar11lk y] m sasi if u h a gmail.. invitation cn u plz send it 2 me......

^ [ANN] DBC for C 1.3.0 released
122269 [cmills frees] This is a very high quality release thanks to Sebastian Hunt and Marc
+ 122280 [botp delmont] //This is a very high quality release thanks to Sebastian Hunt and Marc
| 122360 [cmills frees] I don't see why not...
| 122387 [just-for-new] I disagree. DBC is a specificatoin of behaviour so if it looks like a
+ 122386 [just-for-new] good idea but what's the difference to GEF?
  122388 [ryco gmx.net] As far as I understand it, DBC for C uses comments in the header file to
  122419 [cmills frees] GEF uses the C preprocessor.  DBC for C is a preprocessor.  I tried
  122449 [botp delmont] //Also I am not totally convinced DBC would be very useful in Ruby....
  122484 [cmills frees] I am probably not being creative enough... any examples of when DBC
threads.html
top