Category: Technology

Reconnect Bluetooth Devices After Waking From Sleep

My Macbook goes to sleep when I leave it idle for a few minutes which saves energy and locks the screen. Quite annoyingly Рfor a long time Рupon waking up from sleep my...

Dynamically Update /etc/hosts from Nginx

I wanted to guarantee that requests coming from one of my servers going to a domain they host are routed to localhost. The solution I arrived at was to generate a list of domains...

MySQL / MariaDB Backup & Archive Script

I am using MariaDB – the open source version of MySQL – and wanted an easy way to backup my databases on a regular schedule without having to do anything when I created or...

Unban GoDaddy / MediaTemple WordPress Plugins

GoDaddy managed WordPress hosting, and by ownership MediaTemple as well, prevents some plugins from being activated on website. Some of these may make some sense if the conflict with caching, etc, but I feel...

Salesforce sObject Id Validation in Apex

Salesforce ID’s are specially formatted strings used to uniquely identify sObjects. If you want to test the validity of an ID in Apex, you can go the simple route of checking the length, the...

Install WSDL2Apex on OS X El Capitan

The WSDL2Apex generates the Apex classes necessary to implement a SOAP callout from the Force.com platform using the WSDL for the service you are trying to implement. In 2014 it was split out of...

Monitor IPSec VPN Tunnel

I have an IPSec Tunnel built from one of my servers to an integration partner which is used to secure our web service calls. It uses a IPSec, OpenSwan, and Pluto to maintain a...

OS X El Capitan 10.11.x Hanging on Boot [FIXED]

If your El Capitan update won’t reboot and you want to skip to the fix, click here. Otherwise feel free to read the saga below! Update 3/23/2016 – It happened again when I updated...

Inserting & Triggering Custom Events In jQuery Functions

I recently had the need to detect when new elements were appended to the DOM, however by default in jQuery there is no “append” event. This meant that the code I wanted to write,...

ACF: Link to Specific Tab

Advanced Custom Fields, or ACF, provides a great user interface for defining and laying out custom fields for Posts, Pages, Custom Post Types, Options, Users and more in WordPress. The Tab Field provides an...