Re: [Catalyst] Problems with Encoding support in Catalyst.

2017-01-08 Thread Bill Moseley
On Sat, Jan 7, 2017 at 9:55 PM, Bill Moseley <mose...@hank.org> wrote: > > # Let it be set to undef > if (my $wanted = shift) { > $encoding = Encode::find_encoding($wanted) > or Carp::croak( qq/Unknown encoding '$wanted'/ ); >

[Catalyst] Problems with Encoding support in Catalyst.

2017-01-07 Thread Bill Moseley
lines are not mangled. But, I'm not sure we should apply a layer to STDERR like that. For example, I log to stderr with JSON and that is already encoded. Is there a compelling reason to binmode STDERR there? -- Bill Moseley mose...@hank.org ___ List: Ca

Re: [Catalyst] From Development to Production.

2016-03-19 Thread Bill Moseley
et to a CI pipeline that generates a Docker container and use that for all non-dev deployments. You never know when you will need to deploy a million containers <https://www.hashicorp.com/c1m.html>... -- Bill Moseley mose...@hank.org ___ List

[Catalyst] Plugin attributes and Moose

2015-11-22 Thread Bill Moseley
behaves as expected. Also comment out "init_arg" and Moose will complain about the string not begin an Int. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/list

Re: [Catalyst] Url Encoded UTF8 parameters

2015-08-02 Thread Bill Moseley
BTW -- I wonder about the Catalyst behavior here. On Sat, Aug 1, 2015 at 10:36 PM, Bill Moseley mose...@hank.org wrote: On Sat, Aug 1, 2015 at 6:31 AM, Stefan maill...@s.profanter.me wrote: Hi, if a URL parameter contains a Unicode character (e.g. www.example.com/?param=%D6lso%DF which

Re: [Catalyst] Configure psgi.input as optional?

2015-06-06 Thread Bill Moseley
optional when I have a bit of time. On Fri, Jun 5, 2015 at 4:38 PM, Lasse Makholm la...@unity3d.com wrote: On Fri, Jun 5, 2015 at 8:26 PM, Bill Moseley mose...@hank.org wrote: Hi, Our app handles a lot of uploads, often quite large uploads.As we know, uploads (and any non-parsed body

[Catalyst] Configure psgi.input as optional?

2015-06-05 Thread Bill Moseley
sets psgi.input to the Apache request object $r -- it would be handy to preserve this object for later use. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

[Catalyst] Catalyst::Request::Upload-filename is not decoded.

2014-12-17 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/

Re: [Catalyst] Catalyst Unicode

2014-01-31 Thread Bill Moseley
. length() is length of chars, matching works on chars, etc.) $ perl -le 'use Encode; my $chars = decode( 'latin1', bytes ); print Encode::is_utf8( $chars ) ? Is flagged utf8\n : not flagged\n; use Devel::Peek; Dump($chars)' Is flagged utf8 -- Bill Moseley mose...@hank.org

[Catalyst] Implementing Webhooks.

2014-01-15 Thread Bill Moseley
would that change if you wanted more than just fire-and-forget? For example, if you wanted to provide some kind of retry interval for failed callbacks. The external server might be temporarily down for maintenance. Thanks, -- Bill Moseley mose...@hank.org

Re: [Catalyst] Changing format of date field

2014-01-09 Thread Bill Moseley
provided input. -- 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] Changing format of date field

2014-01-06 Thread Bill Moseley
and sets the time zone and locale based on the user's preferences: [% user_time( foo.event_start, '_DT_TIMESTAMP_WITH_ZONE' ) | html %] -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

[Catalyst] Anyone have experience with locales?

2013-12-16 Thread Bill Moseley
), for example? That is, using can setlocale( LC_ALL, $locale ) cause problems with my existing character handling? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

[Catalyst] Bump Catalyst::Model::Adaptor

