Re: Propogating Errors / E-Toys

2002-06-30 Thread F . Xavier Noria
On Sun, 30 Jun 2002 12:58:08 -0400 Perrin Harkins [EMAIL PROTECTED] wrote: : Well, naturally the answer is it depends. Most database errors can't : be gracefully recovered from, so we would let them propagate up. If it : was possible for a database error to be caused by user input (say, a :

[OT] what drives Amazon?

2002-06-15 Thread F. Xavier Noria
Does anybody know which is the technology behind Amazon? -- fxn

Re: separating C from V in MVC

2002-06-14 Thread F . Xavier Noria
On Fri, 14 Jun 2002 10:34:47 +0100 (BST) Mark Fowler [EMAIL PROTECTED] wrote: : On Fri, 14 Jun 2002, Nigel Hamilton wrote: : : Generally I try to minimise the layers/tiers/abstraction between : the front-end and the database - for me OO/SQL abstraction is something : akin to 'GOTO

Re: MVC advice..?

2002-05-29 Thread F . Xavier Noria
On Wed, 29 May 2002 09:22:00 -0400 Aaron Ross [EMAIL PROTECTED] wrote: : Is there a neat way of dynamically loading in the appropriate control : subclass? Something proven and widely used. : : For what it's worth, I use the eval trick too. Although it may seem a : little clunky, I believe

Re: Memory Leaks

2002-05-21 Thread F . Xavier Noria
On Mon, 20 May 2002 16:23:40 -0500 Gregory Matthews [EMAIL PROTECTED] wrote: : Unfortunately, we only have one machine. If we did employ the cron job as : a clean-up utility once per day, wouldn't the potential impact of a site : being unavailable only be for a few seconds (until Apache

Re: Monitoring the processes

2002-05-21 Thread F . Xavier Noria
On Mon, 20 May 2002 15:50:35 -0500 Gregory Matthews [EMAIL PROTECTED] wrote: : Thanks to everyone for the great input on Memory Leaks. Now that I have a : good starting point for tracking down the problem, when I TEST for leaks, : or simply check for a continued increase in server memory

Re: Memory Leaks

2002-05-20 Thread F . Xavier Noria
On Sun, 19 May 2002 23:34:24 -0400 Perrin Harkins [EMAIL PROTECTED] wrote: : Leaks are caused by circular references, the string form of eval (at : least it used to leak a little), nested closures (sometimes created : accidentally with the Error module) I am using the Error module in my current

Re: Memory Leaks

2002-05-20 Thread F . Xavier Noria
On Mon, 20 May 2002 10:15:02 +0100 (BST) Matt Sergeant [EMAIL PROTECTED] wrote: : my $um = UserManager-new; : # ... : try { : $um-write_user($user); : $um-dbh-commit; : } catch Exception::DB with { : my $e = shift; : debug Exception: $e; :

Re: [OT] Refs don't work, like I want

2002-05-17 Thread F . Xavier Noria
On Fri, 17 May 2002 17:10:53 +0300 (EEST) Viljo Marrandi [EMAIL PROTECTED] wrote: : $vars-{'key2'} = value of second key; The hash $vars points to has a key named key2. : $vars = { : xxx = AAA, : yyy = BBB, : zzz = CCC, : }; Now you change the reference stored in $var. It points

Re: Desperate for ePerl fix on 5.6.1

2002-05-12 Thread F . Xavier Noria
On Thu, 9 May 2002 04:29:43 +0100 Nick Barton [EMAIL PROTECTED] wrote: : I've installed ePerl on FreeBSD 4.5-Stable and have Perl 5.6.1 i386-freebsd. : Running ePerl standalone it reports 'Can't locate loadable object for module : Parse::ePerl' i.e. can't find the C extension. : : What I need

convention on logging?

2002-05-07 Thread F . Xavier Noria
I am writing a web application that uses Apache modules and core classes in a MVC style. AFAICT using $r-log-debug() is the standard way to print debug messages in Apache modules, but which would be the right way to print debug messages in the core classes provided both types of modules are

Re: problems setting up Apache::AuthCookieDBI (solved but no fully understood)

