Re: [Catalyst] DBIC v Cache: What are catalyst best practices for caching DBIC results (with relationships included)

2007-11-15 Thread Tobias Kremer
Quoting Ashley Pond V [EMAIL PROTECTED]: 'Cause I'm outta the loop. That looks quite nice. The doc is a bit terse (though that might really be all there is to it). Can you clear just a part of the cache? It's okay if not but I'd like to be able to clear one document or result_set out when

[Catalyst] Storing DateTime in session causes warning

2007-11-15 Thread Tobias Kremer
I'm storing a DateTime object in $c-session and I just realized that this is causing the following warning on every request: Use of uninitialized value in subroutine entry at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_freeze.al) line 290. The following reproduces the error

Re: [Catalyst] Storing DateTime in session causes warning

2007-11-16 Thread Tobias Kremer
Quoting Jason Kohles [EMAIL PROTECTED]: Tobias Kremer wrote: I'm storing a DateTime object in $c-session and I just realized that this is causing the following warning on every request: Use of uninitialized value in subroutine entry at ../../lib/ Storable.pm (autosplit

Re: [Catalyst] utf8 in mysql

2007-11-28 Thread Tobias Kremer
Quoting Angel Kolev [EMAIL PROTECTED]: Hi all. I have problem when fetch data from mysql. All data is in utf8 and in my phpmyadmin i can see all chars correctly. I dont know how to tell to my model to fetch data in utf8. With standart DBI module i can do it with : $dbh-do(set character set

[Catalyst] C::P::Authentication - user not found debug info

2007-12-11 Thread Tobias Kremer
Hey all, my log files are filling up with the following warning [debug] Unable to locate user matching user info provided This info is both annoying and not really helpful IMHO. I found out that it's issued via $c-log-debug() and immediately wondered why this produces output even when using

Re: [Catalyst] C::P::Authentication - user not found debug info

2007-12-11 Thread Tobias Kremer
Christopher H. Laco wrote: It seems the 'preferred' way to debug output is: $c-log-debug('boo') if $c-debug; That's exactly how I thought $c-log-debug() alone was working. Apparently, the latest C::P::Authentication has fixed this annoying warning anyway :) --Tobias

[Catalyst] Accessing $schema in Model glue class

2008-01-24 Thread Tobias Kremer
Like many, I have a MyApp::Model::Schema class that uses Catalyst::Model::DBIC::Schema as glue between my Catalyst app and my DBIx::Class model. AFAICT, MyApp::Model::Schema class would be a good place to issue a $schema-default_resultset_attributes( { cache_object ... } ) call which is needed by

Re: [Catalyst] Accessing $schema in Model glue class

2008-01-24 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: AFAICT, MyApp::Model::Schema class would be a good place to issue a $schema-default_resultset_attributes( { cache_object ... } ) call which is needed by DBIx::Class::Cursor::Cached. Is there an easy way to access $schema from within MyApp::Model::Schema

Re: [Catalyst] Accessing $schema in Model glue class (solved?)

2008-01-24 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: Realizing that MyApp::Model::Schema is already just a subclass of C::M::DBIC::Schema (doh!) I came up with the following solution that just overrides new(): Hmmm ... Could somebody take a look at the following version I came up with and tell me if using

Re: [Catalyst] Accessing $schema in Model glue class (solved?)

2008-01-25 Thread Tobias Kremer
Quoting Matt S Trout [EMAIL PROTECTED]: # in MyApp::Model::Schema (which ISA Catalyst::Model::DBIC::Schema) sub new { my $self = shift-NEXT::new(@_); my ($app, $config) = @_; $self-schema-default_resultset_attributes( { cache_object = $app-cache } ); return $self; } Above

Re: [Catalyst] Accessing $schema in Model glue class (solved?)

2008-01-25 Thread Tobias Kremer
Quoting Matt S Trout [EMAIL PROTECTED]: On Fri, Jan 25, 2008 at 10:13:38AM +0100, Tobias Kremer wrote: Quoting Matt S Trout [EMAIL PROTECTED]: # in MyApp::Model::Schema (which ISA Catalyst::Model::DBIC::Schema) sub new { my $self = shift-NEXT::new(@_); my ($app, $config

Re: [Catalyst] Process Template Toolkit Layouts

2008-02-01 Thread Tobias Kremer
Hi Jennifer, Quoting Jennifer Ahn [EMAIL PROTECTED]: i configured my WRAPPER path to be root/lib/site/wrapper where in my root/lib/site/wrapper file: [% PROCESS layout %] layout is under root/lib/stite/html but my application is looking for the layout file in root/src I'm not sure I'm

Re: [Catalyst] Dumb question of a beginner

2008-02-11 Thread Tobias Kremer
Quoting Alex Povolotsky [EMAIL PROTECTED]: How do I add server-side sorting for list operation? I want to select * from table sort by field instead of default select * from table I assume you're using DBIx::Class and I suggest you check out its introduction to learn about its basic operation:

Re: [Catalyst] model update

2008-02-25 Thread Tobias Kremer
Am 25.02.2008 um 21:56 schrieb Jennifer Ahn: my $obj = $c-model ('MyAppDB::Student')-update ( { name = $name }, { id = $id} ); I'm updating the name field where the id field is given for the model called Student. i'm not sure why, but the code above updates ALL row

Re: [Catalyst] Catalyst::Plugin::Authentication::Store::DBIx::Class deprecated?

2008-03-18 Thread Tobias Kremer
On 18.03.2008, at 19:18, Stephen Sykes wrote: Jochen Luig wrote: a coworker of mine just checked out a working copy of an existing project. When starting the app, he gets complains about Catalyst::Plugin::Authentication::Store::DBIx::Class not being installed. We couldn't find this module

Re: [Catalyst] Catalyst::Plugin::Authentication::Store::DBIx::Classdeprecated?

2008-03-18 Thread Tobias Kremer
On 18.03.2008, at 21:09, Octavian Rasnita wrote: Where can I read more about these namespaces changes? Should we continue to load these modules as plugins, or they are loaded by default? C::P::Authentication is still (and will probably always be) a plugin. However, the store and state

Re: [Catalyst]Catalyst::Plugin::Authentication::Store::DBIx::Classdeprecated?

2008-03-19 Thread Tobias Kremer
Quoting Octavian Rasnita [EMAIL PROTECTED]: From: Tobias Kremer [EMAIL PROTECTED] I suggest removing the old C::P::Authentication store/state backends completely and installing the new ones to avoid clashes between old installations of your app and possible future ones. I'm not sure

Re: [Catalyst] external javascript files

2008-03-24 Thread Tobias Kremer
On 24.03.2008, at 22:43, Jennifer Ahn wrote: i'm tyring to call my external javascript library under myapp/root/ src/myjavascript.js in my tt2 file by placing this line at the top of the tt2 file: script language=Javascript src=/myjavascript.js type=text/ javascript/script is this the right

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Tobias Kremer
On 11.06.2008, at 23:26, Aristotle Pagaltzis wrote: * Christopher H. Laco [EMAIL PROTECTED] [2008-06-11 23:05]: I'd much rather see a footer more like this one: http://movabletype.org/ ++ That’s exactly the kind of “what does the first-time visitor expect to see/do here?”-driven design

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Tobias Kremer
Quoting Kieren Diment [EMAIL PROTECTED]: On 12 Jun 2008, at 17:48, Tobias Kremer wrote: worse than the current Catalyst frontpage. They all pale in comparison to nearly EVERY other MVC framework's web site. Look at djangoproject.com, cakephp.org, symfony-project.org, even rubyonrails.org

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: The other proposed layouts are making fundamental mistakes regarding color scheme choice and/or distribution of elements. I'm not a professional web designer but a blue box with a thick light green frame below a dark red header and everything blurred

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Tobias Kremer
So it's subjective - the whole point of this was to provide -feedback- so the designers could understand what people did and didn't like. Telling us you'd be worried about Catalyst's future if we used any without a single bit of constructive criticism is ... well, frankly, completely useless

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Tobias Kremer
On 12.06.2008, at 20:22, Simon Wilcox wrote: Matt S Trout wrote: I was thinking about yours but can I get away with asking for all of the above? Given myself and kieren both find most of the other sites objectionable it'd be nice to see why you prefer them. I like the 60s/70s style of the

Re: [Catalyst] Catalyst site design drafts feedback thread

2008-06-17 Thread Tobias Kremer
On 17.06.2008, at 04:13, Kieren Diment wrote: On 17 Jun 2008, at 03:39, Jay K wrote: 6) http://www.funkreich.de/catalystorg.png I decided to review these again. I think that this one is my favourite, although I'd really like to see the crop circle integrated into the final design. I've

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-17 Thread Tobias Kremer
Quoting Aristotle Pagaltzis [EMAIL PROTECTED]: * Tobias Kremer [EMAIL PROTECTED] [2008-06-17 08:40]: I've incorporated some of the suggestions into the next version of the mockup which can be found here: Awesome. There are still nits, but you have already made those clear yourself, and itâ

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-17 Thread Tobias Kremer
Quoting Aristotle Pagaltzis [EMAIL PROTECTED]: * Tobias Kremer [EMAIL PROTECTED] [2008-06-17 11:40]: I've started to code the site and the ongoing process is available at http://www.funkreich.de/catalyst Hmm, that *requires* a maximised browser window on a 1024×768 screen. I don’t know

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-18 Thread Tobias Kremer
On 18.06.2008, at 00:18, Aristotle Pagaltzis wrote: * Tobias Kremer [EMAIL PROTECTED] [2008-06-17 16:05]: A width of 960 pixels is the current standard Any less than a 1020px window and I get a horizontal scrollbar. That is why I noticed at all. Ah yes, that's because of the padding around

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-19 Thread Tobias Kremer
Hey Mark, Quoting Mark Keating [EMAIL PROTECTED]: I have the original .eps file of the Catalyst logo, you will find it at: http://www.external.shadowcatprojects.net/data/common/images/catalyst logo.eps Thank you very much! Marcus Ramberg already pointed me to the catalyst subversion

