Re: [Catalyst] UTF8 and content length

2016-07-15 Thread Aristotle Pagaltzis
he correct answer. The clean way to do this is to simply encode the data before you put it in the body: use utf8; my $json_text = '{"id":1, "msg":"В Питере пить"}'; $c->response->content_type('application/json; charset=utf-8');

Re: [Catalyst] An MVC logic separation conundrum

2016-03-10 Thread Aristotle Pagaltzis
tantly generate_ical_data itself. Callbacks will be quite a bit more clunky than simple values there. Like I said, it depends on the exact specifics. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Li

Re: [Catalyst] An MVC logic separation conundrum

2016-03-10 Thread Aristotle Pagaltzis
hrough the arguments. Using a closure gives you control over what parameters are passed in what order, which doesn’t have to be identical to the signature of the Catalyst method you wind up calling. This the same principle as the reason for having the controller, model and view be separate fro

Re: [Catalyst] An MVC logic separation conundrum

2016-03-10 Thread Aristotle Pagaltzis
sily hurt testability and understandability of the code, so it depends on the exact specifics of the case. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bi

Re: [Catalyst] catalyst psgi behind 2 apache reverse proxies

2015-07-08 Thread Aristotle Pagaltzis
atever proxy 1 has put there). (No idea if that’s possible or how.) I can’t say what exactly will work but something along these lines would be my approach. > thanks for hints! > cheers, bernhard Hope this helps. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___

Re: [Catalyst] How to get default()-like behavior outside of the Root controller

2015-02-10 Thread Aristotle Pagaltzis
t` action that applies only to it. If the parts of your app are not closely related, this will be a more natural structure. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.

Re: [Catalyst] Please help to figure out with URL's

2014-12-04 Thread Aristotle Pagaltzis
unning these problems. But that code is still broken, and broken twice, nonetheless. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/

Re: [Catalyst] Log4Perl and Catalyst startup routing table

2014-11-13 Thread Aristotle Pagaltzis
e answer to that question automatically. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ 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] Log4Perl and Catalyst startup routing table

2014-11-12 Thread Aristotle Pagaltzis
* Adam Witney [2014-11-12 13:55]: > I have Log4Perl controlling the logging in my Catalyst app, but > I can't seem to get the debug information from the normal Catalyst > startup (routing table, Loaded plugins etc) included into the Log4Perl > output. > > Is it possible to log this output through

Re: [Catalyst] Catalyst Unicode

2014-01-31 Thread Aristotle Pagaltzis
string, because the UTF-8 encoded representation of “ü” is 0xC3 0xBC and it doesn’t matter whether you store that in a UTF8=0 or UTF8=1 string, it’s still the sequence 0xC3 0xBC.) Christian: This also affects you: you should not be looking at `is_utf8`. Instead you should be looking at whether `lengt

[Catalyst] Re: Can't detach from root / create action object

2013-11-28 Thread Aristotle Pagaltzis
ate/index') ); It’s a mouthful so if you need it lots, stick a method in your application class à la sub path_action { my $c = shift; $c->dispatcher->get_action_by_path( @_ ); } so you can then say $c->detach( $c->path_action('/complianceupdate/

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

2013-11-26 Thread Aristotle Pagaltzis
-- *AUTOLOAD=*_;sub _{s/..([^:]*)$/()[print$1,(",$\/"," ")[defined wantarray]]/e;$_} &Just->another->Perl->hack; #Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.c

[Catalyst] Re: Response traits.

2013-10-31 Thread Aristotle Pagaltzis
* Bill Moseley [2013-10-31 00:40]: > What is the recommended way to apply a Response trait? Uhm, how about applying it to your response class? CatalystX::RoleApplicator I guess? Not sure I get the question though. -- Aristotle Pagaltzis // <http://plasmastu

[Catalyst] Re: New design

2013-07-23 Thread Aristotle Pagaltzis
age is the easy part, making something that works for the entire site and is implemented on the entire site is what’s necessary and what has yet to happen, I think ever since Catalyst has existed. Design isn’t just putting a coat of paint on it… Regards, -- Aristotle Pagaltzis // <http

[Catalyst] Re: New Catalyst Release on CPAN!

2013-06-13 Thread Aristotle Pagaltzis
rather than being beholden to being told what will or won’t work. You will find that some things can be done and some things can’t be done, and that there is no contradiction in that. There are no gurus.) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

