Python

Linked items to a Tree

Let’s say you receive a list of 2 linked items having a “is included in” relation. For example, you receive this list :

Here (‘cpqswcc’, ‘compaq’) means ‘cpqswcc’ is included in ‘compaq’. You may want to build a relation tree like this :

The cool function to do that would be the one in this code :

   

Linux

Install ubuntu 16.04 on a mac book pro in dual boot

Tired to use Mac OS for development purposes, I wanted to install Ubuntu 16.04 in dual boot on my Mac book pro retina 15.6″. For that I needed : A mac book pro with an intel processor A bootable USB stick with ubuntu 16.04 The Disk utility from mac OS The rEFInd boot manager A RJ45 adapter, because Wifi does…

Continue Reading

Linux

‘lnav’ : The log file navigator

You know the following commands : more, grep, tail -f, vi : here is the command that does all that : lnav You can install lnav just by installing the corresponding package :

You get a listing which is dynamically refresh like tail -f does. You can search like vi by using / command, you can also filter with…

Continue Reading

Linux

‘htop’ command tool

To monitor running processes, you already know the ‘top’ command, you will get such an output : Now there is the ‘htop’ command which provides much more features and detailed informations : You’ve got colors, text bars graph, commands with arguments : You can scroll up, down AND right and left, and the best : despite it is a text…

Continue Reading