Re: [Catalyst] DBIC register_source causing wierd Cat error?

2008-07-02 Thread Tobias Kremer
On Wed, 2 Jul 2008, Caroline Johnston wrote: OK, so I think I've worked out the cause: in the class_mappings: This is probably related to something that bit me a while ago: http://www.mail-archive.com/[EMAIL PROTECTED]/msg03468.html Could be something different though. I dunno if this was

Re: [Catalyst] Duplicate session problem?

2008-07-05 Thread Tobias Kremer
On 05.07.2008, at 23:21, Dr. Jennifer Nussbaum wrote: DBI Exception: DBD::mysql::st execute failed: Duplicate entry 'session:12a7c108ba07843441d5bed0' for key 1 [for Statement INSERT INTO sessions (id) VALUES (?) with ParamValues: 0='session: 12a7c108ba07843441d5bed0467e3398a8e7c3f1'] at

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-07-06 Thread Tobias Kremer
On 06.07.2008, at 21:29, J. Shirley wrote: On Thu, Jun 19, 2008 at 5:23 AM, Tobias Kremer [EMAIL PROTECTED] wrote: Thank you very much! Marcus Ramberg already pointed me to the catalyst subversion repository where the eps version is also stored :) Hey Tobias and all, What's the verdict

[Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL

2008-07-28 Thread Tobias Kremer
Hi list, I've written about this at least once in the past and still haven't been able to figure out a proper solution to the problem. We're getting loads (up to 30-40 per day) of the following fatal error: Duplicate entry 'flash:***' for key 1 [for Statement INSERT INTO sessions2 (id) VALUES

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL

2008-07-28 Thread Tobias Kremer
Quoting Peter Flanigan [EMAIL PROTECTED]: Tobias Kremer wrote: Duplicate entry 'flash:***' for key 1 [for Statement INSERT INTO sessions2 (id) VALUES (?) with ParamValues: 0='flash:***'] at /usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Plugin/Session/Store /DBIC/Delegate.pm line 52 What

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL

2008-07-29 Thread Tobias Kremer
Quoting Matt S Trout [EMAIL PROTECTED]: On Mon, Jul 28, 2008 at 01:03:52PM +0200, Tobias Kremer wrote: Is there anything speaking against wrapping line 52 of the DBIC backend class with an eval to trap this duplicate error and ignore it silently (or just warn about it) except the fact

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL

2008-08-04 Thread Tobias Kremer
On 29 Jul 2008, at 12:30, Tobias Kremer wrote: The short time window between the find() and create() calls of the find_or_create() method indeed is the problem. It sounds like this window should be too small to ever happen but in reality it happens very often in our (and other's) applications

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2008-08-26 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: just wanted to inform you that switching from MyISAM to InnoDB for the session table does NOT solve the duplicate entry problem when using flash() :( Just out of pure curiosity: Why is it that there are dedicated flash:hash entries in the storage

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2008-08-27 Thread Tobias Kremer
Quoting Daniel Westermann-Clark [EMAIL PROTECTED]: On 2008-08-26 14:18:18 +0200, Tobias Kremer wrote: Just out of pure curiosity: Why is it that there are dedicated flash:hash entries in the storage for the flash? Wouldn't the session be enough? The flash: rows were used

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2008-08-27 Thread Tobias Kremer
Quoting Daniel Westermann-Clark [EMAIL PROTECTED]: On 2008-08-26 09:47:59 +0200, Tobias Kremer wrote: Please note, that this is ONLY happening with the flash part - my sessions work 100% accurate all the time! How are you interacting with the flash vs. your sessions? Could you provide some

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2008-08-27 Thread Tobias Kremer
Quoting Moritz Onken [EMAIL PROTECTED]: Am 27.08.2008 um 10:19 schrieb Tobias Kremer: Ok, a second glance (after the first coffee) revealed that the separation is indeed there :) The question is, why? Just guessing: not every request has its own session object. There are users

[Catalyst] Intermittent blank pages

2008-08-28 Thread Tobias Kremer
Two days ago I suddenly started receiving intermittent blank pages. Immediately reloading the page led to the expected response. Looking at the error logs of the past two days I can see loads of the following error: Use of uninitialized value in concatenation (.) or string at

[Catalyst] Re: Intermittent blank pages

2008-08-28 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: This error was absolutely non-existent until a few days ago. AFAICT the only things that have changed since then is the session table now being InnoDB instead of MyISAM and Rose::HTML::Form has been updated to the latest version (5.7014). Err

Re: [Catalyst] Intermittent blank pages

2008-08-28 Thread Tobias Kremer
Quoting Sebastian Willert [EMAIL PROTECTED]: Are you using Perlbal in front of FastCGI? Perlbal is prone to deliver blank pages if the back-end times out. Unfortunately I haven't found a way to avoid this behavior, but maybe someone on the list can help out ... No, we're using lighttpd and

Re: [Catalyst] Intermittent blank pages

2008-08-28 Thread Tobias Kremer
Quoting [EMAIL PROTECTED]: Tobias Kremer [EMAIL PROTECTED] wrote on 08/28/2008 09:02:24 AM: Quoting Sebastian Willert [EMAIL PROTECTED]: Are you using Perlbal in front of FastCGI? Perlbal is prone to deliver blank pages if the back-end times out. Unfortunately I haven't found a way

Re: [Catalyst] Intermittent blank pages

2008-08-28 Thread Tobias Kremer
On 28.08.2008, at 18:48, [EMAIL PROTECTED] wrote: Is it possible that the concat error and resstart are related (memory load) but the blank pages are due to the restart killing (restarting) the procs off before the fastcgi payload is sent That was my guess, too. But if the problem is

Re: [Catalyst] Intermittent blank pages - possibly solved

2008-08-29 Thread Tobias Kremer
Quoting Tomas Doran [EMAIL PROTECTED]: On 28 Aug 2008, at 19:32, [EMAIL PROTECTED] wrote: That was my guess, too. But if the problem is really situated there it should have occurred much earlier. Nothing dramatically changed in our setup or application. I'll try a rollback of the

Re: [Catalyst] best practices - model or controller ?

2008-10-04 Thread Tobias Kremer
On 04.10.2008, at 08:16, Yves Räber wrote: I want to implement something really simple : log some events into a database. And I already can think of three way to do it, but because this will be used very frequently I'd like to know what's the best solution. For me the best solution would be to

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2008-11-20 Thread Tobias Kremer
On 20.11.2008, at 21:16, Sergio Salvi wrote: I still think the final solution (besides finding a way to make find_or_create() atomic), is to store flash data the session row (either on the same column of session or on a new, dedicated column). Sergio++ FWIW, I rolled my own flash mechanism

Re: [Catalyst] Custom fields in a model

2009-01-21 Thread Tobias Kremer
On 21.01.2009, at 19:24, Greg Coates wrote: Could I get some suggestion on the best way to add code to the model (or the schema) to allow me to add a custom field to the resultset without having an actual column in the database table? I want to Just add them as methods to your

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-15 Thread Tobias Kremer
On 15.02.2009, at 09:58, Kieren Diment wrote: On 15/02/2009, at 7:50 PM, Russell Jurney wrote: Yahoo has posted some Catalyst specific job listings, so presumably they use Catalyst for something. I can't say much because of confidentiality, but from the Catalyst survey late last year, I can

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-15 Thread Tobias Kremer
On 15.02.2009, at 09:40, Octavian Râsnita wrote: In my country there are no jobs for perl developers. There are jobs for Java, C#, C++ and PHp developers. The knowledge of perl is considered as an advantage in very few job announcements, but it is wanted mostly for administrative tasks, not

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-15 Thread Tobias Kremer
On 15.02.2009, at 13:39, Dan Dascalescu wrote: Aye, that it is: http://www.bbc.co.uk/blogs/bbcinternet/2008/12/iplayer_day_performance_tricks.html Thanks for the link. I added it as a support URL to http://www.appliedstacks.com/website/Bbc_Iplayer Cool, I've updated the Sites using Catalyst

Re: [Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Tobias Kremer
Hi Jarom, On 27.05.2009, at 18:59, Jarom Smith wrote: $vendor_name})-all; However, some of these methods are more complicated/complex and the proper DBIC invocation to produce an equivalent result to my DBI method is more than I would want to try to remember or replace each time I need to

[Catalyst] Potential query string pollution vulnerability?

2009-06-16 Thread Tobias Kremer
Hi all, I just experienced a nasty case of query string pollution vulnerability in one of my Catalyst/DBIC apps. I think that the circumstances under which this applies are not _that_ rare, so I figured it'd be best to inform the world. Imagine the following code in one of your actions: sub

Re: [Catalyst] Potential query string pollution vulnerability?

2009-06-16 Thread Tobias Kremer
You are not validating your input. That's all there is to say... True, but I think that many people are led to believe that their input is being correctly quoted by DBIC which in most cases it is, but in this particular case it is not. I'm just trying to safe people from the consequences of this

Re: [Catalyst] Potential query string pollution vulnerability?

2009-06-16 Thread Tobias Kremer
On Tue, Jun 16, 2009 at 1:14 PM, Octavian Rasnitaorasn...@gmail.com wrote: Try name = $c-req-params-{name} I think this was the recommended way, exactly for the reason you described. Thanks a lot! I didn't know that this was the recommended practice. Apparently, TIMTOWTDI striked again! :(

[Catalyst] How to use local::lib

2009-06-22 Thread Tobias Kremer
After reading about local::lib and thinking that it's too good to be true, I just had to try it out as a possible deployment method for one of our apps. I have the app and all dependencies running on my development box. The prerequisites are specified in my app's Makefile.PL. Now, after having

Re: [Catalyst] How to use local::lib

2009-06-23 Thread Tobias Kremer
On Mon, Jun 22, 2009 at 7:04 PM, Tomas Doranbobtf...@bobtfish.net wrote: On 22 Jun 2009, at 16:43, Tobias Kremer wrote: Am I missing something here or do I really have to checkout my app on a fresh installation with no prerequisites installed and try the above there? Yeah, pretty much

Re: [Catalyst] How to use local::lib

2009-06-23 Thread Tobias Kremer
On Tue, Jun 23, 2009 at 10:26 AM, Tomas Doranbobtf...@bobtfish.net wrote: I think you need a better separation between development and staging. If you're not running something production like in staging, then IMO you're really screwed. Actually, we do :) Developers can then use what they

