This is how I use both bootstrap glyphicons and the font awesome fonts in cake with some simple helper methods. You first need to copy your font awesome files to webroot/webfonts and glyphicons to webroot/fonts and the respective css files to webroot/css and include...
IT Tips
A Good Mac Terminal
Just been using iTerm2 for a number of weeks on my Macbook Pro. It's been stable and easy to use. The mac terminal itself had been buggy and exited randomly.
Using DRAC 6 to update BIOS on Dell 710 Server
My tips from my mac Use fn+command+F11 to send the F11 key to get into the BIOS boot device selection screen when connecting from a mac to remote desktop to a java instance of the DRAC console.
ntpdate
Just upgrading from 5.1 to 5.5 of the Vcenter Server Appliance and was wanting to set time synchronization Get a list of public NTP server from http://www.pool.ntp.org/zone/au Login to the upgraded VCSA as root and run ntpdate your.ntp.server.name.here will confirm...
Playing with the … spread operator on JSON objects
const stringify = (obj) => { // use 2 spaces and pretty print it return JSON.stringify(obj, null, 2) } const token = "hijames" // starting array const config = { headers: { 'Authorization': `Bearer ${token}`,...
Format Of and Verify an ABN – Ouh a secret puzzle
Just discovered it's not just Credit Cards and Barcodes that have validity check digits and algorithms FIrstly an ABN (Australian Business Number) is formatted XX XXX XXX XXX e.g 84 008 812 322 The ABR website has the information on how to calculate the validity of an...
Tips to using CakePHP 3.x as a ReactJS API backend
Information for React I found useful https://auth0.com/blog/secure-your-react-and-redux-app-with-jwt-authentication/ this had a sample project that showed how to setup redux and react and explains the redux ecosystem of store, actions, action creators, reducers etc....
CakePHP 3 Database Migrations
You have a database with a heap of tables already running. You want to start from that base and then be able to migrate from that running database through the addition of new fields and then migrate those changes to your production database Here is how I believe you...
Tips on Testing SMTP on Port 25 and 465
When testing your login using AUTH PLAIN if your passwords starts with a number you need to use a \000 instead of \0 other wise you will always get an error as the base64 encoded string will be wrong printf 'username\0username\0001234567pwd' | mmencode perl...
Why is my Business named Toggen?
Recently I renamed my IT Business to "Toggen" after trading as "James McDonald IT Services" or JMITS for short. It took a long time to find a name that wasn't being used, and also had some resonance for me personally. So why Toggen? After wracking my brain for a...
