virtual box static ip setting

set nat set host-only adapter (please create a network in the general setting, so that you can choose one of them in your host-only setting) start ubuntu go to system-network -> host-only network set your static ip, netmask, (no gateway!!!)…

compare two lists

It is very easy to compare two lists in python, but it seems not so many people know it. Just use the `==` symbol in numpy, it will return a numpy array with boolean value, True means the position are…