Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]

Tinker, Tamper, Alter, Fry

Tinker, Tamper,...
Should I Use JWTs For Authentication Tokens? No.Not satisfied? Fine, fine. I’ll write a longer answer.Let’s talk about what we’re talking about....
9 months ago
15
9 months ago
No.Not satisfied? Fine, fine. I’ll write a longer answer.Let’s talk about what we’re talking about. JWT stands for JSON Web Tokens, a reasonably well defined standard for authenticated tokens. Specifically they have a header with format information, a payload, and a signature or...
Tinker, Tamper,...
Auditing User Intent in Closed Source IoT Applications (Header image under CC-BY by Gregory Varnum)Hardware-backed voice assistants like Amazon Alexa and...
over a year ago
14
over a year ago
(Header image under CC-BY by Gregory Varnum)Hardware-backed voice assistants like Amazon Alexa and Google Assistant have received some criticism for their handling of voice data behind the scenes. The companies had outsourced quality control/machine learning feedback to external...
Tinker, Tamper,...
How To Use PyJWT With Django In A Resource Server And Still Keep Parts Of Your Sanity The OAuth2 spec cleanly separates the role of Authorization Server (AS) from that of Resource Server...
6 months ago
14
6 months ago
The OAuth2 spec cleanly separates the role of Authorization Server (AS) from that of Resource Server (RS). The role of the AS, and the whole OAUTH2 dance, is to get an access token that will be accepted by a RS.It’s puzzling. It should be easy, nay, trivial, to implement the...
Tinker, Tamper,...
Making Good Bug Reports Many, many years ago, this was with Bugzilla in the early 2000s, I got my first automated lecture on...
6 months ago
12
6 months ago
Many, many years ago, this was with Bugzilla in the early 2000s, I got my first automated lecture on what constitutes a good bug report. I probably didn’t pay attention. Since then, I’ve seen this list countless times, in various levels of detail, across a broad array of...
Tinker, Tamper,...
KY-040 Rotary Encoder with Linux on the Raspberry Pi For a project I with a Raspberry Pi (Zero W) needed a simple and easy input device to change a...
over a year ago
12
over a year ago
For a project I with a Raspberry Pi (Zero W) needed a simple and easy input device to change a numerical value. So I bought some rotary encoders off Amazon.If you search the Internet for information/tutorials on how to use a “KY-040” rotary encoder with Linux and the Raspberry...
Tinker, Tamper,...
Understanding Common Table Expressions in SQL One of the lesser known features of modern SQL are so-called “Common Table Expressions” (CTE) or...
over a year ago
12
over a year ago
One of the lesser known features of modern SQL are so-called “Common Table Expressions” (CTE) or “WITH queries”. I’ll explain the mental model that helped me make sense of them, and how to use them to execute recursive queries. Afterwards I’ll show how to apply these techniques...
Tinker, Tamper,...
Showing SQL Queries with Pytest and Django I have a Django based project, and am doing unit tests with py.test. To debug a test failure it’s...
over a year ago
11
over a year ago
I have a Django based project, and am doing unit tests with py.test. To debug a test failure it’s sometimes useful to see the actual SQL queries that Django emitted, which is surprisingly hard. I assumed that that would be such an obvious and common need, that a simple switch...
Tinker, Tamper,...
An Efficient Multi-Stage Build for Python Django in Docker We’ve recently begun dockerizing our applications in an effort to make development and deployment...
over a year ago
11
over a year ago
We’ve recently begun dockerizing our applications in an effort to make development and deployment easier. One of the challenges was establishing a good baseline Dockerfile which can maximize the benefits of Dockers caching mechanism and at the same time provide minimal...
Tinker, Tamper,...
Docker Deployment Best Practices Given: There’s a CI system that automatically builds docker images from your VCS (e.g. git), we use...
6 months ago
11
6 months ago
Given: There’s a CI system that automatically builds docker images from your VCS (e.g. git), we use self-hosted gitlab.Goal: Both initial and subsequent automated deployments to different environments (staging and production). Rejected ApproachesMost existing blog articles and...
Tinker, Tamper,...
On The End of Bitcoin [This is a repost of a thread of mine from a dead social media platform. The original posting date...
over a year ago
9
over a year ago
[This is a repost of a thread of mine from a dead social media platform. The original posting date was May 24th, 2022. I have not added new content.]Is there some scientific literature/scenario planning on the End of Bitcoin? With the next two halvings mining income will shift...