Re: Application design patterns

2003-07-24 Thread Aaron Ross
Hi Eric, > class. What I'd like is to have my model (as in MVC) objects reuse the > process or maybe even server shared objects without doing any of these: > > 1. Using a singleton utility class > 2. Needing to pass objects to model objects' new() in teh controllers > 3. Instantiating the objec

Re: mod_perl PerlTransHandler weirdness

2003-06-20 Thread Aaron Ross
his > functionality? I don't think mod_rewrite applies, since the tests are > too complicated, but would stand corrected if somebody knows > different... > > I posted this to london.pm earlier and had no joy. > > /joel, getting a bit desperate. -- Aaron Ross company .

Re: trouble with using $r->lookup_uri()

2003-05-31 Thread Aaron Ross
> my $uri = $r->uri; > my $subr = $r->lookup_uri($uri); Is this recursing? the subrequest will run all phases but the content handler, so i would think you'll need to add return unless $r->is_main(); or something like it at the beginning of the routine. -- Aaron

[JOB] Apache/Perl/Java Developer Available

2002-07-15 Thread Aaron Ross
Hi all, I am currently seeking gainful employement in the San Diego, CA area. I'm interested in full-time or contract employement. I have lots of experience with Apache/mod_perl, databases and software design. Although I'm ashamed to admit it here, I do have experience with some other p

Re: Mapping to location "/"

2002-06-12 Thread Aaron Ross
it and let Apache handle it. Would do the trick? -- Aaron Ross . Alias I, Inc. email . [EMAIL PROTECTED] web . www.alias-i.com office . 215 545 6428 mobile . 610 517 2905

RE: MVC advice..?

2002-05-29 Thread Aaron Ross
> Is there a neat way of dynamically loading in the appropriate control > subclass? Something proven and widely used. For what it's worth, I use the eval trick too. Although it may seem a little clunky, I believe it is "proven and widely used". The DBI.pm module uses code like this to load in

Re: Content management systems

2002-04-09 Thread Aaron Ross
> > > >For community sites, use Slash - the engine behind slashdot > >(http://www.slashcode.com) - there's even a book about it. > > You should also check out scoop (http://scoop.kuro5hin.org/), the engine > that runs Kuro5hin.org. It's also written for modperl, and IMHO has some > extra commu

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-22 Thread Aaron Ross
> (As an aside, I'm not sure I'll ever get over undef being proper closing > of a database connection; it seems so synonomous to free([23]). I > expect something like $db->db_close() or something.) You mean like $db->db_close()? :) http://sleepycat.com/docs/api_c/db_close.html > > my $

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Aaron Ross
> >> I'm testing with the Perl script below, with the filename ending > >> ".mperl" (which, in my configuration, causes it to run as a mod_perl > >> registry script). > > > > I would re-write it as a handler and see if Apache::Registry is partly > >to blame. > > I tried doing it as a handler

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Aaron Ross
> I'm testing with the Perl script below, with the filename ending > ".mperl" (which, in my configuration, causes it to run as a mod_perl > registry script). I would re-write it as a handler and see if Apache::Registry is partly to blame. hth, aaron

Re: inheritance and Apache::Request

2002-02-15 Thread Aaron Ross
elf } TMTOWTDI, aaron -- aaron ross . alias i, inc email . [EMAIL PROTECTED] phone . 215 545 6428

Re: Multiple authentication methods

2002-02-13 Thread Aaron Ross
ule .= '.pm'; > > eval { require $module; }; > > return $@ ? 1 : 0; > } > > 1; > > __END__ > > (darren) > > -- > Never attribute to malice that which is adequately explained by > incompetence. > -- Napolean Bonaparte -- aaron ross . alias intelligence, inc email . [EMAIL PROTECTED] phone . 215 545 6428

Re: Multiple authentication methods

2002-02-12 Thread Aaron Ross
ule to run will need to return DECLINED for the second to ever see the request. You may need a simple AuthHandler that always fails at the end. Try AuthenSmb, DECLINED or OK, try AuthSybase, DECLINED or OK, then AuthFailed, always returned FORBIDDEN. HTH, aaron -- aaron ross . alias intelligence, inc

Re: [OT] callisto software graphics

2002-02-07 Thread Aaron Ross
> > It just shows off the power of Orange... i, for one, believe in the power of orange. > Nanoware...http://www.nanoware.org/ can i place a request for some orange nanoware? -- aaron ross . alias i, inc email . [EMAIL PROTECTED] phone . 215 545 6428