[Catalyst] Re: New Catalyst Release on CPAN!

2013-06-12 Thread Aristotle Pagaltzis
* John Napiorkowski [2013-06-13 02:05]: > Today we released 'SicilianButtercup' the most recent version of > Catalyst to CPAN! I get to drop a couple more non-core extensions, hooray! Thanks. Regards, -- Aristotle Pagaltzis // <htt

[Catalyst] Re: Chained and exceptions

2013-05-14 Thread Aristotle Pagaltzis
ilerplate though. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@l

[Catalyst] Re: Chained and exceptions

2013-05-13 Thread Aristotle Pagaltzis
warning in old apps when an exception gets swallowed? Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: ht

[Catalyst] Re: Chained and exceptions

2013-05-10 Thread Aristotle Pagaltzis
* Bill Moseley [2013-05-10 17:15]: > What would the developers think of deprecating this behavior (for the > few that might actually be relying on this) and issue a warning if > a config option is not set that fixes the issue? I’ll second that, I’d love to drop some more unbreak-me boilerplate.

[Catalyst] Re: Chained and exceptions

2013-05-09 Thread Aristotle Pagaltzis
* Bill Moseley [2013-05-09 22:50]: > Tricks for applying it globally? package MyApp::Controller; use parent 'Catalyst::Controller'; __PACKAGE__->config( action_roles => ['DetachOnDie'] ); 1; Then inherit that instead of Catalyst::Controller in your controllers. Pre-5.90013 you n

[Catalyst] Re: Chained and exceptions

2013-05-09 Thread Aristotle Pagaltzis
* Bill Moseley [2013-05-09 15:30]: > What's the reasoning that chained actions continue to run after an > earlier exception? Seems like an accident of the design to me, borderline bug. If like me you don’t like it, Catalyst::ActionRole::DetachOnDie __

[Catalyst] Thanks! (was: [ANNOUNCE] Catalyst-Runtime 5.90030)

2013-04-12 Thread Aristotle Pagaltzis
#x27;vhosts'}{'application'} ); } Much better!! So, so, so much, much, much better! Just as it should have been (able to be) from the start, that is how it is now. > - Added cpanfile as a way to notice we are a dev checkout. Callay! (You don’t want to see the hack I ha

[Catalyst] Re: Progress bar

2012-12-24 Thread Aristotle Pagaltzis
* Bill Moseley [2012-10-22 00:50]: > So, when running under Starman the uploads are buffered before chunked > to Catalyst, which means the progress bar data isn't updated until the > upload has completed. This renders the upload progress bar pretty > useless with Starman. > > The progress bar work

[Catalyst] Re: Advent 2012 is launched!

2012-12-11 Thread Aristotle Pagaltzis
* John Napiorkowski [2012-12-06 15:25]: > http://www.catalystframework.org/calendar Weird newsfeed. Today (11th) it lists the entries from 16th thru 20th. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/

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

2012-12-05 Thread Aristotle Pagaltzis
n.) See `expose_methods` in the Catalyst::View::TT docs. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive

[Catalyst] Re: prepare_body_chunk in Catalyst 5.9

2012-07-14 Thread Aristotle Pagaltzis
* Peter Flanigan [2012-07-14 19:00]: > On 12/07/12 21:42, Eric Wright wrote: > > Looking into this further - in the the source for Catalyst I see > > that the prepare_body statement has been moved to the Request object > > removing the ability to hook into this event via the Plugin > > architectur

[Catalyst] Re: Catalyst::ActionRole::RequireSSL under development server

2012-04-18 Thread Aristotle Pagaltzis
* Rippl, Steve [2012-04-19 00:45]: > Anyone know what I should be testing for now? When I query > $c->engine_class I get Catalyst::Engine whether I'm running > under the development server or fastcgi. Why not simply `$c->debug`? ___ List: Catalyst@list

[Catalyst] Re: New catalystframework.org