2013-12-15 Thread Bill Moseley
a suggested patch in one of these. Is there someone that can review and maybe push out a new version? https://rt.cpan.org/Public/Bug/Display.html?id=67078 https://rt.cpan.org/Public/Bug/Display.html?id=78663 -- Bill Moseley mose...@hank.org ___ List

Re: [Catalyst] Bump Catalyst::Model::Adaptor

2013-12-15 Thread Bill Moseley
https://rt.cpan.org/Public/Bug/Display.html?id=78663 -- 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] Bump Catalyst::Model::Adaptor

2013-12-15 Thread Bill Moseley
to {}, an empty hashref). But maybe there was a use case where having the extra config (in addition to config in args) passed to the constructor was necessary. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

[Catalyst] Re: Content Disposition filename

2013-12-03 Thread Bill Moseley
On Tue, Nov 19, 2013 at 10:32 AM, Bill Moseley mose...@hank.org wrote: Anyone aware of a good, portable way in Perl to encode the filename in a Content-Disposition header? I would like to support UTF8 filenames, but support in browsers is unclear (if not changing). Is this complexity

Re: [Catalyst] Setting file handle as the response body generates warnings.

2013-11-21 Thread Bill Moseley
( my $buf, 4); my $uncompressed_size = unpack( 'V', $buf ); This indeed does work in my tests. Thanks for all the help, Neil. I really appreciate the time you spent on this. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Setting file handle as the response body generates warnings.

2013-11-20 Thread Bill Moseley
On Wed, Nov 20, 2013 at 4:08 AM, neil.lunn n...@mylunn.id.au wrote: my $length = $body-getHeaderInfo Well, that's helpful. Thanks. Completely missed that in the docs. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Setting file handle as the response body generates warnings.

2013-11-20 Thread Bill Moseley
On Wed, Nov 20, 2013 at 7:37 AM, Bill Moseley mose...@hank.org wrote: On Wed, Nov 20, 2013 at 4:08 AM, neil.lunn n...@mylunn.id.au wrote: my $length = $body-getHeaderInfo Well, that's helpful. Thanks. Completely missed that in the docs. Well, except for the actual files I have

Re: [Catalyst] Setting file handle as the response body generates warnings.

2013-11-20 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] Content Disposition filename

2013-11-19 Thread Bill Moseley
it's easy to get wrong (I can see many different approaches in our own code). http://greenbytes.de/tech/tc2231/ http://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http Thanks, -- Bill Moseley mose...@hank.org

[Catalyst] Setting file handle as the response body generates warnings.

2013-11-19 Thread Bill Moseley
is working? The uncompressed file could be quite large, which is why I'd prefer to not uncompress it in memory. I suppose I could uncompress to /tmp and then serve the file from there. Of course, not using Catalyst to serve large files is perhaps another solution. -- Bill Moseley mose

Re: [Catalyst] Setting file handle as the response body generates warnings.

2013-11-19 Thread Bill Moseley
/Catalyst.pm line 1948, DATA line 1000. [warn] Serving filehandle without a content-length This is some text that can be compressed. This is some text that can be compressed. This is some text that can be compressed. This is some text that can be compressed. This is some text that can be compressed. -- Bill

Re: [Catalyst] Re: Have exceeded the maximum number of attempts (1000) to open temp file/dir

2013-11-06 Thread Bill Moseley
-callback( sub { $self-callback_method( $c ) } ); I'm not thrilled by $c getting passed here, but the callback need quite a bit from $c. The fix that seems to work is simply this: weaken( $c ); $replication_object-callback( sub { $self-callback_method( $c ) } ); -- Bill Moseley mose

[Catalyst] Re: Have exceeded the maximum number of attempts (1000) to open temp file/dir

2013-11-04 Thread Bill Moseley
On Fri, Oct 25, 2013 at 6:51 AM, Bill Moseley mose...@hank.org wrote: [ERROR] Caught exception in engine Error in tempfile() using /tmp/XX: Have exceeded the maximum number of attempts (1000) to open temp file/dir I don't really see how this can be a Catalyst issue, but I can't

Re: [Catalyst] Re: Response traits.

