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

2010-04-28 Thread Matt S Trout
s it a suboptimal choice. OTOH, if it works for you, I'm all for you enjoying using it :) -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-28 Thread Matt S Trout
neck in your application. Premature optimisation is the root of much evil. Profiles of this being a genuine problem for real production code or GTFO, please. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://sha

Re: [Catalyst] unsubsricbe

2010-04-28 Thread Matt S Trout
be> that describes how to unsubscribe from it. However, I've gone into the admin console and deleted your subscription for you. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/

Re: [Catalyst] Pre-Moose version of Catalyst and all plugins?

2010-04-28 Thread Matt S Trout
f TT, so I may hit Moose again there. It > might be easier for me to just take a step back in time and get old versoins: I have no idea what you mean by "hit Moose" and I have no idea how Moose and Embperl are remotely related. Could you elaborate please? > Any suggestion on a

Re: [Catalyst] Oddness with Catalyst::Plugin::Session::Store::DBIC

2010-04-28 Thread Matt S Trout
fter you load your session plugins, come back to us with the versions of all the plugins you're loading and we'll dig further. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/c

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

2010-04-28 Thread Matt S Trout
On Wed, Apr 28, 2010 at 03:20:05PM +, Ævar Arnfjörð Bjarmason wrote: > On Wed, Apr 28, 2010 at 14:30, Matt S Trout wrote: > > In the case of Catalyst applications, the standard assumption that a > > checkout > > and a final dist look much the same (as is normal fo

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

2010-04-28 Thread Matt S Trout
tly, the generation stuff is there to get newbie users started. I think I used it for about the first 6 months and then switched to starting applications with 'mkdir' and components with 'vi lib/...'. -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and

Re: [Catalyst] Oddness with Catalyst::Plugin::Session::Store::DBIC

2010-04-28 Thread Matt S Trout
.pl output during development. For production DBIC_TRACE is > forced off and Static::Simple is never loaded :) Which is great. But a lot of users leave Static::Simple loaded, so while it's not going to bother you it -will- bother them. So, in the name of paying karma forwards, any chance I could

Re: [Catalyst] Oddness with Catalyst::Plugin::Session::Store::DBIC

2010-04-29 Thread Matt S Trout
On Thu, Apr 29, 2010 at 08:10:29AM +0800, Moritz Onken wrote: > Still the same behaviour. See my reply downthread for how I'd recommend trying to diagnose this. -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue http://shadowcat.co.uk/blog/matt-s-trout

Re: [Catalyst] Oddness with Catalyst::Plugin::Session::Store::DBIC

2010-04-29 Thread Matt S Trout
ion code is getting hit during a static request and why that's happening. My first guess would be "the code to auto-extend session expiry is being triggered". But I've not dug into the code properly to see if that's it yet. -- Matt S Trout - Shadowcat Systems - Perl c

Re: [Catalyst] RunAfterRequest/delayed Catalyst view

2010-05-02 Thread Matt S Trout
cond we discuss how to either (a) fix this or (b) make sure it produces a non-awful error. (even if you've already rewritten the code it'd be much appreciated if you could try this out and see if it does the right thing - also, you then get to point and laugh at me with a bit of luck, which m

Re: [Catalyst] Returning error codes to the user.

2010-05-02 Thread Matt S Trout
ver (or better still refactor to resultset methods and have your custom resultset class keep the intermediate resultsets around) then it seems like it should be pretty easy to walk back up the chain making the extra queries until one returns data - at which point you know the last step you walked ba

Re: [Catalyst] Bareword "catalyst" not allowed while "strict subs" in use at Makefile.PL line 90.

2010-05-06 Thread Matt S Trout
Devel. But don't do that for a build server. make a dist and do it properly. (ironically, the catalyst; line in your Makefile.PL is why a dist works well :) -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue http://shadowcat.co.uk/blog/matt-s-trout

Re: [Catalyst] Why use external FastCGI apps?

2008-04-06 Thread Matt S Trout
't so much care where it goes so long as it's there - a mis-placed article can be moved but a nonexistant one is no use at all :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalys

Re: [Catalyst] Catalyst::Controller::REST and JSON::XS - Namespace/Custom modules

2008-04-06 Thread Matt S Trout
- if that's -not- working then you need to post your code and your config so we can try and figure out what's going wrong. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ S

Re: [Catalyst] Book - Japanese

2008-04-06 Thread Matt S Trout
o bug Packt about it, potential customers asking for it in Japanese is probably what will make them do it if they do :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems

Re: [Catalyst] How do I access 'Catalysed' custom datasets?

2008-04-06 Thread Matt S Trout
you, rather than hard coding a class. Also, never write class methods in DBIC. If you want methods, add methods - on row objects for single-record methods, on resultsets for collection methods, and on the schema for global things. -- Matt S Trout Need help with your Catalyst or DBIx:

Re: [Catalyst] Memory leak under FastCGI?

2008-04-06 Thread Matt S Trout
re leaking SVs. > Is it generally an acceptable practice to just restart the external > fastcgi process periodically to free its memory? Yep. Other than really gross leaks it's often not worth the developer time involved to track them down. -- Matt S Trout

Re: [Catalyst] Handy shotcuts

2008-04-06 Thread Matt S Trout
$path); $c->detach() > > I guess these shortcuts are really useful. Patch is attached. (1) Patches will -never- be attached without tests. If you haven't written tests, you should assume your code doesn't work. (2) There's no reason to pollute the core Catalyst with these;

