Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-12-08 Thread Jonathan Rockway
* On Tue, Dec 08 2009, Tomas Doran wrote: > On 8 Dec 2009, at 05:34, Jonathan Rockway wrote: >> Sorry to dig up a very old thread, but I am very behind on email and >> wanted to comment :) > > No problem. Your insight as to why things are they way they are is > useful :) &g

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-12-08 Thread Jonathan Rockway
ke everything work for everyone. (I am experimenting with a new response layer on top of Plack that should prove useful for this sort of thing.) Wow, I can't believe I am defending backcompat. Must be that caffeine powder... Regards, Jonathan Rockway -- print just => another => perl

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-12-08 Thread Jonathan Rockway
ing because this is sometimes done automatically by libraries that are in use. It's confusing because sometimes it's *not* done by the libraries that are in use :) If you're not sure if your library is doing this for you, read the source, or ask someone :) Regards, Jonathan Rockway -

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-12-07 Thread Jonathan Rockway
kcompat severely, a correct solution will be implemented. But for now, trying hard to Do The Right Thing (instead of causing weird web browser errors) is what we're stuck with. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___

Re: [Catalyst] DBI SQLite driver missing after Catalyst update.

2009-08-21 Thread Jonathan Rockway
data is there, and then you can better guess *why* it's there. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailma

Re: [Catalyst] RFC: Makefile warning in catalyst apps

2009-07-30 Thread Jonathan Rockway
> Can we have a reallyreallywanttoinstallplease ? > I also thought --yarly (thanks rafl), --yesinstalldammit, --plztobeintallingz > were > excellent choices. "-iacknowledgethatthistoolisnotabenchmark" -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] New Apress book on Safari Books Online

2009-07-28 Thread Jonathan Rockway
ped off much, either.) 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 archive:

Re: [Catalyst] Authz: How granular to make roles?

2009-07-20 Thread Jonathan Rockway
* On Sun, Jul 19 2009, Jesse Sheidlower wrote: > This is more of a philosophical question about how to handle > authz with roles, but is perhaps OT for Catalyst, I suppose. http://blog.woobling.org/2009/06/users-accounts-identities-and-roles.html -- print just => another => perl => hacker => if $

Re: [Catalyst] New restarter code in Catalyst::Devel 1.14_01

2009-05-11 Thread Jonathan Rockway
the component loading stuff, arguably the most critical part, working correctly yet... but it will soon, as I finally figured it out this morning. :) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ Lis

Re: [Catalyst] Who wants to be rid of the "Unknown Error" w/attributes bug on 5.10?

2009-05-11 Thread Jonathan Rockway
bugs that > were in smartmatch in 5.10.0 because not enough of us tested the dev > releases. Or, you can use Debian, which fixed this bug in its Perl a while ago: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488088 Regards, Jonathan Rockway -- print just => an

Re: [Catalyst] The Netiquette thread (OT)

2009-04-28 Thread Jonathan Rockway
's not 1990 anymore, using email doesn't make you cool. ;) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/list

Re: [Catalyst] Can't seem to use forward or detach. Any special requirements?

2009-04-27 Thread Jonathan Rockway
they are fixed with a quick press of "W w", so there's no need to complain about them.) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo

Re: [Catalyst] Can't seem to use forward or detach. Any special requirements?

2009-04-27 Thread Jonathan Rockway
Let's avoid both, eh? 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 a

Re: [Catalyst] RFC: Sample press release and announcement homepage

2009-04-24 Thread Jonathan Rockway
ore strongly worked, but I toned it down a bit. Still, I figured at > least one person would call me out on one or two bits. I'll mellow it > out if people think I should. Like I said, no need to tone it down. Regards, Jonathan Rockway -- print just => another =&g

Re: [Catalyst] Tutorial for cache?

2009-04-23 Thread Jonathan Rockway
* On Thu, Apr 16 2009, Peter Karman wrote: > I had the same experience and just switched to the File cache plugin > instead. Are you storing big things, i.e. pieces of data bigger than the cache "pages"? If so, fastmmap will silently not store those pieces of data. In general, I find it very fla

