Ben Chuanlong Du's Blog

It is never too late to learn.

Shadow Parent Methods in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Below is an example of shadowing a parent method in a child class.

Tips on the Redox Operating System

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Try Redox in a Virtual Machine

  1. Install VirtualBox on your machine.

  2. Download the ova file for redox using the link https://static.redox-os.org/releases/ .

  3. Double click the ova file to …

Tips and sshfs and fuse

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. If you want to be able to mount remove Linux filesystem on you computer, you can install sshfs and fuse using the following command.

    wajig install sshfs fuse
    

    It is suggested …

Get Total Physical Memory in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Using os.sysconf

Notice that this ways only works on Linux but not on macOS or Windows.

Get physical memory in bytes.

Tips on Debian

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Debian is much harder to use than Ubuntu and Ubuntu-based Linux distributions. It is suggested that you use Ubuntu or an Ubuntu-based Linux distribution instead of Debian.

Installation

Please refer to …