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 thoug

Re: each considered harmful?

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

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

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 except

Re: mod_perl slower than expected?

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

Re: stopping concurrent logins

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

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

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

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

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 bet

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 t

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

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

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

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

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

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

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 i

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.

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 t

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 start

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 >

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

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

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

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

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). >

[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 | Królik to brzmi dumnie! Wszystko dla szympansa! ) ( http://www.mk.w.pl | Chomikiem jestem, wszystko mi woln

Anyone using modperl compiled as DSO on Tru64?

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

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

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

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 ) (

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
Meta-Type Title -- ( Marcin Kasperski | Osoba jest omegalizacją ewolucji uniwersalnej na ) ( http://www.mk.w.pl | określonym odcinku etapowym (Teilhard de Chardin) ) () ( Wyge

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

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

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-cvs&m=101708056429561&w=2 > an

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

2002-11-12 Thread Marcin Kasperski
e just <, >, &, " and ' - the characters which can spoil the way browser interprets HTML. -- ( Marcin Kasperski | Software is not released, i

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

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

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 > > <, >

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

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

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 t

Re: memory usage problem!

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

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

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

Upgrading frontend apache - is it worth it?

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

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

Re: problem with $r->push_handlers()

2002-09-17 Thread Marcin Kasperski
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) ) (