The framework has almost been completely rewritten with this release to make the creation of WordPress objects more strongly typed and automatic. WordPress objects now have supporting classes for arguments. This cuts down on having to type in optional parameters on construction. The Settings class now has supporting classes for SettingsSection and SettingsField. The View […]
A module is a collection of Puppet resource blocks that work together to carry out a related task. All the blocks are grouped together in a class that is included in your main manifest. This article will go through creating a very simple module for the Nginx web server. Step 1: File Structure Inside the puppet/modules […]
After finishing Part 2 we now have a working virtual machine ready to use. The only problem now is there is barely anything on it to use, it is just a basic Ubuntu install. At this point you normally go through the manual process of adding repositories, installing packages, setting up services, etc. Then if you […]
I have refactored my WordPress Plugin Framework to be independent of the plugin boilerplate that I packaged with it. The classes for Pages, Settings, Custom Post Types, Taxonomies, and Views were extracted and updated. They can now easily be included and used in any plugin. I have also set the framework up as a Composer package. […]
In Part 1 we downloaded and install VirtualBox and Vagrant. In this article we’ll create the virtual machine and SSH into it. Step 1: Create the Vagrantfile Inside your project folder create a text file named Vagrantfile, there is no extension. This is the file that Vagrant will read to provision the virtual machine. Open […]
Vagrant and Puppet are two tools I use every day for work and side projects. Vagrant provisions a virtual machine and Puppet configures packages, services, and even users on the VM. These tools allow me to create a set of configuration files for a virtual machine, keep it in my repository, then use it to easily create […]
Here is a method I wrote to take a screenshot of the current page when using Selenium WebDriver and NUnit. I have a dedicated screenshot folder in my build_output folder I save the images to and name the file according to test class name and test name. You can change both to fit your needs.
I took this article down because it was horrible outdated and confusing. The easiest way to use PHPUnit now on any system is Composer.
I wrote a better article on AJAX and WordPress so I took this one down to avoid confusion. Click this link to read How to use AJAX with WordPress.
I have finished the server transfer today but still need to migrate content. I moved from DreamHost where I have been since 2003 to DigitalOcean for hosting and Hover for domain names. I’m especially in love with DigitalOcean right now, they make it incredibly easy to spin up a SSD cloud server in seconds. The price and […]