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

2008-05-06 Thread Jonathan Rockway
when we apply the patch), and they make it extremely difficult to review your changes. GNU diff accepts an "--ignore-space-change" option that should remove these extra changes. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___

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

2008-05-05 Thread Jonathan Rockway
for half a year or so. In that case we would be having this exact discussion 6 months from now. Breaking broken code is always good. +1 for HTTP::Message. If you don't want new versions of modules, then *don't upgrade them*. Regards, Jonathan Rockway -- prin

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

2008-05-04 Thread Jonathan Rockway
te In your configuration, an option would be available to REST-ify certain parts of the RPC interface: rest => { create => 'create', get=> 'fetch_existing', delete => 'delete', update => 'update', } Then you would have

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

2008-05-02 Thread Jonathan Rockway
* On Fri, May 02 2008, rik knox wrote: > I''AM RIK KNOX WAS AT WEST DENTON HIGH SCHOOL NORTH HOUSE MR LAWRENCE WAS > MY FORM TEACHER, WANT TO HOOK UP WITH ANYONE YES ANYONE WHO WAS AT SCHOOL > SAME TIME .LOOKING FOR ANYONE FROM WEST DENTON HIGH SCHOOL 1976 PLEASE > EMAIL ME What.

Re: [Catalyst] $row->copy causing exit from controller(!)

2008-05-01 Thread Jonathan Rockway
n? Are you using an old version of stacktrace? If yes and yes: upgrade StackTrace (it eats exceptions) If no and no: something is horribly wrong (perl -d may help) If yes and no: see above. I have a feeling it's the first one. Anothe

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

2008-04-29 Thread Jonathan Rockway
* On Tue, Apr 29 2008, Peter Corlett wrote: > On Sun, Apr 27, 2008 at 03:01:47AM -0500, Jonathan Rockway wrote: > [...] >> Anyway, I hate to break this to you... if you want to know every detail of >> how the code works, you have to read the code. Reading code is the most &g

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

2008-04-29 Thread Jonathan Rockway
* On Tue, Apr 29 2008, Mark Keating wrote: >> Dare I say, an Enlightened Perl Development book? > > Perl for Enterprise: A look at Enlightened Perl Development But first, the EPO needs to create a publishing company called "ORLY". -- print just => another => perl => hacker => if $,=$" _

Re: [Catalyst] Catalyst website

2008-04-29 Thread Jonathan Rockway
rrata on the front page with the book link, > where newbies are likely to find it? Something to the tune of "Having > trouble? Click here for important information on the Catalyst book." I will > happily submit patch to the website if this is not shot down. +1 Regards, Jonath

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

2008-04-28 Thread Jonathan Rockway
* On Mon, Apr 28 2008, Ali M. wrote: > On Mon, Apr 28, 2008 at 7:29 AM, Jonathan Rockway <[EMAIL PROTECTED]> wrote: > >> 2) Learn how to use Catalyst (read my book) >> > > Sorry to say this, but your book is not a good book! > > I cannot in good faith rec

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

2008-04-27 Thread Jonathan Rockway
If they want to understand something, they can't expect understanding to be handed to them on a silver platter. They will just have to dive in and try to understand. It's called programming. Anyway, if someone wants to pay me $250/hr to document Catalyst's internals, I

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

2008-04-27 Thread Jonathan Rockway
de works, you have to read the code. Reading code is the most important skill a programmer can have, so I suggest biting the bullet, opening up your favorite code browser (ECB++), and perusing. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$

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

2008-04-24 Thread Jonathan Rockway
* On Thu, Apr 24 2008, Aristotle Pagaltzis wrote: > * Jonathan Rockway <[EMAIL PROTECTED]> [2008-04-24 11:25]: >> * On Thu, Apr 24 2008, Jon Schutz wrote: >> > No problems, if that's what the Catalyst standard says; I >> > must have missed it. Where is it? I

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

2008-04-24 Thread Jonathan Rockway
me underlying issues here which need to > be sorted out. At least I think so. If there are code issues, let's talk about them. If there is whining about community standards and so on, I am tired of talking about them. It's boring. You

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

2008-04-24 Thread Jonathan Rockway
nything, because it's an open source project. But when someone contributes changes, we release them, and then realize that there's a problem, it's nice to have the contributor around to fix the issues. When they just disappear or argue against the pro

[Catalyst] Catalyst Conference #1

