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 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
logging works again and log 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

Re: [Catalyst] From Development to Production.

2016-03-19 Thread Bill Moseley
s. We would like to get 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 __

[Catalyst] Plugin attributes and Moose

2015-11-22 Thread Bill Moseley
ment out "with 'MooseX::Emulate::Class::Accessor::Fast';" and it behaves as expected. Also comment out "init_arg" and Moose will complain about the string not begin an Int. -- Bill Moseley mose...@hank.org __

[Catalyst] Setting config after setup has been run is not allowed.

2015-09-25 Thread Bill Moseley
But, what's the issue with calling $c->config( foo => 123 ) at runtime? Or even $c->config( \%new_config )? Note that wrapper only applies to calling config on the app class, and does not apply to Model/View/Controllers. Is there some other issues I'm missing?

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 wrote: > > > On Sat, Aug 1, 2015 at 6:31 AM, Stefan wrote: > >> Hi, >> >> if a URL parameter contains a Unicode character (e.g. >> www.example.com/?param=%D6

Re: [Catalyst] Url Encoded UTF8 parameters

2015-08-01 Thread Bill Moseley
but most likely the browser will turn it back into ?param=Ölsoße If you really want to say you are using utf8 constant strings (i.e. "use utf8;"): $ perl -le 'use URI::Escape; use Encode; use utf8; use Encode; print uri_escape( encode_utf8( "Ölsoße" ) )' %C3%96lso%C

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

2015-06-06 Thread Bill Moseley
file optional when I have a bit of time. On Fri, Jun 5, 2015 at 4:38 PM, Lasse Makholm wrote: > > > On Fri, Jun 5, 2015 at 8:26 PM, Bill Moseley wrote: > >> Hi, >> >> Our app handles a lot of uploads, often quite large uploads.As we >> know, uploads (and

[Catalyst] Configure psgi.input as optional?

2015-06-05 Thread Bill Moseley
the temp file fails? BTW -- Plack::Handler::Apache2 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.s

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

2014-12-17 Thread Bill Moseley
me}, filename => *$c->_handle_unicode_decoding($upload->{filename})*, ); -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst S

Re: [Catalyst] Catalyst Unicode

2014-01-31 Thread Bill Moseley
= 16 Everything is encoded. The flag tells Perl that its internal representation is encoded as utf8 so knows to work with it as utf8 characters (e.g. length() is length of chars, matching works on chars, etc.) $ perl -le 'use Encode; my $chars = decode( 'latin1', &

[Catalyst] Implementing Webhooks.

2014-01-15 Thread Bill Moseley
mplement this? How 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, --

Re: [Catalyst] Changing format of date field

2014-01-09 Thread Bill Moseley
> form data back to the form like so: > > $c->stash( formdata => $c->request->params ); > Have you looked at HTML::FormHandler? I would assume it addresses this. I use something similar and the concept is that you have a field object that knows how to render either

Re: [Catalyst] Changing format of date field

2014-01-06 Thread Bill Moseley
a function that does the above, but also clones 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: Cataly

Re: [Catalyst] Plack::Middleware::ContentLength problem

