Note to Self. Installing LightGBM in Ubuntu 18.04

These are the steps I took to install Microsoft's cool Gradient Boosted Models library, LightGBM Step 1. Install CUDA I am not going to explain this step because it is easy to find. Step 2. Install Boost sudo apt-get install libboost-all-dev Step 3. Clone LightGBM and build with CUDA enabled…

Note to self: Fixing encoding in Golang ascii85

Yesterday I spent a few hours dealing with what I like to call "the edges of StackOverflow". By that I mean those situations in which you are trying to solve a programming problem (mostly a bug) and you have no idea why its happening, and even worse, no amount of…

Note to self:Print statements not showing up on systemd logs? Do this

Let's assume we have a service set up as follows: [Unit] Description=systemd_microservice [Service] User=USER Group=GROUP WorkingDirectory=systemd_working_directory ExecStart=/usr/bin/python python_scripts.py SuccessExitStatus=143 TimeoutStopSec=10 Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target And inside python_script.py you have a…

Note to self: Disable caps lock in Ubuntu 16.04

Sources: here and here This post shows how to disable the caps lock key and enables it only by pressing both shift keys together. 1. Install DCONF $ sudo apt-get install dconf-tools 2. Disable caps lock and reenable it as pressing both shift keys at once: $ setxkbmap -option "caps:none" $ setxkbmap…