CORS, proxies, and the trailing slash issue
TL;DR On the client side, use trailing slash when requesting the “default” resource from a Flask app. Server: Client: Why it matters In Production If you make a request without […]
TL;DR On the client side, use trailing slash when requesting the “default” resource from a Flask app. Server: Client: Why it matters In Production If you make a request without […]
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 […]
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 created an ASP.NET core project with docker support. Good thing: it works. Bad thing: the “dev” image it creates does not really contain application code. The code is added […]
Today I spent several hours trying to find out why this code does not work: function doit() { return someObject .method1() .method2(); } but this one does: function doit() { […]
It makes things so simple, I really wish other languages had it. Today in five or six places I wrote something like _innerObject?.Dispose(); instead of if (_innerObject != null) _innerObject.Dispose(); […]
In ECMA Script 6 toString() function can throw an exception. This makes generating debug output a treacherous minefield. In all other languages I know toString() on built-in objects is safe, and […]
…Continued from Part 1. Arrow functions ES6 introduces arrow functions, which can take several forms: Besides being a shorter notation for function(), arrow functions have special rule for this. They […]
Java language specification defines “this” keyword in one sentence. EcmaScript 6 definition of “this” is about a page of pseudo-code spread over several paragraphs, and there is a good reason […]
The forth place in the JavaScript WTF competition goes to the amazingly large number of ways to represent lack of value. Most C-like languages have keyword null that means “no […]