[Catalyst] Re: Catalyst 5.800013 - missing dependency version

2009-09-22 Thread Toby Corkindale
Marcus Ramberg wrote: Another day, another Catalyst 5.8 maintainance release. This time, lucky number 13. The main reason for this release is a change in the guts of the most recent Class::MOP. Thus, this release depends on the latest Moose/Class-MOP, see the changelog attached below for details

Re: [Catalyst] Catalyst benchmark 5.7 VS 5.8

2009-09-28 Thread Toby Corkindale
(Apologies for top-posting.. have momentarily lost the option to change quoting styles it seems..) Fayland, I was looking at the benchmarks that you linked, and was just wondering which version of Perl you're running against? (CentOS 5 was one of the operating systems that came with the badly-p

Re: [Catalyst] Catalyst benchmark 5.7 vs 5.8 - new test

2009-09-28 Thread Toby Corkindale
Fayland Lam wrote: I'm wondering if someone here did a benchmark between Catalyst 5.7 and 5.8 I have a vested interest in knowing the difference between the two versions as well, so knocked up a "proper" test. I have two identical virtual machines, only on one I installed Catalyst::Runtime 5.

Re: [Catalyst] Catalyst benchmark 5.7 vs 5.8 - new test

2009-09-28 Thread Toby Corkindale
Toby Corkindale wrote: It's interesting to note the headline figures have 5.71 performing 316 tps, vs 5.80 making only 283 tps. Memory usage (for this small app) has increased by 4MB, but is presumably shared. I guess I should look into that more. Here are some new analysis of memory usa

Re: [Catalyst] Catalyst benchmark 5.7 vs 5.8 - new test

2009-09-29 Thread Toby Corkindale
Tomas Doran wrote: Toby Corkindale wrote: It's interesting to note the headline figures have 5.71 performing 316 tps, vs 5.80 making only 283 tps. The very important thing you haven't noted (unless I missed it) is what perl version this benchmark was conducted under. Ah, sorry

Re: [Catalyst] Catalyst benchmark 5.7 VS 5.8

