Re: [Catalyst] Alternatives to Catalyst ?

2010-04-24 Thread Jesse Sheidlower
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

[Catalyst] Semi-OT testing question

2011-06-10 Thread Jesse Sheidlower
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,

Re: [Catalyst] Semi-OT testing question

2011-06-10 Thread Jesse Sheidlower
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" ); > > > > > >

[Catalyst] nginx configuration issues

2011-11-05 Thread Jesse Sheidlower
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/

Re: [Catalyst] nginx configuration issues

2011-11-06 Thread Jesse Sheidlower
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

Re: [Catalyst] nginx configuration issues

2011-11-06 Thread Jesse Sheidlower
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

Re: [Catalyst] Using Test::WWW::Mechanize::Catalyst on a test database

2012-02-15 Thread Jesse Sheidlower
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

[Catalyst] nginx/FastCGI configuration issues

2012-02-15 Thread Jesse Sheidlower
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.

[Catalyst] Extending session expiry time?

2012-02-16 Thread Jesse Sheidlower
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.

Re: [Catalyst] nginx/FastCGI configuration issues

2012-02-17 Thread Jesse Sheidlower
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

Re: [Catalyst] Extending session expiry time?

2012-02-17 Thread Jesse Sheidlower
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

Re: [Catalyst] Extending session expiry time?

2012-02-17 Thread Jesse Sheidlower
; 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

[Catalyst] DB values that change very rarely

2013-01-10 Thread Jesse Sheidlower
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

[Catalyst] Securing a connection

2013-05-14 Thread Jesse Sheidlower
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

Re: [Catalyst] Securing a connection

2013-05-22 Thread Jesse Sheidlower
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 >

[Catalyst] Memory usage with FCGI? Server running out of RAM

2015-06-11 Thread Jesse Sheidlower
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

Re: [Catalyst] Search example in any docs?

2008-09-24 Thread Jesse Sheidlower
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

[Catalyst] Testing against local but 'external' server?

2008-10-09 Thread Jesse Sheidlower
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: [Catalyst] PDF creation in Catalyst?

2008-10-22 Thread Jesse Sheidlower
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

[Catalyst] Simple caching question

2008-11-06 Thread Jesse Sheidlower
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

Re: [Catalyst] Simple caching question

2008-11-06 Thread Jesse Sheidlower
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

[Catalyst] OT Config::General question

2008-11-06 Thread Jesse Sheidlower
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:

Re: [Catalyst] Simple caching question

2008-11-07 Thread Jesse Sheidlower
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

Re: [Catalyst] Simple caching question

2008-11-07 Thread Jesse Sheidlower
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

Re: [Catalyst] Simple caching question

2008-11-07 Thread Jesse Sheidlower
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

Re: [Catalyst] Simple caching question

2008-11-08 Thread Jesse Sheidlower
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

[Catalyst] OT Apache question

2008-11-27 Thread Jesse Sheidlower
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

Re: [Catalyst] OT Apache question

2008-11-27 Thread Jesse Sheidlower
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 > &

Re: [Catalyst] OT Apache question

2008-11-27 Thread Jesse Sheidlower
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

Re: [Catalyst] OT Apache question

2008-11-28 Thread Jesse Sheidlower
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

Re: [Catalyst] Extra characters inserted into PDF output

2008-12-03 Thread Jesse Sheidlower
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

Re: $res->body question (was Re: [Catalyst] Extra characters inserted into PDF output

2008-12-21 Thread Jesse Sheidlower
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; } > >

[Catalyst] OT: Better TT pager?

2008-12-23 Thread Jesse Sheidlower
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.

Re: [Catalyst] Supressing passwords in debug messages

2009-01-07 Thread Jesse Sheidlower
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

Re: [Catalyst] how to confirm before deleteing

2009-01-21 Thread Jesse Sheidlower
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? > > > > > >

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-23 Thread Jesse Sheidlower
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 _

Re: [Catalyst] Re: New Catalyst Book?

2009-02-06 Thread 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

Re: [Catalyst] Re: New Catalyst Book?

2009-02-06 Thread 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

[Catalyst] Debugging help needed

2009-03-29 Thread Jesse Sheidlower
[% 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

Re: [Catalyst] Debugging help needed

2009-03-29 Thread Jesse Sheidlower
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

Re: [Catalyst] Debugging help needed

2009-03-29 Thread Jesse Sheidlower
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

[Catalyst] Gen. principles for JS integration?

2009-04-11 Thread Jesse Sheidlower
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

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

2009-04-24 Thread Jesse Sheidlower
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

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

2009-04-24 Thread Jesse Sheidlower
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

Re: [Catalyst] Final RFC for Press Release!

2009-04-28 Thread Jesse Sheidlower
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

[Catalyst] Using test database with TWAM?

2009-04-30 Thread Jesse Sheidlower
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

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Jesse Sheidlower
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

[Catalyst] OT: Catalysters at Hack Evening in London tonight?

2009-06-17 Thread Jesse Sheidlower
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/

Re: [Catalyst] OT: Catalysters at Hack Evening in London tonight?

2009-06-17 Thread Jesse Sheidlower
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

[Catalyst] Testing--best-practice help (long; will wiki the responses)

2009-06-17 Thread Jesse Sheidlower
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

Re: [Catalyst] Testing--best-practice help (long; will wiki the responses)

2009-06-17 Thread Jesse Sheidlower
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. %

[Catalyst] Clean access to config from outside Cat?

2009-06-18 Thread Jesse Sheidlower
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

Re: [Catalyst] Clean access to config from outside Cat?

2009-06-18 Thread Jesse Sheidlower
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

[Catalyst] "Use of uninitialized value $buffer" error

2009-06-20 Thread Jesse Sheidlower
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

Re: [Catalyst] "Use of uninitialized value $buffer" error

2009-06-26 Thread Jesse Sheidlower
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, $

[Catalyst] Authz: How granular to make roles?

2009-07-19 Thread Jesse Sheidlower
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/

Re: [Catalyst] Typo in Catalyst::Helper pod, patch included

2009-07-29 Thread Jesse Sheidlower
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 @@