2008-04-22 Thread Jonathan Rockway
cause it has its own conference now :) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] Catalyst and PayPal

2008-04-21 Thread Jonathan Rockway
easy to reuse. I never want to see the gears. Seeing the gears means it's way too easy to get your hair caught in them, and this is a problem that obviously worries me :) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___

Re: [Catalyst] Unit Testing

2008-04-20 Thread Jonathan Rockway
* On Sun, Apr 20 2008, Octavian Rasnita wrote: > Please tell us if we can find an example of putting the logic in the > model than call those methods from the controller. http://www.jrock.us/fp2008/catalyst/start.html Using a DBIC-based model works the same way. Regards, Jonathan R

Re: [Catalyst] Testing View

2008-04-19 Thread Jonathan Rockway
sting. Test::WWW::Mechanize::Catalyst (and friends) is mostly good for a quick sanity check. The important parts of your application should reside in easily-testable classes, and Catalyst should just be a few lines of code to make the those classes available to web users

Re: [Catalyst] Django Dash, opportunity for Catalyst?

2008-04-16 Thread Jonathan Rockway
> http://www.djangodash.com/faq/ has the timeline, Sounds fun. Let's do a Catalyst version at YAPC::NA (and if it goes well, YAPC::EU). I say... 1 day to write your app, the next day to present it to everyone and receive highly valuable prizes if yours is the best. Discuss amongst yourselv

Re: [Catalyst] Sending email safely with Catalyst

2008-04-11 Thread Jonathan Rockway
o calculate them, dump them into the mail queue, and let your mailer daemon figure out what to do. Much better than putting a queue in front of a queue, IMHO. This is UNIX after all. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] Re: about req.param

2008-04-11 Thread Jonathan Rockway
on expecting a CGI object. (It's for compatibility, not for use in new applications.) If you really want to use a function call instead of a hash lookup, apply this role to the request class: http://git.jrock.us/?p=MooseX-Param-Safe.git;a=blob;f=lib/MooseX/Param/Safe.pm;hb=HEAD Regards,

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

2008-04-06 Thread Jonathan Rockway
rse, the ideal situation is to have an application that never blocks, but that would involve planning on the part of the application developer. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List:

Re: [Catalyst] CatalystSites.org

2008-04-02 Thread Jonathan Rockway
* On Wed, Apr 02 2008, Oleg Pronin wrote: > ti che raspizdilsya po-nemetski, suka ? > > 2008/4/2, Ulf Lenski <[EMAIL PROTECTED]>: > > Hallo Ulrich, > ich habe, dein Einverständnis vorausgesetzt, unsere pspf-app mal auf der > unten genannten Seite veröffentlicht. > http://drs.dife.de

Re: [Catalyst] Re: Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-21 Thread Jonathan Rockway
ou already have. If we don't know what data we have, we can't safely decode it. Is anyone having a problem with decoding things that are already decoded? Or is this only a theoretical problem? Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=

Re: [Catalyst] Catalyst controllers - can they be created without catalyst.pl helper script?

2008-03-20 Thread Jonathan Rockway
u write yourself. If you're not afraid to write Perl, you shouldn't be afraid to read it. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listin

Re: [Catalyst] Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-18 Thread Jonathan Rockway
* On Wed, Mar 19 2008, Jonathan Rockway wrote: > We should not need to check the flag. The incoming data should be > encoded. Then we should decode it. Then we should not try to decode it > again. A key thing I forgot to mention is that "is_utf8" doesn't mean "we

Re: [Catalyst] Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-18 Thread Jonathan Rockway
coming data should be encoded. Then we should decode it. Then we should not try to decode it again. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http:/

Re: [Catalyst] Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-18 Thread Jonathan Rockway
. http://blog.jrock.us/articles/Fuck%20the%20internal%20representation.pod Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/l

Re: [Catalyst] Automatically uri_unescape parameters

2008-03-17 Thread Jonathan Rockway
ay. I don't think this is what he is talking about. If it is, the module he is looking for is URI::Escape. If he's talking about unescaping the querystring, that should be handled by Catalyst and if something is going wrong, a failing test case would be appreciated. Regards, Jonathan R

Re: [Catalyst] Re: [again] die() in an action chain : does not break the chain !

2008-03-15 Thread Jonathan Rockway
see if there is more feedback and then give it a try. If you call it this, people will call fixing bugs in your plugin "solving the halting problem". Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] Session expiry per user

