Creating a Chat Application with Django and HTMX(opens in new tab)
Django + HTMX Chat application Introduction In this article, we will be creating a Django project, which will be a chat-room kind of application. The user needs
Curated river of news
Latest posts from blogs I follow
Django + HTMX Chat application Introduction In this article, we will be creating a Django project, which will be a chat-room kind of application. The user needs
Have you ever written a long chain of if/else statements or a huge match/case block, with all statements just matching against a list of values, and wondered how could you make it more concise and readable? If so, then _dictionary ...
Contents Introduction Number systems A certain symmetry and patterns Numbers and Data Types in C Transforming numbers from decimal to other number systems (binary, hexadecimal, etc.) Bitwise operations Bitwise AND Bitwise OR Bitwise XOR Bitwise NOT Left Shift Right Shift ...
An archive of my high school desktop designs, circa 2009
Ever since I got involved with open-source Python projects, tox has been vital for testing packages across Python versions (and other factors). However, lately, I’ve been increasingly using Nox for my projects instead. Since I’ve been asked why repeatedly, I’ll ...
Continuous profiling is a great tool for optimizing the performance of applications. It allows us to continuously monitor and analyze application's resource usage, identify bottlenecks, and use resources more efficiently. In this article, we will take a look at how ...
I got an email recently from a kind online friend who said they thought my work was swell, and that they’d like to ask about my process or what makes a good website. Aside from that being a really nice ...
We’re often told not to use document.write(), but… why?!
Why does DYLD_LIBRARY_PATH keep disappearing!?
Using language models to generate reverse outlines of writing drafts
Introduction In the 25th post of the series, we will be taking a look into parsing of command line arguments in golang. We will be exploring how to do the basic
We all are familiar with Python's generators and all their benefits. But, what if I told you that we can make them even better by combining them with recursion? So, let's see how we can use them to implement _"lazy ...
Proving you're a human on a web flooded with generative AI content
Introduction Well, what a year! If 2021 was a start, 2022 was a year to convert a start into a goal. From collaborating on open-source projects to getting an in
Introduction In the 24th post of the series, we will be taking a look at how we can perform write operations to a file using golang. We will be using the packag
On the fuzziness of calling things “artificial intelligence” and moving the goalposts
Python's magic methods - also known as _dunder_ (double underscore) methods - can be used to implement a lot of cool things. Most of the time we use them for simple stuff, such as constructors (`__init__`), string representation (`__str__`, `__repr__`) ...
How to make a single user, publish only, mastodon instance with four json files and two pictures
With what's happening at Twitter, many people are considering moving to Mastodon. Like Twitter, Mastodon also offers an API that can be used to create many useful application, bots, to analyze data, respond to notification or simply post some statuses, ...
This is the end.
Making RSS feeds better for hugo static generated sites
The simplest solutions are often the best
In this post I’ll walk through the setup of an example project to show how to build a modern CLI in Rust.
Kubernetes v1.25 introduced Container Checkpointing API as an alpha feature. This provides a way to backup-and-restore containers running in Pods, without ever stopping them. This feature is primarily aimed at forensic analysis, but general backup-and-restore is something any Kubernetes user ...
The hardest things are all in your head
Command line bars you can quickly summon with a keyboard shortcut
This game was easier when I was a kid
Click the gif to see what happens. If you're in the United States GO VOTE!
The infrastructure lies we tell ourselves, and why they're useful.
Google has literally hundreds of APIs, including ones for Gmail, Drive, Maps, Translation, Analytics and more. All of these share the same concepts like authorization, pagination or media uploads/downloads. In this article we will explore all of these concepts and ...
It's Halloween, but this isn't a Stranger Things reference
Reading specific file types (JSON, YAML, TOML) In the previous post, we have seen how to read files in golang, in this extended post of that part, we will look
A little direction goes a long way
Small, scoped areas within a graphical interface that allow users to read and write simple programmes