If you decide that you want to move your business website between content management systems. You might want to ensure that your old links to specific content are still accessible. Some examples being blog posts, images or downloads. Following are two .htaccess hacks...
James McDonald
How to see all the records when you run MySQL show tables
Sometimes the database you are viewing with the mysql client has so many tables you can't see all of them because the first results are hidden. In the mysql client pager less; Now when you run show tables; it will pipe it to less and you will be able to see the whole...
Semi Colon
http://theoatmeal.com/comics/semicolon
Shortening your PHP Code
Learning PHP using firstly CakePHP 2 and now moving onto CakePHP 3 I'm finding there are some ways PHP has changed to allow you to write less and get the same result. Arrays Before <?php $myarray = array( 'one' => 'One', 'two' => 'Two', 'three' => 'Three'...
CakePHP & jQuery UI Autocomplete
This is a field that you enter a partial "batch" number and then the JQuery Autocomplete control queries the remote database for a matching list. This is rough code to get a jQuery UI auto complete control working with CakePHP. // in Model/Label.php public function...
Elegant Themes Divi Upgrade – Search Form Icon not working
If you are using child themes and you have header.php in it then upgrade Divi it might cause the search form to stop working. The simple fix is to remove your header.php from the Child theme e.g rm -f blog/wp-content/themes/Divi-child/header.php If you have header.php...
Mutt commands for people familiar with Outlook
This is from an old collections of posts I store in my faq archive Reply All to reply to all press g with the relavent email selected or open it and press g Sorting to sort the list of emails press o and then select a letter from the the list To change to another...
CakePHP ACL and other challenges
If you have implemented ACL in CakePHP and then you add an action to your controller or create a new controller and actions you will get locked out when you try to access it (unless you have granted access further up the tree) Firstly perform aco_sync using the...
NetGear AirCard 785S aka Telstra 4G My Pocket Wi-Fi Ultimate stuck at Detecting Service!
Update: 23 Dec 2015 - Just logged into the web admin page and there was an update available. Clicked to download and install the update and now the issue mentioned below are fixed. Note: This is one of those annoying "I have a problem without a solution" posts. No fix...
Plex Media Server on Synology Main Menu Shortcut Pointing to Wrong IP work-a-round
I had an issue where clicking on the plex shortcut would take me to an old IP address. The cause was that I had configured the LAN1 connection with 10.0.0.68 (eth0) and then moved home and plugged the DS415+ in using the LAN2 (eth1) interface. The Plex cgi that...

