# Controlling the exam with Python

## Predicaments

However, if the duration is greater than 5 minutes (~300 seconds), we need to click agree to let the timing continue. So, when we finish the learning progress, we’ll click 6*60/5 = 72 times ……..

# Trick of binned_statistic_2d

## Official example

Calculate the counts with explicit bin-edges:

# Send e-mail when file modified

## mailx

Download mailx (openSUSE is the distribution of my server) and install it.

Get your authorization code and edit mailx/etc/nail.rc

# Set up personal Anaconda mirror

## Predicaments

If you encounter any problems as follows, you should try to set up a personal Python(Anaconda) mirror:

1. Deploy a python environment on servers that have no access to the Internet;
2. Deploy a python environment which can be used directly by other users on the server;
3. Internet speed or connection to cloud mirror is slow.

## Steps

### Installation

Just install Anaconda according to this guide.

You can use wget to mirror the packages from official Anaconda websites or other mirror websites (TUNA and USTC).

If your server is located in China, I recommend the later one.

I’ll take the later one as example.

# Create RAID 5

## Install mdadm and verify drives

yum install mdadm

mdadm -E /dev/sd[b-h]

## Partitioning the Disks for RAID

Actually this is optional. If you want to partition first, you should make sure you’re using gpt or others which support larger than 2T.

##### Create /dev/sdb Partition

fdisk /dev/sdb