Re: [Catalyst] Catalyst and Dist::Zilla?

2012-07-06 Thread Bill Moseley
configuration out of the app home. -- Bill Moseley mose...@hank.org ___ 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

[Catalyst] Long Polling / Comet with Catalyst

2012-07-05 Thread Bill Moseley
with Web::Hippie or PocketIO for doing something like this? Thanks, -- Bill Moseley mose...@hank.org ___ 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] Catalyst and Dist::Zilla?

2012-07-05 Thread Bill Moseley
it just like the files in lib. Thanks, -- Bill Moseley mose...@hank.org ___ 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

Re: [Catalyst] Managing module regressions.

2012-07-02 Thread Bill Moseley
majority of bugs that find their way to production are in our own code. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Managing module regressions.

2012-07-02 Thread Bill Moseley
by building Perl and installing your modules you are not depending on any existing RPMs of Perl modules. Thanks, -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

[Catalyst] Managing module regressions.

2012-06-29 Thread Bill Moseley
often because of potential *new* bugs. That seems a bit silly to me because it's ignoring *known* bug fixes for the chance that there might some unknown new bug.(Yes, we have apps running Catalyst from 2010!) Thanks for the feedback, -- Bill Moseley mose...@hank.org

Re: [Catalyst] user_exists dies when used from Test::WWW::Mechanize::Catalyst

2012-06-25 Thread Bill Moseley
to be in a better position for caching. -- Bill Moseley mose...@hank.org ___ 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

Re: [Catalyst] user_exists dies when used from Test::WWW::Mechanize::Catalyst

2012-06-25 Thread Bill Moseley
of the context object. Then you can use that same class outside of Catalyst, as in your tests. I suspect others will agree that in the long run having that tight bindig between Catalyst and DBIC will be a mistake. -- Bill Moseley mose...@hank.org ___ List

Re: [Catalyst] CatalystX::JobServer (anyone use it?)

2012-06-08 Thread Bill Moseley
accurately, we *think* we can't lose any messages. -- Bill Moseley mose...@hank.org ___ 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] Best practice for configuration file placement

2012-05-18 Thread Bill Moseley
and how you plan on using and deploying apps long term. Having it in /etc might make sense for you. What we do have is a file in /etc/ that says what the current mode is (i.e. staging, production) that the init.d scripts use. -- Bill Moseley mose...@hank.org

[Catalyst] Deploying with Perlbrew

2012-05-15 Thread Bill Moseley
version), and the startup script, although upstart was discussed recently in another thread. Thanks, -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] Deploying with Perlbrew

2012-05-15 Thread Bill Moseley
for testing and then later to production. I'm looking for a clean decoupling of development from operations. So assuming RPM, now trying to figure the best way to build that Perlbrew install into and RPM. Thanks, -- Bill Moseley mose...@hank.org ___ List

Re: [Catalyst] change in Engine prepare_body_parameters

2012-04-28 Thread Bill Moseley
On Mon, Apr 23, 2012 at 5:55 AM, Tomas Doran bobtf...@bobtfish.net wrote: On 21 Apr 2012, at 13:30, Bill Moseley wrote: The code above looks like it was trying to fix some flow problems (populating the attribute directly as a hash, for example), so the real fix is probably something else

Re: [Catalyst] Does Paypal standard require login?

2012-04-16 Thread Bill Moseley
On Mon, Apr 16, 2012 at 2:46 PM, Jorge Gonzalez jorge.gonza...@daikon.eswrote: And the point of asking this in a Catalyst list is...? None. I clicked on the wrong list email gmail offered up. Wondered why hadn't seen a response there yet... -- Bill Moseley mose...@hank.org

[Catalyst] Does Paypal standard require login?

2012-04-14 Thread Bill Moseley
claimed that if PayPal somehow determined that the purchaser has a PayPal account that PayPal forces them to log in. Can anyone confirm that this is true or not and point me to PayPal documentation on this? Thanks, -- Bill Moseley mose...@hank.org

[Catalyst] Starman and Catalyst

2012-04-05 Thread Bill Moseley
of stress. Although, I wonder if that's not a task that could be done as a Catalyst role that works the same regardless of what web server is being used. Is there a better place to ask about Starman? -- Bill Moseley mose...@hank.org ___ List: Catalyst

[Catalyst] Migrating from Catalyst::Log::Log4perl to Log::Log4perl::Catalyst

