RET

Sydney, Australia

retco.com.au

Age: 45

$self->like( qw[ Perl Catalyst Informix Macs iOS 'old Holdens' ] ); # not necessarily in that order...

My background is in data warehousing (18 years or so) and more recently in building web-apps with a reporting flavour. I'm also responsible for OurCarClub, a web-based data management application for Car Clubs. It's built using perl, Catalyst, Template Toolkit, Class::DBI and MySQL, with more than a dash of jQuery.

OurCarClub.com.au

Mar
13
answered Using a variable to access hash keys in Template Toolkit
Mar
6
comment TT how to print a string in a variable in an array?
Thanks. One of the great strengths of TT is it's ability to seamlessly handle being passed an array ref of objects, such as DBIx::Class data rows, for example. Good luck with your project.
Mar
5
revised TT how to print a string in a variable in an array?
alternative solution added
Mar
5
answered TT how to print a string in a variable in an array?
Mar
5
comment Catalyst::View::Wkhtmltopdf creating error with template
Your repeated references to TT.pm rendering correctly concern me. Templates are generally .tt or .tt2 files that are interpreted by the Template Toolkit engine. If C::V::Wkh is expecting a .tt file and not getting it, perhaps that explains why it reports void input?
Mar
3
comment Catalyst::View::Wkhtmltopdf creating error with template
You should update your original question and show your code there so it's readable. What's in your comments is not sufficient to help you debug the problem.
Feb
27
comment Catalyst::View::Wkhtmltopdf creating error with template
Does your template render OK to the browser? Make sure that works properly first, then reroute it through Wkhtmltopdf
Feb
26
answered Catalyst: global init action
Feb
26
answered Catalyst::View::Wkhtmltopdf creating error with template
Feb
24
awarded Revival
Feb
23
revised exec multiple commands on catalyst switch via java ssh app
"catalyst" tag belongs to perl framework of that name
Feb
17
answered How can I do breaks and subtotals in a report?
Feb
16
reviewed Approve suggested edit on If statement operator being ignored?
Feb
16
reviewed Approve suggested edit on How do I know a file is uploading in a Fileupload?
Feb
9
comment Returning only the most recent values of a query
In answer to your second last question, !$agent[$row['RESOURCENAME']]++ does those two things, but critically importantly, the other way around. The negation at the beginning means "this returns true if the key does not exist in the array", and the post-increment at the end adds 1 to it, meaning it will exist on any subsequent pass.
Feb
9
revised Returning only the most recent values of a query
replaced my pseudo-code with real example
Feb
9
comment Returning only the most recent values of a query
Having seen your other question with the PHP code in it, I've updated my pseudo-code
Feb
8
revised Returning only the most recent values of a query
additional code following comment trail.
Feb
8
comment Returning only the most recent values of a query
As I suggested, you probably want to ensure you have an index on agentid and eventdatetime to avoid scanning what is presumably a fairly large table. If you want to simply skip over agent records you've seen before, that's an entirely other solution. See edited answer above.
Feb
6
answered Returning only the most recent values of a query
1 2 3 4 5