Learning How to Learn: A Review

About the course Learning How to Learn is a Coursera course taught by Dr. Barbara Oakley from McMaster University and Dr. Terrence Sejnowski of UC San Diego. The course teaches proven learning techniques backed by modern science and can be used to master a variety of subject. This course gives you easy access to the … Read more

Setting Up Virtual Hosts on a Mac

I ran into some trouble running through different tutorials to setup virtual hosts while setting up a local Laravel site. There doesn’t seem to be much consensus on the developers’ preferred local environment. So here’s how to setup virtual hosts on a mac with MAMP. From what I understand this let’s you use a “virtual” … Read more

WordPress Child Theme: Easy Mistakes

How to set up a child theme There are a number of tutorials that go over how to set up a child theme. I should know by this point, but there are a few frequent mistakes that are both crucial to the setup process and that other tutorials fail to make explicit. Short-hand list for … Read more

Interface & Abstract Class Comparison Cheat Sheet

Class Abstract Class Interface Instantiated ✔ X X Extend/Implement Multiple X X ✔ Contract X ✔ ✔ Implementation ✔ ✔ X Single Place Versioning ✔ ✔ X All Methods Public (Access Modifiers) X X ✔ Properties ✔ ✔ X Constants ✔ ✔ ✔ Overridable Constant ✔ ✔ X Type Checked ✔ ✔ ✔ Abstract Class … Read more

PHP File Handling Cheat Sheet

Accessing Directory Read Directory Files into Array $dir = ‘example’; $files = scandir($dir, ‘w’) or die(‘Cannot read directory: ‘.$dir); //implicitly creates file foreach ($files as $file) { //do something with $file } Open and Close Directory $dir = ‘example’; if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if (substr($file, 0, 1) … Read more

Contact Form 7 Ticketing Plugin

The CF7 Ticketing Plugin is an incomplete plugin made for a client that needs a ticketing system for building maintenance. It utilizes the Contact Form 7 plugin for form validation and stores the input as a custom post type that can be searched and organized. CF7-Support-Ticket Plugin The plugin includes a custom backend menu, “Tickets”, … Read more