2009-09-29 Thread Toby Corkindale
Carl Johnstone wrote: Toby Corkindale wrote: (CentOS 5 was one of the operating systems that came with the badly-patched Perl with the slow bless performance.. although I'm sure it's been patched by now? ie. http://blog.vipul.net/2008/08/24/redhat-perl-what-a-tragedy/ ) Was patched

Re: [Catalyst] Catalyst benchmark 5.7 vs 5.8 - new test

2009-09-29 Thread Toby Corkindale
Tomas Doran wrote: Toby Corkindale wrote: It's interesting to note the headline figures have 5.71 performing 316 tps, vs 5.80 making only 283 tps. The very important thing you haven't noted (unless I missed it) is what perl version this benchmark was conducted under. Some benchm

[Catalyst] Cat-Runtime 5.8.16 broke with catalyst_par

2009-12-14 Thread Toby Corkindale
Hey guys, Catalyst::Runtime 5.80016 introduced a bug with catalyst_par. Various modules are now required for the scripts in /script/, however when building your application with "make catalyst_par" these are not included. Temporary fix is to add to Makefile.PL: catalyst_par_classes('Catalyst:

[Catalyst] Catalyst::Script::FastCGI ignores --daemon option (internally it is --detach)

2009-12-14 Thread Toby Corkindale
As of Catalyst::Runtime 5.8.16, Catalyst::Script::FastCGI is buggy and ignores the --daemon option. Looking at the source, I think it is mistakenly looking for --detach, although it is documented as wanting --daemon. -Toby ___ List: Catalyst@lists.

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80017

2010-01-11 Thread Toby Corkindale
Has anyone else had trouble getting this installed, due to the dependency on Class::MOP 0.97? I can't get class mop to install in my local lib - keeps dying with: Not a HASH reference at /usr/share/perl/5.10/ExtUtils/Install.pm line 557. make: *** [pure_site_install] Error 2 I'll report back on

Re: [Catalyst] Catalyst::View::JSON sends a file

2010-01-11 Thread Toby Corkindale
Tomas Doran wrote: On 11 Jan 2010, at 23:29, Christoph Friedrich wrote: just worked a little with Catalyst::View::JSON. But when I call some action via Firefox that uses this View Firefox gives me a file to download and don't show the json directly. Is there a way to change this behavior? I wa

[Catalyst] Enabling debug mode with fastcgi..

2010-01-17 Thread Toby Corkindale
Hi guys, If you're running a Catalyst app with the fastcgi script (as found in scripts/myapp_name_fastcgi.pl), then is there a way to enable the debug mode. (eg. like running scripts/myapp_server.pl -d) I've tried setting CATALYST_DEBUG and MYAPP_DEBUG in the shell environment, but that doesn

Re: [Catalyst] Enabling debug mode with fastcgi..

2010-01-18 Thread Toby Corkindale
7;m not sure if the new Cat ScriptRunner code will have fixed the issue there. cheers, Toby. On Mon, Jan 18, 2010 at 05:03:23PM +1100, Toby Corkindale wrote: Hi guys, If you're running a Catalyst app with the fastcgi script (as found in scripts/myapp_name_fastcgi.pl), then is there a wa

Re: [Catalyst] Enabling debug mode with fastcgi..

2010-01-19 Thread Toby Corkindale
On 19/01/10 21:45, Tomas Doran wrote: On 19 Jan 2010, at 00:26, Toby Corkindale wrote: As I said, I've tried the -e (same as -keeperr) options in combination with the *_DEBUG environment variables. That should (and does) work here.. Hmm. That's interesting to know.. I swea

[Catalyst] [PATCH] C-P-UploadProgress (converted away from NEXT)

2010-01-20 Thread Toby Corkindale
ince it's never calling super() from inside prepare_body_chunk. But hey, that's just how the original code worked too.. Cheers, Toby >From 95e1d77a555dcc1caae2ab29cbbd843450e8e337 Mon Sep 17 00:00:00 2001 From: Toby Corkindale Date: Thu, 21 Jan 2010 15:59:03 +1100 Subject: [PATCH] Rem

Re: [Catalyst] FastCGI deployment - slow to complete request

2010-02-15 Thread Toby Corkindale
On 15/02/10 15:59, Steve Rippl wrote: Hi, I have a small Catalyst app, the production version of which has been running pretty well using the built in server as there haven't been too many user at once. I'm trying to anticipate higher concurrent usage and switch to FastCGI (as that seems to be r

Re: [Catalyst] [ANNOUNCE] Catalyst::Manual 5.8004

2010-02-18 Thread Toby Corkindale
On 19/02/10 04:30, hkcl...@gmail.com wrote: Hi Everyone, Just wanted to let everyone know that I pushed an updated Catalyst Manual to CPAN yesterday. Almost all of the changes pertained to the tutorial. A big thanks to Caelum for doing most of the SQLite foreign key work. Also thanks to xeno

Re: [Catalyst] on the topic of PAR file distribution, why is it frowned upon?

2010-02-25 Thread Toby Corkindale
On 26/02/10 11:27, Tommy Butler wrote: Hello all, I will be deploying a catalyst app onto several dozens of servers in the next months, which will probably turn into more than that eventually. It is a year in the making, and quite complex in terms of all the things it requires to run (libraries)

Re: [Catalyst] on the topic of PAR file distribution.

2010-02-28 Thread Toby Corkindale
On 26/02/10 13:04, Tomas Doran wrote: On 26 Feb 2010, at 01:34, Toby Corkindale wrote: On 26/02/10 11:27, Tommy Butler wrote: What's the downside of this? How is this going to pose a problem for me? Installing from subversion and then CPANning all the required libs into the system vi

Re: [Catalyst] KiokuDB, MongoDB and the NoSQL thing

2010-03-01 Thread Toby Corkindale
On 02/03/10 17:07, S.A. Kiehn wrote: I have a couple of production Catalyst/DBIx::Class sites on Debian stable, and then on my personal hobby site I use local::lib to try out new things. Recently I split out my users for this site into a separate model and I thought it a good exercise to learn an

Re: [Catalyst] Distributing and updating Cat apps

2010-04-01 Thread Toby Corkindale
On 30/03/10 19:32, Tomáš Znamenáček wrote: Hello! I have a Catalyst application that I would like to upload from the development box to the production server. Is there some kind of best practice to do that? My requirements: 1) The process should take care of the dependencies and run the tests

Re: [Catalyst] Outcome of the "Security issue with hashed passwords in C:P:A:Password"?

2010-04-07 Thread Toby Corkindale
So, a while back there was some.. slightly heated.. discussion about security issues with C-P-A-Password.. or perhaps one of the modules it uses internally.. in certain cases, if certain options are, or are not, set. Then it quietened down without any apparent conclusion being reached. Now tha

Re: [Catalyst] Outcome of the "Security issue with hashed passwords in C:P:A:Password"?

2010-04-08 Thread Toby Corkindale
On 08/04/10 16:21, Andrew Rodland wrote: * In what circumstances was an attack possible? ie. What combination of modules, options, auth methods. * You use Catalyst::Authentication::Credential::Password. * With the "hashed" password_type. * And your database is compromised. I'd like to

Re: [Catalyst] Re: Outcome of the "Security issue with hashed passwords in C:P:A:Password"?

2010-04-08 Thread Toby Corkindale
On 08/04/10 22:49, Daniel Pittman wrote: Toby Corkindale writes: On 08/04/10 16:21, Andrew Rodland wrote: * In what circumstances was an attack possible? ie. What combination of modules, options, auth methods. * You use Catalyst::Authentication::Credential::Password. * With the

Re: [Catalyst] Distributing and updating Cat apps

2010-04-12 Thread Toby Corkindale
On 09/04/10 23:11, Bill Moseley wrote: On Thu, Apr 1, 2010 at 12:51 AM, Toby Corkindale We package things up into Debian-style packages, and then upload those to a local repository of packages. Then servers can just be updated using the standard system tools (apt). Hi Toby, This

Re: [Catalyst] Re: Alternatives to Catalyst ?

2010-04-22 Thread Toby Corkindale
On 23/04/10 09:10, Lyle wrote: Aristotle Pagaltzis wrote: You should switch to PHP. PHP is pronounced "poop", and there is far too much poop on the web already. There's also too much noise and not enough signal on the mailing list. Can we all try and resist cheap shots, name-calling, me-too

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-29 Thread Toby Corkindale
On 29/04/10 19:06, Oleg Pronin wrote: Maybe it is not the bottleneck, but how many places do we have like this that are "not a bottleneck" ? maybe the sum of all these "mini" mistakes is the bottleneck ? Hi Oleg, Do you have an application which *has* a bottleneck at the moment? If so, c

Re: [Catalyst] Contributing code

2010-06-22 Thread Toby Corkindale
On 22/06/10 00:19, Ævar Arnfjörð Bjarmason wrote: On Mon, Jun 21, 2010 at 13:48, Sir Robert Burbridge wrote: Out of a discussion last week, I have some code to contribute (largely to Catalyst::Helper). Two quick questions: 1) I've never contributed code to a project outside my work before.

Re: [Catalyst] Contributing code

2010-06-22 Thread Toby Corkindale
On 23/06/10 01:03, Tomas Doran wrote: On 22 Jun 2010, at 08:55, Toby Corkindale wrote: I think I asked about this last time (to great silence), but.. what's the correct base path for the Git repos there? ie. git clone http://git.shadowcat.co.uk//Catalyst-Devel.git Like the CPAN s

Re: [Catalyst] FastCGI caching issue

2010-07-06 Thread Toby Corkindale
On 07/07/10 07:35, Steve wrote: The reference to $cachetime was found on the Catalyst Wiki: http://wiki.catalystframework.org/wiki/adventcalendararticles/2007/11-making_your_catalyst_app_cache-friendly In that instance, it's a variable used in some example code - it only has any meaning within

Re: [Catalyst] Handling expired sessions gracefully

2010-07-08 Thread Toby Corkindale
On 09/07/10 00:53, Steve wrote: I've looked in the archives and tutorials but can't seem to find examples of handling expired sessions gracefully. I'm admittedly weak in the area of error checking, but I'm working on it :) Here are my questions: In what controller (Root.pm or MyApp.pm) and action

