Fixing `bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)` on Ubuntu 20.04 Server
This error happens when your SSH client forwards your local locale environment variables to the remote server which doesn’t have the specific locale you requested. You will need to use sudo or be root to run these commands. Generate locale: locale-gen en_US.UTF-8 Set locale by doing the following …
Tracing Memory Leaks In Python
Recently, I ran into a hard-to-put-your-finger-on issue: a memory leak. The memory usage would increase gradually until the load on the server becomes so high that it becomes unresponsive. While restarting the server would get us out of the pinch, it was not really a solution as that is just …
Creating an Executable JAR in Intellij IDEA
I’ve been using IDEA for a while now and have been very happy with it. While Eclipse is a great free IDE, IDEA does bring a lot more to the table and is worth the price IMHO. That said, I’ve always felt that creating a JAR in IDEA …
Allowing Users to List Databases
I’ve been playing around with mongoDB’s v3. Before you had to create users inside every single database for restricting access. I can see various scenarios where such a model would have become a user management nightmare. In the new version, I like how we can have all users …