Re: [Catalyst] recommendation

2008-11-10 Thread Martin Ellison
Recommend using version control. Then you know what you have changed. -- Regards, Martin ([EMAIL PROTECTED]) IT: http://methodsupport.com Personal: http://thereisnoend.org ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Hello, Deployment of Catalyst apps in a shared web hosting account without shell

2008-10-03 Thread Martin Ellison
It may be theoretically possible, but probably would prove impossibly frustrating. You can be reasonably certain that your host will not have all the Perl modules that you need and you will need to do a local install. 2008/10/3 Lee Aylward [EMAIL PROTECTED] On Thu, Oct 02, 2008 at 06:10:01PM

Re: [Catalyst] Trouble with loading catalyst app onto different machine

2008-09-01 Thread Martin Ellison
Version mismatch in your libraries? 2008/9/1 Conrad Canterford [EMAIL PROTECTED] Hi list, My app works just fine on my development machine, but when I copy it onto my live server (on a different machine), it fails with the following whenever I try to access anything past the first page (in

Re: [Catalyst] [PATCH] PageCache and white labelling

2008-08-21 Thread Martin Ellison
Will do, slight circular tuit shortage. Also tropical cyclone. 2008/8/22 Matt S Trout [EMAIL PROTECTED] On Sat, Aug 16, 2008 at 09:28:57PM +0800, Martin Ellison wrote: I am resubmitting this patch *again*, could someone please look at it. If you can please send the patch -with- the config

Re: [Catalyst] PageCache and white labelling?

2008-08-17 Thread Martin Ellison
2008/8/18 Matt S Trout [EMAIL PROTECTED] ...config should be under 'Plugin::PageCache' as I said - that's the standard for plugin config info. If PageCache is still using old style it'd be nice if you could do a first patch switching it across. I'm concerned about doing two things in the

[Catalyst] [PATCH] PageCache and white labelling

2008-08-16 Thread Martin Ellison
I am resubmitting this patch *again*, could someone please look at it. -- Regards, Martin ([EMAIL PROTECTED]) IT: http://methodsupport.com Personal: http://thereisnoend.org 14keymaker.t Description: Troff document Index: PageCache.pm

Re: [Catalyst] [PATCH] PageCache and white labelling

2008-08-16 Thread Martin Ellison
ok, have done, is http://rt.cpan.org/Public/Bug/Display.html?id=38524 2008/8/16 J. Shirley [EMAIL PROTECTED] On Sat, Aug 16, 2008 at 6:28 AM, Martin Ellison [EMAIL PROTECTED] wrote: I am resubmitting this patch again, could someone please look at it. You may have better results filing

Re: [Catalyst] PageCache and white labelling?

2008-08-13 Thread Martin Ellison
I put up the patch several days ago; has anyone looked at it? 2008/8/9 Martin Ellison [EMAIL PROTECTED] OK, here is some corrected code with some POD: Index: PageCache.pm === --- PageCache.pm(revision 756) +++ PageCache.pm

Re: [Catalyst] PageCache and white labelling?

2008-08-09 Thread Martin Ellison
? $keymaker($c) : / . $c-req-path; What else do you need? POD? Tests? 2008/8/9 Martin Ellison [EMAIL PROTECTED] I'm concerned about impacting the performance; this must be high-traffic code. But I'll look into it. 2008/8/8 Matt S Trout [EMAIL PROTECTED] On Fri, Aug 08, 2008 at 05:08:02PM

Re: [Catalyst] PageCache and white labelling?

2008-08-09 Thread Martin Ellison
/cache/count'), 'request ok' ); is( $res-content, 2, 'count is still 2 from cache' ); 2008/8/9 Martin Ellison [EMAIL PROTECTED] What about:... [bad code]... What else do you need? POD? Tests? 2008/8/9 Martin Ellison [EMAIL PROTECTED] I'm concerned about impacting the performance; this must

[Catalyst] PageCache and white labelling?

2008-08-08 Thread Martin Ellison
I get the impression that PageCache cannot discriminate on URL; is that correct? I am trying to 'whitelabel' a site, that is to run several hostnames into the one Catalyst site and then serve somewhat different content based on the URL, giving the appearance of multiple websites. However, it

[Catalyst] Re: PageCache and white labelling?

2008-08-08 Thread Martin Ellison
I have tried subclassing PageCache, but it is not doing Catalyst magic: when asked to do * $c-cache_page( ..) it says * Can't locate object method cache_page via package 2008/8/8 Martin Ellison [EMAIL PROTECTED] I get the impression that PageCache cannot discriminate on URL

Re: [Catalyst] PageCache and white labelling?

2008-08-08 Thread Martin Ellison
I'm concerned about impacting the performance; this must be high-traffic code. But I'll look into it. 2008/8/8 Matt S Trout [EMAIL PROTECTED] On Fri, Aug 08, 2008 at 05:08:02PM +0800, Martin Ellison wrote: But PageCache only works off $c-request-path() ie not the hostname. This behaviour

Re: [Catalyst] UTF-16 surrogate warning under FastCGI

2008-07-22 Thread Martin Ellison
Jim, thanks for that. I have the same problem but have not had the time to create a test case. 2008/7/23 Jim Spath [EMAIL PROTECTED] Jim Spath wrote: So I know the whole UTF-16 surrogate warning issue has been brought up a few times on this list, but I don't think anyone has posted a

[Catalyst] Capture page on server?

2008-06-23 Thread Martin Ellison
Sorry, bit of a newbie question: is there any way that I can run an action but capture the results (server-side) to a file? Doing so client side is easy (eg wget) but I want to keep the page text on the server and to automate the page generation/save. -- Regards, Martin ([EMAIL PROTECTED]) IT:

Re: [Catalyst] Capture page on server?

2008-06-23 Thread Martin Ellison
the app to do something (so the server can restart the fastcgi process before the user requests any other page). 2008/6/23 Jonathan Rockway [EMAIL PROTECTED]: * On Mon, Jun 23 2008, Martin Ellison wrote: Sorry, bit of a newbie question: is there any way that I can run an action but capture

Re: [Catalyst] Capture page on server?

2008-06-23 Thread Martin Ellison
ok, that works thanks (as does the server side wget). 2008/6/23 Kieren Diment [EMAIL PROTECTED]: On 23 Jun 2008, at 21:45, Martin Ellison wrote: Sorry, bit of a newbie question: is there any way that I can run an action but capture the results (server-side) to a file? Doing so client side

Re: [Catalyst] Catalyst site design drafts feedback thread

2008-06-17 Thread Martin Ellison
On my browser (FF3, screen resolution 1440x900): (1) http://www.browsing.co.uk/cat The YouTube box overlaps part of the second column. (2) http://agaton.scsys.co.uk/~matthewt/catsite/cat_mock_web_001.pnghttp://agaton.scsys.co.uk/%7Ematthewt/catsite/cat_mock_web_001.png Takes a long

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-24 Thread Martin Ellison
setting? -ash On 23 May 2008, at 16:00, Martin Ellison wrote: Another case... the surrogate is d862 = 55394 but the image size is 45296, so it is not looking consistent. So perhaps the 'surrogate' data is just random bytes from the JPEG. 2008/5/23 Martin Ellison [EMAIL PROTECTED]: I've

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-23 Thread Martin Ellison
I've found a case ...stderr: UTF-16 surrogate 0xdb71 at /usr/lib/perl/5.8/IO/Handle.pm line 199... FastCGI: ... [info] picture size is 55966 55966 = da9e 56177 = db71 So almost the same. Perhaps I have 100 bytes of headers. 2008/5/20 Martin Ellison [EMAIL PROTECTED]: The Content-Type is set

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-23 Thread Martin Ellison
Another case... the surrogate is d862 = 55394 but the image size is 45296, so it is not looking consistent. So perhaps the 'surrogate' data is just random bytes from the JPEG. 2008/5/23 Martin Ellison [EMAIL PROTECTED]: I've found a case ...stderr: UTF-16 surrogate 0xdb71 at /usr/lib/perl/5.8

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-19 Thread Martin Ellison
to investigate further. Hope all this helps - I look forward to someone else solving it for me ;) Merlyn Kline -Original Message- *From:* Martin Ellison [mailto:] *Sent:* 12 May 2008 10:05 *To:* The elegant MVC web framework *Subject:* Re: [Catalyst] UTF-16 surrogate message when writing

