Re: XML vs Perl (Re: separating C from V in MVC)

2002-06-13 Thread Matt Sergeant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 13 June 2002 6:20 am, Rob Nagler wrote: Matt Sergeant writes: This assumes you need XML in the first place. No, it does not. The rest of my post spoke about XML as a data format and set of tools, not as a syntax. Please stop

RE: separating C from V in MVC

2002-06-13 Thread Jeff AA
-Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 03:43 To: Fran Fabrizio; [EMAIL PROTECTED] Subject: Re: separating C from V in MVC 2. Does the first part of my code above even remotely resemble a Controller? Sort of. It does choose a

Re: tutorials (was: Re: rfc Apache::Dynagzip)

2002-06-13 Thread Igor Sysoev
On Wed, 12 Jun 2002, Slava Bizyayev wrote: Since now the draft tutorial Features of Content Compression for Different Web Clients (for Part IV: Client side facts and bugs) is available for preview and discussion at http://devl4.outlook.net/devdoc/Dynagzip/ContentCompressionClients.html .

Re: tutorials (was: Re: rfc Apache::Dynagzip)

2002-06-13 Thread Igor Sysoev
On Wed, 12 Jun 2002, Slava Bizyayev wrote: Since now the draft tutorial Features of Content Compression for Different Web Clients (for Part IV: Client side facts and bugs) is available for preview and discussion at http://devl4.outlook.net/devdoc/Dynagzip/ContentCompressionClients.html .

Re: Idiot question: headers at the base of the page.

2002-06-13 Thread Issac Goldstand
umm... If you send them twice. Aside from happening by doing $r-send_http_header twice (it's happened), it could be something else is automatically sending header s for you... Just an idea... Issac - Original Message - From: Rafiq Ismail (ADMIN) [EMAIL PROTECTED] To: [EMAIL

Re: Idiot question: headers at the base of the page.

2002-06-13 Thread Ged Haywood
Hi all, On Thu, 13 Jun 2002, Issac Goldstand wrote: - Original Message - From: Rafiq Ismail (ADMIN) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 13, 2002 12:19 AM Under what circumstances would my page render, dumping the HTTP headers at the base? Other than

RE: separating C from V in MVC

2002-06-13 Thread Fran Fabrizio
Ok so Collections was the missing piece in my puzzle. Very interesting (and intuitive now that you present it to me). Controller: --- my $Stale = Model::WatchCollection-new( status = 'stale' ); Controller: --- my $WC= Model::WatchCollection-new(); Out of these two, I

mod_perl2 and ASP

2002-06-13 Thread Stefan Sabolowitsch
Hi NG, Does someone have a HowTow for mod_perl2 with Apache2 (Win32) and ASP? If possible ask in the detail. Thanks for your assistance. Stefan

header woes

2002-06-13 Thread Arnold van Kampen
Hi Why do I have have so much trouble doing some header parsing? I am doing header parsing because I wanted to check out cookie behaviour on relocation/redirection by browser. I get stuck when I cannot get with the basic stuff. Clues appreciated.. I tried to go back to basics with a

Re: separating C from V in MVC

2002-06-13 Thread Jon Robison
I just wanted to comment on Number 3, here. Scroll down ;-) kyle dawkins wrote: Fran (et al) I've stayed out of the MVC chitchat for a long time (very interesting thread) because it's such a deep topic. But seeing as how Fran has some concrete questions... 3. How do you prevent a

Re: Idiot question: headers at the base of the page.

2002-06-13 Thread Jon Robison
Don't recall offhand, but I know there is an http.conf momd_perl config command that will set 'auto-header' for you. Perhaps that is already on? --Jon Robison Issac Goldstand wrote: umm... If you send them twice. Aside from happening by doing $r-send_http_header twice (it's happened), it

Re: header woes

2002-06-13 Thread Arnold van Kampen
Sorry, forgot the error message: Use of uninitialized value in join or string at (eval 9) line 16. [ = my $type = $table-{'Content-type'}; ] On Thu, 13 Jun 2002, Arnold van Kampen wrote: Hi Why do I have have so much trouble doing some header parsing? I am doing header

Sending Mail

