New fresh SlackBuilds!

Here we are! In the last period, during my spare time, I worked on various SlackBuilds. The first of these is I-Nex, a system information tool like the well-known Windows software CPU-Z. I had to wait to build it because it requires libprocps which was not included before the version 14.2 of Slackware. The second one ...

Written by Cristiano

Ant buildfiles usage: a brief example 2

Hi folks! After a few months of inactivity I come back with a new post concerning the anatomy of an Ant¬†buildfile. Ant buildfiles are written in XML and are mainly used to build Java applications. In this post I’ll explain step-by-step how to write a buildfile for a simple Java application (a simple Web server ...

Written by Cristiano

A way to extract the playback time from mpg123

In the last period I was working on a project concerning UPnP. In particular I was developing a “smart speaker”, a wireless speaker which plays mp3 files by streaming them from a NAS (UPnP media server). The code is written in Java and leans to mpg123, a real time CLI MPEG audio player/decoder. The hardware ...

Written by Cristiano

Sort tricks

This nice UNIX command allows you to sort the rows of a text file according to predetermined criteria. Let’s do a few simple examples. Imagine you have a text file called Data.txt structured as below: If you want to sort the rows according to the age (the second column), you can do it with sort ...

Written by Cristiano