Re: JOBS: Post your mod_perl jobs on PerlMonth

1999-12-03 Thread Randal L. Schwartz
meone is viewing Baiju> Stas's mod_perl column, or any other mod_perl related article, Baiju> there will be a link to mod_perl related job. If you have any Baiju> questions you can mail me directly. Thank you for listening. And there's the jobs.perl.org area as well. -- Ran

Re: Associative Arrays problem

1999-12-07 Thread Randal L. Schwartz
gramming Cédric> $recherche equals "" with ASP programming It's quite possible that %rech is retaining its value from previous hits, and therefore counting up hire, or something. I dunno. As soon as you have "use strict"-able code that exhibits the same behavior, let us kno

Re: ASP Cookieless Sessions (WAS Re: Apache::ASP)

1999-12-10 Thread Randal L. Schwartz
of sessions 2) no rewriting of URLs for static pages, even if they have links 3) access to session ID even by mod_cgi scripts 4) new sessions are started by a simple external redirect 5) one simplePerlTransHandler could provide the master session-start for any URL downside: you must have access

Re: Limiting CPU (was Re: embperl pages and braindead sucking robots)

1999-12-14 Thread Randal L. Schwartz
ndler. I also use ->cleanup_handler in other modules, so >> I'm wondering if there's a conflict. Doug> you should be able to use any number of cleanup_handlers. do you have a Doug> small test case to reproduce the problem? Grr. Not really. I just moved everything to Log

Re: Limiting CPU (was Re: embperl pages and braindead sucking robots)

1999-12-14 Thread Randal L. Schwartz
> oh wait, I just said what you said, nevermind, I skimmed too fast.. if you only mess up like this on every 48 posts you send out right, you're doing pretty good. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.

Re: Limiting CPU (was Re: embperl pages and braindead sucking robots)

1999-12-14 Thread Randal L. Schwartz
s remote servers from overloading and dropping connection early Configurable Agent Identity allows Teleport Pro to impersonate popular browsers; gets data from even the stingiest servers Sounds to me like they are precisely at odds with anyone doing the kind of blocking that I want t

Re: Limiting CPU (was Re: embperl pages and braindead sucking robots)

1999-12-16 Thread Randal L. Schwartz
ugh that was in /robots.txt. I *must* block anything that doesn't respect /robots.txt. Once they fix that, I might let it loose. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security

Re: DBI and HTML modules?

1999-12-17 Thread Randal L. Schwartz
(th($_), @{$sth->{NAME}})) with Tr(th($sth->{NAME})) Much cleaner. I'm not sure about the other one though. Ahh, it looks like I'm already taking advantage of that. :) Weird. I learned something I already knew. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc

Re: PerlChildInitHandler called twice for a child?

1999-12-17 Thread Randal L. Schwartz
I believe there's a callback to Apache->something to see which state it really is in. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: Transforming XML2HTML with Perl

1999-12-20 Thread Randal L. Schwartz
>>>>> "Valdet" == Valdet Dedinca <[EMAIL PROTECTED]> writes: Valdet> I need a PerlScript for transforming the XML to HTML. XML does not "transform" to HTML. What are you really asking for? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc

Re: What am I doing wrong

1999-12-24 Thread Randal L. Schwartz
evilness of that ReadParse word is making me shudder already. That's so... uh... perl4-ish. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc.

Re: Limiting access based on number of AuthUsers

2000-01-05 Thread Randal L. Schwartz
webserver. Basically, if user x is Jeremy> authenticated from more than y number of IPs within z minutes, Jeremy> I want the authentication to be declined. Jeremy> Does such a module already exist? Hmm. Sounds like an interesting WebTechniques column. :) Thanks for the idea. You will

Re: setting query in PerlTransHandler

2000-01-09 Thread Randal L. Schwartz
but I bet you have to do this instead: $r->uri("/articles/index.html"); $r->args("id=$id"); By the time the apache-request object has been created, args are handled in a separate slot. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777

