Cory Watson ha scritto:
On 9/19/07, Marcello Romani <[EMAIL PROTECTED]> wrote:
Do you use it in cat apps on in plain dbic ?
Could you provide an example of usage ?
http://www.onemogin.com/blog/554-profile-your-catalystdbixclass-app-with-querylog.html
The syntax has changed a bit due
Cory Watson ha scritto:
On 9/19/07, Marcello Romani <[EMAIL PROTECTED]> wrote:
Do you use it in cat apps on in plain dbic ?
Could you provide an example of usage ?
http://www.onemogin.com/blog/554-profile-your-catalystdbixclass-app-with-querylog.html
The syntax has changed a bit due
Cory Watson ha scritto:
On 9/19/07, Marcello Romani <[EMAIL PROTECTED]> wrote:
Do you use it in cat apps on in plain dbic ?
Could you provide an example of usage ?
http://www.onemogin.com/blog/554-profile-your-catalystdbixclass-app-with-querylog.html
The syntax has changed a bit due
Cory Watson ha scritto:
On 9/19/07, Marcello Romani <[EMAIL PROTECTED]> wrote:
First of all, thanks for the response and for your tip.
I get the info out of querylog by putting it into the stash and by
calling its methods from the same template used in the docs of the
schema module (th
Cory Watson ha scritto:
On 9/19/07, Marcello Romani <[EMAIL PROTECTED]> wrote:
Again on querylog vs. catalyst...
I've setup a minimal app to test the querylog stuff, but, I can't get
any results, i.e. the statistics obtained from querylog are always zero.
The attached file con
Local {
my ( $self, $c ) = @_;
$c->stash->{items} = $c->model('Users');
return;
}
[snip]
1;
users/list.tt
=
[% SET item = items.next %]
[% WHILE item %]
[% item.id %]
[% item.name %]
[% item.email %]
Marcello Romani ha scritto:
Marcello Romani ha scritto:
Matt S Trout ha scritto:
On Wed, Sep 12, 2007 at 04:13:36PM +0200, Marcello Romani wrote:
Hallo,
I've installed C::P::QueryLog and installed the template
provided by the pod doc, but I always get 0.00 seconds of elapsed
tim
Marcello Romani ha scritto:
Matt S Trout ha scritto:
On Wed, Sep 12, 2007 at 04:13:36PM +0200, Marcello Romani wrote:
Hallo,
I've installed C::P::QueryLog and installed the template provided
by the pod doc, but I always get 0.00 seconds of elapsed time, no
matter how many db acces
Matt S Trout ha scritto:
On Wed, Sep 12, 2007 at 04:13:36PM +0200, Marcello Romani wrote:
Hallo,
I've installed C::P::QueryLog and installed the template provided
by the pod doc, but I always get 0.00 seconds of elapsed time, no matter
how many db accesses I do.
Uninstall it and us
Matt S Trout ha scritto:
On Mon, Sep 10, 2007 at 09:06:07AM +0200, Marcello Romani wrote:
Matt S Trout ha scritto:
On Mon, Aug 27, 2007 at 05:10:23PM +0200, Marcello Romani wrote:
Hi,
I'm developing an app using cat and dbic, with postgresql 8.1.
I've got a table with a "
chema storage, and activate its debug
flag. But I understand that the connection is not made until some db
data is actually needed...
My question is therefore this: is there something I need to setup in the
app config to make querylog collect data ?
Thanks in advance.
--
Marcello Romani
Responsabi
ransact dbic calls via txn_do(), passing it a subref that does
the actual work.
i.e.:
$schema->txn_do( sub { $item->delete(); } );
Just my 2 cents.
HTH
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
Matt S Trout ha scritto:
On Mon, Aug 27, 2007 at 05:10:23PM +0200, Marcello Romani wrote:
Hi,
I'm developing an app using cat and dbic, with postgresql 8.1.
I've got a table with a "unique" column.
When I try to insert a record that violates that constraint (the c
and ignored
until end of transaction block."
The connection options include AutoCommit=1.
The two attachments include the log output of myapp_server.pl for
exactly the same http POST request, with and without the -d flag
respectively.
Thanks in advance for any help.
--
Marcello Roma
isting one with a new topic, otherwise your question is
likely to be ignored; 2) post the code of your app, so we can better
help you.
Thanks.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.r
Tom Lanyon ha scritto:
On 30/05/2007, at 3:39 PM, Marcello Romani wrote:
Do you also have
__PACKAGE__->set_primary_key('id');
?
You need:
- an add_column() or add_columns() line for your 'id' column
- the above set_primary_key('id') line
-
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
Do you also have
__PACKAGE__->set_primary_key('id');
?
--
Marcello Roma
mla ha scritto:
Marcello Romani wrote:
In MyApp/Model I usually have only MyAppDB.pm, which role is to expose
the DBIC::Schema classes under MyAppDB/ as a catalyst model.
This doesn't mean however that "I would never create anything" else.
If all I need is one dbic schema, the
, what do you mean by "real" models ?
Just my 2 cents.
HTH
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable arc
ike to read it too.
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
et belongs.
I assumed that the config code snipped could belong in MyApp.pm because
I thought it would set some sort of default for C::FB. Probably I didn't
realize I was thinking about C::FB more as a plugin than as a base class...
Given the information provided now, I think that the bas
RA Jones ha scritto:
Marcello Romani wrote:
RA Jones ha scritto:
It looks like your output is showing both debug1 and debug2 levels,
which suggests your fb config settings are not being used. Did you place
That's what I thought too.
Where do you put the "debug" option
RA Jones ha scritto:
Marcello Romani wrote:
RA Jones ha scritto:
It looks like your output is showing both debug1 and debug2 levels,
which suggests your fb config settings are not being used. Did you place
That's what I thought too.
Where do you put the "debug" option
RA Jones ha scritto:
Marcello Romani wrote:
Hmm, I tried your code (which afaikt should work) but putting 0,1 or 2
doesn't make any difference in the type or amount of debug messages
the app is emitting.
I'll double check my code and report. Thanks for now.
It looks like your
RA Jones ha scritto:
Marcello Romani wrote:
Hi all,
I have a problem with Catalyst::Controller::FormBuilder.
It prints way too much debug information, filling up my consolle's
screen buffer :-)
If I turn off Catalyst debgging by omitting the -Debug option the
debug messages disa
RA Jones ha scritto:
Marcello Romani wrote:
Hi all,
I have a problem with Catalyst::Controller::FormBuilder.
It prints way too much debug information, filling up my consolle's
screen buffer :-)
If I turn off Catalyst debgging by omitting the -Debug option the
debug messages disa
ven tried to call ->debug as a class method on CGI::FB.
It would be nice to set CGI::FB debug level independently of the Cat one.
Anyone has ideas ?
TIA.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
__
Lee Goddard ha scritto:
From: Marcello Romani [mailto:[EMAIL PROTECTED]
Lee Goddard ha scritto:
Is there a variable somewhere that can tell me when Catalyst's
dev-server is starting up? Because it seems to be calling every
method
I've written, but without parameters, which int
/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
Can you be more specific ?
What do you mean by 'calling every method I've written ?'
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
icer than grep(1) for source code.
Just installed the tool, and found that issuing
ack --perl 'use (.*?)::' lib/
inside MyApp/ folder can be very useful.
Thanks for mentioning that package.
--
Marcello Romani
Responsabile IT
Ottotecnica s.
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
Li
.org/
Wow! Very cool. Thanks for sharing this.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http:/
most people use at least for a while ... "
Yes, I agree. Although I understand that Johnathan’s book is
already quite a way along, and I don’t know how he structured it
(he posted an outline and dicussion though), but whatever it is
is probably not changing at this point.
Regards,
--
Ma
er of a Framework any 'benchmark' that doesn't take those
things into account is so much fluff and of no use to me.
Agreed.
JayK
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst
.
Just my 2 (euro)cents.
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
--
Marcel
Lee Standen ha scritto:
lern2putty :D
There's an option to turn on X11 forwarding, and it works :)
I've seen it, but I've just ignored it.
As I said, I've been lazy wrt this thing.
:-)
Marcello Romani wrote:
A. Pagaltzis ha scritto:
* Marcello Romani <[EMAIL PRO
A. Pagaltzis ha scritto:
* Marcello Romani <[EMAIL PROTECTED]> [2007-01-15 14:15]:
I usually do Cygwin/X, xhost +, then ssh into linux box, export
DISPLAY and type startkde.
You know that you can have SSH forward X so that none of the
extra steps are necessary? (Plus your session is enc
on the other side of the room), I usually do
Cygwin/X, xhost +, then ssh into linux box, export DISPLAY and type
startkde.
Perl is like coffee. It's not very exciting to talk about, but I bet
you're
having a cup right now :)
Motto!
--
Marcello Romani
Responsabile IT
Ottotec
mode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: C
Kieren Diment ha scritto:
On 09/01/07, *Marcello Romani* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
it's late for additions to the advent calendar, I know, anyway here
I go.
On day 15 Kieren Diment says "I have been unable to get
te LaTeX source docs, I suggest looking at
http://www.catalystframework.org/calendar/2006/12
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/li
ng causes range
requests to be sent to the streaming server, which then handles them
correctly.
HTH.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/m
ist: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
--
Marcello Romani
Responsabile IT
Ottot
nged the line in:
} if ($c->engine =~ /^Catalyst::Engine::HTTP/);
HTH
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalys
editors and came to like Crimson Editor.
It has easily customizable syntax highlighting, it is pod-aware and lets
your create "projects", which are nothing more than a structured bunch
of files but are useful nonetheless.
--
Marcello Romani
Responsabil
lib/perl5/5.8.8/i686-linux
/usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at
t/optional_lighttpd-fastcgi.t line 7.
BEGIN failed--compilation aborted at t/optional_lighttpd-fastcgi.t line 7.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http:/
mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
world
of Catalyst, then maybe it's worth trying to solve it with Cat!
I hope that those of you who have a bit of experience with both might
reply and advise me on the right course of action.
Thank you.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnic
Be sure to put these lines in your httpd.conf:
LoadFile "C:/Path/to/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
There are of course plenty of resources that will guide you better than
these 4 lines... HTH anyway.
--
Marcello Romani
Responsabile IT
Ottotecnica
interesting.
Thank you.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lis
.catalyst.perl.org/
>
>
For an app of mine I have the following bits in httpd.conf:
use lib qw(/home/httpd/perl/PDFJoin/lib);
PerlModule PDFJoin
SetHandler perl-script
PerlResponseHandler PDFJoi
Chisel Wright ha scritto:
> On Thu, Jul 06, 2006 at 11:59:33AM +0200, Marcello Romani wrote:
>> The (beginners') docs could mention dump() instead of dumper(), or at
>> least state that dumper() is deprecated in favour of dump().
>
> Do two people on this list constitut
Chisel Wright ha scritto:
> On Thu, Jul 06, 2006 at 09:28:23AM +0200, Marcello Romani wrote:
>> FWIW, I prefer Data::Dump over Data::Dumper, too.
>
> I was thinking about this a little last night.
>
> How about leaving the dumper() method as-is (since Data::Dumper is core
&g
directly, or hope he stumbles across it
> here ;-)
>
> I'll look into it, if it's the preferred dumping module now.
>
> Chisel
FWIW, I prefer Data::Dump over Data::Dumper, too.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
__
Marcello Romani ha scritto:
> Brandon Black ha scritto:
>> On 6/29/06, Nilson Santos Figueiredo Junior <[EMAIL PROTECTED]> wrote:
>>> On 6/29/06, Brandon Black <[EMAIL PROTECTED]> wrote:
>>>> If you find yourself putting code in your View templates tha
rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
, which I don't find particularly elegant
(some of the template code has roots in the factory list template
provided with Maypole...).
HTH
>
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/ca
es with multiple resultsets being displayed? I
> think the convention could quickly become ugly. If you threw in some
> AJAX stuff in the mix it might even get uglier still.
>
> But I'd be *very, very* happy if you showed me I was wrong. ;-)
>
> -Nilson Santos F. Jr.
>
>
Marcello Romani ha scritto:
> Matt S Trout ha scritto:
>> Marcello Romani wrote:
>>> Matt S Trout ha scritto:
>>>> Marcello Romani wrote:
>>>>> Matt S Trout ha scritto:
>>>>>> I like checking ($c->action->reverse eq 'user
Matt S Trout ha scritto:
> Marcello Romani wrote:
>> Matt S Trout ha scritto:
>>> Marcello Romani wrote:
>>>> Matt S Trout ha scritto:
>>>>> I like checking ($c->action->reverse eq 'users/login') myself.
>>>> Matt, what do yo
Matt S Trout ha scritto:
> Marcello Romani wrote:
>> Matt S Trout ha scritto:
>>> I like checking ($c->action->reverse eq 'users/login') myself.
>> Matt, what do you think of ($c->req->path eq 'auth/login') ?
>
> Fine until the
;>
>> and second, wouldn't that allow someone to perform actions like
>> http://server/users/delete/all/users/login ?
>>
>> i thnk one should either ask $c->action for the actual action and do a real
>> match (not a
ly you need
> to manage heavy (meaning expensive) customized pages to lower their build
> cost cause there is no cache available -- with cache you can direct to only
> build one time per 15 seconds or whatever and have a heavier page.
Seems clever to me.
>
> 2: A pagecache daemon system that reb
think that the problem at hand could show up only on the most
requested pages of a heavy-traffic site.
Also, it would have a significant impact only on undersized hardware
IMHO, because it would cause a spike in memory and cpu utilization, that
would cease as soon as the first copy of the page is produced, as you said.
able archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists
ot;Go"
many times while waiting for the page ?
>
>
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.raw
talyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catal
rg/
> Dev site: http://dev.catalyst.perl.org/
>
>
Do you mean that you have a shared apache installation under which every
developer runs his/her own code ?
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
___
L
ail.mozdev.org
>>
>> iD8DBQFEkCPyD1roJTQ4LlERAngfAJ97EeIf57EWnkjdTVTevowH/65BAQCeIQJt
>> 1ywhryQ5rovgVNXbOmrfeA4=
>> =9RzM
>> -END PGP SIGNATURE-
>>
>> _______
>> List: Catalyst@lists.rawmode
lyst, and the intro docs show you ho
to do just what you need right from the start.
IMHO this is a good reason (among others that anybody here will be glad
to show you :-) to change from cdbi models to dbic ones.
Unfortunately, migrating an app (even a simple one) from cdbi to dbic
(nativel
sion data you also allow the gamer to logout at some time (even
automatically, via some sort of timeout), then re-authenticate without
loosing the information on what game he selected previously.
Just a pair of thoughts...
HTH
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.o
71 matches
Mail list logo