[#91148] Constant visibility — Gavin Sinclair <gsinclair@...>
Folks,
[#91151] Python 25 times as popular as Ruby !? — llothar@... (Lothar Scholz)
Hey,
In article <401D4F5E.70704@po.cwru.edu>, Dan Doel <djd15@po.cwru.edu> wrote:
Lothar Scholz wrote:
On Sunday 01 of February 2004 08:53, Dan Doel wrote:
Emmanuel Touzery wrote:
Hello Dan,
[#91156] check whether a class is defined, listing all classes — David Garamond <lists@...6.isreserved.com>
Given a string of fully-qualified class name, how do I easily check
Robert Klemme wrote:
[#91164] exerb: packer? — David Garamond <lists@...6.isreserved.com>
Is it safe to use executable packer (like UPX) to the .exe generated by
[#91197] ruby way to enumerate users — "Robert K." <anon@...>
Hi,
>
On Sun, Feb 01, 2004 at 08:43:11PM +0100, Robert K. wrote:
On Monday, February 2, 2004, 8:14:50 AM, Mark wrote:
Me> What is needed is a Ruby interface to the getpwent() family of system calls.
[#91213] GUI toolkit — Robert <bobx@...>
Has the community decided on a "standard" Ruby GUI toolkit? I know the
[#91225] Rubyx (linux distro created using ruby) - Bootstrap volunteers required — Andrew Walrond <andrew@...>
Rubyx is almost ready to go public :)
I'm here to be used and abused, ever since the post on ./ I've put aside a
On Sunday 01 Feb 2004 10:25 pm, Zach Dennis wrote:
[#91265] HTML parsing — Gavin Sinclair <gsinclair@...>
Hi folks,
[#91269] test::unit caller stack feature request — Simon Strandgaard <neoneye@...>
A typical call stack of mine look like the following.
[#91274] Silly question — Brad <BCoish@...>
All:
[#91286] code that has been reached — Simon Strandgaard <neoneye@...>
Does there exists a tool for Ruby which records which parts
[#91307] Ruby Web Application Framework Roundup — Gavin Kistner <gavin@...>
I'm trying to decide which Ruby web application framework to use (if
il Mon, 02 Feb 2004 16:45:15 GMT, Gavin Kistner <gavin@refinery.com>
On Tue, 3 Feb 2004, Gavin Kistner wrote:
Kirk Haines wrote:
On Tue, 3 Feb 2004, Chris Morris wrote:
paul vudmaska <paul@vudmaska.com> wrote in message news:<401ECA9F.4070903@vudmaska.com>...
On Wed, 4 Feb 2004, paul vudmaska wrote:
On Wed, 4 Feb 2004, paul vudmaska wrote:
On Wed, 4 Feb 2004, paul vudmaska wrote:
----"paul vudmaska" wrote:----
On Tuesday, 3 February 2004 at 1:49:51 +0900, Gavin Kistner wrote:
[#91310] OpenGL — Martin larsson <morg@...>
Hello
[#91315] role pattern lib for ruby — shasckaw <shasckaw@...>
Hello there,
See Ruby Object Teams http://sourceforge.net/projects/robjectteam/
Thansk for the link, it looks interesting but it is perhaps too complex
shasckaw wrote:
Is there a description of it somewhere?
Sam Roberts wrote about Object Teams:
Pit Capitain wrote:
Well, that was some good links, but they're all pretty hand-wavy about
[#91323] Questions about stdout/stderr combining (for Windows & Linux) — Patrick Bennett <patrick.bennett@...>
I'm working on a build tool, and I need to execute various
[#91333] Destructive String Methods — google@... (John W. Long)
Is there a way to tell when a destructive method has been called? I've
[#91364] shell scripts in background (with &) - why would they stop? — Ruby Baby <ruby@...>
Shouldn't a Ruby script keep running if someone uses the "&" at the end of the command?
>nohup ./processFiles.rb&
On Mon, 2004-02-02 at 20:12, Zach Dennis wrote:
--- Ryan Dlugosz <ryan@dlugosz.net> wrote:
On Tue, 3 Feb 2004 10:02:09 +0900, Ruby Baby wrote:
[#91375] Modules defining class methods to include? — Tim Bates <tim@...>
irb(main):001:0> module Foo
[#91376] Windows Registry — Robert <bobx@...>
Does Ruby come out of the box with ways to handle the Windows registry?
[#91407] RCR draft for enhanced "case..when..else..end" syntax — Guoliang Cao <gcao@...>
Hi,
On Wed, 4 Feb 2004 00:45:07 +0900, Robert Klemme wrote:
Hi,
Guoliang Cao wrote:
On Wed, 4 Feb 2004 01:00:25 +0900, Gennady wrote:
Austin Ziegler wrote:
[#91412] Image conversion ... — "Useko Netsumi" <usenets_remote_this@...>
Hi, is there any Ruby code snippets I can use to transform my photo to lower
[#91428] nested list with rdoc — shasckaw <shasckaw@...>
Hello there!
[#91430] Arachno Ruby IDE — Yura Kloubakov <yura@...>
[#91435] ruby-serialport on Win32 — Stephan K舂per <Stephan.Kaemper@...>
Hi group,
On Wed, Feb 04, 2004 at 02:15:04AM +0900, Stephan K舂per wrote:
Hi all,
[#91436] ARGV problems — tony summerfelt <snowzone5@...>
i seem to be having a problem with ARGV.
[#91472] ruby and pointers — Elias Athanasopoulos <elathan@...>
Hello!
[#91476] String.hex and valid mac addresses : a cleaner way ? — Theodore Knab <tjk@...>
Is there a cleaner way to doing this ?
[#91483] Newbie question — "Stephen Taylor" <sjt@5jt.com>
We are two grey-haired programmers studying Ruby and have a question so
[#91488] eistein's riddle — "Ara.T.Howard" <Ara.T.Howard@...>
Hardly efficient (in fact I haven't yet run it through to completion),
[#91523] overriding setup in Test::Unit — Ian Macdonald <ian@...>
Hello,
[#91547] -0777 broken in 1.8.1? — Aron Griffis <ruby-talk@...1.net>
Version 1.8.0:
[#91565] New Computer, version, confusion — Ronald E Jeffries <ronjeffries@...>
I just got a new computer and need to get stuff moved over to it.
[#91579] two questions — caligari <il_piccione@...>
Hi all, i'm new to ruby and i find it very exciting, but i've two little
[#91583] case with multiple expressions — Hal Fulton <hal9000@...>
Is there anything wrong with this kind of solution?
[#91590] An assimilators guide to Python? — "Josef 'Jupp' SCHUGT" <jupp@...>
Hi!
il Thu, 5 Feb 2004 10:39:37 +0900, "Josef 'Jupp' SCHUGT" <jupp@gmx.de>
[#91613] Re: Irb Ri integration (Was: An assimilators guide to Python?) — "Gavri Savio Fernandez" <Gavri_F@...>
> From: Charles Comstock [mailto:cc1@cec.wustl.edu]
[#91626] HTML Parsing? — Martin Hart <martin@...>
On Friday, February 6, 2004, 5:39:15 AM, Dave wrote:
[#91633] YAPV (Yet Another Pickaxe Version) — Gavin Kistner <gavin@...>
As promised in another thread, I am working on a new web version of the
sooo slllooowwww.
[#91635] io/nonblock — "Ara.T.Howard" <Ara.T.Howard@...>
[#91641] Fw: [XP] A Job Posting : Extreme Programmer needed. — Pit Capitain <pit@...>
I found this today on the extreme programming mailing list:
[#91649] How do I bounce? — adavies@... (andrew davies)
I use pop.rb to download emails on a whitelist
[#91665] Is there any way to mark an object as "always in use" (specifically, in a C extension)? — Harry Ohlsen <harryo@...>
Some background ...
Hi,
nobu.nokada@softhome.net wrote:
At Sat, 07 Feb 2004 07:46:33 +0900 wrote Harry Ohlsen:
> >>It's quite fast. I use it for huge XML documents where
[#91678] pl-ruby detecting postgresql 7.4 under redhat — David Garamond <lists@...6.isreserved.com>
I hope discussion on pl-ruby is welcome in this list.
>>>>> "D" == David Garamond <lists@zara.6.isreserved.com> writes:
[#91680] mkfifo in Ruby 1.8? — "Basile Starynkevitch [news]" <basile-news@...>
Why is (the library call) mkfifo missing in Ruby 1.8? Is there a way
Hi,
I just installed ruby-1.8.1 and found this problem.
Hi,
Yukihiro Matsumoto wrote:
Hi,
nobu.nokada@softhome.net wrote:
As suggested in an earlier email, I blew away /usr/local/lib/ruby - which
>>>>> "B" == Bob Gustafson <bobgus@rcn.com> writes:
[#91682] Is 1.8.2 imminent? And detecting Rubyx version — Andrew Walrond <andrew@...>
I'm holding off an 'official' release of Rubyx (ruby based linux distro)
On Fri, Feb 06, 2004 at 04:58:03PM +0900, Andrew Walrond wrote:
[#91684] Removing methods from DRbObject — Tim Bates <tim@...>
My application is using DRb extensively in support of its client-server
[#91710] Email parsing — Rove Monteux <rove.monteux@...>
Hi there.
On Sat, 7 Feb 2004, Rove Monteux wrote:
Thanks again,
[#91728] Re: [ANN] RedCloth 2.0 -- A Textile Humane Web Text Generator — Yura Kloubakov <yura@...>
Yura Kloubakov wrote:
* why the lucky stiff <ruby-talk@whytheluckystiff.net> [Feb, 06 2004 23:40]:
[#91762] Problem with sending a mail — Dirk Einecke <dirk.einecke@...>
Hi.
[#91770] MS have right on the word "Windows" ? — "Park Heesob" <phasis68@...>
Hi,
[#91771] Multi-threading lesson wanted — Tim Bates <tim@...>
Hi all,
[#91777] I卒m too dumb to program — Lester_t_linpord@... (Lester T. Linpord)
Because I危 a moron.
[#91799] TkEntry with { (left brace) characters — Mac <webrg.ruby-talk.com@...>
I've tried to boil this down to be as meaningful as possible. I'm
Hi,
[#92456] Re: running a class from the base class — "Shashank Date" <sdate@...>
[#92458] (2004-02-09) Mailing list problems? — "Gavin Sinclair" <gsinclair@...>
I'm getting hundreds of old (but recent) ML/NG messages. I don't think
[#92475] Euruko 04? European Ruby conference? — Armin Roehrl <armin@...>
Hi all,
Armin Roehrl wrote:
Hello Stephan,
[#92492] evaluate and print an expression — Piergiuliano Bossi <p_bossi_AGAINST_SPAM@...>
I hope that what I'm asking doesn't sound too weird, but I'm trying to
[#92503] simple lexing/parsing task — Martin DeMello <martindemello@...>
Any nice way to parse a block of ruby code, and return a list of all the
[#92507] Opinion: Ruby + OpenOffice.org — Daniel Carrera <dcarrera@...>
Hi guys,
Check the latest issue of The Linux Journal. James Britt wrote an article
[#92586] YAPV done! — Gavin Kistner <gavin@...>
http://phrogz.net/ProgrammingRuby/
[#92597] Simple parsing of sloppy HTML - LittleLexer — John Carter <john.carter@...>
There have been a couple of threads on parsing HTML.
John Carter wrote:
On Thu, 12 Feb 2004, Clifford Heath wrote:
[#92600] expect.rb — Theodore Knab <tjk@...>
Does anybody know where I can get the expect.rb ?
[#92631] ruby-dev summary: 22688-22826 — Masayoshi Takahashi <maki@...>
Hello all,
On Thu, Feb 12, 2004 at 03:45:47AM +0900, Masayoshi Takahashi wrote:
Hi,
On Thu, 12 Feb 2004, Yukihiro Matsumoto wrote:
[#92641] XML/HTML display code for Ruby — Charles Comstock <cc1@...>
Alright so I know that RDoc does syntax highlighting on ruby code if you
[#92647] Emacs ruby-mode hanging — Guillaume Marcais <guslist@...>
There must be an endless loop in ruby mode on Emacs. I enter the
[#92649] (noob) cast string to array? — Koncept <user@...>
Packed with Avi's old Iowa release is a neat little extra that he called
[#92687] Stack overflow in regexp matcher — David Heinemeier Hansson <david@...>
I've been using the wonderful new RedCloth release from why the lucky
[#92692] ANN: Ruby Standard Library Documentation, v0.9.0 — Gavin Sinclair <gsinclair@...>
Hi folks,
Gavin Sinclair wrote:
> Gavin Sinclair wrote:
[#92699] Access blocked to RubyForge for 203.123.134.34 — Richard Kilmer <rich@...>
Hey folks,
[#92704] pp equiv of #inspect — "Ara.T.Howard" <Ara.T.Howard@...>
[#92739] Return value of foo= — Gavin Kistner <gavin@...>
The question is, is it possible to change the return value of a foo=
[#92743] (retry) [ANN] Kwartz -- a template system for Ruby, PHP and Java — kwa@...
I send the following message again:
[#92752] Swapping out an instance between blinks — Gavin Kistner <gavin@...>
I'm writing a class (which I'm calling MutableTime) that is like a Time
[#92771] return from yielded block — "Ara.T.Howard" <Ara.T.Howard@...>
Hi,
[#92785] Installing tk interface to ruby on RH9.0 GNU/LINUX — Himanshu Garg <himanshu@...>
Hello,
[#92796] OT: Traits — djberg96@... (Daniel Berger)
All,
[#92806] Re: slow IO — David King Landrith <dlandrith@...>
On Feb 13, 2004, at 1:04 PM, J.Herre wrote:
[#92812] Conversion between utf-8 and iso8859-1? — Hadmut Danisch <spamblock@...>
Hi,
[#92822] cgi params in ruby — Cere Davis <cere@...>
Hi Rubiers,
[#92833] inheritence of class vars — "Ara.T.Howard" <Ara.T.Howard@...>
Hi --
[#92838] accessing constants from class methods — "Ara.T.Howard" <Ara.T.Howard@...>
Hi --
On Sat, 14 Feb 2004, daz wrote:
Hi --
[#92843] ANN: webrick-fcgi 0.1.0 — Aredridel <aredridel@...>
I've been working this week on a webrick servlet compatible module using
[#92844] MutableTime class — Gavin Kistner <gavin@...>
I've just finished my first general-purpose Ruby class, MutableTime.
[#92854] ANN: REXML 2.7.4 — ser@... (Sean Russell)
Hi,
[#92863] buffering question: interleaved output from child processes — Joel VanderWerf <vjoel@...>
The following code, when connected to the terminal's stdio, interleaves
[#92875] Methods outside classes — "Imobach Gonz疝ez Sosa" <imodev@...>
Hi all,
[#92889] Closing FXDialogBox without user input? — "Steve Kozma" <bluesky@...>
Hi!
[#92897] Hash like JS Hash (code) — Gavin Kistner <gavin@...>
Although I may never use it, I thought I'd share the following
[#92936] problem with variables — Dirk Einecke <dirk.einecke@...>
Hi.
[#92961] sprintf bug in 1.9.0? — Mark Hubbart <discord@...>
I just compiled the latest release of Ruby 1.9.0, and I'm getting
[#92986] A good way to do a book? — bobx@... (Bob)
http://www.sourcebeat.com/index.jsp
Hi!
Hi!
[#93006] tar of Phrogz Pickaxe (aka YAPV) — Gavin Kistner <gavin@...>
I haven't gotten to clean up the Index like I had wanted to, but I
[#93012] Snapshot Graphics Rendering — Killian2422@... (Killian)
I would like to use Ruby to render a screenshot of a 3D environment.
[#93018] Blocking Calls on Win32 Ruby — Bret Pettichord <bret@...>
I am running into several problems with some Ruby code. It was written on a
[#93020] Frozen string problem, but I haven't frozen anything? — LC Geldenhuys <lcgeldenhuys@...>
Hi,
[#93027] How to suppress World Writable message — Jim Freeze <jim@...>
[#93039] Builtins RDoc tarball? — Gavin Kistner <gavin@...>
Is there a tar.gz that corresponds to
On Wednesday, February 18, 2004, 1:59:55 AM, Gavin wrote:
Gavin Kistner wrote:
James Britt wrote:
Gavin Kistner wrote:
James Britt wrote:
James Britt wrote:
On Feb 18, 2004, at 8:32 AM, Dave Thomas wrote:
Gavin Kistner wrote:
[#93055] Why's (Poignant) Guide to Ruby, Chapters 1 to 3 — why the lucky stiff <ruby-talk@...>
Greetings. Man, I'm giddy about this announcement. My blood is visibly
il Wed, 18 Feb 2004 04:58:00 +0900, why the lucky stiff
why the lucky stiff wrote:
why the lucky stiff <ruby-talk@whytheluckystiff.net> wrote in message news:<40327236.9000301@whytheluckystiff.net>...
On Feb 18, 2004, at 7:29 AM, Karl von Laudermann wrote:
[#93086] boolean to int conversion — Cere Davis <cere@...>
[#93104] how to raise warning? — Szymon Drejewicz <drejewic@...>
How to raise warning?
Hi,
[#93157] Ruby on Windows Apache Help — "Mark J. Reed" <mreed@...>
Okay, I know that mod_ruby doesn't exist for Windows, and won't even
[#93162] speed benchmarks comparing Ruby to Py/Perl/PHP/etc? — Ruby Baby <ruby@...>
I know Ruby wasn't created to make a fast-running language.
> I know Ruby wasn't created to make a fast-running language.
[#93180] Ruby to Parrot compiler — Mark <msparshatt@...>
Is there anyone working on a compiler for compiling Ruby code to work on
[#93184] Programs to Emulate — scooby doo <new2ruby@...>
I'm looking for some well written, small & simple
[#93189] Re: how to raise warning? — "Gavri Savio Fernandez" <Gavri_F@...>
> From: Hal Fulton [mailto:hal9000@hypermetrics.com]
[#93193] proposal: let kind_of take more arguments — Simon Strandgaard <neoneye@...>
It just hit me.. why not let kind_of? take more arguments?
[#93213] Can't case on class? — Gavin Kistner <gavin@...>
The code below produces the following output:
[#93229] A way to "require 'warnings'" — Jason Creighton <androflux@...>
It would be nice if there was a "warnings.rb" file in the standard
[#93243] Instance variable capitalization — Jim Freeze <jim@...>
I have a question about how ruby-like is it to capitalize
Hi --
On Friday, 20 February 2004 at 23:00:58 +0900, David A. Black wrote:
On Fri, 20 Feb 2004, Jim Freeze wrote:
[#93260] Introducing myself and my interest in ruby — Larry Felton Johnson <larryj@...>
This is just a note introducing myself to the list, and
On Sat, 21 Feb 2004, Larry Felton Johnson wrote:
Hi Larry! Thanks for the introduction and welcome!
il Sat, 28 Feb 2004 02:32:13 +0900, Mark Hubbart <discord@mac.com> ha
On Feb 27, 2004, at 11:19 AM, gabriele renzi wrote:
Mark Hubbart wrote:
Hal Fulton wrote:
Mark Hubbart wrote:
In article <40406832.1000009@ce.chalmers.se>,
In article <AE7D2272-69BE-11D8-8CCB-000502FDD5CC@mac.com>,
Until now, the FreeRIDE debugger did not work under windows. We now have a
Hello Curt,
Lothar Scholz wrote:
Hal Fulton wrote:
[#93265] tainted symbols? — google@... (John W. Long)
irb(main):001:0> t = "p 'hello world'".taint
[#93278] threads and blocking — "Ara.T.Howard" <Ara.T.Howard@...>
[#93296] TCPserver client disconnect — "Noah" <noahd@...>
ruby newbie question...
[#93298] Puzzling... — "Ruby Tuesday" <rubytuezdayz@...>
Hi, I have these 2 files, one work and the other does not.
I've tried both using \n\n and \r\n\r\n on Perl and Ruby as well. Both
[#93305] Ruby syntax highlighting for Ruby — "Josef 'Jupp' SCHUGT" <jupp@...>
Hi!
[#93310] When will ruby181-11.exe be fixed? — "John W. Kennedy" <jwkenne@...>
Are rdoc and ri going to be made usable anytime soon?
On Feb 20, 2004, at 4:54 PM, John W. Kennedy wrote:
[#93321] Calling JDBC from with Ruby — Michael Davis <mdavis@...>
I am building a web application for a client in Ruby. The application is working but now needs to access data using JDBC. My client is requiring both ODBC (for Windows) and JDBC (for Sun) access to data. I am looking for an example of how to use JDBC from within Ruby. I have looked at Jruby but would prefer to write my own code rather than rely on a third party add-on that is beta, especially one that has not been updated in a while. If I write the data access portion in Java that uses JDBC, can I then write a Java wrapper that would allow Ruby to call the Java methods? Are there any examples available showing how to call a Java method from within Ruby similar to the C interface to Ruby?
Michael Davis <mdavis@sevasoftware.com> wrote in message news:<AKo_b.4954$yZ1.1140@newsread2.news.pas.earthlink.net>...
[#93353] YAML Aborting with large data set? — Martin Hart <martin@...>
[#93374] Tycho - A PIM under development — Hal Fulton <hal9000@...>
Hello, all.
Hal Fulton wrote:
Hal Fulton wrote:
[#93386] Webrick slow when running on a stand-alone system — "Jim Weirich" <jim@...>
I've developed a small app for a laptop using Webrick. It serves pages to
[#93393] Rexml xpath question — han.holl@... (Han Holl)
Hi,
[#93394] Graphic file formats — Peefh <Peefh.AVIRER@...>
Hi.
[#93407] Graphical Ruby/Tk GUI designer? — Asfand Yar Qazi <im_not_giving_it_here@..._hate_spam.com>
Hi,
[#93425] ANN: PLD RPMs of rake and ruby-dbi and a plea to packagers — Aredridel <aredridel@...>
I've just created packages (including .spec files to be used as
Aredridel wrote:
On Mon, Feb 23, 2004 at 09:44:50AM +0900, Charles Comstock wrote:
On Mon, Feb 23, 2004 at 01:18:14PM +0900, Aredridel wrote:
Funny you should mention that. I've been looking over the
[#93438] File.fnmatch's behavior — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Hi, rubyists.
> Hi, rubyists.
[#93455] Rubyx OS website — Andrew Walrond <andrew@...>
I've been thteatening to launch Rubyx for a while, but the documentation is
[#93459] Appropriate use of camelCase — Gavin Kistner <gavin@...>
Following the 'instance variable capitalization' thread, I'm convinced
Hi --
Chunky bacon!
On Tue, 24 Feb 2004, NAKAMURA, Hiroshi wrote:
Kirk Haines wrote:
On Tuesday, 24 February 2004 at 12:32:46 +0900, Patrick Bennett wrote:
On Tue, 24 Feb 2004 11:11:37 +0900, Kirk Haines wrote:
> Changing tab<->spaces in a file can cause problems with your CVS environment.
[#93464] Need examples comparing Ruby to Python — David MacQuigg <dmq@...>
I'm putting together a web page comparing Ruby to Python, and I need
On Mon, 23 Feb 2004 15:57:39 GMT, gabriele renzi
David MacQuigg wrote:
On Tue, 24 Feb 2004 18:52:28 +0100, Florian Gross <flgr@ccan.de>
David MacQuigg wrote:
[#93485] Ruby-gtk ? — Martin Hart <martin@...>
On Monday 23 February 2004 01:26 pm, Martin Hart wrote:
Jason Voegele wrote:
Hey
[#93505] Can't use interpreter — David MacQuigg <dmq@...>
I would like to try the Ruby interpreter on either Windows XP or
[#93552] RE: Photo's of Matz? — "Gavri Savio Fernandez" <Gavri_F@...>
> From: Barry Carr [mailto:barrycarr@ixian-software.com]
[#93601] PGresult#type (and other postgres questions) — Gavin Kistner <gavin@...>
I'm putting RDoc documents into postgres.c, and I have a few questions
[#93610] Instiki: There's no step three — David Heinemeier Hansson <david@...>
What is Instiki?
David Heinemeier Hansson wrote:
[#93616] Failure building PL/Ruby on MacOS X 10.3 — Gavin Kistner <gavin@...>
I have Ruby 1.8.1, PostgreSQL 7.4.1, mod_ruby 1.1.2, eRuby 1.0.5,
Gavin Kistner wrote:
Gavin Kistner wrote:
[#93619] io/nonblock - blocks w/threads? — "Ara.T.Howard" <Ara.T.Howard@...>
[#93623] New paradigm of introspective OO development — jaredthirsk@... (Jared Thirsk)
== Introduction to DAF ==
[#93632] proposal: debug keyword — Simon Strandgaard <neoneye@...>
A debug keyword which enables debug-output for a specific method.
[#93635] Profile-independent directory specification for NT? — "Moran, Craig M (BAH)" <MoranCM@...>
Is there a way to specify a directory in Ruby that is profile-independent
[#93654] Operators +, += and = in Ruby 2 — "Robert Klemme" <bob.news@...>
[#93682] Slice or Value of Empty Array — Jim Freeze <jim@...>
Hi
[#93685] print with no arguments? — Oliver Cromm <c1205@...>
I feel that the Ruby interpreter is poking fun at me with this error:
[#93709] thread gurus please help... — "Ara.T.Howard" <Ara.T.Howard@...>
Hi,
[#93711] DRbFire 0.1.0 — Nathaniel Talbott <nathaniel@...>
It is with great pleasure that I introduce DRbFire 0.1.0 to the world.
[#93718] tutorial directory — Simon Strandgaard <neoneye@...>
I visited Lua's Tutorial Directory and got the feeling that Ruby should
[#93723] ruby2html -was RE: Congrats to Matz...working 11 years on Ruby an d counting! — "Pe, Botp" <botp@...>
Simon Strandgaard [mailto:neoneye@adslhome.dk] said:
[#93729] ruby-dev summary 22877-23014 — Minero Aoki <aamine@...>
Hi all,
[#93732] Why don't $global and @instance variables need declaration? — David Garamond <lists@...6.isreserved.com>
Sorry if the answer is obvious, but I can't find a satisfactory or more
Robert Klemme wrote:
>>>>> "D" == David Garamond <lists@zara.6.isreserved.com> writes:
ts wrote:
David Garamond wrote:
[#93734] language contest ==> unit test framework from lisp to ruby — Piergiuliano Bossi <p_bossi_AGAINST_SPAM@...>
A few days ago I made a post (rubytalk:92963 ==> [2]) about the
[#93779] Callback — han.holl@... (Han Holl)
Hi,
[#93787] TDD Roman Numeral tutorial in Ruby — "Phlip" <phlip_cpp@...>
Jim Rogers wrote:
[#93790] CGI and multipart data — Martin Hart <martin@...>
[#93798] Enumerable#zip(aRange) does not work ? — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>
[#93832] RDoc, ri and code completion in jEdit — Robert McKinnon <rob_m_mckinnon@...>
I'm implementing na阮e Ruby code completion for the jEdit editor, using
[#93848] Calculate the md5 hash of a string — Dirk Einecke <dirk.einecke@...>
Hi.
[#93865] UnboundMethod#hash apparently broken in 1.8.1 — "Robert Klemme" <bob.news@...>
Hi --
In article <m3ad33mpjr.fsf@wobblini.net>, David Alan Black wrote:
[#93873] Learn to Program -- A Tutorial for the Future Programmer — "Chris Pine" <cpine@...>
I finally finished it! I received a great deal of encouragement this last
[#93875] (noob) need help parsing Apache log file — Koncept <user@...>
[#93888] help with ruby range used as condition — "cg" <chris_guenther@...>
Hi all,
[#93932] fcgi install problems — Jim Freeze <jim@...>
Hi
Re: proposal: debug keyword
Simon Strandgaard wrote:
>
>
>>I'd prefer to have specialized methods for debug printing.
>>
>>
>>
>
>Please enlighten me. How do you debug ?
>
>
>It would be nice to identify a good model for advanced debugging with
>Test::Unit.
>
>
I too am interested in how others debug their unit tests (or code in
general). I am preparing to release my vrtools library an am removing my
trace statements in them because it seems like an unnecessary dependency
(perhaps just my way of working). Below is my trace module that I use
all the time. I once tried log4r but didn't like it because it didn't
seem easy to turn on and off debugging when I needed it to. My output
includes the code and line number which my editor links up when the unit
test is done running. Also it includes a time stamp to help with any
timing related issues. I can include and exclude debug in various ways
and direct output to a file. It all works pretty well for me (not
perfectly -- for example some things could be named better).
So my requirements for a simple tracing/debugging system are for me:
1. Trace output should include file/line number plus time stamp
2. Need to be able to turn it on and off at run time
3. Need to be able to filter which debug statements come out by debug
level, function, file, possibly other considerations
4. Need to be able to redirect output to a file
What are others requirements?
Maybe log4r provides all these capabilities and if so enlighten me please.
Steve Tuckner
----------------- Examples of use ---------------------------
require "my/mytrace" # to use my tracing this
creates a global $TRACE of class Tracer
$TRACE.set_level 5 # sets the level under which
traces will appear
$TRACE.exclude_files("foo.rb") # this excludes any traces in
foo.rb from coming out
$TRACE.include_files("bar.rb") # this overrides exculsions to
only allow traces from included files
$TRACE.exclude_functions(:foo, :bar) # this excludes any traces from
coming out from these functions (no matter the class)
$TRACE.set_output("out.txt") # write each statement to the
output file and close it after every trace (this is not as bad as it
sounds and if the program dies you definitiely get all the trace)
$TRACE.debug 5, "this is a trace" # this is the basic trace
statement with level 5
----------------- Example of program and output ---------------------------
--------------------------- tracetest.rb ----------
require "my/mytrace"
def foo
$TRACE.debug 5, "I am in foo"
puts "not a debug statement"
end
$TRACE.set_level 5
foo
$TRACE.set_level 0
foo
-------------------------- output -----------------
[tracetest.rb:4 ] [02/25/04 08:47:51] I am in foo
not a debug statement
not a debug statement
--------------------------------------------------
----------------- Trace code
------------------------------------------------
class Tracer
def initialize
@trace_level = 0
@file = nil
@width = 25
@excluded_functions = []
@excluded_files = []
@output_to_screen_always = false
end
def set_width(width)
@width = width
end
def trace(str, level=1)
#old_dollar_equal = $=
#$= = false
if @trace_level >= level then
m = /([\w_]+\.rb):(\d+):in `(.*)'/.match(caller[1])
if m then
filename = m[1]
line = m[2].to_i
function = m[3]
t = Time.current.strftime("%m/%d/%y %H:%M:%S")
str = sprintf "[%-#{@width}s] [%s] %s",
"#{m[1]}:#{m[2]}", t, str
if @included_files then
return unless @included_files.include?(filename)
else
if @excluded_functions.include?(function) then
return
end
if @excluded_files.include?(filename) then
return
end
end
end
if @filename then
File.open(@filename, "a") {|f| f.print str, "\n"}
end
if !@filename || @output_to_screen_always then
puts str
$stdout.flush
end
end
ensure
#$= = old_dollar_equal
end
def debug(level, str)
trace(str, level)
end
def set_level(level)
@trace_level = level
end
def set_level_include(level, included_files)
@trace_level = level
@included_files = included_files
end
def set_output(filename)
@filename = filename
File.open(@filename, "w") {}
end
def set_output_io(io)
@io = io
end
def set_output_to_screen_always
@output_to_screen_always = true
end
def exclude_functions(functions)
@excluded_functions += functions
end
def exclude_files(filenames)
@excluded_files += filenames
end
end
# define the $TRACE variable if not already defined
if !$TRACE then
$TRACE = Tracer.new
end