2013-12-21 Thread Bill Moseley
On Fri, Dec 20, 2013 at 8:34 PM, neil.lunn wrote: > > My article today actually (http://www.catalystframework.org/calendar/2013/21), > even though I'm actually talking here about the above case. > Just a note on the Advent article. Thanks for writing that up. It's a well-written article

[Catalyst] Anyone have experience with locales?

2013-12-16 Thread Bill Moseley
d I only use setlocale( &LC_NUMERIC, $locale ), 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:

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

2013-12-15 Thread Bill Moseley
constructor (as opposed 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@lis

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

2013-12-15 Thread Bill Moseley
ut 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: Catalyst@lists.s

[Catalyst] Bump Catalyst::Model::Adaptor

2013-12-15 Thread Bill Moseley
omplaining. I think there's 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 _

[Catalyst] Re: Content Disposition filename

2013-12-03 Thread Bill Moseley
On Tue, Nov 19, 2013 at 10:32 AM, Bill Moseley 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 som

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

2013-11-21 Thread Bill Moseley
; $io->seek( -4, 2 ); > $io->read( 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 ___

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

2013-11-20 Thread Bill Moseley
'Comment' => undef, 'OsName' => 'Unix', 'FingerprintLength' => 2, 'HeaderCRCFlag' => 0, 'OsID' => 3, 'TrailerLength' => 8, 'Name' =&

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 wrote: > > On Wed, Nov 20, 2013 at 4:08 AM, neil.lunn wrote: > >> my $length = $body->getHeaderInfo > > > Well, that's helpful. Thanks. Completely missed that in the docs. > Well, except for the a

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 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 Lis

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

2013-11-19 Thread Bill Moseley
perl-5.14.2/lib/site_perl/5.14.2/Catalyst.pm line 1948, 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 som

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

2013-11-19 Thread Bill Moseley
, or something wrong with how IO::Uncompress::Gunzip 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 p

[Catalyst] Content Disposition filename

2013-11-19 Thread Bill Moseley
where 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..

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

2013-11-06 Thread Bill Moseley
EPT_CONTEXT that included: $replication_object->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-

[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 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 i

Re: [Catalyst] Re: Response traits.

2013-11-01 Thread Bill Moseley
n indicator of not knowing what one is doing. The framework's benefit is so you don't screw things up. > > John > > > On Thursday, October 31, 2013 7:03 PM, Bill Moseley > wrote: > > > > On Thu, Oct 31, 2013 at 2:34 PM, John Napiorkowski wrote: >

Re: [Catalyst] Re: Response traits.

2013-10-31 Thread Bill Moseley
I was thinking 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 > wrote: > > On Thu, Oct 31, 2013 at 12:51 A

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

2013-10-31 Thread Bill Moseley
tii-rest 16 Oct 28 13:36 NWwxOhwhRW -rw--- 1 tii-rest tii-rest 16 Oct 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 M

Re: [Catalyst] Re: Response traits.

2013-10-31 Thread Bill Moseley
On Thu, Oct 31, 2013 at 12:51 AM, Aristotle Pagaltzis wrote: > 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 Listinfo: h

[Catalyst] Response traits.

2013-10-30 Thread Bill Moseley
$self->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 s

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

2013-10-25 Thread Bill Moseley
Another problem, and one I've commented<https://rt.cpan.org/Public/Bug/Display.html?id=84004>on 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 t

Re: [Catalyst] Optional path prefix

2013-10-22 Thread Bill Moseley
be easier to take one approach or the other. > It does seem like that. Deciding to go with the flow vs. doing it the "right" way is the decision to be made. I like your suggestion to map it to an Accept header -- best of both worlds. -- Bill Moseley mose...@hank.org _

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

2013-10-22 Thread Bill Moseley
rent value would change $req->uri dramatically. >On Monday, October 21, 2013 10:00 AM, Bill Moseley > 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] Catalyst::Request path method as a setter

2013-10-21 Thread Bill Moseley
my $location = $self->base->path; $path =~ s/^(\Q$location\E)?//; $path =~ s/^\///; $self->_path($path); return $path; } } -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http:

[Catalyst] Optional path prefix

2013-10-15 Thread Bill Moseley
written from a practical Rails programmer 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..

Re: [Catalyst] REST and versioning

2013-09-17 Thread Bill Moseley
Controller'; > > sub start : ChainedParent > PathPrefix CaptureArgs(0) > { > my ($self, $ctx) = @_; > } > > 1; > > package Myapp::Web::Controller::API::2; > > use base 'Catalyst::Controller'; > > sub start : ChainedParent > PathPrefix CaptureArg

[Catalyst] REST and versioning

2013-09-17 Thread Bill Moseley
oning-only-version-the-representation-not-the-resource-itself?lq=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 _

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

2013-08-09 Thread Bill Moseley
tough one. Just seems like PUT /user should accept the same data regardless of how it is serialized. And GET /user would get the user data and then serialize 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 ___ 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
W - I practice I find it pretty handy to be able to specify/override response encoding via a query param. -- 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] CSV / UTF-8 / Unicode

2013-07-02 Thread Bill Moseley
rrect > MIME header to pass for CSV that you want MS Excel to open. > http://www.ietf.org/rfc/rfc4180.txt, but how Windows decides how to open files is something I'm not familiar with. -- Bill Moseley mose...@hank.org ___ List: Cat

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 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 that

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

2013-07-02 Thread Bill Moseley
) if ref(\$body) eq 'SCALAR'; 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. Maybe limit to the content types listed above, but throw an exception for other content types where the bo

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

2013-06-14 Thread Bill Moseley
I don't think we are using that so was a bit surprised by that requirement. -- 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
tp://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 ___

Re: [Catalyst] Chained and exceptions

2013-05-10 Thread Bill Moseley
curity issue if the earlier action 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 th

Re: [Catalyst] Re: Chained and exceptions

2013-05-09 Thread Bill Moseley
On Thu, May 9, 2013 at 9:34 AM, Aristotle Pagaltzis wrote: > * Bill Moseley [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. > Agree

Re: [Catalyst] Chained and exceptions

2013-05-09 Thread Bill Moseley
On Thu, May 9, 2013 at 8:31 AM, Bill Moseley 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. >> > >

Re: [Catalyst] Chained and exceptions

2013-05-09 Thread Bill Moseley
On Thu, May 9, 2013 at 7:25 AM, Lukas Thiemeier wrote: > 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 ch

[Catalyst] Chained and exceptions

2013-05-09 Thread Bill Moseley
); warn "in lastpart\n"; } $ script/exception_test.pl /start/middle/lastpart in start in middle *in lastpart* [error] Caught exception in Exception::Controller::Root->middle "died in middle" -- Bill Moseley mose...@hank.org _

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

