Scott [EMAIL PROTECTED] writes:
Hello all,
I am working on a large modperl app, and one of the features of this is a
plugin system that allows others to write and install modules. Everything is
good as far as this goes, but the problem is updateing/deleting modules. It
seems as though the
Calling keys() (or values()) in void context is quite efficient.
Nice to now. So it seems the correct idiom for using each is:
keys %hash;
while( my($k,$v) = each %hash ) {
...
}
p.s. I've shown an example, so we can have this issue documented
together with other mod_perl
...
- in both cases they are accessed via /img/..., /css/... urls
The solution - we use custom transhandler to check whether the
customized version exists and use it if so.
--
( Marcin Kasperski | Working overtime sucks the spirit and motivation )
( http://www.mk.w.pl | out of a team
that this solution is not satisfactory - calling
'keys' or 'values' is inefficient and destroys most gains from
iterating over the hash using each...
--
( Marcin Kasperski | Communication takes place between people, documents )
( http://www.mk.w.pl |are secondary. (Booch
think there are also other similar
potential problems...
--
( Marcin Kasperski | Most of the bad things that can happen to a project )
( http://www.mk.w.pl | are the result of miscommunication. (Booch
Hmm, probably well known but ... I have not met any direct warning of
this problem so far.
our %SOME_CONFIG = (
a = 1,
b = 2,
c = 3,
);
...
while (my($k,$v) = each %SOME_CONFIG) {
if( ... ) {
return; # or last, or throw
for given user id - in fact, to invalidate any 'older'
session(s) while logging in in the 'new' one.
--
( Marcin Kasperski | In any large change, 1/3 will think it is great, 1/3 )
( http://www.mk.w.pl | will think it is stupid, and 1/3 will wait (Reed
Richard Clarke [EMAIL PROTECTED] writes:
I'm using a subclass of Error.pm to throw exceptions when a DBI
error happens. The SEGV only happens after I return SERVER_ERROR
in response to the thrown and propogated error.
I do not know whether it can be related to your problem but for me
some
considering that
69z =~ 18$ and I can buy it nearby).
--
( Marcin Kasperski | Osoba jest omegalizacj ewolucji uniwersalnej na )
( http://www.mk.w.pl | okrelonym odcinku etapowym (Teilhard de Chardin
{ yes, I saw the chapter in Stas Bekman's book, that's not exactly
what I discuss }
So, there is some mod_perl application. It has a lot of configurable
elements - from urls being used to constants predefining contents of
different drop-down boxes.
Currently the config information is spread
(... revisiting old thread about my problems with compiling
apache/mod_perl as DSO on Tru64 unix)
My problem is still not solved but I get it up to the point where it
probably lies in some customary modules (which does not behave
correctly when unloaded/reloaded) and is not directly related to
Stas Bekman [EMAIL PROTECTED] writes:
Marcin Kasperski wrote:
[...]
It seems to me, they had problem with the '-Wl,-rpath' issue which I
found to be minor and easily patched (by the way: maybe someone would
want to correct it in distribution?).
I wasn't following that thread
Fabian Kreitner [EMAIL PROTECTED] writes:
Hello all,
I have problems connecting to an oracle db using mod_perl but cant
figure out where the problem is. The script works fine from the bash
but not through perl::registry. The script only sets the environment
variables and then tries a
command but replaced in Makefile
-Wl,-rpath,/tools/...
with
-rpath /tools/...
The results are exactly the same: link succeeded,
PL_perl_destruct_level is unresolved while running apache.
--
( Marcin Kasperski | Communication takes place between people, documents )
( http://www.mk.w.pl
the coredump
during the application startup. In case I manage to diagnose this core
somehow, I will mention it here.
--
( Marcin Kasperski | A complex system designed from scratch never works)
( http://www.mk.w.pl |and cannot be patched to make it work. (Booch
Marcin Kasperski [EMAIL PROTECTED] writes:
The results are exactly the same: link succeeded,
PL_perl_destruct_level is unresolved while running apache.
I found the workaround to avoid this effect: slightly patching apache
build procedure so that the httpd binary is linked with perl
Yes, please post your success stories here (...)
I am more than happy being now able to add the new nice
reference. Please, patch my English where necessary...
Polish internet bank named Inteligo (http://www.inteligo.pl) recently
migrated its transactional web service (the application used by
PS If only someone had some idea how to solve the DSO/Tru64 problem...
We really need to find people on these platforms (True64, AIX,
HP-UX, etc.) who can help to reproduce and resolve this kind of
probs. If you know of those willing to help please ask them to
subscribe on this list.
I am
Stas Bekman [EMAIL PROTECTED] writes:
Marcin Kasperski wrote:
In short: I tried different compilation methods with two possible
outcomes:
a) apache and modperl compile succesfully but I get coredump while the
application is starting (in all cases SEGVs, in some cases core's
confused
In short: I tried different compilation methods with two possible
outcomes:
a) apache and modperl compile succesfully but I get coredump while the
application is starting (in all cases SEGVs, in some cases core's
confused the debugger, in other I managed to notice __at_fork in
allocated more than it was expected, therefore less memory
remained for apache/modperl processes) and I will work on
it. Nevertheless I'd like to improve apache behaviour in lack of
memory conditions - if possible.
Thanks for all the hints.
--
( Marcin Kasperski | In any large change, 1/3
'callback called exit' printed - and can it be
disabled?
c) Do you have any idea of what should I pay attention to?
--
( Marcin Kasperski | Krlik to brzmi dumnie! Wszystko dla szympansa! )
( http://www.mk.w.pl | Chomikiem jestem, wszystko mi wolno! (Mroek
Stas Bekman [EMAIL PROTECTED] writes:
Marcin Kasperski wrote:
Recently I happened to get the error log flooded with the message
callback called exit
(repeated a couple of million times, probably by one process or a few
processes).
This was some side-effect of the lack
, but there
are mostly technical sites, almost no business...'
I would also rename 'Technologies Extraordinare' link to something
like 'Who is using modperl' but that is different story...
--
( Marcin Kasperski | In any large change, 1/3 will think it is great, 1/3 )
( http://www.mk.w.pl | will think
-or-less as expected.
--
( Marcin Kasperski | A reusable framework that is developed by itself will )
( http://www.mk.w.pl |probably not be very reusable. (Martin))
()
( Porady dla twrcw serwisw WWW: http
. Technical
details are not necessary.
Thanks in advance for any reply.
--
( Marcin Kasperski | Working overtime sucks the spirit and motivation )
( http://www.mk.w.pl | out of a team. (Wells
/table
--
( Marcin Kasperski | Osoba jest omegalizacj ewolucji uniwersalnej na )
( http://www.mk.w.pl | okrelonym odcinku etapowym (Teilhard de Chardin) )
()
( Wygeneruj dokumentacj: http://www.mk.w.pl
solution: frontend server proxies
/some/url to /http/some/url on backend for HTTP and to /https/some/url
on backend for HTTPS. Or something similar...
--
( Marcin Kasperski | Communication takes place between people, documents )
( http://www.mk.w.pl |are secondary. (Booch
which can spoil the way browser interprets HTML.
--
( Marcin Kasperski | Software is not released, it is allowed to escape.)
( http://www.mk.w.pl | )
()
( Moje
some of us on modperl-dev had a discussion with Doug recently about
expanding Apache::Util::escape_html() to do things like HTML::Entities
(such as high-bit characters) and it was decided it was a bad idea.
see:
http://marc.theaimsgroup.com/?l=apache-modperl-cvsm=101708056429561w=2
and
?
Regards (and thanks)
Marcin
--
( Marcin Kasperski | Communication takes place between people, documents )
( http://www.mk.w.pl |are secondary. (Booch
looks in modperl-2 but in case there is
similar problem, I would suggest similar solution.
--
( Marcin Kasperski | A reusable framework that is developed by itself will )
( http://www.mk.w.pl |probably not be very reusable. (Martin
darren chamberlain [EMAIL PROTECTED] writes:
* Marcin Kasperski [EMAIL PROTECTED] [2002-11-08 16:22]:
I use Apache::Util::escape_html to perform fast HTML-escaping of the
data before displaying it. Unfortunately, this function handles
, , and but does not handle ' (single quote) - which
the data according
to your needs and just process it incrementally (for instance just
scan record-after-record, do not keep the data in memory but just
print them to the output socket)
--
( Marcin Kasperski | A reusable framework that is developed by itself will )
( http://www.mk.w.pl
logging on the end of PerlHandler? If so, how should I pass data
between handlers - just stick to some perl global variable or use
pnotes?
3) Are there any tools of 'gather logs from multiple machines to the
central location' you would recommend?
--
( Marcin Kasperski | Communication takes place
mod_perl_push_handlers: Not a subroutine name or CODE reference!
I have observed similar problem myself. I got the same error when I
wrote in my startup.pl
Apache-push_handlers(PerlChildInitHandler,
\MyApp::Main::on_child_init);
when I replaced it with
.
--
( Marcin Kasperski | For waterfall, milestones are commitments. For itera- )
( http://www.mk.w.pl | tive development, they are decision points. (Martin) )
()
( Porady dla twrcw serwisw WWW: http://www.mk.w.pl
instead of being initialized in each of the child
processess...
The question is: which modules do you use.
--
( Marcin Kasperski | You have the right to peace, fun, and productive )
( http://www.mk.w.pl |and enjoyable work. (Beck
38 matches
Mail list logo