Re: [Catalyst] fix config right before database connect?

2008-04-06 Thread Matt S Trout
define a programmatic replacement for that. See Plugin::ConfigLoader docs for details. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a manage

Re: [Catalyst] RFC for plugin to strip script name from URI; plugin name + code review

2008-04-06 Thread Matt S Trout
%{REQUEST_URI} !(.*[^/])$ > RewriteRule ^(.*)/$ /$1 [QSA,L,R=301] > > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*) /myapp.fcgi/$1 [QSA,L] Isn't it possible in mod_rewrite to use the P flag to pass the original URI throug

Re: [Catalyst] catalyst and oracle "CONNECT BY PRIOR"

2008-04-06 Thread Matt S Trout
o with Catalyst. > Or post it to thedbix-list? There's no such thing as 'dbix', the project si called DBIx::Class. There are many others in the DBIx:: namespace and none of them are related. Also, the answer is going to be 'patches welcome' so unless you fancy implementin

Re: [Catalyst] Catalyst-Manual-FAQ Addition

2008-04-06 Thread Matt S Trout
est to back them up; if you've found a way to make Catalyst ignore such, it's almost certainly a bug in either our code our yours. It sure as hell isn't intentional, as you can tell by the fact that the string 'call' does not appear -at all- in Catalyst/Controller.pm --

Re: [Catalyst] Memory leak under FastCGI?

2008-04-10 Thread Matt S Trout
cManager just spawns another one. Note also that the FCGI::ProcManager maintainer is Gareth Kirwan and can be found hopefully via this list or as gbjk on IRC. (moral of the story: RFC on here first before coding lest ye be reinventing a wheel :) -- Matt S Trout Need help with your

Re: [Catalyst] Re: New engine: HTTP::Prefork

2008-04-10 Thread Matt S Trout
et engine, but I wasn't > > really happy with it. > > Yeah – as I said, it’s faster when comparing all possible > approaches. But the app must be designed around that model. > Catalyst isn’t. Debolaz' auto-nonblocking DBIx::Coro (which works fine with DBIC) might make

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-10 Thread Matt S Trout
accessible via $c->stats. Any ideas anyone? Debug mode is what turns on the internal statistics and action timing code, so the stats object isn't initialised without it. I'm not sure if this is a bug or a feature. -- Matt S Trout Need help with your Catalyst or DBIx::Clas

Re: [Catalyst] RFC: Catalyst::Plugin::AutoValidate

2008-04-10 Thread Matt S Trout
ests path (like > the .fb files when using Formbuilder). > > I'm curiuos of your opinions. Should be a controller base class. Using a plugin for this is bad style - see for example Controller::FormBuilder which replaces the old Plugin::FormBuilder -- Matt S Trout Need he

Re: [Catalyst] RIA on Catalyst

2008-04-11 Thread Matt S Trout
wrappers are far, far more powerful so it made modeling the system as half object + protocol (the protocol being a JSON transport) much easier. I am not, however, a JS expert; I spent most of my time beating Cat + DBIC with a stick, as usual :) -- Matt S Trout Need help with

