At some point, the Linux kernel decided that the maximum CPU usage (derived from “/proc/<PID>/stat”) for my FX-8320E CPU should be 400% instead of 800%. Poppycock, I say! This Piledriver beauty has 8 (integer) cores and Conky divides a process’ CPU usage to the number of cores, ending up with a maximum value of 50%… Read More I program my home computer, beam myself into the future
w_scan is a very useful tool, because it can scan DVB-C/T/S and ATSC channels without any prior knowledge of frequencies. It’s been a while since I last used it, but now I got a new TV tuner card and did a new scan with it, only to discover that the Rai channels were no longer… Read More scan all the things!
Here’s how you can pass initial values to a model formset (mfs) after the object was instantiated: Tested with Django-1.7 but should work with older versions. For regular formsets replace ‘initial_extra’ with ‘initial’.
The holy grail of web application deployment is restarting without dropping ongoing requests and without any downtime. This is called graceful restart or graceful reload and one of the easy ways to achieve it is to run multiple processes and have some of them stop accepting new requests and restart themselves when they finish serving… Read More uWSGI and graceful reloading
I’m releasing today cherokee2nginx – a script that converts your old cherokee.conf to a new and shiny nginx.conf. Well, not that shiny since the conversion is incomplete and this initial version only covers the parts I needed for a single server, but it sure beats having to do everything by hand. From the parts that… Read More migrating a Cherokee configuration to Nginx
Randall Munroe reiterates an often invoked defense of censorship in his last xkcd comic: freedom of speech only applies to interactions with the government. By this logic, non-governmental entities are free to censor any sort of speech they don’t like. In order to understand why this approach is corrupting a basic human right, we need… Read More from stick figure rights to human rights