50319-51748

50034-52408 subjects 50580-51355

Tcl's "clock scan" as an idea for a CodeFest project  (was Re: camelCaseTo_ruby_case.rb ??)
50319 [dossy@pa op ] It's a lot to ask for, but if someone wants to try and implement the
50324 [ptkwt@sh ll ] What does Tcl's 'clock scan' do?
50325 [dossy@pa op ] % clock format [clock scan "8 months 3 weeks 1 day 6 hours 30 seconds ago"]
50345 [michael_s_ca] Cool!  Go ahead Dossy, jump on it.  =)  Knowing you, it'll be done
50436 [dossy@pa op ] Hehe.  Unfortunately, I'm in the middle of implementing the ICal

a few build script recipes for the list
50328 [patrick-may@] I just worked on some build scripts.  I thought I found some neat
50371 [list@NO PA c] Nice.  I'm working on dependency handling for rpkg right now (see next
50447 [patrick-may@] Ruby's license.  Looks like you've been pulling an all nighter.

A PLEA FOR CHARITY
50332 [sigurnost_by] 750/2001, Company Identification No. 1701007502, this FOUNDATION named F=

Ruby Weekly News
50336 [Dave@Pr gm t] Ruby Weekly News: 09/16/2002

interbase.dll, Where?
50341 [jilani.khald] I am Ruby again!

OpenCyc Formalized Common Knowledge
50356 [jobeicus@ho ] Has anyone taken a look at the OpenCyc project?  Here's an overview I
50365 [rich@in oe h] There is A LOT of java code that backs this OpenCyc project (see CVS).

