cvs commit: modperl-2.0/lib/ModPerl WrapXS.pm

2002-06-11 Thread dougm
dougm 2002/06/11 09:27:57 Modified:lib/ModPerl WrapXS.pm Log: be better prepared for GvUNIQUE support Revision ChangesPath 1.46 +3 -3 modperl-2.0/lib/ModPerl/WrapXS.pm Index: WrapXS.pm

Re: Logging under CGI

2002-06-11 Thread Sam Tregar
On Mon, 10 Jun 2002, Bill Moseley wrote: You are correct to worry. You should use flock() to prevent your log file from becoming corrupted. See perldoc -f flock() for more details. Maybe it's a matter of volume. Or size of string written to the log. But I don't flock, and I keep the log

Re: separating C from V in MVC

2002-06-11 Thread Matt Sergeant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 10 June 2002 11:23 pm, Vuillemot, Ward W wrote: : Really interesting, xml : appears to be : the final destination for most of us, even if now i : prefer objects. : : Ciao, Valerio That is my big question. Is

Re: Logging under CGI

2002-06-11 Thread Sam Tregar
On Mon, 10 Jun 2002, Tom Brown wrote: ?? AFAIK, Files opened in append mode, and written to without buffering, should _not_ get corrupted in any manner that flock would prevent. (basically small writes should be atomic.) Right, and does Perl write with buffering when you call print()? Yes,

Re: Logging under CGI

2002-06-11 Thread Tom Brown
On Tue, 11 Jun 2002, Sam Tregar wrote: On Mon, 10 Jun 2002, Tom Brown wrote: ?? AFAIK, Files opened in append mode, and written to without buffering, should _not_ get corrupted in any manner that flock would prevent. (basically small writes should be atomic.) Right, and does Perl

Re: Logging under CGI

2002-06-11 Thread Sam Tregar
On Tue, 11 Jun 2002, Tom Brown wrote: Right, and does Perl write with buffering when you call print()? Yes, it does! huh? That's what $| is all about, and $|++ is a pretty common line of code. A pretty common line of code that wasn't in the example shown! And that only unbuffers the

SEGV in bleadperl@17165 under mod_perl

2002-06-11 Thread Andreas J. Koenig
PAUSE is suffering from a SEGV since I installed RC1. After I upgraded yesterday to snapshot 17165 I finally caught the following within gdb. I'd appreciate further instructions where to go from here. Program received signal SIGSEGV, Segmentation fault. 0x400d05ff in _IO_fflush (fp=0x89e4178) at

Re: Perl_Tstack_sp_ptr

2002-06-11 Thread Stas Bekman
Paul G. Weiss wrote: Sorry if this has been covered - I searched to no avail. I'm getting the following error when trying to start an Apache 2.0.36 with ModPerl::Registry: /usr/libexec/ld-elf.so.1: /usr/lib/perl5/site_perl/5.6.1/i386-freebsd-thread-multi/auto/Apache/Request

RE: separating C from V in MVC

2002-06-11 Thread Jeff AA
From: Rob Nagler [mailto:[EMAIL PROTECTED]] Sent: 10 June 2002 20:41 ... a Facade is the front face of the web site which includes colors, text, URLs, etc. All the other MVC components talk to the currently selected Facade when they need these values. The controller calls

Re: OSC early bird and mod_perl T-Shirts

2002-06-11 Thread Lupe Christoph
On Tuesday, 2002-06-11 at 10:44:26 +0100, Leon Brocard wrote: Yup, I have a designer here who is willing to come up with something. Constructive ideas welcome offlist. Better slogans than modperl: the only way to fly, modperl: obey your thirst etc. very welcome too ;-) SCNR: Quetzalcoatl:

RE: OSC early bird and mod_perl T-Shirts

2002-06-11 Thread John Bass
mod_perl: The camel with wings John -Original Message- From: Lupe Christoph [mailto:[EMAIL PROTECTED]] Sent: 11 June 2002 11:51 To: Leon Brocard Cc: mod_perl list Subject: Re: OSC early bird and mod_perl T-Shirts On Tuesday, 2002-06-11 at 10:44:26 +0100, Leon Brocard wrote: Yup, I

Header weirdness under mod_perl

2002-06-11 Thread Dodger
Hi. I've set up my system to move gradually over to mod_perl and been clearing hurdles for several weeks now -- things like Apache::DBI cached connections to mysql never timing out and eventually running mysql out of connections, strange sudden bogging-down of the server, and so on, and I've

RE: OSC early bird and mod_perl T-Shirts