2012-03-21 Thread Aristotle Pagaltzis
AN. And none of them translate to readily recognisable iconography (e.g. for the favicon), not like that one. If only I had made my wishlist MetaCPAN patch soon enough to be eligible to vote now… :-( Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

[Catalyst] Re: RESTful response codes.

2012-02-23 Thread Aristotle Pagaltzis
the user you asked for, but I was not able to look > up their LDAP id because the server was down. Hope you don't mind the > omission." }. That's a scary road to head down, no? That’s even worse than the suggestion above, it’s plain broken. Regards, -- Aristotle Pagaltzis //

[Catalyst] Re: Fix for content-length issue introduced with Catalyst 5.8.x

2012-02-22 Thread Aristotle Pagaltzis
things that the plugin will do for you, and is the minimum you need to get your code going again. But it is only one of the things the plugin does, and you should fix all of your issues. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

[Catalyst] Re: Running Catalyst apps with start_server

2012-01-26 Thread Aristotle Pagaltzis
never changes. That would allow forked Perl programs to not inevitably slowly grow unshared over time, just as C programs don’t. But I understood it to be a non-trivial undertaking (much though a feasible one). Maybe someday perl will be implemented

[Catalyst] Re: Running a Cat app with HTTP::Prefork

2012-01-14 Thread Aristotle Pagaltzis
any of the things you would’ve used Cat plugins for before, which are both simpler and more flexible. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bi

[Catalyst] Re: Double encoded UTF in config and string constants

2011-11-05 Thread Aristotle Pagaltzis
ain encoded text afterwards. If you want the decoded text, you have to decode the string, not upgrade it. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

[Catalyst] Re: Session duplicate key constraints on concurrent requests

2011-10-07 Thread Aristotle Pagaltzis
* Tobias Kremer [2011-10-07 15:00]: > I've written about this issue a couple of times in the past and it > seems that this still hasn't been fixed. Maybe the answer is mu. Why use a session at all? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http:/

[Catalyst] Re: FormFu missing Moose::Role

2011-09-12 Thread Aristotle Pagaltzis
he set of distros it has to install, for you, automatically, by itself. Don’t try to manually do the dependency solver’s work for it. You can only do a worse job of it. -- *AUTOLOAD=*_;sub _{s/::([^:]*)$/print$1,(",$\/"," ")[defined wantarray]/e;chop;$_} &Just->anoth

[Catalyst] Re: Multiple applications (some cat based) on the same server

2011-08-27 Thread Aristotle Pagaltzis
* Peter Edwards [2011-08-27 09:40]: > On 27 August 2011 08:07, Aristotle Pagaltzis wrote: > > If they all have Plack integration it’s trivially easy, ^ That should read PSGI, sorry. > > something like > > >

[Catalyst] Re: Multiple applications (some cat based) on the same server

2011-08-27 Thread Aristotle Pagaltzis
* Roderick A. Anderson [2011-08-26 01:40]: > I'm wondering how difficult (or if even possible) it is to have > several applications, with two or more being cat based, running > on the same httpd (Apache) server? If they all have Plack integration it’s trivially easy, something like use Plack

[Catalyst] Re: TT2 multiple subtemplates

2011-08-11 Thread Aristotle Pagaltzis
ntent in one template file, but you can break it down into smaller pieces of content that the wrapper template can layout freely. -- *AUTOLOAD=*_;sub _{s/::([^:]*)$/print$1,(",$\/"," ")[defined wantarray]/e;chop;$_} &Just->another->Perl->hack; #Aristotle Pagaltzis

[Catalyst] Re: Actions for asserting relationships

2011-07-20 Thread Aristotle Pagaltzis
ationship already exists? > I'm not sure it's important that there's a distinction if only > need to assert that the relationship exists. But, a 201 really > implies that the resource was created. If you follow the above model this answers itself. You send 20

[Catalyst] Re: error while starting my dev enviroment

2011-07-20 Thread Aristotle Pagaltzis
* Charlie Gonzalez [2011-07-10 09:10]: > I guess my question now is how do I Identify any missing > dependencies without the use of moose-outdated? or should > I simply upgrade to moose 2.0 ? After you upgrade Moose, the program will be available. Regards, -- Aristotle Pagaltzis

[Catalyst] Re: REST-like url question

2011-06-10 Thread Aristotle Pagaltzis
; > This is similar to how del.icio.us handles tags. Attending + presenting = all. The first and last of these URIs mean the same thing. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http:

[Catalyst] Re: General API question: REST + SOAP

2011-04-06 Thread Aristotle Pagaltzis
* Dave Rolsky [2011-04-07 05:25]: > On Thu, 7 Apr 2011, Aristotle Pagaltzis wrote: > >This is a very bad idea. No matter what problem you have, > >a custom HTTP header is very nearly certainly the wrong > >solution. For API versioning it definitely is. > > My understa

[Catalyst] Re: General API question: REST + SOAP

2011-04-06 Thread Aristotle Pagaltzis
options). So don’t make their mistake: don’t use SOAP. If you inescapably have to support it as an option, then at least don’t design your API from its point of view. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Cataly