2012-04-04 Thread Bill Moseley
to get rid of the plugin. -- Bill Moseley mose...@hank.org ___ 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] read_length removed from Catalyst::Engine

2012-03-19 Thread Bill Moseley
I had some code using $c-engine-read_length attribute which seems to have been removed after 5.90007. IIRC, that attribute just held the value of the content-length header. Is there any reason I can't use $c-request-header('Content-Length') as a replacement? -- Bill Moseley mose...@hank.org

[Catalyst] Re: charset not needed for Catalyst::Action::REST?

2012-02-25 Thread Bill Moseley
to dispatch on. On Fri, Feb 24, 2012 at 10:50 PM, Bill Moseley mose...@hank.org wrote: When using Catalyst::Action::REST the content-type response never includes a charset. JSON seems to be handled correctly in code -- JSON strings are always UTF-8. Does that mean there is no need to specify

[Catalyst] charset not needed for Catalyst::Action::REST?

2012-02-24 Thread Bill Moseley
But YAML drops the utf8 flag: $ perl -MYAML::Syck -MEncode -wle 'print length(YAML::Syck::Load(YAML::Syck::Dump( [\x{263A}]) )-[0])' 3 -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

[Catalyst] Anyone logging with RabbitMQ?

2012-02-24 Thread Bill Moseley
Anyone have experience with this? What tool are you using to aggregate (and monitor, or generate stats with)? Any tips? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] Anyone logging with RabbitMQ?

2012-02-24 Thread Bill Moseley
:) On Fri, Feb 24, 2012 at 5:04 PM, Bill Moseley mose...@hank.org wrote: Anyone have experience with this? What tool are you using to aggregate (and monitor, or generate stats with)? Any tips? -- Bill Moseley mose...@hank.org

[Catalyst] RESTful response codes.

2012-02-23 Thread Bill Moseley
think of a reason to always return a status? Or better, any references that would be more helpful or convincing than the spec listed above? Thanks, -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk

Re: [Catalyst] RESTful response codes.

2012-02-23 Thread Bill Moseley
. Yes, there's gray area. -- Bill Moseley mose...@hank.org ___ 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

Re: [Catalyst] Fix for content-length issue introduced with Catalyst 5.8.x

2012-02-20 Thread Bill Moseley
have that set up you will never[1] fight encoding issues again. [1] for some value of never. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive

[Catalyst] Re: Overriding chained methods.

2012-02-18 Thread Bill Moseley
On Thu, Feb 16, 2012 at 7:40 AM, Bill Moseley mose...@hank.org wrote: Any suggestions? Perhaps not. And rightly so. What I was asking it how to override potentially any method in a chain of Actions and to magically swap the the root of the chain. Sounds ugly and confusing. Perhaps a more

[Catalyst] Overriding chained methods.

2012-02-15 Thread Bill Moseley
was for a set of /guest/ actions that had a subset of the app's actions, and I just had the /guest/* controllers inherit from the original controllers. Any suggestions? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

[Catalyst] Re: Overriding chained methods.

2012-02-15 Thread Bill Moseley
On Thu, Feb 16, 2012 at 7:40 AM, Bill Moseley mose...@hank.org wrote: I have an app that is naturally hierarchical, so to make up an example a path might be: /version1/country/12/region/31/state/12/city/45 which I use Chained actions to implement. BTW -- On a side note (and as a sanity

Re: [Catalyst] Fix for content-length issue introduced with Catalyst 5.8.x

2012-02-15 Thread Bill Moseley
. But, if you are not encoding it will be wrong. -- Bill Moseley mose...@hank.org ___ 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] Fix for content-length issue introduced with Catalyst 5.8.x

2012-02-15 Thread Bill Moseley
you not need to encode? Although, seems like should also check for the utf8 flag -- to catch the case where the content has already been encoded. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk

Re: [Catalyst] Re: Using model layers between Catalyst and DBIC

2012-02-06 Thread Bill Moseley
comments welcome. cheers, J On Tue, Jan 10, 2012 at 12:16 AM, Jason Galea li...@eightdegrees.com.auwrote: On Mon, Jan 9, 2012 at 3:14 PM, Bill Moseley mose...@hank.org wrote: On Monday, January 2, 2012, Jason Galea wrote: I think I've added another layer but I'm not sure where

[Catalyst] Running multiple test servers together as the same app