Re: [Catalyst] UTF-16 surrogate message when writing binary data(image)

2008-05-19 Thread Martin Ellison
The Content-Type is set to 'UTF-8' for most of my pages, but, in this case, it is image/jpeg and the content disposition is set to inline. 2008/5/19 Ash Berlin [EMAIL PROTECTED]: On 19 May 2008, at 12:34, Martin Ellison wrote: I've finally had the opportunity to test my code a bit more

[Catalyst] UTF-16 surrogate message when writing binary data (image)

2008-05-09 Thread Martin Ellison
If I write binary data (a JPEG) using $c-res-body then I get all these errors stderr: UTF-16 surrogate 0xdf98 at /usr/lib/perl/5.8/IO/Handle.pm line 199. My code looks like $c-res-content_type(q{image/jpeg}); $c-res-header( 'Content-Disposition', q{inline} );

Re: [Catalyst] Re: UTF-16 surrogate message when writing binary data (image)

2008-05-09 Thread Martin Ellison
my $p = new Image::Magick; ... lots of code my $pic_image = $p-ImageToBlob(); I'm not sure if that makes it a character string but surely not? I am using the Unicode plugin; does it cause any problems? 2008/5/9 Aristotle Pagaltzis [EMAIL PROTECTED]: * Martin Ellison [EMAIL PROTECTED