Re: Dedicated dynamic content servers...

2000-01-09 Thread Randal L. Schwartz
he filename or Sean> set the file name to /dev/zero? You should be able to return OK from your own pushed AccessHandler, which should prevent the core modules from doing an .htaccess lookup based on $r->filename. Something like: $r->push_handlers( PerlAccessHandler => sub { ret

Re: Apache::Registry and -M

2000-01-12 Thread Randal L. Schwartz
if $old == $new; # safety $mtime{$file} = -M $file; return 1; } sub import { my $file = (caller)[1]; ## Apache->server->log->notice("$$ is importing ",__PACKAGE__," into $file"); $mtime{$file} = -M $file; } BEGIN {

Re: problems with module at root of web site

2000-01-12 Thread Randal L. Schwartz
re's an error. Sean> The advantage to doing it this way is: Sean> a) this was what apache was designed for (multiple phases) Sean> b) allows other handlers to kick in before you build the response Sean> (such as mod_access) Absolutely. -- Randal L. Schwartz - Stone

Re: problems with module at root of web site

2000-01-12 Thread Randal L. Schwartz
n hearing about your past experience. I think if you already set the handler, then when it comes to MIME-checking phase, you get a quick no-op. Thus, having the Trans phase set the handler is going to be much faster. My guess. Try it and see. -- Randal L. Schwartz - Stonehenge Consulting Servic

Re: problems with module at root of web site

2000-01-12 Thread Randal L. Schwartz
>>>>> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> Or a variation of that, that I like... set up a TransHandler like this: Randal> sub handler { # PerlTransHandler Randal> return DECLINED unless $r->uri eq "/"

Re: Eagle Book: navbar

2000-01-14 Thread Randal L. Schwartz
as well. Durn this writing thing! "Writing is hard!" -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: Testing for the '..' directory in access handlers... (directory testing 101)

2000-01-16 Thread Randal L. Schwartz
urn HTTP_NOT_ACCEPTABLE if grep $_ eq "..", split /\//, $uri; Then "foo..bar" is OK, as is ".foo". Of course, I reject ".ANYTHING" in my access handler, but that's up to you. :) Also, I noticed that "fancyindexing" uses "/foo/bar/bletch

Re: overriding document root dynamically?

2000-01-28 Thread Randal L. Schwartz
.pl line 41 Jonathan> so document_root ain't writable. I think you can get the same effect by *ignoring* the document root. Just set $r->filename($whatever), and return OK from the handler. Then the default handler won't do the URI-to-filename translation, and everybody goes home h

Re: overriding document root dynamically?

2000-01-28 Thread Randal L. Schwartz
nathan> to have to reimplement Apache's entire default file handler Jonathan> in Perl. I don't think you need to. I think only the Trans handlers need to worry about docroot. Of course, I'm possibly wrong. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1

Re: Novel technique for dynamic web page generation

2000-01-28 Thread Randal L. Schwartz
ser? It's a speedy little beasty. I dare say probably faster than even expat-based XML::Parser because it doesn't do quite as much. Available at fine CPANs near you. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.st

Re: RFD: comp.infosystems.www.modperl

2000-02-03 Thread Randal L. Schwartz
oup. That has not yet happened. In fact, the creation of a newsgroup would cause the *dilution* of expert eyeball time on a given issue, and would therefore be *detrimental* to the mod_perl community, because some experts would choose to read only the mailing list, and others would choose t

Re: RFD: comp.infosystems.www.modperl

2000-02-03 Thread Randal L. Schwartz
>>>>> "John" == John Siracusa <[EMAIL PROTECTED]> writes: John> OTOH, it's a lot easier to track and respond to particular John> issues/problems in a threaded setting like Usenet. Hmm. Get a threaded mailreader. It certainly changed my mail readin

Re: Pattern Matching kills loops?

2000-02-08 Thread Randal L. Schwartz
f (/(\d+):([0-9,]*):(.*)/) { $id = $1; $temp = $2; $name = $3; ... use variables ... } But this is probably preferred: if (($id, $temp, $name) = /(\d+):([0-9,]*):(.*)/) { ... use variables ...

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

2000-02-08 Thread Randal L. Schwartz
e this? Am I heading down a dark damp tunnel? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

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

2000-02-09 Thread Randal L. Schwartz
>>>>> "Bill" == Bill Jones <[EMAIL PROTECTED]> writes: >> From: [EMAIL PROTECTED] (Randal L. Schwartz) >> The docs hint that I can use whatever I would put after ErrorDocument >> as the arg to custom_response, but also suggest that I can put &

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

2000-02-09 Thread Randal L. Schwartz
space when I could have provided the handler as a subroutine though. Everything else seems to permit me to just hook on this coderef when this other thing happens. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.ston

Re: PerlChildInitHandler

2000-02-14 Thread Randal L. Schwartz
_, "", (mod_perl::hook($_) ? "Enabled" : "Disabled"), "\n" } mod_perl::hooks()), ""; map is your friend. Of course, this would have been even simpler with CGI.pm HTML generators. :) -- Randal L. Schwartz - Stone

Re: PerlChildInitHandler

2000-02-14 Thread Randal L. Schwartz
refers the the other. TIMTWOTDI. As for the array ref, this is easy: return ["", (map ...), ""]; :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security c

Re: [admin] NO HTML posts please!

2000-03-30 Thread Randal L. Schwartz
>>>>> "Angel" == Angel R Rivera <[EMAIL PROTECTED]> writes: Angel> how about avoiding the me toos... Yeah, and the people that post "upside down", with the answer *before* the question! Definitely. Let's avoid those. -- Randal L. Schwartz -

Re: [admin] NO HTML posts please!

2000-03-30 Thread Randal L. Schwartz
> "Doug" == Doug MacEachern <[EMAIL PROTECTED]> writes: Doug> esrever ni snoitseuq gnirewsna diova esaelp dna ($_ = < http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl tra

Re: [RFC] holding a mod_perl conference

2000-03-31 Thread Randal L. Schwartz
of TPC. I *know* that ORA is not raking in any dough from the conference. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTra

Re: [RFC] holding a mod_perl conference

2000-03-31 Thread Randal L. Schwartz
conference in Vegas." Vivek> Good point. Let's move the conferences to Grand Cayman, then, since I Vivek> just spent a week familiarizing myself with it ;-) And the weather Vivek> there is excellent... Well, then I won't be able to go, since I'm still on probation, and c

Re: Custom $SIG{__DIE__} problem (and "I'm glad to be back")

2000-04-04 Thread Randal L. Schwartz
not get made. You also don't need the $main:: because %SIG (actually *SIG) is forced to main::. Just another couple of Perl tips from someone who wrangles Perl all day every day... :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]>

Re: [slightly OT] Problem with cookies

2000-04-07 Thread Randal L. Schwartz
have solved the problem. Except that this requires HTTP/1.1. Anyone that doesn't send the "host:" header goes into a permanent redirect loop. So the "problems" you're not seeing are probably from the people out there that can't get to your site to report

Re: [slightly OT] Problem with cookies

2000-04-07 Thread Randal L. Schwartz
m, as well as any future ones, and I can Drew> just be done with this stupid cookie problem! You just made my night better Drew> (and my morning too)! But please see my followup before you implement it. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[E

Re: [OT][General Programming] Key Generator sub

2000-04-07 Thread Randal L. Schwartz
thing* there, especially not the "map in a void context". :) Or maybe there's some other "Randal Schwartz" you copied from. "Wasn't me!" -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.st

Re: [slightly OT] Problem with cookies

2000-04-07 Thread Randal L. Schwartz
is that you must allow for an unspoken "Host:" header to fall through to a generic v-host. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: [slightly OT] Problem with cookies

2000-04-07 Thread Randal L. Schwartz
quot;. And certainly, browsers that handled HTTP/1.0 had cookies. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: [slightly OT] Problem with cookies

2000-04-08 Thread Randal L. Schwartz
send that header? What if one of those browsers were a web indexer for AltaVista or Infoseek? Do you really want that many people to not find out about your site? It's not about browsers, sir. It's about the web-dexers. If you aren't writing for that market, you are missing a HUGE set

Re: [slightly OT] Problem with cookies

2000-04-08 Thread Randal L. Schwartz
cookie support came after 1.1. It wouldn't matter if it came *after* or *before*, unless you think there's only one timeline relevant. There are many timelines. There are "browsers" being written today that don't support "host:". See my other comment about &qu

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-20 Thread Randal L. Schwartz
>>>>> "Doug" == Doug MacEachern <[EMAIL PROTECTED]> writes: Doug> why all the globals?? symbol table lookups are much slower than Doug> lexicals. If I recall, the word lately is that they're much closer than they were. But lexicals are still "

Re: DBILogger Error Status Codes

2000-04-21 Thread Randal L. Schwartz
done this. Yes. The Stonehenge::DBILog that I put into WebTechniques last month doesn't do that, because it gets the URI not from $r->uri but from the second word of splitting $r->the_request on whitespace. You might consider that change. (I figured this out by looking at the C co

Re: DBILogger Error Status Codes

2000-04-21 Thread Randal L. Schwartz
rvice Provider. :) But, seeing as my stuff seems to be getting used, even in absence of my included docs, maybe I should just get the docs done and get'em out there. I could even put them in the CPAN then. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[

Re: DBILogger Error Status Codes

2000-04-21 Thread Randal L. Schwartz
>>>>> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes: Matt> On 21 Apr 2000, (Randal L. Schwartz) wrote: Matt> and I'd be Matt> interested in seeing Stonehenge::Reload, but I don't fancy Matt> searching the archives of this list (which yo

Re: DBILogger Error Status Codes

2000-04-21 Thread Randal L. Schwartz
>>>>> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes: Matt> On 21 Apr 2000, (Randal L. Schwartz) wrote: >> Just in case you missed it... (but notice, no instructions!): >> >> package Stonehenge::Reload; Matt> Thanks! Matt> When

Re: gensym()

2000-04-24 Thread Randal L. Schwartz
x = 'FH'; print $x 'hello') these days, we'd hope. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: PerlHandler stopped working???

2000-04-25 Thread Randal L. Schwartz
I'm going with this. Bring the MIME type to mean both the "real" mime type as well as a PerlHandler if needed. I'm sure it's a 15 line FixupHandler... just haven't had time to tear down part of my site to test. :) -- Randal L. Schwartz - Stonehenge Consulting Se