2013-11-01 Thread Bill Moseley
is so you don't screw things up. John On Thursday, October 31, 2013 7:03 PM, Bill Moseley mose...@hank.org wrote: On Thu, Oct 31, 2013 at 2:34 PM, John Napiorkowski jjn1...@yahoo.comwrote: I'm currently recommending people take advantage of native PSGI support in the newer Catalyst

Re: [Catalyst] Re: Response traits.

2013-10-31 Thread Bill Moseley
On Thu, Oct 31, 2013 at 12:51 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote: CatalystX::RoleApplicator Thanks. That was what I was looking for. Just missed it when looking. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Have exceeded the maximum number of attempts (1000) to open temp file/dir

2013-10-31 Thread Bill Moseley
28 13:35 Ll1Ze0TNPL regarding the tmp file thing, wow I have no idea, but I hope you find out and report it to us! Johnn On Friday, October 25, 2013 8:53 AM, Bill Moseley mose...@hank.org wrote: I have an API where requests can include JSON. HTTP::Body saves those off to temp

Re: [Catalyst] Re: Response traits.

2013-10-31 Thread Bill Moseley
of doing something like: $self-location( URI-new( $location )-as_string ); But with perhaps a bit more error handling. johnn On Thursday, October 31, 2013 11:33 AM, Bill Moseley mose...@hank.org wrote: On Thu, Oct 31, 2013 at 12:51 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote

[Catalyst] Response traits.

2013-10-30 Thread Bill Moseley
-location; } -- 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] Have exceeded the maximum number of attempts (1000) to open temp file/dir

2013-10-25 Thread Bill Moseley
commentedhttps://rt.cpan.org/Public/Bug/Display.html?id=84004on before, is that HTTP::Body doesn't use File::Temp's unlink feature and depends on Catalyst cleaning up. This results in orphaned files left on temp disk. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Catalyst::Request path method as a setter

2013-10-22 Thread Bill Moseley
. On Monday, October 21, 2013 10:00 AM, Bill Moseley mose...@hank.org wrote: =head2 $req-path Returns the path, i.e. the part of the URI after $req-base, for the current request. Pasted below is Catalyst::Request's path method. Note from the final else block that $req-path returns the request

Re: [Catalyst] Optional path prefix

2013-10-22 Thread Bill Moseley
. I like your suggestion to map it to an Accept header -- best of both worlds. -- 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

[Catalyst] Catalyst::Request path method as a setter

2013-10-21 Thread Bill Moseley
); return $path; } } -- 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] Optional path prefix

2013-10-15 Thread Bill Moseley
point of view instead of a REST purist view. There's a lot in that e-book I don't really agree with (plural nouns?), but the practical usage seems to be winning out. Hope it's not a mistake in the long run. -- Bill Moseley mose...@hank.org ___ List

[Catalyst] REST and versioning

2013-09-17 Thread Bill Moseley
=1 - http://www.informit.com/articles/article.aspx?p=1566460 - http://stackoverflow.com/questions/972226/how-to-version-rest-uris - and plenty more... -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] REST and versioning

2013-09-17 Thread Bill Moseley
: ChainedParent PathPrefix CaptureArgs(0) { my ($self, $ctx) = @_; } 1; 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] More detailed proposal for changes related to content negotiation and REST

2013-08-09 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/

Re: [Catalyst] More detailed proposal for changes related to content negotiation and REST

2013-08-09 Thread Bill Moseley
that to JSON or whatever but it's the same data. But, maybe you have a point.I would worry that someone assumes JSON and adds that content type match and then wonder why later it's not working for other request serializations. -- Bill Moseley mose...@hank.org

Re: [Catalyst] CSV / UTF-8 / Unicode

2013-07-02 Thread Bill Moseley
above, but throw an exception for other content types where the body is a scalar AND has the utf8 flag on. After all, we can only write out octets or else we get the Wide Character error. -- Bill Moseley mose...@hank.org ___ List: Catalyst

