Re: [Catalyst] UTF8 and content length

2016-07-15 Thread Aristotle Pagaltzis
n 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'); $c->response->body(Encode::encode_utf8 $json_te

Re: [Catalyst] An MVC logic separation conundrum

2016-03-10 Thread Aristotle Pagaltzis
ler but more importantly 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

Re: [Catalyst] An MVC logic separation conundrum

2016-03-10 Thread Aristotle Pagaltzis
f that method, but that can easily 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:

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

2015-07-08 Thread Aristotle Pagaltzis
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/ ___ List: Catalyst

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

2015-02-10 Thread Aristotle Pagaltzis
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.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

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

2014-12-04 Thread Aristotle Pagaltzis
for a long time without running 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

Re: [Catalyst] Log4Perl and Catalyst startup routing table

2014-11-13 Thread Aristotle Pagaltzis
of the 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

Re: [Catalyst] Catalyst Unicode

2014-01-31 Thread Aristotle Pagaltzis
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 `length` returns the correct value. Regards, -- Aristotle Pagaltzis // http

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

2013-11-28 Thread Aristotle Pagaltzis
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/index') ); Regards, -- Aristotle Pagaltzis // http

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

2013-11-26 Thread Aristotle Pagaltzis
,(,$\/, )[defined wantarray]]/e;$_} Just-another-Perl-hack; #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

[Catalyst] Re: Response traits.

