Re: [Catalyst] Please help to figure out with URL's

2014-12-04 Thread Larry Leszczynski
On Thu, Dec 4, 2014, at 12:41 PM, Trevor Leffler wrote: This is a typical use: link href=[% c.uri_for('/static/css/my_style.css') | html %] rel=stylesheet Assuming you're using Template Toolkit, you should use the url filter, not the html filter: link href=[%

Re: [Catalyst] May be asynchronous communication between Catalyst applications

2013-03-04 Thread Larry Leszczynski
Hi - On Sun, Mar 3, 2013, at 08:44 PM, linuxsupport wrote: I tried Catalyst::Plugin::RunAfterRequest, when I send request to the app, it returns fine but it does not accept any other request after that until that sub routine finishes. By default the test server runs a single process, so that

Re: [Catalyst] Use of uninitialized value in delete

2012-10-27 Thread Larry Leszczynski
Hi Bill - On Fri, Oct 19, 2012, at 11:37 AM, Bill Moseley wrote: Use of uninitialized value in delete with a line number pointing to this line: delete $c-stash-{foo}; I didn't think that delete() issued a warning, Are both $c and $c-stash defined at that point? Larry

[Catalyst] [JOB] telecommute web developer

2011-09-01 Thread Larry Leszczynski
Hi - We're looking to hire another full-time web developer to join a great team, telecommute or local (central MN). - Telecommute with occasional face time trips to MN - Must have strong Perl skills - Should have all the usual web dev skills (HTML, JS, CSS, AJAX, DHTML) - Bonus points for skills

Re: [Catalyst] Force https in generated URIs

2011-08-04 Thread Larry Leszczynski
Hi Tobias - Therefore I need to force all generated URIs to be https. If generated URIs means those coming from $c-uri_for() and friends, you should be able the modify the URI scheme in $c-request-base, which gets used by uri_for(). Not tested but try something like the following. HTH, Larry

Re: [Catalyst] Force https in generated URIs

2011-08-04 Thread Larry Leszczynski
Hi t0m - On 4 Aug 2011, at 16:57, Larry Leszczynski wrote: Side question: Is namespace::autoclean needed any more? define 'needed'? It's never 'needed' as long as you never want a 'has' method, and you're happy with none of your imports being cleaned up, so all your classes

RE: [Catalyst] Configuring Apache for mod_perl Catalyst and php via mod_proxy

2011-07-29 Thread Larry Leszczynski
Hi Matthew - On Fri, 29 Jul 2011 12:25 +0100, matthew couchman (JIC) matthew.couch...@jic.ac.uk wrote: Thanks for your reply. Perhaps it was too sweeping a statement but I can only say that for my setup mod_perl works fine through Apache alone as does php but when I combine them it crashes

[Catalyst] [JOB] Looking for Telecommute Web Developer

2011-06-18 Thread Larry Leszczynski
Hi - We're looking to hire another full-time web developer to join a great team, telecommute or local (central MN). - Telecommute with occasional face time trips to MN - Must have strong Perl skills - Should have all the usual web dev skills (HTML, JS, CSS, AJAX, DHTML) - Bonus points for skills

[Catalyst] [OT] Anybody else going to O'Reilly Velocity next week?

2011-06-10 Thread Larry Leszczynski
Hi all - Just wondering if anybody else is planning to go to the O'Reilly Velocity conference in Santa Clara next week - email me off-list and we can make plans to meet up. Thanks! Larry ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] long poll AJAX

2011-06-07 Thread Larry Leszczynski
Hi Jeff - The problem seems to be a bottleneck in Catalyst, because as soon as the long poll completes all of the waiting status requests complete instantly as well. I had imagined that the threading on Catalyst would support the functionality I'm looking for. Just a guess... By any chance

Re: [Catalyst] Static GET of an ogg audio file

2011-04-08 Thread Larry Leszczynski
Hi Jeff - I have created a directory called media in the path /root/static/media and put some audio files in there (happen to be ogg-vorbis). I am using the HTML5 tag audio in the Firefox 4 browser to play the file in an app. It mostly works but there is a problem in that the browser cannot