[Catalyst] Re: HTML::FormHandler IDs not playing with JQuery

2011-04-01 Thread Aristotle Pagaltzis
lower than an actual ID search, which compiles down to a single `getElementById` call. And note also that the quotes around the value are not actually allowed per CSS spec, and recent jQuery versions have been updated to follow the spec on this point. So in this case it’s really pref

[Catalyst] Re: Action for index not 'index'?

2011-03-24 Thread Aristotle Pagaltzis
you can shuffle things around and the breadcrumb links will continue to be correct with no extra work. I doesn’t happen a lot, but I was glad for the magic each time it did. It doesn’t cause much redundancy either, you just have to pass a few ID values a few t

[Catalyst] Re: Action for index not 'index'?

2011-03-23 Thread Aristotle Pagaltzis
.. $c->breadcrumb( $ws->name, '/workspace/view', [$ws->id] ); } So the chain structure automatically yields the right choice and sequence of breadcrumbs. -- *AUTOLOAD=*_;sub _{s/::([^:]*)$/print$1,(",$\/"," ")[defined wantarray]/e;chop;$_} &Ju

[Catalyst] Re: Escaping of "argument" of private path

2011-03-15 Thread Aristotle Pagaltzis
caping (which `uri_for` does, as it should), `&` → `&` is HTML escaping (which `uri_for` has nothing to do with). You want Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: ht

[Catalyst] Re: Opinions on static::simple - with caching

2011-02-02 Thread Aristotle Pagaltzis
t special-purpose mechanisms to achieve the same things. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive:

[Catalyst] Re: Opinions on static::simple - with caching

2011-02-01 Thread Aristotle Pagaltzis
> that and send a patch over if you liked? You may be interested in my setup: http://blogs.perl.org/users/aristotle/2011/01/some-nifty-things-you-can-do-with-catalyst-on-plack.html -- *AUTOLOAD=*_;sub _{s/::([^:]*)$/print$1,(",$\/"," ")[defined wantarray]/e;ch

[Catalyst] Re: Static MultiViews?

2010-12-10 Thread Aristotle Pagaltzis
ts for Catalyst. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsy

[Catalyst] Re: Converting a GET request to a POST request

2010-11-30 Thread Aristotle Pagaltzis
nsidered and rejected that approach. Is that so? If yes, it would be useful to hear the considerations behind that rejection. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.

[Catalyst] Re: Converting a GET request to a POST request

2010-11-26 Thread Aristotle Pagaltzis
lf of a user. > On Mon, Nov 22, 2010 at 3:12 PM, Aristotle Pagaltzis wrote: > >The same-origin policy is not there by mistake, but to keep > >your users safe from malicious 3rd party sites they may visit. > > REST principles dictate that I use POST, not GET, for these > re

[Catalyst] Re: Converting a GET request to a POST request

2010-11-22 Thread Aristotle Pagaltzis
into > a POST before Catalyst::Action::Deserialize does its magic. The same-origin policy is not there by mistake, but to keep your users safe from malicious 3rd party sites they may visit. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> __

[Catalyst] Re: $c->visit without calling end()

2010-11-15 Thread Aristotle Pagaltzis
the way), while `forward` will only call the action itself. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchabl

[Catalyst] Re: Organizing link generators

2010-11-12 Thread Aristotle Pagaltzis
o remember being > confused then. A lot of this confusion would probably go away > if we would just revert to a different character, like the '>', > or something. I like how it makes the action path correspond to path to the template below the root, but yeah. Regards, -

[Catalyst] Re: Organizing link generators

2010-11-12 Thread Aristotle Pagaltzis
* Alexander Hartmaier [2010-11-12 15:35]: > To me company, lot and vin in the url look like arguments, not > PathParts. That’s not how `uri_for_action` works. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ Li

[Catalyst] Re: Organizing link generators

2010-11-11 Thread Aristotle Pagaltzis
d will be > hard to spot. No, that would be `$c->controller('Auth::Company::Lot::Vin')`. I use the action paths in our app and haven’t had any serious trouble. You can always wrap `uri_for_action` or `uri_for` in your application class to throw an error if it’s a real issue, anyw

