James McDonald

Access

Blog History

Virtual Box Windows XP Clonezilla Restore

JoyceMayne was offering a 100-300 for  your old PC for a new laptop deal so I had to give them my old computer before I could transfer everything to the new laptop so I used clonezilla-live-2.2.4-12-i686-pae.iso to take an image of the old Windows XP box before I...

read more

Testing Session TimeOut with CakePHP

By default CakePHP uses the session timeout value in php.ini But sometimes you might want to specify a very short Session timeout for testing your code To do that you open Config/core.php and add a value to the "Session" Configure::write area...

read more

CakePHP with TCPDF

This is brilliant:- http://www.martin-schenk.es/en/cakephp-2-pdf-with-tcpdf/ in View/Layout/pdf/pdf.ctp <?php header("Content-type: application/pdf"); echo $content_for_layout; But with google chrome using the $pdf->Output('filename.pdf', 'I') option you get the...

read more

CakePHP in a subdirectory NginX

This is how I setup cakephp so I can have multiple apps in subdirectories with a shared cakephp instance. Under NGinx I setup my webroot folder as follows /var/www/html <== webroot everything served from here /var/www/cakephp-2.5.4 <== cakephp lib folder here...

read more

Vultr VPS Pricing

I've used Rackspace & Digital Ocean but I've only just became aware of https://www.vultr.com/ I only spend about $20USD a month on my 2GB RAM 40GB SSD VPS and I think Rackspace was around the $24 dollar mark. But Vultr is charging $15.00 a month for the same...

read more