Re: [Catalyst] PAR file - can't build it . Prolly documentation is out of date?

2009-04-22 Thread Jonathan Rockway
th the PAR, and easily run them from the deployed PAR. That will alleviate many of my PAR deployment worries. (Ping me on IRC for more details, or see http://github.com/jrockway/moosex-runnable ) Regards, Jonathan Rockway -- print just =&g

Re: [Catalyst] General Web- and OO-question

2009-03-29 Thread Jonathan Rockway
be9439a8af75b9d455/lib/MooseX/PartialObject.pm Patches welcome. I hacked this together at OSCON last year, but haven't actually used it. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$"

Re: [Catalyst] how to authenticate using database users

2009-03-20 Thread Jonathan Rockway
nd querying data is a waste of effort. It's like writing all your software in CPU microcode, simply because it's the lowest level possible. You *can* do this, but why not use something higher-level? Everything is easier that way. Regards, Jonathan Rockway -- print

Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Jonathan Rockway
So far, I haven't found anything that does this for my tools of choice: > DBIx::Class + > Dojo We use JSORB for forms. http://search.cpan.org/~stevan/JSORB-0.01/ Obviously, you are responsible for writing the JSORB endpoints, but that's just a Simple Matter Of Metaprogramming (a

Re: [Catalyst] Models and inflating

2009-02-23 Thread Jonathan Rockway
een the low-level DBIC stuff, and high-level operations.) If your classes depend on the structure of DBIC results, then the code needs to go in your schema classes. That is how everyone does it. (Your "full_name" example is just the sort of thing that you would keep inside DBIC.) Rega

Re: [Catalyst] Models and inflating

2009-02-23 Thread Jonathan Rockway
27;). That's all you should use it for. (*) BTW, the behavior you described does work intentionally, for cases when you need the objects in Catalyst to be different than with plain DBIC. I think it's a bad idea to use this "feature" except in very special cases -- of which "full

Re: [Catalyst] Maybe there is a need for some speedups of 'config' method ?

2009-02-23 Thread Jonathan Rockway
the patch will be harmful, though, so if there is one we might as well apply it. But it's a lot easier to not misuse config than it is to patch Catalyst to make the misuse faster. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" _

Re: [Catalyst] Maybe there is a need for some speedups of 'config' method ?

2009-02-22 Thread Jonathan Rockway
fixed for everyone! That is what free software is all about. 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/c

Re: [Catalyst] Maybe there is a need for some speedups of 'config' method ?

2009-02-21 Thread Jonathan Rockway
ur patch for this. FWIW, I usually only call $c->config at app startup time; I read it and pass values in it as arguments to other classes that need configuration information. I'm pretty sure this is the intended use; you shouldn't be looking in it duri

Re: [Catalyst] Requirements for Catalyst

2009-02-21 Thread Jonathan Rockway
* On Sat, Feb 21 2009, Ashley wrote: > On Feb 21, 2009, at 3:04 PM, Jonathan Rockway wrote: >> We run lots of Catalyst apps on the smallest Linode. I think they >> give >> us something like 340M of RAM. This is enough. >> >> I use a 512M Slicehost for jrock.us

Re: [Catalyst] Requirements for Catalyst

2009-02-21 Thread Jonathan Rockway
d more memory easily. Buy the small one, and if you need more memory, upgrade. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-

Re: [Catalyst] Re: decoding in core

2009-02-20 Thread Jonathan Rockway
* On Fri, Feb 20 2009, Jonathan Rockway wrote: > Braindump follows. Oh yeah, one other thing. IDNs will need to be decoded/encoded, probably. ($c->req->host should contain perl characters, but links should probably be punycoded. Fun!) -- print just => another => perl

Re: [Catalyst] Re: decoding in core

2009-02-20 Thread Jonathan Rockway
espite having written volumes of documentation about this. Wrong.) Anyway, I just wanted to get this out of my head and onto paper, for someone else to look at and perhaps implement. :) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] Malformed requests may break $c->req->uri_for()

2009-02-20 Thread Jonathan Rockway
(If the security scanner complains about the escaped form, it's dumb. It's not a security problem.) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo

Re: [Catalyst] Accessing a Controller from ~/script

2009-02-19 Thread Jonathan Rockway
* On Thu, Feb 19 2009, Dermot wrote: > # MyApp/lib/Model/Adaptor.pm > package MyApp::Model::Adaptor; This is a poor choice in naming -- you should name it for its function ("FooImporter") instead of the Catalyst mechanics it uses. -- print just => another => perl => hacker => if $,=$"

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-19 Thread Jonathan Rockway
del of the problem you want to solve. I know everyone wants easy answers and wants to avoid thinking... but if that's you, you've chosen the wrong field. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$"

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-17 Thread Jonathan Rockway
er... not at all... 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 archive: http://www.mai

Re: [Catalyst] Removing

2009-02-10 Thread Jonathan Rockway
http://localhost:3000/quit [2] $ nytprofhtml < read profile in your web browser> [2] sub quit :Global { exit(0) }, so that NYTProf can exit cleanly Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$"

Re: [Catalyst] [PATCH] [RFC] Seed the RNG in Catalyst::Engine::FastCGI

2009-02-03 Thread Jonathan Rockway
* On Mon, Feb 02 2009, Andrew Rodland wrote: > Due to the way FastCGI does its business, when running as an "external" > FastCGI, the perl interpreter and the Catalyst app are initialized before the > FCGI process manager does its forking. Since modern versions of Perl seed > rand() "eagerly" on st

Re: [Catalyst] Objects and persistence

2009-01-30 Thread Jonathan Rockway
(with BDB replication), and saves us the tedium of dealing with a RDBMS (and ORM) that we don't even need. YMMV. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Re: Detach won't detach?

2009-01-29 Thread Jonathan Rockway
this way, you are crazy... and not in a good way. Aristotle's code is the idiomatically correct version, so that's what you should aim for in this case and in general. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$"

Re: [Catalyst] Re: Detach won't detach?

2009-01-27 Thread Jonathan Rockway
* On Tue, Jan 27 2009, pie3...@comcast.net wrote: > Why not > > sub auto :Private { > my $c = pop; > return user_logged_in || $c->res->redirect( ... ); > } Because now the correctness of your application depends on undocumented behavior (the return value of $c->res->redirect).

Re: [Catalyst] Re: Detach won't detach?

2009-01-27 Thread Jonathan Rockway
to :Private { my $c = pop; return user_logged_in || $c->redirect( ... ) || 0; } Now I have that much more disk space free for pr0n! Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] London Perl tutorials - 25th & 26th February 2009 - day 2 includes Cat+DBIC

2009-01-23 Thread Jonathan Rockway
pen-enrollment Perl (and Catalyst) classes like this. We don't have any planned at the moment, but that would change if I received e-mails indicating interest :) So anyway, if you are interested, e-mail me off list, and we will see if we can set something up. Regards, Jonathan Rockway -- pr

Re: [Catalyst] how to confirm before deleting

2009-01-21 Thread Jonathan Rockway
... and if the user has Javascript disabled? Please enable Javascript. It's Two Thousand Fucking Nine. Seriously. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Li

Re: [Catalyst] mod_perl converts latin1 to utf8 !?

2008-12-22 Thread Jonathan Rockway
part. Take a look at Catalyst::Plugin::Unicode (specifically finalize_body, I think), and change the Encode::encode('utf-8', ...) to Encode::encode('iso-8859-1', ...) I bet this will solve your problem, but if not, let us know what code you tried and where, and we will try to

[Catalyst] BerkeleyDB session storage

2008-12-11 Thread Jonathan Rockway
the action.) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" http://blog.jrock.us/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable arch

Re: [Catalyst] OT: Use the CPAN, Luke?

2008-11-30 Thread Jonathan Rockway
* On Sun, Nov 30 2008, Toby Corkindale wrote: > If the automated install fails, people are likely to say "bah, this > Perl thing sucks, let's go for that similar app written in > PHP/Java/Ruby instead - at least it's simple to install!" Why do you care about what other people do? If these people

Re: [Catalyst] Mapping CGI scripts URLs

