Re: Stonehenge::Throttle (or: using mod_perl to keep evil visitors away)

2007-04-11 Thread Jonathan Vanasco
p evil visitors away? Preferably using heuristics rather than a black list of bad IP addresses. Martijn // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web

Re: 200 vhosts, 5 sets of libs, 2GB RAM, 1 httpd (seeking advice)

2007-04-11 Thread Jonathan Vanasco
of testing systems. thats kind of insane. c- for dev stuff, you're often better using 1 or two httpds MAX. its damn crazy trying to debug otherwise. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Fin

graceful stop?

2007-04-12 Thread Jonathan Swartz
I'm wondering if anyone uses Apache's graceful stop feature (http:// httpd.apache.org/docs/2.2/stopping.html#gracefulstop) with mod_perl servers. The mod_perl guide section on starting and stopping (http:// perl.apache.org/docs/general/control/ control.html#Safe_Code_Updates_on_a_Live_Produc

apreq issues - test fail + no uploads

2007-04-12 Thread Jonathan Vanasco
I'm having an issue with libapreq2 on my dev machine. I haven't used it in a while, so I reinstalled to make sure that I'm on the latest. First off, on the reinstall of libapreq2, I'm getting an error on make test: ( osx 10.4.9 ) perl -MTest::Harness -e 'runtests(@ARG

Re: apreq issues - test fail + no uploads

2007-04-12 Thread Jonathan Vanasco
On Apr 12, 2007, at 8:36 PM, Jonathan Vanasco wrote: I tried to figure out the error, but couldn't discern it. i found the error: $export HARNESS_VERBOSE='1' not ok 36 - apreq_decode(expect, &elen, src3, sizeof(src3) -1) == APR_SUCCESS, as integers # at (ut

Location Bug ?

2007-04-15 Thread Jonathan Vanasco
I realized an issue with Location today: $self->PageUser->ApacheRequest->headers_out->set( Location => 'http:// www.domain.com?a=b,c,d' ) will only return the location as http://www.domain.com?a=b which makes sense as , is a reserved character unfortunately, not all websites 'play by

Re: Growing Up

2007-04-16 Thread Jonathan Vanasco
xtra NIC. at 3-4 you'll want a lan. this is generic info -- i use it with all my projects( 60% mp/pg , 20% php/pg , 20% python/pg ), and i have friends using similar stuff in php/mysql , erlang/pg , python/pg , rails/mysql // Jonathan Vanasco | - - - - -

Re: Growing Up

2007-04-17 Thread Jonathan Vanasco
sider using amazon's s3 for mass storage with a CDN for distribution. ( i'm constantly told that s3 has uptime/access issues -- your data is safe, but it might not be accessible for an hour ). using a combo of the two gives you rel

Re: Growing Up

2007-04-18 Thread Jonathan Vanasco
decent option to delay running out and buying a couple of dedicated firewall boxes with gigabit to run as your gateway. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: version checking

2007-04-25 Thread Jonathan Vanasco
On Apr 25, 2007, at 8:13 AM, Carl Johnstone wrote: RHEL5 comes with mod_perl 2.0.2, perl 5.8.8 and apache 2.2.3 so it's *nearly* up to date! =item 2.0.3 November 28, 2006 =item 2.0.2 - October 20, 2005 considering that its April 2007, i think using 2.03 and compiling from source is the b

Re: Are RHEL 3.0 & mod_perl 2.0.x compatible?

2007-04-25 Thread Jonathan Vanasco
On Apr 25, 2007, at 4:48 PM, Dylan Tynan wrote: Hi folks, Been a few years since I've worked on mod_perl & I could use a helping hand. Does anyone know if RHEL 3.0 and mod_perl 2.0.x (like 2.0.2) are more or less compatible? RHEL 3.0 ships with that semi-mutant 1.99 development track m

Re: Perl and ASP.Net

2007-04-25 Thread Jonathan Vanasco
On Apr 25, 2007, at 3:21 PM, Michael Peters wrote: Clinton Gormley wrote: code, it's own CSS , it's own images! There should be a well established usage pattern so someone just downloads the grid module, run the installer and it puts all the files in 'right' places. Of course, it's not possibl