Re: [Catalyst] Catalyst benchmark 5.7 VS 5.8

2009-09-29 Thread Tobias Kremer
On Mon, Sep 28, 2009 at 12:23 PM, Tomas Doran bobtf...@bobtfish.net wrote: top totally doesn't show how much RAM is shared by copy on write at all, and so is misleading you here. So, what's a better way to find out how much memory is shared? On our production servers top shows VIRT: 70116,

Re: [Catalyst] Deployment in practice

2009-10-09 Thread Tobias Kremer
2009/10/9 Octavian Râşniţă orasn...@gmail.com: I've recently started to use Mercurial for revision control and the pages regarding the deployment of a Catalyst app from the Catalyst wiki also help me very much, but I still don't know what would be the best method for uploading the files to the

[Catalyst] Page fragment caching

2010-01-20 Thread Tobias Kremer
Hey all, I have this CMS which generates static content into a Catalyst application. Because there is dynamic stuff like Most recent stories on almost every page, I'm rendering TT code into the content generated by the CMS and the final page is then eval'd by the main Catalyst TT view. (It's

Re: [Catalyst] Page fragment caching

2010-01-20 Thread Tobias Kremer
On Wed, Jan 20, 2010 at 10:43 AM, Carl Johnstone catal...@fadetoblack.me.uk wrote: Use Varnish as a caching-proxy in front-of your app. Use ESI to include the fragments and set appropiate cache-control headers in those reponses so Varnish can cache appropiately. Thanks! Unfortunately I don't

Re: [Catalyst] Page fragment caching

2010-01-21 Thread Tobias Kremer
On Wed, Jan 20, 2010 at 9:02 PM, Tomas Doran bobtf...@bobtfish.net wrote: As noted by already, serving ESI is a good way to do this. I'd recommend Catalyst::View::Component::SubInclude for this. It would be perfectly possible (and in fact quite easy) to write a backend for that which cached

Re: [Catalyst] HTML editor plugin

2010-02-03 Thread Tobias Kremer
I was looking at doing something like this recently. Was going to use a load of code from MojoMojo to deal with revisions, etc, from a SQLite DB. Then TinyMCE on the front. I'll second that. TinyMCE has proven to be very configurable, extensible, easy to use and produces quite clean markup.

Re: [Catalyst] HTML editor plugin

2010-03-02 Thread Tobias Kremer
On Tue, Mar 2, 2010 at 4:03 AM, Paul Falbe p...@cassens.com wrote: Is there a exmaple somewhere where I can see howto insert this code into a page made made FormBuilder i.e. the tt file? Our code which uses TinyMCE is not in production yet, so unfortunately I can't give you any online examples.

Re: [Catalyst] HTML editor plugin

2010-03-02 Thread Tobias Kremer
On Tue, Mar 2, 2010 at 1:30 PM, Paul Falbe p...@cassens.com wrote: Tobias, So, are you doing something like script type=text/javascript src=/jscripts/tiny_mce/tiny_mce.js/script Exactly! We don't use FormBuilder but here's a short excerpt from our TT template which uses TinyMCE: $(function()

Re: [Catalyst] Interaction between C::V::TT and C::P::Compress:Gzip?

2010-04-23 Thread Tobias Kremer
On Fri, Apr 23, 2010 at 1:46 PM, Stuart Watt sw...@infobal.com wrote: Just come across an interesting possible interaction between Catalyst::View::TT and Catalyst::Plugin::Compress:Gzip. The finalize method in Catalyst::Plugin::Compress:Gzip is failing as the installed body reference is

Re: [Catalyst] Interaction between C::V::TT and C::P::Compress:Gzip?

2010-04-23 Thread Tobias Kremer
I am relieved it is not just me (or my new Perl 5.12 build). However, I can confirm that the problem does not exist with C::V::TT 0.31, TT 2.22, and C::P::Compress::Zlib 0.04. There are changes logged in C::V::TT in this area, so I guess that's where to look next. You're right! Upgrading to

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-26 Thread Tobias Kremer
Now that it's quietened down, I can ask a question. Does this I mean it's preferable to use $c-req-{parameters}-{foo} rather than $c-req-param('foo') AFAIK, the preferred way is: $c-req-params-{ 'foo' } --Toby ___ List:

[Catalyst] Catalyst::Plugin::Session: Duplicate entry errors

2010-05-07 Thread Tobias Kremer
Hey folks, we're still getting a couple of duplicate entry errors every day (about 10-15 on a site with 20 million page impressions/month) caused by Catalyst::Plugin::Session (0.25) used with the DBIx::Class storage backend (0.10) and a MySQL 5 with an InnoDB session table which was created

[Catalyst] DBIC custom SQL hack stopped working after upgrading Catalyst

2010-08-06 Thread Tobias Kremer
Hey folks, our app is using the following old and rather obscure hack which injects some custom SQL to perform a UNION. This works perfectly with the latest DBIC 0.08123 and Catalyst::Runtime 5.80007. However, after upgrading to the latest Catalyst::Runtime 5.80025 the app doesn't start anymore

Re: [Catalyst] DBIC custom SQL hack stopped working after upgrading Catalyst

2010-08-09 Thread Tobias Kremer
Hey t0m, Couldn't load class (MyApp) because: DBIx::Class::Row::throw_exception(): Can't locate object method register_source via package MyApp::Schema at xxx/MyApp/Schema/User.pm line 357 (see line below). Can you load Devel::SimpleTrace and get a full stack trace of the failure? Sure, see

Re: [Catalyst] DBIC custom SQL hack stopped working after upgrading Catalyst

2010-08-09 Thread Tobias Kremer
On Mon, Aug 9, 2010 at 12:24 PM, Tobias Kremer tobias.kre...@gmail.com wrote: Couldn't load class (MyApp) because: DBIx::Class::Row::throw_exception(): Can't locate object method register_source via package MyApp::Schema at xxx/MyApp/Schema/User.pm line 357 (see line below). Can you load

[Catalyst] Oddness with Session and Static::Simple

2010-09-14 Thread Tobias Kremer
Guys, did this ever get fixed: http://lists.scsys.co.uk/pipermail/catalyst/2010-April/025181.html I'm seeing the same problems after upgrading Catalyst and all plugins. Here's what I'm using: - Catalyst 5.80027 - Catalyst::Plugin::Static::Simple 0.29 - Catalyst::Plugin::Session 0.30 -

[Catalyst] Re: Oddness with Session and Static::Simple

2010-10-12 Thread Tobias Kremer
On Tue, Sep 14, 2010 at 1:18 PM, Tobias Kremer tobias.kre...@gmail.com wrote: Guys, did this ever get fixed: http://lists.scsys.co.uk/pipermail/catalyst/2010-April/025181.html For the record: I just realized that this has been fixed in the recently released Catalyst::Plugin::Session 0.31. See

[Catalyst] Content Encoding Errors with Catalyst::Plugin::Compress

2011-01-26 Thread Tobias Kremer
We're currently stuck with using Catalyst::Plugin::Compress(::Gzip) to compress our Catalyst output because mod_fastcgi doesn't work with mod_deflate. Unfortunately, with this plugin enabled, anytime our app throws an error during development we receive a Content Encoding Error page instead of the

[Catalyst] Failed to load user data.

2011-01-28 Thread Tobias Kremer
After upgrading Catalyst and most of the plugins to their latest versions, everything seemed to work fine at first. But after returning to my dev system after lunch, out of nowhere our app threw the following error: Failed to load user data. You passed [ARRAY(0x798e540)] to authenticate() but

[Catalyst] Re: Failed to load user data.

2011-01-28 Thread Tobias Kremer
On Fri, Jan 28, 2011 at 8:59 AM, Tobias Kremer tobias.kre...@gmail.com wrote: After upgrading Catalyst and most of the plugins to their latest versions, everything seemed to work fine at first. But after returning to my dev system after lunch, out of nowhere our app threw the following error

Re: [Catalyst] Browser Detection?

2011-03-06 Thread Tobias Kremer
On 06.03.2011, at 11:56, John M. Dlugosz wrote: I'm supposing that there must be something in the request object that lets me know if I'm serving to particular browsers, in particular to whatever version of IE. Then, in some single place in the app, automatically digest that and stick a

Re: [Catalyst] Best form library?

2011-03-06 Thread Tobias Kremer
On 06.03.2011, at 16:31, Octavian Rasnita wrote: From: John M. Dlugosz wxju46g...@snkmail.com What's the best form-generating/processing library for Catalyst, assuming I don't need to worry about old baggage and can move forward with the latest and greatest stuff? It depends on what you

Re: [Catalyst] Open Source CMS

2011-04-29 Thread Tobias Kremer
On Thu, Apr 28, 2011 at 6:40 PM, Mike Raynham catal...@mikeraynham.co.uk wrote: I've started to look into some of these systems, including Drupal and Bricolage.  For my sins, I have spent a lot of time working with PHP, so whilst I'd prefer a Perl framework, using a PHP system wouldn't really

Re: [Catalyst] Return a TT view

2011-05-21 Thread Tobias Kremer
You can use a variable (like no_wrap) to control your wrapping. Have a look at this thread: http://www.gossamer-threads.com/lists/catalyst/users/9385?do=post_view_threaded#9385 Hope this helps! --Toby On 21.05.2011, at 18:05, jeff robinson jeffreyianrobin...@gmail.com wrote: Alejandro I'm

[Catalyst] Session duplicate key constraints on concurrent requests

2011-10-07 Thread Tobias Kremer
Dear all, I've written about this issue a couple of times in the past and it seems that this still hasn't been fixed. Here's what's happening: 1. Request A comes in with an expired session cookie, C::P::Session tries to find the session for the given cookie but finds nothing. 2. Meanwhile,

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

2011-10-07 Thread Tobias Kremer
Hi Janne, I appreciate your taking the time to look into this. Unfortunately your patches are for the Store::DBI backend, whereas I'm using Store::DBIC (DBIx::Class). The INSERT IGNORE solution is probably exactly what this case needs, but as you said, it's MySQL-specific and thus not suitable

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

2011-10-10 Thread Tobias Kremer
Here's an interesting fact: Whenever I hit MyApp with an invalid session id (i.e. one, that isn't in the store), the plugin tries to insert this exact session id. If two concurrent requests with an invalid session come in, they both try to (re-)create this invalid session. This is due to the use

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

2011-10-10 Thread Tobias Kremer
On Mon, Oct 10, 2011 at 2:26 PM, Matthias Dietrich mdietr...@cpan.org wrote: wouldn't that result in two new sessions?  Your first request would create session:new1 and the second session:new2, so you'll end up loosing info from session:new1. Yes, but does that really matter? If you're using

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

2011-10-10 Thread Tobias Kremer
] Created session new-session-id This leads me to believe that Session::Store::DBIC is simply broken! I'll try switching to Store::DBI for now and see if that solves the problem in production. --Toby On Mon, Oct 10, 2011 at 2:56 PM, Tobias Kremer tobias.kre...@gmail.com wrote: On Mon, Oct 10

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