2013-03-23 Thread Bill Moseley
gt; > Use $c->req->uri->host to get the hostname 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 &g

Re: [Catalyst] Catalyst, ExtJS and TT

2013-03-18 Thread Bill Moseley
e 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 Moseley mose...@hank.org ___

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

2013-03-17 Thread Bill Moseley
ng "LimitRequestBody" 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, Ma

[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 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 it r

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-11 Thread Bill Moseley
rride (merge 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 C

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

2013-03-11 Thread Bill Moseley
n the body -- that should prevent double-encodings. And having a config option to disable is easy. And if the plugin is found on the app issue a warning. It's possible that someone has their own modified version of the plugin using the same name. -- Bill Moseley mose...@hank.org __

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

2013-03-10 Thread Bill Moseley
a that represents characters must 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

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-08 Thread Bill Moseley
it an all its dependencies are installed. So, 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

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-08 Thread Bill Moseley
lla::Plugins on CPAN. 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. --

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

2013-03-05 Thread Bill Moseley
e code just now and saw a comment that included this URL: 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 pla

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

2013-03-04 Thread Bill Moseley
it's something that every app probably 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.sc

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

2013-03-03 Thread Bill Moseley
and encode all text 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/listinf

Re: [Catalyst] Catalyst::Controller::REST and Serializer/Deserializer

2013-02-25 Thread Bill Moseley
nse when I ask 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 Listi

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

2013-02-24 Thread Bill Moseley
over your resources -- 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 s

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 wrote: > ** > *From:* Bill Moseley > > 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 th

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

2013-02-12 Thread Bill Moseley
ht be done here, short of not storing the DBIC row objects? I do want to end up with row objects 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 Listinf

[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

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 wrote: > On 19 October 2012 18:37, Bill Moseley 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 a

[Catalyst] IPv6 client addresses

2013-01-14 Thread Bill Moseley
or will $c->req->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 custo

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

2012-12-04 Thread Bill Moseley
On Tue, Dec 4, 2012 at 5:22 AM, Marc SCHAEFER wrote: > Hi, > > for some time I write things like this in my templates: > > > I've always used href="[% c.uri_for( ... ) | html %]" -- Bill Moseley mose...@hank.org _

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

2012-11-28 Thread Bill Moseley
s of secret + timestamp. 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://list

[Catalyst] log4perl and logging request parameters

2012-11-28 Thread Bill Moseley
of each request and then wrap the warn() and error() methods and set the MDC 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 a

Re: [Catalyst] Access Catalyst context object from script

2012-11-01 Thread Bill Moseley
at host:port and script path to use to build correct URLs 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.co

Re: [Catalyst] Global 'helper' methods

2012-10-30 Thread Bill Moseley
ve. > > > Where do these go? > > > > Also where do you put application global constants? > Not a clear line, but you have an app config for app-specific config. But, I also have App::Constants that export constats which is useful for when you need the constants outside of Catal

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 wrote: > 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->sta

Re: [Catalyst] Progress bar

2012-10-26 Thread Bill Moseley
On Thu, Oct 25, 2012 at 5:29 AM, Aaron Trevena wrote: > On 24 October 2012 17:59, Bill Moseley 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
ne see why 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@lis

Re: [Catalyst] Progress bar

2012-10-21 Thread Bill Moseley
't 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: Ca

[Catalyst] Use of uninitialized value in delete

2012-10-19 Thread Bill Moseley
eem to make it happen: $ perl -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

Re: [Catalyst] Progress bar

2012-10-18 Thread Bill Moseley
kit). Need 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
; > > ___ > 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.

Re: [Catalyst] Progress bar

2012-10-17 Thread Bill Moseley
I saw in the logs was this: $ fgrep Read error_log Read error: Read error: Read error: Read 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 ___

[Catalyst] Progress bar

2012-10-16 Thread Bill Moseley
that my AJAX request can get updated 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

Re: [Catalyst] thoughts on a catalyst roadmap

2012-10-12 Thread Bill Moseley
uild, test, release process less painful -- 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 Sear

Re: [Catalyst] Trapping added errors with the correct caller

2012-10-11 Thread Bill Moseley
} > } > Isn't that what finalize already does? I have a very old 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 us

