Re: Any success with storing photos in a database?

2008-09-29 Thread W. Tyler Gee
. . . . . . . . . . . . . . . . . . . . . . > Mark StosbergPrincipal Developer > [EMAIL PROTECTED] Summersault, LLC > 765-939-9301 ext 202 database driven websites > . . . . . http://www.summersault.com/ . . . . . . . . > > > -- ~Tyler

Re: Caching a hash - am I missing something?

2008-08-19 Thread W. Tyler Gee
a previous > browser request or something? I'm I just missing something stupid? %cache is defined outside the scope of the sub so it will persist for the lifetime of the apache server. The very first time foobar('somekey') is called it will do the query lookup, the next time it will return from cache. > > > > FYI this was all running before on a version of Debian with old apache and > old mod_perl (early 1.99 and 2.0.x). I've updated mod_perl to 2.0.2 and > apache to 2.2 and everything still works. > > > > TIA!! > > -Chris > > > > > > > > > > > > > > -- ~Tyler

Re: framework for modperl applications

2008-07-17 Thread W. Tyler Gee
m writing your > application using PerlResponseHandlers. I'm not sure it qualifies as a > framework though, maybe just a request framework. It has been measured as > almost as fast as straight response handlers (assuming that hasn't changed > from 0.09 to 0.10). > -- ~Tyler

Re: Post data with Apache2::Request

2008-05-25 Thread Tyler Gee
age in context: > http://www.nabble.com/Post-data-with-Apache2%3A%3ARequest-tp17452698p17452698.html > Sent from the mod_perl - General mailing list archive at Nabble.com. > > -- ~Tyler

Re: Template::Toolkit and mod_perl2?

2008-04-14 Thread Tyler Gee
g. Before I get into too much > detail, I'm just wondering if TT work under mod_perl2. Anyone have any > experience with it? Got it running perhaps? Works fine. Check your return types and your headers. Post a simple example that's not working if you can. > > Thx, > Kirk > > > > -- ~Tyler

MinQueueAge

2008-01-11 Thread Tyler Bird
therefore there queue runners spawned every 30 minutes ( sendmail flag -q30m ) wouldn't have has much work and our critical outbound messages could get delivered even if some destination smtp hosts were down? Thanks Tyler

Converting from GMT To CST

2007-11-06 Thread Tyler Bird
HI List, Does anyone know the formula to convert from GMT to CST or any functions used by perl to get the time in CST? Tyler

mod_perl MVC framework.

2007-10-24 Thread Tyler Bird
is a MVC framework. The template toolkit looks promising. Tyler

help me...

2007-10-15 Thread Tyler Bird
limits on the data sockets can accept or how long a socket can be available? Thanks so much!! Tyler

removing temporary uploaded files

2007-10-10 Thread Tyler Bird
arily uploaded files. Thanks Tyler

Re: monitoring server and which ports they are connected to.

2007-10-05 Thread Tyler Bird
root. Any idea if I need to change something. I looked at ss -h for additional options and couldn't find any way to show the secure servers. Thanks so much. Tyler ss -a 'src :https'

monitoring server and which ports they are connected to.

2007-10-02 Thread Tyler Bird
ns to report this. Thanks in advance! Tyler

Starting / Stopping Sendmail

2007-10-01 Thread Tyler Bird
Hi List, I know this is off topic, but does anyone know if you restart the sendmail MTA daemon if all mail in the mail queues will still be delivered or any email will be lost as a result? Thanks so much and redirect me to a sendmail list thanks. Tyler

open and write a file with 777 permissions.

2007-09-25 Thread Tyler Bird
I was wondering if anyone knows offhand how I can open and write to a file with 777 permissons. And possibly also set the owner to a specified owner string. I am reading through IO::File, but having some issues. Thanks

Re: Question...

