cvs commit: modperl-2.0/src/modules/perl mod_perl.h

2002-05-31 Thread dougm
dougm 2002/05/31 08:41:11 Modified:src/modules/perl mod_perl.h Log: add some MP_LARGE_FILES_ macros that could come in handy Revision ChangesPath 1.43 +22 -0 modperl-2.0/src/modules/perl/mod_perl.h Index: mod_perl.h

cvs commit: modperl-2.0/xs/APR/PerlIO apr_perlio.c

2002-05-31 Thread dougm
dougm 2002/05/31 08:41:40 Modified:xs/APR/PerlIO apr_perlio.c Log: seek is ok if both perl and apr have largefiles enabled Revision ChangesPath 1.14 +1 -1 modperl-2.0/xs/APR/PerlIO/apr_perlio.c Index: apr_perlio.c

Re: Confusion: Perl/mod_perl ????

2002-05-31 Thread Matt Sergeant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 31 May 2002 4:09 am, Stas Bekman wrote: Actually the new site (which should be released realy soon now) has a nice and easy intro to mod_perl (thanks to Bill Moseley and others who helped):

Re: Best compile options for perl 5.8 for mod_perl 1.x and 2.x

2002-05-31 Thread Rafael Garcia-Suarez
Steven Lembark wrote: Also worth using large file support if you habitually munge 2GB files. Which is the default on linux. -- Rafael Garcia-Suarez

RE: separating C from V in MVC

2002-05-31 Thread Jeff AA
From: Jesse Erlbaum [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 22:42 To: 'Ray Zimmerman'; modperl List; Mason List Jesse, thanks for your comments, I found them very interesting. I am comfortable with Perl and Web programming (though previously not the two together) and am about to embark

RE: separating C from V in MVC

2002-05-31 Thread Greg_Cope
From: Jeff AA [mailto:[EMAIL PROTECTED]] Hiya, my 2 pence worth: status] this seems to indicate the Model accepts method calls and returns data that will be rendered elsewhere. In our planned development, there is a LOT of tabular data - do you use any standards for the data being

Re: DBI error_log Logging

2002-05-31 Thread Geoffrey Young
Cees Hek wrote: Quoting Jayce^ [EMAIL PROTECTED]: I've been researching the different modules for pushing your access log to a dbi storage vs. local file and have one question which I'm not sure any of them are able to do yet. Perhaps somebody has already thought of this and I'm just

'Apache::Session' using REMOTE_USER as key

2002-05-31 Thread Brian Parker
Hi, I would like to implement sessions using only $ENV{REMOTE_USER} as the session key as described on page 259 (Ch. 5) of the Eagle book. I'm trying to use Apache::Session::MySQL. Since I'm generating my own session key outside of Apache::Session (using $ENV{REMOTE_USER}), what method(s) do I

Re: Persistent Net::Telnet Objects

2002-05-31 Thread Perrin Harkins
French, Shawn wrote: Recall that I am using: Apache/1.3.20 (Win32) mod_perl/1.25_01-dev mod_ssl/2.8.4 OpenSSL/0.9.6a on Windows 2000 with PHP 4.21 Would this be why my scripts are working? Mystery solved! Yes, that's why. You are running mod_perl in single process mode because you're on

Re: Persistant references [was] Persistent Net::Telnet Objects

2002-05-31 Thread Perrin Harkins
First, there is no way to effectively pass compiled code between processes at this time. It isn't likely to happen with Perl 5 because attempts at loading compiled bytecode from disk have usually had poor performance and other issues. Second, what you're proposing is probably not a good idea

Re: separating C from V in MVC

2002-05-31 Thread Perrin Harkins
Jeff AA wrote: do you use any standards for the data being returned to the Controller? eg do you use a struct [ie hash/array Perl primitive] or do you return an object? eg a table object etc? HTML::Template requires you to pass a perl data structure. Template Toolkit can handle objects as

Re: DBI error_log Logging

