Batch File Renaming

May have posted on this previously. Just had a bunch of audio files that I wanted to remove a specific phrase from the name. Looped through the matching files and did a move to the output of a string editing command with SED: for f in string_to_remove_*; do mv “$f” “$(echo $f | sed ‘s/string_to_remove_//g’)”; … Continued

Troubleshooting Cross-Origin Resource Sharing Problems

All of a sudden two of the videos we’re hosting on AWS Amazon S3 started getting Cross-Origin Resource Sharing (CORS) errors, saying that there was no header. Spent a bunch of time with the crossdomain.xml file, permissions of the files as well as the bucket cors configuration. Found a site to test cors, but am … Continued

Mastering Responsive Typography by Zell Liew

It might have been through the book, Designing with Web Standards by Ethan Marcotte and Jeffrey Zeldman that I first learned about making Typography the foundation of website and web application design. Two awesome books Ethan Marcotte and Jeffrey Zeldman recommended are The Elements of Typographic Style by Robert Bringhurst and Thinking with Type by … Continued

When a Permalink URL is Frozen

Had made a plugin that created a custom post type, services with a category service_areas. The category archive page was loading at URL service_areas/some_category, but we also wanted a custom page to be listed at service_areas, which I ended up doing by using a page template. Also using the following code to create the page … Continued

What Doesn’t Suck about WordPress

This post by Scribu encapsulates the trepidations many developers share about wordpress. My friend Chris offers a nice response: https://gomakethings.com/in-defense-of-wordpress/ More thoughts from Jeremy Horland: PRO: 1) WordPress is now the dominant web platform. https://trends.builtwith.com/cms https://w3techs.com/technologies/overview/content_management/all Market Share: Top Website Platforms 2) WordPress is a convergent platform PhpBB, Buddypress, and many other projects are far … Continued

Trying on the new Sage Theme

Had to install Yarn (brew install yarn). Already had composer installed. Needed to upgrade my local version of php: Upgrade to PHP 7 or 7.1 on macOS Sierra or on OSX 10.6 – 10.11 curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0 Then point to it for php-cli: Add export PATH=/usr/local/php5/bin:$PATH to .bashrc, then source ~/.bashrc, … Continued

Developing WordPress Total Child Theme in Docker

First significant challenge is that archive pages aren’t working. Am I missing a setting somewhere? Figured I would install the Base-Lite demo, but server kept timing out. Need to increase limits in the container: Add this uploads.ini file in top level of WP in host computer. file_uploads = On memory_limit = 64M upload_max_filesize = 64M … Continued

Installing 12 year old php script on Ubuntu

This is a temporary measure. Old server went away and we needed at least a virtual private server. Installing MySQL and Apache were a couple of apt-get commands. This codebase only runs on php5.x, which isn’t supported anymore. So needed to add this new apt repository which supports legacy php versions. Found this install solution: … Continued