WeblogPoMo2024 Web authentication using the filesystem Have you ever tried to password protect a file on the web using only the filesystem? Here are two very similar ways to do it.
advanced What the hell is <true/> in a plist!? This is a story of xml. Or rather Apple’s plist files, which happen to be xml format. And me going down a very brief rabbit hole of figuring out why certain things are in xml files and how to find out. Spoiler, it’s all about the DTD, or data type definition.
go Work in a team? Have 4 groups of imports in your go files Do you want to organise your Go imports into 4 groups instead of 3? Here's how you can do it with a new version of gci and golangci-lint
ssl Get Firefox to trust your self signed certificates How to get Firefox to trust all self signed certificates you use locally to serve your development sites over https and not complain about them.
nginx ETag, If-Match, NGINX, and you! If you set an ETag response header, and it's missing, NGINX might be removing it. This article explains what causes it and how to fix it so ETags show up again.
timezone Why storing future times in timestamps is not good A collection of articles and videos explaining timezone intricacies, including storing future events, and a list of libraries for PHP and JS.
wordpress Let’s get salty! Because I’m on a roll today, so far I’ve broken 4 things today, including wp-cli, and Local by Flywheel. However I want to talk about what salts are, and why they are important, and how I found out about them. The below tweet, and its thread, has
xdebug Getting Xdebug working on php 7.2 and homebrew In which I tell how I got Xdebug working on homebrew php 7.2 and Laravel Valet and PhpStorm
laravel Laravel 5.6, SFTP, connection hygiene, and you! Laravel 5.6 introduced SFTP as a Storage method. Do you know whether it closes the opened connections or leaves them hanging? Read this! (yes, it does close them)
wordpress It’s 2018, and it’s totally possible to contribute to WordPress without touching svn I work with WordPres a lot. It takes up a solid 12 hours of my day pretty much each day (minus weekends, because, you know, burnout). I’m also fairly vocal about not being the greatest fan of it. It’s aged, does things weirdly, but it works. Reliably. Shout
workflow My local development environment There are so many tools to do local development, no wonder folks are lost. I’ve mostly tried them all with the notable exception of Docker. Here’s what I ended up with on a mostly permanent basis: Server, database, php, wp-cli I develop on a Mac. This means
advanced You don't need web sites to base64 decode things. Or to format JSON Instead of using free sites to do encoding / decoding / formatting of data, you could be using the command line. Here's an example of base64 decoding and pretty formatting json.
advanced Excuse me, do you have a moment to talk about our Lord and Saviour, WP_Rewrite? WP Rewrite is dark voodoo magic. I screwed up, so you don't have to!
development Here are 3 ways to help you load test your websites Do you want to know where your server's breaking point is? Read this and use one of them to find out.
wordpress Loading templates in WordPress and WooCommerce WooCommerce has a number of functions to load different templates. I describe what they do and how they're connected in this post.
advanced Why is the list of log handlers in WooCommerce an array? This is going to be as much a help for me, as, I hope, it will be for you. So WooCommerce 2.7 3.0.0 introduced a new way to handle logs [woocommerce_register_log_handlers], which is brilliant. There are two pieces to it: 1. the logger class
laravel Re: Laravel / Spark and their token authentication system A few days ago I wrote a rather lengthy article about how I modified Spark’s built in token authentication system [https://javorszky.co.uk/2017/03/18/i-modified-the-token-authentication-in-laravel-spark/] by extending / replacing some of the classes, adding columns to the table it created,
laravel I Modified The Token Authentication in Laravel / Spark! Okay, that was yet another case of “programming by next error thrown”. It was frustrating. But also hilarious. Hilarious in the sense that I can’t believe how much code I had to shovel to implement something seemingly simple. Background: I set up a Laravel / Spark project. Out of the
woocommerce The Curious Case of WooCommerce Shipping and the Hackiest Code I’ve Ever Written We all have those moments when sizing up a programming problem. It usually starts with this: > But really, how hard can that be? Turns out, it can be pretty damn hard. A Tale of Recalculating Shipping Currently on a client project one of my tasks included recalculating shipping costs
woocommerce New pet project: WooCommerce cloud logging WooCommerce 2.7 introduced a new class for handling logging. The handler itself can be replaced, which is awesome. The default handler creates log files on the server and stores the entries in plain text. The trouble I have with that: * it's kind of hard to get access
meetup Scaling WooCommerce talk at WooCommerce London on 23rd May 2016 Let me start by expressing my shock: * Slideshare is owned by LinkedIn * Slideshare has no idea what to do with keynote files Hence this blog post. You can grab my slides by clicking this very link [https://www.dropbox.com/s/0bmvxlige8pkhh9/woocommerce-london-scaling.key?dl=0] (it will
wordpress Why disabling emails is harder in WordPress than you thought? Aww yeah, my first clickbaity title! Anyways, let’s get down to business. Here’s the initial setup so you know why the following things will be annoying: You have an eCommerce website. That eCommerce website sends emails for new orders, renewal orders, etc. As it should. You need to
performance How I improved a query for our plugin by several orders of magnitude This is going to be super developer heavy. 99% of the article is going to be about SQL, so don’t really expect PHP or javascript things. Background We’ve been getting support tickets about the admin area being rather slow at times. We’ve recently released a new, 2.
web Unwork Recently a customer came back with a feature request. We're building an online store for them that is replacing their previous online store. The feature they want would allow them to upload an order with products that may or may not be in the system, tied to one