Re: [Catalyst] CSV / UTF-8 / Unicode

2013-07-02 Thread Bill Moseley
Before we get a long utf8 discussion here: On Tue, Jul 2, 2013 at 8:58 AM, Bill Moseley mose...@hank.org wrote: Personally, I think the correct approach is to only encode *character* data -- that is check to see if the utf8 flag is set before calling encode. I say that with the caveat

Re: [Catalyst] unicode warnings (+ errors C::P::UploadProgress)

2013-06-14 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/

Re: [Catalyst] /Depreci?ate/ message

2013-05-24 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/

Re: [Catalyst] Chained and exceptions

2013-05-10 Thread Bill Moseley
in a chain is used for access control. What would the developers think of deprecating this behavior (for the few that might actually be relying on this) and issue a warning if a config option is not set that fixes the issue? -- Bill Moseley mose...@hank.org

[Catalyst] Chained and exceptions

2013-05-09 Thread Bill Moseley
in middle *in lastpart* [error] Caught exception in Exception::Controller::Root-middle died in middle -- 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] Chained and exceptions

2013-05-09 Thread Bill Moseley
On Thu, May 9, 2013 at 7:25 AM, Lukas Thiemeier spamcatc...@thiemeier.netwrote: On 05/09/2013 03:25 PM, Bill Moseley wrote: I have a feeling I asked this before, but cannot find the post. [info] Exception powered by Catalyst 5.90030 What's the reasoning that chained actions continue

Re: [Catalyst] Chained and exceptions

2013-05-09 Thread Bill Moseley
On Thu, May 9, 2013 at 8:31 AM, Bill Moseley mose...@hank.org wrote: Hi Bill, This is because you don't want Catalyst to die. Imagine you are running a fastcgi server and you accidentally created an action which dies on certain user input. Hi Lukas, Sorry, you missed the point. Yes

Re: [Catalyst] Re: Chained and exceptions

2013-05-09 Thread Bill Moseley
On Thu, May 9, 2013 at 9:34 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote: * Bill Moseley mose...@hank.org [2013-05-09 15:30]: What's the reasoning that chained actions continue to run after an earlier exception? Seems like an accident of the design to me, borderline bug. Agreed. Seems

Re: [Catalyst] How to get IP address of the interface which the request come through

2013-03-23 Thread Bill Moseley
of the server Sorry, $c-req-uri-host is 'hostname', not a IP. I want to get IPv4 address like '127.0.0.1' even if I access the page by 'http://localhost/XXX' Interesting. What's your use case here? -- Bill Moseley mose...@hank.org ___ List

Re: [Catalyst] Catalyst, ExtJS and TT

2013-03-18 Thread Bill Moseley
based on the user's language preference for that request? I would think it would be better to serve it statically (with caching headers) and then serve any pre-request changes in the actual html response. Serving up different javascript files with the same name could lead to problems. -- Bill

[Catalyst] Re: Not cleaning up temporary files / HTTP::Body

2013-03-17 Thread Bill Moseley
but IIRC that only looks at the Content-Length header. But, HTTP::Body does limit the body to what is reported in the Content-Length header. Starman buffers requests to /tmp (in an unlinked file) w/o any limit that I could see in my limited tests. On Thu, Mar 14, 2013 at 9:53 PM, Bill Moseley mose

[Catalyst] Re: Not cleaning up temporary files / HTTP::Body

2013-03-14 Thread Bill Moseley
On Wed, Jan 13, 2010 at 6:53 AM, Bill Moseley mose...@hank.org wrote: HTTP::Body::Multipart creates temporary files for uploads. The temp files are created with File::Temp( UNLINK = 0 ). Well, this is still broken. Yes, since 2010 HTTP::Body has been updated to have a DESTROY where

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-11 Thread Bill Moseley
with) the app's config. Our config loads config.yml filrst, then it loads and merges any mode-specific (i.e. qa, staging, production) config, then finally looks for /etc/$app_name/config.yml. Some day we will look more closely at centralized configuration tools -- Puppet and Chef, for example. -- Bill

