On a recent project I found myself needing one classic form-and-template style page in an otherwise API-driven project. I could, of course, [just do it] with a regular view function, but I had a bunch of authentication and suchlike set up for DRF APIViews.
Turns out it's actually pretty easy to make an APIView kick it oldschool!
This article describes how to get the [Helix] text editor set up to be a half-decent Python IDE. You'll need to know a little bit about the command line, but if you're using Helix you'll probably be fine.
One way that folks talk about “transparency” is as “organizations should share details of their operations with the people they affect” (employees, customers, the public, etc.). This kind of transparency is good! Being able to see things lets people make informed decisions; not being able to hide things prevents bad behaviour.
However, in computer systems transparency tends to mean something like “replacing a component with a different one that has the same interface but a different implementation”. It's a seductive notion: systems that are designed this way can sometimes have one component change without breaking others, or add capabilities by inserting new components that mesh with what's already there.
[Functional Pearl: Enumerating the Rationals] is a paper that's been on my “to-read” list for a long time. I finally got around to reading it a while back, and ended up implementing the algorithm it describes and publishing it as a [crate]. This article briefly describes that algorithm and some of the Rust-specific details of implementing it.
As the trajectory of the bird site got clearer and nastier late last year I decided to migrate to the fediverse. I didn't want to end up on another platform controlled by a petulant tinpot dictator, so I decided to see if I could host my own ActivityPub server. Mastodon looked pretty intimidating, but GotoSocial is a smaller, lighter, program that (approximately) inter-operates with Mastodon (yay, federation!).
This article describes how to migrate your subscriptions from GotoSocial to Mastodon. I recently made this migration; I talk about my motivations here.
This procedure doesn't handle getting folks over to your new account. It will get you a list of your subscriptions that you can import with Mastodon's data import feature so you don't have to re-follow everyone by hand.
I'm not aware of an account migration or user-facing data export feature in GotoSocial, so you'll need access to your instance's database (or help from someone who has it, anyways). With those caveats out of the way, here's the procedure.
When you write an HTML form, textarea is the standard way to support multi-line input, but it's not suitable for every application. CodeMirror describes itself as a “code editor component for the web”, and might be a suitable replacement for a textarea if you want something more like a code editor.
This article describes how to replace a textarea with a CodeMirror editor in under 30 lines of code and (hopefully) under 30 minutes of effort. It uses some very basic tooling to create an artifact that's no harder to deploy than vanilla JavaScript and HTML.
You can also jump straight to the source code if you prefer.
This article is a brief account of my experience setting up, operating, and using [Open Telemetry] on a very small software development project wherein I reach the surprising conclusion that it's probably worthwhile much earlier and at much smaller scales than you might expect.
There is, in my experience, a certain mindset among some information security professionals. They see themselves as the keepers of arcane knowledge, duty bound to hold the cyber-line, the last thing standing between common application developers and complete pwnage. They're the few, the proud, the ones who can shut it all down in the name of security. I'm not sure if it's a side effect of that field's association with the [“intelligence community”] or mere self importance; every profession has its foibles.
Unfortunately, apart from the usual objections to cops and special forces, I think that the metaphor leads to some dysfunctional tendencies in structure and strategy.