[Catalyst] Re: using template plugins

2010-10-13 Thread Aristotle Pagaltzis
it one. The answer is to put `[% USE UTF8Decode %]` in `prepare.tt` and add `PREPROCESS => 'prepare.tt'` to your TT config. Adjust the name of the include file to taste, obviously, and list multiple files by passing an array ref instead of a string. Regards, -- Aristotle

[Catalyst] Re: Returning to referer - which action to take?

2010-10-01 Thread Aristotle Pagaltzis
ou follow the trail backward, you will get near-perfect accuracy for click streams even for visitors with cookies off, as long as they send referers. (Many more people block cookies than referers. You can use both methods of course, possibly using detection to select one.) Regards, -- Aristotle

[Catalyst] Re: Returning to referer - which action to take?

2010-09-30 Thread Aristotle Pagaltzis
* Ekki Plicht (DF4OR) [2010-09-30 22:40]: > Am Dienstag 28 September 2010, 23:09:49 schrieb Aristotle Pagaltzis: > > Ultimately you should not need any session storage for > > anything. > > Yes, for session tracking. I would like to see what my visitors > do on our site :

[Catalyst] Re: "Wrong Content-Length value"

2010-09-28 Thread Aristotle Pagaltzis
this has nothing to do with what the server did. All it is is a client being silly. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catal

[Catalyst] Re: Returning to referer - which action to take?

2010-09-28 Thread Aristotle Pagaltzis
other-language versions of the same page – and simply by clicking on one of them, the user has “changed” their “session”. Ultimately you should not need any session storage for anything. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

[Catalyst] Re: A point of confusion/frustration on chained actions

2010-05-29 Thread Aristotle Pagaltzis
I’m confused. I thought you followed Ash’s suggestion. Ido’s is different. You can’t have followed both of their suggestions. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scs

[Catalyst] Re: A point of confusion/frustration on chained actions

2010-05-29 Thread Aristotle Pagaltzis
#x27;) PathPart('') Args(0) {} You get the idea. This also makes it very nice to navigate the template structure when using RenderView, as you can always relate everything to its purpose at a glance without referring to the controllers once. I kept the namespace structure flat here

[Catalyst] Re: A point of confusion/frustration on chained actions

2010-05-27 Thread Aristotle Pagaltzis
> forward or detach to the original action (also passing any > parameters it needs). Don’t do that. Chain a `PathPart('')` endpoint from the mid-point. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalys

[Catalyst] Re: Chained actions with can't terminate with :PathPart('') ?