Re: [Catalyst] FastCGI: incomplete headers (0 bytes) received from server

2008-05-07 Thread Martin Ellison
The error is presumably because your fast cgi system has a timeout. Do you have some code that sometimes takes a long time to run? If it only happens about 1% of the time it may be normally just quicker than the limit, but occasionally going over. 2008/5/7 John Goulah [EMAIL PROTECTED]: On

[Catalyst] Wikipedia article improvement?

2008-05-07 Thread Martin Ellison
The Wikipedia article on Catalyst ( http://en.wikipedia.org/wiki/Catalyst_%28software%29) could do with some improvement and updating. -- Regards, Martin ([EMAIL PROTECTED]) IT: http://methodsupport.com Personal: http://thereisnoend.org ___ List:

[Catalyst] Strange UTF16 warning

2008-05-07 Thread Martin Ellison
I've got the same problem for the same reason (trying to return a JPEG). Presumably something thinks that it is getting text (Unicode) and picks up some special characters. Is there some equivalent of binmode for body? -- Regards, Martin ([EMAIL PROTECTED]) IT: http://methodsupport.com Personal:

Re: [Catalyst] Strange UTF16 warning

2008-05-07 Thread Martin Ellison
work. But I'm concerned that something is treating my output as UTF8 or otherwise stringy when it shouldn't be. Any ideas? Thanks in advance, Brian Kirkbride 2008/5/7 Martin Ellison [EMAIL PROTECTED]: I've got the same problem for the same reason (trying to return a JPEG). Presumably

Re: [Catalyst] CatalystSites.org

2008-04-06 Thread Martin Ellison
我看没懂。。。 On 06/04/2008, Oleg Pronin [EMAIL PROTECTED] wrote: 5 ballov : 2008/4/6, Marcus Ramberg [EMAIL PROTECTED]: ty chego raspizdelsia po-russki, suka? :D Marcus On 2. april. 2008, at 19.17, Oleg Pronin wrote: ti che raspizdilsya po-nemetski, suka ? 2008/4/2, Ulf

[Catalyst] CGI.pm and Catalyst?

2008-03-07 Thread Martin Ellison
Is there anything attached to Catalyst similar to the CGI.pm module? That is, creating the HTML by a series of procedure calls rather than by instantiating a template? Or is there some way to link up the existing CGI module? $c-response-body(ul(li(q{hello}), li(q{world} ? Or is it not a good

Re: [Catalyst] Debugging Catalyst with Eclipse

2008-01-23 Thread Martin Ellison
Try going through the mailing list archives and extracting useful information. I got some useful advice on several sticking points, and I am sure others did too. Take that out and organise it. On 23/01/2008, Matt S Trout [EMAIL PROTECTED] wrote: On Tue, Jan 22, 2008 at 09:13:51AM -0600, Nathan

Re: [Catalyst] warning

2008-01-23 Thread Martin Ellison
On 23/01/2008, Carl Johnstone [EMAIL PROTECTED] wrote: I can't think of any reason why you should be serving the same site on different domains. Note (before somebody pulls me up again) that different white-labelled sites based on the same app is a different situation. You may want to

Re: white-labelling [Catalyst] (Was: warning)

2008-01-23 Thread Martin Ellison
Interesting term, 'white labelling'; where do you get it from. A client wants something similar so I am interested in the issue. The sites will have some differences such as CSS but access the same application. On 24/01/2008, Carl Johnstone [EMAIL PROTECTED] wrote: You may want to deliver

Re: [Catalyst] Serving html pages

2008-01-12 Thread Martin Ellison
location cannot be used with a .htaccess file. Neither can Alias. On 13/01/2008, Len Jaffe [EMAIL PROTECTED] wrote: On Jan 11, 2008 10:18 PM, Martin Ellison [EMAIL PROTECTED] wrote: I have a similar problem, but I am on shared hosting and I do not have access to httpd.conf, only

Re: [Catalyst] Serving html pages

2008-01-11 Thread Martin Ellison
I have a similar problem, but I am on shared hosting and I do not have access to httpd.conf, only to the local .htaccess files. I have the static plugin set up so we are delivering HTML, image files and other static pages via Catalyst, but similarly to Alejandro I would like to serve up the pages

Re: [Catalyst] Web hosting?

2008-01-05 Thread Martin Ellison
I've now sorted this out with DreamHost and we now have an account. On 04/01/2008, Martin Ellison [EMAIL PROTECTED] wrote: The refusal email was (on face) from a human, and did not state any reason. I've replied asking for an explanation. On 04/01/2008, Jon Schutz [EMAIL PROTECTED] wrote

[Catalyst] CPAN install without test? [ot]

2008-01-05 Thread Martin Ellison
Does anyone know how to get CPAN to install a module without doing the test steps at all? Force install still does the test steps; I just want to go to the actual make install. Slightly off topic, but if anyone knows how to install modules, it must be Catalyst developers... (the module in

Re: [Catalyst] Web hosting?

2008-01-03 Thread Martin Ellison
to benefit Cat development. Check the archives or (better still, they've changed how referrals work in the last year) wait for someone else to post it again. -Ashley On Dec 15, 2007, at 8:07 PM, Martin Ellison wrote: Can anyone recommend a web hosting provider for Catalyst applications

Re: [Catalyst] Web hosting?

2008-01-03 Thread Martin Ellison
). So, what I would like to ask in this post is for a Plan B in case DreamHost fall through: can anyone recommend another good hosting company that supports Catalyst at around the USD 10 / month level, more or less? On 04/01/2008, Martin Ellison [EMAIL PROTECTED] wrote: The refusal email

[Catalyst] How to insert from form to MySQL with autoincrement primary key?

2007-12-09 Thread Martin Ellison
Sorrry, this is another newbie question. I am using HTML::Widget and DBIx::Class to do simple CRUD on some MySQL tables. I have defined an auto-increment primary key on one of my tables, and I want to use an HTML form to populate and create a new object. I then want to retrieve the

Re: [Catalyst] How to insert from form to MySQL with autoincrement primary key?

2007-12-09 Thread Martin Ellison
I tried my $newid = $c-model( q{MyAppDB::MyTable} )-result_source-storage-last_insert_id(); and it gave me zero, so I'm not sure how to proceed. On 10/12/2007, Martin Ellison [EMAIL PROTECTED] wrote: Yes, I had a form field with the same name as the table key, because, when I do an update

Re: [Catalyst] How to insert from form to MySQL with autoincrement primary key?

2007-12-09 Thread Martin Ellison
Yes, I had the DBIC trace going. Basically it did an INSERT (without the key field, correctly), but not a (select of the) LAST_INSERT_ID(), at least, not in the trace. So perhaps it had no way of knowing the new key. On 10/12/2007, Carl Franks [EMAIL PROTECTED] wrote: On 09/12/2007, Martin

Re: [Catalyst] Re: How to insert from form to MySQL with autoincrement primary key?

2007-12-09 Thread Martin Ellison
My table class is basically: use base qw/DBIx::Class/; __PACKAGE__-load_components(qw/PK::Auto Core HTMLWidget/); # Set the table name __PACKAGE__-table('mytable'); # Set columns in table __PACKAGE__-add_columns( qw/mytable_id title date/ ); # Set the primary key for the table

Re: [Catalyst] Newbie question - $c-login is missing

2007-12-04 Thread Martin Ellison
else?) So I am still not sure how to proceed. On 04/12/2007, Jason Kohles [EMAIL PROTECTED] wrote: On Dec 4, 2007, at 8:40 AM, Martin Ellison wrote: I am getting this message [error] Caught exception in myapp::Controller::User-loginuser Can't locate object method login via package myapp

Re: [Catalyst] Newbie question - $c-login is missing

2007-12-04 Thread Martin Ellison
Jonathan: my $username = $c-request-params-{username} || ; my $password = $c-request-params-{password} || ; These had non-empty values (verified from the trace). On 05/12/2007, Jonathan Rockway [EMAIL PROTECTED] wrote: On Wed, 2007-12-05 at 01:31 +0800, Martin Ellison wrote: I