April 19, 2018

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 search (in StackOverflow or Github) yield any information that might seem somewhat related to the issue. I think this xkcd strip puts it quite clearly: Read more

January 31, 2018

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 bunch of print statements. You set up your service and your surprise when you do sudo journalctl -f -u python_service.service The logs dont show up! The reason is python stdout is being buffered when redirected to journal, and thus it only shows up in blocks Read more

October 25, 2017

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 -option "shift:both_capslock"

October 25, 2017

What is it to work in a Startup - the good and bad

Nowadays, everyone seems to be fascinated about startups. Media bombard us with success story after success story, displaying incredible offices featuring slides instead of stairs and in house chefs preparing home made dinners. I started working in November 2013 in a NYC based Startup named Namely. I was the 18th employee joining the company. As of now, 4 years later, Namely has more than 300 employees. Back when I joined, we had two offices. Read more

Powered by Hugo & Kiss.