Re: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Randal L. Schwartz
enly write: print system "foo"; instead of print `foo`; but of course they should have written: system "foo"; instead. As to why it's not happening in an Apache::Registry script, I cannot say. -- Randal L. Schwartz - Stonehenge Consulting S

Re: mod_perl training companies?

2002-03-25 Thread Randal L. Schwartz
ny. We don't have any courses off-the-rack. But we custom build anything, and have in the past. The problem with on-site mod_perl training is that every customer will be different. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http:

Re: mod_perl training companies?

2002-03-25 Thread Randal L. Schwartz
t marketing, however. It probably all needs rewriting. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: Permission conflict between mod_cgi and mod_perl

2002-03-25 Thread Randal L. Schwartz
ent, because when it doesn't work, it looks like something is broken. :) Thus, the answer is no - mod_perl cannot "run" a setuid perl program, unless you mean by forking via fork or system or backticks, which defeats the whole point of mod_perl handlers. -- Randal L. Schwartz -

Re: Permission conflict between mod_cgi and mod_perl

2002-03-25 Thread Randal L. Schwartz
at all. And the distinction is important, especially in the context of this discussion (setuid with "mod_perl"). -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting

Re: Throttling, once again

2002-04-25 Thread Randal L. Schwartz
o >> monitor bandwidth usage http://www.cohprog.com/mod_bandwidth.html Christian> The size of the data sent through the pipe doesn't reflect the CPU spent to Christian> produce that data. mod_bandwidth probably doesn't apply in the current Christian> scenario being discuss

