How to prevent docker container from exiting
A docker containing not running anything particular in the foreground will exit immediately after start. Specifying /bin/sh as the startup command does not help. Some Internet sources suggest tail -f […]
A docker containing not running anything particular in the foreground will exit immediately after start. Specifying /bin/sh as the startup command does not help. Some Internet sources suggest tail -f […]
During my trip abroad, I tried to use my credit card to make an online purchase, but the payment did not go through, it required a verification code sent to […]
Web sockets were invented to push data from web server to clients. So, one would expect that sending data to a web socket would look something like this: void OnNewDataReady(string […]
I noticed that whenever I pressed arrow keys on the keyboard, my mouse cursor moves in funny ways. This felt quite creepy, as if some software was trying to intercept […]
In the beginning, Brian and Dennis created C, and C had the void keyword, and Brian and Dennis saw that this is good. It all went downhill from there. In […]
This feature has apparently existed for years, but I found out only now. CLR has an equivalent of HTTP redirect for types, it is called You can move a class […]
I was experimenting with creating new projects out of templates in VS 2019, and to my surprise ran into a lot of trouble and error messages. One time it told […]
“Any sufficiently advanced technology is indistinguishable from magic” Athur C. Clarke While reviewing some code, I stumbled upon a class that receives an ObservableCollection<ILogFormatter> in the constructor. I discovered that this […]
I’ve been using Whatsapp for about 2 years now, and it was more or less OK, until I bought a new phone and tried to move my account there. This […]
TL;DR: wrapping existing method DoSomething(MyData data), with an identically named generic extension method DoSomething<T>(T data) is a bad idea, since it erases compile-time type checking. DoSomething() may now be called […]