Re: [Catalyst] Backlog for proposed changes in next Catalyst release

2013-03-10 Thread Bill Moseley
be decoded on input. -- 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] Using the Catalyst Makefile to install

2013-03-08 Thread Bill Moseley
. But the end result is still just a normal Perl module. All our modules (Catalyst and others) use Dist::Zilla now. I have a Dist::Zilla::Plugin::CatalystFiles that helps build the dist and builds a custom Makefile.PL. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-08 Thread Bill Moseley
, that Makefile actually comes in pretty handy. (And since we use Dist::Zilla, releasing to our internal CPAN is just dzil release. So, that's pretty slick.) We then build RPMs from these modules and that's what is used for deployment. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Backlog for proposed changes in next Catalyst release

2013-03-05 Thread Bill Moseley
: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg02350.html I guess I've thought about this before I wonder what percent of Catalyst apps make use of that plugin. Not sure, but I think the play-perl ticket has a good way to not break most people's code -- Bill Moseley

Re: [Catalyst] Backlog for proposed changes in next Catalyst release

2013-03-04 Thread Bill Moseley
should to, but easy to ignore or get wrong. I wonder what percent of Catalyst apps make use of that plugin. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Backlog for proposed changes in next Catalyst release

2013-03-03 Thread Bill Moseley
responses. This is fresh in my mind because last week had problems with two separate encoding issues. -- 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] Catalyst::Controller::REST and Serializer/Deserializer

2013-02-25 Thread Bill Moseley
my ws with FF or Chrome... ? Do you mean adding content-type=application/json to your GET request query parameters in the browser? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

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

2013-02-24 Thread Bill Moseley
-- workers pull in work as they are free instead of stuffing work into web processes. Scaling is then trivial as it's just more workers. It may seem like more work up front to set up but will making things like this much easer -- and safer. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Catalyst::Model::DBIC::Schema and caching row objects

2013-02-13 Thread Bill Moseley
On Tue, Feb 12, 2013 at 10:05 PM, Octavian Rasnita orasn...@gmail.comwrote: ** *From:* Bill Moseley mose...@hank.org If you want to use DBIC in more apps, don't use Catalyst::Model::... but create a standalone module that can be used from more apps, even in CLI scripts. And access

[Catalyst] Catalyst::Model::DBIC::Schema and caching row objects

2013-02-12 Thread Bill Moseley
after thawing, so they can be used just as if I had done the query directly. -- 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

[Catalyst] Detecting when running under mod_perl

2013-01-29 Thread Bill Moseley
Pre-Plack I had used this to determine if running under Apache/mod_perl. if ( $c-engine-can( 'apache' ) ) { ... } Is this the best, future-proof approach now? During setup check $ENV{MOD_PERL} and per request check if $c-req-env-{'psgi.input'} isa 'Apache2::RequestRec'? -- Bill Moseley

Re: [Catalyst] Use of uninitialized value in delete

2013-01-28 Thread Bill Moseley
On Mon, Oct 29, 2012 at 3:45 AM, Will Crawford billcrawford1...@gmail.comwrote: On 19 October 2012 18:37, Bill Moseley mose...@hank.org wrote: delete $c-stash-{foo}; Is there a function / method called foo anywhere in scope? I've ignored this for a while, but still seeing in the app's logs

[Catalyst] IPv6 client addresses

2013-01-14 Thread Bill Moseley
-address return either v4 or a v6 address? Anyone already in a dual-stack environment? Any other gotchas to consider? I use $c-req-address to limit access -- for example to limit some actions to our local LAN or for customers to limit access to our API via a customer-supplied CIDR. -- Bill Moseley

Re: [Catalyst] Does uri_for() URL-escape arguments correctly ?

2012-12-04 Thread Bill Moseley
| html %] //a I've always used href=[% c.uri_for( ... ) | html %] -- 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] log4perl and logging request parameters

