On Thursday, August 15, 2002, at 07:47 PM, Stas Bekman wrote:
> Tom Mornini wrote:
>> Perhaps it's obvious but after years of mod_perl, I was blocked,
>> probably because using this basic Perl ability is frowned upon in
>> mod_perl due to performance issues.
Sections section of the guide? After all, the
guide already mentions something very similar to this.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
--
-- ICQ: 113526784, AOL, Yahoo, MSN and Jabber: tmornini
interpreter creation.
However, I cannot figure out how to do this in sections! Apache->Request returns undef (reasonably so, as there is no current request)
So, the question is this: How to get the equivalent of $r->subprocess_env from within a section?
--
-- Tom Mornini
-- InfoMania Pr
on my reply was
entirely accidental.
When I saw my reply come back on the list, I was very surprised.
I apologize for making such a silly mistake. I agree that posting my
response to the list was severely off topic and completely inappropriate.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ust something to consider. Open youself to the best people in the world and don't accept just the best you can find in your area, and you'll find that you solutions aren't also as limited...
-Zac Morris
- Original Message -
From: Tom Mornini
To: [EMAIL PROTECTED]
Sent: Thu
ind. Call us
old fashioned that way. :-)
Pay and benefits are good, though it's no longer 1998. :-) Best benefit
is working with a small group of people that are highly motivated by
doing it right.
--
-- Tom Mornini
-- eWingz Systems, Inc.
--
-- ICQ: 113526784, AOL, Yahoo, MSN and Jabber: tmornini
e black box test suite that tests at the HTTP level.
This proved a good strategy when we decided to implement a SOAP
interface to some of our functionality. We made some new glue code in
CompanyName::SOAP::page1 that was based on SOAP::Lite and it was just as
easy as it should be, with 100
on, though it is more a limitation of SQL, which
> provides
> no meaningful way to do a recursive query.
Vanilla SQL, perhaps, but not Oracle's flavor!
CONNECT BY PRIOR :-)
--
-- Tom Mornini
-- eWingz Systems, Inc.
--
-- ICQ: 113526784, AOL: tmornini, Yahoo: tmornini, MSN: tmornini
e a fairly nasty solution (lots of errors in the log files,
otherwise worked OK) so we instead used good old mod_log_config and
piped the output to a Perl program that spreads the logs.
--
-- Tom Mornini
-- InfoMania Printing & Prepress
On Wednesday, October 24, 2001, at 11:38 AM, Scott Lanning wrote:
> On Wed, 24 Oct 2001, Tom Mornini wrote:
>> 1
>> 2$ErrorLog =
>> "|/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR";
>> 3
>>
>> 4 ErrorLog "|/home/tmo
On Wednesday, October 24, 2001, at 07:25 PM, Carolyn Hicks wrote:
> On Wed, Oct 24, 2001 at 06:52:13PM -0700, Tom Mornini wrote:
>> I don't believe that single quotes -vs- double quotes would make a
>> difference. Both things end up a single scalar, and I seriously doubt
>
On Wednesday, October 24, 2001, at 06:38 PM, Carolyn wrote:
> On Wed, Oct 24, 2001 at 03:01:25AM -0700, Tom Mornini wrote:
>> in httpd.conf:
>>
>> 1
>> 2$ErrorLog =
>> "|/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl
>> ERROR";
-)
Any help would be greatly appreciated.
from server-info:
Apache Server Information
Server Settings, mod_perl.c, mod_log_spread.c, mod_access.c,
mod_rewrite.c, mod_info.c, mod_status.c, mod_mime.c, http_core.c
OHHorizontalRule.pdf
Server Version: Apache/1.3.20 (Unix) mod_perl/1.26
--
-- Tom Mornini
-- InfoMania Printing & Prepress
in a
part of the
world where free markets and capitalism did not exist?
Perhaps in socialistic colleges in the U.S.? :-)
--
-- Tom Mornini
-- InfoMania Printing & Prepress
ration:
Server Version: Apache/1.3.20 (Unix) mod_perl/1.26
Server Built: Aug 28 2001 22:53:29
mod_perl.c, mod_log_spread.c, mod_access.c, mod_rewrite.c, mod_info.c,
mod_status.c, mod_mime.c, http_core.c
Linux version 2.4.2-2 ([EMAIL PROTECTED]) (gcc version 2.96
2731 (Red Hat Linux 7.1 2.96-79)) #1 Sun Apr 8 20:41:30 EDT 2001
-- Tom Mornini
-- eWingz Systems, Inc.
-- ICQ 113526784
On Thursday, August 2, 2001, at 03:00 PM, Robert Landrum wrote:
> Sweet...
>
> I was getting kinda tired of my Linux box "going down on me."
You must be thinking Windows!
--
-- Tom Mornini
-- ICQ 113526784
is? Has anybody found this worth
> writing a pattern?
Sure! Just store the results in your session, and display from there...
--
-- Tom Mornini
-- ICQ 113526784
stly upgraded hardware than having you fumbling
around with inefficient to maintain code.
> There is always more then one way to do it, and there's usually more
> then
> one right way to do it. Let's keep that in mind.
Agreed. However, Perl + HTML + SQL isn't one of the right ways! :-)
--
-- Tom Mornini
-- ICQ 113526784
ctive-C) in EVERY OS BOX
CVS, SSH, Apache, Perl, etc. in EVERY OS BOX
Nothing "yuk" about Apple anymore, at least on the software/OS side of
the house!
Apple = NeXT ! Thank God!
Hell, in 15 or 20 years, this OS could be as enlightened as Linux. :-)
--
-- Tom Mornini
-- ICQ 113526784
n San Francisco, or thereabouts. I don't, however,
so telecommuting is definitely an option.
Pay and benefits are good, though it's no longer 1998. :-) Best benefit
is working with a small group of people that are highly motivated by
doing it right.
--
-- Tom Mornini
-- eWingz Systems, Inc.
-- ICQ 113526784
;ve read
the post that I was responding to. :-) Sorry for that everyone, and
Scott in particular.
> Could be shortened to 'push @$upper_id, $row[0];', but no biggie.
No biggie certainly.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
, which saves
on calls to malloc() and free().
3) All memory is freed when the child dies.
So, you don't need to do anything, but you'll never get the memory back
until the child dies.
It will run fast, however. :-)
--
-- Tom Mornini
-- InfoMania Printing and Prepress
Tenon Systems has a current version of Apache with complete GUI
administration engine at http://www.tenon.com/products/itools-osx/
This is a commercial product...
On Friday, April 27, 2001, at 10:16 PM, Charlie Garrison wrote:
> G'day,
>
>> I am trying to install mod perl on the Apple OS X Ser
On Sunday, April 8, 2001, at 04:16 PM, Ask Bjoern Hansen wrote:
> On Sun, 8 Apr 2001, Tom Mornini wrote:
>
> I don't understand why anyone would do anything else than just
> forking to qmail-inject.
>
> At least on Linux and FreeBSD that goes reasonably fast (you'r
il to deliver messages for
relay to a mailhost (even if it's the same machine).
Performance is best the mailhost is a dedicated machine, or load
balanced group of systems.
On Sunday, April 8, 2001, at 02:52 AM, Per Einar wrote:
--
-- Tom Mornini
-- ICQ 113526784
Hmmm. What was the date that this was announced? :-)
On Monday, April 2, 2001, at 06:48 AM, Rod Butcher wrote:
> Does this mean Perl 6 is dogmeat ?
> Rod
> On Monday 02 April 2001 12:20, Bill Moseley wrote:
>> I assume everyone saw this... ;)
>>
>> http://www.oreilly.com/parrot/
>>
>> Bill Mose
scratch you head, just try it!
warn 'This is BEFORE the exit statement';
exit;
warn 'This is AFTER the exit statement';
On my systems I see only the 1st line...
--
-- Tom Mornini
-- InfoMania Printing and Prepress
re more
valuable than front-end servers) more quickly in the event of a timeout.
It didn't work out that way! :-) I now run 300 seconds on the front-ends
and 400 on the back-ends, and Apache->read timeouts no longer cause
problems.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ess.
I do it in the startup.pl file, and all is fine for all scripts
thereafter.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
perl backend without
any modules loaded. Adding modules would make the back-end even heavier.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
$fields=$sth->fetchall_arrayref();
> foreach $nums (@$fields) {
> foreach $cols (@$nums[0]) {
> print "",$cols,"";
> }
> }
> print "";
>
> $sth=$dbh->prepare("select * from Membe
handle saved in $sth
> ..
> $sth->execute;
> .. fetch some data.
> return;
> }
It is my understanding of the DBI docs that you only need to call
$sth->finish when you DON'T fetch all the rows that the $sth has ready to
return.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
t's you
> call the anonymous subroutine as if it were a subroutine named
> printQueryParams.
How about just:
use vars qw ( $query );
to define a package global?
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ted in San Francisco, California. Relocation and
H1B Visas are OK.
Please reply to [EMAIL PROTECTED] :-)
--
-- Tom Mornini
-- InfoMania Printing and Prepress
request it
> sends.
Run vmstat on the server during the testing and see if it starts swapping.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
On Fri, 23 Jun 2000, Jeff Macdonald wrote:
> Tom Mornini wrote:
> >
> > On Thu, 22 Jun 2000, Jeff Macdonald wrote:
> >
> > > My thinking is that $error would contain the error recorded in the
> > > error_log file.
> > >
> > > Instead $
On Thu, 22 Jun 2000, Jeff Macdonald wrote:
> My thinking is that $error would contain the error recorded in the
> error_log file.
>
> Instead $error is empty. Any thoughts?
This works in very current versions of mod_perl. What are you running?
--
-- Tom Mornini
-- InfoMania
nted to be callable only once. $r->read doesn't mention this, but
when I use it, the rest of the site won't operate, handing in the created
of a new Apache::Request object.
Any ideas?
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ype, DEFAULT_ENCTYPE)) {
return DECLINED;
}
if ((rc = util_read(req, &data)) != OK) {
--- 297,303
type = ap_table_get(r->headers_in, "Content-Type");
! if (!strstr(type, DEFAULT_ENCTYPE)) {
return DECLINED;
}
if ((rc = util_read(req, &data)) != OK) {
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ct, DEFAULT_ENCTYPE) in c/apache_request.c on line 204. (The
> > > test for multipart/form-data does this. Don't know why this one is more
> > > strict.)
> >
> > This is great! I'll give it a try.
>
> Saw that didn't work. There's another test at line 300 that you
> need to fix in the same way.
And THAT worked fine! Again, thanks a lot for this.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
OES go away. Unfortunately, no form
data is available via $ar->param either! :-)
--
-- Tom Mornini
-- InfoMania Printing and Prepress
On Fri, 16 Jun 2000, Jim Winstead wrote:
> On Jun 15, Tom Mornini wrote:
> > I have recently noticed two issues with Apache::Request and thought I'd
> > run them by the list before I began hacking and diffing for Doug.
> >
> > 1) $ar->param without parameters
stand that there are many possible issues regarding 5.6, etc.
but I'm just looking for straight 8 bit binary characters here.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
similar to what you're discussing and/or helpful in any way?
--
-- Tom Mornini
-- InfoMania Printing and Prepress
destination URI, append
> '?foo=bar' to the end of it, and return it as a redirect. That way not
> even MSIE will cache it.
Though you walk the Earth, you may indeed be a God! Thank you very much.
I wish I would have thought of this myself.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
length: 1332
Content-Type: image/gif
But IE5 still caches the damn things! Does anyone have a suggestion?
Please note that I don't have the ability to modify the IMG SRC
dynamically since the HTML resides on our customers' servers.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
anything in $r->notes with log_config using the %{}n notation.
Say you put your session in $r->notes('SESSION' => $session).
You would log it as %{SESSION}n
This saved me from writing my own log handler. :-)
--
-- Tom Mornini
-- InfoMania Printing and Prepress
e URL look a little more friendly.
> Does the site revert to cookie based sessions if the sessionID is
> chopped off? What is the purpose of chopping off the sessionID?
> Prettier bookmarks?
Why would it? It just starts a new session and prime the pump again...
--
-- Tom Mornini
-- InfoMania Printing and Prepress
e only disadvantage of this method that we know of, but we
feel that it is far outweighed by having session support on 100% of our
connections.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ith a session ID in place.
In our case, this is handled by a trans handler that stores state in
$r->pnotes, and a fixup handler that reads $r->pnotes and
$r->set_handlers() in the redirect handler into the response phase.
The cool thing about this is that relative links need not be rewritten at
all, the browser handles it!
--
-- Tom Mornini
-- InfoMania Printing and Prepress
everyone, and give the users with cookies a
more robust inter-session experience.
This way the site works for everyone, but works better for people with
cookies.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
rarely been as impressed (in 22 years of
computer history) with it's performance and stability, though I have no
experience with anything else under similar loads.
Let me ask you a question: Are you really going to be able to handle
20,000 simultaneous users within a minute (perhaps 60,000 to 80,000
apache requests if only a single page view per user)?
--
-- Tom Mornini
-- InfoMania Printing and Prepress
lect
statements on pages that require "paging" so that the complex select only
happens once. We store user objects complete, and many multi-level complex
data structures at whim.
Limiting yourself to cookie size limitation would be a real drag.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
hout Apache::DBI.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
out happens when your $dbh goes
out-of-scope without an explicit disconnect.
Are you disconnecting in your code?
--
-- Tom Mornini
-- InfoMania Printing and Prepress
than 25 megs.
2) Do you know about the front-end proxy/back-end mod_perl configuration?
-- Tom Mornini
-- InfoMania Printing and Prepress
On Wed, 12 Apr 2000, Ask Bjoern Hansen wrote:
> On Wed, 12 Apr 2000, Tom Mornini wrote:
>
> [...]
> > I'm going to have to work harder at getting on that credits list, it would
> > seem!
>
> Nah. Doug didn't commit it yet so except if it was because he
-notes for all Perl*Handlers.
> $@ is also saved it $@{ $r->uri }, which was introduced before apache
> started saving errors in $r->notes('error-notes')
Ah, darn! Your solution is MUCH better than mine. :-)
I'm going to have to work harder at getting on that credits li
R_ERROR unless $Debug && $Debug & 2;
***
*** 152,157
--- 153,159
}
if($errsv) {
+ $r->notes('error-notes' => $errsv);
$r->log_error($errsv);
return SERVER_ERROR unless $Debug && $Debug & 2;
4:14 2000
***
*** 152,157
--- 152,158
}
if($errsv) {
+ $r->notes('error-notes' => $errsv);
$r->log_error($errsv);
return SERVER_ERROR unless $Debug && $Debug & 2;
return Apache::Debug::dump($r, SERVER_ERROR);
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ders to
allow for name-based virtual servers on the front-ends).
mod_rewrite handles proxying the dynamic requests and apparently mod_proxy
automatically adds the correct headers for name-based virtual hosts on the
back end.
This all takes a while to setup, but it works flawlessly once it is done.
--
error-notes' => $errsv);
$r->log_error($errsv);
return SERVER_ERROR unless $Debug && $Debug & 2;
return Apache::Debug::dump($r, SERVER_ERROR);
--
-- Tom Mornini
-- InfoMania Printing and Prepress
ssHandler, and the results were weird.
The Eagle book makes it pretty clear (don't have it handy for a reference)
that $r->internal_redirect() should only be called from a Content Handler.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
d easily
> inadvertently touch something in that dir.
Is hostid cross-platform? Lots of software that I've seen for Sun systems
are hostid protected.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
r survive without mod_perl? Has
> anyone had a similar experience?
Your scripts are probably using mod_perl, and not very happily.
Run the old stuff as straight CGI, or using Apache::PerlRun instead.
I would probably try Apache::PerlRun first, and if that didn't work,
revert back to CGI.
--
On Thu, 3 Feb 2000, Vivek Khera wrote:
> >>>>> "TM" == Tom Mornini <[EMAIL PROTECTED]> writes:
>
> >> If you have a high volume site that uses SSL, you should really be
> >> offloading the SSL processing to dedicated cryptography ha
On Thu, 3 Feb 2000, Vivek Khera wrote:
> >>>>> "TM" == Tom Mornini <[EMAIL PROTECTED]> writes:
>
> TM> 2) Better scalability. I've head (but never benchmarked) that SSL in
> TM>general is 100 times more processor intensive than non-ssl c
nsive than non-ssl connections.
I want my mod_perl server running mod_perl, not mod_ssl! In a
high-volume site you're going to have lots of front-end machines
underworked anyway, so why not let them do some SSL calculations?
--
-- Tom Mornini
-- InfoMania Printing and Prepress
the relational aspect of a DB.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
of the 3 parts, please try and help
fix it. Or just find something else that you do like. Perhaps you'll find
that other systems are better suited to what you do. Perhaps not, and
you'll end up back here again. I'm sure that would be fine with anyone on
the list.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
non-session SQL.
This took a while to debug! :-)
So, sometimes you WANT to have different connections, which is how we
solved this problem.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
gt; does not do keep alive requests anyway, but just to
> be safe, you ought to disable them.
Ah...
But how about the front-end proxy server? Should it have keepalive on?
--
-- Tom Mornini
-- InfoMania Printing and Prepress
On Thu, 9 Dec 1999, Joao Fonseca wrote:
> I'm having problems migrating a site to mod_perl,
> using the Apache::Registry module.
Try Apache::PerlRun instead. It's better for quick ports of old CGIs.
--
-- Tom Mornini
-- InfoMania Printing and Prepress
.so.2.0.0 libgdbm.so
>
> This should probably be added to the guide or something. The failure
> message you get is the compile failed the sanity check, with no mention of
> libgdbm at all. It's pretty wacky!
--
-- Tom Mornini
-- InfoMania Printing and Prepress
operating various combinations and feel
that 2.6 is more stable, though they have not run 2.6 in their shop yet,
but know that stable 2.6 boxes do exist.
Obviously any problem could be a configuration/setup issue, and that is
what I feel their issue was. Am I wrong?
--
-- Tom Mornini
-- InfoMania
es (yet) - and
> there's probably more I can't think of right now.
Referential integrity? :-)
--
-- Tom Mornini
-- InfoMania Printing and Prepress
76 matches
Mail list logo