If you have moved from one content management system to another. For example you move from Drupal to Joomla and you have a social media plug-in that posts your articles to your Google+ or Facebook page you might find when you move CMS's that your social media feed is...
James McDonald
Docker attach you hang
Docker attach is supposed to give you a bash shell But I have found on some containers that it just hangs when you run it: docker attach 54b38600e152 But this command works for me (and apparently allows multiple shells to attach) docker exec -i -t 54b38600e152 bash...
Glabels-3 almost had me beta
Just had an issue in glabels when I pointed it at a CSV file one of the fields was missing. The cause was glabels intelligently determining the CSV encoding to be non-unicode (ISO-8859) and then dutifully skipping the display of a field with the ? beta character in...
Transferring from a PST to IMAP Server
Step 1: Export from Exchange to PST A few weeks ago I blogged about Running a Mailbox export from Exchange to PST using powershell at https://toggen.com.au/it-tips/powershell-export-multiple-mailboxes-to-pst If you are wanting to publish your PST to a IMAP server the...
Mordac The Preventer of Informations Services Strikes after a yum update
SeLinux ... Ah the serenity If you haven't rebooted a box in many days and then do yum update you may find that your seLinux policy now denies access to some of your processes. This is especially true if you have made changes to the default configuration files meaning...
Mac osxfuse/encFS conflicts with VMWare Fusion 7.1.2 so try Safe 1.4
I don't know when it happened but running osxfuse 2.8.0 and encfs version 1.8.1 on Mac OS X Yosemite 10.10.5 and then trying to launch a VMWare Fusion 7.1.2 VM causes the following errors: "Could not open /dev/vmmon: No such file or directory" and "Failed to...
Map old website URLs to new case Insensitive
Instead of just using RedirectPermanent in htaccess try: RedirectMatch 301 (?i)/blog/my-really-cool-blog-post /about-us/blog/my-really-cool-blog-post So if your old web server had capitalised URLs e.g. http://www.example.com/blog/My-really-Cool-blog-post it will still...
Save a directory trees permissions and then restore them
One Web Site Admin problem that I have found to be annoying is when you want to secure your webserver by making only what is required writeable and leave the rest unwriteable by the web server process. As soon as you go to perform an update of a module then the...
MD5SUM via PowerShell (when you don’t have Get-FileHash)
SBS 2011 doesn't allow you to install Powershell v4 which has a one line Get-FileHash utility to generate an md5sum. So you need a few extra lines. I needed to transfer some PSTs which I had chunked down to 250MB 7z files. From SBS 2011 to Mac and wanted to check they...
PowerShell Export Multiple Mailboxes to PST
This script exports the email aliases in $export_names to a file with a yyyymmdd date stamp. The BadItemLimit is jacked really high because when a mailbox is 24+ GB and has a lot of weird Chinese and other character sets that make the export think it's corrupt. I'm...
Optus Android App Fail
Any example of inconsistent behaviour in an Android Mobile app. This is from Optus a Telco supplier. You have an amount to pay value and a click to pay button. The next screen should carry over the amount to pay value but instead has a value from a payment made...
Moving Between Content Management Systems (Drupal to Joomla)
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...
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...