Virtual disk data recovery

The last weekend was terrible. On Friday evening I was writing some VHDL code for a small project and testing step-by-step all the stuff through a VHDL simulator runningĀ on Windows. Obviously, to do this I used a VirtualBox virtual machine, since my host OS is a Linux distro. Once I finished to work I simply ...

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