Monthly archives: January, 2021

Power toys I cannot work without

I believe every skilled worker needs to have a collection of good quality tools to achieve optimal productivity. For me, a big part of my job is to write code for software development as well as for algorithmic development, testing, debugging, and frequently for learning. As such, I have collected a number of invaluable tools …

Microsoft Power Toys

Microsoft powertoys is about about two years old and I have been using it for few months only. It is not a single tool but a collection of different tools and it is very actively maintained and developed on GitHub. If contains the following tools: Color Picker Fancy Zones File Explorer Image Resizer Keyboard Manager …

Center/Right Align a Widget in QTreeWidget

Qt comes with a QTreeWidget class which can be used to show data in a tree view. It can be used to show hierarchical data using either Model/View framework or by manually creating the hierarchy. The QTreeWidget supports multi-columns for each row and also allows editing of the individual cells. However, sometimes we need to …

Display FPS for VTK on Python

In the last post, I discussed how to get started with VTK on Python. In this post, I will show how to add support to show frames per second (FPS). The idea to calculate FPS is straight forward: keep track of the number of frames (N) that were rendered in last T seconds. Then fps …

Getting Started with VTK for Python

The visualization toolkit (VTK) is a open source library displaying scientific data. VTK is maintained by Kitware, the same company which gave us CMake. VTK is written in C/C++ but it comes with Python bindings and can be installed from https://pypi.org/project/vtk/. In this post, I am going to show how to start using VTK from …