2011-10-10 Thread Tobias Kremer
On Mon, Oct 10, 2011 at 4:07 PM, Matthias Dietrich mdietr...@cpan.org wrote: Am 10.10.2011 um 15:59 schrieb Denny: The word you both want is 'lose'.  Loose means something slightly different (and slightly odd, when discussing data). Absolutely! Sorry for the typo :) Your right ;-). And

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

2011-10-12 Thread Tobias Kremer
, 2011 at 11:22 AM, Will Crawford billcrawford1...@gmail.com wrote: On 10 October 2011 16:00, Tobias Kremer tobias.kre...@gmail.com wrote: On Mon, Oct 10, 2011 at 4:07 PM, Matthias Dietrich mdietr...@cpan.org wrote: Am 10.10.2011 um 15:59 schrieb Denny: The word you both want is 'lose'.  Loose

Re: [Catalyst] Database access benchmarks for use in web-frameworks - How does Perl compare?

2011-11-03 Thread Tobias Kremer
Hi Alec, On Thu, Nov 3, 2011 at 11:42 AM, Alec Taylor alec.tayl...@gmail.com wrote: Are there recent accessible statistics available, comparing these metrics across the most popular web-frameworks? (i.e. Symfony, DJango, Rails, ASP.NET etc) I don't have any statistics, but I can tell you that

