[#86843] Marshal.load EOF on loading subclass of Array (1.8.1) — Brian Marick <marick@...>
I think I have found a bug in marshaling in version "ruby 1.8.1
[#86844] Usage message in optparse.. summarize method? — "Jeff Dickens" <dickens@...>
I tried your script, and -h doesn't output anything. I'm using ruby 1.8.0.
[#86899] how do I create a TestSuite — Rasputin <rasputin@...>
This code used to work under 1.6.8 with Test::Unit 0.1.8:
[#86905] RSS aggregators with web interface? — Hugh Sasse Staff Elec Eng <hgs@...>
I think this may already exist, hence my question:
[#86926] Rite, Block locals and Autovivification — John Carter <john.carter@...>
Perl has what may be an evil solution block locals.
Hi --
[#86969] Fwd: Re: Ruby2 RCR (was Re: Constants, class variables and the cbase field) — "T. Onoma" <transami@...>
Hi all,
Hi --
On Tuesday 02 December 2003 03:38 pm, David A. Black wrote:
Hi --
On Tuesday 02 December 2003 04:54 pm, David A. Black wrote:
Hi,
[#86984] Attempted roadmap of future instance variables.... — "David A. Black" <dblack@...>
Hi --
So what is the relationship between @_ vars and @vars that are defined in a
Hi --
Maybe I am being dense, so bear with me...
Steve Tuckner wrote:
OK so the jist of it is that @_var variables are stored with the class of
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
ts wrote:
>>>>> "C" == Christoph <chr_mail@gmx.net> writes:
ts wrote:
Hi --
On Fri, 5 Dec 2003 22:56:41 +0900, David A. Black wrote:
Austin Ziegler wrote:
On Sat, 6 Dec 2003 01:40:42 +0900, Christoph wrote:
On Friday 05 December 2003 06:41 pm, Austin Ziegler wrote:
On Sat, 6 Dec 2003 02:50:19 +0900, T. Onoma wrote:
On Friday 05 December 2003 07:02 pm, Austin Ziegler wrote:
Can anyone take a look at this and tell me what the hek is happening with
>>>>> "T" == T Onoma <transami@runbox.com> writes:
Take a look at this:
On Friday 05 December 2003 05:40 pm, Christoph wrote:
Hi,
Yukihiro Matsumoto wrote:
On Dec 5, 2003, at 12:15, Yukihiro Matsumoto wrote:
Nathaniel Talbott wrote:
On Friday 05 December 2003 07:40 pm, Nathaniel Talbott wrote:
On Dec 5, 2003, at 14:47, T. Onoma wrote:
On Friday 05 December 2003 09:05 pm, Nathaniel Talbott wrote:
[#86989] require bug?? (1.8.0) — Andrew Walrond <andrew@...>
Require is supposed to include each file only once, but if the same physical
[#87000] protocol.rb (1.6) doesn't like VERP style addressing — culley harrelson <culley@...>
I am using NET::SMPT to send messages with VERP style addressing:
[#87031] ruby 1.8 in the freebsd ports tree — culley harrelson <culley@...>
Does anyone have ruby 1.8 + libraries working from the freebsd ports
culley harrelson (culley@fastmail.fm) wrote:
[#87050] Please recommend a regular expression excluding return character. .. — Kurt Euler <keuler@...>
All-
[#87066] What's the best way to create methods dealing with an object of a certain class? — Leif K-Brooks <eurleif@...>
I want to add a method to be run on Strings. Currently, I'm just adding
Leif K-Brooks wrote:
I'm looking for a very indepth book on Ruby. Any suggestions?
[#87067] YAML Question: Using YAML::YamlNode#transform Method to get float values? — RubyQuestions@... (RubyQuestions)
I'm trying to use the transform method in YAML to grab the values from
[#87083] Some Regexp — orlovdn@... (Dmitry N Orlov)
I want to get array from file like this:
On Wed, 3 Dec 2003, Robert Klemme wrote:
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
On Wed, 3 Dec 2003, ts wrote:
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
[#87084] mixin vs. multiple inheritence — "T. Onoma" <transami@...>
In ruby-talk:72013, matz wrote:
T. Onoma wrote:
[#87085] each_with_what_index? — "T. Onoma" <transami@...>
Can you see the bug'a'boo in the following snippet?
On Wednesday, December 3, 2003, 10:01:38 PM, T. wrote:
On Wednesday 03 December 2003 12:23 pm, Gavin Sinclair wrote:
On Wed, 3 Dec 2003, T. Onoma wrote:
[#87155] Re: Linux protocol.rb and smtp.rb problem — George Girton <ggirton@...>
I'm looking forward to the answer to this question, I had the
George Girton (ggirton@mac.com) wrote:
[#87156] c extension troubles on windows — Michael Hale <michael@...>
Hi ruby extension geeks, and thanks in advance for your help.
"Michael Hale" wrote:
Unfortunately I don't have the source for the windows version of the
I recently resurrected my code to try to get it working again. So far
[#87159] Using Modules as Decorators — elbows@... (Nathan Weston)
Someone recently mentioned the idea of using Modules to implement the
[#87165] Ruby not exiting when developing extension — Derek Lewis <lewisd@...00f.net>
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
[#87166] _VERY_ basic Here Doc Question — "dhtapp" <dhtapp@...>
Hi,
[#87183] Swatch's internet time in Ruby [Code Inside] — Pablo Lorenzzoni <spectra@...>
Hello ALL!
[#87192] debugging [BUG] messages/c ext woes — "Ara.T.Howard" <ahoward@...>
[#87203] sorting — vanjac12@... (Van Jacques)
I'm not sure where to post about this problem, so
[snip]
On Thu, Dec 04, 2003 at 07:24:28PM +0900, Peter wrote:
On Sunday 07 December 2003 12:43, nainar wrote:
On Sun, Dec 07, 2003 at 03:14:28PM +0900, Dmitry V. Sabanin wrote:
On Sunday 07 December 2003 10:41 am, nainar wrote:
[#87209] Libxml XML::Document.find("/doc") # [BUG ] Segmentation fault — ujwalic@... (Ujwal)
This is my first message
[#87221] Problems with TestUnit — "Dmitry V. Sabanin" <sdmitry@...>
Hello,
On Dec 4, 2003, at 12:23, Dmitry V. Sabanin wrote:
[#87233] Generalized break? — Hal Fulton <hal9000@...>
I hate to bring up possible language changes, since there is
On Fri, 5 Dec 2003, Hal Fulton wrote:
[#87241] TCL/TK 8.4 for Windows — Ian Hobson <NewGroups@...>
Hi,
[#87247] how to navigate in a file ? — "Boris \"BXS\" Schulz" <bxs@...>
Hi,
[#87251] propagating errno from c extensions — "Ara.T.Howard" <ahoward@...>
[#87255] WeakRef and Object#hash — Samuel Tesla <samuel@...>
I'm trying to implement a weak key hash to use for generic objects.
Is there an assignment version of Hash#values_at, so I can assign
On Fri, 5 Dec 2003 12:42:05 +0900, Mark J. Reed wrote:
On Fri, Dec 05, 2003 at 01:45:36PM +0900, Austin Ziegler wrote:
[#87301] Re: Dumb question to which I ought to know the answer by now — Michael Campbell <michael_s_campbell@...>
Mark J. Reed wrote:
[#87333] Re: Attempted roadmap of future instance variables.... — "Weirich, James" <James.Weirich@...>
From: David A. Black [mailto:dblack@wobblini.net]
Hi,
Hi --
David A. Black <dblack@wobblini.net>:
[#87364] Dir.mkdir fails — "Jesper Olsen" <Jesper@...>
From a mod_ruby cgi_script I try to use
[#87382] Idea: Linux PIM in Ruby — Hal Fulton <hal9000@...>
On my wishlist of top 20 things I'd like to do: A PIM for Linux.
On Saturday, December 6, 2003, 4:34:01 PM, Hal wrote:
Hal Fulton wrote:
Lyle Johnson wrote:
Hal Fulton wrote:
Lyle Johnson wrote:
[#87387] Tk Help needed with grid — Ian Hobson <NewGroups@...>
Hi All,
[#87409] rbbr-0.5.0 — Masao Mutoh <mutoh@...>
Hi,
[#87430] Ideas for replacing $0==__FILE__ — Hal Fulton <hal9000@...>
I've accepted now that my "generalized break" was a bad idea. In
On Saturday 06 December 2003 07:59 pm, Hal Fulton wrote:
Hal Fulton (hal9000@hypermetrics.com) wrote:
Eric Hodel wrote:
Hal Fulton (hal9000@hypermetrics.com) wrote:
On Thu, 11 Dec 2003 06:21:37 +0900, Eric Hodel wrote:
[#87431] Running Ruby from a CD — ptkwt@... (Phil Tomson)
I'm looking into a contract to develop a license manager/installation tool
[#87459] Trying to create a Ruby daemon — Samuel Kvarnbrink <samuel.kvarnbrink@...>
Hi,
[#87492] subclassing Errno::XXX — Joel VanderWerf <vjoel@...>
[#87498] handling large data sets — Martin Pirker <nospam@...>
Hi...
[#87506] Surprising(?) behaviour of the comma operator — Frank Schmitt <invalid@...>
[#87519] Ruby blocks... forever — Nathaniel Talbott <nathaniel@...>
Ruby 1.8.1preview2, running on Debian Linux. Server is WEBrick based,
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 08:52, ts wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 09:36, ts wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 10:03, ts wrote:
[#87545] ruby-gdkpixbuf — Rasputin <rasputin@...>
[#87553] format money — saggmannen@... (saggmannen)
Hello, is there a way to format "Money"-style floats in ruby. E.g:
On Mon, Dec 08, 2003 at 07:06:32PM +0000, saggmannen wrote:
> Yes, there is. I'm sure that there's a module in the RAA for this,
Received: Tue, 9 Dec 2003 04:37:54 +0900
On Tuesday, December 9, 2003, 6:07:02 AM, saggmannen wrote:
On Tue, Dec 09, 2003 at 05:55:07AM +0900, Gavin Sinclair wrote:
On Tuesday, December 9, 2003, 8:42:02 AM, Mark wrote:
On Tue, Dec 09, 2003 at 06:53:42AM +0900, Gavin Sinclair wrote:
> On Tue, Dec 09, 2003 at 06:53:42AM +0900, Gavin Sinclair wrote:
Hi!
On Tue, 2003-12-09 at 19:03, Josef 'Jupp' SCHUGT wrote:
Tom Copeland wrote:
il Thu, 11 Dec 2003 03:14:43 +0900, Tom Copeland <tom@infoether.com>
[#87567] drb on windows not connecting — Joel VanderWerf <vjoel@...>
[#87586] RCR - 'struct flock*' wrapper for rb_io_fcntl — "Ara.T.Howard" <ahoward@...>
Hi,
[#87587] Adjusting the Scope of Blocks — Mark Cox <mark_cox@...>
Hi,
Hi --
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
[#87622] Segfault in 1.8.1p3 — Nathaniel Talbott <nathaniel@...>
Unfortunately, I don't have much information at this point, but here's
On Dec 9, 2003, at 08:24, Nathaniel Talbott wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 10, 2003, at 05:33, ts wrote:
On Dec 10, 2003, at 11:10, Nathaniel Talbott wrote:
[#87626] ANN: REXML 2.7.2 — ser@... (Sean Russell)
Hi,
--rexml--
[#87628] passing a func to a ruby func — elathan@...
Hello!
[#87632] Multiline Regexps — Ceri Storey <cez@...>
Either this is a bug, or I'm missing something:
[#87638] Inheriting variables, super, and "not super"? — Hugh Sasse Staff Elec Eng <hgs@...>
Is there a way in a method to say
[#87671] expect, rexpect and others — Ben Giddings <bg-rubytalk@...>
I know that now Ruby includes "expect", and that's great, however I noticed
Ben Giddings wrote:
On Thu, 11 Dec 2003, Ben Giddings wrote:
[#87691] Request for comments (longish) — "Luke A. Kanies" <luke@...>
Hi all,
[#87701] ruby 1.8.0: Error on "%02d" % "08" or "%02d" % "09" — Thomas Link <samul@...>
Hi,
[#87706] Docs for Socket, OpenSSL, etc — "James F. Hranicky" <jfh@...>
Are there any plans to add docs for modules like Socket and OpenSSL, etc to
On Thursday, December 11, 2003, 1:20:21 AM, James wrote:
On Wed, 10 Dec 2003 23:20:21 +0900, James F. Hranicky wrote:
On Thu, 11 Dec 2003 20:57:00 +0900
On Fri, 12 Dec 2003 00:07:28 +0900
On Fri, 12 Dec 2003 02:14:43 +0900
On Friday, December 12, 2003, 4:50:15 AM, James wrote:
[#87737] Fast loading of BIG data structures — Steven Lumos <slumos@...>
[#87775] prog for g.c.d. of 2 integers — vanjac12@... (Van Jacques)
Topics from mathematics make good practice programs, IMO.
[#87783] problems with racc: $end token — "Luke A. Kanies" <luke@...>
Hello,
On Friday, 12 December 2003 at 0:42:30 +0900, Luke A. Kanies wrote:
On Fri, 12 Dec 2003, Jim Freeze wrote:
On Friday, 12 December 2003 at 1:28:57 +0900, Luke A. Kanies wrote:
On Fri, 12 Dec 2003, Jim Freeze wrote:
On Friday, 12 December 2003 at 2:16:53 +0900, Luke A. Kanies wrote:
[#87787] FastCGI ? — "T. Onoma" <transami@...>
Quote from the fastcgi website:
[#87819] Ruby-Talk Subject Matters — "T. Onoma" <transami@...>
Out of curiosity, how do others feel about "suggestive" threads? Do you feel
T. Onoma wrote:
[#87856] Simple issue giving problems — Brad <coish@...>
Hello all,
[#87857] Appending to an array — Thomas Adam <thomas_adam16@...>
Hi All,
[#87867] YAML treatment of '#' character in middle of a string — "David A. Black" <dblack@...>
Hi --
[#87876] Fwd: Can't define +@ for Symbol (plus ruby install problem) — "T. Onoma" <transami@...>
Oops, my bad, wrong mailing list. Please see fowared message:
[#87889] History of programming languages — Daniel Carrera <dcarrera@...>
Here is a diagram with a "family tree" showing the history of programming
[#87890] getting a method from a block in C — elathan@...
[#87892] regexp for $(text) — Szymon Drejewicz <drejewic@...>
I have string
[#87903] threads and io — "JB" <temuphaey0@...>
I have soe problems whitn treads and I/O.
[#87924] types? casting and bools — KONTRA Gergely <kgergely@...>
Hi!
On Sat, 13 Dec 2003 01:56:18 +0900, KONTRA Gergely wrote:
[#87926] non-blocking io — "Ara.T.Howard" <ahoward@...>
>>>>> "A" == Ara T Howard <ahoward@ngdc.noaa.gov> writes:
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
[#87947] Object ID Lookup? — "Jim Moy" <web@...>
Hi all, a Ruby Nuby here with a question.
[#87950] Re: Zeus Programmers Editor V3.92 — "Berger, Daniel" <djberge@...>
> -----Original Message-----
[#87957] Can xemacs do syntax highlighting for ruby — Nigel Wilkinson <nigel@...>
Hi folks
On Sat, 13 Dec 2003 09:25:54 +0900
[#87964] Mirror for FreeRIDE? — Jonathan Edwards <edwards@...>
I'd like to check out FreeRIDE, but it is offline. rubyide.org has been
[#87965] Q: introspection — Mike Hall <mghallNO@...>
Is there a way to find out the methods that a given class/modules provides,
[#87975] installing extmath on MAC OS X — vanjac12@... (Van Jacques)
MAC OS X comes with ruby installed (v.1.6.7), which is nice.
[#87981] strange rb_gc_mark error — Elias Athanasopoulos <elathan@...>
Hello!
Hi,
On Sat, Dec 13, 2003 at 10:11:12PM +0900, Yukihiro Matsumoto wrote:
[#87993] additional methods for Array — David Garamond <lists@...6.isreserved.com>
I'm wondering what other people's thoughts are about adding these
[#87996] fox-toolkit.org down? — Carl Youngblood <carl@...>
Anybody know what's wrong with the Fox web site?
[#88031] inplace assignment — "T. Onoma" <transami@...>
is there anyway, anyway at all, ugly hacks accepted, of doing inplace
T. Onoma wrote:
On Sunday 14 December 2003 05:51 am, Hal Fulton wrote:
Hi,
T. Onoma wrote:
On Sunday 14 December 2003 07:49 am, Hal Fulton wrote:
On Sun, 14 Dec 2003, T. Onoma wrote:
On Sunday 14 December 2003 03:59 pm, David A. Black wrote:
On Mon, 15 Dec 2003, T. Onoma wrote:
Alright, a number of things related to Duck Tpying have been popping up and I
> -----Original Message-----
On Mon, 15 Dec 2003, David Naseby wrote:
On Sunday 14 December 2003 10:06 pm, John Carter wrote:
You could invoke any method on any object of any class.
[#88042] append_features(mod) -- mod.kind_of? makes absolutely no sense — "T. Onoma" <transami@...>
First of all, if class Class inherits class Module then why isn't
Hi,
[#88050] dbi install failed — thomas eric <sanniso@...>
Hi,
[#88104] Q: How to convert hashed parameters to local variables? — Dennis Misener <dm@...>
In my efforts to write yet another template language {I know, I
Hi --
[#88147] extremely strange segfault — "Luke A. Kanies" <luke@...>
Hi all,
Hi,
[#88150] UnboundMethods Useless? — "T. Onoma" <transami@...>
Urrrr.....
On Tue, Dec 16, 2003 at 05:09:00AM +0900, T. Onoma wrote:
You can do stuff like this:
On Tuesday 16 December 2003 08:54 pm, Dan Doel wrote:
On Wed, 17 Dec 2003, T. Onoma wrote:
>>>>> "C" == Chad Fowler <chad@chadfowler.com> writes:
On Wednesday 17 December 2003 01:21 pm, ts wrote:
>>>>> "T" == T Onoma <transami@runbox.com> writes:
On Wednesday 17 December 2003 01:59 pm, ts wrote:
On Wed, 17 Dec 2003, T. Onoma wrote:
> I don't know what you mean by (ir)reversible, but the point is that
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
> a module is not a class
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
> No, I'm saying that only method in *some* class can work in another class.
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
[#88159] Re: Extracting multiple lines from a file — "Berger, Daniel" <djberge@...>
> -----Original Message-----
On Tue, Dec 16, 2003 at 07:16:23AM +0900, Ron Coutts wrote:
On Tue, 16 Dec 2003, Mark J. Reed wrote:
Dave Thomas <dave@pragprog.com> wrote in message news:<4F6A14B4-2FEA-11D8-BFF4-000A95676A62@pragprog.com>...
Dave Thomas wrote:
[#88172] Copying methods from one class to another — "T. Onoma" <transami@...>
Is there any way to copy a method from one class to another?
T. Onoma wrote:
On Tuesday 16 December 2003 05:23 am, Jamis Buck wrote:
On Tue, 16 Dec 2003, T. Onoma wrote:
On Tuesday 16 December 2003 02:51 pm, David A. Black wrote:
Sorry to step into the middle of a conversation, but what does this mean:
On Tuesday 16 December 2003 04:33 pm, Hacksaw wrote:
> On Tuesday 16 December 2003 04:33 pm, Hacksaw wrote:
On Tuesday 16 December 2003 10:51 pm, Hacksaw wrote:
> So, the short notation of
> Well, okay, you can do this. It strikes me that this is the equivalent
Hi --
[#88179] redirect stdout for Kernel.system()? — Neil Spring <nspring@...>
I'd like to be able to say:
[#88188] rescue block doesn't get run — Hacksaw <hacksaw@...>
This code snippet processes the options correctly, but if I leave off a
[#88197] Open Source Convention 2004 - Call for Papers — "Berger, Daniel" <djberge@...>
All,
[#88211] Newbie questions — jfrapper@... (Jim Frapper)
I was wondering what the equivalent tools were to perldoc(ri is not)
Daniel Carrera wrote:
On Wed, 17 Dec 2003, Jim Frapper wrote:
On Wednesday, December 17, 2003, 8:10:19 AM, Chad wrote:
>
On Wed, 17 Dec 2003, Daniel Carrera wrote:
On Wed, Dec 17, 2003 at 07:07:45AM +0900, Luke A. Kanies wrote:
On Wed, 17 Dec 2003, Daniel Carrera wrote:
Derek Lewis wrote:
On Thu, 18 Dec 2003, Jamis Buck wrote:
--- Derek Lewis <lewisd@f00f.net> wrote:
Daniel Carrera wrote:
[#88220] Re: Newbie questions — "Berger, Daniel" <djberge@...>
> -----Original Message-----
> Good documentation is part of what makes a language great. Not just the
Berger, Daniel wrote:
--- Hal Fulton <hal9000@hypermetrics.com> wrote:
Thomas Adam wrote:
> >>Personally I'd call it "rman" or some such.
Daniel Carrera wrote:
[#88234] substituting apostrphe's — Daniel Bretoi <lists@...>
Hi,
[#88286] Re: Secure Ruby ? — Brett S Hallett <dragoncity@...>
Thanks Clifford,
[#88289] Very odd IO problem — Brad <coish@...>
All:
[#88299] non-english characters — Daniel Bretoi <lists@...>
how do I match non-english alphabetical characters? Such as the german
Hi,
[#88303] Re: Newbie questions — "Weirich, James" <James.Weirich@...>
From: Randy W. Sims [mailto:RandyS@ThePierianSpring.org]
On 12/17/2003 12:30 AM, Weirich, James wrote:
On Thu, 18 Dec 2003, Randy W. Sims wrote:
[#88342] Re: Copying methods from one class to another — Michael Campbell <michael_s_campbell@...>
T. Onoma wrote:
On Wednesday 17 December 2003 03:43 pm, Michael Campbell wrote:
On Thu, 18 Dec 2003, T. Onoma wrote:
[#88357] 42.type and TypeError or 42.class and ClassError — "Ara.T.Howard" <ahoward@...>
[#88389] Binary-safe file IO — Carl Youngblood <carl@...>
Hi, I'm trying to embed a binary file inside a ruby script but I'm
[#88398] Secure Ruby - second challenge ! — Brett S Hallett <dragoncity@...>
Further to the excellent 'attacks' on my 'rubyrun' tool, I have revised
[#88414] Yukihiro - Please ensure backwards compatibility — jobeicus@... (Joseph Benik)
having recently migrated one of my machines from a 1.6 flavor to the
On Thu, 18 Dec 2003 11:01:56 +0900, Joseph Benik wrote:
On Thu, Dec 18, 2003 at 12:39:53PM +0900, Austin Ziegler wrote:
Elias Athanasopoulos <elathan@phys.uoa.gr> wrote:
[#88419] Configuration Files — "John W. Long" <ws@...>
A while back someone submitted some code to this list for evaluating
[#88432] setting $0 — Joel VanderWerf <vjoel@...>
[#88444] question about I/O and pipes — Jean-Baptiste <temuphaey0@...>
There is a (very) little programm (count.rb) which count lines:
[#88462] Re: Configuration Files — Gennady <gfb@...>
> Subject: Re: Configuration Files
[#88474] FreeRIDE project moved to RubyForge — Laurent Julliard <laurent@...>
To all FreeRIDE fellows,
[#88478] WxRuby? — Daniel Carrera <dcarrera@...>
The FreeRide annoucement just reminded me... what's up with wxRuby?
[#88484] What happened to File.copy? — "Ron Coutts" <rcoutts@...>
Did File.copy and File.cp disappear sometime between Ruby 1.6 and 1.8?
[#88494] How to return more than one result from a method? — Tim Hunter <cyclists@...>
I'm trying to code a method that has two result values. The values are
Hi --
Hi --
On Fri, Dec 19, 2003 at 10:28:49PM +0900, David A. Black wrote:
[#88509] amrita question — Carl Youngblood <carl@...>
I am trying to nest one amrita template inside another. The problem I'm
On Fri, 19 Dec 2003, Carl Youngblood wrote:
[#88524] string to UTF — Jean-Baptiste <temuphaey0@...>
How to convert a single string into UTF format.
On Fri, Dec 19, 2003 at 04:59:53PM +0100, Jean-Baptiste wrote:
Mark J. Reed wrote:
[#88544] Lexically scoped variables — Eric Sunshine <sunshine@...>
Hello,
Received: Sat, 20 Dec 2003 06:47:53 +0900
[#88547] O'Reilly Network Article: "Ruby's Present and Future" — Lyle Johnson <lyle@...>
Haven't seen this mentioned here yet, but they are running a nice
[#88549] 2003 OSDir.com Editor's Choice Awards in Open Source — Lyle Johnson <lyle@...>
Also, also, a friend just pointed out this story:
[#88552] Could I have an example of using Continuations as 'co-routines'? — Asfand Yar Qazi <im_not_giving_it_here@..._hate_spam.com>
Hi,
[#88560] tk file dialog and directories — "Ara.T.Howard" <ahoward@...>
rtk'rs-
[#88572] Problem with bdb — Andreas Schwarz <usenet@...>
I have compiled bdb on Debian Woody, but when I try to use it I get the
[#88581] replacing two EOL chars by one — xah@... (Xah Lee)
i have a bunch of java files that has spaced-out formatting that i
"Xah Lee" <xah@xahlee.org> wrote in message
[#88594] Hex editor and FXRuby ? — Noel Cuillandre <noel.cuillandre@...>
Anyone know to make a hex editor in FXRuby ?
[#88618] Ruby for Windows, Compiler (like DJGPP) — "Legion" <Legion@...>
I'm a beginner in the C++ world, and have been using DJGPP compiler program.
[#88643] Ruby 1.8.1 preview4 — matz@... (Yukihiro Matsumoto)
Hi,
[#88663] win32ole, outlook, ruby 1.8 — "Greg Brondo" <greg@...>
I'm using ruby 1.8 on Windows via rubyinstaller accessing outlook with
[#88664] md5 — KONTRA Gergely <kgergely@...>
Hi!
[#88666] Ruby for AIX 5.2? — don_feliciano@... (Don)
Latest stable ruby, as well as 1.8.1 preview 4, does not build on AIX
On Tue, 23 Dec 2003, Don wrote:
Hi,
On Tue, 23 Dec 2003, Yukihiro Matsumoto wrote:
[#88674] creating an object of a specific type — Elias Athanasopoulos <elathan@...>
Hello!
[#88686] Question about Ruby2 and Rite.... — jfrapper@... (Jim Frapper)
I have been familiarizing myself with ruby over recent weeks. This
il 22 Dec 2003 15:20:48 -0800, jfrapper@lycos.com (Jim Frapper) ha
[#88692] Does String cache its 'hash' return value? — Asfand Yar Qazi <im_not_giving_it_here@..._hate_spam.com>
What I mean is, if I repeatedly call a String's hash method (i.e. like
[#88698] Using DRbObservable — "Andre Nathan" <andre@...>
Hi
[#88707] bug: threads and win32 — hatespyware@... (anon luker)
Hi. I use Arton X's Activeruby package (ruby 1.8.0 (2003-08-04)
[#88731] RubyGems and dependencies — sera@... (Francis Hwang)
Two RubyGems questions about dependencies:
On Wed, 24 Dec 2003, Francis Hwang wrote:
In article <Pine.LNX.4.44.0312231138440.27882-100000@www.pocketdeveloper.com>,
Phil Tomson wrote:
[#88746] binary data — Alwin Blok <alwinblok@...>
Hello!
[#88747] Property files — "Ron Coutts" <rcoutts@...>
Is there a library class for handling common property files that have
[#88752] ruby 1.8 on MAC OS X — vanjac12@... (Van Jacques)
Has anyone posted an installer package for ruby 1.8 for MAC OS X (10.2.8
[#88765] getaddrinfo :: ? — Chris Morris <chrismo@...>
I'm tinkering around with Borges on my XP box and one of the first
[#88781] TkText freezes — quillion <me@...>
Hello all,
>>>>> "q" == quillion <me@privacy.net> writes:
Hi,
>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:
Hi,
[#88814] ruby 1.8.1 — matz@... (Yukihiro Matsumoto)
Merry Christmas,
[#88836] Happy Holidays — "jbritt@..." <jbritt@...>
Here's hoping everyone finds peace and happiness in the new year.
[#88872] dbdbd installation help please — "Joseph Paish" <jpaish@...>
has anyone successfully installed dbdbd? this program has just the right level of simplicity and
[#88876] ruby-mode font-lock trouble on Gnu Emacs 21.3.1 — Samuel Tesla <samuel@...>
I've been using ruby-mode along with a number of different Emacsen over the
[#88877] newbie question on how to subtract two dates. — Ruby Ruby <ruby4lover@...>
[#88904] The great ri conversion... :) — Dave Thomas <dave@...>
We're in the middle of integrating RDoc/ri-style comments into the main
On Sam, 2003-12-27 at 07:30, Dave Thomas wrote:
[#88930] Defining/Deleting variables — GGarramuno@... (GGarramuno)
Okay, I am trying to clarify the use of nil in Ruby.
On Sun, 28 Dec 2003 18:51:50 +0900, GGarramuno wrote:
[#88936] Inconsistent value of uninitialized variable — Gavin Sinclair <gsinclair@...>
The following statement, free of all context, generates an error:
Nathaniel Talbott <nathaniel@talbott.ws> wrote:
[#88940] system() — "Jesper Olsen" <Jesper@...>
I want to call a shell command from a mod_ruby cgi-script, eg.:
[#88954] An addition to Array (or Enumerable)? — Harry Ohlsen <harryo@...>
Yesterday, I wanted to get the output from "ls -l some_file" and pull out just the file size and the file name. As I start writing this, I realise, of course, that I'd have been better off just using the File#size method, but I still think the issue I hit is interesting.
[#88965] Re: Anyone has IniFile? — "Andre Nathan" <andre@...>
Albert Chou said:
[#88966] RDOC generation broken in 1.8.1 — "Chris White" <xxx@...>
I'm very new to Ruby, but I have successfully built and installed Ruby 1.8.1
[#88996] Question about Ruby implementation — Jamis Buck <jgb3@...>
I've been poking around the Ruby internals, trying to understand the
[#88998] Having trouble with ruby-mysql — Martin Larsson <martin.morgoth@...>
Hi list
[#89015] ruby-dev summary 22273-22434 — "Takaaki Tateishi" <ttate@...>
Hello,
On Wed, 31 Dec 2003 00:45:11 +0900, Takaaki Tateishi wrote:
In article <bstlfp$1a1cm$1@ID-194283.news.uni-berlin.de>,
On Wed, 31 Dec 2003 16:21:48 +0900, Phil Tomson wrote:
On Wed, 31 Dec 2003 17:10:52 +0900, Austin Ziegler wrote:
[#89025] ruby-opengl, ruby-glut — Alwin Blok <alwinblok@...>
Hello!
[#89054] rdoc: how to generate rdoc & ri documentation of standard library? — Andreas Schwarz <usenet@...>
Hi,
[#89058] Overriding to_s — Brad <BCoish@...>
All:
[#89070] Denying access to methods on DRb — "Andre Nathan" <andre@...>
Hi
Andre Nathan wrote:
Joel VanderWerf said:
On Thu, 1 Jan 2004 08:23:14 +0900, Andre Nathan wrote:
[#89071] Array #== and #=== — "John W. Long" <ws@...>
Now I'm really confused:
Re: Underpinnings of Method Wrapping
Hi Tom,
> Yep. I recall. Template Design Pattern. Didn't know that it had a name. Well,
> it's what I did, as I don't think there is better way to do it at this point.
> Thanks Peter.
Actually your example above could prove to be a useful application of
cflow. Suppose during compilation you'd have to do a number of tasks, and
each has a number of subtasks, and each of those too, etc. Suppose that
some of the tasks need to be run in a chroot environment, but you'd want
to run as little as possible in a chroot environment (say because that
minimizes security risks). You'd then have a main method called compile,
and a bunch of methods that either need to be wrapped in a chroot or not,
but you can't make a clear separation in the call tree between the two
kinds of methods. I'll give a simple example:
def compile # needs no chroot
task1
task2
end
def task1 # needs a chroot
task2
task3
end
def task2 # needs a chroot
...
end
def task3 # needs no chroot
...
end
For task1 we'd need to create the chroot environment. For task2 too, but
not when it is called from a method that already created a chroot env. For
task3 we need not create a chroot env, but we need to break one down when
called from a chrooted method. If we have a number of tasks like this, it
becomes cumbersome to code this in a consistent way. And thus we can use
AOP techniques. And to see whether we are in a chroot environment already,
we can use cflow. But we need to be able to limit it to the direct caller.
But suppose we have some real small tasks that don't require a chroot
environment, but are too insignificant to break down and rebuild the
environment for. I remember saying that cflow is technically not required,
you can do the same with just wrappers. So maybe we should do it
explicitly in Ruby then. The only point of cflow is that if it's a
recurring concept, it might be worth to have a separate notion of that in
Ruby. But what I don't like about cflow is that unless we can find a much
completer notion to describe conditions based on control flow, using it
may cause troubles too. If the condition becomes more complex, then it's
possible we can't describe it anymore in cflow logic and thus we need to
make it explicit anyway. If it was explicit in the first place, we'd need
to change less. I don't know if you're still with me...
> It's all good. I have lots of stuff on my plate right now. I'll just keep
> touching back on this as it developes in my mind. Have started some rework on
> the wiki page.
BTW, about [ruby-talk:86785]... Correct me if I'm wrong, but the idea
there is that you want to have a wrap that is always the outermost wrap,
even if methods are redefined in subclasses, much like the problem of the
chroot environment you presented. But I think I still need to be convinced
of the use of wraps in such cases because it can easily be done with
current Ruby (using template patterns and alike). Granted, wrapping can do
the same thing in-place. But is that necessary? If a wrap is supposed to
stay in place, like in case of your chroot creation, it seems natural to
use something template-like. OK, that exposes more methods, like the
real_compile in my previous post, but that's a more general problem of
visibility that's cross-cutting. It's the problem C++ tries to solve in a
clumsy way using friend classes, and what Matz tries to solve using
namespaces (but implementation-wise this is hard to do efficiently in a
dynamic language as Matz mentions on his slides). And actually with wraps
there's the problem that wraps are anonymous (unless we use indicators, or
allow to index the wrap stack, which is definitely yuck), but using
template-like things and subroutines, that's not a problem for all has a
name.
I'm just thinking aloud now, after reading up on AspectJ stuff. What
bothers me is that while reading the AspectJ stuff again, my reaction is
continually "so what, we can do that in Ruby already". (I learned Ruby
after I learned about AspectJ.) The first picture they show in their talks
is a schematic representation of the lines of code in the different source
files of the apache web server code. They show that XML parsing code is
located in 1 file. They show that URL pattern matching code is only in two
files (because it's a class and it's subclass). But then logging is spread
all over the place. But then I say to myself that we in Ruby don't have
such a problem. We are not forced to place the code of one class or module
by itself in one file. So we can perfectly move all the code concerned
with logging into one file. We can even make it generic so we don't need
to write the same code over and over again. This shows again that Matz
wasn't born yesterday. A class-based source file system forces you to put
all the code related to manipulating the same bit of data in one file,
even if code has parts that are about completely different concerns. Ruby
allows you to also split code based on the different concerns. If you
combine that thought with the idea of mix-ins (which the AspectJ guys try
to do using inter-class declarations, aka "open classes"), Ruby seems to
have more advantages than AspectJ will ever have.
I don't know if you see where I'm going. I don't know if I see where I'm
going. But my conclusion seems to be that for internal wraps, we make
things more complicated by using wraps, rather than solve things. What we
seem to struggle with are things like the order of the wraps, removing
wraps, redefining wraps, etc, and these seem really hard when there are
wraps, but not when we'd use things like templates and subroutines etc
because then we already have explicit power to manipulate all of that.
However I do believe there is use in what we call external wraps, which
are really just hooks that get called when another method gets called, but
are not part of the intrinsic functionality of the method they wrap. The
gain there is that they are really invisible to the rest of the program,
only they know they are there. And for those wraps, things like the order
of the wraps in the stack doesn't matter or removal on prime method
redefinition. But I feel that for intrinsic wraps we seem to be using the
wrong mechanism. It seems to take away explicit control, and we are now
looking for a way to give it back. If you know what I mean.
Maybe a final note... There are some features AspectJ has that we don't
have in Ruby (or at least that I know of). In AspectJ a method can be
called when a variable is read/assigned (easy for a compiled language).
Also exception handlers are join points. Note that we could add hooks
there, but not without the hooked ones explicitly providing that
possiblity.
Peter
PS: I'm not crawling back, I'm just waiting for you to refute all I've
been saying :-)
PPS: Sorry for rambling on for so many kilobytes