Django Project with PostgreSQL Deployment on Railway App(opens in new tab)
Introduction We have already seen the process of deployment of a Django app on Heroku, now we can move to another platform which is . This allows a faster and m
Curated river of news
Latest posts from blogs I follow
Introduction We have already seen the process of deployment of a Django app on Heroku, now we can move to another platform which is . This allows a faster and m
In this article we take look at how you can leverage Kubernetes Python Client library to automate whatever annoying Kubernetes task you might be dealing with, whether it's creating/patching resources, watching events, accessing containers or anything else.
Will McGugan has brought a lot of color to CLIs within Python due to Rich. Then Textual started rethinking full command line applications, including layout with CSS. And now Textualize, a new startup, is bringing CLI apps to the web.Links:richrich-clitextualTextualize.ioRich ...
I blew several INCREDIBLY frustrating hours trying to troubleshoot issues installing Google Workspace Sync and Microsoft Office 365 on multiple Windows 10 workstations today. Searching for “failed to create profile” errors when setting up a Google Workspace Sync user for ...
Monitoring is usually at the end of a checklist when building an application, yet it's crucial for making sure that it's running smoothly and that any problems are found and resolved quickly. Building complete monitoring - including aggregated logging, metrics, ...
… actually you can use only 2, but this will make your life a little more miserable. Contents Introduction The code The memory layout map vars shape The game loop The function that moves the snake: The function that displays ...
With the recent events relating to _Google Analytics_ platform, it's becoming very clear that the time has come for many of us to migrate from Google Analytics to different platforms. In this article we will go over both the _"Why?"_, ...
Contents Introduction The code Running the sample blog Adding a new blog post to the sample blog How everything works The model and a neat pre-processor trick The server Conclusions Discussion Introduction Recently, while browsing lobste.rs, I had the chance ...
Formatted string literals - also called _f-strings_ - have been around since Python 3.6, so we all know what they are and how to use them. There are however some facts and handy features of f-string that you might not ...
The current article won’t be an exhaustive technical analysis of Gradle but more like a spontaneous rant. Firstly, the time I am willing to allocate to learning a build tool will always be strictly limited. Secondly, I try to be ...
Every project can benefit from a robust continuous integration pipeline that builds your application, runs tests, lints code, verifies code quality, runs vulnerability analysis and more. However, building such pipeline takes a significant amount of time, which doesn't really provide ...
This article explains a straightforward approach for generating Perfect Hash Functions, and using them in tandem with a Map implementation called ReadOnlyMap. It assumes the reader is already familiar with concepts like hash functions and hash tables. If you want ...
This article assumes the reader is already familiar with the C programming language and some basic concepts concerning hash functions. The target audience (as is often the case on my blog) is undergrad CS students or seasoned developers who, just ...
When it comes to performance optimization, people usually focus only on speed and CPU usage. Rarely is anyone concerned with memory consumption, well, until they run out of RAM. There are many reasons to try to limit memory usage, not ...
Before any new feature, change or improvement makes it into Python, there needs to be a _Python Enhancement Proposal_, also knows as PEP, outlining the proposed change. These PEPs are a great way of getting the freshest info about what ...
We all spend a good chuck of our time debugging, sifting through logs or reading tracebacks. Each of these can be difficult and time-consuming and in this article we will focus on making the last one - dealing with tracebacks ...
If you're using GitHub as your version control system of choice then GitHub Apps can be incredibly useful for many tasks including building CI/CD, managing repositories, querying statistical data and much more. In this article we will walk through the ...
Profiling is integral to any code and performance optimization. Any experience and skill in performance optimization that you might already have will not be very useful if you don't know where to apply it. So, in this article we will ...
An attempt at catharsis. This is a deeply personal blog post about the most influential project I’ve ever created: attrs, the progenitor of modern Python class utilities. I’m retelling its history from my perspective, how it begot dataclasses, and how ...
Contentful is an immensely well-featured headless content management system, but the density of its featureset can be daunting to integrate with static site generators. The great news is, Eleventy is so well-designed and modular — it doesn’t have to be ...
Okay quick disclaimer before I kick this off — this post does not cover how to use interactive Vue components in an Eleventy project. This post covers using Vue entirely server-side! The client will not receive any Vue code. All ...
The book Life of Pi, written in 2001 by Canadian author Yann Martel, tells the story of a young Indian boy fascinated by philosophy, spirituality, and religious syncretism from an early age. After a devastating shipwreck on his way to ...
This tutorial is intended for intermediate C developers who want to get some coding practice and, in the process, gain valuable insights into low-level programming and how (some) Virtual Machines operate under the hood. The reader should already be comfortable ...
Codecov’s unreliability breaking CI on my open source projects has been a constant source of frustration for me for years. I have found a way to enforce coverage over a whole GitHub Actions build matrix that doesn’t rely on third-party ...
The intended audience for this article is undergrad students who already have a good grasp of Java, or seasoned Java developers who would like to explore an in-depth analysis of various hash table implementations that use Open Addressing. The reader ...
Table of contents Contents Table of contents Code Introduction C++ (unordered_map) Java (HashMap) Python (dict) Performance: Why Size Doesn’t Matter Hash Functions Hash Collisions What makes a “Good” Hash Function? Families of Hashing Functions Division hashing Multiplicative hashing Hashing strings ...
Trying out something new: today I’m launching my own Today I Learned section. In this essay I will sum up what my plans and hopes are.
Found 99 vulnerabilities (84 moderately irrelevant, 15 highly irrelevant)
The conflict between subclassing and composition is as old as object-oriented programming. The latest crop of languages like Go or Rust prove that you don’t need subclassing to successfully write code. But what’s a pragmatic approach to subclassing in Python, ...
This post is less about teaching and more about schadenfreude amusement for you, and catharsis for me. It’s the story of how one unfortunate HTML tag kicked me off almost all search engines and my months-long way back. And why ...
Contents Introduction Working with an UCI-enabled engine from the command line Installing Stockfish (and Leela Zero) Listing supported options Changing an option Analyzing a position Writing the Java UCI Client library Opening and closing the engine process Sending commands to ...
Working around SwiftUI's CommandsBuilder limitations to conditionally show top-level menus on macOS using direct AppKit integration.
I have this weird relationship with Incredible Amounts Of Grief where, like, I’ve literally been there — I know there’s nothing to say, and nothing will heal but time. When The Bad Thing™ happened, I felt angry so often with ...
The widely used Python package cryptography changed their build system to use Rust for low-level code, which caused an emotional GitHub thread. Enthusiasts of 32-bit hardware from the 1990s aside, a vocal faction stipulated adherence to Semantic Versioning from the ...
Rendering optimizations that come naturally.
Lie and lay are infamously confusing to non-native speakers. It’s so bad that it sparked a cottage industry of click-baity articles full of sketchy ads. Since English is my third language, I stumbled a lot myself until I wrote this ...
mapneat is a library I’ve written a long time ago. I am biased. Introduction Following my previous article, I wanted to expand on the capabilities of the mapneat library. In this tutorial, I will show you how to transform an ...
Debugging and fixing a SwiftUI keyboardShortcut bug that fails when mixing SwiftUI with UIKit through reverse engineering and LLDB analysis.
mapneat is a library I’ve written a long time ago. I am biased. Introduction One of the most common challenges I’ve encountered in Software Engineering is data manipulation: taking a raw data structure, applying business logic, restructuring it, and finally ...
Implement finer control of your Git configuration.