2012-01-25 Thread Bill Moseley
in the case of developers working on the same dev machine. Any other suggestions how to let developers work with related Catalyst apps (that need to link to each other) using the Catalyst development server? Thanks, -- Bill Moseley mose...@hank.org

[Catalyst] Re: Using model layers between Catalyst and DBIC

2012-01-08 Thread Bill Moseley
are on the Moose list you may have seen my example). Thanks for the feedback and the ideas, -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Dynamic model and controller creation

2012-01-02 Thread Bill Moseley
model setup. Sure does! Thanks, -- Bill Moseley mose...@hank.org ___ 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

[Catalyst] Using model layers between Catalyst and DBIC

2012-01-01 Thread Bill Moseley
for model creation such that a consistent API is provided -- making it easy to hook it into Catalyst for things like rendering errors in a consistent way. Thanks for any feedback you can provide, -- Bill Moseley mose...@hank.org ___ List: Catalyst

[Catalyst] Dynamic model and controller creation

2011-12-31 Thread Bill Moseley
of available subclasses at startup). -- Bill Moseley mose...@hank.org ___ 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

[Catalyst] Team development and module management

2011-12-05 Thread Bill Moseley
automatically)? If so, how and when do modules under revision control end up packaged and how do developers manage module dependencies? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Catalyst and XMLRPC

2011-11-08 Thread Bill Moseley
and often used as black-boxes by customers. Makes problem solving with customers a guessing game a times. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

[Catalyst] Log::Any::Adapter::Catalyst as good as choice as any?

2011-11-08 Thread Bill Moseley
I have a number of model classes that run both inside and outside of Catalyst and wondering about logging. Any other approaches than Log::Any::Adapter::Catalyst to consider? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Compress HTML

2011-09-10 Thread Bill Moseley
://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Minify JS/CSS and server as static files

2011-08-07 Thread Bill Moseley
://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive

[Catalyst] Duplicating a Catalyst app

2011-06-10 Thread Bill Moseley
that only effect one app. Suggestions? -- Bill Moseley mose...@hank.org ___ 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

[Catalyst] Overriding $c-model / selecting different databases

2011-04-29 Thread Bill Moseley
to return. Thanks, -- Bill Moseley mose...@hank.org ___ 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] Cookie + basic auth?

2011-04-26 Thread Bill Moseley
you implement in this situation? -- Bill Moseley mose...@hank.org ___ 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

[Catalyst] Fine-grained access control with REST

2011-04-12 Thread Bill Moseley
access question: a given user might have multiple roles and may wish to pick which role to act as using different URLs. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

[Catalyst] General API question: REST + SOAP

2011-04-06 Thread Bill Moseley
be better off writing a separate set of self-contained SOAP controllers? Also, does anyone have a suggestion how to version an API? That is, say I have an API method POST /foo to create a new Foo object. Would it be better to use something like POST /api/rest/version_2/foo? -- Bill Moseley mose

Re: [Catalyst] General API question: REST + SOAP

2011-04-06 Thread Bill Moseley
the request to the correct web server.) -- Bill Moseley mose...@hank.org ___ 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

Re: [Catalyst] Implementing a 'remember me on this computer' button

2011-04-05 Thread Bill Moseley
how useful that would be for someone returning days later. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Wide (Unicode) character problem?

2011-03-23 Thread Bill Moseley
Post the smallest possible example (20 lines?) that clearly shows the problem. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Wide (Unicode) character problem?

2011-03-23 Thread Bill Moseley
The first few posts you will find recommendations to add: Unicode::Encoding to your plugin list. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] Sending Email from Page?

2011-03-21 Thread Bill Moseley
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] Authentication with REST and Catalyst

2011-03-12 Thread Bill Moseley
On Sat, Mar 12, 2011 at 6:14 AM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 da...@cpan.org wrote: This being REST, Cookies are right out. Because state is then no longer only contained in the URL? It's pretty easy to find APIs that claim ReSTful-type interfaces that use cookies. -- Bill Moseley mose...@hank.org

Re: [Catalyst] URI-new() with utf8 string and Unicode::Encoding will not work (but URI-new() with utf8 octets will work)

2011-03-03 Thread Bill Moseley
', ], ); print $request-as_string(); my $response = request( $request ); is( $response-content, 'length = 1', 'length = 1' ); } -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] Cache of unchanging content