2002-05-06 Thread F . Xavier Noria
On Mon, 06 May 2002 10:04:28 -0400 Fran Fabrizio [EMAIL PROTECTED] wrote: : Jacob Davies (author of Apache::AuthCookieDBI) confirmed the secret key : file has to be set before the PerlModule directive, it is a bug in the : documentation. : : Except it doesn't really, because it works fine for

Re: problems setting up Apache::AuthCookieDBI (solved but no fully understood)

2002-05-04 Thread F . Xavier Noria
On Fri, 3 May 2002 22:02:18 -0700 Jim Helm [EMAIL PROTECTED] wrote: : I was having the exact same problem 2 days ago... Could it be a : difference in static vs. dso? I'm running mod_perl as a dso - how about : you two? I compiled httpd. Jacob Davies (author of Apache::AuthCookieDBI)

Re: problems setting up Apache::AuthCookieDBI

2002-05-03 Thread F . Xavier Noria
On Thu, 02 May 2002 15:22:59 -0400 Fran Fabrizio [EMAIL PROTECTED] wrote: : Do you have this in httpd.conf (or mod_perl.conf) : : PerlSetVar BuscaWAPDBI_SecretKeyFile /home/fxn/prj/bw/buscawap/etc/auth.key : : ? I have all mod_perl-related things in mod_perl.conf, and httpd.conf ends with

Re: problems setting up Apache::AuthCookieDBI (solved but no fully understood)

2002-05-03 Thread F . Xavier Noria
On Thu, 2 May 2002 20:10:15 +0200 F. Xavier Noria [EMAIL PROTECTED] wrote: : I am having problems configuring Apache::AuthCookieDBI and am a bit : lost, since it seems there is something wrong with the secret key : file I cannot see, I attach below the configuration in case it can : help. I have

Re: problems setting up Apache::AuthCookieDBI (solved but no fully understood)

2002-05-03 Thread F . Xavier Noria
On Fri, 03 May 2002 09:09:08 -0400 Fran Fabrizio [EMAIL PROTECTED] wrote: : : : Loading Apache::AuthCookieDBI after setting WhatEverDBI_SecretKeyFile : has solved the problem. I am doing something wrong or the example in the : manual page would need to be modified? : : That's odd, I load my

problems setting up Apache::AuthCookieDBI

2002-05-02 Thread F . Xavier Noria
I am having problems configuring Apache::AuthCookieDBI and am a bit lost, since it seems there is something wrong with the secret key file I cannot see, I attach below the configuration in case it can help. I have checked the permissions of the file (the server runs in by box as fxn): $ ls -la

Re: problems setting up Apache::AuthCookieDBI

2002-05-02 Thread F . Xavier Noria
On Thu, 02 May 2002 20:24:10 +0200 Per Einar Ellefsen [EMAIL PROTECTED] wrote: : At 20:10 02.05.2002, F.Xavier Noria wrote: : PerlModule Apache::AuthCookieDBI : : PerlSetVar BuscaWAPPath / : PerlSetVar BuscaWAPLoginScript /cgi/login.pl : : # These must be set : PerlSetVar BuscaWAPDBI_DSN

Re: Client capabilities