Re: regex quickie

2007-04-26 Thread Jonathan Vanasco
dispatcher( 'google.com' ); dispatcher( 'google.com/?q=test' ); still very dirtry -- i prefer putting refs in the dispatch, or class method names. but that shows you a quick way to catch the q var and pass it to your function using Andy's example :)

Re: regex quickie

2007-04-26 Thread Jonathan Vanasco
pass that to the handlers - it's the per site handlers that should know how to extract the query. IMO of course :) Completely agreed. In his example though , they all fetched with q . per-domain handlers are definitely more appropriate though. // Jonath

Re: Errors going to the main apache servers log and not my virtual host

2007-04-26 Thread Jonathan Vanasco
If i recall correctly, different types of errors go to different logs... so some stuff will go to the main apache server log, and others will go to the vhost i can't remember which errors go where though - i always tail both files during development.

Re: Perl and ASP.Net

2007-04-26 Thread Jonathan Vanasco
On Apr 26, 2007, at 6:05 PM, Michael Peters wrote: I don't really know of a good one that has a nice matrix like view for a comparison. And any that do are way out of date. Like any framework, it really depends on what you want. Do you want it to smooth over some of Javascript's rougher ed

ENV

2007-04-27 Thread Jonathan Vanasco
Is there a way to get additional shell variables exported into ENV on startup ? // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity

Re: ENV

2007-04-30 Thread Jonathan Vanasco
On Apr 30, 2007, at 1:39 PM, Frank Wiles wrote: Is there a way to get additional shell variables exported into ENV on startup ? Do you mean the PerlSetEnv and PerlPassEnv directives? I guess PerlPassEnv will do... I only knew about PerlSetEnv . But I really want to keep this out of th

Re: Perl and ASP.Net

2007-04-30 Thread Jonathan Vanasco
On Apr 30, 2007, at 2:47 PM, Boysenberry Payne wrote: Currently, without something like cpan for JS and with most of our administration tasks being handled via Actionscript in the client browser I'm probably going to take my time and continue writing most of my JS; most of it is pretty

Re: ENV

2007-04-30 Thread Jonathan Vanasco
On Apr 30, 2007, at 2:22 PM, Frank Wiles wrote: I haven't tired this, but don't see why it wouldn't work. Can't you just do: $ENV{'foo'} = 'bar'; in your startup.pl? That works, but thats not what i want. I want to stuff shell env variables into the perl env hash... I want s

location

2007-05-02 Thread Jonathan Vanasco
I'm cleaning up some code for a dispatch class I wrote, and got very confused: I found that i was accessing location from $r ( ApacheRequestReq Object ) location isn't a documented function of $r though. why is that working for me ?

Re: location

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 2:54 AM, Torsten Foertsch wrote: http://perl.apache.org/docs/2.0/api/Apache2/ RequestUtil.html#C_location_ Thats even odder... $r is a RequestRec, not RequestUtil And according to those docs, RequestUtil ISA RequestRec , not the other way around. location really shoul

Re: location

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 10:54 AM, Torsten Foertsch wrote: You see the location function is created directly in the Apache2::RequestRec namespace (the PACKAGE = ...). The perl equivalent would be a file named Apache2/RequestUtil.pm that starts with a "package Apache2::RequestRec" line. When you

request for comments - ApacheRequest Builder

2007-05-03 Thread Jonathan Vanasco
Last night I standardized out some redundant code in my framework implementations to be a standardized package Its fairly simple in function: It creates conservative defaults for ApacheRequest objects ( no uploads, 10k max ) You register URIs with it on startup to enable uploads / upgrade

Re: location

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 12:43 PM, Torsten Foertsch wrote: Note that all these functions are methods of the $r object. oh! ok, now i see. that makes total sense. i thought i had to access these methods via their own packages, not that they were exported into the ApacheRequestRec class.

Apache::Request question

2007-05-03 Thread Jonathan Vanasco
seems to be valid calls doesn't make sense: Missing input data / Unknown error -- those look like errors to me. but they're not. The only way I can seem to pull an actual error is accessng the body/ param directly , and ignoring the object. So :