2008-03-14 Thread Jonathan Rockway
return time + 31536000; } else { return $c->NEXT::calculate_extended_session_expires($prev); } } And then $c->session->{remember_me} = 1; $c->calculate_extended_session_expires; Untested. Regards, Jo

Re: [Catalyst] Instant CRUD with DBIC::Schema

2008-03-12 Thread Jonathan Rockway
* On Wed, Mar 12 2008, Zbigniew Lukasiak wrote: > don't need to create wrappers for each table (which would be a cut and > paste excercise). Well, a metaprogramming exercise anyway. Regards, Jonathan Rockway -- print just => another => per

Re: [Catalyst] implementing ajax

2008-03-12 Thread Jonathan Rockway
th eval. Use a parser. (How do you think Perl parses JSON?) It's a code vs. data issue. Yes, evalling code is dangerous. So don't do that. Treat your data as data and you won't have a problem. Regards, Jonathan Rockway -- p

Re: [Catalyst] Catalyst @ Flourish Conference

2008-03-11 Thread Jonathan Rockway
* On Tue, Mar 11 2008, me wrote: > Tue, 11 Mar 2008 03:17:29 -0500 Jonathan Rockway <[EMAIL PROTECTED]> wrote: > >> (Incidentally, this is run by people I went to school that *still >> haven't graduated* even though they started wayyy before me. It's sad.) >

Re: [Catalyst] Catalyst @ Flourish Conference

2008-03-11 Thread Jonathan Rockway
by people I went to school that *still haven't graduated* even though they started wayyy before me. It's sad.) Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/cataly

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

2008-03-10 Thread Jonathan Rockway
when you consider that paying someone to read it to you costs $14_000. What you call "exploiting the community", I call "not living in poverty". Finally, I should mention that Catalyst has supar-sekret docs (perfectly sync'd with even the newest features) that you can read b

Re: [Catalyst] Re: Patch for Catalyst::View::Mason

2008-03-08 Thread Jonathan Rockway
at-thing) returns a value instead of a list. In the interests of TMTOWTDI, you can also say: (add-to-list 'auto-mode-alist '(regexp . mode)) I'm pretty sure Aristotle uses vi, though ;) Regards, Jonathan Rockway ___ List:

Re: [Catalyst] Patch for Catalyst::View::Mason

2008-03-07 Thread Jonathan Rockway
* On Fri, Mar 07 2008, Rick Delaney wrote: > On Mar 07 2008, Jonathan Rockway wrote: >> * On Fri, Mar 07 2008, Matthias Zeichmann wrote: >> > C:V:TT behaves exactly the same way [0] and i suspect its not the only >> > view that does >> > >>

Re: [Catalyst] Patch for Catalyst::View::Mason

2008-03-07 Thread Jonathan Rockway
Views on CPAN with this. (For one thing, NEXT and Moose play together terribly.) Anyone interested in this should go ahead and implement it, though. (*) This is wonderfully non-specific-to-Catalyst, btw. See my "Providers" in App::TemplateServer. Apply a role that adds a process method a

Re: [Catalyst] The home page, the wiki and the mailing list

2008-03-07 Thread Jonathan Rockway
at best 10% of that (along with a lot of "cut-n-paste this untested monkey patch from my blog!111"). There is a finite amount of time in the day, you can spend it programming, or you can spend it inflating your ego. (Or taking flamebait on mailing lists ;) Regards, Jonathan Rockway

Re: [Catalyst] The home page, the wiki and the mailing list

2008-03-07 Thread Jonathan Rockway
"!!! ... > really. And who are these people quoted, I googled one or two of them, > they are not major contributors to big FOSS project and they dont work > for large enterprise, why are they quoted!! This is ignorant. Regards, Jonathan Rockway ___

Re: [Catalyst] Patch for Catalyst::View::Mason

2008-03-07 Thread Jonathan Rockway
f->context->stash->{template} = "$name.$extension"; } Then you can do this: sub action :Path('OH_HAI') { my ($self, $c) = @_; ... $c->view('Whatever')->set_template_name('name-without-extension'); } Then $c->s

Re: [Catalyst] sending a variable to more than one tt2 template

2008-03-07 Thread Jonathan Rockway
($c, 'template2.tt', $vars); The problem with this is "and then what?" I think the original poster really just wants to [% INCLUDE %] things. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys

Re: [Catalyst] Push services with catalyst

2008-03-06 Thread Jonathan Rockway
d, though. Regards, Jonathan Rockway ___ 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] installing authentication modules

2008-03-04 Thread Jonathan Rockway
cation::Store::DBIx::Class > to fix it. > > I am a bit perplexed by the docs about authentication/authorization > modules - which should be installed and which are deprecated. We look forward to your updates to the documentation. Regards, Jonathan Rockway

Re: [Catalyst] utf8 in regexes in Catalyst

2008-03-03 Thread Jonathan Rockway
* On Sun, Mar 02 2008, Jonathan Rockway wrote: > > Correctly decoded data: > > perl -MDevel::Peek -e 'my $data = "ほげ"; utf8::decode($data); Dump($data)' > > > SV = PV(0x72b098) at 0x72e3e0 > REFCNT = 1 > FLAGS = (PADMY,POK,pPOK,UTF8

Re: [Catalyst] Re: utf8 in regexes in Catalyst

2008-03-03 Thread Jonathan Rockway
* On Mon, Mar 03 2008, Matt Lawrence wrote: > See also the PERL_UNICODE environment variable, documented in man perlrun. No, don't do that. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk

Re: [Catalyst] utf8 in regexes in Catalyst

2008-03-02 Thread Jonathan Rockway
oded" string (in PV). IMPORTANT NOTE: THIS DOES NOT ALWAYS RETURN CORRECT RESULTS. If you used ü instead of ほげ, perl can store the data as characters without converting to utf8 (it uses latin1 instead). So if you want to verify that your code is correct, use some non-latin1 data and some latin1

Re: [Catalyst] Session Expiry

2008-03-02 Thread Jonathan Rockway
* On Sun, Mar 02 2008, Ash Berlin wrote: > On 2 Mar 2008, at 03:50, Jonathan Rockway wrote: > >> In the second case, it's just a bug in the Session::Store::Cache store >> that can be fixed with the addition of a backend_expires configuration >> key, probably set t

Re: [Catalyst] Session Expiry

2008-03-02 Thread Jonathan Rockway
* On Sun, Mar 02 2008, Bill Moseley wrote: > On Sat, Mar 01, 2008 at 09:50:10PM -0600, Jonathan Rockway wrote: >> * On Sat, Mar 01 2008, Bill Moseley wrote: >> > Is it expected that the application update the session every request >> > to prevent expiry while a

Re: [Catalyst] Session Expiry

2008-03-01 Thread Jonathan Rockway
iration times, but that can be easily worked around. (Set cache expiration every time you update __expires, or just set it to 2038 and hope Catalyst expires it for you.) Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: htt

Re: [Catalyst] Google Summer of Code

2008-03-01 Thread Jonathan Rockway
* On Sat, Mar 01 2008, J. Shirley wrote: > Take a look at this, and try to get in touch with Eric to set something up: > http://use.perl.org/~Eric+Wilhelm/journal/35813 We discussed this on IRC a bit (#soc). I'm going to mentor someone, but I think we still need project ideas. Regard

Re: [Catalyst] The performance test of 6 leading frameworks

2008-02-29 Thread Jonathan Rockway
rof script/myapp_server.pl \tab -n 1000 http://localhost:3000/slow/page \tGET http://localhost:3000/quit \tdprofpp \trm tmon.out # if you want EOM } Then "make profile". Untested. Regards, Jonathan Rockway ___ L

Re: [Catalyst] File-browser functionality

2008-02-29 Thread Jonathan Rockway
BROWSE on the server filesystem. >> >> I can use the directory plugin in TT but before >> trying this I would ask if any other solutions >> are around. > > In the Catalyst book written by Jonathan Rockway, an example > implements a new Filesystem Model to read and

Re: [Catalyst] multiple schemas per application

2008-02-25 Thread Jonathan Rockway
as many as you want. Regards, Jonathan Rockway ___ 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] contollers being cached.

2008-02-25 Thread Jonathan Rockway
t detects a change in the code. Regards, Jonathan Rockway ___ 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.

Re: [Catalyst] Book

2008-02-25 Thread Jonathan Rockway
> another site that perhaps I am already registered on? It doesn't matter where you buy it from. Royalties to myself and the project are the same either way. If Packt actually ever pays anyone, that is, which I'm beginning to doubt..

Re: [Catalyst] Book