2002-06-11 Thread Gunther Birznieks
Maybe this year Randal Schwartz can get his idea implemented. I think he had suggested a motto last year that people seemed OK with but then the T-Shirts never got done in the end... Ah, the annual motto vote... :) Just re-read the same thread in the archives last year. Later, Gunther

Re: separating C from V in MVC

2002-06-11 Thread Chris Winters
On Mon, 2002-06-10 at 13:29, Ray Zimmerman wrote: So how is everybody else handling URL mapping? Do others group this kind of data together with fonts, colors, etc? And where do you define it? As Perrin mentioned, OpenInteract does this by allowing individual packages (distributable

The T in MVC?

2002-06-11 Thread Jeff AA
I have some questions for users of Templating... we currently, (in another language) have a set of standard functions for things like printing data tables, so in our HTML page outlines, we just insert a call to printDataTable( table = $table, user = $user, data = $data, layout = layout );

Re: separating C from V in MVC

2002-06-11 Thread James A Duncan
On Tuesday, June 11, 2002, at 01:37 PM, Chris Winters wrote: On Mon, 2002-06-10 at 13:29, Ray Zimmerman wrote: So how is everybody else handling URL mapping? Do others group this kind of data together with fonts, colors, etc? And where do you define it? A single mod_perl handler catches

RE: Perl_Tstack_sp_ptr

2002-06-11 Thread Paul G. Weiss
I should also mention -- my perl is patched with the patch to DynaLoader.pm that Doug MacEachern posted in this list. -P -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 4:06 AM To: Paul G. Weiss Cc: [EMAIL PROTECTED] Subject: Re:

sub init() ... does this have any special purpose?

2002-06-11 Thread Mark Korey
I was once told that in order for mod_perl CGI code to work properly all functionality/logic needed to reside in a function named init(). Now that I'm pouring over mod_perl documentation getting things running, I haven't found any mention of this. So ... is there any special purpose w/in

Re: separating C from V in MVC

2002-06-11 Thread Ward Vuillemot
I know we are straying WOT, but I would love to get a better feel for XML, XSLT and AxKit. There are a lot of different systems out there. . .and part of me wants to just do it my way (in large part to learn), but I also realize that I really want to get to the business of also being

Re: separating C from V in MVC

2002-06-11 Thread Matt Sergeant
On Tue, 11 Jun 2002, Ward Vuillemot wrote: I know we are straying WOT, but I would love to get a better feel for XML, XSLT and AxKit. There are a lot of different systems out there. . .and part of me wants to just do it my way (in large part to learn), but I also realize that I really want

Re: separating C from V in MVC

2002-06-11 Thread Perrin Harkins
Ward Vuillemot wrote: I know we are straying WOT, but I would love to get a better feel for XML, XSLT and AxKit. Barrie Slaymaker has written a couple of articles on perl.com that serve as a good intro to AxKit. - Perrin

Re: sub init() ... does this have any special purpose?

2002-06-11 Thread Stas Bekman
Mark Korey wrote: I was once told that in order for mod_perl CGI code to work properly all functionality/logic needed to reside in a function named init(). Now that I'm pouring over mod_perl documentation getting things running, I haven't found any mention of this. So ... is there any

requesting feedback on MVC implementation

2002-06-11 Thread Ray Zimmerman
All this MVC discussion has been very helpful. There are obviously many ways to do MVC web apps and I'd love to get a bit of feedback on the approach we are currently planning for ours before we jump into coding. Our app is a platform for running econ experiments, each of which is structured

mod_perl2 Web Application Standard?

2002-06-11 Thread Nigel Hamilton
Hi, All this talk of MVC and a universal despatch mechanism has started me thinking about Java Web Applications and how they are bundled into a standard configuration (e.g., Java's Servlet standard 2.3) Would such a standard (albeit optional) be useful for mod_perl2?

RE: Perl_Tstack_sp_ptr

2002-06-11 Thread Doug MacEachern
On Tue, 11 Jun 2002, Paul G. Weiss wrote: I had already thought of that. Strace shows that the correct libperl.so is the one that is being loaded. Just to make sure I deleted all others and did ln -s /usr/lib/perl5/5.6.1/i386-freebsd-thread-multi/CORE /usr/lib but strace tells me

Re: separating C from V in MVC

2002-06-11 Thread Perrin Harkins
John Hurst wrote: Still, I don't think that replacing this: Location /search SetHandler perl-script PerlHandler Controller::Search /Location with this: [% Ctrl.Search() %] makes Controller::Search any less a controller. You're right. It just looks kind of odd to me,

Re: mod_perl 1.99-02 cgi_header_out

2002-06-11 Thread Doug MacEachern
On Mon, 10 Jun 2002, John Bass wrote: Hello, Does anyone have a solution for the cgi_header_out function within mod_perl 2. I have found it is used by Apache:Session, and would like to use this module. i was going to ask, why on earth would Apache::Session use cgi_header_out, but then

Re: separating C from V in MVC

2002-06-11 Thread John Siracusa
On 6/11/02 12:46 PM, Perrin Harkins wrote: John Hurst wrote: Still, I don't think that replacing this: Location /search SetHandler perl-script PerlHandler Controller::Search /Location with this: [% Ctrl.Search() %] makes Controller::Search any less a controller. You're

Re: Perl_Tstack_sp_ptr

2002-06-11 Thread Stas Bekman
could this be a version of freebsd with broken threads support? i've heard many cases of that. chances are if you rebuild perl without -Dusethreads and apache with the prefork mpm, this problem won't be there. so the problem that I see on linux is unrelated? this tested with prefork

RE: AuthenNTLM, IE, KeepAlives, Post?

2002-06-11 Thread Ged Haywood
Hi there, On Tue, 11 Jun 2002, Harnish, Joe wrote: Does anyone know of issues with mod_perl and post? Here's one. 73, Ged. From [EMAIL PROTECTED] Tue Jun 11 18:16:11 2002 Date: Wed, 20 Mar 2002 19:20:29 + (GMT) From: Ged Haywood [EMAIL PROTECTED] To: Stas Bekman [EMAIL PROTECTED]

Re: Perl_Tstack_sp_ptr

2002-06-11 Thread dougm
On Wed, 12 Jun 2002, Stas Bekman wrote: so the problem that I see on linux is unrelated? dunno, i built with -Duseshrplib and seems ok linkage wise. tho some ModPerl-Registry are tests failing with the same problem in special_blocks: # testing : ModPerl::Registry is not running BEGIN blocks

Re: separating C from V in MVC

2002-06-11 Thread Valerio_Valdez Paolini
On Tue, 11 Jun 2002, John Siracusa wrote: You're right. It just looks kind of odd to me, invoking a template for something that is not a display-related task. It looks like the way people typically do MVC in Mason or Embperl, with a first template that doesn't do anything but invoke a

RE: AuthenNTLM, IE, KeepAlives, Post?

2002-06-11 Thread Harnish, Joe
Title: RE: AuthenNTLM, IE, KeepAlives, Post? Ged, Will this help even when I am not up loading files? Here is the test.pl script I am using. #!/usr/bin/perl require CGI; use strict; my $q = new CGI; print $q-header; print EODUMP; html body form method=post input type=text

Re: separating C from V in MVC

2002-06-11 Thread Ron Pero
At 01:01 PM 06/11/02 -0400, John Siracusa wrote: On 6/11/02 12:46 PM, Perrin Harkins wrote: John Hurst wrote: Still, I don't think that replacing this: Location /search SetHandler perl-script PerlHandler Controller::Search /Location with this: [% Ctrl.Search() %] makes

Re: separating C from V in MVC

2002-06-11 Thread Gerald Richter
[% Ctrl.Search() %] makes Controller::Search any less a controller. You're right. It just looks kind of odd to me, invoking a template for something that is not a display-related task. It looks like the way people typically do MVC in Mason or Embperl, with a first template that

Apache Error Log

2002-06-11 Thread steve
Hey people.. Wondering if someone could help me with this... I recently started using modperl2/apache2. Everything seems to work ok except for Apache's error logging. I don't seem to get my apache stderr untill I shutdown/restart the server. Thenit prints out the whole thing in one big

mod perl and RecDescent module error

2002-06-11 Thread Praveen Ray
Hi I have the simplest test case of a mod perl module which is using Rec::Descent module to parse some string. I can run the script on command line so there is no problem with the script but when run via web server as a mod_perl module, I get an error in the error_log : [Tue Jun 11 14:25:27

FreeBSD Apache/mod_perl/OpenSRS/expat problem + solution

2002-06-11 Thread Bill O'Hanlon
(Apologies if you see this twice -- I sent it from an unsubscribed email address first.) Hi folks, I just ran down a problem that was somewhat hard to find, and I didn't see any mention of anything like it in the archives anywhere. I thought it might be helpful to mention the details in case

Fw: Apache Error Log

2002-06-11 Thread steve
- Original Message - From: steve To: [EMAIL PROTECTED] Sent: Sunday, June 09, 2002 7:42 AM Subject: Apache Error Log Hey people.. Wondering if someone could help me with this... I recently started using modperl2/apache2. Everything seems to work ok except for Apache's error

installation problems

2002-06-11 Thread will
I am trying to install mod perl as part of Apache-ASP and am stuck at the following error: Apache.exe -k start Can't locate Cwd.pm in INC (INC contains: .) at (eval 1) line 1. I've searched the web and haven't found any solutions. I have checked the perl INC using 'perl -V' and the path to

2 New Books Needed (was MVC soup, separating C from V in MVC)

2002-06-11 Thread Ron Pero
Two good books could be written on these subjects: * Mastering Design Patterns with Perl (I understand that Mastering Algorithms with Perl sells quite well) * Rapid Web Application Development with Perl The second one would describe the various application frameworks available, and related

Re: OSC early bird and mod_perl T-Shirts

2002-06-11 Thread Alfred Vahau
May I suggest a camel with the wings of an eagle or a double humped eagle??? The two icons are associated with the two invaluable references of the Perl world and somehow the design must incorporate them. I'm not about to suggest which creature gets the prominence. Final point: I'm 10 hrs

RE: OSC early bird and mod_perl T-Shirts

2002-06-11 Thread Vuillemot, Ward W
here is a stretch mod_perl, MODe opPERLtunity mod_perl. one thing you cannot FOO::BAR (but you could (objectively, of course!)) mod perl. scrumpt-diddly-delicious. : -Original Message- : From: Alfred Vahau [mailto:[EMAIL PROTECTED]] : Sent: Tuesday, June 11, 2002 2:54

Apache Error Log

2002-06-11 Thread steve
Hey people.. Wondering if someone could help me with this... I recently started using modperl2/apache2. Everything seems to work ok except for Apache's error logging. I don't seem to get my apache stderr untill I shutdown/restart the server. Thenit prints out the whole thing in one big

[OT+RFC] Template.pm-patch

2002-06-11 Thread Nico Erfurth
Hi, some weeks ago i did a little improvement to HTML::Template, at least i think it is a improvement ;) It changes the way arrays/loops are handled. 1.) If you pass in a array-reference, it will be not dereferenced anymore I did this, so i can use a small Wrapper-class, which allows me to

Re: [OT+RFC] Template.pm-patch

2002-06-11 Thread Sam Tregar
On Tue, 11 Jun 2002, Nico Erfurth wrote: It changes the way arrays/loops are handled. 1.) If you pass in a array-reference, it will be not dereferenced anymore I did this, so i can use a small Wrapper-class, which allows me to tie a database-statement to an array, and returning the