[Catalyst] Wiki down

2012-03-06 Thread Tobias Kremer
Just a heads up: The Catalyst wiki is down since at least yesterday. Does nobody monitor these things? Compared to other frameworks, the whole site looks horrible enough, we should at least try to keep it working. Links to MetaCPAN instead of plain old CPAN would be nice as well. Is there a public

Re: [Catalyst] Wiki down

2012-03-07 Thread Tobias Kremer
On Wed, Mar 7, 2012 at 8:51 AM, Dimitar Petrov mita...@gmail.com wrote: I've asked yesterday at #catalyst and it seems to be unmodified mojomojo installation. The reason it's 503ing sometimes is probably memory leak. You can ask there to get more information. Thanks Dimitar, but I'm certainly

Re: [Catalyst] Wiki down

2012-03-08 Thread Tobias Kremer
It's all live deploy, so try not to break anything :-) Cheers, Devin! I'll see what I can do. ;-) --Toby ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive:

[Catalyst] New catalystframework.org

2012-03-13 Thread Tobias Kremer
Dear list, it is with great pleasure that I can announce a redesign of the old Catalyst framework front page. Some of you may remember the draft from a couple of years back when I first came up with it here on the list. I tweaked a couple of things (e.g. everything links to MetaCPAN) and t0m++