2008-02-25 Thread Jonathan Rockway
o like every book. Some reviewers wanted a book that's readable by people who don't know Perl. My book is not that book. Some reviewers wanted a book that was API documentation instead of tutorials. Again, that's the exact opposite of my book. Regards, Jonathan Rockway __

[Catalyst] More Catalyst slides

2008-02-21 Thread Jonathan Rockway
gards, Jonathan Rockway ___ 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] Config-only components

2008-02-13 Thread Jonathan Rockway
Normally you would have to make a bunch of almost-empty files like: package ...::Controller::Thingies; use base '...::ControllerBase::Foo'; 1; With ilmari's patch, you can just create these classes in a config file instead of on disk. Much quicker. Regards, Jonathan Ro

Re: [Catalyst] Schedule::Cron

2008-02-13 Thread Jonathan Rockway
ourApp::Cron::Daily->new->run; Then run that script from cron. If your cron job needs to be a Catalyst application, it is horribly mis-designed. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] cookies!

2008-02-12 Thread Jonathan Rockway
u want sessions instead of just a value in a cookie, then look at the Catalyst::Plugin::Session framework. Finally, it's extremely difficult to reply to your messages when you top-post. Most people's mail clients can't auto-fix that and as a result they won't bother

Re: [Catalyst] Any plugins to replicate mod_perl ENV values?

2008-02-11 Thread Jonathan Rockway
lugins that populates ENV similarly to how mod_perl did? No, but I think the way to go is something like: package MyApp; sub execute { my $c = shift; local $ENV{FOO} = $c->foo; ... $c->next::method(@_); } Ma

Re: [Catalyst] Re: Sharing a database handle between components

2008-02-10 Thread Jonathan Rockway
* On Sun, Feb 10 2008, Matt S Trout wrote: > On Sun, Feb 10, 2008 at 05:41:28AM -0600, Jonathan Rockway wrote: >> At some point this pattern will be made easier (see Bread::Board on >> CPAN), and perhaps we can write a dbh manager and coerce DBIC to use >> it. > >

Re: [Catalyst] Re: Sharing a database handle between components

2008-02-10 Thread Jonathan Rockway
st ask. At some point this pattern will be made easier (see Bread::Board on CPAN), and perhaps we can write a dbh manager and coerce DBIC to use it. That would be nice-n-clean. (Oh, and we can call it "aspect oriented programming" and convert all the java folks to perl.) In the mean tim

Re: [Catalyst] add components to files generated by C::Helper::Model::DBIC::Schema

2008-02-04 Thread Jonathan Rockway
d. > I didn't find anything about this in the docs. Any help? Well, BEGIN{} blocks run before anything else in the file (other than BEGIN blocks or "use ..." statements). Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Li

Re: [Catalyst] catalyst book

2008-02-01 Thread Jonathan Rockway
an donate money (say, $10) back to TPF. I will probably look into this more seriously in the near future. Right now this is pure fantasy :) Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

Re: [Catalyst] catalyst book

2008-01-31 Thread Jonathan Rockway
yes, and a needed break from staring at my computer screen. Obviously you disagree, and I'm sorry that your needs couldn't be met. If you'd like a book in a different format, I'd be glad to write one for you for $60,000. Doesn't $40 for a paper copy seem more appealing no

Re: [Catalyst] catalyst book

2008-01-31 Thread Jonathan Rockway
ay. Your screen contains emacs and a web browser, the book contains what you're trying to learn. Books are cheaper than bigger LCDs :) Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailma

Re: [Catalyst] catalyst book

2008-01-31 Thread Jonathan Rockway
specifically, this happened to the publisher before my book came out.) Tragedy of the commons; it only takes one person to fuck it up for everyone else. Safari might have it though. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listin

[Catalyst] Code for my book in non-Word form

2008-01-31 Thread Jonathan Rockway
find a typo. If you have a question, though, please don't hesitate to contact me. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-arc

Re: [Catalyst] Malformed class Name & Hidden files

2008-01-30 Thread Jonathan Rockway
ink I applied your patch a while ago, but was asked to revert it. I vote to hack around this in Catalyst until it's fixed upstream. This has gone on long enough. /me puts on his fire suit. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.

Re: [Catalyst] Malformed class Name & Hidden files

