Quoting Ian Docherty [EMAIL PROTECTED]:
Did I not see something on here, or on DBIx-class list some time ago to
the effect that in find_or_create there is a short window where having
found that a record does not exist it then creates it. I presume that
two threads could each detect that a
After deploying our new Catalyst application I'm receiving this
error quite often per day:
DBIx::Class::ResultSet::find_or_create(): DBI Exception:
DBD::mysql::st execute failed: Duplicate entry
'flash:9b11b5354715b56c9395abdf21544e83db5b0814' for key 1
[...] at
Quoting Stefan Kühn [EMAIL PROTECTED]:
I have a problem when outputting special characters with
Template-Toolkit and C::P::Unicode. I passed a simple template
parameter from the controller to the view. The parameter contains a
special character and is being garbled in the output.
* In
Is anybody here using Catalyst + RHTMLO, especially Rose::HTML::Form, to handle
forms? If yes, I'd like to know what your glue code (init forms from db,
re-fill from $c-req-params etc.) looks like because RHTMLO has a somewhat
different approach to handling things and I have the feeling that I'm
Quoting Felix Antonius Wilhelm Ostmann [EMAIL PROTECTED]:
Why de and at dont use the correct spelling?
(de) Bitte versuchen sie es später nocheinmal
(at) Konnten's bitt'schön später nochmal reinschauen
Don't know about (at) but (de) should be:
Bitte versuchen Sie es später noch einmal
While hunting down some memory leaks in my application I found that it's
generally a bad idea to store $c in a class as this never gets cleared up
completely, is that correct?
I'm also doing things like this which seem to cause major leaks:
$foo-bar( coderef = sub { return $c-forward(
Has anyone seen stuff like a Messages Queue (I dont have other words for
it) But a more generic implementation of a thing where you can put in
messages and pick them out in some other part of the program.
It would be nice when you have stuff that takes longer that people usually
can wait
Evaldas Imbrasas wrote:
I would like to annouce the launch of a new website using Catalyst
(along with DBIC and Template Toolkit):
EVO: eco-friendly products, services, and information
http://www.evo.com/
Please feel free to add our website to the growing list of websites
using
I just deployed our quite large Catalyst app and I'm seeing a constant increase
in memory usage. Here's a current snapshop from top:
PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND
29342 www 16 0 67156 60m 3180 S1 3.0 0:13.87 perl
29332 www 25 0 41052 34m 1204 S
Quoting Bernhard Graf [EMAIL PROTECTED]:
On Thursday 16 August 2007 10:40, Tobias Kremer wrote:
We're using lighttpd and handle the starting of the FCGI server
manually. Is there a way to have the FCGI children restart once in a
while without having to restart the whole FCGI process manager
Quoting Bernhard Graf [EMAIL PROTECTED]:
You should definitely do that. Not only for this case - daemontools (or
similar like runit) are superior for nearly every server service on *ix
OSes. Check out http://smarden.org/runit/runscripts.html and compare
the scripts with typical System-V run
Quoting Bernhard Graf [EMAIL PROTECTED]:
On Thursday 16 August 2007 14:32, Tobias Kremer wrote:
Quoting Bernhard Graf [EMAIL PROTECTED]:
You should definitely do that. Not only for this case - daemontools
(or similar like runit) are superior for nearly every server
service on *ix OSes
Following up on a conversion I started on the DateTime mailing-list I'd like to
ask if it is really neccessary to use C::P::Unicode if a site uses
utf8-encoding?
I have the problem that up until now everything worked absolutely fine without
C::P::Unicode, Template::Stash::ForceUTF8,
Tobias,
I tried jrock's advice of adding C::P::Unicode to the Cat app you sent
me a couple days ago - and it does fix the encoding problem.
I also did that but it only works in some cases. Try adding a block element to
the FormFu YAML file (or a comment for the date element) that contains
Zitat von Tatsuhiko Miyagawa [EMAIL PROTECTED]:
Similarly even if your templates are encoded in utf-8,
Template-Toolkit doesn't know which encoding they are in, until you
set BOM to your templates or use Template::Provider::Encoding to
explicitly specify the encoding to decode the template.
Zitat von Tatsuhiko Miyagawa [EMAIL PROTECTED]:
Similarly even if your templates are encoded in utf-8,
Template-Toolkit doesn't know which encoding they are in, until you
set BOM to your templates or use Template::Provider::Encoding to
explicitly specify the encoding to decode the template.
I
View::TT
ENCODING: UTF-8
Template provider will see you are running a modern Perl (UNICODE flag
in provider) and then look for a Byte Order Mark. If not found it
will then decode your content based on the ENCODING setting.
No, you don't need Template::Provider::Encoding if you only
I'm wondering if it has any bad side effects to have a TT macro which is set to
$c-uri_for. If I'm remembering previous posts on this topic correctly, calling
uri_for() repeatedly has quite a big impact on performance which really matters
most for my current application. I have this in a global
Zitat von Hartmaier Alexander [EMAIL PROTECTED]:
Hi Octavian!
They all have nothing to do with either the template language or the web
framework.
I started using Dojo for some nice fading effects and a date selector and
imho
the docs are ok.
From the moment I started using jQuery I never
Tobias Kremer wrote:
FastCgiExternalServer: redefinition of previously defined
class /srv/myapp.fcgi.
I'm using mod_fastcgi-SNAP-0404142202 with Apache 2.0.59 both compiled
from source.
Do you have each FastCgiExternalServer directive pointing to a different
instance
Does anyone know if it's possible to distribute requests to multiple external
FastCGI servers with Apache2 + mod_fastcgi similar to the round-robin
load-balancing approach lighttpd provides? I have this large legacy app running
on mod_perl behind an apache2 reverse proxy where I'd like to plug in
Am 28.07.2007 um 10:12 schrieb Jonathan T. Rockway:
On Sat, Jul 28, 2007 at 09:15:36AM +0200, Tobias Kremer wrote:
I think you're right: The error is due to my poor-man's approach of
load-testing.
BTW, how are you invoking ab? I think each request should get its own
cookie, which means
While hammering my site with ab (Apache bench) I'm getting loads of the
the following error message:
Couldn't render template undef error -
DBIx::Class::ResultSet::find_or_create(): DBI Exception:
DBD::mysql::st execute failed: Duplicate entry
'flash:4f1bddce6c7828c27b2e47265f614109d4c21f19'
for
Am 27.07.2007 um 20:14 schrieb J. Shirley:
On 7/27/07, Tobias Kremer [EMAIL PROTECTED] wrote:
While hammering my site with ab (Apache bench) I'm getting loads
of the
the following error message:
Couldn't render template undef error -
DBIx::Class::ResultSet::find_or_create(): DBI Exception
Hi.
I want to call -uri_for from my DBIC sources, but it is object
method, so MyApp-uri_for doesn't work.
How do I access current catalyst object ($c)?
Why would you want to do that? Your schema/model shouldn't know about
URIs.
If you really need to, you could use the ACCEPT_CONTEXT
The manpage of Catalyst::Request::Upload suggests the following:
--snip--
To specify where Catalyst should put the temporary files, set the 'uploadtmp'
option in the Catalyst config. If unset, Catalyst will use the system temp dir.
__PACKAGE__-config( uploadtmp = '/path/to/tmpdir' );
--snip--
On Jun 8, 2007, at 10:09 AM, Tobias Kremer wrote:
The manpage of Catalyst::Request::Upload suggests the following:
--snip--
To specify where Catalyst should put the temporary files, set the
'uploadtmp'
option in the Catalyst config. If unset, Catalyst will use the
system temp dir
Am 16.05.2007 um 11:54 schrieb Xavier Robin:
VirtualHost site2.domain.tld:80
ServerNamesite2.domain.tld:80
DocumentRoot /home/xrobin/MIAPE/root
LogLevel debug
ErrorLog /home/xrobin/catalyst_error_log
Location /
SetHandler
Following up on my post from yesterday to the HTML::FormFu mailing list
I found out that using the Catalyst::Plugin::StackTrace plugin together
with HTML::FormFu (and Catalyst::Controller::HTML::FormFu) results in an
enormous slowdown when using lots of options for e.g. select elements.
See one
But, this does raise another question I have. There is plethora of modules
that are to help Perl be more OO like and stricter which is cool, but
are there any good de-facto standard modules that are used by the majority of
people wishing to be more OO compliant.
That'd be Moose, I
Zitat von Bogdan Lucaciu [EMAIL PROTECTED]:
On Tuesday 08 May 2007 03:55:31 Kieren Diment wrote:
Intermediate Perl
the name is (now) Learning Perl Objects, References, and Modules
http://www.oreilly.com/catalog/lrnperlorm/
I think it's the other way round. The name is NOW Intermediate
I seem to remember hearing sth a few months ago about a comp between various
MVC apps comprising of various teams / tasks / time limits etc.
Does anyone know what I'm talking about here?!
If s.o does, what became of it and are there any links to be had to read up
on what happened?
You
Hmmm, no, I don't think that is what I was talking about (though it might
be)
I thought the competition was made up of teams that were part of communities
rather than companies.
Oh, okay, nevermind then. Sounds interesting, though. Tell us if you find
something out about it.
Plus, I'm
Hi Dmitri,
I have
a) JavaScript files (*.js) and
b) images,
which I want to use with catalyst.
Where should I put them in order to be able to use it?
Take a look at the Static::Simple plugin which is enabled
by default:
http://search.cpan.org/dist/Catalyst-Plugin-Static-Simple/
By default,
Zitat von Hartmaier Alexander [EMAIL PROTECTED]:
Most of the users of my cat apps use IE6/7, some (and I) Firefox.
Some times in the past IE users couldn't login, deleting the cookies solved
the problem, but it occurred only 3-4 times so I didn't investigate further.
And what should I do
Am 28.02.2007 um 12:12 schrieb Carl Johnstone:
I would like to announce that www.manchestereveningnews.co.uk has
just been relaunched using Catalyst and mod_perl.
Nice one, Carl!
How is the content managed? I'd like to know if you integrated your
Catalyst application with an existing
Following up on a recent post to the list concerning templates in the database
I'm wondering what the current status of Template::Provider::DBI is and if
anyone is using it in production within Catalyst? I just found out that it
seems to be incompatible with Catalyst::View::TT::ForceUTF8, for
I was just looking at this last week, as I was using the code as a
basis for a new controller. I suspect that it's never been tested,
because as far as I can tell, it incorrectly reads the config from the
controller object, rather than the application object.
Yeah, I stumbled across this the
I have tried to get the id of the currently logged user, using:
$c-user-id
But it returned same thing as
$c-user (the username and not its ID).
Hi Octavian,
Assuming you are using DBIC, try:
$c-user-get_column('id')
Or, alternatively, you could use $c-user-obj-id (I think).
HTH,
My application stores all dates in a MySQL database in the UTC timezone.
Because I'm doing further calculations with these dates after retrieving them
via DBIx::Class I don't want them to get auto-inflated into the timezone
of the current user. The DateTime POD recommends doing date calculations
Zitat von Chisel Wright [EMAIL PROTECTED]:
I tend to use the following in my schema classes to deal with timestamps
in my app(s):
Yes, that's also what the DBIx::Class::InflateColumn::DateTime component which
I'm using for this purpose does:
Having only one team for Perl is quite bad,
especially since one of the organizers happens to be the iX magazine
(http://www.heise.de/ix/),
which has a big influence in the german speaking world. :/
Today I was in a meeting with one of Germany's top twenty
internet agencies to speak about the
We do something similar with the Krang CMS publishing content served by
CGI::Application. We have it write out templates and metadata for each
application (story in Krang terminology) in separate directories [...]
To do this kind of thing with Catalyst, you might want to just publish
little
Daniel McBrearty schrieb:
now I have the hang of building apache/perl from source ...
what's the rationale behind the perl is normally built with thread
support OFF in a production environment?
is that what is recommended for cat under mod_perl / fastcgi?
AFAIK, if you don't really
I have my content-type header set to ISO-8859-1 because I'm dealing with
legacy data from a latin1 encoded MySQL database (otherwise data from the
database is not displayed correctly in the browser). There's a form on my
site for searching users by attribute. Now here's the problem:
Doing a
the common
header/footer around 'em)? Is that possible? Something like Mason's
%flags
inherit = undef
/%flags
would be cool!
Thanks a lot for your help!
--
Tobias Kremer
Web Architect
___
List: Catalyst@lists.rawmode.org
Listinfo: http
Zitat von Jurgen Pletinckx [EMAIL PROTECTED]:
hang on. There _is_ a perl job market in Belgium? That's good to know
I didn't find one last time I looked. (But then, that was long ago,
and I didn't look very hard.)
Which raises my all-time favourite question: Why is Perl still going strong
in
47 matches
Mail list logo