2008-11-21 Thread Jonathan Rockway
x27;t have to test two sets of URLs (or the potentially odd interactions with uri_for and whatnot). Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: ht

Re: [Catalyst] One App, multiple databases

2008-11-20 Thread Jonathan Rockway
ht thing when you say $c->model('UsersDatabase'). This is much easier to reason about. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists

Re: [Catalyst] Very Simple Question

2008-11-18 Thread Jonathan Rockway
s::Inspector to your debugging arsenal. You can find what methods you can call on an object with code like: use Class::Inspector; say join "\n", @{Class::Inspector->methods(ref $object, 'public')}; I also recommend that you try out Devel::REPL if you haven't al

Re: [Catalyst] [META] Advent calendar

2008-11-04 Thread Jonathan Rockway
* On Tue, Nov 04 2008, Dermot wrote: > Is there going to be an advent calendar for this year? Sure, why not? -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/

Re: [Catalyst] Catalyst, MVCs and other MVCs

2008-11-04 Thread Jonathan Rockway
you anything valuable. What's good for quickly hacking something together in five minutes is rarely good for an application that needs to be maintained over many years. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] How to detect cancelled requests?

2008-10-29 Thread Jonathan Rockway
ying to get HTML passed to IIS in a > non-buffered manner -- it all seems buffered right now You are using $c->res->write for this, right? Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" _

Re: [Catalyst] ANNOUNCE: SimpleDB - Auth configuration made easy

2008-10-29 Thread Jonathan Rockway
editor and remove the warning. Problem solved! You didn't even need to post to a mailing list! Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinf

Re: [Catalyst] Success stories please

2008-10-05 Thread Jonathan Rockway
/detail/3001 It's called "People for Geeks", i.e. "how to be nice to people". If it's possible to die from an irony attack, you might not be seeing much more of me :) Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$"

Re: [Catalyst] Re: CSRF

2008-10-01 Thread Jonathan Rockway
do. You can then validate these with an ActionClass. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listi

Re: [Catalyst] tips for troubleshooting/QAing Unicode

2008-09-30 Thread Jonathan Rockway
ill make it clear when you have bytes instead of characters. Be sure to test with all sorts of input -- I always use characters from ASCII ("foo"), Latin ("ÿ"), and Japanese ("ほげ"). If your app gets those three right, it is probably OK. Regards, Jonathan Ro

Re: [Catalyst] #catalyst

2008-09-13 Thread Jonathan Rockway
; bane for my home machine is not eternal and can be released soon. You're unbanned now. In the future, just /msg an op (usually mst) and they will take care of it (especially if it's because your client malfunctioned). Regards, Jonathan Rockway -- print just =>

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2008-09-04 Thread Jonathan Rockway
est to the database just for > the > session and flash stuff is inacceptable. If your app is really slowed by the number of queries to load session/flash, use this: http://git.jrock.us/?p=Catalyst-Plugin-Session-HMAC.git;a=blob;f=lib/Catalyst/Plugin/

Re: [Catalyst] Catalyst::Response - send a file

2008-08-19 Thread Jonathan Rockway
. So what exactly are you doing? 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 arch

Re: [Catalyst] Catalyst::*::REST and Javascript

2008-08-19 Thread Jonathan Rockway
EST. But as you can see, the URL scheme is irrelevant when determining what is and is not RESTful. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://l

Re: [Catalyst] catalyst start-up

2008-08-18 Thread Jonathan Rockway
* On Sun, Aug 17 2008, Matt S Trout wrote: > That makes no sense. > > How does restarting other processes have any effect at all? Locking? Not that I've ever seen this for sessions or cache, but it could make sense if the app is doing its own locking of some shared resource. Reg

Re: [Catalyst] Debug with FCGI

2008-08-01 Thread Jonathan Rockway
* On Fri, Aug 01 2008, Jonathan Rockway wrote: > * On Fri, Aug 01 2008, Angel Kolev wrote: >> Doesn`t work too. All debug output goes to apache log. I tryed with -e >> option - same result. > > Use the "keep error" option, -e. Hmm, I should read the whole post bef

Re: [Catalyst] Debug with FCGI

2008-08-01 Thread Jonathan Rockway
* On Fri, Aug 01 2008, Angel Kolev wrote: > Doesn`t work too. All debug output goes to apache log. I tryed with -e > option - same result. Use the "keep error" option, -e. Regards, Jonathan Rockway -- print just => another =>

