Re: [Catalyst] No data showing

2012-04-27 Thread Stuart Watt
Surely that should be [% account.department_id %], etc. All the best Stuart On 2012-04-27, at 10:50 AM, Kenneth S Mclane wrote: [% accounts.department_id %] ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] How best not to use the system perl

2011-09-30 Thread Stuart Watt
Perl 5.10 isn't really supported any more, so it is highly likely that at some stage the system Perl will get upgraded behind the scenes, breaking binary compatibility with modules even if they are in local::lib. The only safe solution is to use your own Perl (I'd not put it directly under

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

2010-10-21 Thread Stuart Watt
for an example. In my FCGI, the FILENO method is present, but this appears to have been added in version 0.67_01 on 20 Dec 2009 - this is pretty recent and your Perl may not include it. --S Stuart Watt ARM Product Developer Information Balance On 10/21/2010 2:43 PM, Ian Sillitoe wrote: I have

Re: [Catalyst] I18N

2010-10-15 Thread Stuart Watt
on use parent which is not properly set in the dependencies on CPAN. I *think* what I need to do is either (a) fork C::P::I18N, or (b) fix CatalystX::I18N. However, given the Moose changes, I'm not sure which is a better approach. I'm guessing (b), but this is a guess. Stuart Watt ARM Product

[Catalyst] I18N

2010-10-12 Thread Stuart Watt
Quick question: I'm currently using Catalyst::Plugin::I18N. Should I be planning to move to CatalystX::I18N? Any thoughts...? --S -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Displaying template files without adding new controller actions

2010-10-11 Thread Stuart Watt
If it's a TT file you need (i.e., not static), along with appropriate processing, you can make a variation on Ben's suggestion by using the $c-request-arguments, and putting the file name into $c-stash-{template} before handing off to the TT view, which is likely to be the default. This is a

Re: [Catalyst] Remote authN not getting username from remote_user()

2010-09-23 Thread Stuart Watt
using SSL? Looking at the code, this can affect the environment variables used to transmit the remote name. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-08 Thread Stuart Watt
thing architecturally. --S Stuart Watt ARM Product Developer Information Balance On 9/8/2010 10:54 AM, Simon Miner wrote: Thanks for the responses, Jason, I don't think reducing the number of database connections will hurt responsiveness. Even though there are 3 separate Catalyst apps, each

Re: [Catalyst] Confused: how to handle system-level errors with fallback pages

2010-08-31 Thread Stuart Watt
it successfully. --S Stuart Watt ARM Product Developer Information Balance On 8/31/2010 6:03 AM, Eden Cardim wrote: Stuart == Stuart Wattsw...@infobal.com writes: Stuart !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Stuart Transitional//EN I have a timing/configuration issue

Re: [Catalyst] Confused: how to handle system-level errors with fallback pages

2010-08-31 Thread Stuart Watt
displayed. --S Stuart Watt ARM Product Developer Information Balance -- Bill Moseley mose...@hank.org mailto:mose...@hank.org -- This message was scanned by ESVA and is believed to be clean. Click here to report this message as spam. http://antispam.infobal.com/cgi-bin/learn-msg.cgi?id=BAC6E2807E

Re: [Catalyst] Confused: how to handle system-level errors with fallback pages

