day24 multithreading (inheriting Thread class & implementing Runnable interface) & Thread safety (synchronous code block & Lock lock)

Multithreading overview Process: The running program is an independent unit for the system to allocate and call resources. Each process has its own memory space and resources. Thread: It is a single sequential control flow of a process, or a separate execution path If a process has only one execution path, it is called single thread If a proce ...

Posted by ashmo on Mon, 21 Feb 2022 14:00:15 +0100

The brightest kid in python log is the fancy acridine

It seems that this log module can't be downloaded in the mirror station of Tsinghua University. Other mirror stations haven't tried it. I downloaded it directly from the address of the official website [read the full text] C:\Users\Administrator>pip install nb_log Collecting nb_log Downloading nb_log-7.2.tar.gz (71 kB) |██████████ ...

Posted by MartinAW on Mon, 21 Feb 2022 13:56:31 +0100

IO stream (day 23 of learning Java) (File class)

catalogue I File class overview II Static member variable of File class III Construction method of File class III Get method of File class IV Create and delete functions of File class Vi File class directory traversal method VII File filter of file class I File class overview java. io. Abstract representation of file and directory p ...

Posted by brendandonhue on Mon, 21 Feb 2022 13:55:46 +0100

DNS tunnel attack experiment record

It's time for bloggers to finish setting up. Because the data sets required by bloggers in the direction of setting up are rarely publicly provided (after all, DNS records have some privacy problems), they have to simulate DNS attacks to operate by themselves. First of all, if you want to know what is DNS tunnel attack, you can take a look at o ...

Posted by bobbfwed on Mon, 21 Feb 2022 13:51:25 +0100

Typescript - Advanced

object-oriented That is, the operations in the program need to be completed through objects, for example: To operate the browser, use the window objectThe document object is used to manipulate the web pageTo operate the console, use the console object In the program, all objects are divided into two parts: data and function. There is no more ...

Posted by dieselmachine on Mon, 21 Feb 2022 13:39:01 +0100

[new features of JDK8] Date/Time API(JSR 310)

  May you be like sunshine, bright and not sad. Links [programming protocol] date and time   1. Date and time API overview Date/Time API Java 8 further strengthens the processing of date and time by publishing a new date time API (JSR 310). Improved many problems in the date time API in the old version of Java, including: Non th ...

Posted by 1337hovie on Mon, 21 Feb 2022 13:31:50 +0100

Deep learning notes of vegetables | theory and Implementation Based on Python

Series index: Chapter 1 Python Basics (1) Python Libraries - numpy, matplotlib Here is an example to understand the use of two important Python libraries. import numpy as np import matplotlib.pyplot as plt x = np.arange(0, 6, 0.1) y1 = np.sin(x) y2 = np.cos(x) plt.plot(x, y1, label="sin") plt.plot(x, y2, linestyle="--", label ...

Posted by modulor on Mon, 21 Feb 2022 13:30:15 +0100

Java excellent testing framework - TestNG

Why do we need TestNG?   Java has several test frameworks. JUnit is a common one. The default test framework of Spring series is JUnit. TestNG is also a test framework of Java. It has similar functions to JUnit, but supports more annotations and functions.   we often use JUnit for unit testing, but we prefer TestNG for automated ...

Posted by abdbuet on Mon, 21 Feb 2022 13:14:51 +0100

druid database connection pool keep alive mechanism source code

How to protect the connection validity when the druid connection pool is not set with a keep alive mechanism? If a fatal exception occurs in the connection, the keep alive connection array will be added, and then the validity will be verified;If the physical connection timeout is set and the idle time of the connection is greater than the set ...

Posted by crob611 on Mon, 21 Feb 2022 13:13:29 +0100

Study notes Day 46 (making score cards by logistic regression)

api import: import pandas as pd import numpy as np from sklearn.linear_model import LogisticRegression as LR Data acquisition: df = pd.read_csv('./Data/rankingcard.csv',index_col=0) Remove duplicates: When you manually enter or enter more than one line, duplicate data is likely to appear. You need to remove the duplicate values first, # ...

Posted by vig0 on Mon, 21 Feb 2022 13:01:06 +0100