[Catalyst] Re: Hello, Deployment of Catalyst apps in a shared web hosting account without shell

2009-02-07 Thread Aristotle Pagaltzis
* Anton Katsarov t...@katsarov.org [2009-02-05 17:50]:
 I can also confess that the Internet connection in my town is
 not so good.

If you’re on a modem then 5 seconds might well feel adequate.
The apps I work on load in something like 0.6 +/-0.3 seconds.

If you use an ORM for the model and the DB schema is complex
the 5 seconds will easily be 10.

CGI pushes you toward loading as little code because the code
is compiled over and over again, which distorts the architecture
toward all sort of microoptimisations. Nasty. If you want to
write code that way, of course, that’s your call.

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.org/

___
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/


[Catalyst] [Announce] Catalyst::View::PDF::Reuse released

2009-02-07 Thread JJ
Hi,

I've just released Catalyst::View::PDF::Reuse to CPAN. [1]

This is a module we developed at Penny's Arcade [2] to produce
receipts and shipping labels - I gave a lighting talk about it [3] at
Milton Keynes Perl Mongers which went down well, so here it is for
everyone to use.

The purpose of the module is to allow PDF files to be created from
Template Toolkit so that nothing needs to be hard-coded in your View,
the layout can all be controlled via templates.

When using View::PDF::Reuse, TT is given a 'pdf' object which has
methods corresponding to all the functions of PDF::Reuse. So by taking
advantage of PDF::Reuse's [4] ability to modify existing PDF documents
(such as a blank order form created in Word), it becomes possible to
generate quite complex PDF files without writing much code.

As an example, this is all you need in your controller (having already
stashed an 'order' object):

$c-stash-{pdf_template} = 'order_pdf.tt';
$c-forward('View::PDF::Reuse');

then the layout commands are in order_pdf.tt, allowing all of TT's
facilities - loops, filters, and so on - to be used:

[% pdf.prForm('customer_receipt.pdf') %]
[% pdf.prText(123,643,order.number) %]
[% pdf.prText(299,643,order.date) %]

If anyone has any suggestions for improvement, please let me know.


Cheers,

JJ

[1] http://search.cpan.org/dist/Catalyst-View-PDF-Reuse
[2] http://www.pennysarcade.co.uk
[3] http://www.pennysarcade.co.uk/files/Creating_PDF_files_with_Catalyst.pdf
[4] http://search.cpan.org/dist/PDF-Reuse

-- 
JJ j...@jonallen.info
http://perl.jonallen.info  ::  http://perldoc.perl.org

Stylish accessories to enhance your home... http://www.pennysarcade.co.uk

___
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] Re: New Catalyst Book?

2009-02-07 Thread Ali M.
First congratulation, this book is surely needed.
And may i ask which Catalyst release will this book cover?


On Sat, Feb 7, 2009 at 1:47 AM, Richard Thomas r...@mac.com wrote:
 KinoSearch++

 We have updates to the indexes attached to CDBI triggers, and it is
 extremely effective. Obviously this approach wouldn't work with multiple
 servers but there are ways of solving that.

 Kino is very clearly documented, and fast. We have about 8 assorted indexes,
 and just iterate through the lot, bringing back all hits found. It's still
 as close to instantaneous as makes no odds, and much easier than
 constructing DB searches.

 RET

 
 Sent from my iPhone

 On 07/02/2009, at 5:14 AM, Stuart Watt sw...@infobal.com wrote:

 Most of my work is search in Catalyst. I'll help. We've now got a
 web-service remote search system, a database SQL search, and a local search
 using a highly tweaked KinoSearch, all working fine and more or less
 pluggably. I am so happy with Catalyst, and when we get through our
 production deliverable (Tuesday) I'll happily collaborate on a search wiki.



 ___
 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/


___
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] Re: New Catalyst Book?

2009-02-07 Thread Kieren Diment


On 08/02/2009, at 6:46 PM, Ali M. wrote:


First congratulation, this book is surely needed.
And may i ask which Catalyst release will this book cover?



We'll be making sure that it's relevant to version 5.8





___
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/