2010-08-31 Thread Stuart Watt
-$orig(@_); } } if ($validation_error || (! $eval_result $error)) { $c-error($validation_error //= $error); } return $result; }; Stuart Watt ARM Product Developer Information Balance On 8/31/2010 10:50 AM, Stuart Watt wrote: Looks like I was wrong in where the error

[Catalyst] Confused: how to handle system-level errors with fallback pages

2010-08-30 Thread Stuart Watt
got to, which makes it hard to decide whether you can generate an error. I could just be missing some documentation: maybe this is covered but I haven't been able to find it. --S -- Stuart Watt ARM Product Developer Information Balance ___ List

Re: [Catalyst] [Beginner] Understanding actions and controllers - not!

2010-08-23 Thread Stuart Watt
I've tended to use: link rel=stylesheet type=text/css href=[% c.uri_for('/static/css/main.css') %]/ I guess it depends on how it's being hosted, but I couldn't assume the top level URL space, so a straight absolute URL seemed a risk. All the best Stuart -- Stuart Watt ARM Product

Re: [Catalyst] rich ajax UI component libraries for Catalyst?

2010-07-26 Thread Stuart Watt
to time. We also like the ability to roll your own Dojo and build smaller compressed systems containing the components you need. All the best Stuart Stuart Watt ARM Product Developer Information Balance On 7/26/2010 11:54 AM, Alexander Hartmaier wrote: I'm one of the guys using ExtJS with DBIC

Re: [Catalyst] Paging thru a complex POSTed search -- HOWTO?

2010-06-02 Thread Stuart Watt
. This way caching is supposed to be handled right. --S Stuart Watt ARM Product Developer Information Balance On 6/2/2010 1:56 PM, w...@serensoft.com wrote: Short version: Using [% c.req.uri_with({ page = pager.next_page }) %] is fine for a simple single-field search (where the form uses GET instead

Re: [Catalyst] Paging thru a complex POSTed search -- HOWTO?

2010-06-02 Thread Stuart Watt
. It probably thought they might be files. So we did pass stuff as query elements, as this seems to be more viable on Microsoft servers anyway. --S Stuart Watt ARM Product Developer Information Balance On 6/2/2010 1:56 PM, w...@serensoft.com wrote: Short version: Using [% c.req.uri_with({ page

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-29 Thread Stuart Watt
to be MySQL memory access (of all things). Some kind of DB issue showed up well in NYTProf, but other testing was needed to go further. Even a tool like NYTProf will not guarantee you can find the problem, because it may not be in Perl, let alone your app. --S -- Stuart Watt ARM Product Developer

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-26 Thread Stuart Watt
know direct access as a no-no, because the accessors would work but not the direct access. --S -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

[Catalyst] Interaction between C::V::TT and C::P::Compress:Gzip?

2010-04-23 Thread Stuart Watt
Just come across an interesting possible interaction between Catalyst::View::TT and Catalyst::Plugin::Compress:Gzip. The finalize method in Catalyst::Plugin::Compress:Gzip is failing as the installed body reference is actually a Template::Exception. The result is a failure to display error

Re: [Catalyst] Interaction between C::V::TT and C::P::Compress:Gzip?

2010-04-23 Thread Stuart Watt
, and C::P::Compress::Zlib 0.04. There are changes logged in C::V::TT in this area, so I guess that's where to look next. --S -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk

Re: [Catalyst] Global behaviour modification

2010-03-27 Thread Stuart Watt
We have a maintenance mode in our app which is kind of similar. We do this before calling the authenticate method, and our entire app is covered by authentication, so it isn't quite the same. But this does the conditional global redirect. I guess you could check the action more imaginatively

Re: [Catalyst] catalyst and wordpress

2010-02-25 Thread Stuart Watt
be possible to process them with PHP by running PHP from Catalyst, I am pretty sure you would not want to go there. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance Charles wrote: I don't want to implement code for a blog. What's the easiest way to incorporate

[Catalyst] Scripts and @INC

2010-02-24 Thread Stuart Watt
); } This is not tested, but seems the kind of intent needed. Any thoughts, feedback, alternative solutions welcome. --S -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk

Re: [Catalyst] datetime formatting ...

2010-02-13 Thread Stuart Watt
On 2010-02-13, at 4:51 PM, Octavian Rasnita wrote: Don't know how to get the time zone of the user from browser, but I think it is not possible. You might need to get the visitor's IP and use a service that can tell you his/her country or even city, and maybe there is a module that can

Re: [Catalyst] Mocking for Catalyst testing

2010-01-17 Thread Stuart Watt
On 2010-01-16, at 10:31 PM, Tomas Doran wrote: I tend to just use Moose directly to construct mock classes for me: Things are improving, t0m. I tried use Class::MOP; use Class::MOP::Class; my $meta_refreshes = Class::MOP::Class-create('ARMAdmin::Model::Refreshes');

Re: [Catalyst] Mocking for Catalyst testing

2010-01-17 Thread Stuart Watt
configuration. All the best Stuart On 2010-01-17, at 8:56 PM, Tomas Doran wrote: On 17 Jan 2010, at 22:07, Stuart Watt wrote What I wanted to be able to do was mock out the remote job queue web service, so at least I could check out that the front end render stuff without to put an entire

[Catalyst] Mocking for Catalyst testing

2010-01-16 Thread Stuart Watt
OK, so it's not solely a Catalyst question, but I'd be keen for any pointers on good tools for mocking when testing Catalyst applications. I'm not especially needing mocking databases, i.e., I've seen DBD::Mock, but I want to test using mocks of some other model components. The one that causes

Re: [Catalyst] Model configuration through .yml

2010-01-13 Thread Stuart Watt
It certainly is possible. We do it that way, with two YAML config files. One has the schema_class (this is the one in the home area) and the second has the connect_info (I guess the typed connect_into is just a typo), which we put in a separate file in the site's directory, so we can run

Re: [Catalyst] Running Catalyst App from Command Line (or via Cron)

2010-01-08 Thread Stuart Watt
I always liked the solution used by Drupal of simply making cron use curl/wget/... to request a special URL. Then it becomes an action and is easy to code and configure almost on any platform. Long-running tasks (beyond that of an HTTP request) are a different matter. At present, we do this

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-27 Thread Stuart Watt
You don't need FCGI::ProcManager under Windows. FCGI is enough, and it should install OK. FCGI::ProcManager is only used when you pass --listen as it runs FastCGI through TCP connections -- IIS uses named pipes so you don't want to pass any TCP-related stuff. I've run the latest Catalyst fine

[Catalyst] FastCGI fails with file extension mapped configuration for IIS

2009-12-18 Thread Stuart Watt
-- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http

[Catalyst] Multiple deployments sharing code, data, and configuration

2009-12-17 Thread Stuart Watt
base. My question: is there an easier/better way to do this? If not, I'd be keen to turn this into a patch, and rename stuff where I get better suggestions. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Stuart Watt
Windows. --S -- Stuart Watt ARM Product Developer Information Balance Ascii King wrote: I have an Apache 2.2.14 server with mod-perl 2.0.4 and Catalyst 5.80015 on a Windows XP machine. My system runs fine from the built-in Catalyst web server. When I run it through my Apache server, however

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Stuart Watt
it for a year or more and it has survived some fairly large scale stress testing. --S -- Stuart Watt ARM Product Developer Information Balance Ascii King wrote: Stuart Watt wrote: Free to wrong pool is usually an issue with XS and threading. Digest::SHA is an XS module. Which Perl are you using

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Stuart Watt
are emulated in Perl, whether in mod_perl or in the FCGI process manager, I guess the performance is almost equivalent. (Is this true? -- anybody benchmarked the two??) That just leaves the pain of setting up mod_perl. I used to do that, but I never really enjoyed it. --S Stuart Watt ARM

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Stuart Watt
it for mission-critical applications in 2001 - applications which were still in use and running stable on the same server 8 years later!!! All the best Stuart -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Catalyst benchmark 5.7 VS 5.8

2009-09-28 Thread Stuart Watt
for Centos; http://bugs.centos.org/view.php?id=2357 I was surprised at this, but I had checked a couple of months back and no progress. I gave up on Centos in 1997 because of this, and am surprised how long this is taking. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance

Re: [Catalyst] Creating Catalyst Models from MSSQL

2009-08-04 Thread Stuart Watt
: '.' The additional quote_char and name_sep args were required to get DBIC to do the right thing. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

Re: [Catalyst] address mismatch warnings?

2009-06-19 Thread Stuart Watt
b00b8b9d82da06a738cd7fe4d57760d8a8d69cd5 due to address mismatch (146.229.203.46 != 64.255.180.21) Is this something I should be concerned about? I've never really known how this is possible (client IP changes? user is roaming?) -- Stuart Watt ARM Product Developer Information Balance

Re: [Catalyst] Database-backed sessions: Session::Store::DBI/DBIC and MSSQL

2009-06-18 Thread Stuart Watt
On 18-Jun-09, at 4:01 AM, Tomas Doran wrote: Any session data at all? Can you be more specific - I'd guess that this should only hit you if the length is small, or if your sessions get large. No, the sessions were tiny, more or less all they held was the id for which project the user

[Catalyst] Database-backed sessions: Session::Store::DBI/DBIC and MSSQL

2009-06-17 Thread Stuart Watt
been for model data. Not so. And no, MSSQL was not my idea! All the best Stuart -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

[Catalyst] Applying external web server authentication: is there a better way?

2009-06-03 Thread Stuart Watt
; } } return; } Is there another simple but better way to achieve this? Ideally one which avoids the deprecated $c-request-user. I'm only starting to use Catalyst for authentication stuff. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance

Re: [Catalyst] Applying external web server authentication: is there a better way?

2009-06-03 Thread Stuart Watt
wouldn't even have understood Credential::Remote type code, but by Monday I'll be better placed and have time enough to give it a thorough test. All the best Stuart Tomas Doran wrote: Stuart Watt wrote: I'm developing an app which uses IIS and FastCGI as its back end. Also, we are expected

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-28 Thread Stuart Watt
trick for now; we're close to production deadlines right now, but I do want to get this out there! --S -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-27 Thread Stuart Watt
://dev.catalyst.perl.org/ -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Stuart Watt
://dev.catalyst.perl.org/ -- This message was scanned by ESVA and is believed to be clean. Click here to report this message as spam. http://antispam.infobal.com/cgi-bin/learn-msg.cgi?id=8026A27FE8.9BC7B -- Stuart Watt ARM Product Developer Information Balance

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-19 Thread Stuart Watt
, capable of handling enough about IIS/Apache configuration to get a base Catalyst application up and running, with decent performance under Windows. If we'd had this, we would have saved months of work, and this is not an exaggeration. All the best Stuart -- Stuart Watt ARM Product Developer

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-19 Thread Stuart Watt
I'd take is that platforms are in an ecology rather than straight competition. i.e., why not just build outstanding Catalyst apps when it's the right tool for the job. --S -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-18 Thread Stuart Watt
/* http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) */ -- Stuart Watt ARM Product Developer Information Balance

Re: [Catalyst] Re: New Catalyst Book?

2009-02-06 Thread Stuart Watt
, I would have loved to have =had such a chapter available = Any chance you'd consider a wiki entry or similar and post the url here :) -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Problems with session under IIS

2009-01-12 Thread Stuart Watt
). The reliability and performance are far better than we ever got through ActiveState and PerlEx. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Tracking down memory leaks