2002-05-31 Thread Jayce^
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 along those same lines, I forgot to mention Apache::LogSTDERR, which is similar I suppose (though I've never used it). Any idea where I can find this one? Searching CPAN doesn't give me anything. Jayce^ -BEGIN PGP SIGNATURE- Version:

Re: DBI error_log Logging

2002-05-31 Thread Geoffrey Young
Jayce^ wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 along those same lines, I forgot to mention Apache::LogSTDERR, which is similar I suppose (though I've never used it). Any idea where I can find this one? Searching CPAN doesn't give me anything.

RE: separating C from V in MVC

2002-05-31 Thread Jesse Erlbaum
Hey Jeff Perrin -- HTML::Template requires you to pass a perl data structure. Template Toolkit can handle objects as well (i.e. automatically call their accessor methods to fetch properties). Passing perl structs is faster, while passing objects allows for some additional tricks

RE: separating C from V in MVC

2002-05-31 Thread Jeff AA
From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 16:27 Perrin, fab feedback as ever, I think I am almost at the 1,000 thanks for Perrin level 8-) - oh, and 1,000 apologies too, for all the questions you've answered before! I hope you don't mind me pestering you with yet

mod_perl 1.99_01 installation problem

2002-05-31 Thread Allard Hoeve
1. Problem Description: * WrapXS/APR/Lock/Lock.c fails to compile. See the cut and paste at the end (3). * CC seems to be looking for libperl.(so|a).5.6.1 in /usr/lib/perl/5.6.1/CORE/, but Debian seems to put libperl.so.5.6.1 in /usr/lib. This doesn't seem like a mod_perl installer bug,

mod_perl error

2002-05-31 Thread Boex,Matthew W.
can i ignore this error? the script seems to work fine... Subroutine print_get_num redefined at /var/www/perl/cancel.cgi line 19. Subroutine print_gonna_del redefined at /var/www/perl/cancel.cgi line 27. Subroutine print_do_nothing redefined at /var/www/perl/cancel.cgi line 74. Subroutine

RE: separating C from V in MVC

2002-05-31 Thread Rob Nagler
Jeff AA writes: space and that column 5 which contains a possibly long name should use the remaining available space, whilst column 1 which contains a name should not be wrapped? We call this a Grid widget in our framework (bOP). There are many options:

Re: separating C from V in MVC

2002-05-31 Thread Perrin Harkins
Hi Jesse, It's the addition tricks which bug me out. With those two words you establish the mother of all slippery slopes to architecture oblivion. When you have objects passing freely between your Controller and View (which are quoted here, 'cuz I don't think they are separate in this

Apache::TicketAccess

2002-05-31 Thread Arnold van Kampen
Hi Where did it go? Arnold

Re: mod_perl error

2002-05-31 Thread Per Einar Ellefsen
At 19:42 31.05.2002, Boex,Matthew W. wrote: can i ignore this error? the script seems to work fine... Subroutine print_get_num redefined at /var/www/perl/cancel.cgi line 19. Subroutine print_gonna_del redefined at /var/www/perl/cancel.cgi line 27. Subroutine print_do_nothing redefined at

Re: Apache::TicketAccess

2002-05-31 Thread Per Einar Ellefsen
At 21:50 31.05.2002, Arnold van Kampen wrote: Hi Where did it go? The modules written for the Eagle book haven't been released to CPAN. They are available online. See http://modperl.com:9000/book/source/apachemod-code-1.02/lib/Apache/ -- Per Einar Ellefsen [EMAIL PROTECTED]

RE: mod_perl error

2002-05-31 Thread Kyle Oppenheim
I assume you are running your scripts under Apache::Registry. Apache::Registry checks the modification time of your script on every request and will recompile (via eval) it if it has changed. However, nothing removes the old symbols from the previous compilation, so Perl generates a warning.

Re: separating C from V in MVC

2002-05-31 Thread Barry Hoggard
Jesse Erlbaum wrote: As you have already identified, the Model is simply a Perl module. The most important thing to think of when writing a Model module is to make sure you make it entirely separate from the user interface. It helps me to think of the methods in the Model as potentially

Re: Apache::TicketAccess

2002-05-31 Thread Jon Robison
You might want to consider Apache::AuthTicket, which IS in CPAN. It's an expanded version of the Eagle book's modules, and very capable, yet also relatively simple. --Jon Robison Per Einar Ellefsen wrote: At 21:50 31.05.2002, Arnold van Kampen wrote: Hi Where did it go? The modules

Re: separating C from V in MVC

2002-05-31 Thread Dave Rolsky
On Fri, 31 May 2002, Barry Hoggard wrote: Do you have a favorite approach for writing the Model objects? At Investorama we created a class called TableObject that would deal with getting/setting values from the database, plus doing data verification like checking for values being present

Re: 'Apache::Session' using REMOTE_USER as key

2002-05-31 Thread Brian Parker
Perrin Harkins wrote: Brian Parker wrote: I'm trying to use Apache::Session::MySQL. Since I'm generating my own session key outside of Apache::Session (using $ENV{REMOTE_USER}), what method(s) do I have to override to prevent Apache::Session from trying to create a session key for

Re: [Mason] Re: separating C from V in MVC

2002-05-31 Thread Perrin Harkins
Dave Rolsky wrote: Alzabo could handle a _lot_ of this for you. Class::DBI could handle some of it (though less). SPOPS is also a good choice for this. All of them are on CPAN, just waiting for you. - Perrin

Re: separating C from V in MVC

2002-05-31 Thread Perrin Harkins
Jeff AA wrote: For example to render a date in Excel some jiggery pokey is required, and I would also expect a HTML V to print pretty dates rather than 20020531172534 (or something other than the raw stringification) Yes. That's why you need to use a good templating system. There is a

Re: separating C from V in MVC

2002-05-31 Thread Rob Nagler
Barry Hoggard writes: Do you have a favorite approach for writing the Model objects? One solution is to create an interface for accessors, i.e. get, which the views call on objects they need to access. Our controller and model objects share this same accessor interface, which allows the views

Re: separating C from V in MVC

2002-05-31 Thread Rob Nagler
Perrin Harkins writes: That's exactly what I'm saying, except that I don't see what your layout manager is for. You should just pass some data to a template (or maybe to something fancier for certain types of output like Excel) and then the template makes all the decisions about how to

Re: separating C from V in MVC

2002-05-31 Thread Perrin Harkins
Rob Nagler wrote: Layout managers accept a declaration ('this cell is northwest', 'this other one expands across the bottom', etc.). They interpret the decl at run-time. It's like HTML, but more declarative. Some attributes of our Grid manager are: cell_nowrap - don't wrap the text in

Re: separating C from V in MVC

2002-05-31 Thread Perrin Harkins
Rob Nagler wrote: Let's say, though, that you want the same template to render in a WAP, Opera, Konqueror, IE, NS, etc. The implementation of Grid handles this for you. For example, our code automatically renders style sheets for IE5+, but no other browsers. (This isn't in Grid, but you

Re: separating C from V in MVC

2002-05-31 Thread Rob Nagler
Perrin Harkins writes: The same template? How does the layout manager help with that? Does it modify the template? It would make more sense to me if this were a sort of abstraction to factor out common layout ideas from multiple templates. I think we're miscommunicating. I'm talking

Re: separating C from V in MVC

2002-05-31 Thread Stas Bekman
I think it'll be great to present the current discussion as a tutorial, so others can make a better use of the ideas thrown here, rather digging in archives. This could be a great addition to our growing tutorials section for the new site we are working on:

Re: Getting AuthCookie to work on W2K

2002-05-31 Thread Randy Kobes
On Thu, 30 May 2002, Hill, Ronald wrote: Hello All, I am trying to setup the Apache-AuthCookie module and have run into a problem. Every time I try to login it just returns my back to the login screen. I can't get past the login screen!! (I have tried with Netscape and IE). Next I wrote a