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
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 .
> 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
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
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
> 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
> >
> >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
> (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 $
> >> 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
> 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
elf
}
TMTOWTDI, aaron
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
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
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
>
> 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
http://callistocms.com v http://w.moreover.com/
hmmm
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
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
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
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
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
--
> > 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
>
& $ct && ($ct !~ m|^text/|i));
>
>
> Thanks,
>
> Tim Tompkins
> --
> Programmer / IS Technician
> http://www.arttoday.com/
>
>
> - Original Message -
> From: Aaron Ross <[EMAIL PROTECTED]>
>
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
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.
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
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
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
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
27 matches
Mail list logo