Re: Content compression FAQ

2003-06-23 Thread Slava Bizyayev
OK, the preview of a new version of FAQ is available at
http://devl4.outlook.net/devdoc/FAQ/compression.html (temporarily).
I cannot finish comparison of modules because the other authors are not
available for discussions to date. I would probably drop the comparison
until better times if you don't mind...

Thanks,
Slava

- Original Message - 
From: Slava Bizyayev [EMAIL PROTECTED]
To: mod_perl Mailing List [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 1:10 AM
Subject: Content compression FAQ


 Hello everyone again,

 This thread is supposed to improve Content Compression FAQ at
 http://perl.apache.org/docs/tutorials/client/compression/compression.html
 in order to assist Practical mod_perl as Stas suggested.

 Any of your questions, suggestions, concerns, and/or criticisms of FAQ
would
 be highly appreciated over here.

 Basically, I'm going to rewrite the preamble, to make clear comparison of
 modules (a kind of table is expected), and to extend the list of practical
 questions targeting the interests of Apache administrators mainly.

 I would highly appreciate if somebody could offer a draft of short and
clear
 explanation of features of Apache::Filter chain vs. Apache::OutputChain
for
 those sysadmins who know nothing about them initially, but have to be able
 to configure them properly (with appropriate handlers) in the end.

 Please do not duplicate questions from the thread How practical... to
over
 here. Currently I'm just placing formal redirections from that thread to
 this one. I will continue to answer all that questions here.

 Let's go ;-)
 Slava





Re: Content compression FAQ

2003-06-23 Thread Nigel Hamilton
HI SLava,

Your new FAQ looks really good!

I've just got one small suggestion. I've heard that compression 
can also work with pre-compressing files with: gzip -9 index.html - 
index.html.gz. 

And you can then configure Apache Multiviews to serve the 
pre-Gzipped file. This means you don't have to dynamically zip the file 
each time and it works with vanilla Apache 1.3.

That said, I've been unable to configure Apache to do this 
properly. Does anyone have a clear solution that can be incorporated into 
SLava's new FAQ?


Nige


 OK, the preview of a new version of FAQ is available at
 http://devl4.outlook.net/devdoc/FAQ/compression.html (temporarily).
 I cannot finish comparison of modules because the other authors are not
 available for discussions to date. I would probably drop the comparison
 until better times if you don't mind...
 
 Thanks,
 Slava
 
 - Original Message - 
 From: Slava Bizyayev [EMAIL PROTECTED]
 To: mod_perl Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, June 17, 2003 1:10 AM
 Subject: Content compression FAQ
 
 
  Hello everyone again,
 
  This thread is supposed to improve Content Compression FAQ at
  http://perl.apache.org/docs/tutorials/client/compression/compression.html
  in order to assist Practical mod_perl as Stas suggested.
 
  Any of your questions, suggestions, concerns, and/or criticisms of FAQ
 would
  be highly appreciated over here.
 
  Basically, I'm going to rewrite the preamble, to make clear comparison of
  modules (a kind of table is expected), and to extend the list of practical
  questions targeting the interests of Apache administrators mainly.
 
  I would highly appreciate if somebody could offer a draft of short and
 clear
  explanation of features of Apache::Filter chain vs. Apache::OutputChain
 for
  those sysadmins who know nothing about them initially, but have to be able
  to configure them properly (with appropriate handlers) in the end.
 
  Please do not duplicate questions from the thread How practical... to
 over
  here. Currently I'm just placing formal redirections from that thread to
  this one. I will continue to answer all that questions here.
 
  Let's go ;-)
  Slava
 
 
 

-- 
Nigel Hamilton
Turbo10 Metasearch Engine

email:  [EMAIL PROTECTED]
tel:+44 (0) 207 987 5460
fax:+44 (0) 207 987 5468

http://turbo10.com  Search Deeper. Browse Faster.



Re: [SEMI-OT] perl_tie_hash valid reference?

2003-06-23 Thread Philippe M. Chiasson
On Wed, 2003-06-18 at 11:48, dorian wrote:
 greetings all,
 
 i was wondering if anyone could tell me if the function perl_tie_hash
 in perl_util.c in the mod_perl 1.27 source could be considered
 usual reference material for binding a table-like object to a
 hash(ref) in XS? if not, perchance someone could point me at some
 literature (or source) on the subject?

Yes, or even more authoritative example can be found in man perlguts
SV *mytie() {
   HV *hash;
   HV *stash;
   SV *tie;
   hash = newHV();
   tie = newRV_noinc((SV*)newHV());
   stash = gv_stashpv(MyTie, TRUE);
   sv_bless(tie, stash);
   hv_magic(hash, (GV*)tie, PERL_MAGIC_tied);
   newRV_noinc(hash);
   return hash;
}


 thanks in advance,
 
 .dorian
-- 

Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 (122FF51B/C634E37B)
http://gozer.ectoplasm.org/F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so ingenious.
perl -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/print||$$++redo}'