Re: [Catalyst] How to get uri_for something with a fragment?

2011-03-07 Thread Larry Leszczynski
Using the fragment is probably a bad idea. It's not supported by all servers so it can end up lost on the backend depending on your setup. I have see fragments cause problems in server-side code that is naive about URL handling, like splitting the string on ? and assuming all the stuff after

[Catalyst] [JOB] Looking for Web Developer

2011-02-01 Thread Larry Leszczynski
Hi - As previously posted, we're looking to hire a full-time web developer, either in-house or telecommute. The job is mostly Catalyst development for our web apps with a fair amount of work on the client side using ExtJS, jQuery, Prototype, etc. The official job posting is available at:

[Catalyst] [JOB] Looking for Web Developer

2011-01-26 Thread Larry Leszczynski
Hi - We're looking to hire a full-time web developer at $work. Contact me OFF LIST (please) and I can send more details. The basics: - Local (central MN) or telecommute - All the usual web dev skills (HTML, JS, CSS, AJAX, DHTML) - Bonus points for skills in: Catalyst Moose Template

Re: [Catalyst] Transferring control via root/auto

2010-12-08 Thread Larry Leszczynski
Hi - On Wed, 08 Dec 2010 13:31 +, Tomas Doran bobtf...@bobtfish.net wrote: On 7 Dec 2010, at 16:11, Ben van Staveren wrote: You want to $c-detach('end') -- unless that's the default these days. The end action will _always_ be run, there is no need to detach to the end action.

Re: [Catalyst] Question about Chained Controller

2010-11-15 Thread Larry Leszczynski
Hi Woosely Xu - On Mon, 15 Nov 2010 10:32 +0800, woosley. xu. redic...@gmail.com wrote: I am still wondering why forward dose not working in my way, and I just find detach('login') works good. Because forward() returns to the action from which it was called, and detach() does not:

Re: [Catalyst] Forward on to other actions after removing first path segment?

2010-11-15 Thread Larry Leszczynski
Hi Dorian - OK, but the part that confuses me is why /foo doesn't resolve to MyApp::Foo::index with -go or -visit. Maybe this will help (I think in this case index works like default): http://wiki.catalystframework.org/wiki/wikicookbook/safedispatchusingpath HTH, Larry

Re: [Catalyst] New install getting Wide character in syswrite error

2010-09-22 Thread Larry Leszczynski
Hi Charlie - once the problem starts the test server won't respond to any further requests; requires a restart. Canceling the current request results in following error: Caught exception in engine Wrong Content-Length value: 52 May be totally related but I have seen those symptoms when the

Re: [Catalyst] Make the money format macro globally available.

2010-09-21 Thread Larry Leszczynski
Hi Duncan - On Tue, 21 Sep 2010 17:52 +0100, Duncan Garland duncan.garl...@motortrak.com wrote: How do you make the money macro available in all templates? [% USE money=format('%.2f') -%] Presumably something goes in here: __PACKAGE__-config( TEMPLATE_EXTENSION = '.tt',

Re: [Catalyst] Forcing charset=utf-8 on all Content-Types for Catalyst::Controller::REST

2010-07-26 Thread Larry Leszczynski
Hi Dave - After searching google, and reading through all of the relevant documentation, and a considerable portion of the code, we have been unable to locate the correct place to set or override the Content-Type header to append a charset=utf-8 string, required by our caching proxy to

Re: [Catalyst] Contributing code

2010-06-21 Thread Larry Leszczynski
Have you read http://wiki.catalystframework.org/wiki/contrib ? To whom it may concern: This URL is currently (Jun. 21, 15:22:18 UTC) returning a 500 server error. Larry ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-21 Thread Larry Leszczynski
On Wed, 21 Apr 2010 20:30 +0400, Oleg Pronin syber@gmail.com wrote: 1) Getting all params 3x faster than only one 2) Getting $req-{parameters}{lang} 150x faster than $req-param('lang') What a surprise: accessing the hash directly is faster than calling a function that accesses the hash.

