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
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
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:
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
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
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
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
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
,(,$\/, )[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
* 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
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
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
* 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
,
--
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
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
* 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
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
* 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
* 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:
* 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
* 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`?
. 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
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
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
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
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
* 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:
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
* 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,
* 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
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
* 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
.
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
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
* 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
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
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
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
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
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
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
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
.
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
),
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
* 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
.
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
.
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
, 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
* 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
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
,
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
. 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
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
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
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
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
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
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
* 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
* 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
* 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
* 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
* 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
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
/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
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
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
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
* 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
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
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
* 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
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
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
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
/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
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
. 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
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
, 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
* 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
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
* 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
. 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
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
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
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
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
* 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
} ) =~ 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
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
* 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
* 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
? 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
/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
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
”
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
`keys`, which is cheap to
call in void or scalar context too.
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
happening
inside sqlite -- I assume it's storing as UTF-8, but I don't
really know what it's doing.
Try Devel::Peek to examine the strings that come out of it?
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
___
List: Catalyst@lists.scsys.co.uk
the
JSON serialiser is trying to produce UTF-8 output correctly by
encoding the strings you pass it; since they’re already encoded,
you get double-encoding gremlins.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
___
List: Catalyst
1 - 100 of 243 matches
Mail list logo