2002-06-13 Thread Jon Robison
Can anyone give me recommendations on a good Mail handler that integrates well with mod_perl? I have a system whereby I want to give people the ability to mail the currently viewed page to someone. Once they select a To: address, the system will look up some data, re-construct the viewed page in

Re: header woes

2002-06-13 Thread Per Einar Ellefsen
At 16:04 13.06.2002, Arnold van Kampen wrote: forgot the error message: Use of uninitialized value in join or string at (eval 9) line 16. [ = my $type = $table-{'Content-type'}; ] Maybe because there is no Content-Type sent with a request unless it's a POST request? Content-Type is usually

RE: Sending Mail

2002-06-13 Thread Joe Breeden
We use MIME::Lite seems to work well for us. -Original Message- From: Jon Robison [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: Sending Mail Can anyone give me recommendations on a good Mail handler that integrates well with

Re: Mapping to location /

2002-06-13 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: At 23:06 12.06.2002, md wrote: I'm not quite sure about this, been wondering about it, but in theory you should be able to use DirectoryIndex index.phtml and like that you won't have to worry about / etc anymore. Try it out.. And so I

Re: Sending Mail

2002-06-13 Thread Jon Robison
Can MIME::Lite do attachments? --Jon Joe Breeden wrote: We use MIME::Lite seems to work well for us. -Original Message- From: Jon Robison [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: Sending Mail Can anyone give me

Re: separating C from V in MVC

2002-06-13 Thread kyle dawkins
Fran Out of these two, I would think that the first one is actually better. What if you have 300,000 watches and only 25 are stale, for example (numbers that are not all that far from the truth, in my case)? That'd be a lot of data I'd be slinging around in the 2nd example. Which is

Re: Sending Mail

2002-06-13 Thread Geoffrey Young
Jon Robison wrote: Can MIME::Lite do attachments? yes. there is an example in the cookbook that uses MIME::Lite: http://www.modperlcookbook.org/code/ch15/Cookbook/Mail.pm http://www.modperlcookbook.org/code/ch15/Cookbook/EmailUploads.pm HTH --Geoff

RE: separating C from V in MVC

2002-06-13 Thread Jeff AA
-Original Message- From: Fran Fabrizio [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 13:23 To: Jeff AA Cc: [EMAIL PROTECTED] Subject: RE: separating C from V in MVC Controller: --- my $Stale = Model::WatchCollection-new( status = 'stale' ); Controller:

Re: Sending Mail

2002-06-13 Thread fliptop
Jon Robison wrote: Can MIME::Lite do attachments? yes, it can. install it, then read perldoc MIME::Lite for info on how.

Re: Mapping to location /

2002-06-13 Thread Per Einar Ellefsen
At 16:04 13.06.2002, md wrote: --- Per Einar Ellefsen [EMAIL PROTECTED] wrote: At 23:06 12.06.2002, md wrote: I'm not quite sure about this, been wondering about it, but in theory you should be able to use DirectoryIndex index.phtml and like that you won't have to worry about / etc

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-13 Thread Vuillemot, Ward W
I am not sure if I follow completely. How do you verify that user who the user says he/she is? I log into your web-site as memberA. You kindly leave me a delicious cookie with my username stored in it. Maybe even my password (I hope not!). Now, I know that another member, memberB, has special

mod_perl-based registration programs?

2002-06-13 Thread Bill Moseley
Before I start rewriting... Anyone know of a mod_perl based program for registering people for events? The existing system allows people to sign up and cancel for classes and workshops that are offered at various locations and also for on-line classes. We have a collection of training

Re: mod_perl2 and ASP

2002-06-13 Thread Randy Kobes
On Thu, 13 Jun 2002, Stefan Sabolowitsch wrote: Does someone have a HowTow for mod_perl2 with Apache2 (Win32) and ASP? If possible ask in the detail. As modperl-2 is still in the development stage, using this may not be straightforward - see http://perl.apache.org/release/docs/ for docs,

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-13 Thread Drew Taylor
At 07:32 AM 6/13/02 -0700, Vuillemot, Ward W wrote: I log into your web-site as memberA. You kindly leave me a delicious cookie with my username stored in it. Maybe even my password (I hope not!). Now, I know that another member, memberB, has special rights to your site. What is stopping me

RE: mod_perl/passing session information (MVC related, maybe...)

2002-06-13 Thread Rob Nagler
Vuillemot, Ward W writes: I log into your web-site as memberA. You kindly leave me a delicious cookie with my username stored in it. Maybe even my password (I hope not!). Now, I know that another member, memberB, has special rights to your site. What is stopping me from editting the

Re: Mapping to location /

2002-06-13 Thread Perrin Harkins
md wrote: What I'm really trying to do is more like the PHP I'm replacing. I should be able to go to: www.someserver.com/index.phtml for a dynamic page and www.someserver.com/index.html for a static page. I'm guessing that my best solution would be to use HTML::Mason or Apache::ASP

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-13 Thread John Siracusa
On 6/13/02 11:04 AM, Rob Nagler wrote: With sessionID, you have an ID and information that is checksum'd. Sessions and user IDs are equivalent. They are called credentials which allow access to a system. There's no fundamental difference between hijacking a session or stealing a user

Re: Mapping to location /

2002-06-13 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: At 16:04 13.06.2002, md wrote: What I'm really trying to do is more like the PHP I'm replacing. I should be able to go to: www.someserver.com/index.phtml for a dynamic page and www.someserver.com/index.html for a static page. Does PHP

Re: Sending Mail

2002-06-13 Thread Doug Silver
I'm using Mail::Sender which can send attachments. Not sure how it compares to Mime::Lite. -doug On Thu, 13 Jun 2002, Jon Robison wrote: Can anyone give me recommendations on a good Mail handler that integrates well with mod_perl? I have a system whereby I want to give people the ability

Re: PerlSetVar WhatEverSecure

2002-06-13 Thread Michael Schout
Brian Reichert wrote: Location /formscript/login PerlSetVar FormScriptSecure 1 AuthType Apache::AuthTicket ... /Location But, in each case, my login program is server in the clear. What am I missing? THe authnameSecure setting only affects the cookie. If you want

Re: separating C from V in MVC

2002-06-13 Thread Perrin Harkins
Fran Fabrizio wrote: Now, how do you represent in the model a complex query that joins across 5 of the nouns? Others have already commented on this, but I want to point out that this is a general OO modelling question, not an MVC one, and there are many resources available to help you learn

Re: Sending Mail

2002-06-13 Thread Jon Robison
Geesh, it's nice having the books author(s) on the mailing list here! --Jon R. Geoffrey Young wrote: Jon Robison wrote: Can MIME::Lite do attachments? yes. there is an example in the cookbook that uses MIME::Lite: http://www.modperlcookbook.org/code/ch15/Cookbook/Mail.pm

Re: header woes

2002-06-13 Thread darren chamberlain
* Arnold van Kampen [EMAIL PROTECTED] [2002-06-13 09:34]: Why do I have have so much trouble doing some header parsing? I am doing header parsing because I wanted to check out cookie behaviour on relocation/redirection by browser. I get stuck when I cannot get with the basic stuff.

Re: PerlTransHandler problem

2002-06-13 Thread darren chamberlain
* Rasoul Hajikhani [EMAIL PROTECTED] [2002-06-12 19:12]: Hello folks, I am trying to implement a simple PerlTransHandler to change: http://myserver/ to http://myserver.rhythm.com/ And here is my code: [-- snip --] Have you seen http://httpd.apache.org/docs/misc/rewriteguide.html?

Re: separating C from V in MVC

2002-06-13 Thread John Siracusa
On 6/13/02 1:29 PM, Perrin Harkins wrote: Just be careful that you don't end up making this into something that mirrors the SQL exactly. There might be 4 tables involved in finding out what kind of credit card the user had, but that gets hidden behind this API. If you find yourself writing

Setting Cookies

2002-06-13 Thread Rasoul Hajikhani
Hello folks, Yesterday I posted a question about PerlTransHandler and received a lot of responses. Thanks to all of you who replied. However, my problem persists. I try to be more precise in explaining the problem today. My login module sets a few cookies that expire 24 hrs after they are set.

Re: Fooey. Can't compile mod_perl.

2002-06-13 Thread Wim Kerkhoff
southernstar wrote: Hi, I can't compile mod_perl 1.27 on Cygwin with apache 1.3.24-5 src no matter what I do. At first it complained (make complained) that it didn't know how to make httpd.h etc, so I made them dummy targets with .PHONEY. OK, fine. Then it couldn't find them in

Help with apache::sandwich

2002-06-13 Thread Eric Terry
I have the following added to my httpd.conf file: # (Apache::Sandwich)# Add directory custom "header"Location /web/httpd/htdocs/elterry SetHandler perl-script PerlHandler Apache::Sandwich PerlSetVar HEADER "/my_header.html"/Location Here are my "html" files: my_header.html:

Re: Mapping to location /

2002-06-13 Thread md
--- Perrin Harkins [EMAIL PROTECTED] wrote: I don't really see the problem. You can map all the URLs that end with a certain extension to one module that does some work and then calls a template. OK...the little light bulb has just come on... I didn't realize that I could put my

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-13 Thread Perrin Harkins
Rob Nagler wrote: A session is useful for very limited things, like remembering if this user is logged in and linking him to a user_id. We store this information in the cookie. I don't see how it could be otherwise. It's the browser that maintains the login state. My preferred design

Re: Help with apache::sandwich

2002-06-13 Thread Paul de Repentigny
Éric, Try: Directory /web/httpd/htdocs/elterry ... snip ... /Directory instead. Location is used for URIs, not directories. An alternative would be: Location /elterry ... snip ... /Location if DocumentRoot is set to /web/httpd/htdocs for Apache. Paul Eric Terry écrivit:

Re: PerlSetVar WhatEverSecure

2002-06-13 Thread Brian Reichert
On Thu, Jun 13, 2002 at 10:40:18AM -0500, Michael Schout wrote: Brian Reichert wrote: Location /formscript/login PerlSetVar FormScriptSecure 1 AuthType Apache::AuthTicket ... /Location But, in each case, my login program is server in the clear. What am I

Re: separating C from V in MVC

2002-06-13 Thread Dave Rolsky
On Thu, 13 Jun 2002, Perrin Harkins wrote: As you can see it gets messy fast, and I didn't even cover the Mastercard part. It would probably have terruble performance too. This is why people usually just write this kind of report as a big SQL query instead. You can make a model object

Re: What causes memory leaks during graceful restarts?

2002-06-13 Thread Vivek Khera
DM == Doug MacEachern [EMAIL PROTECTED] writes: DM what version of perl? what modperl Makefile.PL options? DM if you're using modperl as a dso, you'll need at least perl 5.6.1 and DM modperl-1.26 to prevent this leakage on restarts. Even with these versions, I get massive leakage on restart

Re: mod_perl2.0 / TIPool

2002-06-13 Thread Doug MacEachern
On Thu, 13 Jun 2002, Stathy G. Touloumis wrote: Is there an idea of when the TIPool API will be available for mod_perl 2.0? probably never now that threads::shared has been implemented in perl-5.8, which can be used to provide the same functionality (i think). threads::shared came to be after

Re: mod_perl2.0 / TIPool

2002-06-13 Thread Matt Sergeant
On Thursday 13 June 2002 10:46 pm, Doug MacEachern wrote: On Thu, 13 Jun 2002, Stathy G. Touloumis wrote: Is there an idea of when the TIPool API will be available for mod_perl 2.0? probably never now that threads::shared has been implemented in perl-5.8, which can be used to provide the

Re: Setting Cookies

2002-06-13 Thread ___cliff rayman___
ok - here is something ugly - off the top of my head. when a user submits without a cookie, or a cookie that u do not recognize: 1) Set-Cookie for the proper domain (i.e. .rhythym.com) 2) redirect them to the requested page, but with a fully qualified host/domain (i.e.

Apache::URI::hostname is blank

2002-06-13 Thread Adam Ness
For some odd reason, Apache::URI::hostname is showing up as blank. I've tried reading the various man pages and the Oriley book, but I can't find any explanation for why hostname would be blank.. Am I overlooking something? Thanks in advance. -- Write the bad things that are done to you in

RE: Perl_Tstack_sp_ptr

2002-06-13 Thread Doug MacEachern
On Tue, 11 Jun 2002, Paul G. Weiss wrote: 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. worth skimming the [EMAIL PROTECTED] archives. if the

Re: threads in 5.8 (was: mod_perl2.0 / TIPool)

2002-06-13 Thread John Siracusa
On 6/13/02 5:58 PM, Matt Sergeant wrote: Also note perl.com is now running an article on threads::shared. http://www.perl.com/pub/a/2002/06/11/threads.html It's mainly aimed at module authors, but it could be of interest anyway. Does anyone know the logic behind making the threads modules

Re: Apache::URI::hostname is blank

2002-06-13 Thread Geoffrey Young
Adam Ness wrote: For some odd reason, Apache::URI::hostname is showing up as blank. I've tried reading the various man pages and the Oriley book, but I can't find any explanation for why hostname would be blank.. Am I overlooking something? yes :) see Recipe 5.3 in the cookbook for

Re: threads in 5.8 (was: mod_perl2.0 / TIPool)

2002-06-13 Thread Matt Sergeant
On Thursday 13 June 2002 11:37 pm, John Siracusa wrote: On 6/13/02 5:58 PM, Matt Sergeant wrote: Also note perl.com is now running an article on threads::shared. http://www.perl.com/pub/a/2002/06/11/threads.html It's mainly aimed at module authors, but it could be of interest anyway.

Re: threads in 5.8 (was: mod_perl2.0 / TIPool)

2002-06-13 Thread John Siracusa
On 6/13/02 6:40 PM, Matt Sergeant wrote: Does anyone know the logic behind making the threads modules all lowercase? I'd expect it to be Threads::Shared, not threads::shared. Pragmas are lowercase. And use threads; is really a pragma. A pragma with class methods? A pragma that exports

Re: threads in 5.8 (was: mod_perl2.0 / TIPool)

2002-06-13 Thread Matt Sergeant
On Thursday 13 June 2002 11:50 pm, John Siracusa wrote: On 6/13/02 6:40 PM, Matt Sergeant wrote: Does anyone know the logic behind making the threads modules all lowercase? I'd expect it to be Threads::Shared, not threads::shared. Pragmas are lowercase. And use threads; is really a

which handler?

2002-06-13 Thread Gabriel C Millerd
i want to make a apacher perlhandler method for location / (i think) that will check and see if my system state is ok (like database, jabber, and imap connectivity), and if not will redirect to another page. if everything is kosher i would like everything to move on like normal ... which

Re: which handler?

2002-06-13 Thread Geoffrey Young
Gabriel C Millerd wrote: i want to make a apacher perlhandler method for location / (i think) that will check and see if my system state is ok (like database, jabber, and imap connectivity), and if not will redirect to another page. if everything is kosher i would like everything to move

Re: mod_perl2.0 / TIPool

2002-06-13 Thread Stas Bekman
Doug MacEachern wrote: On Thu, 13 Jun 2002, Stathy G. Touloumis wrote: Is there an idea of when the TIPool API will be available for mod_perl 2.0? probably never now that threads::shared has been implemented in perl-5.8, which can be used to provide the same functionality (i think).

Re: which handler?

2002-06-13 Thread Gabriel C Millerd
On Thu, 13 Jun 2002, Geoffrey Young wrote: sounds like a job for a PerlTransHandler... thanks keep in mind that the PerlTransHandler cannot be applied to any Location (or any other container like Directory) so it will automatically apply to an entire (virtual) server. that would have

Re: separating C from V in MVC

2002-06-13 Thread Rob Nagler
Dave Rolsky writes: Trying to jam a thick layer of OO-goodness over relational data is asking for a mess. Most OLTP applications share a lot in common. The user inputs data in forms. The fields they edit often correspond one-to-one with database fields, and certainly their types. The user

Re: mod_perl/passing session information (MVC related, maybe...)

2002-06-13 Thread Rob Nagler
Perrin Harkins writes: My preferred design for this is to set one cookie that lasts forever and serves as a browser ID. I like this. It's clean and simple. In this sense, a browser is not really a session. The only thing I don't like is garbage collection. unique browser ID (or session

Re: which handler?

2002-06-13 Thread Gabriel C Millerd
On Thu, 13 Jun 2002, Geoffrey Young wrote: sounds like a job for a PerlTransHandler... if ($not_ok) { $r-uri('/not_ok_page.html'); return DECLINED; } this works great until i run into an Alias or a mod_rewite rule it seems. what is the proper way to indicate success

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Andreas J. Koenig
On Wed, 12 Jun 2002 23:45:41 +0200, [EMAIL PROTECTED] (Andreas J. Koenig) said: Currently I have a testcase that is still 7300 lines of perl code for the server (after all these are in one file) but only 50 lines for the client. I hope to cut that down to a reasonable size tomorrow.

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Jarkko Hietaniemi
On Thu, Jun 13, 2002 at 06:52:13PM +0200, Andreas J. Koenig wrote: On Wed, 12 Jun 2002 23:45:41 +0200, [EMAIL PROTECTED] (Andreas J. Koenig) said: Currently I have a testcase that is still 7300 lines of perl code for the server (after all these are in one file) but only 50 lines for

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Doug MacEachern
On Thu, 13 Jun 2002, Andreas J. Koenig wrote: this might be worth a try. since the segv is something stdio, must be one of std{out,err} getting corrupted somehow. ap_error_log2stderr does this: API_EXPORT(void) ap_error_log2stderr(server_rec *s) { if ( s-error_log != NULL

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Doug MacEachern
On Thu, 13 Jun 2002, Andreas J. Koenig wrote: Program received signal SIGSEGV, Segmentation fault. 0x400ed761 in _IO_fflush (fp=0x877f1e0) at iofflush.c:43 43 iofflush.c: No such file or directory. (gdb) bt #0 0x400ed761 in _IO_fflush (fp=0x877f1e0) at iofflush.c:43 also, if possible

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Jarkko Hietaniemi
On Thu, Jun 13, 2002 at 08:26:30PM +0200, Andreas J. Koenig wrote: On Thu, 13 Jun 2002 10:32:01 -0700 (PDT), Doug MacEachern [EMAIL PROTECTED] said: On Thu, 13 Jun 2002, Andreas J. Koenig wrote: Program received signal SIGSEGV, Segmentation fault. 0x400ed761 in _IO_fflush

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Jarkko Hietaniemi
_IO_read_end = 0x646e4128 Address 0x646e4128 out of bounds, _IO_read_base = 0x73616572 Address 0x73616572 out of bounds, _IO_write_base = 0x202e4a20 Address 0x202e4a20 out of bounds, _IO_write_ptr = 0x6eb6c34b Address 0x6eb6c34b out of bounds, _IO_write_end =

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Doug MacEachern
seems to be an Apache::Request issue with perlio. i can get a similar segv with the modperl test change below. system() triggers a PERL_FLUSHALL_FOR_CHILD; with the Apache::Upload filehandles still alive. there is some ugly code to import the FILE* from ApacheUpload_fh to a PerlIO, which

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Doug MacEachern
also note that the problem goes away if PERL_FLUSHALL_FOR_CHILD happens after the Apache::Upload handles have gone out of scope. the change below does not trigger and segvs, all tests pass. andreas, you could try to make sure your Apache::Upload handles have gone out of scope (or are

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Doug MacEachern
patch below also cures (when calling system() with Apache::Upload handles still alive). seems PerlIO_importFILE() should have a mode argument, in this case we only want to allow reading on the given FILE* --- Request/Request.xs~ Sun Jan 20 09:27:35 2002 +++ Request/Request.xs Thu Jun 13

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Nicholas Clark
On Thu, Jun 13, 2002 at 09:36:42PM +0300, Jarkko Hietaniemi wrote: On Thu, Jun 13, 2002 at 08:26:30PM +0200, Andreas J. Koenig wrote: On Thu, 13 Jun 2002 10:32:01 -0700 (PDT), Doug MacEachern [EMAIL PROTECTED] said: On Thu, 13 Jun 2002, Andreas J. Koenig wrote: Program received

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Andreas J. Koenig
On Thu, 13 Jun 2002 15:11:04 -0700 (PDT), Doug MacEachern [EMAIL PROTECTED] said: patch below also cures (when calling system() with Apache::Upload handles still alive). Thank you so much, Doug. Your diagnostics confirmed: the upload filehandle was still in scope. The fix to Request.xs

Re: SEGV in bleadperl@17165 under mod_perl

2002-06-13 Thread Nicholas Clark
On Thu, Jun 13, 2002 at 11:22:46PM +0300, Jarkko Hietaniemi wrote: _IO_read_end = 0x646e4128 Address 0x646e4128 out of bounds, _IO_read_base = 0x73616572 Address 0x73616572 out of bounds, _IO_write_base = 0x202e4a20 Address 0x202e4a20 out of bounds, _IO_write_ptr =

RE: PerlSetVar WhatEverSecure

2002-06-13 Thread Jim Helm
It's not the prettiest in the world, but try this (see attached file). If anyone sees room for improvement, please, chime in. It's working fine on the intranet site I run at work - and I haven't tried to make it any better since it's working as is. You use this script instead of the loginscreen

Re: separating C from V in MVC

2002-06-13 Thread Dave Rolsky
On Thu, 13 Jun 2002, Rob Nagler wrote: Most OLTP applications share a lot in common. The user inputs data in forms. The fields they edit often correspond one-to-one with database fields, and certainly their types. The user wants reports which are usually closely mapped to a

Re: separating C from V in MVC

2002-06-13 Thread Gunther Birznieks
At 12:58 PM 6/14/2002, Dave Rolsky wrote: On Thu, 13 Jun 2002, Rob Nagler wrote: I'm not a big fan of O/R. I prefer R/O. But to each their own. Would one of you mind providing a 1 paragraph definition of each? I am afraid that I am starting to get lost in the semantic differences of

Re: separating C from V in MVC

2002-06-13 Thread Dave Rolsky
On Fri, 14 Jun 2002, Gunther Birznieks wrote: Would one of you mind providing a 1 paragraph definition of each? I am afraid that I am starting to get lost in the semantic differences of controllers and actions and O/R, R/O? Well, here's my take on it. An Object-Relational mapper takes

Re: separating C from V in MVC

2002-06-13 Thread Fran Fabrizio
Shop demostrates how you can build a simple application with only a couple of custom SQL queries. The rest are simple joins and CRUD. If you need more complex queries, there are escapes. You still probably end up with a list of tuples for your reports. The key we have found is

Re: separating C from V in MVC

2002-06-13 Thread Rob Nagler
Dave Rolsky writes: The Pet Shop has a grand total of 13 tables. How well does this approach work with 90 tables? Works fine with bivio.com, which has 50 tables. How does it handle arbitrary queries that may join 1-6 tables, with conditionals and sorting of arbitrary complexity? The

Re: separating C from V in MVC

2002-06-13 Thread Dave Rolsky
On Fri, 14 Jun 2002, Fran Fabrizio wrote: How well does this approach work with 90 tables? How does it handle arbitrary queries that may join 1-6 tables, with conditionals and sorting of arbitrary complexity? I'd have to agree, most of the real-world scenarios I have run across do not

Re: Fooey. Can't compile mod_perl. / cygwin / success

2002-06-13 Thread Wim Kerkhoff
Yea. If I just install Apache using the MSI installer, it automatically sets up the service, and it works dandy. After I install the mod_perl 1.x PPM package from the uwinnipeg.ca site, the service no longer starts apache. Even if I use apache -k to remove, then re-add the service. I think it

Re: Fooey. Can't compile mod_perl. / cygwin / success

2002-06-13 Thread Wim Kerkhoff
Wim Kerkhoff wrote: perl Makefile.PL USE_APACI=1 EVERYTHING=1 DO_HTTPD=1 \ PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB Bleah, here I go replying to my own message... That last part isn't needed. The only reason I had it there was as the remnants of a shot in the dark, based of a post in the archives.

Re: threads in 5.8 (was: mod_perl2.0 / TIPool)

2002-06-13 Thread Medi Montaseri
We are really having fun here of courseand personally I'm more interested in the features than the writing Thread or thread...but perhaps one place to draw the line would be If a directive or hint changes the behavior of the compiler or interpreter in a non-reversable fashion then it deserve