RE: Perl_Tstack_sp_ptr

2002-06-11 Thread Doug MacEachern
On Tue, 11 Jun 2002, Paul G. Weiss wrote: I suspect that pre-fork would work too, but I'm desparately trying to get threads working. you should try a different os then. i'm sitting next to the guy who wrote worker mpm, he says the freebsd thread library does not work well enough for use

Re: separating C from V in MVC

2002-06-11 Thread Perrin Harkins
Gerald Richter wrote: Embperl 2.0 can invoke such a controller (it's called application object there) after it has setup it's request parameters (GET/POST data, session data, etc.) and before any templates are get a chance to run. That sounds like a good addition to Embperl. Can you give a

Re: [OT+RFC] Template.pm-patch

2002-06-11 Thread Nico Erfurth
On Tue, 11 Jun 2002, Sam Tregar wrote: On Tue, 11 Jun 2002, Nico Erfurth wrote: It changes the way arrays/loops are handled. 1.) If you pass in a array-reference, it will be not dereferenced anymore I did this, so i can use a small Wrapper-class, which allows me to tie a

Re: [OT+RFC] Template.pm-patch

2002-06-11 Thread Sam Tregar
On Tue, 11 Jun 2002, Nico Erfurth wrote: I thought about this, and i'm wondering how much ppl realy use it in this way. IMHO it should be a Don't try this, it will break, instead introducing this copy-workaround. But i think i will use this patch only for my private-version, because i don't