Re: [Catalyst] Memory leak under FastCGI?

2008-04-11 Thread Matt S Trout
On Thu, Apr 10, 2008 at 03:11:56PM -0400, Matt Pitts wrote: > > -Original Message- > > From: Matt S Trout [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 10, 2008 12:33 PM > > To: The elegant MVC web framework > > Subject: Re: [Catalyst] Memory leak under

Re: [Catalyst] Re: STDERR noise on Perl 5.10

2008-04-11 Thread Matt S Trout
in trunk. > Subroutine initialize redefined at > /usr/local/lib/perl5/site_perl/5.10.0/Class/C3.pm line 70. Send patches to Class::C3 > Name "MailRu::Catalyst::Plugin::Authentication::setup" used only once: > possible typo at /usr/local/lib/perl5/5.10.0/NEXT.pm line 58.

Re: [Catalyst] Memory leak under FastCGI?

2008-04-11 Thread Matt S Trout
. > > v/r > > -matt > > ___ > 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] Sending email safely with Catalyst

2008-04-18 Thread Matt S Trout
t; correctly (the mod_perl guide recommends against forking > http://modperlbook.org/html/10-2-Forking-and-Executing-Subprocessesfrom-mod_perl.html). But you're writing a new catalyst app, so you're deploying it under fastcgi, right? Really, mod_perl is a legacy deployment option.

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-18 Thread Matt S Trout
e. I'm aware this sucks, and I'm still very pleased we have a proper documented stats API, but it still needs doing. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/

Re: [Catalyst] CGI::Dump()

2008-04-18 Thread Matt S Trout
On Wed, Apr 16, 2008 at 06:59:14PM -0700, Ashley wrote: > Is there an established way to emulate this in Cat? > > CGI::Dump() > > I like it for dev work and simple one-off forms that are human > processed. [% USE Dumper; Dumper.Dump(c.req.params) | html; %] or so ? --

Re: [Catalyst] Testing View

2008-04-18 Thread Matt S Trout
ispatch setup and then expect the dispatcher to work. Also, a controller is an object. Calling methods as subroutines is -just- -wrong-. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co

Re: [Catalyst] Sending email safely with Catalyst

2008-04-19 Thread Matt S Trout
On Fri, Apr 18, 2008 at 01:31:37PM -0700, Tatsuhiko Miyagawa wrote: > On Fri, Apr 18, 2008 at 10:54 AM, Matt S Trout <[EMAIL PROTECTED]> wrote: > > But you're writing a new catalyst app, so you're deploying it under > > fastcgi, > > right? > > > >

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-20 Thread Matt S Trout
urn it. So far as I can see, all we really need to do is supply a proxy of the common Tree::Simple method from the C::Stats object through to $self->{tree} and we're done. That'll provide compatibility with obvious usages without adding any significant compatibility overhead. I was ho

Re: [Catalyst] Catalyst::Log::Log4perl autoflush

2008-04-20 Thread Matt S Trout
guration file? > > Do you (or others) agree that the autoflush option to new() is a misnomer? > If not, wouldn't my test simply prove that the code doesn't do what it > doesn't say it does? The autoflush option to new has the right name, but does the wrong thing. So

Re: [Catalyst] Unit Testing

2008-04-20 Thread Matt S Trout
n model, and then add your business logic methods below the md5 line so the skeleton parts can be regenerated. You should always be adding more code to your DBIC schema than you're adding to your controllers; if you find it's the other way round, you're doing it wrong. -- Matt S

Re: [Catalyst] Unit Testing

2008-04-20 Thread Matt S Trout
n your controller (as opposed to your model) to -need- unit testing you're doing something wrong. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a

Re: [Catalyst] Catalyst and PayPal

2008-04-21 Thread Matt S Trout
dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Model-PayPal-IPN/ I wrote this for a project a while back but haven't had time to add docs and tests so it can be released. Volunteers would be much appreciated; commit bit on request. -- Matt S Trout Need help with your C

Re: [Catalyst] Catalyst and PayPal

2008-04-21 Thread Matt S Trout
le application and multiple inheritance -are- basically isomorphic for a lot of purposes; the difference is it's much easier to shoot yourself in the head with multiple inheritance. Which is probably why it's not popular - people are scared of powerful tools that can bite :) -- Mat

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-21 Thread Matt S Trout
On Mon, Apr 21, 2008 at 11:49:56AM +0930, Jon Schutz wrote: > On Sun, 2008-04-20 at 15:15 +0100, Matt S Trout wrote: > > > So far as I can see, all we really need to do is supply a proxy of the > > common Tree::Simple method from the C::Stats object through to $self->{tre

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-21 Thread Matt S Trout
d. Welcome to the real world sucking. If it was perfect, we'd need a lot less developers :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or dep

Re: [Catalyst] modperl 1.3 wierdness

2008-04-21 Thread Matt S Trout
d; since obviously an unpacked dist -must- have a Makefile.PL otherwise it's not a valid dist[0] Choose one option :) [0] Yes, we do check for Build.PL as well. Hush. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorht

Re: [Catalyst] Unit Testing

2008-04-21 Thread Matt S Trout
t. Don't. Stoppit. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Matt S Trout
gt; sub view : Local Domain('mydomain.com') > { > } Write an Action Class. You can put whatever you want in the match() method. In your case, return 0 if grep { $c->req->host =~ /$_/ } @{$self->attributes->{Domain}||[]} looks about right. -- Matt S

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Matt S Trout
> specific methods? (Well those that use DBIx::Class as their model > anyway) No, generally they don't. That's why they end up with controllers full of crap. Anybody trying to write -actual- MVC code with Catalyst+DBIC will have resultset classes though :) -- Matt S Trout

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Matt S Trout
set of > Exceptions. The library provides come really common filtering facilities > for my apps like "active" flag and "valid_from"/"valid_to" date ranges > for records. That smells like there's a couple nice DBIC components in there trying to escape. Wa