2010-05-10 Thread Aristotle Pagaltzis
y/lot`). That doesn’t make much sense. I think you wanted sub view_lot :Chained('lot') :PathPart('') :Args(0) { Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: h

[Catalyst] Re: Alternatives to Catalyst ?

2010-04-29 Thread Aristotle Pagaltzis
but because it’s not written by assembly programmers.) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: h

[Catalyst] Re: Alternatives to Catalyst ?

2010-04-27 Thread Aristotle Pagaltzis
anyway, and the initialisation cost is incurred for every request no matter how little of its effort you exploit. (So people who randomly microbenchmark querying, like the thread starter, will be unhappy about that… just goes to show the fallacy of doing that.) Regards, -- Aristotle Pa

[Catalyst] Re: Alternatives to Catalyst ?

2010-04-26 Thread Aristotle Pagaltzis
its from Cat and use just H::MV, and leave the current stuff to a compat plugin or something like that… Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bi

[Catalyst] Re: Alternatives to Catalyst ?

2010-04-22 Thread Aristotle Pagaltzis
* Oleg Pronin [2010-04-21 18:40]: > Guys, is Catalyst a senior system ? > > I think that creator of Moose, and some similar shit is in > cooperation with hardware manufactorers :-) > The more CPU spent - the more hardware bought. You should switch to PHP. Regards, -- Aris

[Catalyst] Re: Outcome of the "Security issue with hashed passwords in C:P:A:Password"?

2010-04-10 Thread Aristotle Pagaltzis
* Andrew Rodland [2010-04-10 09:00]: > the complexity of storing them separately Does not compute. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bi

[Catalyst] Re: Which C::View::PDF should I use?

2010-03-29 Thread Aristotle Pagaltzis
* Wade Stuart [2010-03-26 01:45]: > * Aristotle Pagaltzis [2010-03-25 17:05]: > >And how is Xvfb (which is an X11 server) a solution the > >problem of requiring an X11 server? > > It is a virtual frame buffer that allows x11 requiring apps to > run without a full display

[Catalyst] Re: Which C::View::PDF should I use?

2010-03-25 Thread Aristotle Pagaltzis
* Wade Stuart [2010-03-22 22:35]: > On Tue, Mar 16, 2010 at 2:53 PM, Aristotle Pagaltzis wrote: > > * Adam Sjøgren [2010-03-16 18:15]: > > > An alternative could perhaps be CutyCapt: > > > > > > * http://cutycapt.sourceforge.net/ > > > > It req

[Catalyst] Re: Which C::View::PDF should I use?

2010-03-16 Thread Aristotle Pagaltzis
opdf doesn’t make it easy either: it requires a patched Qt for that. But at least it’s possible at all. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bi

[Catalyst] Re: Which C::View::PDF should I use?

2010-03-16 Thread Aristotle Pagaltzis
* Ovid [2010-03-16 11:25]: > And trying to pass Acid2 in a PDF renderer? Wow. Yeah, it was one of the first renderers to pass the test suite, beating out several of the big browsers. A magical piece of work. Regards, -- Aristotle Pagaltzis // <http://plasmastu

[Catalyst] Re: Which C::View::PDF should I use?

2010-03-15 Thread Aristotle Pagaltzis
unts of work.) As a rule I don’t like closed-source, binary stuff, but PrinceXML has proven to be an exception. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.

[Catalyst] Re: JSON views and CamelCase column names

2010-03-15 Thread Aristotle Pagaltzis
.cpan.org/dist/Catalyst-View-TD/ Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/cataly

[Catalyst] Re: How to read the performance information

2010-02-19 Thread Aristotle Pagaltzis
st handling and the beginning of action > dispatch, or between the end of action dispatch and the end of > request handling. You would probably know if this was > happening. :) Or something that qualifies as both. My immediate first suspicion in such cases: chec

[Catalyst] Re: Large requests with JSON?

2010-02-09 Thread Aristotle Pagaltzis
* Bill Moseley [2010-02-09 16:10]: > On Tue, Feb 9, 2010 at 2:36 AM, Aristotle Pagaltzis wrote: > > That sounds like the case I was thinking about: just do a PUT > > request with X-MyApp-Filename, X-MyApp-Timestamp etc headers. > > Of course, I left out the ability to upl

[Catalyst] Re: Large requests with JSON?

2010-02-09 Thread Aristotle Pagaltzis
ver files the data away temporarily and returns a link to which the client can PUT the file, and only once that request has succeeded does the server store both metadata and file in their proper place.) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

[Catalyst] Re: proper flow control with $c->foward, in search of greater grok

2010-02-06 Thread Aristotle Pagaltzis
* Dennis Daupert [2010-01-24 18:05]: > On Mon, Jan 11, 2010 at 4:00 AM, Aristotle Pagaltzis wrote: > > I think you are looking for > > > >my @caps = ( $user_id, $blog_id ); > >$c->go( '/user/blog/entry/list', \...@caps ); > > > &g

[Catalyst] Re: Large requests with JSON?

2010-02-06 Thread Aristotle Pagaltzis
d in the > upload? Neither, depending on your metadata. The things you did mention could quite well be sent as request headers. No need to put another envelope inside the HTTP request envelope. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> __

[Catalyst] Re: action_for with user_id removed ...

2010-02-06 Thread Aristotle Pagaltzis
o from the user’s point of view, as it makes it readily possible to access all the different views to a resource. Basically: URIs are cheap. Don’t be afraid to have more of them. HTTP infrastructure suffers much more where there are too few URIs than wher

[Catalyst] Re: action_for with user_id removed ...

2010-02-05 Thread Aristotle Pagaltzis
ecks are inadequate somewhere, and you are trying to paper over that instead of fixing it. From an HTTP point of view it is unwise to make endpoint URIs like that which can refer to many different resources at any one point in time. Regards, -

[Catalyst] Re: How to forward to a specific path

2010-01-31 Thread Aristotle Pagaltzis
me variables. So > I intercept the page in /cat1 and send it back to > /page/1/some-title > > /cat1, /cat2 and /page reside in different controller. OK, but that doesn’t explain why you need to forward to a URI rather than an action. Why is that? Regards, -- Aris

[Catalyst] Re: modules for conditional GET ?

2010-01-18 Thread Aristotle Pagaltzis
y useful abstraction beyond a utility method or two for setting the headers. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalys

[Catalyst] Re: Newbie question on debugging inside a schema

2010-01-16 Thread Aristotle Pagaltzis
bug info'); In your testsuite you can pass a Class::Null object. -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1} &Just->another->Perl->hack; #Aristotle Pagaltzis // <http://plasmasturm.org/>

[Catalyst] Re: modules for conditional GET ?

2010-01-16 Thread Aristotle Pagaltzis
ase for caching: since you aren’t going to recompute the page until said time has passed, you may as well tell the client that it’s superfluous for them to try asking again before that period is up. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___

[Catalyst] Re: Bugzilla REST API in Catalyst

2010-01-16 Thread Aristotle Pagaltzis
ns/883452/git-interoperability-with-a-mercurial-repository/1089221#1089221 Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archi

[Catalyst] Re: proper flow control with $c->foward, in search of greater grok

2010-01-11 Thread Aristotle Pagaltzis
not that you should pass those parameters inside an anonymous array. I think you are looking for my @caps = ( $user_id, $blog_id ); $c->go( '/user/blog/entry/list', \...@caps ); or just $c->go( '/user/blog/entry/list', [ $user_id, $blog_id ] ); Re

[Catalyst] Re: Various ways to use c.uri_for

2010-01-09 Thread Aristotle Pagaltzis
give me a URI that looks like this: /app/person/42/edit Here you can clearly see that the first argument refers to action paths, not URIs. The URI is constructed out of the PathParts of all the actions that participate in the chain. > but it could be helpful to have such a thing in th

[Catalyst] Re: How to forward to a specific path

2010-01-02 Thread Aristotle Pagaltzis
e the goal you are trying to achieve. What is your goal here? Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable arch

[Catalyst] Re: catalyst request path and apache rewrites

2009-12-19 Thread Aristotle Pagaltzis
ant to lose the RewriteCond and instead have just RewriteRule ^/(.*)$ /foo/bar/$1 [L,PT] Just another mod_rewrite hacker, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.

[Catalyst] Re: Partial page cache plugin

2009-12-08 Thread Aristotle Pagaltzis
* Tomas Doran [2009-12-08 01:05]: > I'd be happy with it _defaulting_ to use CHI in fact :) ++ Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/c

[Catalyst] Re: Avoiding UTF8 in Catalyst

2009-12-08 Thread Aristotle Pagaltzis
the mistakes of other people. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.c

[Catalyst] Re: Partial page cache plugin

2009-12-06 Thread Aristotle Pagaltzis
Hi Julien, * Julien Sobrier [2009-12-06 09:10]: > there is a plugin for caching an entire page. I am looking for > the same type of plugin to cache part of the page, but did not > find one. uhm… Catalyst::Plugin::Cache? Regards, -- Aristotle Pagaltzis // <http://pla

[Catalyst] 2nd person plural (was: [ANNOUNCE] Catalyst-Runtime 5.80015)

2009-12-04 Thread Aristotle Pagaltzis
* Bernhard Graf [2009-12-03 15:50]: > I really appreciate your(*) effort. > > (*) your = all contributors You could say “y’all’s effort”. ;-) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___ List: Catalyst@lists.scsys

[Catalyst] Re: Unicode trouble with Catalyst::Engine::FastCGI

2009-11-24 Thread Aristotle Pagaltzis
uld effectively imply a transient downgrade anyway. If the body string represents an encoded octet sequence, then downgrading will always succeed, as well. (If it’s not downgradeable, then the engine should probably throw an exception, as mentioned in the other thread.) Regards,

[Catalyst] Re: Unicode trouble with Catalyst::Engine::FastCGI

2009-11-23 Thread Aristotle Pagaltzis
Hi Bernhard, * Bernhard Graf [2009-11-23 20:00]: > Aristotle Pagaltzis schrieb: > >>> While this fixes the problem, it is still unclear, why the >>> utf8 flag is set for the whole buffer. >> >> It shouldn’t matter. > > But it does. yes, because ::

[Catalyst] Re: Avoiding UTF8 in Catalyst

2009-11-23 Thread Aristotle Pagaltzis
ers suck so bad about telling you what encoding the data that they’re sending is in. I am working on a plugin for that, but due to its dependencies and API I don’t know if it’d be reasonable to make it core. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> ___

  1   2   3   4   >