RE: templating system opinions

2003-07-21 Thread Cameron B. Prince
Just wondering what the best templating system is to use and/or learn. Hi, I'm just wondering why no one recommended Embperl. Like Mason, it's more than a templating system, but I find it's inheritance features great. I'm using it for a personal project and haven't really checked it's

Re: Calling a mod_perl method from whithin a CGI script

2003-07-21 Thread Stas Bekman
Eric Ricardo Anton wrote: I have started using Apache::AuthCookie, which runs under mod_perl, for authentication. The problem is that the whole website Im working on is based on mod_cgi. I need the CGI scripts to call a mod_perl method in order to recognize the user that is logged in.

RE: Need help, Global Hash corruption under mod_perl in perl 5.8.0!?!

2003-07-21 Thread
We had recompiled ePerl for 5.8.0 and mod_perl (1.27 and later 1.28) statically linked with Apache with default options (does it include threads?) I'm using only Apache::ePerl which allows me use Perl in the the way like PHP, since I don't need Mason or EmbPerl html features for small WAP

RE: Need help, Global Hash corruption under mod_perl in perl 5.8.0!?!

2003-07-21 Thread
I have done code deparsing of eperl scripts saved in Cache all started with package Parse::ePerl; use strict 'refs'; print(qq[?xml version=1.0?\n]); so they all have the same package name. Can it cause a bug? Ap::Registry keeps different package name for every

Re: templating system opinions

2003-07-21 Thread Matt Sergeant
On Monday, Jul 21, 2003, at 02:23 Europe/London, Dave Rolsky wrote: All of this said, what is the most commonly used system out there? The biggest players are Mason and Template Toolkit, judging from big companies that have used them, as well as job posting. HTML::Template, Embperl, and

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Martin Wickman
On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: i was writing my own AuthHandler with modperl v2 (v1.99_09). [...] After having entered user/pass via html-form, this authentification does his job well, but on the following request (on same browser) $obj-user doesnt seem to

MP2 Redirection

2003-07-21 Thread Jamie Krasnoo
What would be the best way to redirect in MP2? How would I set the Location in the header? something like this? my $r = Apache-request; # docs say $r-header_out and family are now deceased. $r-headers_out(Location = '/some/place.html'); return Apache::DECLINED; Jamie Krasnoo

Re: Content compression FAQ

2003-07-21 Thread Igor Sysoev
On Sat, 19 Jul 2003, Slava Bizyayev wrote: Here is small correction to Web Content Compression FAQ. What does HTTP/1.0 only support mean in this answer: Q: Are there any content compression solutions for vanilla Apache 1.3.X? A: Yes, There are two compression modules written in C

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Fatih Gey
On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: i was writing my own AuthHandler with modperl v2 (v1.99_09). [...] After having entered user/pass via html-form, this authentification does his job well, but on the following request (on same browser) $obj-user doesnt seem

Question to mod_perl gurus. Take 1 minute. Just choose right answer from list!

