Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Jonathan T. Rockway
On Thu, Aug 09, 2007 at 10:27:27AM +0200, Tobias Kremer wrote: I have the problem that up until now everything worked absolutely fine without C::P::Unicode, Template::Stash::ForceUTF8, Template::Provider::Encoding or any ForceUTF8 is a hack hack hack. If your program doesn't work without it,

Re: [Catalyst] How to execute controller at startup

2007-08-07 Thread Jonathan T. Rockway
On Mon, Aug 06, 2007 at 11:33:04PM -0700, Aditya Verma wrote: Hi All, Thank you very much for all your valuable comments at appreciate your quick response. I have one more query. I have implemented a Plugin. How can I call a plugin method from controller outside of the

Re: [Catalyst] mod_proxy and https

2007-08-06 Thread Jonathan T. Rockway
On Mon, Aug 06, 2007 at 12:23:43PM -0500, Dave Rolsky wrote: On Mon, 6 Aug 2007, Duncan Ferguson wrote: For SSL you'd send X-Forwarded-Is-SSL with some true value. Hopefully this will be merged into the Catalyst trunk sometime soonish. I think we intend to get this into the next maint release

Re: [Catalyst] Ajax

2007-08-05 Thread Jonathan T. Rockway
On Sun, Aug 05, 2007 at 11:26:10AM +0100, Matt S Trout wrote: Always, -always- use View::JSON rather than doing the serialisation direct. I tend to use Catalyst::Controller::REST and let it handle serialization / deserialization for me. Technically not MVC, but since it's not code I have to

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-30 Thread Jonathan T. Rockway
On Mon, Jul 30, 2007 at 06:19:09PM -0400, Perrin Harkins wrote: On 7/30/07, Matt S Trout [EMAIL PROTECTED] wrote: I used to consider it a neat hack. After some time with the internals, some fun explicitly disabling it within DBIC since it sometimes broke our reconnect code, and even then

Re: [BULK] - Re: [Catalyst] flash with DBIC session storage

2007-07-28 Thread Jonathan T. Rockway
On Sat, Jul 28, 2007 at 09:15:36AM +0200, Tobias Kremer wrote: I think you're right: The error is due to my poor-man's approach of load-testing. BTW, how are you invoking ab? I think each request should get its own cookie, which means the same id shouldn't be being inserted more than once.

Re: [BULK] - Re: [Catalyst] flash with DBIC session storage

2007-07-27 Thread Jonathan T. Rockway
On Fri, Jul 27, 2007 at 11:57:01AM -0700, Mesdaq, Ali wrote: Are you sure that InnoDB would solve this issue? Even if just a row was locked and you have 2 inserts at the exact same time how would that resolve the issue? One transaction would succeed and the other would fail. If you want

Re: [Catalyst] flash with DBIC session storage

2007-07-27 Thread Jonathan T. Rockway
On Fri, Jul 27, 2007 at 06:11:03PM -0700, Mesdaq, Ali wrote: I think in the case of the person who initially emailed the group the problem is poor load testing. But it does bring up the point of better handling of exception statements by DBIx. DBIx:: is a generic namespace for DBI extensions.

Re: [Catalyst] setup_home() bug

2007-07-20 Thread Jonathan T. Rockway
On Mon, Jul 09, 2007 at 04:53:18PM -0400, Adam Herzog wrote: Okay. I added Catalyst::Utils::env_value(), and updated Catalyst.pm Index: t/unit_utils_env_value.t Index: lib/Catalyst.pm Index: lib/Catalyst/Utils.pm Thanks for the patch, it looks great. The only problem is that your mail

Re: [Catalyst] Angerwhale + CPAN

2007-07-19 Thread Jonathan T. Rockway
On Thu, Jul 19, 2007 at 02:31:10AM +, Yousef AlHashemi wrote: Hello, This may be a little bit off-topic as it's more about CPAN than Catalyst, but I've almost always had trouble installing modules that have lots of dependencies with cpan. All I do is simply invoke the cpan shell

Re: [Catalyst] Proper way to perform cleanups on server shutdown?

2007-07-11 Thread Jonathan T. Rockway
On Wed, Jul 11, 2007 at 09:03:29AM -0700, John Napiorkowski wrote: I can demonstrate this by placing an END block in my root modules (the MyApp.pm module) END { print got END BLOCK!\n; } This will never run under the conditions I have described. HOWEVER, if I set SIG handlers

Re: [Catalyst] Re: Announcing the first Catalyst SwagReward!

2007-05-21 Thread Jonathan T. Rockway
On Sun, May 20, 2007 at 06:14:35PM +0200, A. Pagaltzis wrote: * Mike Whitaker [EMAIL PROTECTED] [2007-05-20 16:50]: If all goes well it will probably be fully programmatic but will almost certainly involve Python. Ooo. Dunno about that. :) Can't help feeling that it's not really

Re: [Catalyst] OT: security through obscurity (was: Encrypt/Decrypt URI)

2007-05-18 Thread Jonathan T. Rockway
On Fri, May 18, 2007 at 03:37:27PM +0200, A. Pagaltzis wrote: Just because this is a pet peeve of mine: Yes it is. Obscurity is a constant factor. As soon as one person figures out your obfuscation, it's useless. When someone figures our your real security, it does them no good at all.

Re: [Catalyst] After the RoR vs. PHP Mac/PC ad skits on reddit ...

2007-05-18 Thread Jonathan T. Rockway
On Fri, May 18, 2007 at 04:10:13PM +0100, Matt S Trout wrote: http://markkeating.me.uk/catror/ Nice. Upvote @ reddit: http://programming.reddit.com/info/1rqhe/comments Regards, Jonathan Rockway ___ List: Catalyst@lists.rawmode.org Listinfo:

Re: [Catalyst] Too greedy name-based Virtual Host

2007-05-16 Thread Jonathan T. Rockway
On Wed, May 16, 2007 at 11:54:34AM +0200, Xavier Robin wrote: Here comes the Virtual Host : VirtualHost site2.domain.tld:80 ServerNamesite2.domain.tld:80 DocumentRoot /home/xrobin/MIAPE/root LogLevel debug ErrorLog /home/xrobin/catalyst_error_log

[Catalyst] attn MicroMason View users

2007-05-15 Thread Jonathan T. Rockway
Hi all, A few months ago (err... 7), I pushed Catalyst::View::MicroMason 0.04_01 to the CPAN (with some fixes people wanted). I never got any feedback on this version, so I haven't made it stable yet. If you're a MicroMason user, please try it and tell me what problems you encounter. If it's

[Catalyst] Template::Declare view available

2007-05-15 Thread Jonathan T. Rockway
Hi all, I have more than just MicroMason views :) While I was at the YAPC::Asia hackathon last month, I was around a bunch of Jifty people and decided to write Catalyst::View::Template::Declare. If you're not familiar with TD, it's a module for writing HTML templates in Perl: template foo

Re: [Catalyst] getting $c in model unit test

2007-05-15 Thread Jonathan T. Rockway
On Tue, May 15, 2007 at 09:48:05AM -0400, Nathan Gray wrote: Does anyone have an example unit test that has access to $c? As others have mentioned, this is probably a sign of a poorly designed API. If you decide to continue further, you'll probably want to use Test::MockObject to setup a fake