2013-10-31 Thread Aristotle Pagaltzis
* Bill Moseley mose...@hank.org [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://plasmasturm.org

[Catalyst] Re: New design

2013-07-23 Thread Aristotle Pagaltzis
on the landing page 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
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/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

[Catalyst] Re: New Catalyst Release on CPAN!

2013-06-12 Thread Aristotle Pagaltzis
* John Napiorkowski jjn1...@yahoo.com [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 // http://plasmasturm.org

[Catalyst] Re: Chained and exceptions

2013-05-14 Thread Aristotle Pagaltzis
, -- 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.scsys.co.uk/ Dev site: http

[Catalyst] Re: Chained and exceptions

2013-05-13 Thread Aristotle Pagaltzis
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: http://www.mail-archive.com

[Catalyst] Re: Chained and exceptions

2013-05-10 Thread Aristotle Pagaltzis
* Bill Moseley mose...@hank.org [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

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

2013-04-12 Thread Aristotle Pagaltzis
and write the dep list. :-) Though that one was, of course, not anywhere near as bad as the above.) Thanks a whole bunch, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

[Catalyst] Re: Progress bar

2012-12-24 Thread Aristotle Pagaltzis
* Bill Moseley mose...@hank.org [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

[Catalyst] Re: Advent 2012 is launched!

2012-12-11 Thread Aristotle Pagaltzis
* John Napiorkowski jjn1...@yahoo.com [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:

[Catalyst] Re: prepare_body_chunk in Catalyst 5.9

2012-07-15 Thread Aristotle Pagaltzis
* Peter Flanigan p...@roxsoft.co.uk [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

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

2012-04-18 Thread Aristotle Pagaltzis
* Rippl, Steve rip...@woodlandschools.org [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`?

[Catalyst] Re: New catalystframework.org

2012-03-21 Thread Aristotle Pagaltzis
. 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: Fix for content-length issue introduced with Catalyst 5.8.x

2012-02-22 Thread Aristotle Pagaltzis
the plugin does, and you should fix all of your issues. 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

[Catalyst] Re: Running Catalyst apps with start_server

2012-01-26 Thread Aristotle Pagaltzis
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 that way. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org

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

2012-01-14 Thread Aristotle Pagaltzis
middlewares for many 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-bin

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

2011-11-05 Thread Aristotle Pagaltzis
contain 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/mailman

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

2011-10-07 Thread Aristotle Pagaltzis
* Tobias Kremer tobias.kre...@gmail.com [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] Re: FormFu missing Moose::Role

2011-09-12 Thread Aristotle Pagaltzis
out the 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-another-Perl-hack; #Aristotle

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

2011-08-27 Thread Aristotle Pagaltzis
* Roderick A. Anderson raand...@cyber-office.net [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,

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

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

[Catalyst] Re: TT2 multiple subtemplates

2011-08-11 Thread Aristotle Pagaltzis
-hack; #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.scsys.co.uk/ Dev site: http

[Catalyst] Re: Actions for asserting relationships

2011-07-21 Thread Aristotle Pagaltzis
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 201 if the relationship is new and 303 if it’s not. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org

[Catalyst] Re: error while starting my dev enviroment

2011-07-20 Thread Aristotle Pagaltzis
* Charlie Gonzalez itchar...@gmail.com [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

[Catalyst] Re: REST-like url question

2011-06-10 Thread Aristotle Pagaltzis
. 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://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

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

2011-04-06 Thread Aristotle Pagaltzis
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: Catalyst@lists.scsys.co.uk

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

2011-04-06 Thread Aristotle Pagaltzis
* Dave Rolsky auta...@urth.org [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 understanding of REST

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

2011-04-01 Thread Aristotle Pagaltzis
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 preferable to use something like $( '#' + elt_id.replace( /\./, '\\.' ) ) Regards, -- Aristotle Pagaltzis // http://plasmasturm.org

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

2011-03-24 Thread Aristotle Pagaltzis
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 times extra. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org

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

2011-03-23 Thread Aristotle Pagaltzis
yields the right choice and sequence of breadcrumbs. -- *AUTOLOAD=*_;sub _{s/::([^:]*)$/print$1,(,$\/, )[defined wantarray]/e;chop;$_} Just-another-Perl-hack; #Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo

[Catalyst] Re: Escaping of argument of private path

2011-03-15 Thread Aristotle Pagaltzis
the right answer: ` ` → `%20` is URI escaping (which `uri_for` does, as it should), `` → `amp;` is HTML escaping (which `uri_for` has nothing to do with). You want img src=[% c.uri_for(/static/gallery,rec.dirname,rec.filename) | html %] alt=photo / Regards, -- Aristotle Pagaltzis // http

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

2011-02-02 Thread Aristotle Pagaltzis
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: http

[Catalyst] Re: Static MultiViews?

2010-12-10 Thread Aristotle Pagaltzis
such a thing exists 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

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

2010-11-26 Thread Aristotle Pagaltzis
on behalf of a user. On Mon, Nov 22, 2010 at 3:12 PM, Aristotle Pagaltzis pagalt...@gmx.de 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 requests. The same

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

2010-11-22 Thread Aristotle Pagaltzis
. 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/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

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

2010-11-15 Thread Aristotle Pagaltzis
), 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 Searchable archive: http://www.mail

[Catalyst] Re: Organizing link generators

2010-11-12 Thread Aristotle Pagaltzis
* Alexander Hartmaier alexander.hartma...@t-systems.at [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

[Catalyst] Re: Organizing link generators

2010-11-12 Thread Aristotle Pagaltzis
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, -- Aristotle Pagaltzis // http

[Catalyst] Re: Organizing link generators

2010-11-11 Thread Aristotle Pagaltzis
. 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, anyway. Regards, -- Aristotle Pagaltzis

[Catalyst] Re: using template plugins

2010-10-13 Thread Aristotle Pagaltzis
. 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 Pagaltzis // http://plasmasturm.org

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

2010-10-01 Thread Aristotle Pagaltzis
, and you 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) e...@plicht.de [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 :-) You definitely

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

2010-09-28 Thread Aristotle Pagaltzis
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/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

[Catalyst] Re: Wrong Content-Length value

2010-09-28 Thread Aristotle Pagaltzis
, because 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/catalyst

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

2010-05-29 Thread Aristotle Pagaltzis
. Chained dispatch makes it easy to get just about any URI structure, regardless of how the code is laid out; this is a feature, you should use it. -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined wantarray]/e;$1} Just-another-Perl-hack; #Aristotle Pagaltzis // http://plasmasturm.org

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

2010-05-29 Thread Aristotle Pagaltzis
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.scsys.co.uk/cgi-bin/mailman

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

2010-05-27 Thread Aristotle Pagaltzis
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: Catalyst@lists.scsys.co.uk Listinfo

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

2010-05-10 Thread Aristotle Pagaltzis
sub view_lot :Chained('lot') :PathPart('') :Args(0) { 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

[Catalyst] Re: Alternatives to Catalyst ?

2010-04-29 Thread Aristotle Pagaltzis
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: http://www.mail-archive.com

[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 Pagaltzis // http

[Catalyst] Re: Alternatives to Catalyst ?

2010-04-26 Thread Aristotle Pagaltzis
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-bin/mailman/listinfo/catalyst Searchable archive: http

[Catalyst] Re: Alternatives to Catalyst ?

2010-04-22 Thread Aristotle Pagaltzis
* Oleg Pronin syber@gmail.com [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, -- Aristotle

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

2010-04-10 Thread Aristotle Pagaltzis
* Andrew Rodland and...@cleverdomain.org [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

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

2010-03-29 Thread Aristotle Pagaltzis
* Wade Stuart w...@grepit.net [2010-03-26 01:45]: * Aristotle Pagaltzis pagalt...@gmx.de [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 w...@grepit.net [2010-03-22 22:35]: On Tue, Mar 16, 2010 at 2:53 PM, Aristotle Pagaltzis pagalt...@gmx.dewrote: * Adam Sjøgren a...@koldfront.dk [2010-03-16 18:15]: An alternative could perhaps be CutyCapt: * http://cutycapt.sourceforge.net/ It requires an X11 server

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

2010-03-16 Thread Aristotle Pagaltzis
* Ovid publiustemp-catal...@yahoo.com [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://plasmasturm.org

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

2010-03-16 Thread Aristotle Pagaltzis
it isn’t. The wkhtmltopdf 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

[Catalyst] Re: JSON views and CamelCase column names

2010-03-15 Thread Aristotle Pagaltzis
/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/catalyst

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

2010-03-15 Thread Aristotle Pagaltzis
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.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

[Catalyst] Re: How to read the performance information

2010-02-19 Thread Aristotle Pagaltzis
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: check your DNS lookup machinery. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org

[Catalyst] Re: Large requests with JSON?

2010-02-09 Thread Aristotle Pagaltzis
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: Large requests with JSON?

2010-02-09 Thread Aristotle Pagaltzis
* Bill Moseley mose...@hank.org [2010-02-09 16:10]: On Tue, Feb 9, 2010 at 2:36 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote: 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

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

2010-02-06 Thread Aristotle Pagaltzis
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 where there are too many. Regards, -- Aristotle Pagaltzis // http

[Catalyst] Re: Large requests with JSON?

2010-02-06 Thread Aristotle Pagaltzis
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: proper flow control with $c-foward, in search of greater grok

2010-02-06 Thread Aristotle Pagaltzis
* Dennis Daupert ddaup...@gmail.com [2010-01-24 18:05]: On Mon, Jan 11, 2010 at 4:00 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote: 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

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

2010-02-05 Thread Aristotle Pagaltzis
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, -- Aristotle Pagaltzis // http://plasmasturm.org

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

2010-01-31 Thread Aristotle Pagaltzis
some 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, -- Aristotle Pagaltzis // http

[Catalyst] Re: modules for conditional GET ?

2010-01-18 Thread Aristotle Pagaltzis
a generically 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/catalyst Searchable

[Catalyst] Re: Bugzilla REST API in Catalyst

2010-01-16 Thread Aristotle Pagaltzis
/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 archive

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

2010-01-11 Thread Aristotle Pagaltzis
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 ] ); Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst

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

2010-01-09 Thread Aristotle Pagaltzis
. 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 the core: As you see, there already is. :-) Regards, -- Aristotle Pagaltzis // http://plasmasturm.org

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

2010-01-02 Thread Aristotle Pagaltzis
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 archive: http

[Catalyst] Re: catalyst request path and apache rewrites

2009-12-19 Thread Aristotle Pagaltzis
, you likely want 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

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

2009-12-04 Thread Aristotle Pagaltzis
* Bernhard Graf cataly...@augensalat.de [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

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

2009-11-24 Thread Aristotle Pagaltzis
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, -- Aristotle Pagaltzis // http

[Catalyst] Re: Avoiding UTF8 in Catalyst

2009-11-23 Thread Aristotle Pagaltzis
* Carl Johnstone catal...@fadetoblack.me.uk [2009-11-23 18:50]: Aristotle Pagaltzis wrote: Please plese don’t make statements like “not in this case” without knowing what the thing you are talking about does, i.e. in this case bytes::length, does. There are enough misconceptions about

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

2009-11-23 Thread Aristotle Pagaltzis
. If it’s not, then something is broken in ::FastCGI. 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

[Catalyst] Re: Avoiding UTF8 in Catalyst

2009-11-23 Thread Aristotle Pagaltzis
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/ ___ List

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

2009-11-23 Thread Aristotle Pagaltzis
Hi Bernhard, * Bernhard Graf cataly...@augensalat.de [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 ::FastCGI is broken. :-) Is what I’m

[Catalyst] Re: Language selection in URLs

2009-11-18 Thread Aristotle Pagaltzis
Worst of all worlds, IMO. The query parameter is easiest to implement for the server, while the path prefix allows the user to hack the URI conveniently (so the latter is what I would do). Your suggestion is harder to implement than both and makes URIs annoying to hack. Regards, -- Aristotle

[Catalyst] Re: does detach cancel forward

2009-11-08 Thread Aristotle Pagaltzis
likely be cleaner. 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

[Catalyst] Re: generating and redirecting to pdfs

2009-10-27 Thread Aristotle Pagaltzis
* Jason Galea li...@eightdegrees.com.au [2009-10-26 23:45]: On Sun, Oct 25, 2009 at 12:49 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote: * Jason Galea li...@eightdegrees.com.au [2009-10-21 01:50]: $c-res-header( 'Content-Disposition' = 'attachment;filename='.$c-stash-{pdf_filename

[Catalyst] Re: generating and redirecting to pdfs

2009-10-24 Thread Aristotle Pagaltzis
} ) =~ s!!\\!g; $c-res-header( 'Content-Disposition' = qq(attachment; filename=$pdf_filename) ); -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined wantarray]/e;$1} Just-another-Perl-hack; #Aristotle Pagaltzis // http://plasmasturm.org

[Catalyst] Re: Validating single arg id

2009-10-21 Thread Aristotle Pagaltzis
on with the argument lists between the two examples. Which code structure looks more DRY and which URI structure more consistent to you? -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined wantarray]/e;$1} Just-another-Perl-hack; #Aristotle Pagaltzis // http://plasmasturm.org

[Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-30 Thread Aristotle Pagaltzis
* Bernhard Graf cataly...@augensalat.de [2009-09-29 15:45]: What is the recommended way to leave a chain - eg. to show a login form? detach? Yup. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk

[Catalyst] Re: Speaking of Perls ... which is the preferred version for current Catalyst development?

2009-09-29 Thread Aristotle Pagaltzis
* Joe Landman land...@scalableinformatics.com [2009-09-29 14:30]: Has this been fixed in 5.10.1? Yes. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

[Catalyst] Re: selectively using the wrapper

2009-09-20 Thread Aristotle Pagaltzis
? Should it be () instead of {} ? Yes. It should be either of the following: $c-stash-{no_wrapper} = 1; $c-stash( no_wrapper = 1 ); I always prefer the latter. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst

[Catalyst] Re: Testing Web 2 cat apps

2009-09-15 Thread Aristotle Pagaltzis
/log/444/ Whether XPath is more or less robust depends only on whether you write it to be. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

[Catalyst] Re: Chained, root action, with default sub present

2009-08-15 Thread Aristotle Pagaltzis
of the other controllers have these special actions. And that works perfectly. This doesn’t *fix* the problem you found, of course – assuming that it is a problem at all, and assuming it can even be fixed at this point. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org

[Catalyst] Re: More up-to-date version of Perl 5.10 ...

2009-07-20 Thread Aristotle Pagaltzis
” instead of the more informative message it should produce. Presumably you don’t run code with syntax errors in production, so the bug should have no bearing there; you only need a fixed perl on your development machine. Therefore I suggest you just compile a patched perl. Regards, -- Aristotle

  1   2   3   >