Re: Using a 404 ErrorDocument to serve content

2002-05-06 Thread Randal L. Schwartz
ts... should be the first or second one. After 160 columns, I'm starting to really wonder what there is LEFT to cover. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consult

Re: [RFC] Dynamic image generator handler

2002-05-10 Thread Randal L. Schwartz
images, cache Michael> them, and present them to browser clients. The URI, as well Michael> as Apache configuration directives, is used to determine what Michael> is to be generated. Like <http://www.stonehenge.com/merlyn/LinuxMag/col33.html> perhaps? Been there, Done that

Re: How to proxy everything except selected urls?

2002-05-22 Thread Randal L. Schwartz
ictures/ to work with images that had spaces in the filenames as well as question marks and ampersands. :) Talk about escaping hell. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: Porting to OS X

2002-06-04 Thread Randal L. Schwartz
. I have a separate HFS+ partition for Classic Apps. The downside is that some of the files are not accessible to Classic apps, but as more and more stuff gets at least Carbonized, I'm not really that worried. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Re: PerlTransHandler problem

2002-06-12 Thread Randal L. Schwartz
s $r->uri is concerned. What are you *really* trying to do? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: when to mod_perl?

2002-06-25 Thread Randal L. Schwartz
ver starts getting higher, I can cache the expensive menubar creation (which is nearly completely static) using Perrin's device, but I've not bothered yet. It's been amazingly carefree. I'm planning to move www.geekcruises.com to be served on the same box, although they get only about 1/