[Catalyst] Ann: Cat-Auth-Credential-YubiKey

2010-08-18 Thread Toby Corkindale
Hi, I've created a Catalyst::Authentication module that supports Yubico's YubiKey system. It's uploaded to PAUSE, so should be hitting CPAN mirrors soon as Catalyst::Authentication::Credential::YubiKey Info on the YubiKeys is available at http::/yubico.com/ They're a USB key that provides on

Re: [Catalyst] Catalyst and FormBuilder vs. IExplorer 8

2010-10-05 Thread Toby Corkindale
On 06/10/10 14:00, will trillich wrote: Short version: Catalyst/Formbuilder uploads work fine in firefox and chrome, works fine in IE 6... but not IE 8, where it throws an "object expected" error. Ugh, I hit this a little while ago, but have forgotten the details already. I think you are lookin

Re: [Catalyst] Catalyst and FormBuilder vs. IExplorer 8

2010-10-10 Thread Toby Corkindale
On 07/10/10 03:36, Moritz Onken wrote: Sounds like a trailing comma in the javascript somewhere. The trailing-comma problem occurs in IE6/7, but not in IE8. (Thank you, Microsoft). I think Will's problem *doesn't* occur on IE6/7, but just IE8, if I understand the situation correctly: >> On

Re: [Catalyst] Logging is not immediate

2010-10-18 Thread Toby Corkindale
On 19/10/10 10:46, Ken Beal wrote: Hi, I’m running Catalyst via the scripts\myapp_server.pl script. I have never configured it to run under a web server, and perhaps that’s the answer to my question. The issue is that when I call $c->log(), it doesn’t output anything until the “URL call” comple

[Catalyst] Handling long-running processes (was Re: Logging is not immediate)

2010-10-18 Thread Toby Corkindale
On 19/10/10 11:05, Bill Moseley wrote: On Mon, Oct 18, 2010 at 4:46 PM, Ken Beal mailto:kb...@crosscountry-auto.com>> wrote: The issue is that when I call $c->log(), it doesn’t output anything until the “URL call” completes. This makes it difficult to watch a long-running process,

Re: [Catalyst] Handling long-running processes (was Re: Logging is not immediate)

2010-10-19 Thread Toby Corkindale
On 20/10/10 09:19, Chris wrote: I'm curious to know how other people approach this issue. Also, what do you think about the polling approach vs a (background) connection that stays connected waiting for the completion signal? I've found polling much simpler to implement (and test) as it does

Re: [Catalyst] Running system commands under FastCGI with IPC::Cmd / IPC::Run