2008-12-24 Thread Stuart Watt
anything left from a previous iteration. In the end I still found DBI and some DBDs were responsible for most of my missing memory, and upgrading them took away of lot of issues. All the best Stuart -- Stuart Watt ARM Product Developer Information Balance I'm also curious about seeing

Re: [Catalyst] How to detect cancelled requests?

2008-10-30 Thread Stuart Watt
, Oct 29, 2008 at 10:11:35AM -0400, Stuart Watt wrote: [...] To give context, the queries that are an issue are SQL queries against a database that contains millions of components, where users may construct wildcard queries of the form *A*, with additional filtering constraints

Re: [Catalyst] How to detect cancelled requests?

2008-10-29 Thread Stuart Watt
now All the best Stuart -- Stuart Watt [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Stuart Watt [EMAIL PROTECTED] wrote on 10/28/2008 12:22:07 PM: Hi all, Has anyone found a neat way of detecting and handling cancelled requests? We have a Catalyst app that dynamically generates SQL queries

[Catalyst] How to detect cancelled requests?

2008-10-28 Thread Stuart Watt
take a while, and IIS seems to choose not to inform anyone (or us, at least) when the user cancels a request and the connection close is initiated. Does anyone have any experience or recommendations? All the best Stuart -- Stuart Watt [EMAIL PROTECTED