Re: [Catalyst] How to forward to a specific path

2010-01-01 Thread Larry Leszczynski
Hi Julien - On Fri, 01 Jan 2010 14:26 -0800, Julien Sobrier jul...@sobrier.net wrote: Hello, I'm try to do a forward to a path rather than a controller. For example, if I get the url /foo/my/path, I want to redirect it to /my/path which belongs to a different controller. In general you

Re: [Catalyst] Request

2009-10-27 Thread Larry Leszczynski
Hi Octavian - On Tue, 27 Oct 2009 23:16 +0200, Octavian Râsnita orasn...@gmail.com wrote: From: Larry Leszczynski lar...@emailplus.org Hi Octavian - Is there a Catalyst Request method for getting the path and the query_string? (Everything's after the base). I want to use it in a TT

Re: [Catalyst] Choosing the language

2009-10-13 Thread Larry Leszczynski
http://dev.catalyst.perl.org/wiki/wikicookbook/urlpathprefixing Thank you Larry. It seems to be what I need. I've seen some uses of $self which were not defined in that example. Shouldn't be __PACKAGE__ instead? Sorry, copy/paste error - $self should not be in there. I've tweaked

[Catalyst] Catalyst job

2009-10-12 Thread Larry Leszczynski
FYI, the company I work for is looking for a full-time Catalyst developer: http://jobs.perl.org/job/11108 I'm just passing along the info - if you're interested, please reply via the email address in the posting, not to me (or the list) directly. Thanks! Larry

Re: [Catalyst] Choosing the language

2009-10-12 Thread Larry Leszczynski
Hi (again) Octavian - Is there a recommendation for storing the language ID in the URL in order to be as easy to get it from there? I want to have unique links for each URL, so I can't just put it in the cookies. Using ?lang=EN seems to be the easiest way, although it doesn't look

Re: [Catalyst] How to do pass-through login?

2009-07-10 Thread Larry Leszczynski
Hi Gunnar - Thanks to all who answered my post regarding pass-through login! It put me on the right track and it works like a charm now. In my solution I have an action, Catalyst::Action::Restricted, which I put on the subroutines which require a logged-in user

Re: [Catalyst] offset the URI of an existing Cat App

2009-07-07 Thread Larry Leszczynski
Hi Ian - I have always written Cat Apps so they start at the '/' URI but now I have been asked to 'offset' one so that:- /becomes /foo /userbecomes /foo/user /admin/1 becames /foo/admin/1 One approach is to modify $c-prepare_path, similar to:

Re: [Catalyst] I18N with quotation marks

2009-07-01 Thread Larry Leszczynski
Hi Ton - However, if the translated value contains quotations (such as: s'il vous plait), then it could break the HTML: select value='[% c.loc(Please select one) %]' or the javascript: alert('[% c.loc(Please select one) %]'); We create some custom scalar ops in a subclass of

Re: [Catalyst] I18N with quotation marks

2009-07-01 Thread Larry Leszczynski
We create some custom scalar ops in a subclass of Catalyst::View::TT (code below) that let you do: select value=[% c.loc(Please select one).escape_dq %] Actually, escape_dq won't work here: select value=[% c.loc(Please select one).escape_dq %] but it will work if for some reason you

Re: [Catalyst] Problem using Catalyst::Plugin::I18N and Catalyst::Plugin::PageCache

2009-03-10 Thread Larry Leszczynski
Hi Jozef - [debug] $c-languages from auto-detect: [en-us, en, i-default] (this looks right based on my browser settings) [debug] $c-language: i_default (why does it pick i-default instead of en-us or en?) [debug] Setting language to en... [debug]

[Catalyst] clear() method for Catalyst::Plugin::Cache?

2009-03-06 Thread Larry Leszczynski
Does it make sense to add a clear() method to Catalyst::Plugin::Cache, in addition to the existing get(), set() and remove()? It seems like a common action for cache manipulation. Any of the various Cache::Cache-based backend flavors should be able to support it out of the box. For specific

Re: [Catalyst] clear() method for Catalyst::Plugin::Cache?

2009-03-06 Thread Larry Leszczynski
On Fri, 06 Mar 2009 20:11 -0500, Jason Kohles em...@jasonkohles.com wrote: On Mar 6, 2009, at 7:42 PM, Larry Leszczynski wrote: Does it make sense to add a clear() method to Catalyst::Plugin::Cache, in addition to the existing get(), set() and remove()? It seems like a common action

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-24 Thread Larry Leszczynski
- Original Message - From: Larry Leszczynski lar...@emailplus.org To: Bill Moseley mose...@hank.org; Catalyst Framework catalyst@lists.scsys.co.uk Sent: Tuesday, February 24, 2009 3:44 AM Subject: Re: [Catalyst] stripping path parts and then redispatch? Just wanted to pass along

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Larry Leszczynski
Hi Lars - I have an existing site, and want to add the page language to the URLs so that caching will work correctly, e.g. /foo/bar would now look like /en/foo/bar or /fr/foo/bar. Apart from the missing true return value from auto, this works:

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Larry Leszczynski
Hi Jason - I have an existing site, and want to add the page language to the URLs so that caching will work correctly, e.g. /foo/bar would now look like /en/foo/bar or /fr/foo/bar. Apart from the missing true return value from auto, this works:

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-23 Thread Larry Leszczynski
Just wanted to pass along some solutions... To recap briefly: URLs are prefixed with the page language, e.g /en/foo/bar. The language needs to be stripped off and stashed, and the remainder of the request processed as if the language part had not been there, e.g. /foo/bar. I was trying to use

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-22 Thread Larry Leszczynski
Hi Tomas - I'm using Catalyst 5.8.5 so I can make use of any of forward, detach, visit, go, etc. Not helpful to your main email, but there is no such version as 5.8.5? I assume you mean 5.8000_05, which is a developer release? Yes, that's what I meant, sorry. Larry

Re: [Catalyst] [Announce] Catalyst-Runtime-5.8000_05

2009-02-10 Thread Larry Leszczynski
Hi Marcus - Now that you're all done upgrading to 5.7100, it's time to help us out by testing the next developer release of 5.8000, 5.8000_05, which was uploaded to CPAN today. When I perl Makefile.PL, it tells me: This version of Catalyst conflicts with the version of

[Catalyst] Problem using Catalyst::Plugin::I18N and Catalyst::Plugin::PageCache

2009-02-04 Thread Larry Leszczynski
Hi all - I have two problems that I think are related, I think I may just be missing something simple... First, I'm having trouble getting Catalyst::Plugin::I18N to use a specific language (grabbed from user preferences). Inside MyApp::Controller::Root::auto() I am doing this:

[Catalyst] Subclass Catalyst::View::TT to use Template::Foo instead of Template?

2009-01-28 Thread Larry Leszczynski
Is there any straightforward way to create a subclass of Catalyst::View::TT so that $self-{template} is an instance of Template::Foo instead of Template? In e.g. Catalyst::View::TT::Foo I could call $self-SUPER::new() and then overwrite the resulting $self-{template} object, but at that point I

[Catalyst] Bug with $c-request-query_keywords ?

2008-06-19 Thread Larry Leszczynski
I've run into what appears to be a query keyword bug using Catalyst 5.701[02]: % catalyst.pl MyApp % cd MyApp % perl script/myapp_server.pl Request: http://localhost:3000/ - works http://localhost:3000/?a=123 - works http://localhost:3000/?123 - fails The error

Re: [Catalyst] Re: difficulty in assigning an array to a stash

2007-11-12 Thread Larry Leszczynski
On Mon, 12 Nov 2007, Larry Leszczynski wrote: FOREACH options IN options; lv_id = options.lv_id; ... do stuff with lv_id ... END Sorry, that should be: FOREACH option IN options; lv_id = option.lv_id; ... do stuff with lv_id ... END