Re: [Catalyst] uri_for() doesn't encode to utf8 first argument

2008-04-22 Thread Matt S Trout
$URI::uric])/$URI::Escape::escapes{$1}/go for @args; > -unshift(@args, $path); > > It this case all data will be encoded. > > Any suggestions? $c->uri_for($c->controller('Network')->action_for('root'), 'some_param1', &

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Matt S Trout
q->base at the moment though I'm not sure that's > the best way to go. I meant $c->req->uri->host, sorry. > Really finally, has anyone thought of putting together a flowchart of > the Classes/methods involved in a Catalyst request response if it's been > done

Re: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Matt S Trout
On Wed, Apr 23, 2008 at 03:25:47PM +0100, Curtis Fletcher wrote: > > -Original Message- > > From: Matt S Trout [mailto:[EMAIL PROTECTED] > > Sent: 23 April 2008 14:34 > > To: The elegant MVC web framework > > Subject: Re: [Catalyst] Dispatching

Re: [Catalyst] TT custom virtual methods available to all pages.

2008-04-23 Thread Matt S Trout
starts? package MyApp::View::TT; use base qw(Catalyst::View::TT); __PACKAGE__->config( ... ); use Moose; around template_vars => sub { my $orig = shift; my $self = shift; return (mk_hash => sub { ... }, $self->$orig(@_)); }; no Moose; 1; -- Matt S Trout

Re: [Catalyst] Why does $c->stats require -Debug flag?

2008-04-25 Thread Matt S Trout
tage of "completely broken" > kind of undermines that theory. > > I'm quite aware that I've spent more time debating the point than it > would have taken just to do this nugatory work, but then we wouldn't be > having this interesting discussion.

Re: [Catalyst] Re: Dispatching based on path and host/domain

2008-04-25 Thread Matt S Trout
On Wed, Apr 23, 2008 at 10:56:07PM +0200, Aristotle Pagaltzis wrote: > * Matt S Trout <[EMAIL PROTECTED]> [2008-04-23 21:40]: > > On Wed, Apr 23, 2008 at 03:25:47PM +0100, Curtis Fletcher wrote: > > > Digging around, is it a sane thing to have: > > > > >

Re: Fw: high school reunion [Catalyst] (no subject)

2008-05-03 Thread Matt S Trout
Unsubscribed and banned. Bai. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Catalyst] So, what do we want in the -next- book?

2008-05-03 Thread Matt S Trout
ty errata link here: http://catwiki.toeat.com/thebook Don't even waste your time submitting to them, just hassle them to link to the real errata list we've collected :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

[Catalyst] Kill the book thread please

2008-05-03 Thread Matt S Trout
There's about four different conversations going on on it now. Please anybody who considers one of those conversations worth keeping start a fresh thread with a more accurate subject. It'll make the conversation saner. -- Matt S Trout Need help with your Catalyst or D

Re: [Catalyst] modperl 1.3 wierdness

2008-05-03 Thread Matt S Trout
requiring that the > config file lived in the same non-standard location. How about using __PACKAGE__->config( 'Plugin::ConfigLoader' => { file => __PACKAGE__->path_to(...) } ); or setting an environment variable? -- Matt S Trout Need he

Re: [Catalyst] uri_for() doesn't encode to utf8 first argument

2008-05-03 Thread Matt S Trout
If you're going to resubmit a patch, please do so as a diff -ur or 'svn diff' or 'svk diff' to the list, and send it as plain text rather than application/octet-stream. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directo

Re: [Catalyst] Catalyst website

2008-05-03 Thread Matt S Trout
uld end up being most of the website, > since it's powered by hierarchical fairy dust. I believe #catalyst-site is the location for the working party. Please nobody join that channel unless you're planning to implement; bikeshedders unwelcome and can expect to be banned. Commit bits

Re: [Catalyst] So, what do we want in the -next- book?

2008-05-04 Thread Matt S Trout
est suite. Then again, I originally learned Catalyst by reading the source; took me about 8 hours. The only thing that confused me was the dispatcher, which is why I rewrote most of it later when I became a contrib :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] Re: RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Matt S Trout
ter for determining an architecture that allows you to use whatever alternative you like. Please don't let your obsessive REST advocacy blind you to pragmatic software development issues; it's starting to get boring. -- Matt S Trout Need help with your Catalyst or DBIx:

[Catalyst] Anybody who fancies some LWP poking ...

2008-05-04 Thread Matt S Trout
http://use.perl.org/~acme/journal/36321 -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Catalyst] So, what do we want in the -next- book?

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 07:28:46PM +0200, Marcus Ramberg wrote: > On 4. mai. 2008, at 15.39, Matt S Trout wrote: > > >Then again, I originally learned Catalyst by reading the source; > >took me > >about 8 hours. The only thing that confused me was the dispatcher, >

Re: [Catalyst] modperl 1.3 wierdness

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 11:19:24PM +1000, Toby Corkindale wrote: > On Sat, May 03, 2008 at 11:22:49PM +0100, Matt S Trout wrote: > > On Mon, Apr 28, 2008 at 11:30:53AM +1000, Toby Corkindale wrote: > > > Unfortunately due to somewhat unusual app deployment tactics her

Re: [Catalyst] Re: How to print/display some data in an end action

2008-05-05 Thread Matt S Trout
."]) > unless $id; > > my $gr = GeneRelations->new( > %{$c->config()->{dbinfos}}, > org => $c->session()->{org}->{id_org}, >); > > my $t = $gr->display_graph(type => 'id_gene', value => &g

Re: [Catalyst] Tutorial

2008-05-05 Thread Matt S Trout
elp with. If you don't tell us the actual error message, we can't do anything - you're almost as vague as my uncle is when he says "the internet is broken". Oh, and ignore Ali M. He likes telling people how awful their documentation is and how they should write more but hasn&

Re: Fw: high school reunion [Catalyst] (no subject)

2008-05-05 Thread Matt S Trout
a thing, of course. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
terns it can be a hell of a lot more efficient. Pragmatism is a many-edged sword :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed deve

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
the database uses is completely useless to the > user. /user/1634254 is silly, /user/jshirley is meaningful. I fail to see how whether the PK is the lookup key or not has any relevance at all to the original point, which was "your lookup key and names of actions might clash so it

