jQuery Quick Start Theme
Introduction to jQuery
My blog characteristics: the highest important level is *** (Five Red Stars), in turn, the importance of reducing the representative is relatively low!
Introduction to jQuery
JQuery is a library of JavaScript, that is, jQuery is developed based on the JavaScript framework. The goal is to maximize the simplicity of Java ...
Added by porco on Fri, 09 Aug 2019 14:24:27 +0300
Linear regression prediction model
Univariate linear regression model:
E: Model Error Term, Equilibrium Equal Side Value
import seaborn as sns
income = pd.read_csv(r'Salary_Date.csv')
sns.lmplot(x='YearExperience',y='Salary',
data=income,ci=None)
plt.show()
Linear fitting solution:
Minimum Error Term and Minimum Conversion to Min ...
Added by monezz on Fri, 09 Aug 2019 10:48:05 +0300
High concurrent programming in real-world java Chapter 2
1. Basic state of threads
2. Basic operations of threads
3. volatile and java Memory Model
4. Thread Group
5. Daemon
6. Thread priority
7. Thread Safety and Synchronization
8. Hidden Errors
1. Basic state of threads
Thread life cycle
2. Basic operations of threads
1. New threads
Thread tl=new Thread(){
@override
...
Added by iamtheironman on Thu, 08 Aug 2019 13:18:16 +0300
Deep understanding of Concurrent HashMap source code
Concurrent HashMap in Java 7
Concurrency Level: Parallel level, concurrency number, Segment number, default is 16, that is, Concurrent HashMap has 16 Segments, at this time, in theory can support up to 16 threads concurrently write, as long as their operations are distributed on different Segments. T ...
Added by BETA on Wed, 07 Aug 2019 12:40:32 +0300
Remember a code refactoring
Single responsibility
Single function
Single function is the most basic requirement of SRP, that is to say, the function and responsibility of your class should be single, so that cohesion is high.
For example, the following parameter class is used to query website Buyer information, according to SRP, it should be placed in the query Field.
@Da ...
Added by jdaura on Wed, 07 Aug 2019 09:06:11 +0300
Dynamic Capacity Expansion Mechanism of ArrayList
ArrayList has three initialization methods
public ArrayList()
public ArrayList(int initialCapacity)
public ArrayList(Collection<? extends E> c)
The first parametric construction method
/**
* Constructs an empty list with an initial capacity of ten.
*/
public ArrayList() {
...
Added by mevasquez on Wed, 07 Aug 2019 06:32:03 +0300
July 26, 2019 (Mathematics, DP)
Suffering, exploding zero!!
Hey... Topics
prob1: A
Main idea of the title: Two operations: turning a bit over or different or a number in a set on the binary system of a number to find the minimum number of steps from(s) to(t\)
\ (sb) Question, Complete Water Question, Result (bfs) Queue Writing Wilted
The first operation can be converted to th ...
Added by SsirhC on Wed, 07 Aug 2019 04:02:49 +0300
Complete Binary Search Tree
Topic Description (from MOOC-Chen Yue, He Qinming-Data Structure-Summer of 2019)
The binary search tree (BST) is defined recursively as a binary tree with the following attributes:
The left subtree of a node contains only nodes whose keys are smaller than the node keys.
The right subtree of a node cont ...
Added by paladaxar on Tue, 06 Aug 2019 09:57:46 +0300
Fight the landlord with the next neighbor while the old king is not there
These days I am free and itchy, so I want to find my next neighbor to play with the landowner and have some fun while the old king is away from home.Now, every time I play, I get distracted by my neighbor's clothes, and I wonder if I can use python to get this fight landowner, and then let me focus on my neighbor, oh no, the neighbor's card.
B ...
Added by DigitalExpl0it on Tue, 06 Aug 2019 01:11:40 +0300
MySQL Case -- Optimizing OR Statement Trample Recording
Problem Description
R&D colleagues feedback that an application is slow to execute, corresponding to SQL:
UPDATE bs_serial_trac
SET SERIAL_IS_LOCK = 0,
LOCK_VALUE = '',
UPDATE_USER = 'transSys'
WHERE GOODS_NO = '4418095740626'
AND (
PARENT_CODE = 'F9G7S19722001835'
OR SERIAL = 'F9G7S19722001835'
);
The index on table bs_s ...
Added by KC_Geek on Mon, 05 Aug 2019 11:48:33 +0300