39920-41815 subjects 40364-49617
ANNOUNCE: PageTemplate 0.2.0
40101 [brian@co ln ] Ah, the power of caffeine. There's a new release of PageTemplate available.
ANN: REXML 2.3.0
40108 [ser@ge ma e-] This is actually a double release. Release 2.1.3 was deemed stable, and was
<=> on types
40114 [pixel@ma dr ] is it normal that <=> on types return 1 when types have not subtyping
40117 [chr_news@gm ] This is already implemented in more recent 1.7 versions.
ANN: xampl-pp 0.0 XML Pull Parser
40119 [hutch@xa pl ] Version 0.0 of the xampl-pp XML pull parser is available
40152 [lafor@ar ak ] rexml, nqxml, ...)
40192 [hutch@re ur ] I've found it to be very difficult to compare the two parsers in terms of
40141 [ahumphreys@p] Is anyone aware of a Dylan / Ruby comparison on the net ?
40143 [pixel@ma dr ] here is mine (i started some Dylan 2 days ago).
code coverage tool?
40149 [tsondergaard] I have a ruby module with about 1100 lines of code and another 1700 of unit tests. This gives me good confidence, but I would really like to know how much of the code is covered by tests.
+ 40292 [patrick-may@] I haven't heard of an automated coverage analysis tool
| 40294 [rick@ri kb a] A (highly) contrived fragmentary example showing why such a coverage
| 40343 [patrick-may@] ugg, that's a nasty example.
+ 40297 [nahi@ke na t] Agreed.
RE: is software eng an art?
40156 [home@cl bs o] I think concluding that art is not amenable to discipline is wrong.
ANN: REXML 2.3.1 (development)
40158 [ser@ge ma e-] This release adds a VERY provisional pull parser. WARNING: The API is not
Ruby Conference idea
40160 [djberg96@at ] I've been playing with extensions lately and I'm having a rather hard go
40163 [tsondergaard] I just skimmed through the latest messages in ruby-dev using babelfish
40165 [nobu.nokada@] I thought similar thing.
ANN: REXML 2.3.2 (SAX2 and Pull parsing)
40166 [ser@ge ma e-] <posted & mailed>
40168 [dennisn@pe n] One of the things that I really like about Ruby is that it doesn't
+ 40184 [patrick-may@] That sounds nice.
+ 40200 [dossy@pa op ] Unit testing?
| 40263 [dennisn@pe n] Well, its a great idea. In point of fact, I do unit test my code.
| 40269 [dossy@pa op ] How can you perform static analysis on a language like Ruby
+ 40218 [pixel@ma dr ] well, in same category, there's pychecker for python. I don't know if
emacs, ruby-load-current-buffer to avoid questions of ruby-load-file
40170 [jean_hugues_] I was looking for a convenient function so that typing a key sequence
40179 [nobu.nokada@] inf-ruby-load-hook is run only when inf-ruby.el is loaded, so
svg vectorizing from win2000 command ine
40171 [henning@ik o] 1) I'd just like to execute a program from Ruby that I normally execute
What is Ruby for?
40180 [Steve.Merric] Or even 'Why <insert scripting language of your choice>'? I know it's me
+ 40188 [erik@ba fo s] You can probably use it in alot of places where you also can use C++.
+ 40189 [peter@se an ] First ask yourself 'What are languages like
| 40212 [ccos@bi po d] i use supercollider which is basically a smalltalk for music/sound
| 40216 [peter@se an ] Code, in Ruby, to generate random music as text files and a text to midi
| 40224 [ccos@bi po d] if you like the look of sc and your not on a mac, don't despair version
+ 40231 [ahumphreys@p] The first law of tool-wars is that in comparing programming languages it is
| + 40234 [ahumphreys@p] .... or are nauseated at the J2EE hype, saddened at the squashing of Jini,
| | 40512 [tom@in oe he] Amen!
| + 40511 [tom@in oe he] Augmenting Ant for building 12 Java projects
| 40519 [jim@fr ez .o] Are you using the gnuplot library in the raa or your own concoction?
| 40829 [tom@in oe he] I was using my own concoction... thanks for the pointer!
+ 40235 [mghall@en er] What's a language like "sh" or "awk" for? Getting things done.
| 40237 [Steve.Merric] Ouch! ;-) There are an infinite number of things I don't know yet. Try
| 40242 [mghall@en er] OK! :-)
| + 40244 [chris@cm -e ] Wise words.
| | 40274 [ser@ge ma e-] Yeah. My problem with this is that my brain is only so big. There's a
| | 40287 [chris@cm -e ] Oh, that's perfectly understandable, and I can sympathize. However, I
| + 40321 [in6x059@pu l] This is (also?) a suggestion in "The Pragmatic Programmer"
+ 40243 [sean@BU BY S] I still use C++ in most places and probably always will, but Ruby offers
| 40273 [ser@ge ma e-] I use Java for much the same reason I use Ruby: faster development, fewer
| 40285 [dblack@ca dl] As a David, and therefore lifelong sufferer of same name disease, I am
| 40295 [matz@ru y- a] For your information, in Japan, there're millions of Matsumotos.
| + 40299 [bigbill.smit] It's good to know I'm not alone.
| + 40313 [jason@jv eg ] I was in a book store the other day and saw a book called "Software
| 40352 [matz@ru y- a] No. It is sometimes pretty hard to distinguish Japanese names for
+ 40245 [dennisn@pe n] Probably the list of things not to use it for would be smaller, but
| + 40254 [hal9000@hy e] Thanks for referencing this, Dennis...
| + 40275 [ser@ge ma e-] Amen. A-fricken-men. Ruby made unit tests pleasant for me, which in turn
| 40298 [pit@ca it in] I haven't used the Smalltalk refactoring browser yet, but for real
+ 40554 [patrick-may@] Unless you have a problem, it can be difficult learning any language.
+ 40561 [dido@im er u] Right. The only way I've been able to learn any new languages in the
+ 40575 [Steve.Merric] Thank you! :-) I normally work in a real-time embedded
40658 [patrick-may@] This isn't anywhere near my domain. Would RHDL
40665 [ptkwt@sh ll ] I don't think RHDL is going to help him out - it's intended for modelling
Inline editing (non-command line)
40199 [djberge@qw s] I did a bit of google searching but didn't have much luck. Perhaps I missed
+ 40205 [in6x059@pu l] I never did it in Ruby, but if the feature is implemented similar to
| 40210 [michael_s_ca] Do note that in perl, a temp file is still used (behind the scenes)
| 40211 [djberge@qw s] Strangely, I was getting those funny characters at the end of
+ 40206 [nobu.nokada@] You mean -i option by `on the command line'? If so, ruby
+ 40213 [decoux@mo lo] Without a temp file, I know only this
| 40214 [djberge@qw s] Interesting. I guess I'll have to scrounge around Google looking for docs
| 40217 [decoux@mo lo] Guy Decoux
| 40219 [djberge@qw s] Well, that's odd. I could have sworn my first search turned up nothing when
+ 40220 [Dave@Pr gm t] I don't believe there's a way to do this on most conventional file
40226 [djberge@qw s] I figured that memory of some kind would be required.
40306 [decoux@mo lo] If I've well understood : Tie::File is designed to work with a regular
Distribute ruby app as exe
40202 [chris.morris] Just an FYI, I started a page in the RubyGarden wiki for this topic, after
Tk callback with parameters
40223 [kgergely@ml ] I've a (hope) simple Tk problem.
40225 [decoux@mo lo] Well, I've not understood if you a proc you can give any
ruby-dev summary #17001-17047
40227 [maki@ru yc l] This is a summary of ruby-dev ML in these days.
40257 [pbrannan@at ] What would this be useful for?
gtk doesn't load
40232 [matthias.wol] when I try to load the gtk libs in ruby, I get the message that there
40233 [mw@do .i .a ] You need to install the ruby gtk bindings as well. You could try the
Problems with the FXList
40236 [andre.bonkow] I am writing my first Ruby program, which is a small GUI application,
40238 [jlj@cf rc co] You need to always be sure to call the base class initialize method when
40256 [andre.bonkow] Oh, sorry. This should not be a surprise, as it's the same in Java which is
rb_define_variable for instance variables?
40239 [wardja@jm .e] Is there a way to have a shared instance variable like those defined
40253 [sean@ch tt n] An instance variable in C is two methods. In your Init() method,
40286 [wardja@jm .e] ...
Ruby Weekly News
40246 [Dave@Pr gm t] Ruby Weekly News: 05/13/2002
Ruby Weekly News
40258 [Dave@Pr gm t] Ruby Weekly News: 05/13/2002
LocalJumpError caused by nesting plus END plus require
40259 [vjoel@PA H. ] I'm getting a LocalJumpError only when three factors are present: nested
+ 40272 [nobu.nokada@] What does `ruby -v' produce? It doesn't occur in recent
| + 40276 [vjoel@PA H. ] ruby 1.6.7 (2002-03-01) [i686-linux]
| | 40281 [nobu.nokada@] Then, it's a fixed bug. You can use CVS or latest snapshot,
| + 40283 [nobu.nokada@] Oops, garbage test.rb was in my load path! Sorry to confuse.
+ 40280 [matz@ru y- a] This is a bug which I already fixed in 1.7, and forgot to backport to 1.6
40339 [vjoel@PA H. ] Thanks for the quick reply. It worked, too :)
Ruby Editor for Gnome
40260 [sean@BU BY S] I'm sure this has been covered in depth in the past, but I was wondering
+ 40261 [elanthis@aw ] There is Anjuata/gnome-ide, which is the current in-development GNOME
| + 40262 [sosoruby@em ] well if you like Windows style editors nedit is nice and knows about ruby syntax
| + 40277 [bluetea@RE O] vim does work well for Ruby as does Emacs/XEmacs (my fave). OTOH, if you
+ 40264 [ruby@th rs e] Not Gnome, but I'm happy with NEdit. The Ruby support is lacking at
| 40632 [lyle@kn lo y] I'd be glad to be a guinea pig for your Ruby/NEdit improvements too ;)
+ 40265 [vjoel@PA H. ] Nedit isn't particularly Gnome-friendly, but it is a nice general
Should we do something about newline?
40293 [gehlker@fa t] I just discovered that my copy of Ruby is picky about what constitutes a
40296 [cbbrowne@ac ] It is unlikely that this has anything to do with GCC; GCC doesn't
40324 [gehlker@fa t] I'm sure the difference *is* in the different versions of stdio that come
UTF8 and Regexp
40300 [hutch@re ur ] I understand that Ruby's regular expressions handle utf8. I'm having trouble
40301 [matz@ru y- a] Just embed them directly in the pattern, or
40311 [hutch@re ur ] OK, thanks, things are becoming clearer. I was doing the equivalent of this,
40358 [matz@ru y- a] A bug in regex.c. It will be fixed soon. If you can't wait, change
40302 [nahi@ke na t] I created a brief brief summary of marshaller
[BUG] trying to fix ruby-gtk's menu.popup
40308 [mips@cy er p] i've seen that there was a problem to use menu.popup with a reposition
40314 [decoux@mo lo] best to write it, in your case
+ 40320 [mips@cy er p] I'll try it.
| 40323 [decoux@mo lo] this script work for me, i.e. it display the menu ("Halo Exit" at
| 40327 [mips@cy er p] Well it works too when i remove the 'return', i'm missing something in
| 40329 [decoux@mo lo] You have probably written something like this
| 40330 [mips@cy er p] Right, you hit the point.
+ 40381 [nobu.nokada@] To use RARRAY(arr)->ptr, you need check RARRAY(arr)->len. And
40315 [djberge@qw s] Is rubycookbook.org down? I can't seem to get to it.
code showing Array not thread safe?
40316 [chris.morris] I have need for a thread safe Array, so I threw one together -- but in
40317 [decoux@mo lo] What do you call safe ?
40326 [yuns@us ib .] I am trying to run a CGI script from "Programming Ruby" book and getting an
+ 40356 [yuns@us ib .] I forgot to mention the Ruby version.
+ 40365 [yuns@us ib .] I found out what the problem was.
40371 [szegedy@t- n] Thanks! Good to know! I have tried your script and it also crashed on my
[BUG] thread failure after trap
40337 [j.travnik@sh] I have encountered bug in ruby threads.
40395 [decoux@mo lo] No, not really
querying for the terminal size
40342 [ian@ca ib n.] I would like to obtain the current terminal size (rows x columns) from
40350 [pbrannan@at ] Dunno how portable it is (I don't usually do this sort of thing), but
40357 [ian@ca ib n.] Thanks. Unfortunately, I need something more portable, since the
ANN: REXML 2.3.3
40346 [ser@ge ma e-] Getting tired of the upgrades yet?
+ 40361 [ptkwt@sh ll ] Sean,
| 40363 [sean@BU BY S] I agree...it's truly a gem (pun intended). I hope it finds its way into
| 40384 [ser@ge ma e-] Thanks, guys. It is good to hear that.
+ 40388 [dossy@pa op ] Does this one not break the XML document? AFAIK, the current pretty
+ 40406 [ser@ge ma e-] All pretty printers "break" the XML document, if by "break" you mean
| + 40414 [sean@BU BY S] Dossy has a point, although pretty printing XML is problematic in
| | 40435 [ser@ge ma e-] Right. We'll get nice pretty printing; I haven't worked on it much, but it
| | + 40437 [dossy@pa op ] Bob did post an example of a transitive method of pretty-printing
| | + 40438 [sean@BU BY S] Hmm...I'm thinking of how maybe the two could be mixed...hmm.
| + 40427 [dossy@pa op ] Yup. I realized that in the reply I sent privately to you.
| 40483 [ser@ge ma e-] Yah, we crossed in the mail.
+ 40407 [ser@ge ma e-] <posted & mailed>
+ 40412 [rich@in oe h] I'll weigh in here...
| + 40418 [dblack@ca dl] My feeling is that if you're doing pretty-printing, then you've
| | + 40422 [sean@BU BY S] Yeah, but there's a difference between whitespace in parental elements
| | | + 40433 [dossy@pa op ] I mentioned this to Sean (not you, Sean, the other Sean, the
| | | | + 40439 [sean@BU BY S] Uh...lol...darn, I suggested doing a raw=true|false attribute and didn't
| | | | | 40477 [dossy@pa op ] Not only is it logical, but it's mandatory in order to comply
| | | | + 40481 [ser@ge ma e-] I don't know. I'm pretty sure REXML doesn't, but I could add it at a speed
| | | | 40506 [dossy@pa op ] Is there a page on the RubyGarden wiki for Test::Unit?
| | | | 40507 [pate@ey er a] yes, sort of. I created a page with Nathaniel's excellent description of
| | | + 40480 [ser@ge ma e-] <p>Actually, I see this sort of structure a <em>lot.</em></p>
| | + 40426 [hutch@xa pl ] Either
| | | + 40434 [dossy@pa op ] Ooh, good point.
| | | + 40440 [tobiasreif@p] This doesn't look pretty to me :)
| | | | 40442 [hutch@re ur ] I don't completely disagree with you, however, it does look much more
| | | | 40446 [tobiasreif@p] Still looks ugly to me. There's no agreement to be reached; it's about
| | | | + 40484 [ser@ge ma e-] Default behavior: No pretty printing. Preserves everything. Same thing as
| | | | | + 40493 [hutch@xa pl ] So... call it 'ugly printing' :-)
| | | | | + 40504 [tobiasreif@p] cool :)
| | | | + 40757 [xlucid@us rs] There is a good sound reason other than taste for disliking the
| | | | 40801 [hutch@re ur ] You are making perfectly reasonable arguments here. Just don't forget the
| | | | 40807 [tobiasreif@p] Nobody suggested such behaviour.
| | | | + 40821 [hutch@re ur ] Some of the suggested pretty printing formats add whitespace inside
| | | | | 40834 [tobiasreif@p] ... and aren't "pretending" to do so unlike you suggested.
| | | | | 40855 [hutch@re ur ] Well, OK, maybe 'pretending' wasn't the best choice of words. But my opinion
| | | | | 40866 [tobiasreif@p] As Sean said, there probably will be varius options for PP; some will
| | | | + 40886 [ser@ge ma e-] Unfortunately, this is what pretty printing usually does, unless you use the
| | | | 40888 [tobiasreif@p] I know; I just pointed out that the PP would not "pretend" to not do that.
| | | + 40482 [ser@ge ma e-] Ugly, but an excellent idea. XXE does it this way.
| | | + 40485 [Dave@Pr gm t] Have you looked at 'tidy'?
| | | + 40495 [sean@BU BY S] Why not just put it in its own module and give it a name that indicates
| | | | 40726 [ser@ge ma e-] I just got back from a trip. Sorry for the delay. There've been a lot of
| | | | 40777 [nat.pryce@b1] (OOP).
| | | + 40508 [patrick-may@] This makes sense. There are many different ideas of "pretty"
| | + 40431 [dossy@pa op ] What about empty tags that are specified by a start tag and
| | + 40499 [dblack@ca dl] Whoops, I really didn't mean to be quite *that* cavalier about the
| + 40479 [ser@ge ma e-] Yeah, I think that's where I'm going. Atually, your example formatting
+ 40415 [dblack@ca dl] I think (for what it's worth, if anything) it's more exact to say that
40416 [chris.morris] <a>
+ 40419 [rich@in oe h] Absolutely right...forgot to indent.
| 40420 [chris.morris] I think this thread has moved into 'have your cake and eat it, too' -- how
+ 40430 [dossy@pa op ] earlier.
[ANN] DbTalk 0.6
40347 [dali@ep t. z] I would like to announce a new release of my Ruby project DbTalk.
40391 [djberge@qw s] Any chance of adding Oracle support? How hard would it be to plugin?
Halting Problem (was "Re: code coverage tool?")
40348 [rick@ri kb a] I wish I had more information to offer regarding coverage analysis, but
40354 [in6x059@pu l] Halting Problem (was "Re: code coverage tool?")
Ruby Debugger for Windows
40349 [dennisn@pe n] A few weeks ago I recall an email message on this list regarding a
40359 [QZS01353@ni ] Maybe it is RDE.
Latest Windows version?
40355 [bobx@li ux a] Timeline for 1.6.7?
Retrieving External IP
40360 [sigilmoon@ho] I'm attempting to write a small script that retrieves a servers
40410 [mike@st k. o] Do you know the name of the external interface? It may be different from
40411 [mike@st k. o] Ignore me, plugging the right hostname into IPSocket.getaddress(host) works
Kate Ruby.xml Syntax File
40362 [sean@BU BY S] Does anyone happen to have a copy of Nigel Ball's ruby.xml file for
+ 40375 [bobx@li ux a] ...
| 40376 [sean@BU BY S] the only one I've ever seen that worked right with Kate.
+ 40400 [uzs5p3@un -b] ...