Re: [Catalyst] Re: RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
Doubt it. The problem was the browsers gleefully threw out half the headers we were trying to send when we used a PUT request. Fuck all dojo can do about that so far as I can see. Of course I forget which browsers and which headers, but it sure as hell fucked our shit up but good. -- Mat

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
On Mon, May 05, 2008 at 07:50:08AM -0700, J. Shirley wrote: > On Mon, May 5, 2008 at 4:31 AM, Matt S Trout <[EMAIL PROTECTED]> wrote: > > > > On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: > > > On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-06 Thread Matt S Trout
that far down the dependency chain. Anyway, this thread was started to try and help get the fallout fixed, not for you to posture. Either write code, shut up, or start a separate thread so I can safely killfile it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-09 Thread Matt S Trout
lement a fix didn't seem a very good > idea. I think there was some discussion over the same error in the POE HTTP client over on perlmonks that included a "this is the line of code that is wrong". I can't find the link offhand though. -- Matt S Trout Need help w

Re: [Catalyst] UTF-16 surrogate message when writing binary data (image)

2008-05-10 Thread Matt S Trout
is sending the response it's doing so by reading from the filehandle and the error's turning up during $fh->read. It'd of course be easier for you to confirm this, since you have the copy of IO/Handle.pm and the line number - maybe you could look? A good way to check would be to loop

Re: [Catalyst] Request paths - rejoining Chained actions together.

2008-05-10 Thread Matt S Trout
l.. > > Is there any sane way of doing this? Am I missing something obvious? > > Cheers > Tom > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searc

Re: [Catalyst] Variable Catalyst seems to be undefined.

2008-05-10 Thread Matt S Trout
on - it's -usually- going to be enlightening. [0] If anybody ever finds out who coined the phrase "best practice" please tell me so I can send them a flaming llama turd as an expression of my love of it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] session in DB example in Catalyst book

2008-05-10 Thread Matt S Trout
t=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > "> Try it now. > You're posting in HTML only. Fix your mail client. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.sha

Re: [Catalyst] IMPORTANT: To all Catalyst::Whatever Authors, please read and ACT

2008-05-10 Thread Matt S Trout
users are clearly repeatedly not getting this, it's time to change stuff. If we do a 5.71 I think the catalyst.pl default should change then, and then after a few months we file bugs against every distribution still using YAML examples instead of code and/or .conf. -- Matt S Trout

Re: [Catalyst] Re: Request paths - rejoining Chained actions together.

2008-05-11 Thread Matt S Trout
which could vary between controllers, say) or maybe passing an arrayref of action objects indicating the precise chain. Have a think about it and see about an RFC if you're still interested; the trouble is the extra bookkeeping rapidly gets us to the point where the base class + N contro

Re: [Catalyst] IMPORTANT: To all Catalyst::Whatever Authors, please read and ACT

2008-05-11 Thread Matt S Trout
On Sat, May 10, 2008 at 07:16:44PM -0700, Ashley wrote: > On May 10, 2008, at 6:44 PM, Matt S Trout wrote: > >On Sat, May 10, 2008 at 05:56:41PM -0700, Ashley wrote: > >>Arguing that users who cargo-cult their configs from POD deserve > >>coddling and MODULE AUTHORS MUST

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-28 Thread Matt S Trout
me sort that can be used to deploy > the application You want it to run 'make catalyst_par' for you? > - Install the preresiquites via CPAN You want it to run 'make installdeps' for you? -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] Re: Request paths - rejoining Chained actions together.

2008-05-28 Thread Matt S Trout
troller/Foo.pm containing MyApp::Controller::Foo::Child[123]. We don't go round ranbdomly instnatiating every package we find in any file under Model/View/Controller - *that* would be a bug. Not doing so is a feature :) -- Matt S Trout Need help with your Catalyst or DBIx::Class pr

Re: [Catalyst] Adding Indexes To MySQL Database Tables in DBIC "result source" or "table classes"

2008-05-28 Thread Matt S Trout
On Mon, May 12, 2008 at 01:36:57PM -0400, Robert L Cochran wrote: > I have a MySQL version 5 table named languagelist structured like this: You seem to have accidentally posted this to the Catalyst list. I think you meant this to go to the dbix-class list? -- Matt S Trout Need h

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-28 Thread Matt S Trout
t; [3] Should script/myapp_setup.pl exist in a PAR archive in order to > > prevent the problem of the script not running because of missing > > dependencies? Yes, or bundle its own local::lib. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Techn