Re: [OT+RFC] Template.pm-patch

2002-06-11 Thread Nico Erfurth
On Tue, 11 Jun 2002, Sam Tregar wrote: I thought about this, and i'm wondering how much ppl realy use it in this way. IMHO it should be a Don't try this, it will break, instead introducing this copy-workaround. But i think i will use this patch only for my private-version, because i

[OT] mod_perl obfuscation / T-shirt ?

2002-06-11 Thread Thomas Klausner
Hi! Concerning the yearly what to put on the t-shirts-discussion... I was thinking about doing a mod_perl Obfuscation for some time, and today I found some time and wrote up something .. It's not that much obfusacated, but it looks nice (mod_perl in ASCII art) and works (see the POD after the

RE: Perl_Tstack_sp_ptr

2002-06-11 Thread Paul G. Weiss
OK, until I can decide whether to take a chance on FreeBSD-current or to convince my employers who were so enamored of FreeBSD that we should rebuild the server with Linux, I'm going prefork. It still doesn't work precisely as it should though. I decided to go with the cvs builds of apache and

Re: [OT] mod_perl obfuscation / T-shirt ?

2002-06-11 Thread Geoffrey Young
Thomas Klausner wrote: Hi! Concerning the yearly what to put on the t-shirts-discussion... ah, yes... :) I was thinking about doing a mod_perl Obfuscation for some time, and today I found some time and wrote up something .. It's not that much obfusacated, but it looks nice