2011-03-02 Thread Bill Moseley
On Tue, Mar 1, 2011 at 9:43 PM, John M. Dlugosz wxju46g...@snkmail.comwrote: On 3/1/2011 9:58 AM, Bill Moseley moseley-at-hank.org |Catalyst/Allow to home| wrote: At build time I minimize and compress css and js (and images) and combine into single files grouped by page(s). They could

Re: [Catalyst] Cache of unchanging content

2011-03-01 Thread Bill Moseley
instead of using Sprite files, but support is not great yet. I thought about using TT for css, but the need has never come up and it would mean more training. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Making secure session cookies (or, how do we make Explorer stop complaining about nonsecure content on a secure page?)

2011-02-21 Thread Bill Moseley
/4951687517/lightbox/ http://php5.skauti-pardubice.cz/IE7-missing-scheme-bug.php I don't have IE8 here. Can anyone confirm? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] Gearman

2011-01-24 Thread Bill Moseley
-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Job Queue recommendation

2011-01-22 Thread Bill Moseley
when load changed dramatically. BTW -- Celery is worth a look: http://celeryq.org/ -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] Job Queue recommendation

2011-01-21 Thread Bill Moseley
a good queue. Grated, on the RabbitMQ site, so with a bias, but here's one: http://www.rabbitmq.com/resources/RabbitMQ_Oxford_Geek_Night.pdf A bit dated, but this is often cited when someone is comparing options: http://wiki.secondlife.com/wiki/Message_Queue_Evaluation_Notes -- Bill Moseley mose

Re: [Catalyst] Job Queue recommendation

2011-01-21 Thread Bill Moseley
-consuming processes and respawn if a process dies. Perhaps monitoring queue sizes and adjusting as necessary. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Unit tests for controllers based on Catalyst::Controller::REST?

2010-12-29 Thread Bill Moseley
$test-json_request( 204, PUT = $path, $data ); The *request methods allow passing an HTTP::Request object, too, so it's easy to customize a request for the rare times I need a custom header. -- Bill Moseley mose...@hank.org ___ List: Catalyst

Re: [Catalyst] Unit tests for controllers based on Catalyst::Controller::REST?

2010-12-28 Thread Bill Moseley
-response; $response-request( $request ); $cookie_jar-extract_cookies( $response ); where $request is an HTTP::Request. I wrap that with some utility methods to make creating the requests easier and to encode/decode json and set headers to emulate AJAX, etc. -- Bill Moseley mose...@hank.org

[Catalyst] Anyone using Membase for session store?

2010-12-15 Thread Bill Moseley
Anyone using Membase for session store with Catalyst? http://www.membase.org/whats-different -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive

[Catalyst] Content-Disposition filename and delayed download

2010-12-03 Thread Bill Moseley
, but the load balancer should allow for keep-alive connection on the client side but not tie up a single web server process. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

[Catalyst] Re: Content-Disposition filename and delayed download

2010-12-03 Thread Bill Moseley
Very sorry for the duplicate -- was meant for another list. Crap, now you have to delete this one, too On Fri, Dec 3, 2010 at 5:49 AM, Bill Moseley mose...@hank.org wrote: Hi, What's the recommended approach to the filename used in downloads? I would like to allow users to specify

[Catalyst] Content-Disposition filename

2010-12-02 Thread Bill Moseley
and then percent-encode the encoded utf8 string? uri_escape( encode( 'UTF-8', substr($name, 0, 78) ) ); Or encode to US-ASCII and let encode replace non ASCII with ?? That seems ugly. Too bad HTTP::Headers doesn't abstract all this out. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Overriding Catalyst::View::TT WRAPPER

2010-11-30 Thread Bill Moseley
in my wrapper to allow for different layouts. so $c-stash(no_wrapper = 1) and it won't be wrapped. Yes, but I also allow templates to specify their layout. So for an action /foo/bar I might have /foo/bar.tt and in bar.tt: [% page.layout = 'cms'; # override default layout %] -- Bill Moseley

Re: [Catalyst] Begginer's question about application structure

2010-11-23 Thread Bill Moseley
? ;) -- Bill Moseley mose...@hank.org ___ 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://dev.catalyst.perl.org/

[Catalyst] Per request data in controller base class

