Python Classic Sorting Algorithm

https://www.cnblogs.com/onepixel/p/7674659.html This article is nice https://www.bilibili.com/video/av685670?from=search&seid=1637373535603658338 This motion picture is excellent https://www.icourse163.org/course/ZJU-93001 MOOC Zhejiang Big Data Structure Chen Yue and He Qin-ming Bubble sort, select sort, insert sort are the three slowest ...

Posted by goodluck4287 on Sat, 28 Dec 2019 11:49:40 +0100

sshd service in linux

sshd service 1. Introduction to sshd sshd= secure shell A service that can boot the shell in the host through the network Client software < c-f9 >     sshd Connection mode: ssh username@ip ##Links to text patterns ssh -X username@ip ##You can turn on the graphics after the link is successful Note: The first ...

Posted by st0rmer on Tue, 17 Dec 2019 22:30:57 +0100

Memcached database cluster

Memcached overview An open source high performance distributed memory object caching systemAll data is stored in memorySupport data of any storage typeSpeed up Web site access Memcached caching mechanism When the program writes the cache data request, the API interface of Memcached routes the KEY input routing algorithm module to a service i ...

Posted by ryanthegecko on Tue, 17 Dec 2019 12:25:43 +0100

Are there regular expressions to detect valid regular expressions?

Can another regular expression be used to detect valid regular expressions?If so, give an example below. #1st floor Not likely. Evaluate try..catch or the language you provide. #2nd floor / ^ # start of string ( # first group start (?: ( ...

Posted by allydm on Tue, 17 Dec 2019 04:52:20 +0100

Cycle through file contents in Bash

How to use Bash Traverse each line of the text file? Use this script: echo "Start!" for p in (peptides.txt) do echo "${p}" done I get the following output on the screen: Start! ./runPep.sh: line 3: syntax error near unexpected token `(' ./runPep.sh: line 3: `for p in (peptides.txt)' (later I wanted to do something more complic ...

Posted by me1000 on Wed, 11 Dec 2019 03:03:43 +0100

linux foundation week 4

1. Count the number of users whose default shell is not / sbin/nologin in / etc/passwd file, and display the users [root@localhost ~]# awk -F: -v i="0" '$NF !~ "/sbin/nologin"{print ++i,$1,$NF}' /etc/passwd 1 root /bin/bash 2 sync /bin/sync 3 shutdown /sbin/shutdown 4 halt /sbin/halt 2. Find out the user name, uid and shell type with the ...

Posted by Skara on Sun, 08 Dec 2019 22:16:17 +0100

Python Django Basics

As the most popular web framework of python, django has been loved by the majority of Python. This site is based on django. Therefore, it is necessary to summarize some basic knowledge of django to lead beginners into the python web world. 1. Basic knowledge1.1.django command parsingpython manager.py "commands" is the encapsulation ...

Posted by delassus on Sun, 08 Dec 2019 07:12:25 +0100

python: dynamic output without screen swiping

PrefaceThere is a requirement for background running programs, such as viewing the current progress, to see the change of a certain value at the terminal: First, it provides a very local way to create and write progress landing files such as process. You can then use watch -n 1 cat process to see the progress. There are two ways, python and she ...

Posted by samsolomonraj on Fri, 06 Dec 2019 04:06:18 +0100

Big and small as you -- MySQL

Written in front Mysql is a magical relational database. I really feel that it's awesome. Because the projects I've done are quite miscellaneous, I've met Oracle database before, which gives me the impression that Oracle is very cumbersome and cumbersome, with many configurations. If it's used for small projects, it's like killing chickens and ...

Posted by BruceRowe on Thu, 05 Dec 2019 08:55:38 +0100

In Bash shell, select is used as an example

One background In the recent operation and maintenance work, many scripts have been written, and some efficient uses have been found when writing these scripts. Now, let's briefly introduce the use of select. 2. Examples select expression is an extended application of bash, which is good at interactive occasions. Users can choose from a differe ...

Posted by seeker2921 on Wed, 04 Dec 2019 07:55:39 +0100