Happy new year everyone. 2022 was a brutal year for me. A few app and idea I was working on wasnt turning out well and my start-up also shutdown. At the end of 2022, I got a terrible COVID but luckily thing turn out well and here am I sending out this issue. Hope 2023 will be a better year. I’ll keep building software, trying out new ideas again, and keep sending newsletter :-). If you like my newsletter, consider sponsor me on https://www.buymeacoffee.com/betterdev. Thank you so much for being audience all these years.
There are some really interesting algorithms and data structures out there. Not only have they come up during job interviews, but learning them changed how I think about problems. Plus they’re useful even if you don’t work on Google-scale problems. One of interesting data structures I learn from this is piece tables to represent text buffer of an editor. VScode use it too to implement their text buffer.
an uuid looks like this ff78ae6b-7176-46e9-81c6-4bee60ba81bb
? is uuid a string? how come it’s has 128 bit? At its core, UUID is just a byte array, we can re-present that byte array in whatever encoding we want, base10, base64, base36, or hex.
The CDN we’re going to design uses: nginx, lua, docker, docker-compose, Prometheus, grafana, and wrk.
To represent raw byte data, we cannot use ascii printable alone, there are many char cannot be print. So we need raw byte, but writing all 0 and 1 next to each other in a 8bit sequence gonna be long and hard to see. Hexadecimal solve that problem very nice because it has a unique feature, one hex character can re-present 4 bit, which mean we need only 2 char to represent a byte.
Thomas shows us how he use Raspberry Pi to build a DIY security alarm system, using a Raspberry Pi as the controller. His plan was to make a self-sustained system, using proper alarm hardware — like PIR sensors and sirens.
A very interesting aspect of SSH private key and. How their optimization allow the key to not require a certain part of the file.
We linked to this site in last issue about pipe. This week we learn about page cache, file operation, and mmap syscall. What happen when we read or write data? how does that generate a syscall and how kernel do it? We know that the kernel cache data when you read a file, but how does we check what is cache, how do we inspect it? how does that data is invalidate
Filippo is a security expert who design and implement age encryption. He’s probably most famous for his tool mkcert. So let’s learn how security use password manager to secure their password day to day. I belived for engineers, password manager shouldn’t be a cloud solution. we should self-hosted it and manage our own vault
Here are five rules of thumb you can apply to common UI design challenges when building web applications: Use defaults, Obvious settings, Show progress, Avoid interruptions, Flat hierarchy. Working on my second saas app(my first is mailwip, an email forwarding service), I like these kind of UI articles.
Today, I’ll take you through the process I came up with in regard to transforming an SVG path into a vector rope drawing. You will learn how to turn a path into a true svg image with texture around the path.
a simple password manager. encryption via age, written in portable posix shell. In the recent incident of LastPass, it maybe wise to roll out own password manager to ensure 100% our data is fully encrypted
Basha complete open source authentication solution for Next.js applications. It is designed from the ground up to support Next.js and Serverless. The code is a monorepo of many small package so you may want to focus on next-auth package and the core
JavaScriptMailchimp Open Commerce is an API-first, headless commerce platform built using Node.js, React, GraphQL. Deployed via Docker and Kubernetes.
a tool for Linux file system snapshot management. Apart from the obvious creation and deletion of snapshots it can compare snapshots and revert differences between them. In simple terms, this allows root and non-root users to view older versions of files and revert changes.
an instant REST+GraphQL API and intuitive no-code data collaboration app for any SQL database.
Self-hosted photo and video backup solution directly from your mobile phone.
BetterDev Link
Every Monday