Re: Apache::Request question

2007-05-03 Thread Jonathan Mangin
Sorry, I don't know the answer. My little testing on Solaris gives me similar results, and I'd like to back up your request. - Original Message - From: "Jonathan Vanasco" <[EMAIL PROTECTED]> To: "modperl mod_perl" Sent: Thursday, May 03, 2007 3:09

Re: Apache::Request question

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 9:19 PM, Joe Schaefer wrote: Here's what I was alluding to on apreq-dev when you asked about it: that code makes sense... it makes me wonder more though: a) what's the deal with Missing input data Unknown Error : 0 are thos

Re: Apache::Request question

2007-05-03 Thread Jonathan Vanasco
On May 3, 2007, at 9:44 PM, Joe Schaefer wrote: The "Unknown Error" string is operating system dependent. On my linux box it would be reported as "Success", since the error code in any case is 0. "Missing input data" comes from the apreq ala APR::Request::Error::NODATA, and counts as a trivial

Re: Help with sending custom headers in mod_perl2

2007-05-04 Thread Jonathan Vanasco
movie / loadvariables ) will not // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | SyndiClic

Re: Help with $r being corrupted

2007-05-04 Thread Jonathan Vanasco
On May 4, 2007, at 8:02 PM, Victor Danilchenko wrote: I am not sure if it's the same type of error, but the idea of recording the PID is a great one -- if it is the problem, then forcing the error-prone child to commit suicide might indeed be the answer. I will add it to the error reporti

Re: Global question

2007-05-07 Thread Jonathan Vanasco
On May 7, 2007, at 11:26 AM, Perrin Harkins wrote: Of course, the problem with using a database to get the lists (besides the lists being the result of a munge), is that they are rather large. Ideally you would load only the part you need, rather than the whole thing. A local shared stora

Re: Global question

2007-05-07 Thread Jonathan Vanasco
On May 7, 2007, at 11:59 AM, Perrin Harkins wrote: Storable is fast, but not using it is considerably faster. There's no need to use it for storing simple strings. BerkeleyDB does shared memory caching, so commonly accessed data doesn't need to go to disk. Ah, I reread the post. I saw "lar

Re: Global question

2007-05-07 Thread Jonathan Vanasco
gards to this functionality -- but its something that has made me wary of mysql for anything that is needed on a per-page basis unless i'm already using sesisons on that page. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: Global question

2007-05-07 Thread Jonathan Vanasco
On May 7, 2007, at 2:01 PM, Perrin Harkins wrote: It does when you shut down the BDB "environment", but there's no reason to do that unless your processes are exiting. ah, that makes sense. so long as one process has bdb running, its there's a shared bdb memory section. Blocking? You me

Re: Apache::DBI - Can two different connection handles have the same reference/address at different times?