Re: [Catalyst] Squatting::On::Catalyst

2008-08-01 Thread Jonathan Rockway
ecord.pm;hb=HEAD Anyway, it turns out that this is a simple problem, but just needs some tweaking for maximum enjoyment and ease of use. (We've gotten rid of TT in the "production" version, for example, because the fragments are too hard for designers to work

Re: [Catalyst] auto re-load of application yaml config file?

2008-07-24 Thread Jonathan Rockway
* On Thu, Jul 24 2008, Pedro Melo wrote: > And yes, the tradeoff is mod_perl, which is more complex than FCGI. How does Perlbal require mod_perl? I would just run the application's own HTTP server behind Perlbal. Not very complex at all. -- print just => another => perl => hacker => if $,=$"

Re: [Catalyst] Preventing simultaneous logins

2008-07-23 Thread Jonathan Rockway
t think the file-based session stores provide this much flexibility, but you could probably hack something similar if you really needed to. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst

Re: [Catalyst] auto re-load of application yaml config file?

2008-07-22 Thread Jonathan Rockway
to engineer something with a compromise that meets your needs. For example, checking the database every time you read a variable will mean the config settings update quickly, but you also slow your app way down. YMMV and all that ;) Regards, Jonathan Rockway -- print just => another =

Re: [Catalyst] Re: javascript in Catalyst using Template Toolkit

2008-07-19 Thread Jonathan Rockway
certainly going > on here that you do not actually want. Yes, thank you for pointing that out. The above config does not solve the more-above problems. If you want to [% INCLUDE your.javascript %] then that's fine. But if you want to serve statically, then this only works because of some wei

Re: [Catalyst] javascript in Catalyst using Template Toolkit

2008-07-18 Thread Jonathan Rockway
es "/multifile.js", nothing is going to happen when that URL is visited. If you use Static::Simple, put the javascript in /static, and link via $c->uri_for('/static/multifile.js'), then something will happen. Someone else suggested linking to '/lib/site/multifile.js&

Re: [Catalyst] XPath, DOM problem

2008-07-08 Thread Jonathan Rockway
> USE xpath = XML.XPath('config/xml/hele_de_tree.xml'); # ERROR > #USE dom = XML.DOM; > #prod_tree = dom.parse('config/xml/sitemap.xml'); # ERROR > > -%] BTW, XML::LibXML is a much nicer library for doing anything related to XML in Perl. Using anything else is slightl

Re: [Catalyst] connecting to more than one database

2008-07-03 Thread Jonathan Rockway
That's why the schema is a library. As for tables that aren't relevant to a given app, the answer is simple; just don't use those when you don't need them. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] connecting to more than one database

2008-07-03 Thread Jonathan Rockway
red procedures to the first database that returns the tables in the second database. DBIC will probably deal with those, at least for reads. But that's not really optimal; just make everything one database. Regards, Jonathan Rockway -- prin

Re: [Catalyst] use base or use parent?

2008-06-24 Thread Jonathan Rockway
;formbuilder, not $c->form. You might enjoy this page: http://dev.catalyst.perl.org/new-wiki/thebookerrata Anyway, I'm not sure why you would think that "use base 'Catalyst::Controller::FormBuilder'" in a controller would add methods to $c, so I won't even ask.

Re: [Catalyst] Very long request time weirdness

2008-06-24 Thread Jonathan Rockway
ody is huge, this further points towards IO being a problem. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listi

Re: [Catalyst] Capture page on server?

2008-06-24 Thread Jonathan Rockway
gibberish. Use Angerwhale::Plugin::Cache instead. It solves this problem. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.u

[Catalyst] Re: [Catalyst-dev] can't upgrade the scripts

