[#70441] Can't autoconf Ruby1.8 CVS HEAD — Austin Ziegler <austin@...>
Can't autoconf Ruby 1.8 HEAD:
[#70447] eval and binding with mod_ruby — kwatch@... (kwatch)
Hi,
[#70460] Some OCI8 comments — Brian Candler <B.Candler@...>
Some notes/comments on ruby-oci8-0.1.3 which I've just been struggling to
[#70464] ljust, rjust... — "Chris Pine" <nemo@...>
Just thought I would run these ideas by everyone:
[#70471] Why doesn't rb_define_singleton_method call singleton_method_added? — Paul Brannan <pbrannan@...>
[pbrannan@zaphod testsing]$ cat testsing.c
Hi,
[#70481] 1.8 release status? — ptkwt@...1.aracnet.com (Phil Tomson)
Just curious, I know we're on 1.8.0-preview 2. What remains to be done
[#70487] Re: Search string in a file — Daniel Carrera <dcarrera@...>
On Fri, May 02, 2003 at 10:04:09AM +0900, Panther wrote:
[#70502] temporary redirection of stdout — Andrew Walrond <andrew@...>
I'm new to ruby, so forgive any obvious stupididity, but can anyone
On Fri, May 02, 2003 at 11:15:03PM +0900, Andrew Walrond wrote:
On Fri, May 02, 2003 at 11:27:52PM +0900, Paul Brannan wrote:
[#70503] Embedding a browser in a GUI — "Chad Fowler" <chadfowler@...>
Hello Rubyists!
[#70526] Re: Ruby (1.6.7) Net::FTP/OS call hang — Sean Gilbertson <prell@...>
Hello all,
Sean Gilbertson wrote:
[#70529] chomp'ing REXML:Element.text — Andreas Schwarz <usenet@...>
Hello,
[#70535] SWIG on Solaris problem — Jim Freeze <jim@...>
Hi folks.
Jim Freeze wrote:
On Saturday, 3 May 2003 at 6:49:12 +0900, Lyle Johnson wrote:
Jim Freeze wrote:
On Saturday, 3 May 2003 at 8:29:47 +0900, Lyle Johnson wrote:
Jim Freeze wrote:
On Tuesday, 6 May 2003 at 0:18:24 +0900, Lyle Johnson wrote:
[#70562] Cross platform `ls -t` — gabriele renzi <surrender_it@...1.vip.lng.yahoo.com>
Is there a way using Dir to have a list of directory entries sorted by
[#70575] "Collage" of images -- more pychological randomness — "Hal E. Fulton" <hal9000@...>
Lately I have posted an occasional coding challenge
----- Original Message -----
[#70594] Why is PHP so popular? What can we learn from the PHP camp? — ptkwt@...1.aracnet.com (Phil Tomson)
....and what can we learn from PHP's rapid rise to success?
Hello!
* Phil Tomson (ptkwt@shell1.aracnet.com) wrote:
On Tue, May 06, 2003 at 04:52:56AM +0900, E F van de Laar wrote:
Aredridel wrote:
A wishlsit for a "Ruby Standard Library":
On Tue, May 06, 2003 at 07:39:54AM +0900, Aredridel wrote:
On Tue, May 06, 2003 at 07:50:02AM +0900, Brian Candler wrote:
[snipped many wonderful things.]
----- Original Message -----
> 1. I do favor a "relatively lean and mean" Ruby installation.
In article <26dc48e2.0305060807.172b074f@posting.google.com>,
> Same here. But I think that part of the reason we're moving toward a
Although I'd agree most of your statements, I'd like to challenge two of
> >It might be really nice if it was pushed as a fairly normal/standard way
[#70597] Pure ruby stream compression library? — David Garamond <lists@...6.isreserved.com>
Anybody know of one? Compression speed or ratio is not important. Need
No I don't, but I'm interested in this problem:
[#70603] Problem using FXFileStream — Thomas Stammeier <thomas@...>
Hi,
[#70619] ruby and mdk 9.1 — "giuseppe falchi" <egius.falk@...>
Hello. I love ruby and fox, and in windows is very simple installing fox
[#70638] Binary data — Daniel Carrera <dcarrera@...>
Hi,
[#70664] Variable/Method ambiguity — "Gennady" <bystr@...>
Pickaxe p.212 explains the subject well enough, however here's an =
[#70675] Suggestion: String#pack — Austin Ziegler <austin@...>
I have been working on some code recently where it would be very
[#70685] www.ruby-lang.org article submitter wanted — matz@... (Yukihiro Matsumoto)
Hi,
On Tuesday, May 6, 2003, at 05:01 AM, Yukihiro Matsumoto wrote:
[#70701] Changing interpreter options during runtime — Jim Freeze <jim@...>
Hi
[#70718] %w(foo) v.s. ['foo'] — ahoward <ahoward@...>
[#70738] FreeRIDE on OS X? — paul@... (Paul J. Sanchez)
Has anybody gotten FreeRIDE running on a Mac OS X system? What does
Paul J. Sanchez wrote:
[#70759] Testing for a class existence — "Gennady" <gfb@...>
Does anybody know an easy way to test for a class/module existence in =
In article <20030506213500.GA49605@uk.tiscali.com>,
Saluton!
On Wed, May 07, 2003 at 09:39:39AM +0900, Josef 'Jupp' Schugt wrote:
[#70770] capture output — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
I have seen much talking about this topic, but no working code!
While experimenting a bit I discovered that this script hangs in the line
Capturing output to a File works fine.. But not to StringIO, Why ???
On Wed, 07 May 2003 20:25:10 +0900, nobu.nokad wrote:
On Wed, 07 May 2003 20:43:52 +0900, nobu.nokad wrote:
On Wed, 07 May 2003 23:31:06 +0900, Brian Candler wrote:
What is the recommended procedure for using named pipes in Ruby. Does one
On Mon, May 19, 2003 at 06:33:17PM +0900, Mark Firestone wrote:
Ok. Thanks for that. I guess this is going to be trial and error. My
On Tue, May 20, 2003 at 04:18:13PM +0900, Mark Firestone wrote:
Cool! I understand a bit more now.
On Tue, May 20, 2003 at 08:02:34PM +0900, Mark Firestone wrote:
[#70787] disable buffering on sockets — daniel <offstuff@...>
hello,
On Wed, May 07, 2003 at 04:54:37PM +0900, daniel wrote:
> Probably gets is waiting for a linefeed to return the data.
[#70842] Symbiosis offer: trade Ruby for German :-) — Mauricio Fern疣dez <batsman.geo@...>
[#70846] ruby-dev summary #20112 - 20158 — TAKAHASHI Masayoshi <maki@...>
Hello all,
[#70860] PStore and tempfiles - bug? — Daniel Berger <djberge@...>
Hi all,
Hi,
[#70865] access a variables name? — "meinrad.recheis" <my.name.here@...>
is it possible to access the variable-name of an object?
Brian Candler wrote:
On Thu, May 08, 2003 at 02:48:39PM +0900, Meinrad Recheis wrote:
On Thursday, 8 May 2003 at 15:54:56 +0900, Brian Candler wrote:
[#70891] Syck 0.25 + YAML.rb -- Objects in plain-text — why the lucky stiff <ruby-talk@...>
..my faithful friends..
Hi,
why the lucky stiff <ruby-talk@whytheluckystiff.net> wrote in message news:<20030507233743.GB87737@rysa.inetz.com>...
On Thursday 08 May 2003 02:49 am, Tom Payne wrote:
[#70892] Thoughts on a webcounter — "Hal E. Fulton" <hal9000@...>
Hello, all.
[#70919] petition for raa-install to be included in 1.8 — ptkwt@...1.aracnet.com (Phil Tomson)
Similar to the YamlInRuby petition which has now closed.
I just looked again, and remember why I don't know anything about
You can find a tutorial on using raa-install (as well as its API) at:
ps, lucky-stiff, have you ever released a new version of yaml?
In article <LMELLKPHLPHOPNBGJHAKMEAKOBAA.info@irvinehosting.net>,
Just in case you needed some encouragement to vote for raa-install,
On Fri, May 09, 2003 at 11:22:30AM +0900, tom@u2i.com wrote:
[#70955] Block passing: obj.new(){block} — Peter Schrammel <peter.schrammel@...>
Hi,
[#70968] Platform independent null device access — "Robert Klemme" <bob.news@...>
What do people think about adding a method to class IO that returns an IO
[#70973] Suggestion: rubycounter - n Ruby users and counting... — "Josef 'Jupp' Schugt" <jupp@...>
Saluton!
[#70985] Can a global be a constant? — Jim Freeze <jim@...>
Hi
----- Original Message -----
----- Original Message -----
On Friday, 9 May 2003 at 8:23:52 +0900, Hal E. Fulton wrote:
Hi --
On Friday, 9 May 2003 at 8:57:15 +0900, dblack@superlink.net wrote:
On Fri, May 09, 2003 at 01:13:51PM +0900, Jim Freeze wrote:
On Friday, 9 May 2003 at 16:18:43 +0900, Mauricio Fern疣dez wrote:
[#71036] Re: Regexp: why does (re)* return only last repetition? — "Robert Klemme" <bob.news@...>
On Mon, 12 May 2003 17:39:19 +0900, Robert Klemme wrote:
On Mon, May 12, 2003 at 10:18:00PM +0900, Austin Ziegler wrote:
On Mon, 12 May 2003 23:51:44 +0900, Brian Candler wrote:
On Tue, May 13, 2003 at 07:29:24AM +0900, Austin Ziegler wrote:
On Tue, 13 May 2003 07:54:02 +0900, Brian Candler wrote:
On Tue, May 13, 2003 at 12:02:06PM +0900, Austin Ziegler wrote:
On Tue, May 13, 2003 at 04:10:36PM +0900, Brian Candler wrote:
Austin Ziegler wrote:
On Tue, 13 May 2003 00:02:34 +0900, Kent Dahl wrote:
[#71042] TCP Sockets — Dominik Werder <dwerder@...>
Hi there,
Hi,
On Fri, 2003-05-09 at 05:40, Dominik Werder wrote:
>> How can I tell how many bytes can be read from an IO object without
On Fri, May 16, 2003 at 05:14:17PM +0900, Dominik Werder wrote:
my problem is not the http protocol itself (not at this time :) but the IO-
On Fri, May 16, 2003 at 07:20:30PM +0900, Dominik Werder wrote:
> Maybe, but threads are really the "ruby way" to solve this problem.
On Fri, May 16, 2003 at 07:53:39PM +0900, Dominik Werder wrote:
> That would mean mixing the binary streams in a non-deterministic way,
On Fri, May 16, 2003 at 10:26:59PM +0900, Dominik Werder wrote:
> Sure, using the method that Nobu proposes you might be able to tell that
On Fri, 2003-05-16 at 08:11, Dominik Werder wrote:
[#71043] methods with different signatures — KONTRA Gergely <kgergely@...>
Hi!
[#71053] extern "C" of prep_stdio — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
Im trying to handover a pipe from C++ to ruby.
On Sat, 10 May 2003 00:07:34 +0900, ts wrote:
[#71077] SemiOT: HTML/CGI question — "Hal E. Fulton" <hal9000@...>
I've been pursuing the webcounter idea a little.
Hal E. Fulton wrote:
[#71107] RCR for child execution — Brian Candler <B.Candler@...>
Looking on RubyGarden it seems that the RCR process there is "resting", so
On Sat, May 10, 2003 at 09:14:35AM +0100, Brian Candler wrote:
I have some more to add to this issue.
On Sun, 11 May 2003 01:50:49 +0900, Brian Candler wrote:
On Sun, May 11, 2003 at 01:27:31AM +0900, Simon Strandgaard wrote:
On Tue, 13 May 2003 21:11:08 +0000, ahoward wrote:
Hi,
On Sun, 11 May 2003 05:39:31 +0900, Brian Candler wrote:
On Sun, 11 May 2003 19:12:17 +0900, Brian Candler wrote:
On Mon, 12 May 2003 18:32:47 +0900, Yukihiro Matsumoto wrote:
On Mon, 12 May 2003 21:12:15 +0900, Hal E. Fulton wrote:
On Tue, May 13, 2003 at 12:23:17AM +0900, Simon Strandgaard wrote:
Hi,
On Tue, 13 May 2003, Yukihiro Matsumoto wrote:
Hi,
On Mon, 2003-05-12 at 17:57, nobu.nokada@softhome.net wrote:
On Tue, 13 May 2003 04:04:23 +0900, Yukihiro Matsumoto wrote:
[#71111] Extracting text from HTML — "Robo" <robo@...>
Given a HTML file, I'm looking for a regex that can give me the text that
[#71134] Enumerable#each with arguments — Joel VanderWerf <vjoel@...>
>>>>> "J" == Joel VanderWerf <vjoel@PATH.Berkeley.EDU> writes:
[#71137] Overriding class variables — elbows@... (Nathan Weston)
In ruby 1.6.8, overriding class variables cause weird (to me at least)
[#71139] FXRuby - FXMainWindow question — colotechpro@... (John Reed)
I think that my problem is that I've got 2 classes that are both
[#71152] Is Rubygarden's wiki restricted to English? — Mauricio Fern疣dez <batsman.geo@...>
----- Original Message -----
On Mon, May 12, 2003 at 12:40:26AM +0900, Hal E. Fulton wrote:
Hi --
----- Original Message -----
On Mon, May 12, 2003 at 03:06:06AM +0900, Hal E. Fulton wrote:
[#71153] language guide for C++ programmers — pavel_vozenilek@... (Pavel Vozenilek)
Does anyone know about Ruby intro guide targeted on C++ programmers
[#71189] efficiency advice needed — "meinrad.recheis" <my.name.here@...>
hi,
[#71236] Ruby, OSX and Postgres — Sam Griffith <staypufd@...>
Hello,
[#71256] shell glob match — ahoward <ahoward@...>
[#71259] FAQ - language used for postings? — "Josef 'Jupp' Schugt" <jupp@...>
Saluton!
[#71297] State Pattern Implementation — "Robert Klemme" <bob.news@...>
[#71321] Ruby OO? sin method? puts method? — KONTRA Gergely <kgergely@...>
Hi!
[#71328] Ruby<->Perl and syck-0.25 problem — Brian Candler <B.Candler@...>
Any syck users out there? I have an urgent need to get some Perl<->Ruby
[#71349] ActiveState Contest — Pat Eyler <pate@...>
ActiveState is holding a contest to determine 'your favorite programmer'
Hi --
On Wed, 14 May 2003 dblack@superlink.net wrote:
[#71357] return value for PTY.spawn — Laurent Sansonetti <laurent@...>
Hi rubyists ;-)
[#71361] Objects VS Datastructures — Simon Vandemoortele <deliriousREMOVEUPPERCASETEXTTOREPLY@...>
Simon Vandemoortele wrote:
[#71414] ruby_run() w/o exit? — ahoward <ahoward@...>
I know you asked for C.. and that I replyed with C++ :-)
[#71436] Using Ruby-Cocoa - how to send a Obj-C object a msg? — Sam Griffith <staypufd@...>
Hello,
[#71447] Embedding/GC/heap corruption problem — "Jan Bernhardt" <j.bernhardt@...>
Hi,
[#71479] 1.8-intense class tree — Dave Thomas <dave@...>
I was trying to come up with some example code for 'prettyprint' and I
[#71482] Current wxRuby status — "Park Heesob" <phasis@...>
Hi, All
[#71488] Test::Unit sequencing — Brian Candler <B.Candler@...>
A question for more experienced Test::Unit users.
On Thu, May 15, 2003 at 05:25:45PM +0900, Brian Candler wrote:
--- Brian Candler <B.Candler@pobox.com> wrote:
On Thu, 15 May 2003, [iso-8859-1] Anders Bengtsson wrote:
ahoward wrote:
--- Mark Wilson <mwilson13@cox.net> wrote:
On Fri, 16 May 2003, [iso-8859-1] Anders Bengtsson wrote:
[#71510] RCR: $INCLUDED global var — martindemello@... (Martin DeMello)
$INCLUDED = (__FILE__ != $0)
Hi,
Yukihiro Matsumoto wrote:
On Fri, 16 May 2003, Yukihiro Matsumoto wrote:
Hi,
Hi --
On Fri, May 16, 2003 at 07:54:36PM +0900, dblack@superlink.net wrote:
[#71519] PTY: still problems (+patch) — Laurent Sansonetti <laurent@...>
Hi all,
[#71520] public/protected/private syntax — Guillaume Marcais <guslist@...>
I tend to find the public/protected/private keywords in Ruby a little odd.
On Friday 16 May 2003 03:38 am, you wrote:
On Fri, May 16, 2003 at 11:33:21PM +0900, Guillaume Marcais wrote:
On Fri, 16 May 2003 23:33:21 +0900, Guillaume Marcais wrote:
Hi,
Yukihiro Matsumoto wrote:
[#71560] gzip cgi compression — Dominik Werder <dwerder@...>
Is zlib compatible with HTTP-gzip-output-compression?
On Fri, May 16, 2003 at 10:10:02PM +0900, Dominik Werder wrote:
> How are you running this? As a CGI under a webserver, or is there a Ruby
[#71593] procs and context — "repeatr" <repeater@...>
According to the Pickaxe:
[#71601] need help with timestamping — Daniel Bretoi <lists@...>
Hi,
[#71617] FAQ in German — "Josef 'Jupp' Schugt" <jupp@...>
Saluton!
Josef 'Jupp' Schugt wrote:
[#71636] select strange behavier — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
'select' is suppose to watch some file-descriptors and when an event
[#71655] examples for my OSCON talk — "Chris Pine" <nemo@...>
I know it's wrong to ask the mailing list for help on your homework, but
[#71669] overloading Someclass.new — loats205@... (loats205)
how would i overload Someclass.new in 1.6.8, i get a NameError: superclass
On Sun, 18 May 2003 08:47:06 +0900, loats205 wrote:
[#71672] C Extensions blocking all ruby threads — "Florian G. Pflug" <fgp@...>
Hi
On Sun, 18 May 2003 12:55:51 +0900, Florian G. Pflug wrote:
[#71673] An Object Going Out Of Scope — "vinita Papur" <gkapur@...>
A quick question. How can one discern when an object goes out of scope?
On Sun, May 18, 2003 at 06:08:43PM +0900, MikkelFJ wrote:
i need this for a realtime game application which has embedded ruby -- after
On Sun, May 18, 2003 at 08:35:11PM +0900, Gaffer wrote:
strange, i found the rb_gc call on my own and called that to good effect
On Sun, 18 May 2003 22:10:18 +0900, Gaffer wrote:
i think its actually the GC cleaning up matrix and vector classes (my own
On Sun, 18 May 2003 22:39:17 +0900, Gaffer wrote:
i'm pretty sure i've tracked down the cause, this is my first time embedding
On Sun, 18 May 2003 23:48:28 +0900, Gaffer wrote:
an interesting aside, is there any benefit to using ruby's ALLOC etc.
On Mon, 2003-05-19 at 11:55, MikkelFJ wrote:
[#71711] NET::POPMail: Any progress information for pop()? — "Josef 'Jupp' Schugt" <jupp@...>
Saluton!
[#71714] Which RSS? — Jim Freeze <jim@...>
Hi:
Jim Freeze wrote:
[#71717] PDA's — John Carter <john.carter@...>
All the hype about the new Sharp Zaurus's is getting me to drool on my
[#71723] ruby-dev summary #20159-20200 — Minero Aoki <aamine@...>
Hi all,
On Mon, 19 May 2003 13:07:59 +0900, Minero Aoki wrote:
[#71742] A recursive each method and a code block — Peter Hickman <peter@...>
I have a simple search program that uses the each method with a yield to
[#71764] The interpreter path — "Gennady" <gfb@...>
Hi, fellow rubyists
[#71773] CopyWithZone problem in RubyCocoa — Sam Griffith <staypufd@...>
Hello,
[#71833] Ruby reference recommendations — Dave <dave@...>
Hi, I'm new to Ruby, on my second day now, and I love the language so
[#71859] Strange mod_ruby — Dominik Werder <dwerder@...>
This seems to be a problem of mod_ruby.
----- Original Message -----
> It's because you are wrapped in an anonymous module when you use
On Wed, May 21, 2003 at 04:56:51PM +0900, Dominik Werder wrote:
[#71860] Fitnesse or Fit and Ruby — Bil Kleb <William.L.Kleb@...>
Has anyone used the FIT testing framework (http://fit.c2.com/)
Bil Kleb wrote:
[#71871] Bug in IO#write under windows — Alan Davies <NOSPAMcs96and@...>
If you write line breaks to a file under windows, the write and syswrite
[#71896] How do I get a variable into a gsub? — Dave Oshel <dcoshel@...>
Pardon the newbie question, but I can't seem to find how to place the
[#71901] super, aliases, defadvice, AOP, and so on — "Hal E. Fulton" <hal9000@...>
Hello, all.
[#71907] Copying an Array — Frederic Chalons - Design Support IA Student <frederic.chalons@...>
Hi,
[#71929] SMTP Authentication — Benjamin Sommerfeld <benjamin.sommerfeld@...>
Hi altogether,
[#71930] module constant access — Dan Janowski <danj@3skel.com>
I found this to be an odd behavior.
[#71948] How I'd like method-wrapping to work... — "Hal E. Fulton" <hal9000@...>
OK, I read Matz's blog entries as well as I could.
[#71964] Speed Kata: pure-Ruby powmod — Robert Feldt <feldt@...>
Hi,
What about profiling it?
[#71993] Regexps and anchoring again — Brian Candler <B.Candler@...>
There was a discussion a few weeks back about Ruby's handling of ^ and $ in
[#71995] OT: pickaxe chap 17 and gcc (ruby/c) — Rasputin <rasputin@...>
[#72015] Ruby now comes with Cygwin installer — robert.j.lally@...
[#72027] Web Services and Ruby — <bbense+comp.lang.ruby.May.22.03@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#72030] why is "does" missing from this sub!-stitution? — Dave Oshel <dcoshel@...>
[~/Desktop] dave$ cat foobar.rb ; foobar.rb
In article <20030522202818.GA24497@student.ei.uni-stuttgart.de>,
On Fri, May 23, 2003 at 08:44:16AM +0900, Dave Oshel wrote:
Hi --
dblack@superlink.net wrote:
On Fri, May 23, 2003 at 05:23:47AM +0900, Dave Oshel wrote:
[#72053] E-commerce with Ruby — "Useko Netsumi" <REMOVE_THISusenets@...>
Hi, I'm wondering if there are any good examples of doing e-commerce using
[#72056] Naive CGI question — "Hal E. Fulton" <hal9000@...>
I'm betting this is either impossible
[#72088] Arbitrary DNS queries? — Hadmut Danisch <spamblock@...>
[#72112] Getting '\' to be used as the separator in Dir.getwd -- how to? — RLMuller@... (Richard)
I'm running Ruby 1.6.8 over Win2000SP3. Dir.getwd returns the current
On Sunday, May 25, 2003, at 12:51 AM, Richard wrote:
[#72120] Where is initialize originally defined? — Markus Wichmann <spam2003@...2w2.de>
Hi to everyone,
[#72134] Problem compiling extension on Solaris — "Tim Hunter" <cyclists@...>
I have an user who is trying to build RMagick on Solaris with Ruby 1.6.8.
Hi,
On Sun, Jun 01, 2003 at 02:00:29AM +0900, Steven Ketcham wrote:
[#72138] Array# method like shape in Python? — Phlip <phlipcpp@...>
Rubies:
[#72150] Binary Tree vs. Hash — Xiangrong Fang <xrfang@...>
Hi ruby fans,
On Wed, May 28, 2003 at 01:49:53AM +0900, Robert Klemme wrote:
Hi Robert,
Xiangrong Fang wrote:
[#72159] Closures, capturing variables and evilness — Mauricio Fern疣dez <batsman.geo@...>
[#72165] FXRuby: Changing the options of FXTextField — Andreas Schwarz <usenet@...>
Hello,
[#72181] FxRuby: Popup menu — Andreas Schwarz <usenet@...>
Hello,
[#72184] Project Directory Structure — Jim Freeze <jim@...>
Hi:
Thanks everyone for your input so far.
On Tue, 27 May 2003, Jim Freeze wrote:
On Tuesday, 27 May 2003 at 18:26:53 +0900, Robert Feldt wrote:
Thanks for all the input. A description of the Project
On Wed, 28 May 2003, Jim Freeze wrote:
On Wednesday, 28 May 2003 at 1:45:56 +0900, Robert Feldt wrote:
> Another comment is that I don't like "examples" in pluralis but "test" in
On Wednesday, 28 May 2003 at 14:31:49 +0900, james_b@neurogami.com wrote:
[#72208] OpenGL and large texture bitmaps — Joel VanderWerf <vjoel@...>
[#72220] extending rdoc for custom accessors — Joel VanderWerf <vjoel@...>
Joel VanderWerf wrote:
Dave Thomas wrote:
Joel VanderWerf wrote:
[#72257] Help! I don't want a bignum... — Andrew Walrond <andrew@...>
Ok, I'm sure there is an easy way round this, but I can't see it...
[#72272] Re: system calls — "J.Hawkesworth" <J.Hawkesworth@...>
Don't know if this helps but I recall that in perl you have to divide by
[#72274] RCR: unpack/pack Bignum — Robert Feldt <feldt@...>
I'm sure this has been discussed before and maybe there are good reasons
No one seems to be interested in this issue so I'll have to reply to
Hi,
On Thu, 29 May 2003 nobu.nokada@softhome.net wrote:
Hi,
On Thu, 29 May 2003 nobu.nokada@softhome.net wrote:
Hi,
On Thu, 29 May 2003 nobu.nokada@softhome.net wrote:
Is it documented anywhere, what this 'w' template is useful for?
Hi,
[#72283] Take a notice please for my previous message about mod_ruby — Nicolay Vasiliev <n.vasiliev@...>
Hello!
[#72326] Result of && and 'and' — "Robert Klemme" <bob.news@...>
[#72346] Re: Tk - Restart after mainloop exits? — "Phlip" <phlipcpp@...>
Ralf Fassel wrote:
[#72347] ruby unicode./encoding support — Emmanuel Touzery <emmanuel.touzery@...>
Hello,
[#72371] Windows Installer for Ruby 1.8.0 (CVS) — Andrew Hunt <andy@...>
Hi all,
> I finally managed to scrape together a few spare minutes and put up the
Thanks!
[#72380] : CGI::Session — Tom Danielsen <tom@...>
[#72388] Array.extend versus instance.extend — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
I want to install 'shift_until_kind_of' in the global Array class
Here is my code so far.. you welcome to rip it.
On Fri, 30 May 2003 01:15:32 +0900, Guillaume Marcais wrote:
Hi --
On Fri, 30 May 2003 11:41:21 +0900, dblac wrote:
Hi --
On Fri, 30 May 2003 19:48:55 +0900, dblac wrote:
OK, my fault. The following code should pass your test and *is* faster
[#72398] Re: Array.extend versus instance.extend — Brian Candler <B.Candler@...>
Incidentally, you can make your class more general-purpose by using ===,
[#72420] Metakit for Ruby - Would you want it? — bobx@... (Bob)
I have a gentleman in England who I have been talking with who is
----- Original Message -----
On Fri, May 30, 2003 at 04:34:18AM +0900, Hal E. Fulton wrote:
Brian Candler wrote:
----- Original Message -----
[#72423] How do I automate cvs? — Jim Freeze <jim@...>
Hi
[#72439] Iteration - last detection — "Orion Hunter" <orion2480@...>
Is there any built in functionality for iteration that will allow me to
Orion Hunter <orion2480@hotmail.com> wrote:
On Thu, 29 May 2003, Martin DeMello wrote:
> Is there any built in functionality for iteration that will allow me to
On Fri, May 30, 2003 at 08:33:15PM +0900, Carlos wrote:
> Err??!
On Fri, May 30, 2003 at 10:09:39PM +0900, Carlos wrote:
>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:
Detecting if the first element might in some circumstances server the same
[#72463] substitution weirdness — Ian Macdonald <ian@...>
Hi,
[#72492] Object Prevaylence vs. OODBMS or Madeleine vs. DyBase — Wai-Sun Chia <waisun.chia@...>
Rubyists,
--- Wai-Sun Chia <waisun.chia@hp.com> wrote:
On Fri, May 30, 2003 at 04:56:08PM +0900, Anders Bengtsson wrote:
--- Brian Candler <B.Candler@pobox.com> wrote:
[#72521] local variable and local variable in block behave differently — Seb Clediere <Sebastien.Clediere@_nospam_laposte.net>
Dear Rubyists,
On Fri, May 30, 2003 at 09:49:40PM +0900, Seb Clediere wrote:
On Fri, 30 May 2003, Brian Candler wrote:
[#72528] to_s and concatenation — Rasputin <rasputin@...>
>>>>> "R" == Rasputin <rasputin@shrike.mine.nu> writes:
* ts <decoux@moulon.inra.fr> [030530 14:52]:
On Sat, May 31, 2003 at 01:06:49AM +0900, Rasputin wrote:
[#72534] expandtabs — "Steven Shaw" <steven_shaw@...>
The methods for expanding tabs in the Ruby FAQ don't seem to work.
[#72556] regexp operators — Wesley J Landaker <wjl@...>
Hi folks,
Hi,
On Friday 30 May 2003 5:41 pm, nobu.nokada@softhome.net wrote:
[#72560] try make dybase 010 — "William Pinelo Marin" <wpinelo@...>
hi rubyist,
[#72577] IF statement in ruby 1.8.0 (2003-05-26) [i386-mswin32] — "Shashank Date" <sdate@...>
Just when I thought that I had perfectly understood the IF statement in
[#72579] Ruby 1.8, mod_ruby-1.1.1, and Apache 2 — Lloyd Zusman <ljz@...>
Can anyone point me to a coookbook recipe (or at least some detailed
Re: [OO interface design] Pass-by reference VS encapsulation ?
Quoteing deliriousREMOVEUPPERCASETEXTTOREPLY@atchoo.be, on Thu, May 01, 2003 at 01:55:07AM +0900:
> I hope you will indulge this slightly (I hope) off-topic design question
> since it is not specific to ruby design.
I've run into this issue a bunch, in C and again in Ruby, when building
decoders for things like X.509 certificates, and vCards. It's
surprisingly hard to think through, I found. What I've done (and I'm not
claiming its the best way!), is massage my assumptions about the
requirements so that I solve just the problem I actually have, not all
the problems I can imagine might be possible to solve.
I hope this will pertinent, so I'll describe what i did in various
circumstances. It's a little rambly, but I have lots of thoughts, and
no time to edit.
** X.509 certs - I made them immutable, essentially. When you decode,
you do a DecodeBegin(), get a decode context, and it is read-only. This
makes sense, because:
- you can't change anything in a cert without invalidating the
signature!
- its rare to want to make a new cert from an old one, I.e, to change
it a little and resign it
Creating a cert is a different process, you do a EncodeBegin(), and
start adding the things you want in the cert, and when you're done,
call End(), and it gives you the binary DER encoding for the cert.
We began the design process with the idea that we would just have
a Certificate object, and it would be mutable, and you could create
one from the binary encoding, then change it, then encode it again.
This turned out to be hard, in lots of ways, so we rethought it,
and realized the model was not-right, it sounded nice and OOy, and
academic, but really, certificate encoding and decoding are very seperate
processes, not intermixed (usually) in the code. CAs encode. Everybody
else just decodes! The objects should be different (Dave's comment
about it being the same object only if the data AND the operations
are identical applies here).
** XML - I didn't write this, but look at REXML (I don't know it well,
so hopefully I'm not wrong about this!). What REXML appears to do is
decode XML into an object hierarchy. You can then change anything (?) in
the hierarchy (add elements, remove, change them). Then you reencode
from the doc element route, and it traverses the hierarchy, reencoding
everything.
Imagine if you had to do element.get_mutable_element() to get a mutable
element from the tree? It would be hugely painful! And you actually want
to modify some things inplace, not get a mutable version of a whole
document, or a sub-tree of the document.
The approach of REXML is that you can't make a bad XML element, they are
all valid XML elements, so the containing document doesn't need any
control over the parts, the parts are all valid XML.
---> This is one approach for your Contact. Abandon, your idea of having
the AddressBook enforce some kind of conditions. Any condition you name,
I think I could argue that its too limiting! Your example of no
duplicate names certainly is. Looked at another way, why should one
Contact be coupled to ANY other contact? There may be things that a
Contact will not allow (such as setting the name to nil, for example),
but if its a good contact, why would there be some state in the
AddressBook that causes my Contact to not be a valid member of it? Why
even disallow duplicates? What's a duplicate? There can be two Tom Jones
living in the same house, with the same phone number!
In REXML's case, imagine that a REXML document was validating, that it
had a DTD, and wouldn't allow you to add an element of a particular tag
in a place that the DTD didn't allow. Ouch! That's a hard problem, and
it doesn't try to solve it. I think it would be pretty hard. Every
modification to an element would have to check the DTD to make sure its
a valid modification.
** vCard - I recently wrote a vCard decoder/encoder. I wanted a single
object (I didn't want to split encoding and decoding), because a vCard
is a contact, and people change contacts. I also wanted to, as much
as possible, preserve the original encoding. This is because reencoding
wire formats is a BAD idea, it usually leads to the telephone game,
where one person whispers in someones ear, who whispers in another,
and what comes out isn't what goes in. In theory, if everybody
does it perfectly, it works, but assuming perfection is a fast route to
failure. The PKI and email worlds are full of bugs and interoperability
problems caused by reencoding. Anhow, that means that I didn't want
to just decode to a hierarchy of objects, allow them to be changed,
and then during reencoding walk the tree and reencode everything. I only
want to reencode pieces that are new, or have been changed.
Background: a vCard is decoded internally into and array of objects,
where the object contains a hash of paramaters, where each paramater has
an array of values (a email address can have a type=home,internet,pref,
for example).
card
original String
lines[]
Line { params{ 'name' => [ value1, value2, ..] }, other things...
I wanted people to be able to change a vCard. That meant changing
anything, and if they changed a Line, the Card needed to know, so that
it would know it had to reencode itself, otherwise it would leave the
original encoding unchanged. I implemened the params, for example, as a
hash mapping String to an Array. How would the Card know that a Line
that it had returned as a result of search was changed? How would the
Line know that a piece of its parmas Hash had changed? And some of the
params effect the contents of a line - if you add a param that say the
enoding is base-64, the line's value has to be changed to base-64.
Approach 1:
Don't return Ruby base types like a Hash of String=>Array, write my
own types, that all could have Observers, and that would notify there
containing objects when they were changed. I could (and would) have
done this, and it would have worked fine. But it would have been a lot
of work, and I'm using Ruby to do less work, not more! I don't want to
build wrappers for Array and Hash!
--> Another post mentioned a variant of this idea for a Contact, where
a Contact is some kind of Facade, and all requests made to it are
forwarded to the AddressBook, which has enough information to say
whether it is valid.
Approach 2:
Change my assumptions. I made a Line immutable. You can add a Line,
you can delete a Line, you can find a Line, you can create a new Line,
but you can't modify a Line. If you want to change a Line, you have to
make a new Line and add it to the Card, and delete the old Line from
the card. Now creation happens in one way, and during the creation of a
new Line I can apply all the self-consistency tests (encoding
specified once, if the encoding is base-64, encode the value as
base-64, etc, etc.). Adding also happens in one place, and I can check
vCard consistency there (no adding of a Line saying BEGIN:vCard into
the middle of a vCard!).
So, my implementation is simpler, faster to write, and thus less buggy
(I hope), and easier to maintain. Is it as amzing as it could have
been? No, but I don't have 3 months to work on amazing... And its
pretty easy to do the thing that need to be done.
--> A variant of this approach for you: Have a AddressBook.find that returns
a Contact that is a duplicate of the Contact it has internally. Allow the
Contact to be changed, but since this is a stand-alone object, it
doesn't affect the AddressBook's contact entry. Nothing is saved until
you do a AddressBook.save(contact). The AddressBook could then do
any validation it wanted to in the save, rather than every single change
you make to a Contact needing to be validated.
I think variants of this problem show up all over the place, and have a
lot of different solutions and approaches, its really interesting to
hear people talking about it!
Sam