Re: Web forum engine
On Sat, Apr 21, 2001 at 11:50:40PM +0200, Per Einar wrote: > Sorry, this is not to flame you, but PHP isn't a mod_perl module. It's an > apache module. Oh dear ... my brain was in neutral there. If running at all. Thanks for not flaming me. -- Alastair| [EMAIL PROTECTED] | http://www.calliope.demon.co.uk |PGP Key : A9DE69F8 ---
Re: mod_perl and low physical memory?
Davin Flatten <[EMAIL PROTECTED]> writes: > Hello all! > > I am writing a web based mapping application in Perl > using Apache, Mod_Perl, MySQL and such. I am writing > it at home on an old machine that has very little > memory. 32 Megs to be exact. I have found that when > I run my script under mod_perl it seems to follow this > pattern: Ok, 1..2..3: http://perl.apache.org/guide/ !!! -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
mod_perl and low physical memory?
Hello all! I am writing a web based mapping application in Perl using Apache, Mod_Perl, MySQL and such. I am writing it at home on an old machine that has very little memory. 32 Megs to be exact. I have found that when I run my script under mod_perl it seems to follow this pattern: 1. First time through it runs slow. Slower than without mod_perl at all. That is normal as I understand it. 2. Subsequent reloads are fast: really fast! 3. Then after a while: 10-20 more hits the server starts to grind away at the harddisk more and more until the inital speed seen is gone and the application runs about twice as slow as it does without mod-perl. I am wondering if this is solely the memory issue or if it could be something else I have misconfigured. It seems to only get worse when I preload Apache::DBI and CGI. I also would like to load my own mapping module I wrote, but at this point the thing is unbearably slow. I configured Apache to start a minium amount of servers at startup. I also noticed that Netscape seems to be worse than Explorer with this. I tried turning "Keepalive" off and on. If anyone has any suggestions I would love to hear them. Thanks! Davin Flatten __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Web forum engine
- Original Message - From: "alastair" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 21, 2001 11:40 PM Subject: Re: Web forum engine > You should have a look at Freshmeat (http://www.freshmeat.org). > Strangely enough, I was looking today, in tne 'internet/www' section and > noticed a lot of 'portal' and 'forum' type applicatons/systems. Many > seem to be PHP based (which runs as a modperl module). > > Good luck! > Sorry, this is not to flame you, but PHP isn't a mod_perl module. It's an apache module. I know there are numerous good PHP variants, but I was looking for a mod_perl one because I am more familiar with Perl and mod_perl than anything else. Per Einar Ellefsen [EMAIL PROTECTED]
Re: Web forum engine
- Original Message - From: "Dave Hodgkinson" <[EMAIL PROTECTED]> To: "Per Einar" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, April 21, 2001 11:20 PM Subject: Re: Web forum engine > mwforum, and a Template Toolkit version may well be in the pipeline. Thank you for the suggestion. I will look it up(the URL is http://www.mawic.de/mwforum/ for anyone who cares.) Now, you'll all have to excuse me, but I might have posted a little fast. I found the Open Source continuations of the previous wwwthreads code on Sourceforge by searching for "wwwthreads", and the Perl ones were: FreeThreads, http://freethreads.sourceforge.net/ and Bazaar, http://www.icaap.org/Bazaar/ They both seem like strong contendants. But I am open to suggestions and comments, there must be other alternatives out there.(mwforum is certainly one) Per Einar Ellefsen [EMAIL PROTECTED]
Re: Web forum engine
On Sat, Apr 21, 2001 at 11:18:38PM +0200, Per Einar wrote: > Hi, > > I am looking around for a web forum engine like > wwwthreads(URL:http://www.wwwthreads.com/) which is GPL'ed(or atleast Open > Source) and runs under mod_perl. I know wwwthreads was GPL before, and I > think there have been someone who has taken up the project under a different > name, if anyone knows about this, please tell me. You should have a look at Freshmeat (http://www.freshmeat.org). Strangely enough, I was looking today, in tne 'internet/www' section and noticed a lot of 'portal' and 'forum' type applicatons/systems. Many seem to be PHP based (which runs as a modperl module). Good luck! -- Alastair| [EMAIL PROTECTED] | http://www.calliope.demon.co.uk |PGP Key : A9DE69F8 ---
Re: Web forum engine
"Per Einar" <[EMAIL PROTECTED]> writes: > Hi, > > I am looking around for a web forum engine like > wwwthreads(URL:http://www.wwwthreads.com/) which is GPL'ed(or atleast Open > Source) and runs under mod_perl. I know wwwthreads was GPL before, and I > think there have been someone who has taken up the project under a different > name, if anyone knows about this, please tell me. mwforum, and a Template Toolkit version may well be in the pipeline. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Web forum engine
Hi, I am looking around for a web forum engine like wwwthreads(URL:http://www.wwwthreads.com/) which is GPL'ed(or atleast Open Source) and runs under mod_perl. I know wwwthreads was GPL before, and I think there have been someone who has taken up the project under a different name, if anyone knows about this, please tell me. Please note that I'm not looking for something a la Slashdot, this is too big for me, and not exactly the style I'm looking for. Thanks, Per Einar Ellefsen [EMAIL PROTECTED]
Can AxKit be used as a Template Engine?
Hi. I try to understand why and if this XML/XSL stuff is useful. Is it that transformations (XSL) of XML to HTML can be used instead of the usual HTML templates (eg. Template-Toolkit)? Can this do what a template engine can do? Where are the limitations? Is there something it can't do? Thanx, Joachim -- "... ein Geschlecht erfinderischer Zwerge, die fuer alles gemietet werden koennen."- Bertolt Brecht - Leben des Galilei
Re: modperl/ASP and MVC design pattern
> I' m using UniquePackages and because subs name conflict I need to put the > subs in the asp pages. > Can I still use initialization of global vars in the > global.asa/Spript_OnStart (as you suggest) ? > ...so the ASP/$Server->Transfer() is the equivalent of JSP/forward > I don't know if transfer is quite the same, $Response->Redirect() might be more similar depending whether its an internal or external redirect. You could hijack part of the ASP object namespace for your uses like: $Request->{CX}{name} = 'hello'; or hijack a var in the main:: package $main::CX->{name} = 'hello'; You could also lose your reliance on UniquePackages by putting your subs into the global.asa. You might also init an object which inits into context globally which you could reset every Script_OnStart, like # in script <% my $cx = CX->new; %> # in CX.pm; this is probably similar to Class::Singleton use vars qw($CX); $CX = {}; sub new { bless $CX } # in global.asa use CX; sub Script_OnStart { $CX::CX = {}; } -- Josh
Re: modperl/ASP and MVC design pattern
- Original Message - From: "Joshua Chamas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, April 21, 2001 3:54 AM Subject: Re: modperl/ASP and MVC design pattern > [EMAIL PROTECTED] wrote: > > > > To avoid passing many parameters to the subs I become using a $cx (cx stand for > > context) global hash containig everything the subs needed, passed to each sub. > > > >page test.asp > >$cx = {}; > >$cx->{'name'} = 'default name'; > >$cx->{'age'} = 30; > >... > > Try this, > > # in global.asa > use vars qw($cx); # set up $cx for global use > sub Script_OnStart { > $cx = {}; # initialize per request > } > > # in script > sub HelloWorld { > $cx->{name} = 'hello'; > } > > This will work, but I'd recommend you move your subs to > global.asa, which is your central module for your scripts. I' m using UniquePackages and because subs name conflict I need to put the subs in the asp pages. Can I still use initialization of global vars in the global.asa/Spript_OnStart (as you suggest) ? ...so the ASP/$Server->Transfer() is the equivalent of JSP/forward Thanks Francesco > > And then you can use $Server->Transfer() to change > the file executing midstream. > > --Josh >