How to avoid layout shifts caused by web fonts
Fonts cause layout shifts when the size of the containing element (e.g. a
or paragraph) changes when the web font is downloaded.
This occurs when the height of the font or the length of the paragraph is different with the web font compared to the system font.
Scaling Kubernetes to Over 4k Nodes and 200k Pods
Unlike Apache Mesos, which can scale up to 10,000 nodes out of the box, scaling Kubernetes is challenging. Kubernetes’ scalability is not just limited to the number of nodes and pods, but several aspects like the number of resources created, the number of containers per pod, the total number of services, and the pod deployment throughput. This post describes some challenges we faced when scaling and how we solved them.
Distributed Locking with Postgres Advisory Locks
Postgres Advisory Locks are a great solution for arbitrary application locks, particularly in scenarios where you are already using Postgres and have a need to block concurrent mutations to a resource (that resource DOES NOT have to be data in Postgres)
Using entropy for user-friendly strong passwords
Signup forms with specific and archaic password rules can be incredibly frustrating for anyone using a password manager. “Must have one special character, but only from !@#$ these allowed characters.”
When building PlanetScale’s signup form, we wanted to enforce strong passwords while also working well with password managers. After researching the problem, we found the best method for doing this is using an entropy-based password strength calculation.
256 Shades of Grey: Converting Colour Images to Greyscale
transform a full-colour image into one made up entirely of different shades of grey. The sort of image that we will create is called greyscale, because every colour that makes up the image is stored as a position on a predetermined scale of greys that starts at black and ends at white. Code in Go but it’s fun and easy to port to anything else
Code to read
✂️ Modern copy to clipboard. No Flash. Just 3kb gzipped 📋
Path finding in a graph
An easy-to-use, zero-downtime schema migration tool for Postgres
City-building simulation video game in Ebiden, a golang game engine.
A general classifier module to allow Bayesian and other types of classifications. A fork of cardmagic/classifier
Thin PostgreSQL clones. DLE provides blazing-fast database cloning to build powerful development, test, QA, staging environments
Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/implanted PEs, shellcodes, hooks, in-memory patches).
Converts a database into gorm structs and RESTful api
Proxy for enforcing webauthn authentication, written in Go
That's it for this round, have a great day! If you like this newsletter, please tell the world, or
tweet about this