2010-10-21 Thread Toby Corkindale
On 22 October 2010 05:43, Ian Sillitoe wrote: > I have a Catalyst model that runs a system command as part of a search > facility. The system call only takes a fraction of a second so is processed > inline and this all works fine when tested outside of Catalyst and when > called under the Catalyst

Re: [Catalyst] FormHandler -- pro or con?

2010-12-06 Thread Toby Corkindale
On 1 December 2010 02:34, will trillich wrote: > Anybody else *dissing* FormHandler? We've started developing based on > FormHandler lately and haven't had troubles... yet? I'm running it, and have been very happy with it. It's nice that you can put all your common form elements into roles and th

Re: [Catalyst] Which Form Validation Libs?

2010-12-06 Thread Toby Corkindale
On 30 November 2010 22:26, Shlomi Fish wrote: > On Tuesday 30 November 2010 11:31:56 David Schmidt wrote: >> another great module which from my perception is used the most lately is >> >> HTML::FormHandler >> http://search.cpan.org/~gshank/HTML-FormHandler-0.32005/ >> > > I can recommend *against*

Re: [Catalyst] FormHandler -- pro or con?

2010-12-08 Thread Toby Corkindale
On 7 December 2010 18:03, Octavian Rasnita wrote: > From: "Toby Corkindale" > >> On 1 December 2010 02:34, will trillich wrote: >>> Anybody else *dissing* FormHandler? We've started developing based on >>> FormHandler lately and haven't had tr

Re: [Catalyst] FormHandler -- pro or con?

2010-12-12 Thread Toby Corkindale
On 9 December 2010 19:24, Octavian Rasnita wrote: >> Using Moose Roles for forms is awesome. > > I also agree with this idea, but the fact that the most used constraints, > filters and validators should be also manually specified using Perl code is > not so nice. > It would be nice to have a for

Re: [Catalyst] FormHandler -- pro or con?

2010-12-14 Thread Toby Corkindale
On 13 December 2010 21:07, Octavian Rasnita wrote: > From: "Toby Corkindale" > > On 9 December 2010 19:24, Octavian Rasnita wrote: >>> Using Moose Roles for forms is awesome. >> >> I also agree with this idea, but the fact that the most used constrain

[Catalyst] Opinions on static::simple - with caching

2011-01-30 Thread Toby Corkindale
I'm wondering if the following plugin I've written is misguided.. It enables proxy caches and browsers to better cache the files served by Static::Simple.. However, I suppose in situations where that matters, you shouldn't be serving files via Static::Simple.. And the regular Static::Simple still p

Re: [Catalyst] Opinions on static::simple - with caching

2011-01-31 Thread Toby Corkindale
On 31 January 2011 19:04, Tomas Doran wrote: > On 31 Jan 2011, at 07:17, Toby Corkindale wrote: > >> However, I suppose in situations where that matters, you shouldn't be >> serving files via Static::Simple.. >> And the regular Static::Simple still provides Last-

Re: [Catalyst] Re: Opinions on static::simple - with caching

2011-02-01 Thread Toby Corkindale
On 2 February 2011 00:08, Aristotle Pagaltzis wrote: > * Toby Corkindale [2011-02-01 03:25]: >> The case that I find having the headers enabled is as follows: >> >> Front end load-balancing proxies, talking to app servers >> running starman, running catalyst apps. &

Re: [Catalyst] Re: Opinions on static::simple - with caching

2011-02-01 Thread Toby Corkindale
On 2 February 2011 13:43, Andrew Rodland wrote: > On Tuesday, February 01, 2011 08:06:08 PM Toby Corkindale wrote: >> How do you find Plack at serving static files (via Middleware::Static >> / App::Static)? Compared to Static::Simple, and compared to native >> HTTPD. I gue

[Catalyst] [PATCH] Allow Expires and Cache-control headers in Static::Simple

2011-02-02 Thread Toby Corkindale
On 1 February 2011 23:28, Tomas Doran wrote: > On 1 Feb 2011, at 02:17, Toby Corkindale wrote: >> I'd like to see it as an option on Static::Simple; I could mod that >> and send a patch over if you liked? > > Sure, or just commit into a branch (you already have a commit

Re: [Catalyst] Git conversions

2011-06-20 Thread Toby Corkindale
On 17 May 2011 12:41, fREW Schmidt wrote: > Hey guys, > > So I've converted all of the DBIC repos from bast (our svn repo) that will > see new dev, and I got most of the Catalyst-Authentication modules > converted, as t0m had said he'd appreciate it.   If you'd like to see the > converted repos ta

[Catalyst] Recommended caching back-ends

