[Resent] Comments on Math_BaseX - was Re: [PEAR-DEV] Question about package.xml

From: Date: Tue, 10 Dec 2002 23:05:10 +0000
Subject: [Resent] Comments on Math_BaseX - was Re: [PEAR-DEV] Question about package.xml
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11532@lists.php.net to get a copy of this message
Resending this (again). Hopefully Jim fixed the problem w/ the filter blocking emails w/ 'sex' anywhere in the subject ;-) (Who said that math cannot be raunchy <grin>) --- MAILER-DAEMON@pb1.pair.com wrote: > Date: 10 Dec 2002 21:45:27 -0000 > From: MAILER-DAEMON@pb1.pair.com > To: jcastagnetto@yahoo.com > Subject: failure notice > > Hi. This is the qmail-send program at pb1.pair.com. > I'm afraid I wasn't able to deliver your message to the following addresses. > This is a permanent error; I've given up. Sorry it didn't work out. > > <pear-dev@lists.php.net>: > Fix your software > > --- Below this line is a copy of the message. > > Return-Path: <jcastagnetto@yahoo.com> > Received: (qmail 85650 invoked from network); 10 Dec 2002 21:45:25 -0000 > Received: from unknown (HELO web12102.mail.yahoo.com) (216.136.172.22) > by pb1.pair.com with SMTP; 10 Dec 2002 21:45:25 -0000 > Message-ID: <20021210214521.49155.qmail@web12102.mail.yahoo.com> > Received: from [137.131.240.50] by web12102.mail.yahoo.com via HTTP; Tue, 10 > Dec 2002 13:45:21 PST > Date: Tue, 10 Dec 2002 13:45:21 -0800 (PST) > From: "Jesus M. Castagnetto" <jcastagnetto@yahoo.com> > Subject: [Resent] Comments on Math_BaseX - was Re: [PEAR-DEV] Question about > package.xml > To: peardev <pear-dev@lists.php.net> > MIME-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > > Hmm, somehow the deamon ta pair.com seems fubared. > > > --- MAILER-DAEMON@pb1.pair.com wrote: > > Date: 10 Dec 2002 21:43:22 -0000 > > From: MAILER-DAEMON@pb1.pair.com > > To: jcastagnetto@yahoo.com > > Subject: failure notice > > > > Hi. This is the qmail-send program at pb1.pair.com. > > I'm afraid I wasn't able to deliver your message to the following > addresses. > > This is a permanent error; I've given up. Sorry it didn't work out. > > > > <pear-dev@lists.php.net>: > > Fix your software > > > > --- Below this line is a copy of the message. > > > > Return-Path: <jcastagnetto@yahoo.com> > > Received: (qmail 83064 invoked from network); 10 Dec 2002 21:43:22 -0000 > > Received: from unknown (HELO web12101.mail.yahoo.com) (216.136.172.21) > > by pb1.pair.com with SMTP; 10 Dec 2002 21:43:22 -0000 > > Message-ID: <20021210214322.23127.qmail@web12101.mail.yahoo.com> > > Received: from [137.131.240.50] by web12101.mail.yahoo.com via HTTP; Tue, > 10 > > Dec 2002 13:43:22 PST > > Date: Tue, 10 Dec 2002 13:43:22 -0800 (PST) > > From: "Jesus M. Castagnetto" <jcastagnetto@yahoo.com> > > Subject: Comments on Math_BaseX - was Re: [PEAR-DEV] Question about > > package.xml > > To: Dave Mertens <dave@zyprexia.com>, PHP pear list > <pear-dev@lists.php.net> > > In-Reply-To: <20021210192259.GA4142@zyprexia.com> > > MIME-Version: 1.0 > > Content-Type: text/plain; charset=us-ascii > > > > Dave, > > > > As Jon mentioned before the package.dtd and .xsd are in the PEAR root dir. > > > > I like the class you've written, but from the point of view of naming of > > classes and methods, and the implementation here are some > ideas/suggestions. > > > > It might be more explicit to name if Math_BaseConvert (but that is > debatable, > > Math_BaseX would also work fine), also the init() method might be better > > named > > as setBase() accepting a base number (e.g. 2 or 23) and use the default > > conventions for bases 2 to 36 (i.e. the charset [0-9A-Z], the range() > > function > > will help here), if the base number is bigger than 36 then check for an > > optional second parameter w/ the charset. Using internal lookup tables is > > always faster ;-) > > > > Also, you might want to check for the actual value of the integer passed, > and > > decide to use the base_convert() function from PHP accordingly, that way > most > > of the simple cases will be handled at the C level rather than in PHP code. > > > > Finally, the encode()/decode() methods might be named toBase()/toDecimal(), > > and > > should check that in the first method it is getting a base 10 number and in > > the > > second it is getting a number that has valid chars according to the set > base, > > if something is not correct, then they can just return a PEAR::raiseError() > > > > Let me know if I can give a hand (not that I think you need it by looking > at > > your code ;-) > > > > --- Dave Mertens <dave@zyprexia.com> wrote: > > > Are test files also included with package releases? > > > If so, what file role do they have and in what directory do i have to > > install > > > them? > > > > > > More specific: > > > The question is about the Math_Basex\tests scripts. Do i have to specify > > > these test scripts in the filelist section in package.xml? > > > > > > -- > > > With best regards, > > > > > > Dave Mertens - Senior Development Manager > > > dmertens@ism.nl > > > > > > Innovative Solutions in Media > > > Schiekade 101 > > > 3033 BG Rotterdam, Netherlands > > > T +31-10-2436060 > > > F +31-10-2436066 > > > http://www.ism.nl > > > > > > Quality Solutions - Reliable Partner > > > > > > -- > > > PEAR Development Mailing List (http://pear.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > ===== > > --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) > > > > Research: > > http://metallo.scripps.edu/ > > Personal: http://www.castagnetto.org/ > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.com > > > ===== > --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) > > Research: > http://metallo.scripps.edu/ > Personal: http://www.castagnetto.org/ > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

« previous php.pear.dev (#11532) next »