2008-06-23 Thread Jonathan Rockway
y app. so I tried the next; > > $ catalyst.pl -force -scripts MyApp/trunk > ... > ... > > > how can I upgrade the scripts? > > has anyone already answered(or solved) for this? if so, let me know. I would just symlink MyApp/MyApp to MyApp/trunk, then cd MyApp and run 'ca

Re: [Catalyst] Capture page on server?

2008-06-23 Thread Jonathan Rockway
nd upon your app, though. Calling a method is simpler, faster, and cleaner than running an entire request and capturing the result, so try to structure your app in such a way as to allow that. Regards, Jonathan Rockway -- print just => another => pe

Re: [Catalyst] Running java inside Catalyst

2008-06-22 Thread Jonathan Rockway
that will not a problem to use Inline::* inside Catalyst. You do know that Inline::Java uses system() to call java, right? Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.sc

Re: [Catalyst] Re: Private Chained Actions?

2008-06-22 Thread Jonathan Rockway
* On Fri, Jun 20 2008, Aristotle Pagaltzis wrote: > * Jonathan Rockway <[EMAIL PROTECTED]> [2008-06-20 22:20]: >> Yeah, that's ugly. What you really want are method modifiers: >> >> package MyApp::Controller::Foo; >> use Moose; >&g

Re: [Catalyst] Re: Private Chained Actions?