2008-01-30 Thread Jonathan Rockway
My question is: > Is there a way I can tell the scripts to ignore hidden files? This issue has come up at least 129387 times in the past. Please read the archives. FWIW, most normal editors delete those files when you save. Regards, Jonathan Rockway __

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Jonathan Rockway
* On Wed, Jan 30 2008, Ian Docherty wrote: > My bad. Heard and understood. (by the way who is RMS?) Google. It. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catal

Re: [Catalyst] index and default actions

2008-01-28 Thread Jonathan Rockway
can't see > another way of doing the home page of site. Nobody mentioned this yet, so I thought I'd reply: sub home_page :Path Args(0) {} Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/c

Re: [Catalyst] Development environments and performance

2008-01-26 Thread Jonathan Rockway
ev server", which is pretty convenient.) Regards, Jonathan Rockway ___ 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] $c->req->body oddity

2008-01-26 Thread Jonathan Rockway
Maybe it would be better to keep it in memory unless Content-Length exceeds a certain length, but the current behavior is consistent and reliable, so I don't see why we should change it. It's really not that confusing. Finally, the "string" that you see in $c->req->

Re: [Catalyst] Debian unstable/testing [ot]

2008-01-25 Thread Jonathan Rockway
t; to suffer the erm .deb-hell? Yeah, we should really do something about Catalyst::Manual. Having the file in two packages is a nightmare for everyone. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co

Re: [Catalyst] Accessing $schema in Model glue class (solved?)

2008-01-25 Thread Jonathan Rockway
behavior should go there. (And yes, relying on load order *is* flaky. That's why this isn't on the CPAN :) Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] installing Catalyst::Plugin::Authentication::Store::LDAP

2008-01-24 Thread Jonathan Rockway
Peter Karman <[EMAIL PROTECTED]> writes: > On 01/24/2008 03:22 PM, Jonathan Rockway wrote: >> Peter Karman <[EMAIL PROTECTED]> writes: >> >>> On 01/24/2008 02:49 PM, Andrew Peebles wrote: >>> >>>> perl -MCPAN -e 'install Cataly

Re: [Catalyst] installing Catalyst::Plugin::Authentication::Store::LDAP

2008-01-24 Thread Jonathan Rockway
abase was generated on Wed, 23 Jan 2008 23:30:57 GMT >> Warning: Cannot install Catalyst::Authentication::Store::LDAP, don't >> know what it is. > > you forgot the ::Plugin part Isn't that deprecated? Regards, Jonathan Rockway ___ Lis

Re: [Catalyst] Accessing $schema in Model glue class (solved?)

2008-01-24 Thread Jonathan Rockway
'll have to fixup the default ResultSet attributes after setup or in ACCEPT_CONTEXT. If "Urbia2->cache" works, though, then I'm wrong :) Let us know; I have a few ideas if what you've written above doesn't work. Regards, Jonathan Rockway _

Re: [Catalyst] Road Map doc complete

2008-01-24 Thread Jonathan Rockway
tevan to add this to his MooseX::Params module, and then we can just apply that role to Catalyst::Request.) Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/cat

Re: white-labelling [Catalyst]

2008-01-24 Thread Jonathan Rockway
r.com' => sub { shift->view('Bar') }, ); sub ACCEPT_CONTEXT { my ($self, $c) = @_; return ($view_for{$c->req->host} || die 'not found')->($c); } 1; Then in your app, you just say: $c->view('TT') and you get the

Re: [Catalyst] LDAP

2008-01-24 Thread Jonathan Rockway
o_db => $c->model('FooDB')->schema, bar_db => $c->model('BarDB')->schema, }; } Then I got a Backend::CleverName whenever I said $c->model('CleverName') inside Catalyst. Hope this helps. Regards, Jonathan Roc

Re: [Catalyst] Hair-pulling over YAML config

2008-01-24 Thread Jonathan Rockway
there a smart way to test for your config file failing to parse? I tend to add a unit test for this (using Test::YAML::Valid). Here's one from Angerwhale: use strict; use warnings; use Test::More tests => 2; use Test::YAML::Valid; ok(-e 'angerwh

Re: [Catalyst] Why no extra attributes on Private actions?

2008-01-22 Thread Jonathan Rockway
give controller via: > > sub auto : Private SSL { 1 } I don't think this is a great idea, but if you insist, feel free to override register_actions. (Personally I would use the ACL plugin to implement the "only dispatchable to if SSL" logic.) Regards, Jonathan Rockway signat