2012-11-28 Thread Bill Moseley
params in those methods? Monkey-patch (redefined) the warn() and error() log methods each request with the current params? Neither of those sound that great. Is there an approach I'm missing? Thanks, -- Bill Moseley mose...@hank.org ___ List: Catalyst

Re: [Catalyst] Catalyst with Twiggy with Pocket.IO (Comet)

2012-11-28 Thread Bill Moseley
. That is, the server w/o the auth validates that the token is legitimate and the SSL tells me it came from the client I gave it to. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Access Catalyst context object from script

2012-11-01 Thread Bill Moseley
to your site? -- 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] Global 'helper' methods

2012-10-30 Thread Bill Moseley
which is useful for when you need the constants outside of Catalyst. -- 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] Use of uninitialized value in delete

2012-10-28 Thread Bill Moseley
On Sat, Oct 27, 2012 at 9:34 PM, Larry Leszczynski lar...@emailplus.orgwrote: 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

Re: [Catalyst] Progress bar

2012-10-26 Thread Bill Moseley
On Thu, Oct 25, 2012 at 5:29 AM, Aaron Trevena aaron.trev...@gmail.comwrote: On 24 October 2012 17:59, Bill Moseley mose...@hank.org wrote: PerlBal (as in this old post: http://lists.danga.com/pipermail/perlbal/2005-November/000138.html ) can do this as well. I wonder about

Re: [Catalyst] Progress bar

2012-10-24 Thread Bill Moseley
this might be a bad (or good) approach? -- 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

Re: [Catalyst] Progress bar

2012-10-21 Thread Bill Moseley
really want to tie up the app with slow uploads. I guess I should test, but I wonder if there's a limit on what Starman will buffer -- I assume it's buffering in memory. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

[Catalyst] Use of uninitialized value in delete

2012-10-19 Thread Bill Moseley
-Mwarnings -Mstrict -Wle 'use warnings; use strict; my $x = {}; delete $x-{a}' Is there something special about $c-stash that might trigger this in Perl? Anyone else spot these in the logs. This is on Perl 5.14.2 / Catalyst 5.90016 / mod_perl 2.0.7 -- Bill Moseley mose...@hank.org

Re: [Catalyst] Progress bar

2012-10-18 Thread Bill Moseley
to use the iframe trick on those browsers. https://bugs.webkit.org/show_bug.cgi?id=23933 How close is this version of Catalyst for a release? Unfortunately, I noticed this while preparing for an app release next week. Thanks, -- Bill Moseley mose...@hank.org

Re: [Catalyst] Progress bar

2012-10-17 Thread Bill Moseley
error: followed immediately by a restart of the child process (testing with Starman). So, that's something else I need to try and track down. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] Progress bar

2012-10-17 Thread Bill Moseley
: 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/ -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk

[Catalyst] Progress bar

2012-10-16 Thread Bill Moseley
upload stats? 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

Re: [Catalyst] thoughts on a catalyst roadmap

2012-10-12 Thread Bill Moseley
-- and less expensive. And releases more frequent and less anxious. -- 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] Trapping added errors with the correct caller

2012-10-11 Thread Bill Moseley
and out-dated plugin I use that wraps execute() and sets __DIE__ and __WARN__ to catch those and uses Devel::StackTrace to add in a stack trace. Then I use log4perl to format and direct the messages. I also use Moose's Throwable which includes a stack trace. -- Bill Moseley mose...@hank.org

[Catalyst] Better Testing

2012-09-30 Thread Bill Moseley
machines. -- 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] Modify config in a test

2012-09-26 Thread Bill Moseley
On Wed, Sep 26, 2012 at 1:15 AM, Manni Heumann heum...@strato-rz.de wrote: Bill Moseley mose...@hank.org schrieb am 25.09.2012: The app has a myapp.yml config which includes configuration for creating an instance of a Model component -- and part of that Model's config is a database dsn

[Catalyst] Modify config in a test