[OT] callisto software graphics

2002-02-07 Thread Aaron Ross
http://callistocms.com v http://w.moreover.com/ hmmm -- aaron ross . alias i, inc email . [EMAIL PROTECTED] phone . 215 545 6428

Re: RFC: DBI::Prof

2000-11-28 Thread Aaron Ross
On Tue, 28 Nov 2000, Stas wrote: > possible SQL calls manually, so I wrote this simple profiler. Take a look > and tell me if you think it worths releasing on CPAN... Definitely release it! It is a very elegant solution to a problem that I'm guessing many of us have dealt with. I've always _tri

Re: premature TCP termination

2000-11-13 Thread Aaron Ross
at a time earlier than now, [EMAIL PROTECTED] wrote: > Hi, > I wonder if there is some sort of notification my module can receive if > the user has terminated HTTP transaction(ie dowloading of a search > result), by closing TCP link, or the Apache's connection has timed out... > URLs, pointers wo

Re: Apache::ASP & HTTP's validation model

2000-02-12 Thread Aaron Ross
hi Dmitry! Wouldn't it be great it someone came up with a general solution for this... some kind of logical class from which you could inherit and implement the necessary methods. There was an interesting thread about this problem with Mason. I'm sure it's come up before with ASP. The mod_pe

$r->content_type clobbering outgoing headers

2000-02-10 Thread Aaron Ross
Hi! I have an access handler that uses $r->headers_out->add to add a set-cookie header: $r->headers_out->add("Set-cookie"=>$sesc); If i try to access this in my ContentHandler, actually HTML::Mason, i find a strange problem: Calling $r->content_type wipes out the header! >From the han

Re: $r->content_type clobbering outgoing headers

2000-02-10 Thread Aaron Ross
-- > > Programmer / IS Technician > > http://www.arttoday.com/ > > > > > > - Original Message - > > From: Aaron Ross <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, February 10, 2000 10:16 AM >

Re: $r->content_type clobbering outgoing headers

2000-02-10 Thread Aaron Ross
& $ct && ($ct !~ m|^text/|i)); > > > Thanks, > > Tim Tompkins > -- > Programmer / IS Technician > http://www.arttoday.com/ > > > - Original Message - > From: Aaron Ross <[EMAIL PROTECTED]> >

Re: Apach::Session with Sybase?

2000-02-09 Thread Aaron Ross
hi David! i remember that i couldn't get Sybase to work with Apache::Session b/c the prepare statements use placeholders. you cannot use placeholders with a text field in sybase. from the DBD::Sybase docs: Note that IMAGE or TEXT datatypes can not be passed as parameters when

Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread Aaron Ross
hi! > > I'm trying to write a custom Auth/Authz handler, and want to handle > the failure within my module as well, sharing some variables that I've > already determined during the failure. I can't output content during > the Authz phase (or can I?), so I need to set up a very custom > handler.

Re: CGI::Cookie parse

2000-02-04 Thread Aaron Ross
Thanks for your help! I'll look at Apache::Cookie, too. Although I don't really see the big difference in simplicity. Aaron > On Fri, 4 Feb 2000, Aaron Ross wrote: > > > Hi! > > I'm trying to write an AccessHandler. I'm using CGI::Cookie to, yo

CGI::Cookie parse

2000-02-04 Thread Aaron Ross
Hi! I'm trying to write an AccessHandler. I'm using CGI::Cookie to, you got it, create and parse Cookies. However, I'm getting an error that I don't totally understand. ( This is mod_perl related... just hold on. ) If i call CGI::Cookie->parse($r->headers_in->get('Cookie')); I wil

Re: 403 Custom Response?

2000-01-31 Thread Aaron Ross
hi Gerald! you rock thanks, aaron > > > > Hi! > > I can't get Apache::AuthCookie to work without causing a login > > box to popup. > > I'm hoping someone else has had this problem and can help me clean up my > > configuration. can anyone point me to configuration directives > > that migh

403 Custom Response?

2000-01-31 Thread Aaron Ross
Hi! I can't get Apache::AuthCookie to work without causing a login box to popup. I'm hoping someone else has had this problem and can help me clean up my configuration. can anyone point me to configuration directives that might be causing this problem? Here is my .htaccess file: # Protect Al