Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: Weird HTML::Mason error

by epoptai (Curate)
on Aug 01, 2005 at 21:21 UTC ( #480039=note: print w/replies, xml ) Need Help??

in reply to Re^2: Weird HTML::Mason error
in thread Weird HTML::Mason error

Try using a wrapper as suggested in the Mason manual, for example:
#!/usr/bin/perl # package HTML::Mason; use HTML::Mason; use HTML::Mason::ApacheHandler; use strict; { package HTML::Mason::Commands; use DBI (); use CGI (); } DBI->install_driver('mysql'); CGI->compile(':standard'); my $ah = HTML::Mason::ApacheHandler->new( comp_root => '/path/to/comp/root', data_dir => '/path/to/data/dir' ); sub handler { my ($r) = @_; return $ah->handle_request($r); } 1;
Load it from httpd.conf:
PerlRequire /path/to/
Speaking of httpd.conf, here's part of yours:
> KeepAlive On
> ...
> MaxClients 150
You should configure apache properly for mod_perl. Generally you want keepalive turned off and maxclients set to something your server can handle based on the size of your apache children.

perl -MO=Deparse -e"u j t S n a t o e h r , e p l r a h k c r e"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://480039]
[choroba]: what I like about slides in HTML + CSS is I can use templates to produce them, which means all code in slides is tested, and I can version them in git
[ambrus]: Btw, a request to everyone who organizes international conferences where presenters will show slides.
[ambrus]: In the document where you tell people how long the presentations are supposed to be, please also tell the aspect ratio of your projectors, because that's not obvious in advance.
[Corion]: ambrus: A more important point is that when constructing slides, you should respect a margin around your slide content of maybe 10% where no important information should be ;)
[ambrus]: If you don't do that, some people will be able to use only two thirds of the available screen area, or have to prepare three versions of their slides, each of which is a waste that you could avoid with one simple phrase in the call for papers.
[Corion]: As for somebody hosting national conferences, we don't always know the kind of connectors and aspect ratios available ;)
[ambrus]: Corion: well sure, but that's the similar to any printed document, and the margin is diminishing with today's technology. Video games no longer have to assume that the CRTs won't show the edges of the screen.
[Corion]: If you cram your slides with that much information, they might work in an "offline" situation but not very well for a live presentation IMO
[ambrus]: Corion: in that case I also ask the people who rent the conference rooms to tell conference organizers about the available tech.
[Corion]: ambrus: No, you're misunderstanding. If you place content too far on the left/right/top/ bottom, people might not see it because the view is obstructed ;)(

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-09-26 10:10 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.