2010-11-23 Thread Bill Moseley
saved, and what do you recommend for naming? BTW -- Catalyst::Component::ACCEPT_CONTEXT says Make the current Catalyst request context available in *Models and Views*. Any reason not to use this for Controllers? -- Bill Moseley mose...@hank.org

Re: [Catalyst] Re: $c-visit without calling end()

2010-11-15 Thread Bill Moseley
, but if the action is part of a chain and expand_action has not been run then it won't run the chain. Seem right? What's the reason that forward doesn't expand the chain and set the captures? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk

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

2010-11-15 Thread Bill Moseley
then strip that segment off the path, set a flag in the stash, and then update $c-req-path with the new path and continue the request. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

[Catalyst] $c-visit without calling end()

2010-11-12 Thread Bill Moseley
); local $c-{action} = $action; $action-dispatch( $c ); } -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Re: Wrong Content-Length value

2010-11-01 Thread Bill Moseley
patches in a branch :) Sorry for dropping this. I simply just downgrade the message to info in my logging code and ignore it. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

[Catalyst] Building RPMs of application

2010-10-19 Thread Bill Moseley
script does along with any other tips you may have from your experience. The ultimate goal is to be able to bring up a new machine and install the RPM and have it bring in all dependencies and start running in a standard way and w/o requiring intimate knowledge of the application. Thanks, -- Bill

Re: [Catalyst] Logging is not immediate

2010-10-18 Thread Bill Moseley
know if it’s hung up on something because I can’t see the log output. maybe try this: $c-log-_flush; Or try: warn I'm stuck in a loop and the web user is wondering why I'm taking so long and will likely hit reload any second now!\n; -- Bill Moseley mose...@hank.org

[Catalyst] Caching access to objects.

2010-09-29 Thread Bill Moseley
byte ranges). Anyone doing something similar? -- Bill Moseley mose...@hank.org ___ 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

[Catalyst] Wrong Content-Length value

2010-09-08 Thread Bill Moseley
= $@ ) { chomp $error; $class-log-error(qq/Caught exception in engine $error/); } Should check return value from eval instead. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Wrong Content-Length value

2010-09-08 Thread Bill Moseley
On Wed, Sep 8, 2010 at 2:16 PM, Nicholas Wehr catal...@bionikchickens.comwrote: so which engine and version are you using? apache? built-in http? fastcgi? Apache, but that message is in Catalyst::Engine parent class. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Wrong Content-Length value

2010-09-08 Thread Bill Moseley
Connection closed. Results in: [error] Caught exception in engine Wrong Content-Length value: 40 -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] Wrong Content-Length value

2010-09-08 Thread Bill Moseley
hours. -- Bill Moseley mose...@hank.org ___ 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] Leak tests

2010-09-08 Thread Bill Moseley
times and looked for a differences in memory usage. I'm finding that not very reliable as tests pass on one machine and then on another fails -- maybe due to how and when the heap just happens to get allocated. -- Bill Moseley mose...@hank.org ___ List

Re: [Catalyst] Catalyst::Response callbacks? Need to reap auto-generated files on disk after they are served.

2010-09-02 Thread Bill Moseley
after it gets cooked up and streamed out. I'd like to utilize some kind of callback so that after the file has been completely consumed by the remote client, I can go ahead and safely remove it from server-side disk. File::Temp's unlink feature? -- Bill Moseley mose...@hank.org

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

2010-08-31 Thread Bill Moseley
. Errors later on seem to work fine. Even the top-level handle_request is wrapped in an eval, but it tests $@ instead of the return value of eval like it should. Is it possible something is clearing the $@ var? It's pretty easy to edit Catalyst.pm to check. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Catalyst::ScriptRole and excludes

2010-08-30 Thread Bill Moseley
On Sun, Aug 29, 2010 at 9:20 PM, Darren Duncan dar...@darrenduncan.netwrote: Bill Moseley wrote: In case hasn't been noticed, newer Moose will complain about the renamed -excludes option. That was true with Moose 1.10, and then Moose 1.12 turns off that warning so that other code has time

[Catalyst] Catalyst::ScriptRole and excludes

2010-08-29 Thread Bill Moseley
In case hasn't been noticed, newer Moose will complain about the renamed -excludes option. with 'MooseX::Getopt' = { excludes = [qw/ _getopt_spec_warnings _getopt_spec_exception _getopt_full_usage /], }; Love that MooseX::Getopt. :) -- Bill Moseley mose

