Choose your language.
I write in English, but I translate most of my articles to Czech as well.
Zvolte si jazyk.
Píšu anglicky, ale většinu svých článků překládám i do češtiny.
Python
A few weeks ago I needed to quickly verify a result of matrix multiplication. Having only a few minutes, I had to resort to a DIY solution instead of finally learning how to use numpy (yeah, still on the TO DO list…)
I’ve released a new version of my tcviz script. Apart from making a few improvements under the hood, I’ve fixed a bug – never again will tcviz choke on hexadecimal major/minor numbers :-)
Since I develop and test various web applications, I usually need to run a web server and one or two database servers. To avoid wasting resources, I start the necessary server daemons only when I need them. Unfortunately, this method is rather uncomfortable. Or, it used to be. Until I wrote a script called daemones.
A new version of my little tcviz script is out. I’ve fixed a few ugly bugs. tcviz can now also load the TC specs from files instead of reading live TC setup. This is mostly useful for debugging.
abacus is a simple daemon that counts every key that you press. Its only use is to generate interesting charts that show how much you type every day :-)
Are you tired of manual enabling, disabling, and reconfiguring the Amarok equalizer? I used to be… until I developed a nice Amarok script to do the work for me. Meet autoEQ, a program that monitors what tracks you listen to and automatically selects equalizer presets according to your own rules.
In the past six months I had to deal with Linux traffic control (TC) a lot. I was literally blown away by the advanced features of the system. Of course, the versatility comes for the usual price: complexity. I definitely do not regret the time spent on understanding the principles of classes, qdiscs, filters, major and minor numbers, etc. However, I think I have found a way to work with them more easily.
The more I get to know Python the more I like it.
In this post I am going to share three code fragments that I wrote in the past few months.
Whether useful or not, they demonstrate the beauty of the language that I admire.
No doubt my code could be improved. I’ll be grateful for any suggestions.