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...
# Modification of coding
“`pythonshow variables like ‘%char%’; #View the current encoding
1.Open configuration file: vim /etc/mysql/my.cnf 2.After [client] and [mysqld], add: [client] default-character-set=utf8 [mysqld] character-set-server=utf8
3.Restart mysql: service mysql restart“`
# mysqlreset password
“`python#1.Open configuration file: sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
2. Add in the [mysqld] segment: skip-grant-tables #Skip permission to start MySQL
3.Restart MySQL service mysql restart
4.Log in with root, without pa...
linux Download the redis database.
apt install redis
If the right is not enough, the right is directly raised.
sudo apt install redis-server
linuxEnable and stop service
service redis startservice redis stopservice redis restart
xshellEnter Linux
cd .. # Return to root directory
ls # see file
cd etc/
Well, it’s time to get to the point.
First, record.Connect, exit, switch databaseA command
Connect:redis:redis-cli
Sign out:exit
Switch database:select n
The database has no name, 16 by default, identified by 0-15, and the connection redis selects the first database by de...
Jumping game
Given a non negative integer array, you are initially located in the first position of the array.
Each element in the array represents the maximum length you can jump at that location.
Determine whether you can reach the last position.
Example 1:
Input: [2,3,1,1,4]Output: trueExplanation: jump 1 steps from position 0 to 1, then jump 3 steps to the last position.
Example 2: input: [3,2,1,0,4]
Output: falseExplanation: anyway, you always get to the index 3. But the maximum jump length is 0, so you can never get to the last position.Train of thought: adoptdynamic program...