On Fri, Apr 23, 2010 at 04:52:42PM +0400, Oleg Pronin wrote:
> Perfomance optimization are unavailable for you because only people
> like you write such mega slow fuckin code. goodbye
Goodbye.
*plonk*
Jesse Sheidlower
___
List: Ca
the _test_ in the first line of this. The
form is submitted correctly, and when I test the "view" page for this
newly-created user, it has the correct role.
Similarly, for my "edit" test, I untick this role, tick a different
role,
On Fri, Jun 10, 2011 at 11:19:14AM -0400, Ronald J Kimball wrote:
> On Fri, Jun 10, 2011 at 11:10 AM, Jesse Sheidlower wrote:
>
> >
> > ok( $mech_admin->tick('roles','2'), "ticked the newwords_admin checkbox" );
> >
>
>
> >
I'm porting a site from Apache/mod_perl to nginx/FastCGI, and am having
some configuration problems whilst closely following the instructions in
the Cat docs and wiki (specifically,
Catalyst::Manual::Deployment::nginx::FastCGI and
http://wiki.catalystframework.org/wiki/adventcalendararticles/2008/
On Sat, Nov 05, 2011 at 10:30:38PM -0400, Jesse Sheidlower wrote:
>
> I run several sites on the same server at non-root locations. Within my
> main server { } block, I add (for example):
>
># SF citations site
>location /sf {
> include fastcgi_p
On Sun, Nov 06, 2011 at 03:59:29AM +, Janne Snabb wrote:
> On Sat, 5 Nov 2011, Jesse Sheidlower wrote:
>
> > How do I configure nginx to handle ssl requests for Cat apps through
> > Cat? And is there some neat way of handling the configuration, so that I
> > don't
it's not
> clear to me from reading the documentation on how to do this, or even if
> it's possible.
Very much so. Have you looked at
http://search.cpan.org/~hkclark/Catalyst-Manual-5.9002/lib/Catalyst/Manual/Tutorial/08_Testing.pod#SUPPORTING_BOTH_PRODUCTION_AND_TEST_DATAB
ot clear what it is.
I'd be very grateful for any suggestions for how to solve this, as this
is the one thing preventing the server from going live! Thanks.
Jesse Sheidlower
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.
f file, and
then use session_expire_key to shorten the sessions for external users,
but that seems like the reverse of what I really want, which is to give
more rights to one group, not to give less rights to another.
Jesse Sheidlower
___
List: Catalyst@lists.
On Fri, Feb 17, 2012 at 07:59:19AM +1100, Kieren Diment wrote:
>
>
> On 16/02/2012, at 4:02 AM, Jesse Sheidlower wrote:
>
> >
> > Executive summary: new deployment on nginx 1.0.5 and FastCGI; my
> > Catalyst apps are in non-root locations. When I go to the ba
99) was executed. But the affected
users still had to log in after an hour of non-use.
Any other session experts have a thought?
Jesse Sheidlower
>
> HTH!
>
> cheers
> paolino
>
> --
> Paolo Gianrossi
>
> (An unmatched left parenthesis
> creates a
; else {
> > return $c->NEXT::calculate_extended_session_expires($prev);
> > }
> > }
> >
> > That's working but I get some warnings that using NEXT:: is deprecated so
> > you probably could use some method modifier.
> >
> > Ch
ects} = $c->model('WordsDB::Subject')->search();
$c->stash->{template} = 'add.tt';
}
This means that almost every page generation hits the database a whole bunch of
unnecessary times, and that all of my controllers are cluttered.
This must be a fairly common
I've recently upgraded my Cat to 5.9, and in the process decided to
switch from the deprecated Catalyst::Plugin::RequireSSL to
C::ActionRole::RequireSSL. Somewhere along the line, something stopped
working in my secure-connection activity, and no one found an answer in
some IRC chat so I thought I
On Tue, May 14, 2013 at 01:37:04PM -0400, Jesse Sheidlower wrote:
>
> I've recently upgraded my Cat to 5.9, and in the process decided to
> switch from the deprecated Catalyst::Plugin::RequireSSL to
> C::ActionRole::RequireSSL. Somewhere along the line, something stopped
>
Sysadmin-fu needed: I have a personal server in the cloud that has 1 GB
of RAM. It's running Debian, and the usual server basics--MySQL, nginx,
etc. No X, of course.
There are three Catalyst apps running, all of them fairly small, using
nginx and FCGI (I run the MyApp_fastcgi.pl script to a socke
emonstrated using DBIC.
So I don't think that showing a basic search example using
DBIC would somehow violate the idea of Catalyst-as-framework.
I hope the OP does document her ideas on the wiki, and it would
be nice if Zbigniew does exend the Advent a
e the server.
Thanks. I'd offer to fix the docs myself, but this isn't in
the Catalyst repothere are minor typos, too.
Jesse Sheidlower
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/list
re-edit this entry to remove that entire section. Right
now it's the sort of thing a lot of people would look at and
then run away from
Jesse Sheidlower
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman
I've never used caching before, and am considering adding it
to one of my apps. Basically, this is a database-backed app
where the underlying data changes very rarely. There's no
login. The only dynamic thing that happens is an occasional
search.
Is my best practice going to be just using C::P::P
On Thu, Nov 06, 2008 at 02:02:54PM -0800, J. Shirley wrote:
> On Thu, Nov 6, 2008 at 1:40 PM, Jesse Sheidlower <[EMAIL PROTECTED]> wrote:
> >
> > I've never used caching before, and am considering adding it
> > to one of my apps. Basically, this is a database-bac
I want to set up my new PageCache configuration in a
Config::General style. I need to change this:
__PACKAGE__->config(
'Plugin::PageCache' => {
expires => 300,
set_http_headers => 1,
auto_cache => [ '^(search)' ]
debug => 1,
}
);
into this:
On Thu, Nov 06, 2008 at 05:09:55PM -0700, Jason Kuri wrote:
>> Given how light my requirements are--the app's been chugging
>> along fine for years without any caching--I don't think I need
>> to bother putting another app into the mix. The memory
>> requirements for Memcached don't worry me--the s
On Thu, Nov 06, 2008 at 05:23:29PM -0500, Jesse Sheidlower wrote:
>
> Given how light my requirements are--the app's been chugging
> along fine for years without any caching--I don't think I need
> to bother putting another app into the mix. The memory
> requirements for
On Fri, Nov 07, 2008 at 08:19:46AM -0600, Peter Karman wrote:
> Jesse Sheidlower wrote on 11/07/2008 08:02 AM:
> > On Thu, Nov 06, 2008 at 05:23:29PM -0500, Jesse Sheidlower wrote:
> >> Given how light my requirements are--the app's been chugging
> >> along fine
On Fri, Nov 07, 2008 at 11:02:51AM -0500, Jesse Sheidlower wrote:
>
> and I'm on my way. Things are anywhere from 50% to 350% faster. If
> I could only solve the Config::General problem, everything would be
> perfect!
On the other hand
Now I'm not getting any of my st
A few weeks ago I asked a series of questions about caching,
at the end of which discussion it was suggested that I use
Apache, instead of Cat with the Static::Simple plugin, to
serve my static files. I had tried this once before and ran
into problems and given up, so, the question:
I'd prefer to
On Thu, Nov 27, 2008 at 07:10:20PM -0800, J. Shirley wrote:
> On Thu, Nov 27, 2008 at 6:45 PM, Jesse Sheidlower <[EMAIL PROTECTED]> wrote:
[Details of unbelievably n00bish Apache config question]
> > this obviously won't work because /Incomings/static isn't in
> &
On Fri, Nov 28, 2008 at 02:40:26PM +1100, Kieren Diment wrote:
>
> On 28/11/2008, at 2:30 PM, Jesse Sheidlower wrote:
>>
>> Is it worth putting this into the C::P::Static::Simple docs,
>
>
> Yes, that would be the right place for it.
Done, but
> A recipe for ligh
On Thu, Nov 27, 2008 at 09:48:30PM -0800, J. Shirley wrote:
> On Thu, Nov 27, 2008 at 8:13 PM, Jesse Sheidlower <[EMAIL PROTECTED]> wrote:
> > On Fri, Nov 28, 2008 at 02:40:26PM +1100, Kieren Diment wrote:
> >>
> >> On 28/11/2008, at 2:30 PM, Jesse Sheidlower wrote
On Wed, Dec 03, 2008 at 12:25:15PM +, Tomas Doran wrote:
>
> On 3 Dec 2008, at 11:59, Dr. Jennifer Nussbaum wrote:
>>
>> This looks like it's going to call fillform() even if theres a
>> response set...
>>
>> THATS IT!
>>
>> I just added "return if $c->response->body;" after the forward and
On Sun, Dec 21, 2008 at 08:12:29AM -0800, Dr. Jennifer Nussbaum wrote:
> > sub render : ActionClass('RenderView') { }
> >
> > sub end : Private {
> > my ( $self, $c ) = @_;
> > $c->forward('render');
> > if ($c->res->body) {
> > $c->log->info("There is a body; returning");
> > return; }
> >
Some time ago, I developed or stole a TT pager that I now use
in all of my Cat apps. It looks like this, though occasionally
with minor CSS tweaks:
---
[% IF pager.last_page > 1 %]
[% IF pager.previous_page %]
[previous]
[% ELSE %]
[previous]
[% END %]
[% FOR page IN [1..pager.
http://dev.catalystframework.org/wiki/faq
"How do I hide certain variables (e.g. user/password) from the
debug screen?"
Jesse Sheidlower
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/cat
ion but with a
"confirm" parameter signalling that you're really deleting,
etc. There are lots of options.
You can pair this with JS if you want.
Best,
Jesse Sheidlower
> Rodrigo-51 wrote:
> >
> > Paul, how about a javascript confirm() box?
> >
> >
> >
say, tens? If you
have a search with 1000 pages, you can only go to the
beginning or end, but getting to the middle would be
unbearably tedious (it would be only slight less tedious
having to do it be tens, but still better).
Jesse Sheidlower
_
ible I'd like info on implementing a search engine into
> Catalyst to be included. :)
Hmm. As someone who just incorporated an external search
engine into two different Cat apps, I would have loved to have
had such a chapter available
Jesse Sheidlower
On Fri, Feb 06, 2009 at 05:35:35PM +, Chisel Wright wrote:
> On Fri, Feb 06, 2009 at 12:30:03PM -0500, Jesse Sheidlower wrote:
> > Hmm. As someone who just incorporated an external search
> > engine into two different Cat apps, I would have loved to have
> > had suc
[% tuning %]
[% END %]
The first one works, the second doesn't. DBIC_TRACE shows that
both queries (performer and tuning) are being fired, and
executing them each manually against the database shows that
the expected results are being returned.
Can someone kick me, and tell me
On Sun, Mar 29, 2009 at 02:26:51PM +0100, Chisel Wright wrote:
> On Sun, Mar 29, 2009 at 07:52:27AM -0400, Jesse Sheidlower wrote:
> > [% WHILE (tuning = tunings.next) %]
>
> Have you used tunings anywhere else? A common mistake I make is to loop
> through a resultset $somewh
On Sun, Mar 29, 2009 at 08:15:18AM -0700, J. Shirley wrote:
> On Sun, Mar 29, 2009 at 4:52 AM, Jesse Sheidlower wrote:
>
> >
> > I'm having a problem with an app that is totally mystifying
> > me, and several attempts to put it aside and look at it the
> > ne
As mentioned in #catalyst and a few times here, I've been
starting to learn and play around with JavaScript in my Cat
apps recently, especially using jQuery. I'm wondering if there
are general principles for how to integrate JS with Cat.
In particular, I'm curious about the best ways to send data
On Fri, Apr 24, 2009 at 12:26:53PM +1000, Kieren Diment wrote:
>
> Did a minor edits:
> http://dev.catalystframework.org/wiki/releaseannouncements/58pressrelease.view?rev=17
>
This still needs a copy edit. When's it going live? Where's the source, or
to whom can I send comments?
Jesse
On Fri, Apr 24, 2009 at 09:27:42PM +1000, Chris wrote:
> > You have to have an answer to the question 'if it's so great why have
> > I never heard of it before?' Particularly since the people you're
> > aiming at (/. and digg readers) are exactly the people who judge the
> > merits of something ba
On Tue, Apr 28, 2009 at 06:29:06AM -0700, John Napiorkowski wrote:
>
> This edit was done by an expert in these matters. I realize it says less
> than many of us would prefer, given the excitement and sense of
> accomplishment we feel. However, I really think this should go out ASAP
> (before
AM to run a particular app but
with a different DBIC schema (in this case, the identical one
but with a different name, pointing to the test db) instead.
Or how to do the same thing, but with TWAM hitting the app
with the external-server method (so I can test the Apache
deployment).
Would be gratefu
On Thu, Apr 30, 2009 at 11:12:39AM -0500, Peter Karman wrote:
> Jesse Sheidlower wrote on 04/30/2009 10:42 AM:
>
> > Unfortunately I don't know how to do this from a test script,
> > and I don't know how to tell TWAM to run a particular app but
> > with a differ
I'm not a
member, so
Jesse Sheidlower
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
On Wed, Jun 17, 2009 at 10:53:22AM +0100, Tomas Doran wrote:
> Jesse Sheidlower wrote:
>> I'm in the UK for the week, and I'm going to be going to
>> London today, stopping off at the Hackspace Hack Evening #9 in
>> Islington ( http://upcoming.yahoo.com/event/2823
Back in April I posted for help here, asking specifically how
to use a test database with Test::WWW::Mechanize::Catalyst. I
am grateful for the helpful responses I got, and apologize
that it took me so long to start working on them. My recent
switch from CVS to git has enabled me to get going on l
On Wed, Jun 17, 2009 at 06:58:49AM -0400, Jesse Sheidlower wrote:
>
> * Is there any solution to using %ENV for global variables in
> the setup script? I need the same info to be available in the
> BEGIN and the END blocks; using "our" in the BEGIN doesn't
> work. %
the
connect info, but I haven't seen this done with Cat before.
Jesse Sheidlower
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive
On Thu, Jun 18, 2009 at 01:51:28PM +0100, Peter Edwards wrote:
> 2009/6/18 Jesse Sheidlower
>
> > Basically, I have a standard Catalyst config file, where
> > the database connection section looks like this:
[...]
> > I'd like to get access to this information from
I'm having a hell of a time trying to track down the reasons
for this error.
I'm getting an error that looks like:
Use of uninitialized value $buffer in concatenation (.) or
string at /usr/share/perl5/Catalyst/Engine/CGI.pm line 220.
If I'm using the HTTP.pm Engine, I get the same error, but
wi
user, not doing anything fancy here, so
if there's a problem with buffer manipulation, I don't think
it's because of something I'm doing.
Grr.
Jesse Sheidlower
> > ---
> > around write => sub {
> > my $orig = shift;
> > my ( $self, $c, $
can just declare an "admin"
role for anything really high-powered and leave it at that?
That sort of thing.
Thanks for any thoughts.
Jesse Sheidlower
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/
On Wed, Jul 29, 2009 at 08:03:03PM +0300, Oleg Kostyuk wrote:
> ==cut==
> --- /usr/local/share/perl/5.10.0/Catalyst/Helper.pm 2009-06-29
> 00:56:35.0 +0300
> +++ /tmp/Helper.pm 2009-07-29 19:59:57.0 +0300
> @@ -604,7 +604,7 @@
57 matches
Mail list logo