Re: when to mod_perl?

2002-06-25 Thread Randal L. Schwartz
really smart, I'd use mod_expires to say "this image is good for $N hours", and then the front end wouldn't even touch the back end at all. As I said, as long as my loadav is low enough for my current hits, I've got better things to work on. :) -- Randal L. Schwartz - Sto

Re: Optional HTTP Authentication ?

2002-06-30 Thread Randal L. Schwartz
have to use HTTP authentication... Even though the user/password is transmitted *in the clear* on *every single hit*, because you can't just use a session identifier? This is so very wrong from a security perspective. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Re: sections

2002-07-08 Thread Randal L. Schwartz
erver=proxy < $< > $@ then check [% IF server = 'pages'; ... ; END %] in your templates. Make httpd.conf be simply: Include httpd.conf.pages Include httpd.conf.proxy Include httpd.conf.other

Re: sections

2002-07-08 Thread Randal L. Schwartz
>>>>> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> using Template Toolkit. Easy'nuff. Lots of common stuff, plus unique Randal> stuff. You can use "tpage" and then there's not even any programming:

Re: ANNOUNCE: the new perl.apache.org is alive now!

2002-07-12 Thread Randal L. Schwartz
etc... Perhaps live sites is a more Matt> framework specific thing (for example AxKit has its own list). Oh, and add Template Toolkit (www.tt2.org) to that list. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
>>>>> "Richard" == Richard Clarke <[EMAIL PROTECTED]> writes: Richard> List, Richard> http://www.newsfactor.com/perl/story/19716.html Richard> ...sigh? mod_perl is still in the bucket of clues that they didn't dip in to. -- Randal L. Schwartz -

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
team Heh! Apache::Cookie=SCALAR(0x....) Even in the refresh header! That's just too funny. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Co

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
org/~merlyn/journal/8445>, the article just got pulled! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
y, they're comparing Perl-CGI with PHP, not mod_perl/$templating_system with PHP, which would be a much fairer comparison. As I've said in this forum before: PHP is "training wheels without the bicycle". -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 5

Re: [OTish] Version Control?

2002-10-30 Thread Randal L. Schwartz
tonehenge.com/merlyn/LinuxMag/col38.html> -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: [OTish] Version Control?

