Today I learned: comparison of Python tuples
Turns out Python has built-in ordering for tuples and other built-in sequences, and it is organized very intuitively. I should have known that, but I didn’t 🙂 This makes comparing […]
Turns out Python has built-in ordering for tuples and other built-in sequences, and it is organized very intuitively. I should have known that, but I didn’t 🙂 This makes comparing […]
Setting up Django in a docker container proved to be harder than I expected, so I am recording the steps here. Oerview: Get Docker Desktop Get Ubuntu 20.04 on Windows […]
The task is to find groups of 5 English words in which each letter appears at most once, i.e. 25 letters total. These must be “real” English words from the […]
I bought a laptop with Windows 11 preinstalled, and ran into too many usability issues. They are not critical, but annoying, and it looks like I can downgrade my laptop […]
I realized that compiling a single-file program became much more complicated in Dotnet core compared to regular .NET. For starters, here’s how you run a Python file: python foo.py Here’s […]
I was too busy with my job to post anything here. Besides, for some time I was working on proprietary stuff, so I could not really post about it, and […]
TL;DR: Python type cast looks like an assertion: # Python x = expression_returning_Base assert isinstance(x, Derived) This corresponds to Java or C# // Java Derived x = (Derived)expression_returning_Base; In languages […]
I needed an IRC client for Windows, and mIRC came up in searches as #1 recommended. It said something about “registration” during the installation, but I ignored assuming that registration […]
I am using a MacBook for work now. Got a stuck installer, trying to restart the computer. Messages (not exact quotes). The system: cannot restart, please exit installer [Cancel], [Try […]
Found first hiccup: LiveJournal cross-post plugin did not work on the new site. The error was somewhat misleading: something like ‘message from www.livejournal.com: malformed, unable to parse’. In fact it […]