2008-06-20 Thread Jonathan Rockway
; }; sub main_page :Path Args(0) { my ($self, $c) = @_; $self->hello($c); } sub hello { my ($self, $c) = @_; $c->res->body('hello! setup is'. $c->stash->{setup}); } before hello => sub { my ($self, $c) = @_;

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

2008-06-13 Thread Jonathan Rockway
* On Fri, Jun 13 2008, Jonathan Tweed wrote: > On 13 Jun 2008, at 13:51, Jonathan Rockway wrote: > >> It all boils down to this. Catalyst is the only really useful Perl >> web >> framework. Perl is the only really useful language for writing web >> application

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

2008-06-13 Thread Jonathan Rockway
people are going to use Catalyst regardless of whether the background color on the website is #83f8e2 or #85f9ff. Let's spend our collective efforts doing something other than arguing about colors. Regards, Jonathan Rockway -- print just =>

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

2008-06-12 Thread Jonathan Rockway
8, at 07:23, Aristotle Pagaltzis wrote: >>>> * Matt S Trout <[EMAIL PROTECTED]> [2008-06-11 22:05]: Just so you know, it's completely impossible to follow the flow of the discussion when you top-post on top of 5 other mails. If you comment inline, and edit out the posts that you aren&

Re: [Catalyst] Authorization ACL: future plans?

2008-06-06 Thread Jonathan Rockway
e. > > By the way in case you are wondering, I am looking to write a CMS that > sits on top of Catalyst. Write the CMS first, then factor out the access control code. If you do it the other way around, it probably won't turn out the way you want. (Nothing is worse than writing a library

Re: [Catalyst] Users hierarchy

2008-06-06 Thread Jonathan Rockway
return "undef" or "1" as false or true, but other libraries use other values ("" and "hey, it worked!", for example). Additionally, 0 is "==" to a variety of true values, including the string "0 but true". So just use "!$boolean&qu

Re: [Catalyst] Users hierarchy

2008-06-04 Thread Jonathan Rockway
* On Tue, Jun 03 2008, [EMAIL PROTECTED] wrote: > while ($found==false && $ancestor) { Perl does not have a "false" operator. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" __

Re: [Catalyst] Users hierarchy

2008-06-04 Thread Jonathan Rockway
his database... > What about DBIx::Class::Tree? I've used this for a user hierarchy, actually. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listi

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual5.7012 released to CPAN

2008-06-03 Thread Jonathan Rockway
useful only visually, but not all the programmers can see, >> so from this point of view, other configuration modules are better. > > Does that mean it's impossible to code python if you are blind? Theoretically you can use a Braille TTY. Regards, Jonathan Rockway -- print ju

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-29 Thread Jonathan Rockway
ad?".) Also, if someone wants to write a module to add dependencies to Makefile.PLs, I would be happy to use it. This: http://git.jrock.us/?p=elisp.git;a=blob;f=_local/cperl-project.el;hb=HEAD needs to die very soon. I would rather have PPI (via Stylish) deal with it. > You missed '

Re: [Catalyst] TT output to a new browser window or tab

2008-05-24 Thread Jonathan Rockway
ed report. However, I'm not sure that you can do this in the day and age of popup blockers. YMMV. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo

Re: [Catalyst] UTF-8 Conversion on the fly

2008-05-23 Thread Jonathan Rockway
my $octets = Encode::encode('utf-8', Encode::decode($stored_encoding, $stored_webpage)); Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Userpasswords

2008-05-22 Thread Jonathan Rockway
dLine; chomp(my $password = Term::ReadLine->new($0)->readline('Password> ')); print DBIx::Class::EncodedColumn::Crypt::Eksblowfish::Bcrypt-> make_encode_sub->($password), "\n"; Yes, the password is echoed. Regards, Jonathan Roc

Re: [Catalyst] Catalyst using fast CGI

2008-05-22 Thread Jonathan Rockway
mod_fastcgi), but it seems odd to not have a directive like "FastCgiServer" somewhere. I guess the AddHandler could be doing that, but since it's not working, probably not. http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiServer Regards, Jonathan Roc

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

2008-05-16 Thread Jonathan Rockway
> -unshift(@args, $path); > + > > unless (defined $path && $path =~ s!^/!!) { # in-place strip > my $namespace = $c->namespace; OK, but it looks like you forgot the tests. :) However, I think the patch is sound. Please check that things like

Re: [Catalyst] FYI: Contracting possibilities

2008-05-13 Thread Jonathan Rockway
* On Tue, May 13 2008, Ian Docherty wrote: > Ian Docherty always feels people who refer to themselves in the third > person are being pretentious, as in http://zenshadow.vox.com/profile/ > ;-) Any English style guide will tell you to write a self-introduction like this. Regards, Jonatha

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-11 Thread Jonathan Rockway
ke installdeps" > - Implement setting up the initial database state, perhaps through > $schema->deploy(), or a SQL script, or another method DBICx::Deploy > - run the app's test suite and report if tests succeed or fail "make tes

Re: [Catalyst] Suggestions for CatalystX::Installer

2008-05-11 Thread Jonathan Rockway
Just a meta comment. I think you would get more attention from a subject like "Looking for suggestions for CatalystX::Installer". The current subject implies that you are making suggestions instead of soliciting them. As a result, suggestion-makers may be ignoring your post. Regards

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

2008-05-11 Thread Jonathan Rockway
7;s just a (documented) method: =head2 session_store_dbic_class Return the L class name to be passed to C<< $c->model >>. Defaults to C. =cut sub session_store_dbic_class { shift->config->{session}->{dbic_class} || 'DBIC::Session';

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

2008-05-11 Thread Jonathan Rockway
k.pm. Chapter 7 is just an extension of Chapter 4, which for some reason isn't included in the tarball. I will probably update that in the next few days. It makes sense to me, but not anyone else :) FWIW, later on in the book I call the model DBIC for the other applications; I like this sty

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

2008-05-10 Thread Jonathan Rockway
way. If you are willing to accept that it has syntax, it will make your life easier. If you religiously believe that configuration files don't have syntax, then it's not the syntax for you :) Regards, Jonathan Rockway -- print just => another => perl => hacke

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

2008-05-10 Thread Jonathan Rockway
Schema model will create all the classes under the root namespace from the result source classes in the DBIC schema. However, I think the namespace in the book is AddressDB, not DBIC. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___

Re: [Catalyst] Invalid session ids being generated

2008-05-10 Thread Jonathan Rockway
rything > back to the way it was I tried just downgrading > Catalyst::Plugin::Session and it worked! Woohoo! Both of these sound like fragile workarounds. If you guys can do a bit more digging, I would appreciate it. It would be good to actually fix the problems, after all. Regards, Jonathan R

Re: [Catalyst] FastCGI: incomplete headers (0 bytes) received from server

2008-05-06 Thread Jonathan Rockway
ehave differently. Probably time to add some $c->log->debug messages to your app in key places. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo

  1   2   3   >