2002-10-30 Thread Randal L. Schwartz
ods, processed into HTML and listing files sbin/ - apache sbin, contains log-roller and apachectl generate-navbars - process META info to make navbar database run-template - described in article GNUmakefile - "One File To Rule Them All" And yes, I can check the puppy out, edit and test i

Re: [O] Re: Yahoo is moving to PHP ??

2002-10-31 Thread Randal L. Schwartz
; still using the C-like construct. I guess it's rather low. >> Mike> But is a lot easier to read and debug, IMHO Is there a Mike> significant performance difference in using map instead? He said "C-like for". Your "for" is probably a "foreach",

Re: [OT]: In my Farthers House there are many mansions

2002-11-03 Thread Randal L. Schwartz
ows the whole thing to be written in one Tony> command, without lots of temporary variables. Exactly. You're caching the complex sort-function so that it doesn't need to be recomputed for the various pairings, leading to either a slowdown or phase errors. -- Randal L. Schwartz - Ston

Re: [O] Re: Yahoo is moving to PHP ??

2002-11-04 Thread Randal L. Schwartz
in an environment that is more Perl-centric, I expand the Perrin> vocabulary of my code more. This is the position we support during our code review services as well. You can use fancy stuff, but be sure to point to where you learned it. :) -- Randal L. Schwartz - Stonehenge Consulting Serv

Re: Apache 2?

2002-11-26 Thread Randal L. Schwartz
ld save memory. Yeah, I did this to stonehenge.com about five months ago, and am now handling about 3-4 times the traffic for the same loadav. All on one machine. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/me

Re: Connection Pooling / TP Monitor

2000-10-27 Thread Randal L. Schwartz
rd to do and you'd gain in all Tim> sorts of ways. You could also use SOAP or SOAP::Lite as the interface. Most of that code seems ready for this kind of application already. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://

Re: Putting together the TPC mod_perl track

2000-11-13 Thread Randal L. Schwartz
and I bill myself as a "technical comedian". Humor helps the learning process, as long as it isn't used to distract people from poor materials. So we work hard at putting good quality into the materials first, and then adding the layer of humor at the right moments. -- Randal L. Schwartz

Re: [ANNOUNCE] ApacheCon USA 2001: Call For Papers

2000-11-14 Thread Randal L. Schwartz
rom my WT columns? In fact, would a paper be the equivalent of a column, but presented live? Sorry for my ignorance, but I've only been on the voting end, never the proposing end. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://

Re: [ANNOUNCE] ApacheCon USA 2001: Call For Papers

2000-11-15 Thread Randal L. Schwartz
y dependent on regular expressions and special operators... how could anything like that ever catch on? {grin} -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consultin

Re: security suggestion

2000-11-17 Thread Randal L. Schwartz
hen they want your added functionality, all they can do is call your interfaces using the mini-Toolkit language embedded in their files. And they get a slick templating system for free! Best of both worlds. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL

Re: security suggestion

2000-11-17 Thread Randal L. Schwartz
e. So mod_perl is inherently unsafe. Either you have access to Perl, or you don't. And when you don't, you might as well invent a meta-API, like the one I suggested with Template Toolkit. You can't use the generic tools... they're too powerful. -- Randal L. Schwartz -

Re: CGI scripts & mod_perl

2000-11-19 Thread Randal L. Schwartz
you have to play by a number of useful and documented rules. When you're *really* good with mod_perl, you abandon Apache::Registry and move up to writing handlers or using embedded templating systems like EmbPerl, Mason, or Template Toolkit. -- Randal L. Schwartz - Stonehenge Consulting Servic

Re: replacing a directory specific legacy CGI

2000-11-27 Thread Randal L. Schwartz
STOP. Just write a module, define it as the handler for each of those directory contents, and you're done. Apache::Registry is meant as a stopgap until you learn to write real handlers. You've just now graduated. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +

Re: Wanted: Modperl/Mason consultant:

