part3 JavaScript object (this is serious)
Everything is object
A Boolean can be an object.The numeric type can be an object.A string can also be an objectDate is an objectMath and regular expressions are also objectsAn array is an objectFunctions can also be objects
Access method
objectName.methodName()
Convert case var x=message.toUpperCase();
var x=message.toLowerCase();
cr ...
Posted by gpittingale on Tue, 22 Feb 2022 15:56:20 +0100
Introduction to Kotlin language foundation: Kotlin collaborative process foundation
1. Blocking and non blockingrunBlockingdelay is non blocking, thread Sleep is blocked. Explicitly use the runBlocking coroutine builder to block.import kotlinx.coroutines.*
fun main() {
GlobalScope.launch { // Start a new collaboration in the background and continue
delay(200)
"rustfisher.com".forEach {
print(it)
delay(280)
}
}
printl ...
Posted by laanes on Tue, 22 Feb 2022 15:34:19 +0100
Deep learning pytorch framework -- convolutional neural network
This blog is only used to record the learning process, avoid forgetting and facilitate future review
Convolutional neural network is good at image processing. It is inspired by human visual nervous system. CNN has two characteristics: 1. It can effectively reduce the dimension of pictures with large amount of data into small amount of ...
Posted by thangappan on Tue, 22 Feb 2022 15:20:50 +0100
[Linux] process control -- process waiting and replacement
Process waiting
1. Necessity of process waiting
·We have previously introduced the zombie process, that is, when the child process exits, the parent process does not receive the exit status information of the child process. At this time, the child process becomes a zombie process, resulting in memory leakage. Once the process bec ...
Posted by pp4sale on Tue, 22 Feb 2022 15:12:09 +0100
ArrayList capacity expansion mechanism
Source code analysis of ArrayList capacity expansion mechanism
First, correct a problem here. I found that when many blogs introduce the parameterless construction of ArrayList calls, the initial capacity is 10. In fact, there is a problem here. The parameterless construction is actually called, and the initial capacity is 0. Look at the sourc ...
Posted by ev5unleash on Tue, 22 Feb 2022 15:10:17 +0100
[speech processing] frequency spectrum analysis of FIR+IIR (high pass + low pass + bandpass) filter of audio signal based on MATLAB [including Matlab source code phase 1732]
1, Introduction to speech processing
1 Characteristics of voice signal Through the observation and analysis of a large number of voice signals, it is found that voice signals mainly have the following two characteristics: ① In the frequency domain, the spectral components of speech signals are mainly concentrated in the range of 300 ~ 3400Hz. ...
Posted by brownka on Tue, 22 Feb 2022 15:00:24 +0100
CA1056:URI attribute should not be a string
valueRule IDCA1056categoryDesignIs the repair disruptive or non disruptivemajorreasonThe type declaration name contains a string attribute of 'URI', 'URI', 'urn', 'urn', 'URL', or 'URL'.By default, this rule only looks at externally visible types, but this is configurable.Rule descriptionThis rule splits the attribute name into tags according t ...
Posted by kingnutter on Tue, 22 Feb 2022 14:59:02 +0100
HashCode & HashMap perturbation function, initialization capacity, load factor, expansion element splitting
Hashcode & HashMap perturbation function, initialization capacity, load factor, expansion element splitting
1. Why does hashcode use 31 as a multiplier?
String. The hashCode method of class is as follows:
public int hashCode() {
int h = hash;
if (h == 0 && value.lengt > 0) {
char[] val = value;
for (int ...
Posted by glowball on Tue, 22 Feb 2022 14:56:00 +0100
Design pattern - singleton pattern
introduce
Singleton pattern is the most commonly used and simplest design pattern. The main use scenario is on various tool classes in program development. Its function is to ensure that there is only one instance of a class in the whole program.
example
We generally divide the single case mode into hungry man single case mode and lazy man m ...
Posted by kkeim on Tue, 22 Feb 2022 14:53:05 +0100
Introduction to Apollo in Spring project (learning notes)
Introduction to Apollo
Apollo (Apollo) is a distributed configuration center developed by Ctrip framework department. It can centrally manage the configuration of different application environments and different clusters. After the configuration is modified, it can be pushed to the application end in real time. It also has standardized per ...
Posted by bailo81 on Tue, 22 Feb 2022 14:52:56 +0100