2007-09-25 Thread Tyler Bird
Michael Peters wrote: Tyler Bird wrote: Attached is my script if you want to try it and have apache 1.x require in; my $time = 120; for(my $i = 0; $i < $time; $i++) { warn("iteration..." . $i); sleep(1); Here in your interation, try printi

Re: Question...

2007-09-25 Thread Tyler Bird
Tobias Regneri wrote: Hi Tyler, I don't think that your script causes the issue. Is there a timeout value set in the httpd.conf? Hth, Tobias Sorry, remove the line require in; and also the line in::ct(); and replace the in::ct() line with print("Content-type: tex

Re: Question...

2007-09-25 Thread Tyler Bird
Tobias Regneri wrote: Hi Tyler, I don't think that your script causes the issue. Is there a timeout value set in the httpd.conf? Hth, Tobias Well there is a Timeout Directive in httpd.conf which I have set to 3000 and the problem still occurs. If I print the file line by

Question...

2007-09-24 Thread Tyler Bird
Hi List, I have a script that exports records templates from our system to .csv files. The thing is that if it run for over 80 seconds then the webserver seems to never send it to the browser. My algorithm builds all of the data into an internal string variable then sends all records at once a

Re: Downloading SpreadSheet Data with Apache

2007-09-21 Thread Tyler Bird
Michael Peters wrote: Tyler Bird wrote: I run this script and the log files show the incrementing numbers in the for loop, but whats weird is that the browser seems to still be "downloading" you know that little icon seems to be spinning and I see no output not and html header o

Downloading SpreadSheet Data with Apache

2007-09-21 Thread Tyler Bird
} require in; in::ct(); print("successfully rendered on dev"); exit(); -- any ideas on why the browser is not receiving or the webserver is not sending this content? Anybody need any clarifications? Tyler

VirtualDocumentRoot with ReWrite Rule

2007-07-23 Thread Tyler Bird
/%1.1/%1.2/%0/ # I have to remove the previosu line and add a real document root to line to get rewrite to work Tyler.

Re: header issues etc...

2007-07-03 Thread Tyler Bird
Hi, I jumped into the middle of this thread and it seems I am encountering a segfault in the header just like you have described. Could you give me an overview of your solution since I do not have your first emails to this list. Thanks Tyler pubert na wrote: I fixed it... apparently it

apache mailing list

2007-05-31 Thread Tyler Bird
eOnly Apache directive. Any ideas? Thanks Tyler

Re: backtrace for segfault....

2007-05-25 Thread Tyler Bird
5/site_perl/5.8.8/i386-linux-thread-multi/Apache2/compat.pm line 52. Compilation failed in require. BEGIN failed--compilation aborted. Thanks for any help you can give me. Tyler

Re: backtrace for segfault....

2007-05-25 Thread Tyler Bird
Clinton Gormley wrote: Clint, I changed the header I sent from text/html to text/plain and the segfaulting no longer occuring. It's more likely to be the headers your server is receiving (eg cookie?) than the headers it is sending. Clint, I removed sending any cookies the following

Re: backtrace for segfault....

2007-05-25 Thread Tyler Bird
Clinton Gormley wrote: Hi Tyler I know next to nothing about reading backtraces, but it looks to me like your segfault is occurring while your program is trying to parse the headers. Before doing any more, I would compile my own version of Apache2, mod_perl2 and libapreq2, and see if it still

backtrace for segfault....

2007-05-24 Thread Tyler Bird
/sbin/httpd #23 0x00b9bb6a in ap_graceful_stop_signalled () from /usr/sbin/httpd #24 0x00b9c6cb in ap_mpm_run () from /usr/sbin/httpd #25 0x00b730d7 in main () from /usr/sbin/httpd any ideas on what I can do to keep it from segfaulting again? Tyler

Re: segmentation fault.