2011-10-06 Thread Toby Corkindale
Hey all, I noticed today that Catalyst::Plugin::Cache::FastMmap has been DEPRECATED for some now. (With dire warnings about it segfaulting or discarding data randomly) I just wondered what the recommended caching backend is now, to use with Catalyst::Plugin::Cache. (In my case, cached data doesn'

[Catalyst] Re: Recommended caching back-ends

2011-10-06 Thread Toby Corkindale
Is there a Plugin::CHI or a CHI driver for Plugin::Cache anywhere? On 7 October 2011 12:52, Toby Corkindale wrote: > Hey all, > I noticed today that Catalyst::Plugin::Cache::FastMmap has been > DEPRECATED for some now. (With dire warnings about it segfaulting or > discarding data ran

Re: [Catalyst] Re: Recommended caching back-ends

2011-10-13 Thread Toby Corkindale
On 7 October 2011 18:22, Stephen Clouse wrote: > On Fri, Oct 7, 2011 at 12:05 AM, Toby Corkindale wrote: >> >> Is there a Plugin::CHI or a CHI driver for Plugin::Cache anywhere? > > CHI works fine with C::P::Cache out of the box, nothing extra required. > > Just sp

[Catalyst] Accesing PSGI 'env' from in a controller

2011-10-20 Thread Toby Corkindale
Hi, Is there a way to access values set in the PSGI "env" store, once you're operating inside a catalyst controller method? Catalyst::Engine::PSGI looks like it is passing the $env variable along, but I haven't worked out how to access it. I thought $c->request->env would do the trick, but that m

[Catalyst] Re: Accesing PSGI 'env' from in a controller

2011-10-20 Thread Toby Corkindale
ou suggest such stuff is handled? cheers, Toby On 21 October 2011 17:11, Toby Corkindale wrote: > Hi, > > Is there a way to access values set in the PSGI "env" store, once > you're operating inside a catalyst controller method? > > Catalyst::Engine::PSGI looks li

Re: [Catalyst] Catalyst 5.9007 / memcache /high cpu

2012-02-16 Thread Toby Corkindale
On 17 February 2012 11:16, Todd Benge wrote: > Hi, > > We recently updated our web servers to Catalyst 5.9007 with Perl 5.12. > > After the upgrade, we've consistently seen very high cpu on the machines > > 90%.  After much looking, it appears that the apache threads are stuck in > Cache::Memcache

Re: [Catalyst] Catalyst 5.9007 / memcache /high cpu

2012-02-19 Thread Toby Corkindale
hone > > On Feb 16, 2012, at 6:29 PM, Toby Corkindale wrote: > >> On 17 February 2012 11:16, Todd Benge wrote: >>> Hi, >>> >>> We recently updated our web servers to Catalyst 5.9007 with Perl 5.12. >>> >>> After the upgrade, we've c

Re: [Catalyst] Progress bar

2012-10-23 Thread Toby Corkindale
I was just investigating why the upload progress bar was broken on one of my apps.. came here to make a post and discovered this thread. Well, at least that's the first question answered! Given the caveats around Starman and WebKit browsers, are there any other suggestions for how to do upload pro

[Catalyst] Moose's make_immutable in Catalyst classes

2012-10-23 Thread Toby Corkindale
Hi, In modern Catalyst apps, we tend to create packages like this with Moose: package MyApp::Controller::Foo; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } ... 1; I was just wondering.. should we be adding Moose's make_immutable call to the end of these classes? i

Re: [Catalyst] Progress bar

2013-01-31 Thread Toby Corkindale
till can't use it!) On 24 October 2012 15:33, Toby Corkindale wrote: > I was just investigating why the upload progress bar was broken on one > of my apps.. came here to make a post and discovered this thread. > Well, at least that's the first question answered! > > Given th

[Catalyst] /Depreci?ate/ message

2013-05-21 Thread Toby Corkindale
I noticed that the recent Catalyst release has added a Depreciation warning to the Regex class. Are you sure you meant depreciate? I think old features are normally deprecated. Cheers, Toby -- Turning and turning in the widening gyre The falcon cannot hear the falconer Things fall apart; the cent

Re: [Catalyst] Stupid error with C::Authentication

2013-09-17 Thread Toby Corkindale
On 27 August 2013 02:07, Alex Povolotsky wrote: > In a quite simple application [snip] > I get > > [error] Caught exception in Admin::Controller::Root->index "Can't use string > ("Catalyst::Authentication::Store:"...) as a HASH ref while "strict refs" in > use at accessor Catalyst::Authentication:

[Catalyst] Mocking PSGI layers in Test WWW Mechanize Catalyst

2013-10-30 Thread Toby Corkindale
Hi, I wondered if there's any prior art around on inserting (mocked) PSGI layers into Test::WWW::Mechanize:Catalyst? Cheers, Toby -- Turning and turning in the widening gyre The falcon cannot hear the falconer Things fall apart; the center cannot hold Mere anarchy is loosed upon the world _

Re: [Catalyst] Mocking PSGI layers in Test WWW Mechanize Catalyst

2013-10-31 Thread Toby Corkindale
n another framework you can > point to? > > johnn > > > On Thursday, October 31, 2013 12:55 AM, Toby Corkindale > wrote: > Hi, > I wondered if there's any prior art around on inserting (mocked) PSGI > layers into Test::WWW::Mechanize:Catalyst? > > Cheers, > T

Re: [Catalyst] Mocking PSGI layers in Test WWW Mechanize Catalyst

2013-10-31 Thread Toby Corkindale
t. On 1 November 2013 11:39, Toby Corkindale wrote: > Umm, not that I know of. > > I suppose another way to phrase the question is: Is there a way to > manipulate the $c->engine->env in the Catalyst application, from > within unit tests neatly? > > On 1 November 2013 08:

Re: [Catalyst] Mocking PSGI layers in Test WWW Mechanize Catalyst

2013-10-31 Thread Toby Corkindale
in my case, there's a bit more to it than that. T > On 01/11/2013, at 11:39 AM, Toby Corkindale wrote: > >> Umm, not that I know of. >> >> I suppose another way to phrase the question is: Is there a way to >> manipulate the $c->engine->env in the Cata

Re: [Catalyst] Mocking PSGI layers in Test WWW Mechanize Catalyst

2013-10-31 Thread Toby Corkindale
On 1 November 2013 12:29, Kieren Diment wrote: > On 01/11/2013, at 12:26 PM, Toby Corkindale wrote: >> On 1 November 2013 12:01, Kieren Diment wrote: >>> You mean you want two apps interacting with each other in the same script >>> using WWW::MEchanize? Eden and I w

Re: [Catalyst] Mocking PSGI layers in Test WWW Mechanize Catalyst

2013-11-03 Thread Toby Corkindale
On 2 November 2013 02:39, John Napiorkowski wrote: > Catalyst::Test uses Plack::Test under the hood. That mangle_response stuff > is mostly evil :) > > Sounds like you are saying you'd like to apply Plack Middleware during > testing. The latest dev release on CPAN lets you configure middleware v

