James McDonald

Access

Blog History

Adding new fonts to TCPDF

Less agony way of doing it. Download your fonts and then run the following cd  /Users/jmcd/Sites/clam/vendor/tecnickcom/tcpdf tools/tcpdf_addfont.php -i /Users/jmcd/Downloads/liberation-sans/LiberationSans-BoldItalic.ttf cd fonts/ Bulk Load Multiple TTF's for i in ls...

read more

CakePHP 3 – TCPDF Install and Usage

In your CakePHP top level folder (the one that has composer.json, src/, vendors/, config/, webroot/) run: composer require tecnickcom/tcpdf You should now have vendor/tecnickcom/tcpdf Now in a controller src/Controller/<ControllerName>Controller.php create an...

read more

Checking for port errors on Cisco Switches

Recently had a macbook pro which had a network dongle that was very hot and the network connection stopped working. Found that the dongle was sending garbled signal down the wire and the Cisco switch shutdown the port. # all status show interfaces status # port...

read more