2007-05-07 Thread Jonathan Vanasco
1= connect( A ); $db2= connect( A ); will both use the same handle. use Apache::DBI ; $db1= connect( A ); $db2= connect( A,B ); will both use different handles // Jonath

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-10 Thread Jonathan Vanasco
On May 10, 2007, at 6:25 PM, Lionel MARTIN wrote: So, to sum up, if I have got 10 different scripts in a mod perl environment (let's call them test1.pltest10.pl), and using lexical variables there. If I first run test1.pl and then, run test2.pl, the only way for test2.p to get access to

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-10 Thread Jonathan Vanasco
On May 10, 2007, at 6:52 PM, Andy Armstrong wrote: On 10 May 2007, at 23:48, Jonathan Vanasco wrote: that also means that variables are sticky -- if you change something from $a= "b" to $a.= "b" , you'll see the var appending b on every iteration No you don

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-11 Thread Jonathan Vanasco
On May 11, 2007, at 12:57 PM, Lionel MARTIN wrote: I don't have any clear situations right here in mind, but we could imagine many: -for example, a bulletin board system, where you are retrieving posted message from a DB. Each message could weigh several dozens of kilo. (especially if you

Re: Help with Manual removal of libapreq2

2007-05-14 Thread Jonathan Vanasco
or looks like your code is creating an APR::Request object, but you haven't had 'use APR::Request' in your code yet. that kind of error tends to create messages like that. I'd try just tossing in a use line

Re: Both mod_perl 1 and 2 on same machine

2007-05-15 Thread Jonathan Vanasco
u a ton of headaches in the future -- best now to plan ahead and minimize them // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Synd

Re: Both mod_perl 1 and 2 on same machine

2007-05-15 Thread Jonathan Vanasco
won't detect that you're running under mod_perl by trying to use 'Apache2' instead of looking at $ENV, but that's a different story... Doesn't the mp2 installation require the removal of all mp1

stupid optimization question

2007-05-17 Thread Jonathan Vanasco
I apologize for the stupidity of this in advance-- its just something that I thought of in relation to mod_perl after starting a discussion on perlmonks about use constant vs sub(){} ... does anyone know if there is a memory/other difference under mod_perl for sub a {

Re: stupid optimization question

2007-05-17 Thread Jonathan Vanasco
I'd be happy. This brings up another point... does anyone know about memory allocation with eval and closures ? are these essentially the same? my $a= 10; vs. eval { my $a= 10; } or is new memory allocated each

Re: stupid optimization question

2007-05-17 Thread Jonathan Vanasco
On May 17, 2007, at 12:59 PM, Perrin Harkins wrote: I think you've found the dumbest and tiniest here. I'd suggest looking anywhere else. There's probably something in your database config that could be tweaked to make more difference than this. i'm pretty sure I have too. database has been

Re: Global question

2007-05-19 Thread Jonathan Vanasco
f all, I wouldn't feed a tied hash to my neighbor's dog. It's slower than method calls, and more confusing. There are lots of things you could do here, but it's not clear to me what it is that you don't like about your current method. Is

Re: mod_perl not loading into apache error.

2007-05-21 Thread Jonathan Vanasco
about compiling from source, but I can tell you that there is a package in Ubuntu Universal that compiles fine. I would suggest using that until you have some spare time to try and track down the problem with your source compile // Jonathan Va

Re: mod_perl not loading into apache error.

2007-05-22 Thread Jonathan Vanasco
On May 22, 2007, at 2:49 AM, Nick Pron wrote: John, Thanks for the reply but using packages is not an option. I always compile from source myself, but I often find it helpful to install a package first. it sounds counter intuitive... but on a lot of the minimal installs for debian/ubuntu/f

Re: segmentation fault.

2007-05-23 Thread Jonathan Vanasco
This happened to me once (actually many times, but I figured out my approach on the first time), I could only figure out one way to handle it, and its been the one thing I hate about perl ever since (as I know there HAS to be a bettter way ) What I do: package MyApp::Debug;

Re: sharing data structures between scripts (forms)

2007-05-23 Thread Jonathan Vanasco
ot the right forum, but I am using mod_perl! Many thanks, Happy Star Wars 30th! -Mark // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

apreq overlimit requests tie up modperl

2007-05-24 Thread Jonathan Vanasco
I'm having an issue with libapreq overlimit issues: if i set the limit to 200k and post a 250k file, the following expected things happen: • I can catch the apreq error my $apr_error= $self->ApacheRequest->body_status(); if ( $apr_error eq 'Exceeds c

Re: sharing data structures between scripts (forms)

2007-05-24 Thread Jonathan Vanasco
So, my *new* question is, (and I've got the hardcopy of the mod perl book so if theres a chapter I need to read, just point it out) i'd read the book - sit down and spend 2-4 hours skimming through it. all of your questions are answered in it, and it explains the architecture much more

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Jonathan Vanasco
owser message "your file is too big") Safari: The request 'hangs'. It spins forever, nothing happens. Firefox: I get a "The connection was reset" message from firefox Does that make sense to anyone ? does anyone have a suggestion o

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Jonathan Vanasco
Content-Length header (546500) exceeds configured max_body limit (20) 3s to display error: Content-Length header (72727196) exceeds configured max_body limit (20) 6s to display error: Content-Length header (670108355) exceeds configured max_body limit (20)

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Jonathan Vanasco
turns out that it wasn't a hang in mod_perl.. it just seemed like it. The browser was hanging , mp was processing everything fine. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |

Re: problem calling a file under mod_perl2

2007-05-30 Thread Jonathan Vanasco
usage. that ends up in mod_perl being able to serve way more requests/second than before. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

OffTopic - Apache::Session causes "signal Bus error (10)" on delete

2007-05-30 Thread Jonathan Vanasco
this is happening on one of my dev boxes. has anyone encountered this before , and possibly have a clue as t what could be causing it ? it happened out of nowhere, and I can't seem to track down which module is causing it.

Re: mod_perl forking and DBD::Pg prepared statement problem

2007-05-31 Thread Jonathan Vanasco
rtual host? As pre-forking seems to be blamed in the few examples I could find with google. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | SyndiClick.com | - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: Dbi best practice question

2007-06-01 Thread Jonathan Vanasco
o it in startup i blieve db connections close/respawn when a child dies / is born ( ie maxrequests ) so you'll probably have to code for something to handle populating the statements. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - -

Re: asynchronous perl authentication!?

2007-06-03 Thread Jonathan Vanasco
lates the page. mod_perl can do whatever you want on the server-side, but you're looking at a client-side probelm. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: Failed to resolve handler

2007-06-04 Thread Jonathan Vanasco
2007] [error] Can't load Perl file: /usr/local/apache2/conf/startup.pl for server cabal:0, exiting... thoughts? append startup.pl with " 1; " it needs to return true ( return 1 ) like a standard perl module/package // J

Re: Weird problem - local variable appears to be available in 2 instances of mod-perl

2007-06-05 Thread Jonathan Vanasco
Steven- Variables in mod_perl are persistant - you need to make use of 'my' to reinitialize the variable on each suroutine call look for 'scoping' in the docs. there are several sections. consider the following, which is very likely what you have package handler; my $world; function hell

Re: how to implement input filter for easy way?

2007-06-05 Thread Jonathan Vanasco
rdir, mod_actions, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env, mod_charset, http_core " Respe

Re: mod_perl, html forms and unicode/utf-8

2007-06-05 Thread Jonathan Vanasco
On Jun 5, 2007, at 12:56 PM, John ORourke wrote: my $q=Apache2::Request->new($r); my $known_to_be_utf8 = $q->param('test'); # form post doesn't give charset, none assumed slightly off topic, my suggestion on implementation would be along the lines of this: package Context();

Re: Which template engine is best to create a perl site

2007-06-05 Thread Jonathan Vanasco
On Jun 5, 2007, at 2:54 PM, Perrin Harkins wrote: I think that's a pretty questionable claim. TT is faster than CGI::Ex::Template in normal use with mod_perl. CET is only faster if you use mod_cgi where TT can't do caching. HTML::Template::JIT compiles your entire template into a C program,

Re: Which template engine is best to create a perl site

2007-06-06 Thread Jonathan Vanasco
d negliblle when measured against the db blocking. i could have chosen a faster engine, but the speed wouldn't have mattered much in context, and I wouldn't have the portability that Petal offered me. So i went with petal, th

Re: Replacement for CGI.pm escape and unescape

2007-06-07 Thread Jonathan Vanasco
On Jun 7, 2007, at 9:57 AM, cfaust-dougot wrote: Hi All, I'm running the latest mp2 with Libapreq. Is there some method to duplicate CGI.pm's escape and unescape methods? I found escape_path, but obviously that isn't the same thing. I'm trying to remove CGI.pm from all my code and these a

Re: Apache Startup

2007-06-07 Thread Jonathan Vanasco
ut binding to STDOUT/STDERR to make sure that it can start.. then it automagically shuts down and restarts going through the whole process again. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | C

Re: asynchronous perl authentication!?

2007-06-07 Thread Jonathan Vanasco
0 if there is no login, 1 if they are logged in then have your js handle reading the var. its simple. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Net

Re: Replacement for CGI.pm escape and unescape

2007-06-07 Thread Jonathan Vanasco
On Jun 7, 2007, at 10:32 AM, Michael Peters wrote: Good for URI escaping, but that's not the same thing as HTML escaping, which is what CGI's escape/unescape do right? oh, my bad. then the module is HTML::Entities // Jonath

Re: asynchronous perl authentication!?

2007-06-07 Thread Jonathan Vanasco
based on the result as someone else chimed in, you just need to catch that via javascript. you'd probably be better off with a custom auth system though - they're not hard to make. // J

Re: Replacement for CGI.pm escape and unescape

2007-06-07 Thread Jonathan Vanasco
encode/unencode // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Networks | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |

Re: Odd difference between "restart" and "stop - start".

2007-06-08 Thread Jonathan Vanasco
a httpd -k start I don't have this problem. Then everything performs as expected. Why is this? Krist -- [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest sc

Re: MP2: Patches for two problems under OpenBSD

2007-06-09 Thread Jonathan Vanasco
On Jun 9, 2007, at 2:22 PM, Simon Bertrang wrote: The second thing i found was a missing character for a function name in Apache2::SizeLimit (bsd_size_check -> _bsd_size_check): $OpenBSD: patch-lib_Apache2_SizeLimit_pm,v 1.1 2007/06/09 17:55:01 simon Exp $ --- lib/Apache2/SizeLimit.pm.orig

Re: MP2: Patches for two problems under OpenBSD

2007-06-09 Thread Jonathan Vanasco
enbsd. i'm under freebsd, and question them. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: [mp2] The right way to use CGI parameters in a handler

2007-06-11 Thread Jonathan Vanasco
could give me a hint on how to implement it? could you print beforehand? 'print' might not be tied to the same output. this might not be right based on your compile. print 'foo: ' . $cgi->param('foo') . "\n"; try:

Re: Apache2::Request install

2007-06-13 Thread Jonathan Vanasco
On Jun 13, 2007, at 5:44 AM, Jeff Pang wrote: When I installed Apache2::Request (without make test) and rut it I got the errors: at the risk of stating the obvious... what happens why you run make test ? // Jonathan Vanasco

Re: Apache2::Request install

2007-06-13 Thread Jonathan Vanasco
l for long time.But couldn't upgrade to MP2 and Apache2::Request.:( apache drops to nobody, so thats fine. what was the error ? why did it fail ? // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

libapreq: end of file error, discard body request, and more fun

2007-06-13 Thread Jonathan Vanasco
ccess the data fine -- but i'll get a weird stall when an overlimit amount of data is posted does anyone have an idea how i can better test this to figure out wtf is going on ? // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: which module for this purpose?

2007-06-14 Thread Jonathan Vanasco
{filename}.cal"); which will let me turn a http://calendar/path/to/091231jhh?1238u13 into whatever i want for dynamic content. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - -

Re: TIPool

2007-06-15 Thread Jonathan Vanasco
dbpool. for a while i was using pgpool , which is an intermediary server to pool pg connections. i had 60 connections to pgpool, and 40 connections from pgpool the db. but then i got 2 gb more ram, and didn't need it. // Jonathan Va

Re: TIPool

2007-06-16 Thread Jonathan Vanasco
On Jun 16, 2007, at 11:13 AM, Perrin Harkins wrote: 300 is nothing for MySQL. You should be able to handle a few thousand on a machine with enough RAM. agreed. MySQL connections are cheap. Postgres ones consume RAM and kernel resources, and more than 50 sucks on a box. If you already

Re: apache version check

2007-06-18 Thread Jonathan Vanasco
user's env ) then just call `httpd -v` from a perl script as a shell command, and trap the output. i forget the name of the app that does that... ipc::run ? // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: opinions of mod_perl users on MIME email sending

2007-06-18 Thread Jonathan Vanasco
rs can be unreachable. let your MTA handle that. don't do that in mod_perl. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: apache version check

2007-06-18 Thread Jonathan Vanasco
On Jun 18, 2007, at 5:05 PM, John ORourke wrote: $version = ( $ENV{MOD_PERL_API_VERSION}==2 )?2:1; that won't work, because that requires mod_perl to be loaded. the original poster said: "How do I check what version of Apache is installed from command line (without using/lodaing mod_

Re: Howto develop with modperl 2 ? (Restart Apache all the time ?)

2007-06-19 Thread Jonathan Vanasco
situations out there too. those are just the ones i deal with daily. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Fo

Re: mod_perl2 best practices interacting with non-apache apps

2007-06-21 Thread Jonathan Vanasco
is done, it updates the status to 'processed' , and leaves either a sucessess or failure flag 'waiting page' reloads every 6-10 seconds. if it sees 'processed' in the db, it shows sucesses. btw, the job insert checks for 'si

Re: opinions of mod_perl users on MIME email sending

2007-06-21 Thread Jonathan Vanasco
like Mime::Lite::Template:: I've finally sorted myself out with a PAUSE account so I'll be scouting around for the ideal namespace at some point. I'll be discussing off-list with Jonathan Vanasco so do butt in if you're keen to contribute. Yeah that's a good idea, p

Re: opinions of mod_perl users on MIME email sending

2007-06-21 Thread Jonathan Vanasco
On Jun 21, 2007, at 5:36 PM, Frank Wiles wrote: Off the top of my head? So you can centralize your SMTP onto on system if you have multiple servers in the mix. But that's what MIME::Lite and friends do if you don't specifically tell it to use a remote system. ok. relaying to a local

Re: opinions of mod_perl users on MIME email sending

2007-06-22 Thread Jonathan Vanasco
their effects end up looking like that. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Net

Re: opinions of mod_perl users on MIME email sending

2007-06-22 Thread Jonathan Vanasco
ssues. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClick Networks | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Founder/CT

Re: opinions of mod_perl users on MIME email sending

2007-06-22 Thread Jonathan Vanasco
ts messy to the user. some smtp servers will give you their own guid for the message if you set stuff up right-- but thats not standard across systems. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CE

Re: Config::Loader and HTML::StripScripts

2007-06-26 Thread Jonathan Vanasco
that one, but i believe that is the command that locks down what swf files can redirect browsers to ( same domain as html or any or none ) // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: [mp2] Apache2::Reload doesn't reload

2007-06-27 Thread Jonathan Vanasco
hatever; } any changes go into myapp Page, or other modules. i never have to worry about the reload issues on the handler. pretty simple. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder Syn

