Re: Module caching

2003-08-01 Thread Marcin Kasperski
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

Re: each considered harmful?

2003-06-16 Thread Marcin Kasperski
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

Re: each considered harmful?

2003-06-16 Thread Marcin Kasperski
... - 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

Re: each considered harmful?

2003-06-15 Thread Marcin Kasperski
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

Re: mod_perl slower than expected?

2003-06-14 Thread Marcin Kasperski
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

each considered harmful?

2003-06-14 Thread Marcin Kasperski
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

Re: stopping concurrent logins

2003-04-05 Thread Marcin Kasperski
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

Re: Segmentation fault - is Error.pm the culprit?

2003-03-31 Thread Marcin Kasperski
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

Re: [ANNOUNCE] mod_perl Developer's Cookbook available in Polish

2003-02-10 Thread Marcin Kasperski
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

Configuration in module vs in apacheconfig...

2003-01-22 Thread Marcin Kasperski
{ 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

Re: [mp1] Partial success working on Tru64/DSO

2003-01-21 Thread Marcin Kasperski
(... 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

Re: [mp1] Still can not get working DSO configuration on Tru64

2002-12-05 Thread Marcin Kasperski
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

Re: apache2 + mod_perl2 + dbd::oracle

2002-12-05 Thread Marcin Kasperski
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

Re: [mp1] Still can not get working DSO configuration on Tru64

2002-12-05 Thread Marcin Kasperski
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

Re: [mp1] Still can not get working DSO configuration on Tru64

2002-12-05 Thread Marcin Kasperski
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

Re: [mp1] Still can not get working DSO configuration on Tru64

2002-12-05 Thread Marcin Kasperski
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

Re: References for modperl usage in financial institutions?

2002-12-04 Thread Marcin Kasperski
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

DSO/Tru64 (was Re: References for modperl usage in financial institutions?)

2002-12-04 Thread Marcin Kasperski
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

Re: [mp1] Still can not get working DSO configuration on Tru64

2002-12-02 Thread Marcin Kasperski
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

Re: [mp1] Still can not get working DSO configuration on Tru64

2002-12-01 Thread Marcin Kasperski
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

Re: [mp1] callback called exit (many times)

2002-11-29 Thread Marcin Kasperski
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

[mp1] callback called exit (many times)

2002-11-28 Thread Marcin Kasperski
'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

Re: [mp1] callback called exit (many times)

2002-11-28 Thread Marcin Kasperski
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

Re: References for modperl usage in financial institutions?

2002-11-20 Thread Marcin Kasperski
, 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

Re: How do I force a 'Save Window?'

2002-11-20 Thread Marcin Kasperski
-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

References for modperl usage in financial institutions?

2002-11-19 Thread Marcin Kasperski
. 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

Re: RFC: Template::YetAnother

2002-11-16 Thread Marcin Kasperski
/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

Re: How can I tell if a request was proxy-passed form an SSL server?

2002-11-14 Thread Marcin Kasperski
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

Re: [mp-1 ?] Apache::Util::escape_html could handle single quotation

2002-11-12 Thread Marcin Kasperski
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

Re: [mp-1 ?] Apache::Util::escape_html could handle single quotation

2002-11-12 Thread Marcin Kasperski
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

Re: [mp-1 ?] Apache::Util::escape_html could handle single quotation

2002-11-11 Thread Marcin Kasperski
? Regards (and thanks) Marcin -- ( Marcin Kasperski | Communication takes place between people, documents ) ( http://www.mk.w.pl |are secondary. (Booch

[mp-1 ?] Apache::Util::escape_html could handle single quotation

2002-11-08 Thread Marcin Kasperski
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

Re: [mp-1 ?] Apache::Util::escape_html could handle single quotation

2002-11-08 Thread Marcin Kasperski
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

Re: memory usage problem!

2002-10-09 Thread Marcin Kasperski
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

How would you organize custom logging?

2002-10-09 Thread Marcin Kasperski
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

Not a subroutine name... (was Re: problem with $r-push_handlers())

2002-09-19 Thread Marcin Kasperski
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

Upgrading frontend apache - is it worth it?

2002-09-19 Thread Marcin Kasperski
. -- ( 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

Re: /usr/sbin/apachectl: line 198: 12577 Segmentation fault $HTTPD -t

2002-09-19 Thread Marcin Kasperski
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