Re: [Catalyst] Automated testing of Captcha?

2008-01-21 Thread Jonathan Rockway
::Simple > sub do_post : Local { > my ($self, $c) = @_; > $c->form( > validate => [['EQUAL_TO',$c->captcha_string]] > ) > } He wanted to get $c->captcha_string from *outside* of the Catalyst app. You don't have $c there. Also, he

Re: [Catalyst] Automated testing of Captcha?

2008-01-21 Thread Jonathan Rockway
::_make_random_word = sub { "HELLO" } Then your captcha will always be "HELLO". Regards, Jonathan Rockway signature.asc Description: This is a digitally signed message part ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: Re[2]: [Catalyst] Debugging Catalyst with Eclipse

2008-01-21 Thread Jonathan Rockway
le = defined $c->req->params->{break}; Enjoy. Regards, Jonathan Rockway signature.asc Description: This is a digitally signed message part ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: Re: [Catalyst] Debugging Catalyst with Eclipse

2008-01-21 Thread Jonathan Rockway
the answer's no, you're wasting your time. It's the same reason we use Perl... there's a lot of syntax to learn, but that little bit of learning saves thousands of hours over the span over your career (compared to, say, Java or PHP). Regards, Jonathan

Re: [Catalyst] Re: REST - like uri design for CRUD

2008-01-20 Thread Jonathan Rockway
eeds the session to get the data from page 1 to page 2. Without a session, I use the old "POST returns the form with hidden fields that is page 1", but i *hate* that technique. So I use the session. (I also use the Flash for "You've added a record successfully!" messa

[Catalyst] Less useless debugging output would be good

2008-01-20 Thread Jonathan Rockway
On Mon, 2008-01-21 at 04:00 +, Matt S Trout wrote: > On Sun, Jan 20, 2008 at 10:36:41AM -0800, Ashley wrote: > > On Jan 19, 2008, at 11:45 PM, Jonathan Rockway wrote: > > >Someone should submit a patch to make debug settable in the Catalyst > > >configuration (and

Re: [Catalyst] Found a simple way to restrain the verbosity of C::C::FormBuilder under debug

2008-01-19 Thread Jonathan Rockway
:) I haven't tried this, but it's a shitty way to solve the problem. Changing a flag in *all* of my form files? No thanks. Someone should submit a patch to make debug settable in the Catalyst configuration (and off by default). Then you can doc-patch that. Regards, Jonathan Rockway

RE: [Catalyst] Documentation on DBIx Class

2008-01-18 Thread Jonathan Rockway
I think the book takes a pretty good approach with DBIx::Class. Chapter 5 really covers the "advanced" stuff, and the rest shows you how to use it in simple CRUD applications. But, kd and I were planning on writing a better tutorial. When he's back from vacation, we'll

Re: [Catalyst] App::TemplateServer

2008-01-18 Thread Jonathan Rockway
On Fri, 2008-01-18 at 02:53 -0600, Jonathan Rockway wrote: > Well, I wrote this application and it's on the CPAN as > App::TemplateServer. You run it like: A few addenda: * perl 5.010 is required * the latest version is 0.04 (freshly uploaded a few minutes ago) * the TD pro

[Catalyst] App::TemplateServer

2008-01-18 Thread Jonathan Rockway
Data) might be useful for testing. Check it out. Any feedback is welcome. Regards, Jonathan Rockway signature.asc Description: This is a digitally signed message part ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/

[Catalyst] new Catalyst::Component::ACCEPT_CONTEXT

2008-01-18 Thread Jonathan Rockway
f you weren't having problems before, it was due to pure luck :) Regards, Jonathan Rockway signature.asc Description: This is a digitally signed message part ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinf

Re: [Catalyst] Help with Cwd Error

2008-01-16 Thread Jonathan Rockway
Andreas' smoker also. I don't know of the fix yet, but I'll reply to this message if I find anything. (The dist in question is PathTools; try downgrading that.) Regards, Jonathan Rockway signature.asc Description: This is a digitally signed message part __

Re: [Catalyst] Development environments and performance

2008-01-16 Thread Jonathan Rockway
database fuckups only affect me, and since we all use different machines, we know that our app is portable and easy to install on production. The only bottleneck is having to write mailing list posts like this one :) Regards, Jonathan Rockway signature.asc Description: This is a digitally signed me

<    1   2   3   >