-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
-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
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 .
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 .
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
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
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
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
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
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
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
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
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
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
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
--- 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
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
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
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
-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:
Jon Robison wrote:
Can MIME::Lite do attachments?
yes, it can. install it, then read
perldoc MIME::Lite
for info on how.
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
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
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
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,
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
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
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
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
--- 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
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
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
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
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
* 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.
* 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?
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
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.
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
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:
--- 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
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
É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:
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
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
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
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
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
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.
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
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
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
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
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.
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
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
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
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
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).
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
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
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
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
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.
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
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
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
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
_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 =
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
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
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
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
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
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 =
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
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
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
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
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
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
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
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
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.
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
85 matches
Mail list logo