2007-05-24 Thread Tyler Bird
Philippe M. Chiasson wrote: Tyler Bird wrote: Ok, I have a system I converted from cgi to mod_perl. We recently upgraded to mod_perl 2.0 and apache 2.2 on RHL5 I am having a problem. When I refresh a certain page 5 times or about ( it's completely random ) The page renders fine

Re: segmentation fault.

2007-05-24 Thread Tyler Bird
Tyler Bird wrote: Clinton Gormley wrote: On Wed, 2007-05-23 at 17:04 -0400, Dondi M. Stroma wrote: I've also gotten segfaults from reading a bad cookie. Another segfault problem I experienced was caused by using a lexical variable in a sub in a Registry script that was declared outsi

segmentation fault.

2007-05-23 Thread Tyler Bird
Ok, I have a system I converted from cgi to mod_perl. We recently upgraded to mod_perl 2.0 and apache 2.2 on RHL5 I am having a problem. When I refresh a certain page 5 times or about ( it's completely random ) The page renders fine, but in my logs I see that an apache child died because o

Re: Apxs not installed

2007-05-23 Thread Tyler Gee
ou have apache already installed, in which case you would have apxs, and the static server does not. I've used the standard static server installation instructrions [1] on RHEL4 a number of times without problems. [1] http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl Thanks. Martijn. -- ~Tyler

changing apaches environment from a mod_perl script

2007-05-22 Thread Tyler Bird
Hi, Hey I was wondering how I could do essentially the reverse of PerlSetEnv instead of setting an environment variable for a virtual host inside a virtual host definition PerlSetEnv I want to set it inside of index.i -- clip --- my $request = shift; $request->set_env("HOME", "/home/bi

Re: catching a segmentation fault

2007-05-17 Thread Tyler Bird
Torsten Foertsch wrote: On Thursday 17 May 2007 00:13, Tyler Bird wrote: I am setting up a new server with mod_perl + apache 2.0 + some legacy code and am sporadically rececing a segmentation fault to my apache logs like so. Maybe this helps: http://perl.apache.org/docs/2.0/devel

catching a segmentation fault

2007-05-16 Thread Tyler Bird
{'SEGV'} = sub { }; ? Thanks so much, Tyler

httpd.conf problem

2007-05-02 Thread Tyler Bird
o the whole tree. If I fall back to .htaccess files and just the section everything works fine. Any ideas on my first problem? I have looked at the apache 2.2 docs which we have and you can do it to it doesn't seem to work. http://httpd.apache.org/docs/2.2/mod/core.html#directory Tyler

.htaccess explained better

2007-04-26 Thread Tyler Bird
istry error. I am running enterprise 5, with apache 2.2, mod_perl 2.0.3 and perl 5.8.8 all installed with the enterprise 5 system. Any ideas this works fine in the enterprise 2.1 environment. Tyler

.htaccess problems

2007-04-26 Thread Tyler Bird
file out of the way on enterprise 5 it fails with and Apache::Registry error in the error log When I do it on enterprise 2.1 it seems ok. Any ideas? Tyler

Logging With Mod Perl 2.0

2007-04-26 Thread Tyler Bird
But I was wondering isn't there anything I can do to mod_perl that will allow a plain warn to send it to my virtualhosts log and not my servers log. without using the $r->warn() syntax warn("hey") really goes t the virtual hosts log and I don't have to put $r->warn() Tyler

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

2007-04-26 Thread Tyler Bird
Errors going to the main apache servers log and not my virtual host. Has anyone encountered this problem above before? I am setting up my virtual hosts within a section. Please?? Tyler

Re: Perl and ASP.Net

2007-04-23 Thread Tyler Gee
e small subset of any given framework. You should be able to use any one of them that you want without problems. -Praveen Cheers, -- ~Tyler

Re: Charts and Graphs

2007-04-13 Thread Tyler Gee
ep. I'm not terribly concerned about getting a bit more complicated if it means better efficiency and/or better control, etc. Any suggestions? I was just contsidering using SWF::Chart. Has anyone used that successfully or what issues would there be (other than the fact that it is flash). Thanks, -- ~Tyler

Detecting Unused Variables

2007-02-28 Thread Tyler Bird
I was wondering if there was some way I could run a script and have it detect all unused variables for me? Anyone got an answer hopefully with out using and add on module? I was also running how I could run time check all my modules. Tyler

Making warnings trigger errors.

2007-01-23 Thread Tyler Bird
Does anybody know if there is a module or some kind of directive in either perl or mod_perl to make warnings produce the same affects as errors. Thanks Tyler

Re: Port/Sheme information

2007-01-16 Thread Tyler MacDonald
uot;HTTPS" environment variable means SSL is enabled. http://httpd.apache.org/docs/2.2/mod/mod_ssl.html Cheers, Tyler

Apache->httpd_conf

2007-01-03 Thread Tyler Bird
In Mod perl 2.0 what is the equivalent of Apache->httpd_conf( qw{ ... } ); inside of a Section in httpd.conf? Tyler

Re: Transhandler? Redirect permanent?

2006-10-25 Thread Tyler MacDonald
dler whose overhead is going to be at least 10 lines before you even start coding. I use both extensively and together; mod_perl for the content, authentication, etc... and mod_rewrite for traffic control. Cheers, Tyler

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
Another thing I just noticed is that you ran your tests under Apache::PerlRun, my mod_perl installation is using as its PerlResponseHandler ModPerl::PerlRun. What's the difference between the two? Thank you, Tyler. -Original Message- From: Garrett, Philip (MAN-Corporate) [mailto:[

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
beneficial to put code in a PerlFixUpHandler that sets the time zone data?   Thank you for your help,   Tyler Fullerton.     From: Garrett, Philip (MAN-Corporate) [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 11:14 AM To: Tyler; modperl@perl.apache.org Subject: RE: Using

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
I’m still not able to use $ENV{TZ} to modify the behavior of localtime in a cgi script.  Is there some sort of limitation with cgi scripts run under mod_perl (specifically: PerlRun) that would prevent this from working?   Thank you, Tyler Fullerton.   From: Garrett, Philip (MAN

Re: Memory leak in mod_perl?

2006-09-27 Thread Fred Tyler
> after booting a redhat enterprise linux 3 machine with apache 2.0.58, > perl 5.8.8 and mod_perl 2.0.2, > it runs well using about 300 M of 1 G physical RAM. > However, the remaining RAM decreases day by day, and after 2 or 3 > weeks, the machine crashes because swapping takes too much time. > Ho

Using ENV{'TZ'} in mod_perl

2006-09-20 Thread Tyler
, etc) but still can’t get it to work.    Does anyone have any recommendations, or thoughts?   Thank you in advance, Tyler Fullerton.  

Re: Help: ENV shared between requests???

2006-07-30 Thread Fred Tyler
7;d find in %ENV under CGI? It wasn't in the CGI->mod_perl porting guide. Anyway, thanks for the tip. IIRC, there was a recommded approach to reading %ENV.. A grep didn't turn up anything usefull, so far. If this thread is still open, I'll drop a line :) HTH Hendrik On 7/29/06

Re: Help: ENV shared between requests???

2006-07-30 Thread Fred Tyler
> I was trying to use $ENV{'HTTP_REFERER'} in a certain script, and as I > reloaded the script over and over I noticed that it would constantly > be changing when the page was loaded directly (and therefore there > should not have been any HTTP_REFERER at all). In my setup at least, HTTP_REFERER

Help: ENV shared between requests???

2006-07-28 Thread Fred Tyler
Hi, I just noticed something and I don't know if it is normal: Is %ENV supposed shared between requests??? I was trying to use $ENV{'HTTP_REFERER'} in a certain script, and as I reloaded the script over and over I noticed that it would constantly be changing when the page was loaded directly (and

Re: Apache::Resource not killing children, hanging

2006-07-24 Thread Fred Tyler
On 7/23/06, Fred Tyler <[EMAIL PROTECTED]> wrote: I'm having a serious problem with Apache::Resource not killing children and ending up with all of the children in a hung state at the memory limit (Linux 2.6, mod_perl 1.29, Apache 1.33). Wow, I finally figured out what was causi

Re: Apache::Resource not killing children, hanging

2006-07-22 Thread Fred Tyler
> I'm having a serious problem with Apache::Resource not killing > children and ending up with all of the children in a hung state at the > memory limit (Linux 2.6, mod_perl 1.29, Apache 1.33). For what it's worth you might want to take a look at Apache::SizeLimit which was recently upgraded and

Apache::Resource not killing children, hanging

2006-07-22 Thread Fred Tyler
I'm having a serious problem with Apache::Resource not killing children and ending up with all of the children in a hung state at the memory limit (Linux 2.6, mod_perl 1.29, Apache 1.33). Here is the snippet from httpd.conf: PerlModule Apache::Resource # Both of the next two lines cause children

Fwd: Problems building mod_perl 2.0.2 w/httpd-2.2.2

2006-06-20 Thread Tyler MacDonald
Has anybody figured this out yet? Is there going to be a new version of mod_perl coming out soon that fixes this problem? It seems pretty serious... - Tyler --- Begin Message --- I just upgraded to httpd 2.2.2 and tried to install mod_perl. This upgrade was made on top of my existing

Re: Sessions with mod_perl2

2006-06-06 Thread Tyler MacDonald
at supports authentication, users, and sessions as well. It's session component is based on CGI::Session, and it allows you to configure everything from httpd.conf. - Tyler

Re: mod_perl make test failed tests

2006-06-05 Thread Tyler MacDonald
at it ran on. I think that is a lot like driving a car where you can not pop open the hood, or drinking a can of pop that does not have a list of ingredients on it. - Tyler

Re: mod_perl-2.0.2 + apache 2.2.2

2006-05-23 Thread Tyler MacDonald
old mod_perl in place. I keep meaning to look into why this is happening (I really would think fixing this would be a top priority for a mod_perl maintenence release) but I've been too busy lately. :/ Cheers, Tyler

Re: Reinstall gets Can't locate Apache.pm

2006-05-08 Thread Tyler MacDonald
GI had to be updated to support mod_perl2. Cheers, Tyler

Re: Reinstall gets Can't locate Apache.pm

2006-05-05 Thread Tyler MacDonald
you are using, is trying to "use Apache", when it shouldbe "use Apache2::RequestRec" or some such thing. - Tyler

Re: Reinstall gets Can't locate Apache.pm

2006-05-05 Thread Tyler MacDonald
till getting the same errors on all CGI modules: > "Can't locate Apache.pm". Ack! Before you drive yourself nuts with this, read this page: http://perl.apache.org/docs/2.0/rename.html Cheers, Tyler

Problems building mod_perl 2.0.2 w/httpd-2.2.2

2006-05-01 Thread Tyler MacDonald
rl that was compiled against 2.2.0 is still working, so it's not a pressing issue for me, but it did seem kind of odd, and I'm not sure if this is a bug with apache or mod_perl. Cheers, Tyler

Re: putting config vars in httpd.conf

2006-04-27 Thread Tyler MacDonald
in there looks way more complicated than what i could > possibly need > > can anyone point me in the right direction? I really thought PerlSetVar could be done at any phase of a request, but even if it can't, PerlSetEnv can... try using that and $ENV{DEBUG_MY_APP} or something. :-) - tyler

Re: Apache::Session: can I have a "date" in session

2006-04-27 Thread Tyler MacDonald
n/Driver/aus.pm http://search.cpan.org/src/CRAKRJACK/Schema-RDBMS-AUS-0.03/lib/CGI/Session/AUS.pm Cheers, Tyler

mod_bt 0.0.14 released

2006-04-20 Thread Tyler MacDonald
ath in APXS's CFLAGS (odd this is neccessary, since even apxs needs apr to function...) o Use $(MAKE) in all makefiles instead of make * mod_bt now has a bugzilla database. Cheers, Tyler

Find apr-config?

2006-04-10 Thread Tyler MacDonald
w->apr_config_path' Use of uninitialized value in substitution (s///) at i486-linux-gnu-thread-multi/Apache2/Build.pm line 1322. Use of uninitialized value in length at i486-linux-gnu-thread-multi/Apache2/Build.pm line 1323. [EMAIL PROTECTED]:/opt/apache2/perl5lib$ Thanks, Tyler

Using Apache::Test outside of a build environment?

2006-04-06 Thread Tyler MacDonald
t any tips? Thanks, Tyler

Apache::Test <-> cpan.testers weirdness

2006-03-16 Thread Tyler MacDonald
AKRJACK/CGI-JSONRPC-0.01/t/CGI-JSONRPC.t Does anybody know what's happening here? Thanks, Tyler

RFC: Apache2-JSONRPC && CGI-JSONRPC

2006-03-14 Thread Tyler MacDonald
hropomorphic way, only on his hind legs, or would he need a pole for each of his hooves? Answers to these and any other questions you think might burn me appreciated. Thanks, Tyler

Re: Where's M_HEAD?

2006-03-13 Thread Tyler MacDonald
et Another Mailing List and ask the httpd developers themselves. ;-) Thanks, Tyler

Where's M_HEAD?

2006-03-11 Thread Tyler MacDonald
up? It seems like it'd be much more natural for there to be a M_HEAD constnat as well.. Thanks, Tyler

Re: can mp2 flush response output to the client, then continue processing?

2006-03-08 Thread Tyler MacDonald
o the trick: http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler Cheers, Tyler

Module::Build + Apache2 oddity

2006-02-25 Thread Tyler MacDonald
g to do() the _build/notes file to get this config data. Cheers, Tyler

Move TestCommon::LogDiff into it's own package?

2006-02-25 Thread Tyler MacDonald
easily re-used anywhere? It's already got a bit of pod, it just needs a few tests and some packaging up and it's ready to go. I'd gladly take this on if I have the authors' blessing. Cheers, Tyler

Re: Does a section know where it is?

2006-02-22 Thread Tyler MacDonald
You know what? The mod_perl people are freaking geniuses. This works: warn __FILE__, " - ", __LINE__, "\n"; crackerjack:/home/faraway/dev# apache2ctl stop /home/faraway/dev/test.conf - 5 That is so slick! - Tyler Jonathan Vanasco <[EMAIL PROT

Re: Does a section know where it is?

2006-02-22 Thread Tyler MacDonald
(filename and line_num methods), if I cold only get a Apache2::Directive object representing the current section.. - Tyler

Re: find all uninitialized variables?

2006-02-22 Thread Tyler MacDonald
no warnings 'uninitalized'; to each module that you're being annoyed by. - Tyler

Does a section know where it is?

2006-02-22 Thread Tyler MacDonald
handlers and apache configuration together: use File::Basename (); use File::Spec (); my $me = Apache2::PerlSections->filename; unshift @INC, File::Spec::catfile(File::Basename::dirname($me), "perl5lib"); Thanks, Tyler

Re: find all uninitialized variables?

2006-02-22 Thread Tyler MacDonald
iables" warnings if -w switch is on. If you really want to cause your scripts to crash on every uninitialized variable so you have to go in and fix it, you can do this: use warnings FATAL => 'uninitialized'; Cheers, Tyler

Re: any way to stop REDIRECT_ env prefix?

2006-02-21 Thread Tyler MacDonald
Tyler MacDonald <[EMAIL PROTECTED]> wrote: > I'm writing a handler whose goal is to set an environment variable, then > issue an internal redirect to another page; > > $r->subprocess_env("FOO", "bar"); > $r->internal_redirect("/somew

any way to stop REDIRECT_ env prefix?

2006-02-21 Thread Tyler MacDonald
my "FOO" environment variable has become "REDIRECT_FOO". Is there any clean way to do this? I've also tried internal_fast_redirect (even though the docs seem to say it's naughty) with the same results. Thanks, Tyler

Re: (slightly OT) postgresql? firebird? mysql?

2006-02-20 Thread Tyler MacDonald
s to a postgres mentor I'd have wasted many more hours on this...) * I dig the elephant logo. - Tyler

Re: [FRIDAY] Trivia Question

2006-02-17 Thread Tyler MacDonald
Mark Galbreath <[EMAIL PROTECTED]> wrote: > Why is brian d joy's name uncapitalized on the cover of the 4th edition of > the Llama book? I always thought it was brian d foy (http://search.cpan.org/~bdfoy/).. and he did it because he likes it that way. :) - Tyler

How to require an MB subclass in a CPAN friendly way?

2006-02-17 Thread Tyler MacDonald
ere a solution that will make sure that a package using a MB subclass from another package installs cleanly out of CPAN, whether or not that subclass is already installed on a system? Thanks, Tyler

Re: A question for the newbies

2006-02-16 Thread Tyler MacDonald
http://perldesignpatterns.com/perldesignpatterns.html And this is useful too: http://www.oreilly.com/catalog/perlbp/ - Tyler

Re: A question for the newbies

2006-02-16 Thread Tyler MacDonald
nd not some contrived thing, try Mason. I don't actually use the stuff myself, but it looks a hell of a lot more simple and elegant than TT. :) - Tyler

Re: mod_perl 2.0.0 + Apache 2.0.55 on Cygwin Win2k3

2006-02-16 Thread Tyler MacDonald
Vancouver, BC, Canada. - Tyler

Re: mod_perl 2.0.0 + Apache 2.0.55 on Cygwin Win2k3

2006-02-16 Thread Tyler MacDonald
ry hard at work and aren't going anywhere soon. And when they do, it'll just be to another office. The IT teams are working hard to make sure that neither ActiveState or Sophos' services are interrupted while the pieces of infrastructure we have in common are being divvied up. :) - Tyler

Re: errors in module.t & others when installing mod_perl

2006-02-01 Thread Tyler MacDonald
install" installed. Then you can just do something like: cat /opt/apache2/perl5lib/i486-linux-gnu-thread-multi/auto/mod_perl2/.packlist | xargs rm -vf To remove those files. - Tyler

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
rguing about it. I like a good argument. ;-) - Tyler > > >>> Tyler MacDonald [EMAIL PROTECTED]> 01-Feb-06 17:06 PM >> > > Yeah, I ditched Apache::DBI early in diagnosing this problem. Then I > wrote that hack to solve it, which is what has sta

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
; method does; the code is run inside an eval; if the sub ref returns true, it's committed, if it returns false or raises an exception, it's rolled back. > Well, the hack may work for you, and that may be all that matters in > your case, but I don't think it's right to make other people think they > need to use that instead of Apache::DBI or connect_cached. I didn't!!! Tim told me to save the world!!! :) - Tyler

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
these last two changes may need to be diagnosed further. > It currently checks to see if you've loaded Apache::DBI and sends all > connect()/connect_cached() calls there, so that would have to be taken > out to avoid a perpetual feedback loop. Aaaah. :) - Tyler

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
abase connections, and I'm not convinced it was a result of an > Apache::DBI bug. I do know that after refactoring my code to not use Apache::DBI at all, and not depend on connect_cached() to behave properly, (adding the PostConfig and PreConnection handlers to be very paranoid about what happens to the handles), the problem has gone away. > I do think it would be cool to change the code in Apache::DBI to use > connect_cached for some of the caching mechanics, although that would > require changes in DBI as well. Hmm. What changes in DBI? Thanks, Tyler

Re: mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-02-01 Thread Tyler MacDonald
through it's code, I must warn you that while I would keep the interface the same, I would change it's behaviour a fair bit (mainly the points listed above). If this is cool with everyone, I'll proceed... if not, there's I'll stick with my hack, there's plenty of other code I could be writing/fixing. :) - Tyler

mod_perl2 DBI handle freshining problem solved "once and for all"...

2006-01-31 Thread Tyler MacDonald
delete $drh->{CachedKids}->{$k}; $n++; } } warn "$$: Cleared $n stale postgresql database handle(s).\n" if $n; return DECLINE_CMD; } This seems reasonably robust, after doing something like: # ps ax | grep "postmaster: pmx" | grep -v grep | awk '{print $1}' | xargs kill The first reload is a bit sluggish, but always works. Cheers, Tyler

Re: RegEx Hell

2006-01-31 Thread Tyler MacDonald
hat you're trying to do, I think it's m{^(?:.*/)?([^/]+)$}; After that, the filename itself should be in $1. - Tyler

Re: CSS errors on perl.apache.org

2006-01-26 Thread Tyler MacDonald
ary > > i'll send a patch Awesome thanks :) I just noticed it because I'm doing a lot of javascript <-> mod_perl work right now... Cheers, Tyler

  1   2   >