"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 thoug
on static files are installed in /myapp/img,
/myapp/css, ...
- local site customization can be made by installing customized files
in /custom/img, /custom/css...
- in both cases they are accessed via /img/..., /css/... urls
The solution - we use custom transhandler to check whether the
cus
> 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
> HASH" or "values HASH".
I found this note before asking, believe me...
But it seems to me that this solution is not satisfactory - calling
'keys' or 'values' is inefficient and destroys most gains from
iterating over the hash using each...
--
( Marcin
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 except
bjects). I 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.
nly thing you need is to make sure that there can be at most
one session 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 gre
"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
ks! That's the great news for me (especially considering that
69zł =~ 18$ and I can buy it nearby).
--
( Marcin Kasperski | Osoba jest omegalizacją ewolucji uniwersalnej na )
( http://www.mk.w.pl | określonym
{ 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 bet
> (... 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 t
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
I get 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.
an to check the opposite correction (using -rpath
> .. and ld as link command), maybe this will change something.
I tried it - I left ld as link command but replaced in Makefile
-Wl,-rpath,/tools/...
with
-rpath /tools/...
The results are exactly the same: link succeeded,
PL_per
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
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 i
> > 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.
> 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 t
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 start
> 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
>
I've spent two days trying to get working mod_perl compiled as DSO on
Tru64 and still can't succeed. Below I describe what I tried, in case
anyone could suggest something I would be really grateful. I describe
also why such configuration is important for me, in case someone can
suggest alternative
memory problem itself is already diagnosed (some non-apache
process 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 fo
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).
>
'callback called exit' printed - and can it be
disabled?
c) Do you have any idea of what should I pay attention to?
--
( Marcin Kasperski | Królik to brzmi dumnie! Wszystko dla szympansa! )
( http://www.mk.w.pl | Chomikiem jestem, wszystko mi woln
such a version my colleague who try to
achieve it gets a lot of different problems (let me omit the details
for now).
I succesfully use statically linked version on this platform.
--
( Marcin Kasperski | A complex system designed from scratch never works)
( http://www.mk.w.pl |and
worked more-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 twórców
, 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 )
(
. 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
Meta-Type
Title
--
( Marcin Kasperski | Osoba jest omegalizacją ewolucji uniwersalnej na )
( http://www.mk.w.pl | określonym odcinku etapowym (Teilhard de Chardin) )
()
( Wyge
ver.
> Any ideas?
What about the simple manual 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:/
> 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-cvs&m=101708056429561&w=2
> an
e just <, >, &, " and '
- the characters which can spoil the way browser interprets HTML.
--
( Marcin Kasperski | Software is not released, i
mm, should I do something to send it to him or is he reading this
list?
Regards (and thanks)
Marcin
--
( Marcin Kasperski | Communication takes place between people, doc
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
> > <, >
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))
()
( Z
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 t
er) use your database to sort 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
wrong?
Modules loaded in startup.pl are initialized once in the parent
process 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
ur replies.
--
( Marcin Kasperski | For waterfall, milestones are commitments. For itera- )
( http://www.mk.w.pl | tive development, they are decision points. (Martin) )
()
( Porady dla twórców serwisów WWW: http://w
> > 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
r",
sub { MyApp::Main::on_child_init(); });
it works as expected.
--
( Marcin Kasperski | You have the right to peace, fun, and productive )
( http://www.mk.w.pl |and enjoyable work. (Beck) )
(
41 matches
Mail list logo