Difference between Docker and Virtual Machine
Anyone who used virtual machines (VMs) and Docker containers knows that Docker images tend to be much smaller than VM images and to start orders of magnitude faster. But why […]
Anyone who used virtual machines (VMs) and Docker containers knows that Docker images tend to be much smaller than VM images and to start orders of magnitude faster. But why […]
Disclaimer: this is a summary for my records after a deep dive into current state of Redis. I tried to be as precise as possible (after all, I am writing […]
In Python, Redis.hset function has ‘items’ that, per documentation “accepts a list of key/value pairs that will be added to hash “name“.”. You would think that it’s something like [(“key1”, […]
I created a “view model” like hook in React, and asked Cursor to write unit tests for it. The hook does not have any HTML code, but it uses a […]
TL;DR: Lenovo recovery media is NOT like regular Windows recovery drive. It can only factory-reset your system. No command line, no recovery from image, nothing else. Hulk smash. Don’t count […]
Summary WSGIApplicationGroup is a name of the Python sub-interpreter. You don’t need sub-interpreters if you run mod_wsgi in daemon mode (i.e. with dedicated processes). Always set WSGIApplicationGroup to %{GLOBAL}. If […]
TL;DR Under certain circumstances you won’t be able to access an HTTPS site with invalid certificate from Chrome, unless you type a magic cheat code “thisisunsafe“. I was debugging a […]
It’s pretty old stuff, but still… Here’s how you typically generate a random number in C++: Let’s dissect it a little. On the one hand, “random_device” is a rather nebulous […]
Summary Unlike many other languages, Python allows abstract static methods (see the reference). A class directly or indirectly deriving from abc.ABC cannot be instantiated, unless all its abstract methods are […]
TL;DR Internally CPython stores strings with fixed character size of 1, 2, or 4 bytes, depending on the string [PEP-393]. The indexing operator s[n] takes constant time. UTF-8 representation can […]