[#118527] Nuby Tip for the Day : Memoization — John Carter <john.carter@...>
So you have written your ruby app.
Just a little correction to a worthy post...
[#118535] gem installations getting Killed — ptkwt@... (Phil Tomson)
I just set up my laptop with Debian (via Knoppix - very easy, BTW) and
[#118540] [SOLUTION] Re: Sokoban (#5) — "Dave Burt" <burtdav@...>
Well, that was fun.
[#118541] erb: undefined local variable — Tang Hai Tuan Minh <mhtang@...>
[#118582] fastcgi + eruby — "J. D." <jd@...>
What is the best way to handle .rhtml (eruby) documents using fastcgi?
[#118612] OS X Tiger still including ruby 1.6 — Carl Youngblood <carl.youngblood@...>
I'm not sure who to talk to about this, but in my correspondence with
In article <e5ed7b6904110112267a693474@mail.gmail.com>,
I wonder what we could do to get Apple to throw in some extra bells
On Tue, 2 Nov 2004 07:17:04 +0900, Michael DeHaan
Eivind Eklund wrote:
[#118622] Ruby Planet, anyone? — Esteban Manchado Vel痙quez <zoso@...>
Hello,
Esteban Manchado Vel痙quez wrote:
[#118651] symbol solver.. early experiments — Simon Strandgaard <neoneye@...>
Hi,
> I have been writing some code that can differentiate expressions.
On Monday 01 November 2004 23:36, Brian Mitchell wrote:
Simon Strandgaard wrote:
On Wed, 10 Nov 2004 07:13:13 +0900
On Wed, Nov 10, 2004 at 07:26:44AM +0900, Brian Schrer wrote:
On Wed, 10 Nov 2004 09:14:07 +0900
[#118666] location of core *.rb source files? — Corey <corey_s@...>
[#118675] fastcgi performance problems and ruby — andrew.stuart@...
Hello
> cgi.out{content}
On Tuesday 02 November 2004 06:20 am, Brian Candler wrote:
On Tue, Nov 02, 2004 at 11:29:09PM +0900, trans. (T. Onoma) wrote:
On Tuesday 02 November 2004 09:49 am, Brian Candler wrote:
On Wed, Nov 03, 2004 at 12:08:08AM +0900, trans. (T. Onoma) wrote:
On Tuesday 02 November 2004 11:29 am, Brian Candler wrote:
[#118679] US Presidential Election — "trans. (T. Onoma)" <transami@...>
Election Day is upon us!
trans. (T. Onoma) wrote:
On Monday 01 November 2004 09:06 pm, James Britt wrote:
Corey, I agree with much of what you say in this matter, but I wonder
On Tue, 2 Nov 2004, trans. (T. Onoma) wrote:
Ara.T.Howard@noaa.gov wrote:
Ara.T.Howard@noaa.gov wrote:
Ben Giddings wrote:
Zach Dennis wrote:
On Thu, 4 Nov 2004 01:45:56 +0900, Ben Giddings
In article <200411012300.19852.transami@runbox.com>,
Hi --
I am neither a Kerry or Bush supporter. Idealy I would vote
Has there been a way to capture stdout and stderr (most important) on
Hi Zach,
Shashank Date wrote:
On Tue, Nov 02, 2004 at 01:00:25PM +0900, trans. (T. Onoma) wrote:
trans. (T. Onoma) wrote:
On Tue, Nov 02, 2004 at 01:00:25PM +0900, trans. (T. Onoma) wrote:
* Roeland Moors <roelandmoors@telenet.be> [1120 09:20]:
Bush, with conviction ;-)
On Tue, Nov 02, 2004 at 09:18:12PM +0900, Richard Kilmer wrote:
* Thomas Kirchner <lists@halffull.org> [1143 13:43]:
Dick Davies wrote:
trans. (T. Onoma) wrote:
I agree with the other posters who think this is perhaps an
[#118691] require 'enumerator' — "trans. (T. Onoma)" <transami@...>
Is this right?
[#118831] Why do I want 1.8.2? — Stefan Arentz <stefan.arentz@...>
[#118836] From getoptlong to optparse — Massimiliano Mirra - bard <mmirra@...>
[#118838] fsmgen 0.1 — Mark Probert <probertm@...>
Hi, all.
[#118843] Converting hash keys to symbols — Jamis Buck <jgb3@...>
Golf question...
[#118863] Programmatically and dynamically catching exceptions — Logan Capaldo <logancapaldo@...>
Allright here was my idea which seems to have been shattered by the
"Robert Klemme" <bob.news@gmx.net> writes:
[#118872] FXRuby1.2.1 - need to uninstall — John Doerr <shimmel371@...>
Hello,
[#118920] escaping single quotes in a string with gsub — Paul Rubel <prubel@...>
Hi,
[#118949] Re: installing ruby on MacOS X — "Van Dyk, Joe" <joe.vandyk@...>
[#118953] rdoc task fails on Win2k — James Britt <jamesUNDERBARb@...>
When using rake to create rdoc files on Windows 2000, I get this error
On Wednesday 03 November 2004 06:51 pm, James Britt wrote:
Jim Weirich wrote:
James Britt wrote:
On Wednesday 03 November 2004 08:35 pm, James Britt wrote:
[#118965] Ruby Package for MacOS X — Mark Hubbart <discordantus@...>
Hi all,
On Wed, 3 Nov 2004 17:02:27 -0800, Mark Hubbart <discordantus@gmail.com> wrote:
On Thu, 4 Nov 2004 09:26:39 -0500, Sam Roberts <sroberts@uniserve.com> wrote:
[#118970] Ruby and civil political discussion? (Re: [OT] US Presidential Election) — "Dave Burt" <burtdav@...>
"David Morton" <mortonda@gmail.com> wrote:
"Tim Hunter" <sastph@sas.com>:
Yes, and also don't forget to think about starting a local Ruby group
[#118985] Transaction::Simple 1.2.0 — Austin Ziegler <halostatue@...>
Transaction::Simple for Ruby
On Thu, Nov 04, 2004 at 12:13:20PM +0900, Austin Ziegler wrote:
On Thu, 4 Nov 2004 12:48:14 +0100, Michael Neumann <mneumann@ntecs.de> wrote:
[#118988] rails: gem install rails is bombing — "J. D." <jd@...>
Hi,
> I'm running into a problem installing rails using gem. How do I fix
On Thu, 4 Nov 2004, David Heinemeier Hansson wrote:
Ara.T.Howard@noaa.gov wrote:
On Fri, 5 Nov 2004, Jamis Buck wrote:
Consider me the thrid, gentoo would be the right choice.
On Fri, 5 Nov 2004 02:12:57 +0900, Tobias Luetke
Jason Sweat wrote:
[#118991] using LDAP Controls in ruby-ldap — Jason Wold <jason.wold@...>
This is a bit of a stretch since it is as much about LDAP as it is
On Thu, 4 Nov 2004 14:26:33 +0900, Jason Wold <jason.wold@gmail.com> wrote:
[#118997] Ruby BitTorrent — (Curne) Simon Conrad-Armes <curne@...>
Has anybody started a Ruby BitTorrent transfer library? I wanted to
On Thu, Nov 04, 2004 at 06:13:17PM +0900, Simon Conrad-Armes wrote:
(Curne) Simon Conrad-Armes ha scritto:
[#119006] irb problems on one-click windows installer — Robert Feldt <Robert.Feldt@...>
Hi,
Robert Feldt wrote:
[#119011] Brian Schroeders chat example on windows — Robert Feldt <Robert.Feldt@...>
Hi again,
[#119018] Re: SyncEnumerator — Florian Gross <flgr@...>
Sean Russell wrote:
Hi,
On Fri, 2004-11-05 at 16:27, Mark Hubbart wrote:
On Friday 05 November 2004 16:32, Tom Copeland wrote:
[#119025] Sokoban (#5) — Ruby Quiz <james@...>
Well, how far did you get? I'm stuck on level 28 myself.
[#119038] Needle 1.0.0 — Jamis Buck <jgb3@...>
Needle is a dependency injection (a.k.a. "inversion of control")
Jamis Buck said:
[#119059] Will ActiveRecord support Berkeley DB? — "J. D." <jd@...>
Hi,
J. D. wrote:
Jamis Buck wrote:
J. D. wrote:
[#119063] Any generic object browser — "itsme213" <itsme213@...>
Is there any generic object browser that will let me interactively browse a
[#119098] Re: [OT] US Presidential Election — "Kujawa, Greg" <Greg.Kujawa@...>
This is bitter take. As an American I don't wish for an ineffective 4 years
Kujawa, Greg wrote:
[#119111] FastCGI parameters (get and post) — "J. D." <jd@...>
Hi,
GET parameters you have to parse from ENV['QUERY_STRING'].
Kent Sibilev wrote:
Patrick May wrote:
Quoting MoonWolf <moonwolf@moonwolf.com>:
Patrick May ha scritto:
On Sun, 7 Nov 2004, Patrick May wrote:
On Sun, 7 Nov 2004 02:23:40 +0900, <Ara.T.Howard@noaa.gov> wrote:
On Mon, 8 Nov 2004 18:24:22 +0900, Zev Blut <rubyzbibd@ubit.com> wrote:
On Tue, 9 Nov 2004 04:13:08 +0900, Aredridel <aredridel@gmail.com> wrote:
[#119113] Receiving blocks in Proc? — james.cromwell@... (James)
p = Proc.new { |*args,&block| }
Hi,
On Fri, 5 Nov 2004 06:37:47 +0900, Yukihiro Matsumoto
[#119132] recursive brace matching with Ruby regexp — Jason Sweat <jason.sweat@...>
I wanted to learn Ruby, so I picked a small task of trying to write a
Hi,
On Nov 4, 2004, at 8:04 PM, Mark Hubbart wrote:
Hi,
On Nov 4, 2004, at 9:59 PM, Mark Hubbart wrote:
On Fri, 5 Nov 2004 12:17:01 +0900, James Edward Gray II
On Nov 5, 2004, at 2:19 AM, Eivind Eklund wrote:
[#119141] Re: Cleaner way to do this? — "Harry Ohlsen" <Harry_Ohlsen@...>
> -----Original Message-----
[#119148] Ruby 1.4.6 - trouble with require path — primehalo@... (Ken Innes)
I inherited a project that uses Ruby 1.4.6 on a RedHat Linux 6.1J. I
[#119150] Dr. Dobbs Article — Andy Stone <xsltguru@...>
I just received the latest DDJ which contained an article titled
[#119164] Re: Cleaner way to do this? — "Harry Ohlsen" <Harry_Ohlsen@...>
> From: Zach Dennis [mailto:zdennis@mktec.com]
[#119168] value provided for argument with default value - how to check inside method? — "itsme213" <itsme213@...>
Is there an equivalent of block_given? to check if the caller provided a
[#119179] kdialog-0.2 — Edgardo Hames <ehames@...>
Hello dear Rubyists,
[#119186] FXRuby and the latest snapshot(s) — mkcon@... (Martin Kahlert)
Hi!
[#119223] GEDCOM Parser (#6) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
> <gedcom>
On Nov 5, 2004, at 8:58 AM, Jim Menard wrote:
James Edward Gray II wrote:
Jamis Buck wrote:
1) There are some records near the end of the data like this:
Here's my solution. It builds a tree of the Gedcom nodes.
Here is a very simple solution. It doesn't try to understand much of the
[#119225] setter vs. local variable initialization — "itsme213" <itsme213@...>
Will Ruby 2.0 continue to interpret
Thanks Matz.
[#119247] Mobile Ruby — brian.yamabe@... (Brian Yamabe)
First, I'm not talking about Ruby on mobile devices. I'm talking
[#119277] Building One-Click Installer with latest snapshot source — "J. D." <jd@...>
Hi,
J. D. wrote:
[#119282] Socket problem — Ben Armstrong <ben@...>
Hi,
[#119292] Ruby-GetText-Package-0.8.0 — Masao Mutoh <mutoh@...>
Hi,
[#119341] Succ distance between two strings — "trans. (T. Onoma)" <transami@...>
[#119345] puts nil generates "nil\n" — Brian Candler <B.Candler@...>
$ ruby -v
[#119371] Documenting accessor methods as methods — James Britt <jamesUNDERBARb@...>
I sometimes use the method definition shorthand 'attr_reader',
On Nov 6, 2004, at 4:23 PM, James Britt wrote:
Dave Thomas wrote:
Quoteing dave@pragprog.com, on Mon, Nov 08, 2004 at 02:47:37AM +0900:
Dave Thomas wrote:
Quoteing jamesUNDERBARb@neurogami.com, on Mon, Nov 08, 2004 at 04:26:26AM +0900:
Sam Roberts wrote:
On Monday, November 8, 2004, 12:19:13 PM, Dave wrote:
[#119396] Ruby seems to be cross-compiler incompatible — Asfand Yar Qazi <see@...>
Hi,
[#119412] ri on gentoo — Jamis Buck <jgb3@...>
It works!
On Mon, 2004-11-08 at 02:49 +0900, Dave Thomas wrote:
[#119440] Ruby 1.8.2 Preview 3 is available — James Britt <jamesUNDERBARb@...>
Matz announced on ruby-core that Ruby 1.8.2 preview 3 is now ready.
[#119458] Query string ignored in http.post? — Lloyd Zusman <ljz@...>
I'm using Net::HTTP to do a POST operation, but the query string I send
[#119471] Best RDF Library? — Scott Rubin <slr2777@...>
I googled for ruby RDF libraries and found quite a few, but I'm not sure which
On Mon, 8 Nov 2004 15:38:35 +0900, Scott Rubin <slr2777@cs.rit.edu> wrote:
Edwin Eyan Moragas wrote:
On Mon, 8 Nov 2004 23:24:36 +0900, James Britt
[#119503] REXML error reporting (XHTML validation) — Dmitri Borodaenko <angdraug@...>
I've implemented a simple XHTML validation class based on REXML and
Dmitri Borodaenko wrote:
On Tue, 9 Nov 2004 02:47:11 +0900, James Britt
[#119523] evals confusion — "itsme213" <itsme213@...>
Hi.
[#119535] rdoc and vim folding — "Ara.T.Howard" <Ara.T.Howard@...>
Dave Thomas wrote:
On Mon, 8 Nov 2004, Hans Fugal wrote:
On Tuesday, November 9, 2004, 11:43:33 AM, Ara.T.Howard wrote:
On Tue, Nov 09, 2004 at 09:43:33AM +0900, Ara.T.Howard wrote:
[#119537] Color Parser — Mary Dixon <sw@...>
Okay, people,
[#119541] ENV["PATH"] is being overwritten (in Ruby 1.4.6) — primehalo@... (Ken Innes)
I'm having a weird problem where accessing the PATH environment
[#119568] Error installing rubygems 0.8.1 with ruby 1.8.2 — "Rob ." <rob.02004@...>
I have compiled and installed ruby 1.8.2preview3 on a new laptop.
[#119578] Re: [ANN] Catapult 0.1.0 Released — "Pe, Botp" <botp@...>
James Britt [mailto:jamesUNDERBARb@neurogami.com] wrote:
Pe, Botp wrote:
On Tue, 9 Nov 2004 23:12:58 +0900, James Britt
[#119580] Where did #ruby-lang go? — Matt Mower <matt.mower@...>
Hi folks,
[#119591] Test::Unit speed — Francis Hwang <sera@...>
Okay, this is sort of embarrassing, but for some time now I've been
[#119597] One-Click Installer 1.8.2-14 RC9 with RubyGems built-in — "Curt Hibbs" <curt@...>
This release candidate of the One-Click Installer for
Hello Curt,
Lothar Scholz wrote:
On Wed, 10 Nov 2004 00:14:47 +0900, Curt Hibbs <curt@hibbs.com> wrote:
Austin Ziegler wrote:
On Wed, 10 Nov 2004 02:54:46 +0900, Curt Hibbs <curt@hibbs.com> wrote:
Curt Hibbs wrote:
James Britt wrote:
Hello Curt,
Lothar Scholz wrote:
[#119598] RedCloth 3.0.0 -- Textile and Markdown Elope! — why the lucky stiff <ruby-talk@...>
RedCloth 3 is out. You know? RedCloth? Perhaps you've heard of it.
why the lucky stiff ha scritto:
gabriele renzi wrote:
[#119607] Iterating trough hash — Kevin =?ISO-8859-15?Q?B=F6rgens?= <kevin@...>
Hi!
Hi!
On Tue, 9 Nov 2004, Kevin [ISO-8859-15] B=F6rgens wrote:
On Wed, 10 Nov 2004 02:03:45 +0900, ara.t.howard@noaa.gov
On Wed, 10 Nov 2004, Mark Hubbart wrote:
This is a really long one, so (being new to the language), I'd
[#119638] Re: [ANN] One-Click Installer 1.8.2-14 RC9 with RubyGems built-in — "Bradley, Todd" <todd.bradley@...>
> The reason for including FreeRIDE is because it helps
Bradley, Todd wrote:
On Wed, Nov 10, 2004 at 04:21:22AM +0900, Curt Hibbs wrote:
[#119658] win32ole and ole_methods — djberg96@... (Daniel Berger)
Hi,
[#119665] Ruby and Mozilla? — Hal Fulton <hal9000@...>
Is there any Ruby code out there that can interact with Mozilla
[#119679] Ruby Portal Community Framework? — "Dion Almaer" <dion@...>
[#119682] Rubymine.org — David Ross <dross@...>
Hello fellow Rubyists,
David Ross <dross@code-exec.net> wrote in message news:<4191B4C8.3040301@code-exec.net>...
illocutionist wrote:
On Thu, 11 Nov 2004 00:46:13 +0900, David Ross <dross@code-exec.net> wrote:
Edgardo Hames wrote:
On Thu, 11 Nov 2004 02:17:54 +0900, David Ross <dross@code-exec.net> wrote:
[#119683] Ruby code generation: string vs. AST based (2.0 or beyond) — "itsme213" <itsme213@...>
Code generation in ruby is great.
[#119685] new spam at the wiki — Edwin Eyan Moragas <haaktu@...>
been checking my pages and it looks like we've got a new spammer on board.
On Wednesday 10 November 2004 02:00 am, Edwin Eyan Moragas wrote:
Jim Weirich wrote:
Asfand Yar Qazi wrote:
On Wed, 10 Nov 2004, Charles Comstock wrote:
> how about generating a jpg of a password and requiring the editor to enter it.
Hello all.
Jim Weirich wrote:
Ben Giddings ha scritto:
Jim Weirich wrote:
James Britt wrote:
Quoteing jan@spam.spam, on Fri, Nov 12, 2004 at 09:48:27AM +0900:
[#119702] Finalizers... — Michael Neumann <mneumann@...>
Hi,
[#119711] Hi — Daun Jaun <compsci.isi@...>
Hi
Hi,
What if i want to send cookies;
On Thu, 11 Nov 2004 13:52:51 +0900, Daun Jaun <compsci.isi@gmail.com> wrote:
[#119723] Re: Ruby and Mozilla? — "Bradley, Todd" <todd.bradley@...>
> If you have further thoughts, let me know...
[#119742] automatically call function on attribute set — "Joe Laughlin" <Joseph.V.Laughlin@...>
I have a class that represents an airplane. This class has a bunch of data
[#119750] hook for class creation — "itsme213" <itsme213@...>
Is there a hook method called whenever a new class is created i.e.
[#119755] Graphical Debugger — Brian =?ISO-8859-15?Q?Schr=F6der?= <ruby@...>
Hello Group,
[#119768] Persistence framework — Imobach Gonz疝ez Sosa <imobachgs@...>
Hi all,
[#119799] array.each restart when array is changed — Kevin =?ISO-8859-15?Q?B=F6rgens?= <kevin@...>
Hi!
[Kevin Bgens <kevin@boergens.de>, 2004-11-10 23.48 CET]
How does this work? Does 'retry' recall the method associated with its block?
[#119807] ParseTree 1.0.0 Released — Ryan Davis <ryand-ruby@...>
ParseTree version 1.0.0 has been released!
Hello Ryan,
[#119825] Arachno users? — "itsme213" <itsme213@...>
Any Arachno IDE users out there? Do you mind sharing your opinion of the
I've been programming in Ruby for 3 years, and using ArachnoRuby for
On Fri, 12 Nov 2004 03:14:19 +0900, you wrote:
Hello tony,
Lothar Scholz wrote:
On Sunday 14 November 2004 05:12 pm, Curt Hibbs wrote:
[#119826] ruby idiom for attribute definition? — "Corey" <corey_s@...>
On Thu, 11 Nov 2004 13:27:42 +0900, Corey wrote:
On Wednesday 10 November 2004 10:53 pm, Neil Stevens wrote:
On Nov 11, 2004, at 1:18 PM, Corey wrote:
[#119836] How to POST HEADERS along with COOKIES — Daun Jaun <compsci.isi@...>
Hi
[#119866] Writing a looping, low-configuration script in Ruby — Francis Hwang <sera@...>
So I'm writing a one-file Ruby program that will generate an RSS feed
On 2004-11-11 22:44:51 +0900, Francis Hwang wrote:
[#119872] #scan with or'd (`|`) subexpressions. — "trans. (T. Onoma)" <transami@...>
Does the new Ruby regexp engine do this?
[#119874] [Q} MySQL & Ruby — Nikos Polizotis <npolizotis@...>
Hi,
[#119878] Thinking About Java Interfaces In Ruby — James Edward Gray II <james@...>
I'm currently reading "Holub on Patterns", an excellent volume on
Hello James,
On Fri, 12 Nov 2004 00:19:28 +0900, James Edward Gray II
[#119885] Re: #scan with or'd (`|`) subexpressions. — "Warren Brown" <WBrown@...>
T.,
On Thursday 11 November 2004 10:54 am, Warren Brown wrote:
> I see. Perhaps there is good reason for this. But I just don't see it. IN
[#119901] Needle 1.1.0 — Jamis Buck <jgb3@...>
Needle is a dependency injection container for Ruby, employing many of
[#119931] How to "open" a file in its default application - Windows XP — "itsme213" <itsme213@...>
How do I open a file in its default windows application on XP?
[#119964] advice for a class implementation? ( ugh, long... ) — "Corey" <corey_s@...>
I think the problem is that you want to make the SQL adapter more
[#119974] warning: redefining Object#initialize may cause infinite loop — Stu <ceaser@...>
Unless I'm minsreading what you want to do, wouldn't it be
I think his problem is he's writing things like:
[#120000] RegEx bug in 1.8.2? — Bill Atkins <batkins57@...>
bill@kaitain ruby $ ruby --version
[#120037] Copland to Needle article on RubyGarden — Chad Fowler <chadfowler@...>
For those not subscribed to RubyGarden's rss feed[1], Jamis Buck has
In article <a2347a04041112044531ad44b1@mail.gmail.com>,
On Nov 12, 2004, at 11:53 PM, Phil Tomson wrote:
Chad Fowler wrote:
Joel VanderWerf wrote:
Jamis Buck wrote:
Joel VanderWerf wrote:
Hello,
>
On Mon, 2004-11-15 at 10:55, Henrik Horneber wrote:
On Tue, 16 Nov 2004 00:36:25 +0900
[#120049] Using .NET web service with soap4r — "Roland Schmitt" <Roland.Schmitt@...>
Hello,
[#120056] Countdown (#7) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
> Next, a machine called "Cecil" picks a target number between 100 and 999 at
Hi
Hello Group,
[#120061] why does rss/maker not raise errors? — Sam Roberts <sroberts@...>
There are lots of mandatory attributes (yes, which are mandatory is
> The RSS space is a bloody awful mess. I'll be glad when everybody moves
Well, as far as I know every single version of RSS has at least one
Francis Hwang wrote:
> > > Francis Hwang wrote:
It says it is optional here:
Hi,
RSS standards are an endless debate I don't want to really be a big
[#120071] assert — "itsme213" <itsme213@...>
I could not find a standard "assert" in Ruby. Is there one?
itsme213 wrote:
> There's one in the dev-utils package. It will automatically set a
itsme213 wrote:
On Saturday, November 13, 2004, 7:38:28 PM, Florian wrote:
Gavin Sinclair wrote:
On Sunday, November 14, 2004, 1:18:24 AM, Florian wrote:
Gavin Sinclair wrote:
On Sunday, November 14, 2004, 2:48:24 AM, Florian wrote:
[#120087] #init — "trans. (T. Onoma)" <transami@...>
[#120103] Trivial trick for looking at complex code — Hal Fulton <hal9000@...>
I was looking at some really complex code today (someone else's) and
[#120173] libgmail — Elias Athanasopoulos <elathan@...>
Hello!
[#120174] Getting Module from Symbol — Brian =?ISO-8859-15?Q?Schr=F6der?= <ruby@...>
I want to use methods in different modules depending on commandline switches. So I thought i'd use
>>>>> "B" == Brian =?ISO-8859-15?Q?Schr=F6der?= <Brian> writes:
[#120187] I'm dizzied by the selection... can someone recommend a blog tool? — Sam Roberts <sroberts@...>
There's half-a-million (almost) on the RAA.
[#120207] bug in rubygarden's link spam protection? — Sam Roberts <sroberts@...>
I'm trying to edit
Hi --
[#120230] mathn.rb is unacceptably slow (proposed replacements) — "erlercw@..." <erlercw@...>
In mathn.rb (ruby 1.8.1), Integer#gcd2 and the Prime class are
Hi,
[#120240] TkOptionMenu — "Mark Volkmann" <volkmann2@...>
I'm trying to learn how to use TkOptionButtonmenu and haven't found
----- Original Message -----
[#120247] Proc#arity — Joel VanderWerf <vjoel@...>
On Sun, Nov 14, 2004 at 04:22:24PM +0900, Joel VanderWerf wrote:
[#120248] Dynamic define_method on class creation per module namespace — "trans. (T. Onoma)" <transami@...>
Here's a wee challenge for Rubyists at large. Consider:
Sorry, slight correction. I intended those to be module methods (albeit it
[#120261] Countdown (#7) — Dennis Ranke <dennis.ranke@...>
Hi, here is my second solution for this very interesting quiz.
Here is a small update to my solution. A simple optimization speeds up
[#120271] Ruby in the enterprise... — "Wood, Jeff" <jeffwood@...>
Hello all,=20
[#120273] external links editing problem on ruby garden — Sam Roberts <sroberts@...>
Sam Roberts wrote:
[#120293] I guess "obj.attr = arg" methods don't allow blocks... (maybe rcr?) — Sam Roberts <sroberts@...>
[#120297] MinDI: Minimalist Dependency Injection — Joel VanderWerf <vjoel@...>
[#120299] OpenStruct#update ? — "trans. (T. Onoma)" <transami@...>
How 'bout an OpenStruct#update for adding values after initialization. Or is
Hi --
On Sunday 14 November 2004 03:42 pm, trans. (T. Onoma) wrote:
Hi,
On Sunday 14 November 2004 06:16 pm, Yukihiro Matsumoto wrote:
trans. (T. Onoma) wrote:
Hi --
David A. Black wrote:
Hi --
On Monday 15 November 2004 08:45 am, David A. Black wrote:
Hi,
On Monday 15 November 2004 12:28 pm, Yukihiro Matsumoto wrote:
trans. (T. Onoma) wrote:
On Monday 15 November 2004 01:23 pm, Florian Gross wrote:
trans. (T. Onoma) wrote:
On Monday 15 November 2004 02:33 pm, Florian Gross wrote:
trans. (T. Onoma) wrote:
On Tuesday 16 November 2004 09:18 am, Florian Gross wrote:
On Tuesday, November 16, 2004, 4:54:13 AM, trans. wrote:
Gavin Sinclair wrote:
Yes, no, maybe?
On Wed, Nov 17, 2004 at 08:53:11PM +0900, trans. (T. Onoma) wrote:
On Wednesday 17 November 2004 07:04 am, Mauricio Fern叩ndez wrote:
[#120333] linear contraint solver — wannes <wannes@...>
hello,
[#120342] Why can't I get an array range, like [3, 4], on a Struct? — Sam Roberts <sroberts@...>
I just noticed I can't do:
Hi --
[#120380] Arachno Ruby 0.3 (patch 2) — Lothar Scholz <mailinglists@...>
Hello,
Hi Lothar,
Hello Shashank,
Hello Shashank,
I just downloaded Arachno and tried it out. I really like what I see so
[#120436] Complete set of callbacks — "trans. (T. Onoma)" <transami@...>
Trying to put together a complete list of all potential callbacks:
Thanks Peter and Joel. Here's the rundown thus far.
On Wednesday 17 November 2004 06:45 am, trans. (T. Onoma) wrote:
On Nov 17, 2004, at 5:51 AM, trans. (T. Onoma) wrote:
On Nov 17, 2004, at 11:14 AM, Eric Hodel wrote:
[#120463] FAQ for comp.lang.ruby — hal9000@...
RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby! (Revised 2004-10-16)
[#120481] "The Ruby Way" and adding methods to base classes in libraries — Moses Hohman <mmhohman@...>
I have a question about practical experience with adding methods to
[#120485] rpa-base 0.2.3 — Mauricio Fern疣dez <batsman.geo@...>
On Tue, Nov 16, 2004 at 02:08:23PM +0900, Matt Armstrong wrote:
Hi --
On Wed, Nov 17, 2004 at 11:58:35PM +0900, David A. Black wrote:
[#120504] Commiting to Ruby CVS — Michael Neumann <mneumann@...>
Hi,
[#120530] Ruby Weekly News 8th-14th November 2004 — timsuth@... (Tim Sutherland)
http://www.rubygarden.org/ruby?RubyNews/2004-11-8
[#120543] OpenSSL with One-click installer? — Robert Feldt <feldt@...>
Hi,
[#120545] image creation — Martin Pirker <crf@...>
Hi...
[#120557] Talk about mainstream... — Dave Thomas <dave@...>
I'm sitting in a hotel room in England, trying to stay awake, watching
In article <BF5C9D35-37EA-11D9-B0E2-000A95676A62@pragprog.com>,
On Wednesday, November 17, 2004, 8:23:17 AM, Phil wrote:
> University Challenge was broadcast in Australia many years ago (I'm
[#120571] Parsing error in 1.8.2 Dir.glob — "Han Holl" <han.holl@...>
On Tuesday 16 November 2004 21:35, Han Holl wrote:
[#120573] Can't Build Ruby 1.8.1 on HP-UX 11.00 — Kevin Hinners <kevin.hinners@...>
I've downloaded the stable 1.8.1 release of Ruby. When I attempt to run make
Hi,
Top segment of mkmk.log:
Hi,
Hi,
I downloaded the 1.8.2 preview 3 release and tried to install to HP-UX
Hi,
Okay, I did a fresh extract and a fresh ./configure. I verified that lex.c
[#120600] Detecting rubyw — Nathaniel Talbott <nathaniel@...>
Is there any way (on Windows) to detect if a script is running under
[#120602] Ruby 1.8.2-14_rc9 Win32Api Problem — Zach Dennis <zdennis@...>
I'm running the One click installer, Ruby 1.8.2-14_rc9 on my Win2K box,
[#120609] Ruby to C to another language (perhaps Java (I Don't Need JRuby)) — Zach Dennis <zdennis@...>
This posting is more for a learning thing then anything else at this
[#120611] Re: assert — "Wood, Jeff" <jeffwood@...>
[#120616] install problem — Amit Rao <amitraok@...>
I am trying to install ruby on mingw32 (on XP) ...
[#120655] Re: assert — "Wood, Jeff" <jeffwood@...>
It's a semantic thing, but you could also go with an #ensure name
Wood, Jeff wrote:
[#120670] ParseTree: how to write a quick and dirty dependency analyzer — Ryan Davis <ryand-ruby@...>
Original (and prettier) version at:
>>>>> "M" == Mohammad Khan <mkhan@lextranet.com> writes:
On Thu, 2004-11-18 at 10:36, ts wrote:
>>>>> "M" == Mohammad Khan <mkhan@lextranet.com> writes:
On Thu, 2004-11-18 at 10:51, ts wrote:
[#120671] (Yet Another?) RSS::Parser test suite — "Giulio Piancastelli" <giulio.piancastelli@...>
Hi all,
[#120683] Rails 0.8.5: Better fixtures, shared generators, sendmail for AM, lots of fixes! — David Heinemeier Hansson <david@...>
Despite the best intentions with release 0.8.0, I still managed to drag
David Heinemeier Hansson wrote:
[#120684] debugging rails in an IDE? — Pete Johnson <news19@...>
Excuse the naivety of this post
[#120695] Compiling openssl on Windows — Shashank Date <sdate@...>
Hi,
On Thu, 18 Nov 2004 11:18:14 +0900, Shashank Date <sdate@everestkc.net> wrote:
[#120706] The Poetry of Code — "Curt Hibbs" <curt@...>
I loved this blog entry and I just had to share it with you!
Hi --
[#120712] In-memory Relational Data Storage — Curt Sampson <cjs@...>
[#120716] ActiveTcl 8.4.7 or 8.5.0 with One Click Ruby Installer — Hidetoshi NAGAI <nagai@...>
Hi,
Quoting Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>:
[#120717] Bug in Process.kill on win32? — Laurent Julliard <Laurent.Julliard@...>
I'm having serious troubles with Process.kill on 1.8.2 preview2 or
[#120727] About Regular Expressions — Nikolai Weibull <mailing-lists.ruby-talk@...>
Lately there have been a bunch of posts on this list about regular
On Thursday 18 November 2004 05:34 am, Nikolai Weibull wrote:
* trans. (T. Onoma) <transami@runbox.com> [Nov 18, 2004 14:10]:
On Thursday 18 November 2004 09:26 am, Nikolai Weibull wrote:
On Nov 18, 2004, at 9:44 AM, trans. (T. Onoma) wrote:
[#120754] postgres-pr (pure Ruby PostgreSQL) — Michael Neumann <mneumann@...>
Hi,
Michael Neumann wrote:
David Ross wrote:
Michael Neumann wrote:
David Ross wrote:
David Ross wrote:
On Fri, Nov 19, 2004 at 04:42:36PM +0900, David Garamond wrote:
Mauricio Fern疣dez wrote:
OH NO, you realize you're opening the proverbial can of worms, right? Last
On Fri, 19 Nov 2004 00:12:28 +0900, Michael Neumann
Stu wrote:
Michael;
Abraham Vionas wrote:
[#120799] Ruby in the Rainy City — Pat Eyler <pate@...>
The Seattle.rb would like to invite you to attend the first Pacific
[#120812] Anchored Regexp get stalled or hung — rnicz <rnicz@...>
Dear rubyists!
[#120824] Extracting ints from a unsigned long — "Joe Van Dyk" <joe.vandyk@...>
I have a bunch of binary data consisting of 4 ints stored inside an unsigned
[#120826] Needle-Extras 1.0.0 — Jamis Buck <jgb3@...>
Needle-Extras is a library of add-on services and utilities that can be
[#120834] Thinking About GServer — James Edward Gray II <james@...>
I need to code up a server. It could have as many as fifty
[#120860] Delegating a method, with arguments — djberg96@... (Daniel Berger)
Hi all,
[#120872] mission critical Ruby? — Mark VanOrman <mark@...>
Hi all,
Mark VanOrman wrote:
Curt Hibbs wrote:
Last night we released our preview site, which was built using Ruby on
[#120880] Extending Ruby with C — gabriele renzi <rff_rff@...>
An article from Garrett Rooney just appeared at OnLamp.com
[#120890] Object Browser (#8) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
Well, I was kind of waiting to see what other people came up with, but
On Nov 21, 2004, at 6:48 PM, Jamis Buck wrote:
James Edward Gray II wrote:
Jamis Buck wrote:
I'm new to using gems. Can you tell me the command I need to run to get
R. Mark Volkmann wrote:
Hi,
Hello Masao,
Hello Group,
* Brian Schrer <ruby@brian-schroeder.de> [2004-11-23 09:26:11 +0900]:
So I took some time and refactored my solution. It now has a modular and extendible structure (at least I hope so). It should be possible to easily write non-gtk ui's and extend the reporting capabilities.
On Nov 24, 2004, at 6:28 PM, Brian Schrer wrote:
I'm concerned about the state of GUI toolkits for Ruby when in comes to
Brian Schrer <ruby@brian-schroeder.de> wrote:
> End ambiguity in written sarcasm.
----- Original Message -----
R. Mark Volkmann wrote:[mailto:mark@ociweb.com]
[#120927] several questions on using gems — David Garamond <lists@...6.isreserved.com>
1. If I write a Ruby library (including a gem package) for others, what
On Sat, Nov 20, 2004 at 07:57:37PM +0900, David Garamond wrote:
[#120936] SWIG and Arrays (of ints) — Kurt Dresner <omega697@...>
Hi all,
[#120940] Inner Class Relationship — James Edward Gray II <james@...>
I have an inner class that needs to send it's parent object (outer
Since you haven't said much about how you're using this, maybe my
On Nov 20, 2004, at 5:55 PM, Francis Hwang wrote:
I know this is a retarded problem, but somehow I managed to set things up
Abraham Vionas wrote:
Sure!
Abraham Vionas wrote:
[#120941] Having Ruby 1.8 decide on "File.open" or 'IO.popen'? — "Josef 'Jupp' Schugt" <jupp@...>
Hi!
[#120961] Windows - calling system with multiple parms — colotechpro@... (John Reed)
I'm having a problem getting a system call to Windows XP to work. I
[#120976] gettext and require — Patrick Gundlach <clr3.10.randomuser@...>
Dear Rubyists,
[#120989] Ruby and the XBox — "Phlip" <phlip_cpp@...>
Rubistas:
[#120992] Typical/idiomatic examples of dynamic code generation with Ruby? — Iwan van der Kleyn <none@...>
Hi there,
[#120996] SOT: FreeRIDE — Lyndon Samson <lyndon.samson@...>
Firstly, I'd like to say, a great IDE for a great language!
[#121012] Zlib::GzipReader/Writer and strings — jim@...
Hi
[#121015] Some progress but have hit a new error working through the Todo tutorial... Anyone recognize it? — "Abraham Vionas" <abe_ml@...>
The error is below. Ugh. But at least it works up to this point. I don't
Oh, whups. The state of the todo_controller.rb file that evokes this error
Abraham Vionas wrote:
Thanks for the help Jamis!
[#121026] Instiki problems — Ryco@...
Hi!
Update:
Hi!
> I am a little bit disappointed that I didn't get any answer from DHH
Ryco@gmx.net wrote:
[#121043] Blocks, serailizing, and "configure, don't integrate" — Hugh Sasse Staff Elec Eng <hgs@...>
I seem to have run into a conceptual barrier, and it has caused me
[#121068] fast shutdown of webrick — Simon Strandgaard <neoneye@...>
On my box trap(:INT){ s.shutdown } takes some time to complete.
[#121072] Method Missing — Brian =?ISO-8859-15?Q?Schr=F6der?= <ruby@...>
Just a minor typo in the documentation
Another Thing I noticed. (I checked against the documentation at ruby-doc org. I hope that is the newest version.)
[#121081] Ruby/FastCGI — Sarah Tanembaum <sarahtanembaum@...>
Dear Rubyist, I'm yet still trying to use Ruby for simple Web
* Sarah Tanembaum <sarahtanembaum@yahoo.com> [1103 22:03]:
[#121095] I need an advice on formalizing address — "Sam Sungshik Kong" <ssk@...>
Hello!
On Wed, Nov 24, 2004 at 02:38:02AM +0900, Sam Sungshik Kong scribed:
[#121100] Subtle bug: Telnet / socket / thread? — Mark Probert <probertm@...>
Hi.
[#121103] RPA and iowa — Lloyd Zusman <ljz@...>
This question has to do both with RPA and with iowa.
[#121111] binary reading — ruby talk <rubytalk@...>
a=File.open("c:\\1.txt")
ruby talk wrote:
hmm... i really wanted the binary. is there a to_b?
[#121118] Question about the behavior of reopening a module and including another module. — "Zev Blut" <rubyzbibd@...>
Hello,
[#121120] Ruby+Tk+HTML Example — takaoueda@...
The following is a simple example of how Erb can be used
[#121122] PostgreSQL (Postgres-pr) + Rails = Unexpected EOF error? — "Abraham Vionas" <abe_ml@...>
I'm running XP, Ruby 1.8.2RC3, Rails 0.8.5, PostgreSQL 8BetaRC3, and
[#121126] rails is awesome — Dick Davies <rasputnik@...>
> Couldn't help sending a big 'thank you' to DHH for Rails.
On Tue, 23 Nov 2004 20:11:24 +0900, David Heinemeier Hansson
> I haven't seen this myself, but from something said by others, it
On Wed, 24 Nov 2004 07:01:17 +0900, David Heinemeier Hansson
> Essentially, David, this is a *problem* with ActiveRecord.
On Wednesday, November 24, 2004, 9:23:09 PM, David wrote:
On Wed, 24 Nov 2004 19:48:18 +0900, Gavin Sinclair
> do, maybe it's worth considering that ActiveRecord is not not the only
On Wed, 24 Nov 2004 22:58:09 +0900, George Moschovitis <gm@navel.gr> wrote:
Austin, what DB are you using anyway? Dunno if I caught that in this
On Wed, 24 Nov 2004 23:32:18 +0900, Francis Hwang <sera@fhwang.net> wrote:
* Austin Ziegler <halostatue@gmail.com> [1142 14:42]:
On Thu, 25 Nov 2004 00:01:11 +0900, Dick Davies
Hi,
David Heinemeier Hansson <david@loudthinking.com> wrote:
* Luc Heinrich <lucsky@mac.com> [1123 16:23]:
[#121133] Ruby Weekly News 15th-21st November 2004 — timsuth@... (Tim Sutherland)
http://www.rubygarden.org/ruby?RubyNews/2004-11-15
[#121153] Generalizing and Organizing Code — "trans. (T. Onoma)" <transami@...>
I am finding it difficult to properly generalize and organize my code. Perhaps
[#121167] adding class-methods via modules — John Wilger <johnwilger@...>
Hello,
[#121173] Most popular wiki in Ruby seeks kind maintainer — David Heinemeier Hansson <david@...>
Okay, okay, okay. Instiki does need a new maintainer. At least a
On Wed, 24 Nov 2004 02:35:21 +0900, David Heinemeier Hansson
More generally, let me ask: What formats are people using to persist
Hello Francis,
On Wed, 24 Nov 2004 11:29:51 +0900, Francis Hwang <sera@fhwang.net>
[#121175] Ruby DL::Importable struct issue — "Kevin Howe" <khowe@...>
Hi,
[#121189] Net::SSH 0.5.0 — Jamis Buck <jgb3@...>
Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
[#121203] Checkpointing Ruby applications (DragonFlyBSD only) — Michael Neumann <mneumann@...>
Hi,
Michael Neumann wrote:
[#121205] How to avoid inheriting Object? — "itsme213" <itsme213@...>
How do I create a class that does not inherit from Object?
On Wed, 24 Nov 2004 10:29:09 +0900, itsme213 <itsme213@hotmail.com> wrote:
On Wed, Nov 24, 2004 at 12:18:24PM +0900, Austin Ziegler wrote:
On Wednesday 24 November 2004 05:37 am, Mauricio Fern叩ndez wrote:
Hi,
On Wednesday 24 November 2004 06:28 pm, Yukihiro Matsumoto wrote:
[#121209] Pimki — "Assaph Mehr" <assaph@...>
** About
[#121227] editors/IDEs — Jamie Orchard-Hays <jamie@...>
I'm curious what people are favoring for editors and IDEs for Ruby.
Hello Jamie,
[#121265] Postgres adapter in RPA — "trans. (T. Onoma)" <transami@...>
No RPA?
[#121283] FreeRide experience? (especially on MacOS X) — Jamie Orchard-Hays <jamie@...>
I'm curious about users' experiences with FreeRide, especially on MacOS
[#121318] Ruby/DL tutorial — bjsp123@... (Benjamin Peterson)
Hi,
[#121356] irb and german keyboard problem — Lothar Scholz <mailinglists@...>
Hello ruby-talk,
[#121381] Re: Ruby GUIs and installation effort — "bin liu" <ruby@3cn.com.cn>
I think one GUI system dos not depends others except ruby will bee more flexible.
> Sure. This type of framework would be more flexible, but what about
[#121390] proc to method — "itsme213" <itsme213@...>
I have some closure context captured in a proc, and want to create a method
[#121394] YAML question (hi _why!) — Hal Fulton <hal9000@...>
_why,
[#121406] prettyprint or pp questions — Hal Fulton <hal9000@...>
There are three things I would like to do but I am not
[#121435] Catching exceptions at top level — Laurent Julliard <Laurent.Julliard@...>
I have sort of a trivial question here that I'm afraid is so simple
[#121455] Using unit-tests as examples for a documentation — benny <listen@...>
dear list,
[#121464] Review of 'Programming Ruby' — "TechBookReport" <tbr@...>
TechBookReport has just published a review of 'Programming Ruby' by Dave
[#121468] oneclick installer, freeride — tony summerfelt <snowzone5@...>
anybody NOT developing the oneclick installer or freeride can skip
If you can wait about a week, we're currently testing FreeRIDE 0.9.0 and
On Fri, 26 Nov 2004 08:43:30 +0900, you wrote:
tony summerfelt wrote:
On Fri, 26 Nov 2004 14:23:42 +0900, you wrote:
tony summerfelt wrote:
On Fri, 26 Nov 2004 14:42:00 +0900, you wrote:
[#121479] test/unit runner with ui? — "itsme213" <itsme213@...>
Context: 1.8.2 on WinXP: I find myself often in a mode of making changes to
[#121492] ActiveRecord (1.1) question — "Raif S. Naffah" <raif@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#121506] Multiplexer - linear non-blocking I/O — Mikael Brockman <mikael@...>
Blocking I/O is really easy to use. But when you use it to write
Hi,
"Robert Klemme" <bob.news@gmx.net> writes:
[#121517] Banned Words (#9) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
On Sat, 27 Nov 2004 01:11:47 +0900
On Nov 26, 2004, at 2:38 PM, Brian Schrer wrote:
Which filter class is the latest? Or should we use the standard
On Nov 27, 2004, at 9:19 AM, Fredrik Jagenheim wrote:
Below is my solution, formatted to use Jannis' testing classes.
On Nov 28, 2004, at 11:11 AM, Wayne Vucenic wrote:
[#121521] std method to convert string of bytes into Integer? — Sam Roberts <sroberts@...>
I've a string of bytes, represented as a String, most significant byte
[#121580] Is FastCGI/mod_ruby for Ruby mswin32 available? — Sarah Tanembaum <sarahtanembaum@...>
Where can I get mswin32 binaries for Ruby and its extension apps and
[#121588] WEBrick HTTPRequest#to_s should never fail, but does — Simon Strandgaard <neoneye@...>
While experimenting with XmlHttpRequest, I wanted to dump my req
In message <200411271509.58571.neoneye@adslhome.dk>,
On Tue, 30 Nov 2004 03:35:48 +0900, GOTOU Yuuzou <gotoyuzo@notwork.org> wrote:
[#121611] initialize always — "trans. (T. Onoma)" <transami@...>
It is rather a common occurrence that I find myself creating a mixin module
trans. (T. Onoma) wrote:
[#121626] CORBA for Ruby? — RCS <rcs333@...>
Hi,
RCS wrote:
[#121637] How do you compile qtruby-1.0.4 — Nigel Wilkinson <nigel@...>
I'm trying to compile qtruby-1.0.4 but there's no configure, configure.in,
[#121643] Pssst. Ruwiki 0.9.0 is live... — Austin Ziegler <halostatue@...>
Okay, it's too early -- or too late -- to actually release this
[#121647] One-Click Installer 1.8.2-14 RC10 — "Curt Hibbs" <curt@...>
This release is mainly in upgrade the included FreeRIDE
Curt Hibbs wrote:
[#121652] DRb for dummies ! — Svend-Erik Kj誡 Madsen <sv-erik@...>
Hi
Sam Stephenson wrote:
> > require 'drb/acl'
Hello,
Hi --
On 23:06 Wed 09 Mar , David A. Black wrote:
[#121678] Image manipulation. FFT, 2D Folding — Brian =?ISO-8859-15?Q?Schr=F6der?= <ruby@...>
Hello Group,
[#121680] Rublog question — Zach Dennis <zdennis@...>
I have downloaded and am playing w/Rublog. If I wanted more then one
Dave Thomas wrote:
[#121682] howto rewrite url — Simon Strandgaard <neoneye@...>
I have searched on google, but couldn't find any useful info on this.
In message <df1390cc04112810447ed53aa@mail.gmail.com>,
On Tue, 30 Nov 2004 04:07:30 +0900, GOTOU Yuuzou <gotoyuzo@notwork.org> wrote:
On Mon, 29 Nov 2004 20:18:07 +0100, Simon Strandgaard <neoneye@gmail.com> wrote:
[#121694] Rail fails after update of Debian — Iwan van der Kleyn <none@...>
Hi there,
[#121704] Ruby/DL translation — bjsp123@... (Benjamin Peterson)
Hi,
[#121708] private include — "trans. (T. Onoma)" <transami@...>
Is there a simple way to include a module such that all the included methods
[#121714] cros-0.1 prerelease — Simon Strandgaard <neoneye@...>
demo page (not connected to server, so no funcionality)
[#121730] Seeking advice on some method names — Gavin Sinclair <gsinclair@...>
Hi all,
On Mon, 29 Nov 2004 11:31:06 +0900, Gavin Sinclair
Hi --
David A. Black wrote:
On Sunday 28 November 2004 09:31 pm, Gavin Sinclair wrote:
On Tuesday, November 30, 2004, 1:52:49 AM, itsme213 wrote:
Gavin Sinclair wrote:
[#121739] RDT 0.5.0 Released — "Chris Williams" <cwillia1@...>
RDT 0.5.0 has been released and is available for download!
[#121770] ruwiki gem install problems — Henrik Horneber <ryco@...>
Hi!
[#121785] Getting a callback whenever a class method is added to a class or its children? — Francis Hwang <sera@...>
Is there a way to capture whenever a class method is added either to a
[#121794] rdoc: Change in #:nodoc: behaviour? — Austin Ziegler <halostatue@...>
It was recently pointed out to me that documentation for Text::Format
On Tue, 30 Nov 2004 00:24:09 +0900, Dave Thomas <dave@pragprog.com> wrote:
[#121814] Another improved error message request — "DaZoner" <bugmenot@...>
[#121826] How to implement set_trace_func callback in C/C++? — Stephen Kellett <snail@...>
Hello everybody,
[#121847] to_s, inspect, etc. — "itsme213" <itsme213@...>
Where would I find a nice summary of to_s, inspect, p, etc. and the core
Florian Gross wrote:
Hi --
On Nov 30, 2004, at 5:08 AM, David A. Black wrote:
On Tuesday 30 November 2004 12:07 pm, Charles Mills wrote:
On Nov 30, 2004, at 8:15 PM, trans. (T. Onoma) wrote:
[#121854] rdoc comments — Michael Neumann <mneumann@...>
Hi,
[#121864] multiple rb_require()s causing segmentation fault — zarawesome@...
Greetings,
[#121903] PHP vs. Ruby vs. Python (vs. Rails) — "Abraham Vionas" <abe_ml@...>
As I was falling asleep last night I was wondering about the differences in
[#121909] Unpacking an array with the star operator — Brian =?ISO-8859-15?Q?Schr=F6der?= <ruby@...>
Hello Group,
[#121910] Windows SendMessage — Guillaume Marcais <guslist@...>
Has anyone ever tried to send messages between applications using the
[#121916] Python 2.4 released — Zach Dennis <zdennis@...>
A coworker of mine came and hollarred at me because on /. it mentioned
On Wed, 1 Dec 2004 02:35:02 +0900, Zach Dennis <zdennis@mktec.com>
[#121918] 500 internal error on apache — coke <coke2k5@...>
I came across Ruby about 33 hours and decided to take it up.I have
On Wed, 01 Dec 2004 02:53:24 +0900, coke wrote:
I'm very new to cgi and have no background of programming other than a
[#121936] Optional static typing (or, What can Ruby 2.0 borrow from Boo?) — djberg96@... (Daniel Berger)
Hi all,
On Wed, Dec 01, 2004 at 05:57:47AM +0900, Daniel Berger scribed:
Daniel Berger ha scritto:
Hi --
David A. Black ha scritto:
Hello gabriele,
[#121943] profile — "Joe Van Dyk" <joe.vandyk@...>
Hi,
Joe Van Dyk wrote:
Hello Robert,
[#121949] singleton methods : when are they not permitted? — "itsme213" <itsme213@...>
irb(main):025:0> x = :any
itsme213 wrote:
Francis Hwang schrieb:
Re: assert
itsme213 wrote: >>There's one in the dev-utils package. It will automatically set a >>breakpoint if the application is run in debug mode and therefore give >>you an irb shell where you can find out why your assert failed. > That would work nice ... but I could not find it. Oh, you are right. It is not yet included in dev-utils because of its name. I have attached my local version of breakpoint.rb which includes it. I have thought about changing the name to "assume" so it can be included in dev-utils, but I'm not sure if that name is better.
Attachments (3)
require 'breakpoint'
require 'optparse'
options = {
:ClientURI => nil,
:ServerURI => "druby://localhost:42531",
:RetryDelay => 10
}
ARGV.options do |opts|
script_name = File.basename($0)
opts.banner = [
"Usage: ruby #{script_name} [options] [server uri]",
"",
"This tool lets you connect to a breakpoint service ",
"which was started via Breakpoint.activate_drb.",
"",
"The server uri defaults to druby://localhost:42531"
].join("\n")
opts.separator ""
opts.on("-c", "--client-uri=uri",
"Run the client on the specified uri.",
"This can be used to specify the port",
"that the client uses to allow for back",
"connections from the server.",
"Default: Find a good URI automatically.",
"Example: -c druby://localhost:12345"
) { |options[:ClientURI]| }
opts.on("-s", "--server-uri=uri",
"Connect to the server specified at the",
"specified uri.",
"Default: druby://localhost:42531"
) { |options[:ServerURI]| }
opts.on("-R", "--retry-delay=delay", Integer,
"Automatically try to reconnect to the",
"server after delay seconds when the",
"connection failed or timed out.",
"A value of 0 disables automatical",
"reconnecting completely.",
"Default: 10"
) { |options[:RetryDelay]| }
opts.separator ""
opts.on("-h", "--help",
"Show this help message."
) { puts opts; exit }
opts.parse!
end
options[:ServerURI] = ARGV[0] if ARGV[0]
DRb.start_service(options[:ClientURI])
begin
service = DRbObject.new(nil, options[:ServerURI])
begin
service.register_handler do |workspace, message|
puts message
IRB.start(nil, nil, workspace)
end
service.register_exit_handler do
# Need to delay this because server expects a response
Thread.new do
puts "Received shut down signal."
sleep 1
exit!
end
nil
end
sleep
ensure
service.unregister_handler
service.unregister_exit_handler
end
rescue Exception => error
if options[:RetryDelay] > 0 then
puts "No connection to breakpoint service at #{options[:ServerURI]}:",
" (#{error})",
" Reconnecting in #{options[:RetryDelay]} seconds..."
sleep options[:RetryDelay]
retry
else
raise
end
end
begin
require 'simplecc'
rescue LoadError
def Continuation.create(*args, &block)
cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
result ||= args
return *[cc, *result]
end
end
# This method returns the binding of the method that called your
# method. It will raise an Exception when you're not inside a method.
#
# It's used like this:
# def inc_counter(amount = 1)
# Binding.of_caller do |binding|
# # Create a lambda that will increase the variable 'counter'
# # in the caller of this method when called.
# inc = eval("lambda { |arg| counter += arg }", binding)
# # We can refer to amount from inside this block safely.
# inc.call(amount)
# end
# # No other statements can go here. Put them inside the block.
# end
# counter = 0
# 2.times { inc_counter }
# counter # => 2
#
# Binding.of_caller must be the last statement in the method.
# This means that you will have to put everything you want to
# do after the call to Binding.of_caller into the block of it.
# This should be no problem however, because Ruby has closures.
# If you don't do this an Exception will be raised. Because of
# the way that Binding.of_caller is implemented it has to be
# done this way.
def Binding.of_caller(&block)
old_critical = Thread.critical
Thread.critical = true
count = 0
cc, result, error, extra_data = Continuation.create(nil, nil)
error.call if error
tracer = lambda do |*args|
type, context, extra_data = args[0], args[4], args
if type == "return"
count += 1
# First this method and then calling one will return --
# the trace event of the second event gets the context
# of the method which called the method that called this
# method.
if count == 2
# It would be nice if we could restore the trace_func
# that was set before we swapped in our own one, but
# this is impossible without overloading set_trace_func
# in current Ruby.
set_trace_func(nil)
cc.call(eval("binding", context), nil, extra_data)
end
elsif type != "line"
set_trace_func(nil)
error_msg = "Binding.of_caller used in non-method context or " +
"trailing statements of method using it aren't in the block."
cc.call(nil, lambda { raise(ArgumentError, error_msg) }, nil)
end
end
unless result
set_trace_func(tracer)
return nil
else
Thread.critical = old_critical
case block.arity
when 1 then yield(result)
else yield(result, extra_data)
end
end
end
require 'irb'
require 'binding_of_caller'
require 'drb'
module Breakpoint
extend self
# This will pop up an interactive ruby session at a
# pre-defined break point in a Ruby application. In
# this session you can examine the environment of
# the break point.
#
# You can get a list of variables in the context using
# local_variables via +local_variables+. You can then
# examine their values by typing their names.
#
# You can have a look at the call stack via +caller+.
#
# The source code around the location where the breakpoint
# was executed can be examined via +source_lines+. Its
# argument specifies how much lines of context to display.
# The default amount of context is 5 lines. Note that
# the call to +source_lines+ can raise an exception when
# it isn't able to read in the source code.
#
# breakpoints can also return a value. They will execute
# a supplied block for getting a default return value.
# A custom value can be returned from the session by doing
# +throw(:debug_return, value)+.
#
# You can also give names to break points which will be
# used in the message that is displayed upon execution
# of them.
#
# Here's a sample of how breakpoints should be placed:
#
# class Person
# def initialize(name, age)
# @name, @age = name, age
# breakpoint("Person#initialize")
# end
#
# attr_reader :age
# def name
# breakpoint("Person#name") { @name }
# end
# end
#
# person = Person.new("Random Person", 23)
# puts "Name: #{person.name}"
#
# And here is a sample debug session:
#
# Executing break point "Person#initialize" at file.rb:4 in `initialize'
# irb(#<Person:0x292fbe8>):001:0> local_variables
# => ["name", "age", "_", "__"]
# irb(#<Person:0x292fbe8>):002:0> [name, age]
# => ["Random Person", 23]
# irb(#<Person:0x292fbe8>):003:0> [@name, @age]
# => ["Random Person", 23]
# irb(#<Person:0x292fbe8>):004:0> self
# => #<Person:0x292fbe8 @age=23, @name="Random Person">
# irb(#<Person:0x292fbe8>):005:0> @age += 1; self
# => #<Person:0x292fbe8 @age=24, @name="Random Person">
# irb(#<Person:0x292fbe8>):006:0> exit
# Executing break point "Person#name" at file.rb:9 in `name'
# irb(#<Person:0x292fbe8>):001:0> throw(:debug_return, "Overriden name")
# Name: Overriden name
def breakpoint(id = nil, context = nil, &block)
callstack = caller
callstack.slice!(0, 3) if callstack.first["breakpoint"]
file, line, method = *callstack.first.match(/^(.+?):(\d+)(?::in `(.*?)')?/).captures
message = "Executing break point " + (id ? "#{id.inspect} " : "") +
"at #{file}:#{line}" + (method ? " in `#{method}'" : "")
if context then
return handle_breakpoint(context, message, file, line, &block)
end
Binding.of_caller do |binding_context|
handle_breakpoint(binding_context, message, file, line, &block)
end
end
def handle_breakpoint(context, message, file = "", line = "", &block) # :nodoc:
catch(:debug_return) do |value|
eval(%{
def self.source_lines(context = 5, return_line_numbers = false)
lines = File.readlines(#{file.inspect}).map { |line| line.chomp }
break_line = #{line}
start_line = [break_line - context, 1].max
end_line = break_line + context
result = lines[(start_line - 1) .. (end_line - 1)]
if return_line_numbers then
return [start_line, break_line, result]
else
return result
end
end
}, context) rescue nil
if not use_drb? then
puts message
IRB.start(nil, IRB::WorkSpace.new(context))
else
@drb_service.add_breakpoint(context, message)
end
block.call if block
end
end
private :handle_breakpoint
# This asserts that the block evaluates to true.
# If it doesn't evaluate to true a breakpoint will
# automatically be created at that execution point.
#
# You can disable assert checking by setting
# Breakpoint.optimize_asserts to true before
# loading the breakpoint.rb library. (It will still
# be enabled when Ruby is run via the -d argument.)
#
# Example:
# person_name = "Foobar"
# assert { not person_name.nil? }
def assert(context = nil, &condition)
return if Breakpoint.optimize_asserts and not $DEBUG
return if yield
callstack = caller
callstack.slice!(0, 3) if callstack.first["assert"]
file, line, method = *callstack.first.match(/^(.+?):(\d+)(?::in `(.*?)')?/).captures
message = "Assert failed at #{file}:#{line}#{" in `#{method}'" if method}. " +
"Executing implicit breakpoint."
if context then
return handle_breakpoint(context, message, file, line)
end
Binding.of_caller do |context|
handle_breakpoint(context, message, file, line)
end
end
# Whether asserts should be ignored if not in debug mode.
# Debug mode can be enabled by running ruby with the -d
# switch or by setting $DEBUG to true.
attr_accessor :optimize_asserts
self.optimize_asserts = false
class DRbService
include DRbUndumped
def initialize
@handler = nil
@at_exit = lambda { }
IRB.instance_eval { @CONF[:RC] = true }
IRB.run_config
at_exit { @at_exit.call }
end
def add_breakpoint(context, message)
workspace = IRB::WorkSpace.new(context)
workspace.extend(DRbUndumped)
until @handler; end
@handler.call(workspace, message)
end
def register_handler(&block)
@handler = block
end
def unregister_handler
@handler = nil
end
def register_exit_handler(&block)
@at_exit = block
end
def unregister_exit_handler
@at_exit = lambda { }
end
end
# Will run Breakpoint in DRb mode. This will spawn a server
# that can be attached to via the breakpoint-client command
# whenever a breakpoint is executed. This is useful when you
# are debugging CGI applications or other applications where
# you can't access debug sessions via the standard input and
# output of your application.
#
# You can specify an URI where the DRb server will run at.
# This way you can specify the port the server runs on. The
# default URI is druby://localhost:42531.
#
# Please note that breakpoints will be skipped silently in
# case the DRb server can not spawned. (This can happen if
# the port is already used by another instance of your
# application on CGI or another application.)
#
# Also note that by default this is not secure. You can
# however specify a list of allowed hosts. But that will
# still not protect you from somebody reading the data
# as it goes through the net.
#
# A good approach for getting security is setting up an SSH
# tunnel between the DRb service and the client. This is
# usually done like this:
#
# $ ssh -L20000:127.0.0.1:20000 -R10000:127.0.0.1:10000 example.com
# (This will connect port 20000 at the client side to port
# 20000 at the server side, and port 10000 at the server
# side to port 10000 at the client side.)
#
# After you have done that you should specify "localhost"
# as the second argument to the +activate_drb()+ call.
#
# Running through such a SSH proxy will also let you use
# breakpoint.rb in case you are behind a firewall.
#
# Detailed information about running DRb through firewalls is
# available at http://www.rubygarden.org/ruby?DrbTutorial
def activate_drb(uri = 'druby://localhost:42531',
allowed_hosts = nil)
if allowed_hosts then
acl = ["deny all"]
Array(allowed_hosts).each do |host|
acl << "allow #{host}"
end
DRb.install_acl(ACL.new(acl.join("\n")))
end
@use_drb = true
@drb_service = DRbService.new
DRb.start_service(uri, @drb_service)
end
def use_drb?
@use_drb == true
end
end
module IRB
def IRB.start(ap_path = nil, main_context = nil, workspace = nil)
$0 = File::basename(ap_path, ".rb") if ap_path
# suppress some warnings about redefined constants
old_verbose, $VERBOSE = $VERBOSE, nil
IRB.setup(ap_path)
$VERBOSE = old_verbose
if @CONF[:SCRIPT] then
irb = Irb.new(main_context, @CONF[:SCRIPT])
else
irb = Irb.new(main_context)
end
if workspace then
irb.context.workspace = workspace
end
@CONF[:IRB_RC].call(irb.context) if @CONF[:IRB_RC]
@CONF[:MAIN_CONTEXT] = irb.context
trap("SIGINT") do
irb.signal_handle
end
catch(:IRB_EXIT) do
irb.eval_input
end
end
class << self; alias :old_CurrentContext :CurrentContext; end
def IRB.CurrentContext
if old_CurrentContext.nil? and Breakpoint.use_drb? then
result = Object.new
def result.last_value; end
return result
else
old_CurrentContext
end
end
class Context
alias :old_evaluate :evaluate
def evaluate(line, line_no)
if line.chomp == "exit" then
exit
else
old_evaluate(line, line_no)
end
end
end
class WorkSpace
alias :old_evaluate :evaluate
def evaluate(*args)
if Breakpoint.use_drb? then
result = old_evaluate(*args)
unless [true, false, nil].include?(result)
result.extend(DRbUndumped) rescue nil
end
return result
else
old_evaluate(*args)
end
end
end
end
class DRb::DRbObject
undef :inspect
end
def breakpoint(id = nil, &block)
Binding.of_caller do |context|
Breakpoint.breakpoint(id, context, &block)
end
end
def assert(&block)
Binding.of_caller do |context|
Breakpoint.assert(context, &block)
end
end