Things to do in Cape Town, the Helderberg, and the Cape Winelands

Category Tips, Tricks and Tutorials

Handy how to snippets grabbed from the computing world.

PHP: Get the first Key of an Associative Array

I am not completely sure about it, but I somehow don’t think that I’ve ever needed to get the first key of an associative array using PHP before. Sure, a simple problem with a simple solution, but seeing as I… Continue Reading →

PHP: “JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x89 0x50” Error Solved

My cross-platform Kinetica TouchandTell app running on an old iPad 3 was not successfully uploading images to our new RedStation hosted Ubuntu server (the Android builds were doing it just fine), and I wasn’t really sure why. The Appcelerator Titanium… Continue Reading →

MacBook Air and Xcode: Free up Disk Space by Removing Unwanted/Unavailable Device Simulators

iOS software development on a MacBook Air inevitably then means that you have a couple of Xcode versions installed on your device, and as we all know, these chew up a fair bit of disk space in the process. One… Continue Reading →

MySQL: Solve sql_mode=only_full_group_by Error by Turning off Strict SQL Mode

When moving an older MySQL-based project to a new server instance, one of the SQL query errors bound to immediately strike is that of triggering the sql_mode=only_full_group error, caused by your SQL select statements referring to columns that are not functionally… Continue Reading →

Ubuntu Server: How To Enable OPcache for PHP 7 on Apache

PHP is what is known as an interpreted coding language, meaning that unlike compiled apps that have already been compiled down into bytecode (i.e. you have to compile your application first so that the OS can run it), PHP scripts… Continue Reading →

Changing the Hostname in Ubuntu Server 16.04: Unit hostname.service is masked

For older versions of Ubuntu, many of the tutorials online show you how to edit your server’s hostname by simply editing /etc/hostname and then restarting the service with “service hostname restart”. However, attempting this on a 16.04 Ubuntu Server build… Continue Reading →

FPDF: How to use a Degree Symbol in a Generated PDF

I’ve been using the FPDF PDF generator library for years now as the de facto method for my PHP projects to produce PDF reports. However, one minor annoyance is that the generated PDF files often falter when it comes to the… Continue Reading →

Ubuntu Server: How to change or set the Timezone

Dropping this as a quick reminder to myself. When confronted with a new Ubuntu server instance, I can check the currently set time zone by simply asking for the current time with Now if I need to change the currently… Continue Reading →

MacBook Air: How to Update Node.js

Ugh. I needed to fire up the loan MacBook Air to do an iOS compile of my recently completed Appcelerator app. Naturally, I started off on the wrong foot by not recalling the MacBook’s password (luckily I found that I… Continue Reading →

« Older posts

© 2021 An Exploring South African — Powered by WordPress