Re: Problems using Apache::Reload

2007-06-29 Thread Jonathan Vanasco
, but you should NEVER run Apache::Reload in a production server. NEVER NEVER NEVER NEVER. // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | CEO/Founder SyndiClic

Re: Problems using Apache::Reload

2007-06-29 Thread Jonathan Vanasco
problems on this list. its likely not the culprit of the problem you're seeing now, but it will be causing many issues down the road. its not meant for production, its geared

Re: Problems using Apache::Reload

2007-06-30 Thread Jonathan Vanasco
ment, there are edge cases where things get messed up, and which require a stop- start to get them working again. And for this reason, we would not usually consider using this module in production. its much less edge-cases than it is use-cases. // Jonathan Vanasco | - - - - - - - - - - - -

Re: Problems using Apache::Reload

2007-07-01 Thread Jonathan Vanasco
erl servers. all of the db interaction on that stuff is handled by requests to internal perl-servers which return json objects. its really gives us the best of both worlds. On Jul 1, 2007, at 4:47 AM, Tony van der Hoff wrote: On 30 Jun at 16:55 Jonathan Vanasco <[EMAIL PROTECTED]>

Re: questions on serving big file & SQL statement parsing

2007-07-02 Thread Jonathan Vanasco
ral static file handling, under mp if at all possible. let it handle content generation and authorization as the 'brains' -- thats what it does best. use other apps like perlbal, nginx, whatever to handle your static files and large uploads.

Re: apache and php

2007-07-02 Thread Jonathan Vanasco
ou're just going to bloat apache and tie up resources. i run nginx on port80 for static content, push php content to fastcgi and proxy certain urls to mod_perl. my server's efficiency spiked drastically when i moved away from an all-apache setup.

<    2   3   4   5   6   7   8   9   >