Ruby Conf
50357 [jim@fr ez .o] Did you ever find out how far from the SEA airport
+ 50375 [dblack@ca dl] No....  Can I punt this to the Seattle crowd?  (Hey,
| 50389 [dblack@ca dl] OK, I guess they're asleep :-)
+ 50388 [ryand@ze sp ] ddResults.py?proceed=Proceed&Pyt=Tmap&tarname=&tardesc=&newname=Seattle+
+ 50435 [pate@re -b a] It's about 30 minutes call it 15 miles.  SeaTac airport is in a suburb to

Why are parser tools rarely used in ruby?
50369 [mikkelfj-ant] Why is it that all the ruby source I find in the Ruby (windows) distribution
+ 50382 [Dave@Pr gm t] I wanted to do RDoc for a long time, and was waiting for a parser in
+ 50397 [ADATE@kc rr ] I tried using Rockit but could not make it work. Posting for help on this ML
| 50406 [jim@fr ez .o] I have used Rockit and it worked fine, after I installed Memoize and
| 50433 [ADATE@kc rr ] initialized constant BoundedLruCache
+ 50432 [list@NO PA c] I tried doing some parsing in Ruby months ago.  No prior experience in
| 50434 [rich@in oe h] Just to put in a little plug for a friend...Bob Calco is actively
| 50442 [ptkwt@sh ll ] So we'll be able to get the AST for the currently running program?  Any
| 50496 [robert.calco] I think I can have an operational lexer/parser in about two weeks or so. It
+ 50448 [pbrengard@bc] rdoc uses rexml.
| 50479 [Dave@Pr gm t] Does it?
| 50547 [pbrengard@bc] errh...
+ 50450 [patrick-may@] It could be that most pseudocode is valid ruby.  And the language like
+ 50507 [ruby-talk@wh] I don't think Racc can compile from MS Visual Studio.  I imagine this is a
  + 50514 [mikkelfj-ant] but I
  + 50545 [pbrengard@bc] yes, it can compile. You just have to fix the setup.rb script and
    50670 [mikkelfj-ant] from
    50676 [aamine@mx ed] % ruby setup.rb config --make-prog=nmake

Dependency "trees" - suggestions?
50374 [list@NO PA c] I'm struggling with building dependency "trees" for rpkg.  What
+ 50381 [pbrannan@at ] You could raise an exception only when you encounter a cycle while
| 50429 [list@NO PA c] Yes.  This means that for each node I add, the entire graph has to be
| 50472 [pbrannan@at ] OIC, you aren't interested in protecting against a corrupted database;
| 50474 [list@NO PA c] Actually, the user just specifies the starting package.  rpkg looks at
+ 50396 [ADATE@kc rr ] So this is a DAG "Directed Acyclic Graph" for which there many algorithms
| + 50402 [gotoken@no w] cites the beginning of tsort.rb's embedded document.
| | 50430 [list@NO PA c] *Sound of head banging against the wall*
| | 50441 [gotoken@no w] % cat ~/foo.rb
| + 50513 [horst@hd ch ] You migth also have a look at http://rgl.sourceforge.net/ which provides a method
+ 50428 [chrismo@cl b] Tangent to your post ...
  50431 [list@NO PA c] If there is a bar 1.4 around that is not backward compatible with bar
  50464 [chrismo@cl b] Meaning you won't support multiple versions of the same package in the
  50468 [list@NO PA c] Meaning that when two versions of a package are different enough as to
  50471 [chrismo@cl b] Gotcha. Thx.

Is Ruby Array#shift/unshift Efficient?
50390 [billtj@y. lu] I just scanned the Ruby array implementation in array.c, and to my
50394 [matz@ru y- a] "shift" is fixed in 1.7.
50399 [billtj@y. lu] For the next stable release of Ruby (with shift() fixed), will these two C
50400 [matz@ru y- a] Yes.
50405 [billtj@y. lu] Thanks a lot for the response.
+ 50408 [matz@ru y- a] Interesting point.  I wish users do not need to worry about efficiency
| 50467 [billtj@z. lu] I also noticed that the pickaxe book does not discuss execution
+ 50470 [mikkelfj-ant] I have been looking into a deque-like datastructure I call an I-Tree or

comments and continuing strings on the next line
50403 [pbrannan@at ] foo =
+ 50414 [Dave@Pr gm t] I'm not sure it _is_ different. I believe Ruby folds adjacent constant
+ 50417 [billtj@y. lu] I don't know whether it is different, but it seems this format also works,
  + 50419 [pbrannan@at ] foo = %Q!\
  | 50469 [billtj@z. lu] May we know the actual purpose of this?  If the indenting is really
  | 50473 [pbrannan@at ] Well, I typed it misleadingly the first time.  In code, you'd see
  | 50477 [billtj@z. lu] I guess if it were for me whether I am going with the first solution
  + 50476 [nobu.nokada@] This style comment inside string no longer works in 1.7, right
    50481 [billtj@z. lu] In my opinion, the #{expression} rule ought to take precedence than the
    50553 [nobu.nokada@] Comments are from # until EOL, always.  And also comment in

back tick equivalent
50407 [WEICHI.CHENG] Just install ruby last Friday and tried to find the back tick equivalent as
+ 50409 [alan@di ik t] Backticks should work the same in ruby, if you want an array of lines,
| 50413 [gotoken@no w] Or
| 50416 [WEICHI.CHENG] Thanks all for the reply ! This is just what I want and I can even locate
+ 50410 [billtj@y. lu] What is your platform?  At least on linux, I could do
  50412 [djberge@qw s] If you're interested in an actual interface to ps, see Sys-ProcTable,

Help on  installing ruby-qt on windowsXP
50411 [ajksharma@ya] I have done the fiolowing.
+ 50418 [Mark.Volkman] ...
| 50439 [ajksharma@ya] I know it is expensive in windows. But I am just trying to get Qt to work.
| 50454 [pbrengard@bc] yes, no problem, it works well. And there are no problems compiling it
+ 50456 [szegedy@no p] "Use setup.rb to install Ruby/Qt. For detail, see setup.doc.en
| 50457 [szegedy@no p] You just simply have to change the QTDIR environment variable to
+ 50544 [horie@sm il ] The source directory of Ruby is described in rbconfig.rb file in

ruby-dev summary 18213-18280
50421 [maki@ru yc l] This is a summary of ruby-dev ML in these days.

Third Sydney Ruby Users' Group meeting
50426 [harryo@zi .c] Well, I've left it a little late again, but ...

FXRuby and exerb.rb?
50444 [coma_killen@] Anyone know if FXRuby apps can be packed up to a single exe with
+ 50463 [dossy@pa op ] Heh!  Just yesterday (literally) I started using exerb.rb -- and I'm
+ 50485 [lyle@us rs s] I don't think it's going to work as-is with the current version of
  + 50493 [nobu.nokada@] Recent exerb has a trick for rb_require(), but none for
  | 50510 [lyle@us rs s] Actually, I was mistaken: My code was calling rb_require() and not
  + 50498 [alan@di ik t] I've been told that the CVS version of exerb fixes this with some

Java vs. Perl vs. ...
50451 [james@ja es ] The "Use Perl" website (use.perl.org) has a small entry commenting on a Java
+ 50459 [djberge@qw s] The problem with the article, as several have pointed out, is that the
+ 50462 [mike@st k. o] There are plenty of comments about the merits of the particular
| 50488 [joe@vp p. et] r1 = Regexp.new(/\.(?:css|jpg|gif|CSS|JPG|GIF) HTTP/)
+ 50599 [djberg96@at ] Quick followup...

latest version of Test::Unit
50453 [mjais@we .d ] at the homepage from test unit there is version 0.14
50458 [mike@st k. o] rough/lib/testunit.  Something like

A Windows issue with Kernel#select...
50460 [ben@bl hr co] I'm working on a Class that I'd like to be able to use on both Windows and
50551 [nobu.nokada@] It sounds like the bug reported in [ruby-talk:40009].  If so, it

Qt vs. FOX vs. ? (was Help on  installing ruby-qt on windowsXP)
50466 [Mark.Volkman] ...
+ 50492 [kgergely@ml ] I also wonder what GUI is the best under windows.
| 50503 [rich@li hi o] Crashing?? What code is used when your GUI's crash? Is it a specific
| + 50504 [rich@li hi o] Crashing?? What code is used when your GUI's crash? Is it a specific
| + 50651 [kgergely@ml ] The example codes.
+ 50508 [web2ed@ya oo] Isn't somebody on this list porting the Perl/TK text to Ruby/TK?  I
  50512 [mikkelfj-ant] The latest releases of FxRuby has improved stability significantly - get the
  + 50520 [lyle@us rs s] If anyone else is reading this thread, is the Scintilla test program
  | + 50540 [curt@hi bs c] I can confirm that the FreeRIDE is making very heavy use of FXRuby's
  | + 50556 [mikkelfj-ant] the
  | + 50581 [tarasis@bt p] Yes, using 1.7.2-4 Windows install - running on WinXP
  |   + 50582 [tarasis@bt p] make that "scintilla-test.rbw" and "scintilla-test.rb"
  |   + 50583 [tarasis@bt p] The same thing also applies to table.rbw
  |   + 50593 [lyle@us rs s] 1. You only see it crash when it's running the
  + 50557 [guaracybm@ig] the
    50594 [lyle@us rs s] Guaracy,
    50658 [kgergely@ml ] Gergo

qt licensing on windows!
50482 [ajksharma@ya] Thanks you  for answering my question for installing ruby-qt on

How to tell what directory the current file is in?
50487 [mfraser@se s] How can I tell what directory the current file being executed is in?
+ 50494 [nobu.nokada@] File.expand_path(File.dirname(__FILE__))
+ 50495 [pbrannan@at ] absolute_filename = File.expand_path(__FILE__, Dir.getwd)

SMTP and MIME (Ruby Cookbook site down?)
50491 [probertm@no ] I am wanting to send an attachment using SMTP and I was looking

RE: Why are parser tools rarely used in Ruby?
50497 [robert.calco] I think I can have an operational lexer/parser ready for general
50505 [ptkwt@sh ll ] Sounds good!  I look forward to playing with it.

eruby-mysql-already initialized constant
50500 [jayaywhy.fab] trying to use eruby.

CGI Parameter Conversion
50501 [mxvera@qw st] Greetings all,
+ 50502 [boognish23@y] checkboxes
+ 50554 [meier@me st ] i =3D p['count'].first.to_i

Net/Telnet Script Tuning question
50506 [michael.d.he] I've modified an expect script to reset passwords for batch accounts into

Custom error messages in eruby?
50509 [sera@fh an .] Is there a way to configure eRuby so you can get custom error
50533 [patrick-may@] If you want to have a more nicely formatted error, I think Apache

Re: Another latecomer; A half-baked suggestion.
50511 [jim@fr ez .o] Sorry, I don't understand the above. Are you saying that some XML file

Are there any O'Reilly Ruby books on the horizon?
50515 [gmnotyet@ya ] Dear Ruby Users,
50516 [james@ja es ] Are you aware of the Ruby in a Nutshell book?
50572 [gmnotyet@ya ] Yes, I am aware of Ruby In A Nutshell but was looking for something
+ 50577 [james@ja es ] There's a Ruby Garden Wiki page that tracks Ruby book development; at the
+ 50687 [mvondung@gm ] Different publisher and awful title, but Mark Slagell's "Teach
| 50700 [Mark.Volkman] ...
| 50712 [Dave@Pr gm t] I'm not aware of any. To be honest, the Ruby book market, despite the
+ 50943 [avdi@av i. r] Frankly, the Pickaxe Book ("Programming Ruby", by Dave Thomas and Andy

Re: Why are parser tools rarely used in ruby?(Rockit)
50517 [ptkwt@sh ll ] There have been a couple of positive mentions of Rockit in this thread.
50548 [feldt@ce ch ] I'm a bit ashamed to say that I've had almost no time for Ruby or Rockit
+ 50559 [jim@fr ez .o] I will be looking forward to that. If the C version is as fast as racc, then
| 50571 [hal9000@hy e] and
+ 50573 [ptkwt@sh ll ] We look forward to your return!
+ 50607 [web2ed@ya oo] Am I reading this 'rite'?  Rocket has a C backend, meaning that one
+ 50701 [W.L.Kleb@la ] Could you be enticed with a couple week stint in the Eastern US?

GridFlow 0.6.2
50518 [matju@sy pa ] Here is a new release of GridFlow (a multi-dimensional dataflow processing

Regular expression bug, or feature?
50519 [ser@ge ma e-] I've got a strange feeling that this is one of those little bits of
+ 50521 [ADATE@kc rr ] on ruby 1.7.2 (2002-07-02) [i386-mswin32] it hung even ** without ** the CR
| 50522 [ADATE@kc rr ] src = '<hosted class="com.firsthop.mg.gui.Servlet" product="TestSuite"
+ 50523 [ADATE@kc rr ] Sorry, I did not register this until after my previous post ... so that it
+ 50526 [billk@ct .c ] Ruby should process it almost instantly...
+ 50529 [joe@vp p. et] not really "hang" but it does take a while to run.  mine eventually

Matz, if you're reading, please scan this email
50525 [ser@ge ma e-] I've found a problem with the Ruby interpreter, wherein the
+ 50527 [matz@ru y- a] I will examine.  Could you show us your ruby -v output?
+ 50617 [john.carter@] A really good way of trapping such bugs is valgrind. If you run your test
+ 51159 [gsinclair@so] I think that, faced with that sort of code, my brain would segfault before Ruby
+ 51226 [sean@ch tt n] In the unit tests for libxml, I think I've pushed things to SEGV land
  51281 [decoux@mo lo] Can you send me, in private email, the tests which crash ruby ?
  51454 [sean@ch tt n] bzip2:     http://www.rubynet.org/modules/xml/ruby-libxml/ruby-libxml-0.03-snapshot-20020926.tar.bz2
  51592 [decoux@mo lo] Well, if I'm right the problem is in ruby_xml_parser_io_set()
  51742 [sean@ch tt n] data from RAM, not from an actual IO socket.  I've created a simpler
  51748 [decoux@mo lo] Here the example

TkText key bindings
50528 [x@ic im nk .] Anyone know how to get rid of the custom bindings on a TkText widget? I can

Ruby and inline C or C++
50530 [derek@hi gr ] All of this talk in regards to RubyInline made me start thinking about
50568 [web2ed@ya oo] Is this conceptial or real?
+ 50569 [frido@q- of ] yes it can be done. But how much worth is it for you?  How many
+ 50578 [ptkwt@sh ll ] As an aside (and I'm starting to sound like a broken record here, but I do

A newbie question for using sort
50531 [stmpeters@eS] I've been trying to use sort for an array and I seem to be missing
+ 50536 [ADATE@kc rr ] You are forgetting that Array#sort is not destructive.
+ 50538 [flori@ni e. ] arr.sort doesn't change the order of arr but returns a new array with
  50608 [stmpeters@ea] Thanks, this helped!

Code coverage in Ruby?
50532 [hal9000@hy e] Has anybody worked on a method for determining
+ 50534 [jweirich@on ] You read my mind ... Test Driven Design --- Its a way of life :-)
+ 50535 [jim@fr ez .o] Won't -w catch these?
  50537 [hal9000@hy e] <confession>
  50539 [eban@os ri .] Ruby will give you a warning only when the right-hand side
  50543 [hal9000@hy e] Thank you. I had not remembered that correctly.

Capturing stdout from cmd while letting it print it
50546 [coma_killen@] I want to capture the output from a program but still have it print to
50550 [nobu.nokada@] "mycmd" may buffer and not flush the output.  How large is the
50552 [coma_killen@] mycmd is really a checksum verification program that goes through
+ 50575 [David.Stagne] Assuming you're in a command-line context, what you want is the "tee"
+ 50631 [nobu.nokada@] Standard C runtime libraries buffers output to IO descriptor

[BUG] Re: A Windows issue with Kernel#select...
50555 [ben@bl hr co] Just upgraded to 1.7.2 on my Windows box, and it looks like you're

SWSAPI for Ruby?
50558 [Mark.Volkman] ...

Rescue clause or equivalent for catch?
50560 [jfh@ci e. fl] Does having a rescue clause for catch sound like a good idea to anyone?
+ 50564 [decoux@mo lo] You can write
+ 51157 [gsinclair@so] Just wrap the code you want rescued in begin ... rescue ... end.

Picking arbitrary elements from an array
50561 [jfh@ci e. fl] Anyone like the idea of being able to pick arbitrary elements from
50562 [decoux@mo lo] Array#indices (deprecated in 1.7.*)
50565 [jfh@ci e. fl] Gak -- I read right over that about 5 times...thanks,
50566 [michael_s_ca] Is there going to be a 1.7+ replacement?
50567 [decoux@mo lo] Yes, Array#select
+ 50570 [michael_s_ca] <D'oh>, I missed that part from your original post; thanks.
+ 50574 [hal9000@hy e] How does this relate to Enumerable#select,
  50576 [dblack@ca dl] Judging from some 1.7.3 experimenting, it seems that Array#select, if
  51158 [gsinclair@so] [1,3,6].at(1,2) => [3,6]        PROPOSED

Lightweight Languages 2 workshop
50563 [dan@si he or] The website and announcement for the workshop is getting out.

How to Efficiently Calculate the Pattern of Zeros and Ones?
50579 [billtj@z. lu] I am dealing with this algorithmic problem.  I have an array of arbitrary
+ 50589 [joe@vp p. et] Well, I don't have a test case for it, so there could be a bug
| 50595 [billtj@z. lu] Hey, it seems it is working pretty well.  Thanks a lot for writing the
+ 50621 [mrchameleon@] Is this too slow?
| 50622 [dblack@ca dl] That counts all the 1's, without regard for whether or not they're
+ 50645 [holmberg@ia ] I don't know if the following is efficient in terms of CPU-cylces
  50724 [vjoel@PA H. ] I had to go back and check whether each_with_neighbors generated lots of
  50726 [billtj@y. lu] If the "shifts data through it" is accomplished using Ruby
  50776 [vjoel@PA H. ] No doubt the state machine approach is faster, and you're also accurate
threads.html
top