Re: [Catalyst] Providing a REST API from behind Apache/FastCGI?

2013-11-10 Thread Toby Corkindale
On 9 November 2013 07:54, Dan Lowe wrote: > When I move this from dev to test, which means it goes behind mod_fastcgi, it > stops working. Every request gets back 401 Unauthorized. As far as I can > tell, the Authorization header is not being passed through to Catalyst. > > Has anyone had this p

[Catalyst] Bug in old Advent example of async/websockets code?

2015-02-22 Thread Toby Corkindale
Hi, I've been trying to replicate the use of WebSockets in Catalyst, by following the example from the Advent calendar a year and a bit ago. ie. https://github.com/perl-catalyst/2013-Advent-Staging/blob/master/Websocket-Echo/lib/MyApp/Controller/Root.pm In my experience, it isn't actually working

Re: [Catalyst] Bug in old Advent example of async/websockets code?

2015-02-22 Thread Toby Corkindale
e->next) { warn "ws: frame contained: $msg\n"; $hd->push_write($hs->build_frame(buffer => "Hello $msg")->to_bytes); } }); } On 23 February 2015 at 12:08, Toby Corkindale wrote: > Hi, > I've been trying to replicate the use of WebSock

Re: [Catalyst] advise on data processing in Cat/DBIC/Model

2007-11-26 Thread Toby Corkindale
On Mon, Nov 26, 2007 at 07:04:24PM +, Matt S Trout wrote: > On Mon, Nov 26, 2007 at 04:33:02PM +0100, Rainer Clasen wrote: > > Hello, > > > > within my current project, some value is collected up to once a day: > > > > CREATE TABLE a_value { > > day date PRIMARY KEY, > > other_values int

Re: [Catalyst] utf8 in mysql

2007-12-03 Thread Toby Corkindale
>> On Sun, 2007-12-02 at 16:41 +0200, Angel Kolev wrote: >>> Hi again :) I found a solution i think. With Encode::Detect i can do: >>> use Encode; >>> require Encode::Detect; >>> my $utf8 = decode("Detect", $data); >> >> Looks like this module uses Mozilla's encoding detector, which does a >>

Re: [Catalyst] Web hosting?

2008-01-03 Thread Toby Corkindale
On Fri, Jan 04, 2008 at 02:05:17PM +0800, Martin Ellison wrote: > OK, I am discussing this with DreamHost, and hope to be able to resolve the > issue. But... when I originally started this thread, several posters > suggested various hosting companies at around the USD 50-100/month level, > which w

Re: [Catalyst] Gentoo Catalyst overlay: repository moved!

2008-01-13 Thread Toby Corkindale
On Wed, Jan 09, 2008 at 06:06:05PM +0100, Michele Beltrame wrote: > Hello! > > The Catalyst-related ebuilds (along with some others) are now part of the > perl-exprimental Gentoo overlay. > > Old repository and overlay will not be maintained any more. Hi Michele, Are you still maintaining the re

Re: [Catalyst] Detecting Incorrectly Displayed Page (Generating and Visiting URLS automatically ?)

2008-02-03 Thread Toby Corkindale
On Mon, Feb 04, 2008 at 03:58:54PM +0900, [EMAIL PROTECTED] wrote: > Hi, > > I am currently doing some tests with my application and I am wondering if > there is any efficient and effective way to know if pages which should be > displayed correctly are actually being redirected to another page,

