I have released the first public version of cpu-stat, a command line program which provides CPU usage statistics for Linux systems. Source code is open and available on GitHub.
Tag Archive: code
This article explains how to create a simple program in C++ that shows the current CPU usage from command line in Linux. That’s achieved processing the file /proc/stat which contains several kernel/system statistics.
This tutorial will show you how to use Qt Network and JSON to create a simple Hacker News reader based on the Hacker News API. In particular we will be using high level classes of Qt Network to handle HTTP requests….
This tutorial will show you how to use SQLite and Qt SQL to have a relational database in your application. It will cover all the basic operations needed to work with a database like creating a table, inserting data, executing…
This tutorial is an introduction to Qt programming and will teach you how to create an application with Qt and C++. Full project and source code are provided.
This is a very simple C++ tutorial which explains how to use the open-source library libgit2 to iterate through a git repository.
If you’re working on some C++ code and you need to sort the elements in a container which provides random access, like a std::vector, the simplest and quickest option is using the function std::sort from the <algorithm> functions. In this post I’m showing…
Fifth month of development and fifth status update on Shade, a cross-platform framework for 2D games which will be the core technology of all my future mobile and desktop games.
In this post I’m going to show you how to build SDL2 as a static library on Linux using a building tool called SCons. The static library will be used to create a basic program which opens a window, nothing fancy, but…
C++ is a powerful language, but “with great power comes great responsibility” so it’s quite easy to mess things up and to make mistakes that can lead to unexpected results and miserable fails. In this post I’m going to describe…