Category: Programming

  • How to Access Synology in Fedoras Terminal

    by

    I had to move a bunch of files over from macOS to my Framework laptop, including a bunch of node stuff that just wasn’t copying via the standard file browser in Fedora 37. This means I turned to rsync which will just work to copy any amount of files, and can resume itself. Where is…

    Read More →

  • This is why NPM is terrifying

    by

    When you update an NPM package and it starts deleting files on your computer it’s a bad day. I actually dislike NPM and hugely complex build processes. The more complex it is the more likely it is to break and then require rewriting from scratch. Keep any build process simple. Use as little as possible.

    Read More →

  • 2 Ways to Restrict Access to a WP Engine Staging Site

    2 Ways to Restrict Access to a WP Engine Staging Site

    by

    While I develop locally, I also need to show off new work to clients before it gets approved and pushed to a live site and that means I need a staging site that is accessible on the web to my clients. That site is also accessible to everyone else that is using the web, which…

    Read More →

  • WordPress Spinners – I swear I’ve been doing this for more than 10 years

    by

    Sure I’ve been building WordPress sites since 2008 but today I found out about the spinner class in the WordPress admin, mostly because I figured that WordPress had something to do AJAX related spinners so a user had some idea that stuff was happening. <span class=”spinner”></span> That’s all it takes to get a spinner in…

    Read More →

  • git switch = mind blown

    by

    As I’m sure many developers do, I was just looking up how to pull a remote branch local because it’s always a few commands with some flags. But not anymore. Git added the `switch` command which does it all in one shot. If you have a remote branch called `feature/cool-stuff` and want to pull it…

    Read More →

  • WordPress is so noisy

    by

    > Like I said in my original post, WordPress and other platforms always made me feel like they wanted me to use them to do so much more than blogging. “Hey, want to install Jetpack!” “Hey, there are 16,000 plugins you might like, and 4 of them have updates you should install now!” “Do you…

    Read More →

  • Tackling hard code over the long term

    by

    Been tackling a hard code problem that requires a deep understanding of the way that a service renews and flags users as renewed. The time of the day this happens matters. How the specific user data is stored matters. The extra hard part is I keep having to take a week or two away from…

    Read More →

  • Price Calculator for WooCommerce Teams

    by

    My client wanted to show the total price of a multi seat purchase for WooCommerce Teams directly on the page. I thought it would be easy, and then found [this starting code](https://alexanderdejong.com/wordpress/wp-tutorial/add-total-price-calculation-woocommerce-product-page-ajax/) I could use to get myself going. It worked out of the box, but didn’t calculate the total price properly since you start…

    Read More →

  • Work Journal – Stopping Two Calls in Short Order for The Same Data to an External API

    by

    I have a scenario where I need to flag a user on an external API when order status changes. This currently works but we also need to flag them with the same flag if users are granted a complimentary membership/subscription inside WooCommerce Subscriptions. Investigating how to ensure we don’t hit that external API twice, once…

    Read More →

  • Migrated to Statamic V3

    by

    You may have noticed that the look of this site totally changed over the weekend, or maybe you didn’t. My site is now running [Statamic V3](https://statamic.dev/) under the hood instead of V2. The upgrade process was relatively painless when I ran it locally via Laravel Valet. I had a bit more trouble when I tried…

    Read More →