On Tuesday 30 April 2002 03:44 pm, you wrote:
> You better fix these errors, and keep 'use strict' in place. Then
> PerlRun should work without any problems in most cases. If after fixing
> those problems you still have problems, come back with your relevant
> questions again.
> It's a good idea
In my post I've missed the 'd' token in "%05d"
Here are a few possible solutions that will do all the work for you
Apache/UUID.pm
--
package Apache::UUID;
use strict;
my($base, $seq);
die "Cannot push handlers" unless Apache->can('push_handlers');
init();
sub init {
Apache->pu
On Wed, 1 May 2002, Stas Bekman wrote:
> No, it's due to the fact that Apache 2.0 wasn't released yet (meaning
> that there are still API changes) and not everything has been
> implemented in mod_perl 2.0. If you want to see what works look at the
> test suite under t/ in the source distro.
Michael Robinton wrote:
>>>I'm just curious - what's wrong with the function you're already using?
>>
>>Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_)
>
>
>> TIMESTAMP . $$ . $GLOBAL++
Do not use concat, but sprintf 0 padding. Here is an example that can
happen ea
Patrick Mackinlay wrote:
> Hello,
>
> I am looking into using mod_perl with Apache 2 and the worker MPM, I was
> wondering what the status is of mod_perl for this setup. I noticed that
> in the docs it says it is in the alpha stage, is this due to perls
> ithreads not being quite ready?
No,
Hey,
Apache::ASP 2.33 is released, which you can find in your local CPAN, or
http://www.perl.com/CPAN-local/modules/by-module/Apache/
Below are the changes for 2.33 & 2.31 since I never officially
announced 2.31. This is a big release which has some bug fixes,
lots of new test cases to ver
> >I'm just curious - what's wrong with the function you're already using?
>
> Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_)
>TIMESTAMP . $$ . $GLOBAL++
I use the above.
If you create a global for the child process then that is adequate since
the PID belongs to
Hi,
With minimal JavaScript code you could identify the browser's capabilities.
Here is how you might approach the task.
If the browser is Lynx then send text only version otherwise send JavaScript
browser "sniffer". The JavaScript sniffer can check for CSS, DHTML, DOM,
plugins, etc... then redi
Yes, I have done that as well.
On Tue, 30 Apr 2002, Clayton Cottingham wrote:
> Have you compiled apache with noexpat in the apache?
>
> --
> Clayton Cottingham
> Air Games Wireless Inc.
> Suite 204, 309 W. Cordova St.
> Vancouver BC V6B 1E5 Canada
> Tel: +1.604.408.2228
> Cel: +1.604.720.3510
Have you compiled apache with noexpat in the apache?
--
Clayton Cottingham
Air Games Wireless Inc.
Suite 204, 309 W. Cordova St.
Vancouver BC V6B 1E5 Canada
Tel: +1.604.408.2228
Cel: +1.604.720.3510
Fax: +1.604.408.2649
Email: [EMAIL PROTECTED]
Web: www.airg.com
-Original Message-
From
Is there anyway to build mod_perl and Apache so
that my target installation does not require ActivePerl
on WinNT platforms.
I'm currently doing my development on a WinNT that has
ActivePerl installed and in my PATH. This is where I'm
developing perl modules. When I move my installation over
to a
>
>
>>Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_
>>
>
>But the timestamp will make it unique - as long as you're not serving
>several requests per second.
>
>
I'm building the system so I can be confident up to thousands of
requests/second. Looks like unique_id_module
David Jacobs wrote:
>
> >
> >I'm just curious - what's wrong with the function you're already using?
> >
> >Steve
> >
>
> Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_)
But the timestamp will make it unique - as long as you're not serving
several requests per second.
I should note then that it will also segfault if I don't attempt to
preload it and just 'use' it in a module. The only difference is that the
backtrace is significantly longer. :-)
On Tue, 30 Apr 2002, Matt Sergeant wrote:
> D. Hageman wrote:
> > I am having some issues utilizing XML::LibXSL
D. Hageman wrote:
> I am having some issues utilizing XML::LibXSLT into a mod_perl application
> I am working on. The problem displays itself as a segfault on server
> startup. The setup I have is a standard RedHat 7.2 box with the following
> updated packages:
>
> apache 1.3.23
> mod_perl 1
I am having some issues utilizing XML::LibXSLT into a mod_perl application
I am working on. The problem displays itself as a segfault on server
startup. The setup I have is a standard RedHat 7.2 box with the following
updated packages:
apache 1.3.23
mod_perl 1.26
libxml2 2.4.21
libxslt 1.0.
Hello,
I am trying to use a Perl Module that is an interface to a C Library.
These module use some "callbacks" , like these perl Code:
use strict;
use Mail::CClient qw(set_callback);
set_callback (login=> sub { return ("login","password"); } )
I think this is related with the cacching featur
Hi,
> >I'm just curious - what's wrong with the function you're already using?
>
> Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_)
TIMESTAMP . $$ . $GLOBAL++
might work just as well (as $global will persist)..
Cheers,
Alex
--
Alex Krohn <[EMAIL PROTECTED]>
>
>I'm just curious - what's wrong with the function you're already using?
>
>Steve
>
Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_)
mod_unique_id looks like a good solution, pending performance.
Thanks for your help so far, everyone!
David
David Jacobs wrote:
>
> I'm converting a few CGI scripts that used the PID as a cyclical unique
> number (in concert with TIMESTAMP - so it was TIMESTAMP.PID).
>
> Our goal is to find a replacement function that is extremely cheap
> (cheaper than say, random(100)) and will never repeat. An
Of course "srand" seeds "rand". And yes, it is a good way to generate
random numbers for a one time application RUN. CGI on the other hand
could pose a problem, as stated in the "Programming in PERL" book.
Salutations - RB
-Original Message-
From: Paul Johnson [mailto:[EMAIL PROTECTED]]
Hello,
OCNS>You could try -> Math::TrulyRandom CPAN module.
Perrin's comments still apply. There is no guarantee that a random number
generator of any type (truly random or otherwise) will return unique
values. In fact, one would fully expect repetition after some amount of
time.
Humbly,
A
You could try -> Math::TrulyRandom CPAN module.
RB
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 4:08 PM
To: OCNS Consulting
Cc: David Jacobs; [EMAIL PROTECTED]
Subject: Re: Cheap and unique
OCNS Consulting wrote:
> Check your "Pro
OCNS Consulting wrote:
> Check your "Programming in PERL" book. Specifically, the "srand" function.
'random' ne 'unique'
A random function could return the same number 10 times in a row. It's
very unlikely, but it could happen. That's the definition of random.
- Perrin
If you look at the docs for mod_unique it will generate a unique number in a properly
configured server farm making it a good candidate for this process if you are worried
about getting a unique number across several systems.
> -Original Message-
> From: Perrin Harkins [mailto:[EMAIL PR
Check your "Programming in PERL" book. Specifically, the "srand" function.
RB
-Original Message-
From: David Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: Cheap and unique
I'm converting a few CGI scripts that used the PID as a c
David Jacobs wrote:
> I'm converting a few CGI scripts that used the PID as a cyclical unique
> number (in concert with TIMESTAMP - so it was TIMESTAMP.PID).
>
> Our goal is to find a replacement function that is extremely cheap
> (cheaper than say, random(100)) and will never repeat. Any i
Hi there,
On Tue, 30 Apr 2002, David Jacobs wrote:
> I'm converting a few CGI scripts that used the PID as a cyclical unique
> number (in concert with TIMESTAMP - so it was TIMESTAMP.PID).
>
> Our goal is to find a replacement function that is extremely cheap
> (cheaper than say, random(1
I'm converting a few CGI scripts that used the PID as a cyclical unique
number (in concert with TIMESTAMP - so it was TIMESTAMP.PID).
Our goal is to find a replacement function that is extremely cheap
(cheaper than say, random(100)) and will never repeat. Any ideas?
Has anyone else faced t
Hello,
I am looking into using mod_perl with Apache 2 and the worker MPM, I was
wondering what the status is of mod_perl for this setup. I noticed that
in the docs it says it is in the alpha stage, is this due to perls
ithreads not being quite ready? Is anyone using such a setup, on linux
wit
Fran Fabrizio wrote:
>
> I spoke too soon.
>
> I need:
>
>
> push @Alias, [ qw(/cgi-bin/chimpkit/
> $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ];
>
>
> This does not appear to be possible because there's no way to pass in
> SERVER_ROOT to the apache startup. I have SERVER_ROOT getting set
I spoke too soon.
I need:
push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ];
This does not appear to be possible because there's no way to pass in SERVER_ROOT to
the apache startup. I have SERVER_ROOT
getting set in root's .bashrc, but when I execute ./apachec
F.Xavier Noria wrote:
> I installed Apache::DBI and "make test" run no test, but the "make test"
> of Apache::AuthCookieDBI tries to use Apache::DBI and fails because
> Apache/DBI.pm in line 202 invokes Apache->module(), which it seems it is
> not in the interface of the Apache class I have instal
Peter: please subscribe to the users list, see
http://perl.apache.org/preview/modperl-docs/dst_html/maillist/list-modperl.html
for more information. That is where you should post questions like this,
not the development list which is exclusively for mod_perl core development.
I forwarded your
What I am thinking is that if we can use Apache 2 to do it.
That is, to make Apache's function beyond a request/response model.
If this API is not there, I am proposing, if possible,
1. Add an Apache API to call sub init; when starting a thread.
2. Within sub init, it calls an Apache API to disab
At 18:50 30.04.2002, Kent, Mr. John wrote:
>Anyone have instructions on how
>to install mod-perl on Apache 2.0.35.
>
>Mod-Perl is looking for Apache's /src file which
>doesn't exist in 2.0.35.
Please remember that mod_perl 1.x is not compatible with Apache 2.x. The
mod_perl development version f
Anyone have instructions on how
to install mod-perl on Apache 2.0.35.
Mod-Perl is looking for Apache's /src file which
doesn't exist in 2.0.35.
Thanks,
John Kent
-
Steve,
How about another process on the same machine that periodically accesses
http://localhost/administration/schedule_tick.pl
- Garnet
Family Friendly Search - http://www.find11.com
BidSearch - See how much others are bidding on keywords -
http://bidsearch.find11.com
-Original Messag
At 13:12 30.04.2002, Joel Palmius wrote:
>Is there a mod_perl API (or some other standard way) to determine what a
>client web browser is capable of displaying? (images, tables, plugins...)
>
>I am developing a web questionnaire system in mod_perl (1.26) and I'm
>thinking about maybe dividing the
At 09:09 30.04.2002, Ricky wrote:
>When running under apache::perlrun, the script sometimes crash.
>In error_log show :
>"can't locate object method "uri" via package "Apache::perlrun"
This got me wondering: are you specifying Apache::PerlRun in any
configuration or Apache::perlrun? Please remem
Yikes, I just found an example of the exact thing I needed in the
cookbook (recipe 2.16). Sorry, and thanks!
-Fran
Yup. See the directive. Good description of how it works in
the Eagle Book.
-- Fran Fabrizio <[EMAIL PROTECTED]>
>
> I am trying to make a portable mod_perl.conf. I have things like:
>
> Alias /cgi-bin/chimpkit/ /usr/local/apache/cgi-bin/chimpkit/
>
> SetHandler perl-script
> Perl
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, e
I am trying to make a portable mod_perl.conf. I have things like:
Alias /cgi-bin/chimpkit/ /usr/local/apache/cgi-bin/chimpkit/
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
which really needs to become something like:
Alias /cgi
Ricky wrote:
> When running under apache::perlrun, the script sometimes crash.
I agree with Stas that if you fix the problems with your script running
under "strict" this will most likely go away.
> In mod_perl manual said that the script usually run in apache::perlrun
> widthout change but no
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 there is no
SO> way to detect this server side.
(and some text-based browsers can b
Martin Haase-Thomas wrote:
>
> HTTP defines an 'Accept' header.
But that's not much use. For example lynx replies with
HTTP_ACCEPT text/html, text/plain, image/*, image/jpeg, text/sgml,
video/mpeg, image/jpeg, image/tiff, image/x-rgb, image/png,
image/x-xbitmap, image/x-xbm, image/gif, ap
HTTP defines an 'Accept' header.
Joel Palmius wrote:
>Is there a mod_perl API (or some other standard way) to determine what a
>client web browser is capable of displaying? (images, tables, plugins...)
>
>I am developing a web questionnaire system in mod_perl (1.26) and I'm
>thinking about may
Is there a mod_perl API (or some other standard way) to determine what a
client web browser is capable of displaying? (images, tables, plugins...)
I am developing a web questionnaire system in mod_perl (1.26) and I'm
thinking about maybe dividing the display code into different levels
dependin
Ricky wrote:
> Hi All,
> I am trying to porting mod_cgi script to mod_perl script because
> the mod_cgi script don't run correctly under mod_perl.
>
> When running under apache::registry, the script show wrong result.
what do you mean, wrong results. Have you read
http://perl.apache.org/preview/
50 matches
Mail list logo