AW: TinyMCE perl compressor

2007-04-26 Thread Denis Banovic
Hi Clint, Thank you for making this possible, it works just fine under Firefox! But Opera / IE6 / IE7 are making problems Error: TinyMCE is not defined Here is my Init: tinyMCE_GZ.init({ plugins : 'preview,contextmenu,advlink', themes : 'advanced',

Re: AW: TinyMCE perl compressor

2007-04-26 Thread Clinton Gormley
On Thu, 2007-04-26 at 09:27 +0200, Denis Banovic wrote: > Hi Clint, > > Thank you for making this possible, it works just fine under Firefox! Hi Denis Thanks for your thanks. I don't want to hijack the mod_perl list, so if anybody else has further queries / bugs, please send them to me directly

Weird startup includes

2007-04-26 Thread Martin Moss
I seem to have something weird going on. a Module I've written seems to be being included twice at server startup, but the second time its included the Apache::ServerStarting flag is set to 0... and is therefore causing all sorts of grief... (e.g. $dbh being forked).. Ive never noticed before that

regex quickie

2007-04-26 Thread Martin Moss
I'm looking for a regex which will help me do this.. $string = 'google.com/?q=test'; $pattern_match = 'google|yahoo|msn'; What I would like to do is test if $string contains one of the patterns in the pattern match and then carry out a function based upon which pattern is matched... e.g. if (

Re: regex quickie

2007-04-26 Thread Martin Moss
h seems this worked today.. Server restart musta failed when it didn't seem to work.. if ($string =~ /($pattern_match)/i) --- Martin Moss <[EMAIL PROTECTED]> wrote: > > I'm looking for a regex which will help me do this.. > > $string = 'google.com/?q=test'; > > $pattern_match = 'google|y

Re: [RELEASE CANDIDATE] libapreq 1.34-RC1

2007-04-26 Thread Joe Schaefer
Issac Goldstand <[EMAIL PROTECTED]> writes: > The apreq developers are planning a maintenance release of > libapreq1. This version primarily addresses an issue noted > with FireFox 2.0 truncating file uploads in SSL mode. > > Please give the tarball at > > http://people.apache.org/~issac/libapreq

Warnings awol in Win32 mod_perl.

2007-04-26 Thread Ali ISIK
O wise ones, Humbled, as always, at your presence, I seek your wisdom on a problem that we are having, trying to maintain our web application on Windows systems. The following is a description of the issue that my colleague has put together. Abstract Enab

RE: regex quickie

2007-04-26 Thread John Saylor
hi -Original Message- From: Martin Moss [mailto:[EMAIL PROTECTED] What I would like to do is test if $string contains one of the patterns in the pattern match and then carry out a function based upon which pattern is matched... Any ideas? perldoc perlre [look for Backtracking]

RE: regex quickie

2007-04-26 Thread Clinton Gormley
> -Original Message- > From: Martin Moss [mailto:[EMAIL PROTECTED] > What I would like to do is test if $string contains one of the patterns > in the pattern match and then carry out a function based upon which > pattern is matched... > Any ideas? > > > perldoc perlre [look for Backtrac

mp2 + SOAP - SOAP calls fail randomly

2007-04-26 Thread Tom Shaw
Im having some mod_perl2 wierdness. Im trying to run some SOAP requests and Im getting odd things happening. Is there any reason that I should be experiencing intermittant issues dispatching SOAP methods to my class? Sometimes the methods work fine and sometimes they don't. When they don't I get

RE: mp2 + SOAP - SOAP calls fail randomly

2007-04-26 Thread Tom Shaw
Ignore the test case... It is actually: TestSpace.pm package TestSpace; sub getSession { return 1; } 1; -Original Message- From: Tom Shaw [mailto:[EMAIL PROTECTED] Sent: 26 April 2007 14:11 To: 'modperl@perl.apache.org' Subject: mp2 + SOAP - SOAP calls fail randomly I

Re: regex quickie

2007-04-26 Thread Andy Armstrong
On 26 Apr 2007, at 14:03, Clinton Gormley wrote: > > perldoc perlre [look for Backtracking] > > this doesn't require backtracking to work > > just do my ($match) = ($string =~ /(google|yahoo)/i) my %despatch = ( 'yahoo' => sub { print "Yahoo!\n"; }, 'google' => sub { print "G

Re: regex quickie

2007-04-26 Thread Andy Armstrong
On 26 Apr 2007, at 14:15, Andy Armstrong wrote: my %despatch = ( 'yahoo' => sub { print "Yahoo!\n"; }, 'google' => sub { print "Google!\n"; }, ); my $match = join('|', map {quotemeta} keys %despatch); my $re = qr/($match)/i; # or whatever print "Using

RE: File Handle problems - mod_perl 2.0

2007-04-26 Thread Justin Luster
Hi, I agree making it lexically scoped would be better. I've done that with all of my other files but this one is used everywhere in the code in a global manner and would be a lot of work to change. How would I know if I was using: "threaded httpd MPM"? Again, it seems to be working just fine u

Re: File Handle problems - mod_perl 2.0

2007-04-26 Thread Michael Peters
Justin Luster wrote: > I agree making it lexically scoped would be better. I've done that with > all of my other files but this one is used everywhere in the code in a > global manner and would be a lot of work to change. Well if you are using a threaded mpm then you can't use globaly file handl

Re: regex quickie

2007-04-26 Thread Jonathan Vanasco
On Apr 26, 2007, at 9:15 AM, Andy Armstrong wrote: my %despatch = ( 'yahoo' => sub { print "Yahoo!\n"; }, 'google' => sub { print "Google!\n"; }, ); my $match = join('|', map {quotemeta} keys %despatch); my $re = qr/($match)/i; # or whatever print "Us

Re: regex quickie

2007-04-26 Thread Andy Armstrong
On 26 Apr 2007, at 18:32, Jonathan Vanasco wrote: i'd keep the dispatch essentially the same, but change the regex to something more like this: my %despatch = ( 'yahoo' => sub { print "\n Yahoo! $_[0]\n"; }, 'google' => sub { print "\n Google! $_[0]\n"; },

Re: regex quickie

2007-04-26 Thread Jonathan Vanasco
On Apr 26, 2007, at 1:47 PM, Andy Armstrong wrote: Yeah, but that only works if all the sites use q= to prefix the query - and have to maintain the site names in two places - once in the RE and once in the despatch table. It'd be better to parse the query parameters into a hash and pass

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: MP 2.0.3 & Apache 2.2.3 -> auth tests fail

2007-04-26 Thread Philip Gollucci
On Fri, 23 Mar 2007, Philip M. Gollucci wrote: Gozer, This looks good to me. It fixes t/api/server_const.t and the test suite now/still passes 100% for me. Do you want to commit it or should I. Thats a +1 btw. FYI: FreeBSD 6.2-RELEASE gcc 3.4.6 perl 5.8.8 w/o ithreads httpd 2.2.4 ap(r,u) 1.2

RE: regex quickie

2007-04-26 Thread sean
Martin, I recommend you keep the regex more detailed so you don't match on, for instance, 'yahoo.com?q=google' and so on. my $string = 'google.com?q=yahoo+ask.com+msn'; my $searchfuncs = {google => sub { ... }, yahoo => sub { ... }, ask => sub { ... },

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

2007-04-26 Thread Adam Prime x443
I see this in mp2 when you print to STDERR instead of $r->warn or $r->log_error, or use one of the other Apache2::Log ways of logging errors. Not sure if this applies to your situation or not. -Original Message- From: Tyler Bird [mailto:[EMAIL PROTECTED] Sent: Thursday, April 26, 2007 2

Re: regex quickie

2007-04-26 Thread John ORourke
Come on people, someone's gotta do this for a laugh... &{"do_".lc(($r->uri()=~/(\w+)\.com\//i))}(); sub AUTOLOAD { return undef; } sub do_google { } sub do_yahoo { } Yeah so I'm bored and ready for home... John

Re: regex quickie

2007-04-26 Thread Andy Armstrong
On 26 Apr 2007, at 20:04, John ORourke wrote: Come on people, someone's gotta do this for a laugh... &{"do_".lc(($r->uri()=~/(\w+)\.com\//i))}(); sub AUTOLOAD { return undef; } sub do_google { } sub do_yahoo { } Nice :) -- Andy Armstrong, hexten.net

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

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: Logging With Mod Perl 2.0

2007-04-26 Thread Carl Johnstone
Tyler Bird wrote: 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()

.htaccess problems

2007-04-26 Thread Tyler Bird
Hi, I have mod_perl 2.0 with apache on redhat enterprise 2.1 I have a AllowOverride All directive pointing to a directory where a .htaccess file resides I also have mod_perl 2.0 with apache on redhat enterprise 5 and the same AllowOverride directive as before. When I move the .htaccess file

Re: .htaccess problems

2007-04-26 Thread Philip Gollucci
On Thu, 26 Apr 2007, Tyler Bird wrote: Hi, I have mod_perl 2.0 with apache on redhat enterprise 2.1 I have a AllowOverride All directive pointing to a directory where a .htaccess file resides I also have mod_perl 2.0 with apache on redhat enterprise 5 and the same AllowOverride directive a

.htaccess explained better

2007-04-26 Thread Tyler Bird
Options -Indexes AllowOverride All DirectoryIndex index.i .htaccess contents DirectoryIndex test.txt I do the following comment out directoryindex #DirectoryIndex test.txt then I request the virtual host and it gives me and can't find mod_perl registry error

Re: Perl and ASP.Net

2007-04-26 Thread Michael Peters
Boysenberry Payne wrote: > It was Yahoo's yui-ext library aka extjs that I was told this could > really be a problem > with. So I guess all JS frameworks aren't created equal. It actually shouldn't be a problem as long as you don't use their hosted version of files and use local copies instead.

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

Re: Perl and ASP.Net

2007-04-26 Thread Foo JH
Boysenberry Payne wrote: One of the draw back that seems to be evident to me as I've looked into the client side frameworks is changes in the code are ought of your control. WIth a purely server side solution it would seem to give the coder the choice to upgrade when there is time, etc. With the

Re: Weird startup includes

2007-04-26 Thread Foo JH
Are you running Apache on Windows? Martin Moss wrote: I seem to have something weird going on. a Module I've written seems to be being included twice at server startup, but the second time its included the Apache::ServerStarting flag is set to 0... and is therefore causing all sorts of grief...