2012-09-25 Thread Bill Moseley
could just do MyApp-model( 'MyModel' )-dns( $new_dsn ); What's a good, clean way of doing this? Or perhaps a better approach all together? -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Best-practices question: caching a search

2012-09-16 Thread Bill Moseley
@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/ -- Bill Moseley mose...@hank.org ___ List: Catalyst

[Catalyst] Module::Install::Catalyst replacement

2012-09-14 Thread Bill Moseley
and then get installed as File::ShareDir expects (i.e. have Catalyst::Utils::home() use dist_dir( $c-config-{name} ) ). But, that's kind of a big change. Anyone have thoughts on the that? -- Bill Moseley mose...@hank.org ___ List: Catalyst

Re: [Catalyst] Applying roles that contain actions.

2012-09-07 Thread Bill Moseley
On Fri, Sep 7, 2012 at 11:50 AM, Tomas Doran bobtf...@bobtfish.net wrote: On 5 Sep 2012, at 21:48, Bill Moseley wrote: Currently I just manually apply the role directly in the existing controller, so not a huge issue, but would be handy if I could just add a role to the base class

[Catalyst] Applying roles that contain actions.

2012-09-05 Thread Bill Moseley
/video.php?v=10100259101684977oid=9445547199comments -- 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] [JOB] Oakland, CA, USA

2012-08-27 Thread Bill Moseley
Catalyst web app developer job posting: http://jobs.perl.org/job/16350 -- 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] working around request timeouts

2012-08-20 Thread Bill Moseley
: 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/ -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk

[Catalyst] Parsing of undecoded UTF-32 at /home/davidw/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Catalyst/Test.pm

2012-08-15 Thread Bill Moseley
: Wed, 31 Dec 1969 23:59:59 GMT Content-Disposition: attachment; filename*=UTF-8''trumpet.m4a (Warnings are fatal): Parsing of undecoded UTF-32 at /home/moseley/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Catalyst/Test.pm line 314. -- Bill Moseley mose...@hank.org

Re: [Catalyst] Change in $c-engine-prepare_parameters

2012-08-04 Thread Bill Moseley
I'll work on a patch and docs, yes. On Sat, Aug 4, 2012 at 6:53 AM, Tomas Doran bobtf...@bobtfish.net wrote: On 3 Aug 2012, at 14:39, Bill Moseley wrote: What it doesn't do any more is set $c-req-parameters when called directly, only when called as a builder. I don't think

Re: [Catalyst] Change in $c-engine-prepare_parameters

2012-08-04 Thread Bill Moseley
call $c-prepare_parameters again? On Sat, Aug 4, 2012 at 6:53 AM, Tomas Doran bobtf...@bobtfish.net wrote: On 3 Aug 2012, at 14:39, Bill Moseley wrote: What it doesn't do any more is set $c-req-parameters when called directly, only when called as a builder. I don't think

[Catalyst] Change in $c-engine-prepare_parameters

2012-08-03 Thread Bill Moseley
= shift; $self-clear_parameters; return $self-parameters; } And likewise in the Engine.pm: sub prepare_parameters { my ( $self, $c ) = @_; $c-request-clear_parameters; return $c-request-parameters; } -- Bill Moseley mose...@hank.org

Re: [Catalyst] Why does the installer include the 'xt' directory

2012-07-25 Thread Bill Moseley
( 'xt' ); -- 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] Why does the installer include the 'xt' directory

2012-07-24 Thread Bill Moseley
-Devel-1.37/lib/Module/Install/Catalyst.pm#catalyst_ignore(@ignore) -- 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] Why does the installer include the 'xt' directory

2012-07-24 Thread Bill Moseley
in your Makefile.PL? If those are done then this always works.. :) vim $(perldoc -l Module::Install::Catalyst) directory. -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

[Catalyst] Extending Catalyst::Script::Server to proxy

2012-07-14 Thread Bill Moseley
framework for running scripts -- mostly so the script works where ever the Catalyst app is installed. Can anyone help with this? Thanks, -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

  1   2   3   4   >