[Catalyst] Better Testing

2012-09-30 Thread Bill Moseley
-core 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:

Re: [Catalyst] Modify config in a test

2012-09-26 Thread Bill Moseley
On Wed, Sep 26, 2012 at 1:15 AM, Manni Heumann wrote: > Bill Moseley 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
s readonly -- otherwise I 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

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

2012-09-16 Thread Bill Moseley
4 || INOC-DBA *3557* NOC >> PGP KeyID = B38DB1BE >> >> >> ___ >> List: Catalyst@lists.scsys.co.uk >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: >> http://www.

[Catalyst] Module::Install::Catalyst replacement

2012-09-14 Thread Bill Moseley
ld go into "share" in the distribution 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

Re: [Catalyst] Applying roles that contain actions.

2012-09-07 Thread Bill Moseley
On Fri, Sep 7, 2012 at 11:50 AM, Tomas Doran 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 c

[Catalyst] Applying roles that contain actions.

2012-09-05 Thread Bill Moseley
is known for: https://www.facebook.com/video/video.php?v=10100259101684977&oid=9445547199&comments -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Se

[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
stinfo/catalyst >> Searchable archive: >> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ >> Dev site: http://dev.catalyst.perl.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/ > > -- 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] [ANNOUNCE] Catalyst-Runtime 5.90016

2012-08-17 Thread Bill Moseley
ull changes: > > 5.90016 - 2012-08-16 15:35:00 > - prepare_parameters is no longer an attribute builder. It is now a > method > that calls the correct underlying functionality (Bill Moseley++) > - Updated Makefile.PL to handle MacOXS tar > - Fix uri_for to handle a stringifiable object >

[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
ent-Length: 24043 Content-Type: audio/mp4a-latm Expires: 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/Catal

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

2012-08-07 Thread Bill Moseley
Did this help? On Sat, Aug 4, 2012 at 6:19 PM, Bill Moseley wrote: > See attached. > > Let me know if you want something else. > > I'm mixed on of the clear should be private. I made it that way, but I > wonder if there could be a use case to reset the parameters

  1   2   3   4   5   >