QSS syntax highlight in Qt Creator

Qt Creator is the IDE (integrated development environment) used by Qt SDK. It is a powerful piece of software that runs on Linux, Windows and macOS. Qt SDK is able to style built applications using QSS styles, something similar to CSS standard.

Qt Creator supports not only C/C++ syntax highlighting, but basically any language through Kate Editor Syntax Highlighting files. These are XML files that define lists of specific keywords. In this way, the Text Editor of Qt Creator is able to style these keywords using a color scheme.

Qt Creator doesn't have a default QSS syntax highlight configuration file. And neither Kate. But there are two ways to add QSS syntax highlighting to Qt Creator.

Generate radio coverage maps with SPLAT!

SPLAT! is a cross-platform, open-source software that can be used to analyze a radio link between two locations and to generate coverage maps of RF transmitters. Coverage maps are calculated using Longley-Rice Irregular Terrain Model (ITM) algorithm. SPLAT! can predict RF coverage for any frequencies between 20 MHz and 20 GHz. It is thus useful for ham radio, broadcast radio, terrestrial television and wireless networks.

To use SPLAT!, you need to know some parameters of the transmitter. These are the exact location (coordinates), antenna height, transmission frequency, polarization and effective radiated power (ERP). SPLAT! can then compute coverage maps. The procedure of installing SPLAT! is described in a previous article. You can generate two kind of maps. There is the regional coverage analysis mode that will output line-of-sight coverage map assuming all waves propagate in a straight line. There is also the path loss analysis mode that uses the ITM algorithm to compute either a field strength map or a received signal strength map.

Install Sky Digital Key (AverMedia A867) on PC

Sky Digital Key is an USB DVB-T tuner designed to be used with this provider's satellite receivers. There are two variants, one with green LED and the other with blue LED, the last being an AverMedia device with Maxlinear MxL5007T tuner and Afatech AF9035 USB demodulator.

The DVB-T key can be installed on PC too. However the driver installation is not quite straightforward. The device is a copy of AverMedia AverTV Volar HD Nano with two small differences: there is no remote control sensor on Sky key although the PCB has the pads for it and USB IDs are different for the two devices. This aspect makes drivers installation difficult.

This article will describe the installation procedure on Linux and Windows. The USB tuner can be used to receive DVB-T signals with BDA compatible software on Windows (such as ProgDVB) and Kaffeine on Linux.

 AverMedia A867 - Sky Digital Key

Show last updated date in Blogger posts

Although this is not the kind of post for this blog, I decided to write about this because there are opinions saying it is impossible to show updated date in Blogger posts. Blogger offers support only for the date when a post is published. You can, of course, edit the post and change published date, but that is not what most people want.

The method that follows is completely automatic and it will print the last date when you used the post editor on the specific post. It makes use of data stored in blog feed, because, although there is no tag for updated date in Blogger (something similar to published date tag data:post.timestamp), the updated date is stored in your blog feed. I first noticed this when I registered my blog on Tapatalk and noticed that updated posts appeared on top of the list.

Remove non-latin fonts from Ubuntu

The default Ubuntu installation comes with a lot of fonts. This is a good thing. Many of the latin have good support for Extended character sets. But no matter what locale and/or installation language you choose, Ubuntu will install by default some non-latin fonts for Japanese, Thai, Ethiopian, Myanmar, Lao, Tibetan, Korean, Punjabi, Sinhala, Arabic and Khmer languages.

I don't know whether these fonts are ever needed by the operating system (i.e. for the language choosing settings or for displaying some web pages) but as a latin alphabet user I don't need them and I didn't like the fact that they were cluttering my font selection dialog without being of any use to me. So I decided to uninstall them.

The list below is tested on Ubuntu 16.04. I managed to free about 100 MB by removing these fonts. And now, my font selection box (in LibreOffice, GIMP, Inkscape, etc.) is filled with latin only fonts that I can use. You can see in the screenshot below how it looks before and after removing the unneeded fonts.