Python switch version artifact pyenv
Because some syntax uses of Python 2.x and 3.x are different, you will encounter the need to switch versions when writing and using Python programs. The following describes pyenv, a tool for switching Python versions.
Install pyenv
Take mac as an example. You need to install brew first. If you don't, you need to install brew and pyenv first. No ...
Posted by DarkJamie on Tue, 24 Mar 2020 00:08:07 -0700
Django's simple command and implementation of the first page
1, Create a python virtual environment and install django
2, Create a django project
Command: Django admin startproject project name
eg:
G:\django_learn>workon testvir
(testvir) G:\django_learn>django-admin startproject django_learn
After execution, a django project will be created successfully and the directory will be generated
--- djan ...
Posted by dannylewin on Mon, 23 Mar 2020 08:51:47 -0700
Linux-Packaged Tutorial Club Series-shell
Preface
Remember the fear of being dominated by bat.It's really hard to write bat scripts than shell scripts.
Now that you understand these advanced languages, such as java js, it's easy to understand shell s.Learn simple grammar, look at scripts in familiar applications like tomcat and nacos, and learn other people's skills. It's about getting ...
Posted by mpower on Sat, 21 Mar 2020 22:14:33 -0700
Some small operations of gitlab
1, Install gitlab
Reference blog Gitlab installation and application of continuous integration Install gitlab, and perform the basic operation of the third and remote library
2, Mail verification registration
Email reminders can be used to register users and need to be verified by email. They will also be reminded when gitlab uploads code or d ...
Posted by Megalink on Thu, 19 Mar 2020 10:53:41 -0700
LDAP/SASL/GSSAPI/Kerberos programming API--krb5 client
There are two libraries available for krb5 API: MIT and Heimdal. The APIs of the two libraries are different. It is basically OK for one client's API to connect to the otherThe two kadmin libraries in API are completely incompatible. From the kadmin application tools of MIT and Heimdal, it can be seen that it is not successful to connect the k ...
Posted by AdRock on Tue, 17 Mar 2020 22:47:23 -0700
Dynamically update Linux system password and send SMS to remind
Dynamically update Linux system password and send SMS to remind
Sometimes we may need higher security. As the mainstream operating system of the server, Linux needs to change the root password of the system account frequently to ensure the security of the whole system. The importance of the password i ...
Posted by DJ Zen Masta K on Thu, 12 Mar 2020 05:05:50 -0700
Analysis of seven sorting algorithms and implementation of C language source code
Analysis of seven sorting algorithms and implementation of C source code
Selection sort
First of all, initialize the first element of the array, the outer loop traverses the sorted array in turn, the inner loop traverses the array again, until the end of the array. If the elements need to be exchang ...
Posted by alex_funky_dj on Thu, 05 Mar 2020 20:11:39 -0800
Common sorting algorithms implemented in Python
Although there is a sort() function in python that can easily sort lists and tuples in one sentence, in order to better understand the algorithm and data structure, Hanzhou has implemented six commonly used sorting algorithms in Python. The first three algorithms have time complexity of O(n^2) and the l ...
Posted by chamal on Sun, 01 Mar 2020 02:39:42 -0800
Myspark startup process decryption
Original author: Li Haiqiang, from the retail big data team of Ping An Bank
Preface
As a data engineer, you may encounter many ways to start PySpark. You may not understand what they have in common, what differences they have, and what impact different methods have on program development and deploymen ...
Posted by phant0m on Sat, 29 Feb 2020 23:24:31 -0800
Proficient in awk series (18): if, while, switch, for statements of awk process control
Go back to:
Linux series
Shell series
Awk series
Process control statement
Note: statement blocks in awk have no scope and are global variables.
if (condition) statement [ else statement ]
expr1?expr2:expr3
while (condition) statement
do statement while (condition)
for (expr1; expr2; expr3) statement
for (var in array) statement
break
co ...
Posted by rex9990 on Fri, 28 Feb 2020 21:04:16 -0800