2000-11-30 Thread Randal L. Schwartz
you have to think intensely kind thoughts about me the entire time, and I get to bill for twice as many hours as I actually work, just like some lawyers do. :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merl

Re: More Speed -> mod_perl Module for HTML Compression

2000-11-30 Thread Randal L. Schwartz
Ken> mod_gzip, Apache::Compress, or Apache::Gzip are solutions here. Or even my cool compressing pre-forking tiny proxy at <http://www.stonehenge.com/merlyn/WebTechniques/col34.html> Neatly proxies, but sends compressed text across slow links if the browser understands that. -- Ran

Re: RFC: mod_perl advocacy project resurrection

2000-12-06 Thread Randal L. Schwartz
ion in any distinguishing way. I mean, until I can demonstrate that people with certs are likely to get hired faster or make more money, what's the point? As it is now, good mod_perl people are hard enough to find that the jobseeker already has the advantage. I'm very open to being co

mod_perl training (was Re: Certification)

2000-12-07 Thread Randal L. Schwartz
#x27;m a small business. I can't absorb training at a loss for very long. Hope that helps you see what you need to tell me to get me to do this. (nudge nudge) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/

Re: Mod_perl vs mod_php

2000-12-12 Thread Randal L. Schwartz
th, and you can probably always come up with enough variance that you can make benchmarks show whatever you want them to show. Given *that*, what's your real question? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.sto

Re: Mod_perl vs mod_php

2000-12-12 Thread Randal L. Schwartz
nd dependency tracking, instead of which one executes a useless static page faster? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlT

Re: Mod_perl tutorials

2000-12-13 Thread Randal L. Schwartz
y really also belong on perl.apache.org, unless take23 is supposed to be taking over that responsibility, or unless take23 will have a VERY PROMINENT link on perl.apache.org. "take23" doesn't mean anything for me with respect to "mod_perl" by the way. Is there a secret handshak

Re: Mod_perl tutorials

2000-12-13 Thread Randal L. Schwartz
>>>>> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes: Matt> On 13 Dec 2000, (Randal L. Schwartz) wrote: >> They really also belong on perl.apache.org, unless take23 is supposed >> to be taking over that responsibility, or unless take23 will ha

Re: Mod_perl tutorials

2000-12-13 Thread Randal L. Schwartz
e much better. /me scuffles off to register no-args.org now... :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraini

Re: Mod_perl tutorials

2000-12-13 Thread Randal L. Schwartz
c. :) But when Darwin finalizes, that'll probably be a moot point, presuming someone compiles StarOffice for Darwin. However, a better format for interchange would almost certainly be something like XML or (horrors) POD. A text-ish format would make diffs from CVS make more sense anyway. -- Ra

Re: Mod_perl tutorials

2000-12-14 Thread Randal L. Schwartz
n that maybe you thought I was multiple people. :) But I'm cool with the name as long as there's a prominent link of "why 'take23'?" somewhere up front, so that others can learn why as well. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777

Re: [OT]: Open Source ... was Re: Advocacy idea ...

2000-12-14 Thread Randal L. Schwartz
/ Yeah, 2.5 column ideas a month. Please, if you have ideas, let me know! Get your name in print in a 100K+ circulation magazine! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security c

Re: Mod_perl tutorials

2000-12-14 Thread Randal L. Schwartz
;. Maybe we could do something like that here. META COMMENT... Maybe it's time we spun off a mailing list for this discussion, unless it's still interesting to the rest of the onlookers. Anyone care to host it or take that on? -- Randal L. Schwartz - Stonehenge Consulting Ser

Re: mod_perl training

2000-12-20 Thread Randal L. Schwartz
our development team based in part on the what I've heard recently. We can't make any announcements just yet, but I hope you'll be pleased when we do. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/mer

Re: experience on modperl-killing "vacuum bots"

2000-12-20 Thread Randal L. Schwartz
sty. A Perl bot that basically sucks full speed. Evil. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

<    1   2   3   >