Welcome to My Blog
IT related tech tips since 2006Postbooks Print PDF to Email – Ugly PDF Fix
When printing from Postbooks you can Print to PDF or PostScript file or to a local or network connected printer. I would like to print invoices from Postbooks to my email account so I can then forward the email on to the client which has the benefit of keeping a paper...
Convert Text File to PDF and then place on remote Windows Share
This is a snippet of Perl that takes the contents of text file on stdin and then converts it to a PDF using a tool chain as follows Sed is removing the ^L form feed character from the end of the file to stop enscript creating an extra blank page Enscript is creating a...
Added Custom Cups Backend Discovers Cups error_log Now Available Via journalctl!
Cups mailto Install Playing with the cups-mailto from http://cups-mailto.sourceforge.net/ I discovered that you have to make the permissions correct in order for the backend to work cp mailto /usr/lib/cups/backend # unless you do this the backend will # not showup in...
Postbooks 4.8.1 GUI Client Print to Cups Printer work-a-round
Still having trouble with printing from Postbooks to a Cups based printer on Fedora 21 http://www.xtuple.org/xtincident/view/bugs/24335 The work-a-round is to change the A4 page size to custom and then it prints... or build the client from source... This has...
When we move to Melbourne what do I call my blog then?
So since my first post on this blog in July 2006 I have lived in Telarah a suburb of Maitland 40 minutes west of Newcastle in the Hunter Valley 2 hours north of Sydney. In the next couple of months my Wife and I are planning on moving to Melbourne.... So I'm wondering...
CakePHP Getting Back to Where You Were After You Submit an Edit Form
I don't know if this is the proper way to do it but... You have an edit button in a view pointing to a form... When you click edit and you navigate to the edit page and you click submit. The edit actions default is to take you back to the controllers index action...
CakePHP Editable Table Based Dynamic Superfish JQuery Menus (<==mouthful)
Below is one way to create dynamic menus in CakePHP. It uses an element, a custom helper and a database table setup for the Tree behavior. It uses CakePHP 2.6.3. Since posting the below I have made some improvements and posted them to github ==>...
Globally Change the Default Database Connection in CakePHP 2
Note: Sadly this doesn't work in CakePHP 3.x The secret is define a new database config in the DATABASE_CONFIG class ( I use "app/Console/cake bake" and the database option ) Edit AppModel.php to specify the $useDbConfig property as the correct connection name as...
Installing PostgreSQL Server and Connecting PGAdmin3 to a Local Instance on Fedora 21
yum install postgresql-server pgadmin3 postgresql-setup initdb sudo pgadmin3 disable the local all all peer line add local all all trust ...