On commenting code: external vs internal documentation

In my day job, I sometimes have to write scripts in order to automate things that either happen too often to be handled manually or need to be handled in the shortest amount of time possible.But more often, I am tasked with modifying the behavior of an already existing script and/or adding new functionalities.Needless to… Continue reading On commenting code: external vs internal documentation

Advertisement

Decommisioning acso-explorer.santoro.tk

Today I stopped serving requests for the domain http://acso-explorer.santoro.tk. Acso-explorer was a patched version of gcc-explorer, bundled with pre-built cross-toolchains of gcc-m68k, gcc-mips and gcc-amd64. The last request has been served October 29, 2016, but the node.js process was consuming 5-6% CPU with unjustified spikes to 10-12%. I'll be setting up a pointed to the… Continue reading Decommisioning acso-explorer.santoro.tk

Learn how to use GNU info

Recently I've been digging a lot into GNU/Linux system administration and as part of this, I have finally taken some time to google about that mysterious info command that has been sitting here in my GNU/Linux systems, unused for years. Well, I can tell you, it has been a life-changing experience. Texinfo-based documentation is awesome.… Continue reading Learn how to use GNU info

I wrote a toy url shortener and people started using it

So yesterday I gave an introductory presentation on how to write web applications using Python, Flask and dokku. In my talk I shown how to go from zero to a fully functional application with a small but functional deployment environment based on Dokku. The nice thing I noticed is that people started using it, and… Continue reading I wrote a toy url shortener and people started using it

Testing Go applications with PostgreSQL and docker

I spawn and terminate docker containers automatically with Jenkins. This allowed me to have a lighter application and to keep my testing environment closer to the live environment. In this post I describe how I did this. The problem A problem i recently faced was how to build continuous integration for a web application I… Continue reading Testing Go applications with PostgreSQL and docker

Gin-gonic improvements

While writing simple web applications using gin-gonic web framework, there are some things that should be improved, in my opinion: Ideas Static file serving: it should be improved to use browser caching, according to https://developers.google.com/speed/docs/insights/LeverageBrowserCaching Default values for templates rendering: there are some values that I am going to need in pretty much every template… Continue reading Gin-gonic improvements