advanced OIDC Front Channel Logout – The Missing Manual Oh my god, this took me like three weeks of asking incredibly dumb questions in retrospect and bumping into furniture, fighting with kubernetes and just generally not understanding what the specification was talking about. This article is going to talk about the Front Channel Logout of OIDC 1.0, and
go Cherry pick nested JSON fields into a struct in Golang How to handle non-trivial JSON parsing into Go structs by using a custom Unmarshaler. Or the standard library.
advanced When base64 encoding goes wrong Base64 encoding is easy, except when different commands automatically add unexpected values to the thing you want to encode.
go Length and capacity in Go slices Length and capacity in Go slices confused me for a while. They're related but different, and important. This will give you more clarity on what they are.
webassembly Running WebAssembly code on NGINX Unit NGINX Unit 1.33 just got released, and it has an up to date version of wasmtime. Here's how to run your component in Unit.
advanced SQLite General error 1: foreign key mismatch Foreign key constraints are fun, but there are a bunch of requirements you need to pay attention to. One of them was kind of sneaky in Laravel.
WeblogPoMo2024 Back to signing git commits with GPG Decided to move back to GPG for commit signing from SSH. Here are the steps I took and why I took them.
git Sign my commits, git! How to configure git to sign commits with ssh, how to verify them locally, and how to make sure GitHub also verifies the commits with that key.
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.
advanced Traces and logs for local development and docker How I organize my utility services, like log and trace collection, for modularity and reusability during local development
go On interfaces and composition Abstractions are good. Golang has interfaces. The article talks about how to use interfaces to make code more maintainable and flexible.
stripe Integrate Stripe dashboard from your site Stripe's customer portal is awesome, but you need to give them a link to click on to get there. This walks you through what you need to make that happen.
go Golang style linters, multiline statements, and blocks with whitespace The golang ci lint linters whitespace, lll, and wsl can put you in a cycle of warnings about your code quality. By adding a comment to the right place you can appease all three.
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 work on a tropical island in between surfing sessions - continually push industry for better inclusion - and better security - get quoted in a print
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