2003-07-21 Thread
Hi, recently I got in trouble with old Apache::ePerl module (I know there a lot of better html toolkits, but this one is suits for my WAP-related tasks) so the question: we have package, handler for *.perl-embed files package Apache::ePerl; use vars qw ($Cache); $Cache = {}; sub handler {

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Bill Marrs
I can measure it myself if you can provide me with URLs to your resources and identify them in terms of which one is mod_CGI and which is mod_perl. This is the mod_cgi one that works fine, no errors: http://shevek.kenyonhill.com/cgi/test.pl This is the mod_perl one (same script) that generates

RE: templating system opinions

2003-07-21 Thread Jesse Erlbaum
Hi Dave -- Dave Rolsky writes: Mason isn't fast. It is, however, fast enough for high volume sites - that I will assert. Sure, amazon.com among them. Amazon.com uses Mason? Why have I not heard of this before? -Jesse-

Re: ANNOUNCE: Apache::Dynagzip 0.10

2003-07-21 Thread John Siracusa
On 7/20/03 11:12 PM, Slava Bizyayev wrote: Your own content-type is supposed to be overwritten only in case of the use of PerlSetVar UseCGIHeadersFromScript Off in your configuration file. You might wish to comment this line in your configuration file when your script generates correct

Re: templating system opinions

2003-07-21 Thread Drew Taylor
Jesse Erlbaum wrote: Dave Rolsky writes: Sure, amazon.com among them. Amazon.com uses Mason? Why have I not heard of this before? I personally have not seen an official announcement, but if you look at all their postings on jobs.perl.org you'll notice that nearly every one of them mentions

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Thomas Klausner
Hi! On Mon, Jul 21, 2003 at 12:36:55 +0200, Fatih Gey wrote: I supposed the browser to resend always an unique bowser session id, which is used by apache to save certain values, like $ENV{'REMOTE_USER'} (similiar to a session-cookie with uid and serverbased $vars) .. Isn't this the way Basic

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Martin Wickman
On Mon, Jul 21, 2003 at 12:36:55PM +0200, Fatih Gey wrote: On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: i was writing my own AuthHandler with modperl v2 (v1.99_09). [...] After having entered user/pass via html-form, this authentification does his job well, but

RE: templating system opinions

2003-07-21 Thread FFabrizio
In a good OO system with objects representing the data model, I found it exhausting to use H::T when I could just to this in TT: [% user.name %] Am I just being stupid, or are there better ways of doing these things in H::T? I'm a little late to the dance but I generally

Re: templating system opinions

2003-07-21 Thread Barry Hoggard
I wanted to add that you *can* use Mason for MVC type programming. I do that on my current big project, www.better-investing.org, in the admin areas. I have a controller index.html page which chooses what component to run based on a run mode, just like CGI::Application, but then gives me all

Re: Content compression FAQ

2003-07-21 Thread Slava Bizyayev
Thank you Igor, I will patch FAQ with this shortly. Slava - Original Message - From: Igor Sysoev [EMAIL PROTECTED] To: Slava Bizyayev [EMAIL PROTECTED] Cc: Stas Bekman [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 21, 2003 5:19 AM Subject: Re: Content compression FAQ On

Re: ANNOUNCE: Apache::Dynagzip 0.10

2003-07-21 Thread John Siracusa
On 7/21/03 9:47 AM, John Siracusa wrote: On 7/20/03 11:12 PM, Slava Bizyayev wrote: Your own content-type is supposed to be overwritten only in case of the use of PerlSetVar UseCGIHeadersFromScript Off in your configuration file. You might wish to comment this line in your configuration

Re: ANNOUNCE: Apache::Dynagzip 0.10

2003-07-21 Thread Slava Bizyayev
Yes John, I understand. I'm working on this now. Slava - Original Message - From: John Siracusa [EMAIL PROTECTED] To: Mod Perl Mailing List [EMAIL PROTECTED] Sent: Monday, July 21, 2003 11:03 AM Subject: Re: ANNOUNCE: Apache::Dynagzip 0.10 On 7/21/03 9:47 AM, John Siracusa wrote:

Re: templating system opinions

2003-07-21 Thread Kip Hampton
Matt Sergeant wrote: (you can of course use XSLT in AxKit :-) And don't forget that, with AxKit, you can use Apache::ASP, Mason, or any Apache::Filter-aware handler to provide content for AxKit to transform and TT2 as a transformational language. Oh, and there's XPathScript, too, which,

problems with Perl under windows, apache

2003-07-21 Thread Erik Browaldh
Hello! I have a script under windows with apache that doesnt seems to work. The script is reading a log-file and writing new information. But when trying it over internet, my skript does not do any changes to the log-file. (ie its only replacing the last entry instead of increasing the list)

Re: templating system opinions

2003-07-21 Thread Dave Rolsky
On Mon, 21 Jul 2003, Drew Taylor wrote: I personally have not seen an official announcement, but if you look at all their postings on jobs.perl.org you'll notice that nearly every one of them mentions Mason. I'm sure Dave will have more to say on the subject... :-) Not too much more. But

Re: templating system opinions

2003-07-21 Thread Patrick Galbraith
I'm guessing they use it for IMDB, although they may have other projects as well that use it. I do know that their core app is C++/apache, with some sort of perl glue to talk to the app. Nice that they are such an apache/perl/OS house considering they're here in Seattle, mere miles from

Re: templating system opinions (axkit?)

2003-07-21 Thread Patrick Galbraith
Anyone on this list use AxKit? I'm curious how it pans out. I like the idea of XSLT/XML, though I find myself trying to read between the lines of hype vs. something that's actually very useful. I don't know, so I don't have any opinions. I do know I'd like to use XSLT/XML so as to have a

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Slava Bizyayev
Well, let's see: == (93.530) Outgoing Request GET http://shevek.kenyonhill.com/cgi/test.pl HTTP/1.1 C05 -- S06 GET /cgi/test.pl HTTP/1.1 C05 -- S06 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */* C05 -- S06 Accept-Language: en-us C05 -- S06 Accept-Encoding:

RE: templating system opinions (axkit?)

2003-07-21 Thread Jesse Erlbaum
Hi Patrick -- I like the idea of XSLT/XML, though I find myself trying to read between the lines of hype vs. something that's actually very useful. I don't know, so I don't have any opinions. I do know I'd like to use XSLT/XML so as to have a project to use it for, hence learn it.

small doc typo...

2003-07-21 Thread Shannon Eric Peevey
Hi! Just perusing: http://perl.apache.org/docs/2.0/devel/core/apache_integration.html#The_Link_Between_mod_perl_and_httpd and found a small typo. STANDARD20_MODULE_STUFF is a standard macro defined in httpd-2.0/include/http_config.h. Currently its main use *if* for attaching Apache version

[OT] XSLT [Formerly: templating system opinions (axkit?)]

2003-07-21 Thread sxm124
I recently found one good use for not bashing XSLT right away. We were using JUnit and JUnitReport to do unit testing and reporting for our java using the Ant build tool. JUnit runs tests and can generate the output to xml. JUnitReport uses xslt to transform them to websites. I simply

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Bill Marrs
We can see that mod_cgi bufferizes the output and sends it with Content-Length HTTP header (to mod_deflate). Indeed mod_perl generates chunked response. Finally we have the same result. I don't see any problem at this moment. Well, the problem is that I get this error in my error_log: [Mon Jul

Re: templating system opinions

2003-07-21 Thread Dave Rolsky
On Mon, 21 Jul 2003, Patrick Galbraith wrote: I'm guessing they use it for IMDB, although they may have other projects as well that use it. I do know that their core app is C++/apache, with some sort of perl glue to talk to the app. I believe IMDB uses mod_perl, but I don't know about Mason.

Re: templating system opinions (axkit?)

2003-07-21 Thread Douglas Hunter
Jesse Erlbaum wrote: Hi Patrick -- I like the idea of XSLT/XML, though I find myself trying to read between the lines of hype vs. something that's actually very useful. I don't know, so I don't have any opinions. I do know I'd like to use XSLT/XML so as to have a project to use it for,

Re: templating system opinions

2003-07-21 Thread Sam Tregar
On Sun, 20 Jul 2003, Dave Rolsky wrote: OTOH, if you were to try to replicate some of Mason's more powerful features with H::T, like autohandlers, inheritance, etc., then I'm sure that'd bring H::T's speed down to Mason's level ;) I wouldn't be too sure. I implemented a lot of that stuff to

Re: problems with Perl under windows, apache

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 12:22, Erik Browaldh wrote: I have a script under windows with apache that doesnt seems to work. Are you running it under mod_perl? If so, please tell us if it's mod_perl 1 or 2, and include the info listed at the report problems link on http://perl.apache.org/. We really

Re: templating system opinions

2003-07-21 Thread Dave Rolsky
On Mon, 21 Jul 2003, Sam Tregar wrote: On Sun, 20 Jul 2003, Dave Rolsky wrote: OTOH, if you were to try to replicate some of Mason's more powerful features with H::T, like autohandlers, inheritance, etc., then I'm sure that'd bring H::T's speed down to Mason's level ;) I wouldn't be too

Re: templating system opinions (axkit?)

2003-07-21 Thread Daisuke Maki
Anyone on this list use AxKit? I'm curious how it pans out. I used it for http://www.nikki-site.com (sorry, Japanese-only site). This site uses exactly 4 pure-mod_perl handlers, and everything else eventually goes through AxKit (excuse the site design, as far as development goes that is a

Re: templating system opinions (axkit?)

2003-07-21 Thread James G Smith
Jesse Erlbaum [EMAIL PROTECTED] wrote: It's mostly hype in my experience. And not even very useful hype, like Java or PHP, which are actually real things which people might want to use. XSLT seems to be XML geeks' answer to CSS+templating. As if CSS wasn't very successful, as if the world

Re: templating system opinions

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 12:22, Kip Hampton wrote: And don't forget that, with AxKit, you can use Apache::ASP, Mason, or any Apache::Filter-aware handler to provide content for AxKit to transform and TT2 as a transformational language. Oh, and there's XPathScript, too, which, although its only

Re: templating system opinions (axkit?)

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 12:14, Patrick Galbraith wrote: I get so tired of Java types talking about how perl is just a scripting language.. it's not an application platform/server like Dynamo/WebSpere/insert $$$ java non-OS app here. I even tried to crack a particular Orielly java book and was

Re: templating system opinions

2003-07-21 Thread Sam Tregar
On Mon, 21 Jul 2003, Dave Rolsky wrote: On Mon, 21 Jul 2003, Sam Tregar wrote: I wouldn't be too sure. I implemented a lot of that stuff to add HTML::Template support to Bricolage and it's still much faster than Mason. A lot as in _all_ of it, or a lot as in autohandlers and

Re: Question to mod_perl gurus. Take 1 minute. Just choose rightanswer from list!

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 07:31, wrote: so the question: which sub main_deck will be executed? 1. Hi, it's SCRIPT_1! 2. Bye, it was SCRIPT_2! I think #2, because it was the last one eval'ed, and you can only have one sub with a given name in one package namespace. Apache::ePerl does not

RE: Need help, Global Hash corruption under mod_perl in perl5.8.0!?!

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 02:51, wrote: I have done code deparsing of eperl scripts saved in Cache all started with package Parse::ePerl; use strict 'refs'; print(qq[?xml version=1.0?\n]); so they all have the same package name. Can it cause a bug?

RE: Need help, Global Hash corruption under mod_perl in perl5.8.0!?!

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 02:41, wrote: I'm using only Apache::ePerl which allows me use Perl in the the way like PHP, since I don't need Mason or EmbPerl html features for small WAP resources. I think you should consider using a system that is actually supported. Embperl, Apache::ASP,

Re: Calling a mod_perl method from whithin a CGI script

2003-07-21 Thread Perrin Harkins
On Sun, 2003-07-20 at 17:15, Eric Ricardo Anton wrote: Since I can't port the scripts from mod_cgi to mod_perl, how can I make a CGI script call a mod_perl method? You can't. When you run a script under mod_cgi, mod_perl functions are not available. However, you could try running your

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Slava Bizyayev
Well, the problem is that I get this error in my error_log: [Mon Jul 21 14:18:55 2003] [error] 4297: ModPerl::RegistryBB: 20014:Error string not specified yet at /var/www/perl/test.pl line 6. Also, more important, the script seems to be terminating and/or any output following the 'print '

Re: templating system opinions

2003-07-21 Thread Kip Hampton
Perrin Harkins wrote: On Mon, 2003-07-21 at 12:22, Kip Hampton wrote: Why choose one when you can have 'em all? :-) Well, no offense to AxKit, but having multiple templating systems in a single project is something that I specifically work to avoid. It complicates things and typically hurts

Re: templating system opinions

2003-07-21 Thread Chris Winters
Perrin Harkins wrote: The one thing about TT was that I don't know if I really liked how it had a different syntax than perl. Plus, as far as performance, we did some specific coding to make it faster for Slash so our templates would be in the DB. That's an anti-optimization. Filesystems are

Values of an array..

2003-07-21 Thread Dennis Stout
I dunno if it's an array or a reference ot an array anymore, heh. Whats happening, is instead of this thing pulling all 3 of my domains from a database, it's pulling the first domain in the list as many times as I have domains for. So when I only had 2 domains in the db for myself, it listed hte

Re: Values of an array..

2003-07-21 Thread Andrew Hurst
Dennis Stout wrote ... my %user_list = get_users($where); foreach (keys %user_list) { my $user = $_; foreach (@{$user_list{$user}{DOMAIN}}) { $user_list{$user}{DOMAINS} .= $user_list{$user}{DOMAIN}[$_],; }

Re: Values of an array..

2003-07-21 Thread Gedanken
shouldnt 'my $user' be outside the foreach loop? I had a similar coding problem this weekend - completely unrelated to mod_perl. I was using www::mechanize (greatest module ever) to parse xml and generate files. If i had 18 user sections, it was writing the last member to disk 18 times.

Re: Values of an array..

2003-07-21 Thread Dennis Stout
shouldnt 'my $user' be outside the foreach loop? No, it's supposed to be changed each iteration through the loop. Basically it saves $_ to something else, so the next foreach loop doesn't overwrite it, since I need it's value as a key for the hash the next loop creates. Dennis

Re: Values of an array..

2003-07-21 Thread Dennis Stout
Dennis Stout wrote ... my %user_list = get_users($where); foreach (keys %user_list) { my $user = $_; foreach (@{$user_list{$user}{DOMAIN}}) { $user_list{$user}{DOMAINS} .= $user_list{$user}{DOMAIN}[$_],;

Re: Values of an array..

2003-07-21 Thread Andrew Hurst
At 01:22 PM 7/21/2003 -0800, Dennis Stout wrote: Dennis Stout wrote ... my %user_list = get_users($where); foreach (keys %user_list) { my $user = $_; foreach (@{$user_list{$user}{DOMAIN}}) {

Re: Values of an array..

2003-07-21 Thread Eric Wong
On Mon, Jul 21, 2003 at 02:38:20PM -0700, Andrew Hurst wrote: At 01:22 PM 7/21/2003 -0800, Dennis Stout wrote: Dennis Stout wrote ... my %user_list = get_users($where); foreach (keys %user_list) { my $user = $_; foreach

RE: templating system opinions

2003-07-21 Thread Nigel Hamilton
Just wondering what the best templating system is to use and/or learn. I'm just wondering why no one recommended Embperl. Like Mason, it's more than a templating system, but I find it's inheritance features great. I too have found template inheritance to be pretty important - especially

Variables

2003-07-21 Thread Dennis Stout
In this project I'm making (database), I have several variables with a potential for a large amount of information to be held in them. They're all hashes. Some are hashes of hashes... There is a tech_list, which holds information about each technician. There is a queue_list which holds an ID

Re: Variables

2003-07-21 Thread Perrin Harkins
Dennis Stout wrote: Is there a way I could get these variables populated on server start and never loaded again unless the database was changed? So in my subroutine for posting an event that changed it I could call repopulate_queue_hash and have it redo the hash, so changes still happened without

Re: Variables

2003-07-21 Thread Dennis Stout
Is there a way I could get these variables populated on server start and never loaded again unless the database was changed? So in my subroutine for posting an event that changed it I could call repopulate_queue_hash and have it redo the hash, so changes still happened without a restart,

Re: Variables

2003-07-21 Thread Perrin Harkins
Dennis Stout wrote: So in startup.perl put my %queue_list = list_queues; my %tech_list = list_techs; and so on? Then each process would get a copy of the hash? No, those are lexicals, not globals. Something like this: package MyCompany::Globals; use vars qw(%queue_list %tech_list); %queue_list

ANNOUNCE: Apache::Dynagzip 0.11

2003-07-21 Thread Slava Bizyayev
This version is a bug-fix: Content-Type header prepared by another filtering handler on earlier stage of the content generation phase could be overwritten by Dynagzip to default Content-Type: text/html. It is fixed now. Since the recent version Dynagzip provides the default Content-Type only in