go how parseTime in sql connections work with time.Time in Go Working with time values in Go is not straightforward, and using a database to store them with automatic parsing can be even more fun! Here are my thoughts on it.
terminal Customize your ZSH prompt with this one weird trick! I like having the last commit's sha in the command line. Gives me instant access to the info. I'll walk you through how I made zsh to show it to me.
stripe Stripe Connect, and what it means for you! Stripe Connect is a convenient way to set up plugins with a few clicks. It also lets the account you're connecting to see all your data.
advanced Password managers, password rules, and an idea What if we had a standard that password fields could tell you whether the input conforms to the ruleset?
advanced Building a no-js eCommerce store I want to make an ecommerce site and not use javascript at all as an experiment.
wordpress Hosting: gotcha with multiple WP installs, one Redis If you're using one Redis instance to keep multiple WordPress sites' data, you need to make sure different sites don't bleed over to others. Read how and why.
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.
go Testing and mocking - what clicked for me Rundown on how to transform untestable code to testable, mockable code in Go using interfaces and mocking
timezone How should we store future time in non UTC in a database and still be performant? An example of a practical approach on how to store data in both local time, and a normalised time (UTC), and still be performant, but counter the timezone shift.
wordpress Generating WordPress salts in Go One of the things I want to achieve in 2018 is to learn to use Go. - learn golang - launch own saas - launch company saas - get to
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,
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)
learning This weekend I was learning Go, set up a pi-hole, and was doing data rescue Busy weekend of learning Golang, rescuing data from unreadable disk (ongoing), and setting up an online ad blackhole.
wordpress On fixing embedded content in WordPress How to use a custom wpcli command to fix broken links in all content across your entire WordPress site.
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, which is brilliant. There are two pieces to it: the logger
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 by extending / replacing some of the classes, adding columns to the table it created, and renaming things. I haven’t had much time
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
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
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
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