Re: finding "context" in mod_perl handler

2009-04-21 Thread David Ihnen
André Warnier wrote: Hi. Supposing I have this kind of setup and then check the var in the handler, but there has to be a better/cleaner way, no ? Thanks André http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_path_info_ Just get the info from the request object within the hand

Re: decline and fall of modperl?

2009-03-26 Thread David Ihnen
Octavian Râsnita wrote: *From:* Rolf Banting > Functions are first class citizens in Perl - so you get functional programming built in. You don't in Java. Even the newer perl modules on cpan started to use OOP, and I guess this is because OOP is better, eve

Is Cookbook good perl?

2009-03-26 Thread David Ihnen
Rolf Banting wrote: Fair enough Simon. I would recommend you look at the Cookbook too - it has recipes for everything from iterating through a hash to web automation. http://docstore.mik.ua/orelly/perl/cookbook/ Do people think that the cookbook is good perl practice? Its been mentioned a fe

Re: decline and fall of modperl?

2009-03-26 Thread David Ihnen
Foo JH wrote: David Ihnen wrote: I think you've got it right there. We've got to get perl taught in schools. That means perl experts need to be in teaching. And I have a suspicion that perl doesn't appeal to the pure computer scientist very well - these are the people wh

Re: decline and fall of modperl?

2009-03-25 Thread David Ihnen
Octavian Râşniţă wrote: *From:* David Ihnen <mailto:dav...@norchemlab.com> > I tried to convince some programmers that Perl is better than PHP, but without any success. > How could they know, if they have never used it? I was far less convinced that PHP was

Re: decline and fall of modperl?

2009-03-25 Thread David Ihnen
Octavian Râşniţă wrote: From: Mike Bourdon > The hidden message here is “the more available senior developers, the more likely available > jobs”, an expanding talent pool will lead to an expanding job market. I fully agree. What happends in the regions where there are extremely few perl prog

Re: decline and fall of modperl?

2009-03-23 Thread David Ihnen
Louis-David Mitterrand wrote: Hi and sorry for the provocative title of my post :) What better way to get a response? What you have is better than what you don't, so sticking with a tech you already have is often the most pragmatic path. I agree with the others, in that if the company hir

Want module compatibility?

2009-03-05 Thread David Ihnen
Who doesn't want compatibility? Seriously though. Given the name of the 'Want' module ( http://search.cpan.org/~robin/Want-0.18/Want.pm ) its almost impossible to obtain meaningful search results on issues relating to it... (everybody has wants, even in perl!) so I'm resorting to asking here.

Re: Class method or Object method?

2009-01-29 Thread David Ihnen
kropotkin wrote: Hi Steven Not quite. From the catalogue I want to see what is in the user's cart. As they browse the catalogue they will see a flag next to each item if it is in the basket; 'n already in your basket' sort of thing. So from the class which produces catalogue pages I want to be

Re: Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread David Ihnen
My experience troubleshooting this kind of issue has indicated that its likely that the package that was unloaded deleted a value stored in the package space of the module reloaded (probably set at BEGIN block time) that the subsequent require did not restore. When these errors happen the thre

Re: a2c controller method names

2009-01-02 Thread David Ihnen
Mark Hedges wrote: I wonder how easy it would be to add controller subroutine attributes for which ones are allowed or not, ala Catalyst, instead of the controller having to provide an 'allowed_methods' method. Sounds like something JSON::RPC::Server::CGI does with :private and :public modifi

Re: a2c controller method names

2009-01-02 Thread David Ihnen
Mark Hedges wrote: On Thu, 1 Jan 2009, Mark Hedges wrote: Regarding your comment about inheritance vs. references - something I hadn't thought much about. A) I need to prefix all my internal method names with 'a2c_' to stay out of the controller namespace. B) You can't have any controller s

Re: preserving request body across redirects

2008-12-31 Thread David Ihnen
subject. :) On Tue, 30 Dec 2008, David Ihnen wrote: Yes. But timtowdti on how that information is distributed. In my opinion any *framework* must not depend on the *application* having established a persistent backstore of shared session data, so that it can persist put/posts. You'r

Re: HTTP Response Headers fixup

2008-12-31 Thread David Ihnen
André Warnier wrote: One of my questions is thus : assuming I keep adding this custom header "Test-Header" via mod_headers, will it be visible by the HTTPHeadersFixup subclass I create and configure ? Its an output connection filter, so I can't imagine it wouldn't work as you expect. if yes,

Re: preserving request body across redirects

2008-12-30 Thread David Ihnen
Mark Hedges wrote: On Tue, 30 Dec 2008, David Ihnen wrote: in the meantime server 556 dublin suffered a network connector air gap issue. A trouble ticket has been created. These things happen. client -> GET -> load balancer -> server 22 london -> looks up saved requestbody

Re: preserving request body across redirects

2008-12-30 Thread David Ihnen
Mark Hedges wrote: Thanks I really do appreciate your comments. On Mon, 29 Dec 2008, David Ihnen wrote: Yes, I am aware of how OpenID works. And it works in-band unless the application explicitly sidelines it - there is no inherent side-band communication that the client and server will

Re: preserving request body across redirects

2008-12-29 Thread David Ihnen
Mark Hedges wrote: On Mon, 29 Dec 2008, David Ihnen wrote: Though that is, of course, specific to the application being programmed, utilizing client-side javascript active stuff rather than particular web server programming to transparently handle it on the server side using basic html2.0

Apache::Reload/ModPerl::Util/base.pm incompatibility prospective patch

2008-12-29 Thread David Ihnen
Philip M. Gollucci wrote: David Ihnen wrote: 1. Problem Description: While developing with CGI::Application and utilizing Apache::Reload, we encountered an issue where our modules were not being succesfully reinitialized on reload. It was traced down to @ISA not containing the proper

Re: preserving request body across redirects

2008-12-29 Thread David Ihnen
Mark Hedges wrote: On Mon, 29 Dec 2008, David Ihnen wrote: Say the application's session times out, but the user posts something by clicking submit. They are redirected to the OpenID server but it says they are still logged in and returns a positive response. But you can't

Apache::Reload - ModPerl::Util::unload_package under perl 5.10 use base directive malfunction

2008-12-26 Thread David Ihnen
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . *** Packages of interest status: Apache2: - Apache2::Request : - CGI : 3.29 ExtUtils::Ma