Re: [Catalyst] ModPerl catapp and SSLVerifyClient

2008-02-09 Thread Toby Corkindale
On Fri, Feb 08, 2008 at 03:50:19PM -0500, John Lifsey - Contractor - wrote: > This is really more of an Apache question, but I was hoping one of you guys > may have run into it in the past. I have a MP Cat application running in > The application needs for Clients to identify themselves via > >

Re: [Catalyst] cookies!

2008-02-12 Thread Toby Corkindale
On Tue, Feb 12, 2008 at 03:44:44PM -0800, Jennifer Ahn wrote: > hello! > > how does one implement cookies in catalyst? > > jennifer You can access the cookie jar with: $c->request->cookie('myCookie'); or $c->request->cookies->{'myCookie'}->value; To set cookies, use $c->response instead, like: $c

Re: [Catalyst] Doing work inside the DBIx::Class model

2008-02-19 Thread Toby Corkindale
On Wed, Feb 20, 2008 at 01:10:12PM +1000, Cian Barclay wrote: > Hello Catalysters, > > I'm using Catalyst with a DBIx::Class model generated by > DBIx::Class::Schema::Loader. > > I want to make my model do more work, rather than having my > controllers fiddling around with model objects doing thi

Re: [Catalyst] CatalystSites.org

2008-04-16 Thread Toby Corkindale
On Fri, Apr 11, 2008 at 02:06:49PM -0700, Ashley wrote: > On Apr 11, 2008, at 1:33 PM, Christopher H. Laco wrote: >> /tag/name/ >> /tag/id/ >> >> The greatness of future possibilities is expanded to much happiness. >> Chained/sub instance() make all the code behind either option JustWork. > > clac

Re: [Catalyst] Re: CatalystSites.org

2008-04-16 Thread Toby Corkindale
On Wed, Apr 16, 2008 at 11:20:40AM +0200, Aristotle Pagaltzis wrote: > * Toby Corkindale <[EMAIL PROTECTED]> [2008-04-16 09:10]: > > Eg: > > http://eventbot.dryft.net/people/view/13 > > == > > http://eventbot.dryft.net/people/view/pir > > > > (It'

[Catalyst] modperl 1.3 wierdness

2008-04-20 Thread Toby Corkindale
Hi guys, I have an application that runs well on modperl 2.0, fcgi and the standalone server.. but due to some stubborn/paranoid sysadmins[1] we are going to have to run it under modperl 1.3. This has resulted in some wierdness I haven't seen before, and I wondered if anyone else had hit it? I'll

Re: [Catalyst] modperl 1.3 wierdness

2008-04-21 Thread Toby Corkindale
On Mon, Apr 21, 2008 at 04:54:00PM +1000, Toby Corkindale wrote: > Hi guys, > I have an application that runs well on modperl 2.0, fcgi and the standalone > server.. but due to some stubborn/paranoid sysadmins[1] we are going to have > to run it under modperl 1.3. Footnotes: 1) This

Re: [Catalyst] modperl 1.3 wierdness

2008-04-21 Thread Toby Corkindale
On Mon, Apr 21, 2008 at 04:54:00PM +1000, Toby Corkindale wrote: > Hi guys, > I have an application that runs well on modperl 2.0, fcgi and the standalone > server.. but due to some stubborn/paranoid sysadmins[1] we are going to have > to run it under modperl 1.3. > > This ha

Re: [Catalyst] modperl 1.3 wierdness

2008-04-27 Thread Toby Corkindale
On Mon, Apr 21, 2008 at 07:23:44PM +0100, Matt S Trout wrote: > On Mon, Apr 21, 2008 at 07:09:26PM +1000, Toby Corkindale wrote: > > The above problem was solved by changing the apache config. > > Before: > > > >use lib qw(/my/home/dir); > > >

[Catalyst] Dispatching with Chained vs HTTP method

2008-04-30 Thread Toby Corkindale
just looking for some advice on the best way to do something.. So I wrote a controller class using Chained that basically auto-converts any DBIx::Schema (which includes a tiny extra base class itself) into a REST API.. Well, a simple one anyway - it supports find and search so far, and foreign key

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-04-30 Thread Toby Corkindale
::Class in the process too :) Toby > On Wed, Apr 30, 2008 at 10:26 AM, Toby Corkindale <[EMAIL PROTECTED]> wrote: > > just looking for some advice on the best way to do something.. > > > > So I wrote a controller class using Chained that basically auto-converts >

Re: [Catalyst] modperl 1.3 wierdness

