19 December 2023

58 links · Tuesday

@stevekrouse.compress_response

Compress Response Isn't it cool that browsers can natively decompress stuff? There are a couple of supported compression algorithms: gzip (used below), compress , deflate , br . Learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content…

Discovering copy-on-write in R

This is the story of how I wrote an absurdly inefficient algorithm to solve a cool problem in R, learned about copy-on-write semantics, and then came up with something much faster. This debacle has definitely made me a better R programmer.

Security and Crashing with Modal Logic

Modal logic is a beautiful field of logic that can be applied to computer science in a few ways, one of which we explore in this post. It can elucidate security concepts and how and why to crash software.

The Systemic Racism of the Electoral College, Revisited

The concept of one-person-one-vote is central to democracy. No person’s vote should have more power or influence than anyone else’s. In a 1964 case Wesberry v. Sanders, the Supreme Court stated this explicitly: “As nearly as practicable, one man’s vote in a Co…

Fsync and k8s pvc snapshots

IntroductionMy last post was about waiting for k8s to finish taking the PVC snapshot before using it for restoration. Well, like most things in software development, the restore didn’t work. Why?Why n

SVD Image Compression

Singular Value Decomposition (SVD) is a fundamental concept in linear algebra, and it is particularly important in the field of machine learning for tasks such as dimensionality reduction, data compression, and noise reduction.

s/acc: Safe Accelerationism Manifesto

Accelerate. Fast, Safe and Fair. Technology has been a transformative force for our civilisation and it is poised to play an increasing role going forward. Recent progress in Artificial Intelligence spurred discussions about how we should approach the develop…

Improving Emacs isearch Usability with Transient

Emacs incremental search (isearch) has an embarrassingly rich feature set. That said, I rarely use isearch beyond its basics for the twofold reasons: There are many isearch commands that are...

Maybe We Don’t Need UUIDv7 After All

In the last weeks, the topic of interest seemed to be UUIDv7 identifiers and how they solve DB index problems caused by random identifiers such as UUIDv4 IDs.

Introducing Route Generator for .NET

Learn to avoid navigation hell by having Routes auto-generated for you in your .NET frontend application

I Love Ruby

I've done a lot in my career. From working on business support software to big backend systems and even robotics. If there's been a consistent through-line to my career, it's the Ruby programming language.

Providing HTML Content Using Htmx

author, Laurence Isla,. This how-to shows a way to return HTML content and use the htmx library to handle the AJAX requests. Htmx expects an HTML response and uses it to replace an element inside the DOM (see the htmx introduction in the docs). Preparatory Con…

3Blue1Brown

Mathematics with a distinct visual perspective. Linear algebra, calculus, neural networks, topology, and more.

How to Use Async/Await in JavaScript – Explained with Code Examples

Hello friends! In this article, I'm going to show you how to use the “async/await” special syntax when handling JavaScript Promises. If you don't know or need a refresher on JavaScript promises, you can read my previous article: How JavaScript Promises Work – …

People in Space! (2023 .NET Advent)

My entry for the 2023 .NET Advent - Finding out who is in space with C# with Spectre.Console with a special shout-out to The Muppet Show!

Discriminated Unions in C#

This blog post is a very gentle introduction to how you can simulate Discriminated Unions today in C# whilst you wait for them to be added to the C# Language. We'll look at one of the less popular reasons for wanting their introduction: Domain Modelling.

Unbricking my MacBook took an email to Tim Cook

After my lost MacBook was returned to me with an Activation Lock on it, Apple refused to unlock it. Only after emailing Tim Cook could I get it unlocked.

Flipboard Steps Back from Tweeting

We have decided to suspend our activity on Twitter/X. While we’ve enjoyed connecting with many of our community members there, we believe…

Progress toward a GCC-based Rust compiler

The gccrs project is an ambitious effort started in 2014 to implement a Rust compiler within The GNU Compiler Collection (GCC). Even though the task is far from complete, progress has been made since LWN's previous coverage, according to reports from the proj…