Re: [Catalyst] Undefined subroutine &Test::WWW::Mechanize::Catalyst::Aux::request called

2008-05-28 Thread Matt S Trout
On Fri, May 23, 2008 at 10:36:54AM -0700, Bill Moseley wrote: > Before I start debugging I'm curious if this is a know issue. Yeah, it means your app is fucked and didn't load. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Techn

Re: [Catalyst] Where to put common functions & how to get user id

2008-05-29 Thread Matt S Trout
atabase... No you don't. $c->user->obj returns the DBIC object. So $c->user->obj->user_id will give you the user_id. Although really, you shouldn't need that in your controller. Why do you think you need a model-specific integer in code that's no

Re: [Catalyst] uri_for() doesn't encode to utf8 first argument

2008-05-30 Thread Matt S Trout
s whitespaces changes. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http:

Re: [Catalyst] Re: Request paths - rejoining Chained actions together.

2008-05-30 Thread Matt S Trout
On Thu, May 29, 2008 at 10:07:50AM +0100, Tomas Doran wrote: > > On 29 May 2008, at 06:44, Matt S Trout wrote: > >As I said before, Catalyst will treat the namespace corresponding > >to the > >file and any -subnamespaces- as components to load. > > > >W

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-30 Thread Matt S Trout
i in case somebody has time to do it later ... -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platf

[Catalyst] Catalyst new site design: call for comps

2008-05-30 Thread Matt S Trout
d; that's fine. I'll print out the dumbest complaints and put them on my wall or something. Happy designing. Please try and make it better than http://trout.me.uk/ ;) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorh

[Catalyst] Catalyst site new design reminder: deadline TOMORROW

2008-06-04 Thread Matt S Trout
Remember, if you want your design to be considered for http://catalyst.perl.org/ it needs to be in the "mst (at) shadowcat.co.uk" mailbox by tomorrow or your excuse for needing until sunday needs to be instead. -- Matt S Trout Need help with your Catalyst or DBIx::Cla

[Catalyst] Catalyst site design drafts feedback thread

2008-06-11 Thread Matt S Trout
1.png Scott Ladzinski: (3) http://ion0.com/hx/cat/new-version-2-26.jpg (4) http://ion0.com/hx/cat/catalystSiteDesign3.jpg Mike Whitaker: (5) http://agaton.scsys.co.uk/~matthewt/catsite/catsite-Penfold.pdf Gentlement, start your feedback engines. -- Matt S Trout Need help with your

Re: [Catalyst] Authorization ACL: future plans?

2008-06-12 Thread Matt S Trout
ble to integrate it into my model - so I can require a certain permission to call $obj->update on a DBIC row or whatever. Might be interesting to start a thread on the DBIC list about model level security if you were so inclined. -- Matt S Trout Need help with your Catalyst or DBIx::Cla

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Matt S Trout
nsulting the designers who were kind enough to create mockups for us. I am however, much appreciative that you've provided an example of what you think is better - perhaps you could include an explanation of why you think it's better, though? The point here is I'm presenting -first- -

Re: [Catalyst] Catalyst site design drafts feedback thread

2008-06-12 Thread Matt S Trout
On Wed, Jun 11, 2008 at 03:58:28PM -0500, Dave Rolsky wrote: > On Wed, 11 Jun 2008, Dave Rolsky wrote: > > >On Wed, 11 Jun 2008, Matt S Trout wrote: > > > >>Simon Elliott: > >> > >>(1) http://www.browsing.co.uk/cat > > > >Overall m

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Matt S Trout
of why you > > think it's better, though? The point here is I'm presenting -first- > > -drafts- of ideas. +1/-1 can wait until the final designs are done. > > Do you mean the other framework websites or my own proposal? I was thinking about yours but can I get away w

Re: [Catalyst] multiple database model support

2008-07-19 Thread Matt S Trout
s this further, I'd suggest taking it to the dbix-class list. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment p

Re: [Catalyst] Bug with $c->request->query_keywords ?

2008-07-19 Thread Matt S Trout
"Catalyst::Request" >at /Library/Perl/5.8.8/Catalyst/Engine.pm line 446." You've got half a Catalyst::Runtime install of one version and half another. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

  1   2   3   4   5   >