Re: [Catalyst] New catalystframework.org

2012-03-13 Thread Tobias Kremer
Hi! * The eBook (PDF) from Apress link is broken. Fixed in trunk. * grey on black is difficult to read Made the links in the footer a tad lighter. * The amazon.com link leads to amazon.co.uk (not a problem, but unexpected) It looks like the link is some sort of affiliate link

Re: [Catalyst] New catalystframework.org

2012-03-14 Thread Tobias Kremer
Hi Oleg, On Tue, Mar 13, 2012 at 7:29 PM, Oleg Kostyuk cub.ua...@gmail.com wrote: 1) it don't fit into 1600x1200 (by height) - and so, it will not fit into smaller screens. I think, main page should be bit smaller, and should fit into 1280x1024 at max. I think it will look even better, if

Re: [Catalyst] New catalystframework.org

2012-03-14 Thread Tobias Kremer
Assuming that the people working on the site are happy with / would like to move to git. Toby? I'm totally fine with that :) Cheers! --Toby ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] New catalystframework.org

2012-03-15 Thread Tobias Kremer
On Wed, Mar 14, 2012 at 7:50 PM, Emanuele Zeppieri ema...@gmail.com wrote: Just one thing: the body background-color should be explicitly set to white, otherwise those users who have set a browser custom fallback background color (different from white), will see that. Good point! Fixed it in

Re: [Catalyst] New catalystframework.org

2012-03-21 Thread Tobias Kremer
, Mar 16, 2012 at 2:33 PM, Len Jaffe lenja...@jaffesystems.com wrote: It should be an icon of a person with the top of their skull open, on a hinge, and a second person pouring the universe into the open skull. On Fri, Mar 16, 2012 at 9:21 AM, Tobias Kremer tobias.kre...@gmail.com wrote: You're

[Catalyst] Vagrant / Developing with VM / NFS performance

2012-05-14 Thread Tobias Kremer
I'm playing around with Vagrant[1] to manage my development VMs and I'm running into some NFS-troubles and just wanted to hear if and how you guys are developing with a guest OS. The thing is that Vagrant by default configures the VM to export a shared directory (where my Catalyst app lives) from

  1   2   >