[Catalyst] CatalystX-Component-Traits forgot to bump version

2010-08-26 Thread Bill Moseley
Still at 0.14 which that was the old version before the -excludes change. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Bill Moseley
be tempted now to first send out the invitation to their email which brings them back to a sign-up form. The invite URL can contain their email, a timeout, and a digest so nothing needs to be saved server side. -- Bill Moseley mose...@hank.org ___ List

Re: [Catalyst] Module::Install::Catalyst very slow

2010-08-16 Thread Bill Moseley
(as in attached diff) would not work? On Fri, 30 Jul 2010 07:46 -0700, Bill Moseley mose...@hank.org wrote: When I run Makefile.PL the Module::Install::Catalyst step can take a number of minutes -- it just took five minutes on one machine just now. I assume that's because of the recursive

Re: [Catalyst] Module::Install::Catalyst very slow

2010-08-16 Thread Bill Moseley
to speed up places where people are running the Makefile.PL script somewhat often. But, as a replacement for rcopy a bit more testing is needed to see what might break. Sorry for the noise. On Mon, Aug 16, 2010 at 5:03 PM, Bill Moseley mose...@hank.org wrote: On Fri, Jul 30, 2010 at 8:13 AM

Re: [Catalyst] I18N with variables

2010-08-06 Thread Bill Moseley
your translation workflow and any tools you are using. Thanks, -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] process a restored request

2010-08-04 Thread Bill Moseley
. if the original post was to /user (e.g. to create a new user) then the login form looks just like your normal login form, but the action is a POST to /user. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

[Catalyst] Trapping exceptions in Catalyst.pm

2010-08-02 Thread Bill Moseley
-state( $code-execute( $class, $c, @{ $c-req-args } ) || 0 ); 1; } || $has_exception++; ... if ( $has_exception ) { Or use the eval {; 1 } || do { my $msg = $@; ...}; style. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo

Re: [Catalyst] Speeding up recovery from 503 errors + backend

2010-08-02 Thread Bill Moseley
with [P]. You might want to look at using some other type of front end proxy, too, perhaps Perlbal. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

[Catalyst] Module::Install::Catalyst very slow

2010-07-30 Thread Bill Moseley
When I run Makefile.PL the Module::Install::Catalyst step can take a number of minutes -- it just took five minutes on one machine just now. I assume that's because of the recursive copy. Does the build process require actual copies or could symlinks be used to speed up this process? -- Bill

[Catalyst] Wrong Content-Length value: 392918

2010-06-08 Thread Bill Moseley
)? # paranoia against wrong Content-Length header my $remaining = $length - $self-read_position; if ( $remaining 0 ) { $self-finalize_read($c); Catalyst::Exception-throw( Wrong Content-Length value: $length ); } -- Bill Moseley mose

Re: [Catalyst] Re: Catalyst::TraitFor::Model::DBIC::Schema::Replicated connect info

2010-06-07 Thread Bill Moseley
in to determine when a write to the master happens so I can make all subsequent queries also go to the master and to set a flag in memcached for other processes to detect. But, this is a discussion that should be on the DBIC list. -- Bill Moseley mose...@hank.org

[Catalyst] Catalyst::TraitFor::Model::DBIC::Schema::Replicated connect info

2010-06-04 Thread Bill Moseley
= { master_read_weight = 0.3 } ); -- Bill Moseley mose...@hank.org ___ 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

[Catalyst] Re: Catalyst::TraitFor::Model::DBIC::Schema::Replicated connect info

2010-06-04 Thread Bill Moseley
/Class/Storage/DBI.pm line 935. DBIx::Class::Storage::throw_exception(): Can't locate DBIx/Class/Storage/DBI/.pm in @INC The hash-base connect_info works fine. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Refactoring question

2010-05-27 Thread Bill Moseley
controllers with /admin/user/$id (admin's view of a user). I often have a /login controller -- POST /login creates a new token (cookie). Then there's room for /login/forgot_my_password kind of thing. -- Bill Moseley mose...@hank.org ___ List: Catalyst

Re: [Catalyst] Refactoring question

2010-05-27 Thread Bill Moseley
idea? Sorry for not being clear. I was referring to DBIC base Result and base ResultSet classes. In which case the controllers would be...? Admin, User, and Statement? Yes. -- Bill Moseley mose...@hank.org ___ List: Catalyst

<    1   2   3   4   >