Dylan Barlett

Main menu

Skip to content
  • About
  • Work

Category: Software

Disabling the W3 Total Cache Footer Comment

January 14, 2014

2016-07-01: Updated code samples to use __return_false instead of an anonymous function By default, the W3 Total Cache (W3TC) WordPress plugin adds an HTML comment like the one below to the page footer. To remove it without modifying the W3TC … Continue reading →

Posted in Software, WordPress | Replies: 19

Sample Python Code for the D&B Direct 2.0 API

November 10, 2013

At the DC Tech Hackathon, I had access to the Dun & Bradstreet Direct 2.0 API. Their documentation isn’t great, so I wrote a quick Python example of authenticating and requesting data (also available as a Gist):

Posted in Python, Software | Replies: 1

First-Level Subdomains For All Sites in a WordPress Network

October 10, 2013

When you create a WordPress network (multisite) in subdomain mode, WordPress recommends that you remove www from the site URL, so the network (site #1) is served from the zone apex, and other sites are served from first-level subdomains. For … Continue reading →

Posted in Software, WordPress | Reply

Optimal Tours of KFC Locations

September 4, 2013

Inspired by a Hacker News comment, I wrote a Python script that queries the KFC website for store locations, finds the optimal tour with the Concorde cutting-plane-based exact TSP solver, and generates a KML file that can be plotted in … Continue reading →

Posted in Python, Software | Reply

Upgrade-Safe Genesis Framework Child Theme Localization

August 26, 2013

How to localize both Genesis Framework and a custom child theme, without the risk of framework upgrades removing the gettext catalogs. This example covers localizing a theme in Spanish (Mexico), but the process is the same for other languages and … Continue reading →

Posted in Software, WordPress | Reply

Post navigation

← Older posts
Newer posts →
Powered by WordPress and Foghorn