PyCharm is a powerful Python IDE, and PEP 8 alerts are also useful, but the function name can’t contain capital letters and a few other specifications really feel bad, as a Virgo obsessive compulsive disorderPatients, the wave line below the code is absolutely not allowed to exist.
File -> Settings -> Editor -> Inspections -> right side Python”
PEP 8 naming convention violation alarm ID view”https://pypi.org/project/pep8-naming/
code
sample message
N801
class names should use CapWords Convention”
N802
function name should be lower...
Backup data
Archiving of output directory format
Backup in this way can avoid the restriction of the operating system to the size of a single file.
pg_dump.exe -U postgres -F d -f E:\mydbbak mydb
After the backup is completed, a backup folder will be generated.
tarFormat archiving (no parallel recovery is supported when recovering with pg_resotre)
pg_dump.exe -U postgres -F t mydb > mydb.tar
Generate SQL script
pg_dump.exe -U postgres -F p mydb > mydb.sql
Generate custom format archive
pg_dump.exe -U postgres -F c mydb > mydb.bin
Apart from S...
▄︻┻┳═One Agenda:
▄︻┻┳═1. (1/7) [code tidiness] do you really use enumerations? No!
▄︻┻┳═The method parameters of the (2/7) enumeration error usage
▄︻┻┳═One (3/7) enumeration error method parameter (two)
▄︻┻┳═Method (4/7) enumerated error usage method return value
▄︻┻┳═One (5/7) enumerate the wrong usage of the method inside the body.
▄︻┻┳═The branch judgment of the wrong usage of (6/7) enumeration
▄︻┻┳═(7/7) enumerate the definition of data type by enumeration.
Continue to talk about the use of enumeration....
The beginning of the text
Software name: =a=,.Zip=a=.
Version No.: =b=3.2.5=b=
Download address: =x=http://note.youdao.com/noteshare? Id=82d75df16129eff0ac6e867974ed3bb3=z=
Notice: =gg==================================== notice = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
3.2.5Version download address: https://pan.baidu.com/s/1UxnE-Ukj59F69IvP1-EbSQ
Added the activities of the Seventh Festival. Please log in to QQ ...
Title Description
A charming little townYYY City, ownednnn A beautiful scenic spot. There are more and more tourists coming here.YY YThe city has arranged a sightseeing bus specially to provide more convenient transportation services for tourists. Sightseeing buses in the first place00 0Minutes appear111The number of attractions will then go in sequence.2,3,4,…,n 2,3 ,4 ,…,n2,3,4,…,n Sights. From the firstii iThe number of attractions opens to the first place.i+1 i+1i+1 Scenic spot No.Di D_i DiMinute. At any time, the bus can only go forward or wait at the scenic spot.
Joint ownershi...
$ npm install Package name -g
At this point, the package will be installed on the global level, which is what I said in the morning.
C:’\USER\ROAMING’\NPM
Some cli (command line programs), engineered things.
npm install gulp -g,It will not appear in our project folder, but in the NPM folder.
3.4
Taobao image
In order to facilitate Chinese programmers against the government’s GFW, the Great Wall, selective shielding, at this time invented Taobao mirror, keep and stroll
Synchronization with the official website.
Taobao invented cnpm for the convenience of Chinese programmers...
JVMTuning is mainly aimed at tuning memory management, including controlling the size of each generation, GC policy. Because the GC starts garbage collection when hanging application threads, seriously affecting performance, the purpose of tuning is to minimize the GC caused by the application thread pause time, reduce the number of Full GC.
Generation size tuning
Key parameters: – Xms, Xmx, – Xmn, – XX: Survivor Ratio, – XX: MaxTenuring Threshold, – XX: PermSize, – XX: MaxPermSize
-Xms、 -Xmx Usually set to the same value, avoiding constantly expandin...
1.JConsole
JConsoleUnder the JDK / bin directory, after starting JConsole, the tool automatically searches for JVM processes running natively without the JPS command to query for specifications. Double-click on one of the JVM processes to start monitoring, or use Remote Processes to connect to a remote server.
To enter the JConsole main interface, there are six tabs: “Overview”, “Memory”, “Thread”, “Class”, “VM Summary” and “Mbean”:
Memory tabs are the jstat commands used to monitor trends in virtual mach...