nightmare with custom directives being ignored

2002-06-11 Thread Noam Solomon
I'm writing again about the problem I was having yesterday with modules being unable to set their own custom directives. This is becoming my own private nightmare, and I am certain it is the result of a very stupid move I made: somehow in my initial grapplings, I upgraded from what I

Re: mod_perl2 Web Application Standard?

2002-06-11 Thread Stephen Adkins
Hi, Hi, All this talk of MVC and a universal despatch mechanism has started me thinking about Java Web Applications and how they are bundled into a standard configuration (e.g., Java's Servlet standard 2.3) Would such a standard (albeit optional) be useful for mod_perl2? I think it would

nightmare -- ignored custom directives

2002-06-11 Thread Noam Solomon
(Please disregrard previous message I hit send prematurely...) I'm writing again about the problem I was having yesterday with modules being unable to set their own custom directives. This is becoming my own private nightmare, and I am certain it is the result of a very stupid move I

Re: separating C from V in MVC

2002-06-11 Thread Rob Nagler
Matt Sergeant writes: There's quite a few things that are a lot harder to do with XML in plain perl (especially in SAX) than they are in XSLT. This assumes you need XML in the first place. It's trivial to manipulate Perl data structures in Perl. It's also easy to manipulate XML in Perl.

Re: installation problems

2002-06-11 Thread Stas Bekman
will wrote: I am trying to install mod perl as part of Apache-ASP and am stuck at the following error: Apache.exe -k start are you mixing Apache 2.0 with mod_perl 1.0? -k is an Apache 2.0 option whenever reporting problems you have to tell us what you are doing and what versions you are

Re: [OT] mod_perl obfuscation / T-shirt ?

2002-06-11 Thread Stas Bekman
I was thinking about doing a mod_perl Obfuscation for some time, and today I found some time and wrote up something .. It's not that much obfusacated, but it looks nice (mod_perl in ASCII art) and works (see the POD after the code..) tres cool. yes, very cool Thomas, looks like a good

Re: separating C from V in MVC

2002-06-11 Thread Gerald Richter
Gerald Richter wrote: Embperl 2.0 can invoke such a controller (it's called application object there) after it has setup it's request parameters (GET/POST data, session data, etc.) and before any templates are get a chance to run. That sounds like a good addition to Embperl. Can you

Re: Apache Error Log

2002-06-11 Thread Stas Bekman
steve wrote: Hey people.. Wondering if someone could help me with this... Please do not repost your question 3 times! I recently started using modperl2/apache2. Everything seems to work ok except for Apache's error logging. I don't seem to get my apache stderr untill I shutdown/restart

OSCOM - Final call for participants

2002-06-11 Thread Christian Jaeger
Hello all I'm forwarding this to the AxKit and mod_perl lists - sorry for being that late, hope it's not too late for anyone who wants to participate. I'm thinking about visiting the event myself, if not speaking, but I've already had a talk this March in Zurich (badly prepared and

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-11 Thread Doug MacEachern
On Tue, 11 Jun 2002, Andreas J. Koenig wrote: PAUSE is suffering from a SEGV since I installed RC1. After I upgraded yesterday to snapshot 17165 I finally caught the following within gdb. I'd appreciate further instructions where to go from here. test case? #4 0x816fc96 in Perl_my_popen

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-11 Thread Andreas J. Koenig
As Jarkko and Nick have pointed out, line numbering is off. I cannot find out why this is the case, the sources *are* from 17165 as I can verify via Apache::Status. On Tue, 11 Jun 2002 08:23:18 -0700 (PDT), Doug MacEachern [EMAIL PROTECTED] said: doug On Tue, 11 Jun 2002, Andreas J. Koenig

Re: Building high load mod_perl/Mason servers

2002-06-11 Thread Peter Bi
General ideas are in Stas' introduction and other mod_perl books. Here are some practical numbers which may be useful for your reference. (assuming that all your servers have 1G RAM) 1) when daily unique IP are about 25K. Run mod_perl on the database machine with persistent Apache::DBI database