2008-05-04 Thread Toby Corkindale
On Sat, May 03, 2008 at 11:22:49PM +0100, Matt S Trout wrote: > On Mon, Apr 28, 2008 at 11:30:53AM +1000, Toby Corkindale wrote: > > Unfortunately due to somewhat unusual app deployment tactics here, apps get > > "installed" manually, into their own little area, along wit

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-06 Thread Toby Corkindale
On Thu, May 01, 2008 at 08:41:26AM +0200, Zbigniew Lukasiak wrote: > On Thu, May 1, 2008 at 6:23 AM, Toby Corkindale <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 30, 2008 at 11:24:36AM +0200, Zbigniew Lukasiak wrote: > > > Hi Toby, > > > > > > I don

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-06 Thread Toby Corkindale
Hi Adam, On Wed, May 07, 2008 at 03:30:12PM +1000, Adam Clarke wrote: > On 07/05/2008, at 11:05 AM, Toby Corkindale wrote: > >> Ah, I was thinking of transactions vs a REST API, eg: >>PUT /user/1234/account_balance?subtract=1 >>POST /user/4567/account_balance?add=

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-06 Thread Toby Corkindale
On Wed, May 07, 2008 at 03:57:07PM +1000, Toby Corkindale wrote: [snip] > $id = POST transaction > $amount = GET /user/1/account_balance > $amount2 = GET /user/2/account_balance > PUT /user/1/account_balance/$amount-1 > PUT /user/2/account_balance/$amount+1 Whoops, that should read

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread Toby Corkindale
On Wed, May 07, 2008 at 09:55:10AM +0200, Zbigniew Lukasiak wrote: > On Wed, May 7, 2008 at 7:57 AM, Toby Corkindale <[EMAIL PROTECTED]> wrote: [snip] > > I wonder how one goes about implementing such a transaction on the server > > side.. One would not want to lock DB rows

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread Toby Corkindale
On Wed, May 07, 2008 at 06:02:46PM +1000, Adam Clarke wrote: > On 07/05/2008, at 3:57 PM, Toby Corkindale wrote: >> On Wed, May 07, 2008 at 03:30:12PM +1000, Adam Clarke wrote: >>> >>> The solution suggested in "Restful Web Services" is to POST to a >>

[Catalyst] Solved - curious Catalyst/DBIx:Class bug

2008-05-11 Thread Toby Corkindale
Found and solved an interesting little bug in someone else's application today. Their unit tests ran fine, but the application itself always died instantly, with an error from Class::C3::XS.. so they thought the bug was in DBIx::Class, or rather their use of it, and we spent a lot of time hunting

Re: [Catalyst] How to display a "Please Wait" page

2008-08-10 Thread Toby Corkindale
On Sun, Aug 10, 2008 at 09:22:40PM -0500, Collin Condray wrote: > I am in the process of creating a website using catalyst. I have a check out > page that processes payment information and performs some automated tasks > for the client that takes several seconds to complete. I'd like to display a >

[Catalyst] Cat + DBIC + DBD-Pg + mpm_worker

2008-08-11 Thread Toby Corkindale
Hi, I know the Cat cookbook suggests one should use mod_perl only with the preforking MPM.. but I wanted to try with the worker (ie. threaded) MPM anyway. DBD-Pg had some thread-safety work done years ago, and I meant to be fine.. However I'm seeing errors like this one: Couldn't render template

Re: [Catalyst] Cat + DBIC + DBD-Pg + mpm_worker -- Solution

2008-08-12 Thread Toby Corkindale
On Tue, Aug 12, 2008 at 02:03:56PM +1000, Toby Corkindale wrote: > Hi, > I know the Cat cookbook suggests one should use mod_perl only with the > preforking MPM.. but I wanted to try with the worker (ie. threaded) MPM > anyway. > > DBD-Pg had some thread-safety work done year

Re: [Catalyst] GENTOO ebuilds: important change in keywords

2008-10-30 Thread Toby Corkindale
Michele Beltrame wrote: Hello all! Gentoo overlays management made the following changes to the ebuilds in the perl-experimental overlay: 1 - All ebuilds in dev-perl are now marked as unstable (~arch). 2 - All archs have been removed except for ~x86 and ~amd64 All packages in the overlays are

Re: [Catalyst] Catalyst, MVCs and other MVCs

2008-11-16 Thread Toby Corkindale
Matt S Trout wrote: On Tue, Nov 04, 2008 at 05:56:51PM +1100, Adam Clarke wrote: Our first experiences of trying to use it were quite frustrating - there were zillions of dependencies to be met and this could take a fair bit of perseverance since they would often fail to install for reasons

[Catalyst] Catalyst install failure due to Mouse.pm on Debian Etch

2008-11-26 Thread Toby Corkindale
Hi guys, I'm having trouble getting Catalyst to install (via CPAN) on a fresh Debian Etch install. The problem is the dependency Mouse (0.11) fails its unit tests there. (I'd guess due to the older versions of some core packages). I've raised http://rt.cpan.org/Ticket/Display.html?id=41254. Ca

Re: [Catalyst] OT: Use the CPAN, Luke?

2008-11-26 Thread Toby Corkindale
Aristotle Pagaltzis wrote: * Toby Corkindale <[EMAIL PROTECTED]> [2008-11-27 01:55]: The problem is the dependency Mouse (0.11) fails its unit tests there. That’s really the sole solid argument against a flamboyant use-the-CPAN attitude: you end up pulling in heaps of bloat because n

  1   2   >