Tag Archives: python

Detecting HTTP/2 Support

Thanks to Ubuntu 16.04 which includes a fairly recent Nginx version, I have now enabled HTTP/2 on my private server. Of course, I also wanted to verify whether my configuration change had any effect – after all, there is no visible change … Continue reading

Posted in python | Tagged , , | 1 Comment

Converting Images to ASCII Art

I’ve been playing with Docker a lot lately. Docker is a tool for creating lightweight virtual environments based on Linux containers. They are extremely useful for running services, but you can also use them for running one-off tasks that you … Continue reading

Posted in linux | Tagged , , | 1 Comment

Remote-Controlling a Sonos Device Using Python

I couple of months ago I bought a Sonos Play:1, a pretty cool wireless speaker that comes with free controller apps for major platforms (Android, Windows etc.). To give the speaker access to my music collection, I hooked up a … Continue reading

Posted in linux | Tagged , , , | 2 Comments

A Template for Python Unix Utilities, Revisited

A long time ago, I posted a simple template for writing text-processing Unix utilities in Python. Since we’re not in 2009 anymore, I figured it’s time to port it to Python 3.

Posted in python | Tagged , | Leave a comment

Matplotlib: Plotting Bar Diagrams

A while ago we plotted time series data with Matplotlib. This worked nicely, but with the data at hand, a bar diagram would have looked much better. In this article I’ll give you a template for using bar diagrams with … Continue reading

Posted in python | Tagged , | 2 Comments

Visualizing Package Dependencies

Managing module or package dependencies is an important design activity that helps to keep a software project maintainable. Visualizing these dependencies is a good way of getting a first impression on a project and for exposing design problems. In this … Continue reading

Posted in java | Tagged , , , | 5 Comments

Simple Web Services With Bottle

Recently I rediscovered Bottle, a Python-based micro framework for web applications. Bottle gives you full control over your URLs, has a simple built-in templating engine and a lot of other commonly used stuff. It takes you five minutes to get … Continue reading

Posted in python | Tagged , , , | 2 Comments