2002-04-30 Thread F . Xavier Noria
On Tue, 30 Apr 2002 16:26:00 +0400 Mike V. Andreev [EMAIL PROTECTED] wrote: : On Tue, 30 Apr 2002 13:00:33 +0100 : Simon Oliver [EMAIL PROTECTED] wrote: : : SO The main problem is that a client can be modified from the standard : SO install to prevent JavaScript, StyleSheets, Images, etc and

Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
If I understand it correctly, Apache::Session::Oracle uses a table called sessions with at least two columns, one called id, of type varchar2(32), and another called a_session, of type long. Say I want to store a pair of things in sessions: a reference to an object of type User (which includes

Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
If I understand it correctly, Apache::Session::Oracle uses a table called sessions with at least two columns, one called id, of type varchar2(32), and another called a_session, of type long. Say I want to store a pair of things in sessions: a reference to an object of type User (which includes

Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
If I understand it correctly, Apache::Session::Oracle uses a table called sessions with at least two columns, one called id, of type varchar2(32), and another called a_session, of type long. Say I want to store a pair of things in sessions: a reference to an object of type User (which includes

Re: Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
On Mon, 29 Apr 2002 01:11:59 +0200 F.Xavier Noria [EMAIL PROTECTED] wrote: : If I understand it correctly, Apache::Session::Oracle uses a table : called sessions with at least two columns, one called id, of type : varchar2(32), and another called a_session, of type long. I am sorry this

Re: How to generate pre-filled forms? (fwd)

2002-04-28 Thread F . Xavier Noria
On 29 Apr 2002 09:16:42 +1000 simran [EMAIL PROTECTED] wrote: : Have a look at the HTML::FillInForm module as well... Yeah, thank you, I'll give it a try. I guess this is a natural candidate for an output chain, the HTML generated by two or three Apache modules will need that post-process, so

How to generate pre-filled forms?

2002-04-26 Thread F . Xavier Noria
I am writing some modules that receive a form, process it, and return a page that includes that very form. Is there a standard way to fill that returned form so the user sees the same data he sent there, as CGI.pm does? -- fxn PS: I am using Apache modules + HTML::Template if that matters.

Re: How to generate pre-filled forms?

2002-04-26 Thread F . Xavier Noria
On Fri, 26 Apr 2002 16:15:52 +0200 F. Xavier Noria [EMAIL PROTECTED] wrote: : I am writing some modules that receive a form, process it, and return a : page that includes that very form. Is there a standard way to fill that : returned form so the user sees the same data he sent there, as CGI.pm

[OT] Doubt on directories for development

2002-04-21 Thread F . Xavier Noria
I am working in my first mod_perl real-life project, I would like to ask you for a directory layout for development. The fact is that developers in my team have Apache under /usr/local in Linux machines, but we would prefer to develop as normal users, not as www or nobody, though that will be

[OT] Doubt on directories for development

2002-04-20 Thread F . Xavier Noria
I am working in my first mod_perl real-life project, I would like to ask you for a directory layout for development. The fact is that developers in my team have Apache under /usr/local in Linux machines, but we would prefer to develop as normal users, not as www or nobody, though that will be

doubt on how long the cookbook will apply

2002-04-06 Thread F . Xavier Noria
I have the Eagle book but have not buyed the Cookbook yet. I wonder whether the way Perl modules are written nowadays is going to be significantly altered by Apache 2.0. If it won't, I'll definitely buy it this weekend. -- fxn

how to identify an interrupted downloads?

2002-03-25 Thread F . Xavier Noria
I would like to know whether in the server side one can figure out if a user has completed the download of a known file. Would bytes_sent() give the actual number of bytes sent if the download gets interrumpted by the client? Would yo know a better approach if not? -- fxn

Re: how to pass data in internal redirects?

2002-02-26 Thread F . Xavier Noria
On Tue, 26 Feb 2002 08:32:37 -0500 Henigan, Timothy [EMAIL PROTECTED] wrote: : I don't know if this is the best design, but it works for this application. : If you made it this far into the email, you might be interested in some : sample code...let me know. If you have comments, please speak

how to pass data in internal redirects?

2002-02-25 Thread F . Xavier Noria
As an exercise studying mod_perl I am trying to see how could the MVC pattern be implemented. I've thought a possible approach would be to write the model using normal Perl classes, and controllers and views with Apache modules. I suppose that controllers would use internal redirects to call

cleanest way to have globals in a CGI

2002-02-18 Thread F . Xavier Noria
Hello, I am the author of a CGI written in Perl (a single file) which is publicly available. Currently there are some file-scoped lexicals used in routines and I would like to change that in the next release in case anyone wanted to run it under Apache::Registry. Since there would be just one

Re: cleanest way to have globals in a CGI

2002-02-18 Thread F . Xavier Noria
On Mon, 18 Feb 2002 15:04:16 +0100 Me myself [EMAIL PROTECTED] wrote: : Since there would be just one Perl interpreter I guess plain use vars : would add symbols to a in principle shared by more code main namespace, : do you know whether there is a standard, clean solution for this? I somehow