signature.asc
Description: This is a digitally signed message part


[ANNOUNCE] Template::Plugin::Apache::SessionManager 0.01

2003-06-23 Thread Enrico Sorcinelli
Hi all,

I'm glad to announce first public release of
'Template::Plugin::Apache::SessionManager' module.

Template::Plugin::Apache::SessionManager - Session manager Template Toolkit 
plugin
This Template Toolkit plugin provides an interface to Apache::SessionManager
module wich provides a session manager for a web application.  This module
allows you to integrate a transparent session management into your TT2 template
documents (it handles for you the cookie/URI session tracking management of a
web application)
 
You can download it from CPAN:

   
http://www.cpan.org/authors/id/E/EN/ENRYS/Template-Plugin-Apache-SessionManager-0.01.tar.gz

I've send this announce to mod_perl ML because it's possible to use it with 
Apache::Template mod_perl module wich provides a simple interface to the
Template Toolkit allowing Apache to serve directly TT2 files.

SYNOPSIS
  [% USE my_sess = Apache.SessionManager %]
 
  # Getting single session value
  SID = [% my_sess.get('_session_id') %]
 
  # Getting multiple session values
  [% FOREACH s = my_sess.get('_session_id','_session_timestamp') %]
  * [% s %]
  [% END %]
  # same as
  [% keys = ['_session_id','_session_timestamp'];
 FOREACH s = my_sess.get(keys) %]
  * [% s %]
  [% END %]
 
  # Getting all session values
  [% FOREACH s = my_sess.get %]
  * [% s %]
  [% END %]
 
  # Setting session values:
  [% my_sess.set('foo' = 10, 'bar' = 20, ...) %]
 
  # Deleting session value(s)
  [% my_sess.delete('foo', 'bar') %]
  # same as
  [% keys = ['foo', 'bar'];
 my_sess.delete(keys) %]
 
  # Destroying session
  [% my_sess.destroy %] 


For detailed module info, see:

perldoc Template::PLugin::Apache::SessionManager

by

- Enrico



6 months of labour

2003-06-23 Thread Clinton Gormley




Hi all

Well, my last 6 months of loving labour has finally drawn to a close with the launch of my site.

http://www.traveljury.com is supposed to be an IMDB style travel site, which will contain the type of information you would find in Lonely Planet or Rough Guides, but contributed by a community. At the moment, it's pretty empty, but you've got to start somewhere :)

Thanks to everybody who has pointed me in the right direction (and given their assurances about chosen directions!) I would appreciate any feedback, bug-reports and suggestions from all of you experienced webmasters out there, and any information or pictures you can contribute to traveljury would be greatly appreciated.

I'm off to South America in a couple of weeks - laptop in hand - to start populating the database.

thanks again

Clinton Gormley





[mp2] Having trouble setting params with CGI

2003-06-23 Thread Michael Maciag



I'm trying to use CGI to get/set params 
withinmy mp2 PerlResponseHandler, at least until Apache::Request for mp2 
is released. The get works just fine but my clients don't see the params I'm 
trying to set. Is it likely I just have an error somewhere or is there anything 
I have to dodifferently than just a simple:
 $q-param( -name = 
'myparam', -value ='myvalue')
in my handler?

-
Mike