Summary of efficient java tool classes
1. org.apache.commons.lang.StringUtils
isBlank: Is the string empty (trim later)
isEmpty: Whether the string is empty (not trim and judge)
equals: Is the string equal
join: a merged array is a single string, passing a delimiter
Split: split string
isNumericSpace: Is it number able before and after r ...
Posted by Matt Parsons on Fri, 20 Sep 2019 20:11:02 -0700
Built-in module for getting started with Python--logging module
Built-in module for getting started with Python--logging module
1. logging -- log
(1) The role of logs:
<1>Log user information
<2>Record personal running water
<3>Record the running status of the software
<4>Record instructions from programmers
<5>For programmer code debugging
(2) Functional simple configuration o ...
Posted by vincent30000 on Wed, 18 Sep 2019 18:42:05 -0700
The first step in python crawler development - familiarity with network programming, python threads and processes
Recently, the blogger has a crawler project in hand, and began to study python crawler development in depth. This is my blog, which is also equivalent to my learning notes. I think the first step to learn crawler is to learn python multi-threading an ...
Posted by Jakebert on Tue, 17 Sep 2019 02:50:01 -0700
pthread Thread Knowledge Points
pthread Thread Knowledge Points
The two fundamental issues of communication between threads are mutual exclusion and synchronization.`
#include<pthread.h>
1. pthread_create1. Function Prototypeint pthread_create(pthread_t tidp,const pthread_attr_t attr,(void)(start_rtn)(void),void arg);
2. Functional functions:pthread_create is a functio ...
Posted by PierceCoding on Fri, 30 Aug 2019 18:16:32 -0700
ss of Linux Command
What is it?
ss is the abbreviation of Socket Statistics. As the name implies, the ss command can be used to obtain socket statistics, which can display content similar to netstat. But the advantage of ss is that it can display more detailed info ...
Posted by knetcozd on Thu, 29 Aug 2019 06:11:17 -0700
Software development program ape daily necessities, now available check-log record
logging module
Logging Uses:
1. Recording User Information
2. Recording personal running water
3. Recording the running status of the software
4. Record the instructions issued by the programmer (springboard machine)
5. For programmer code debugging (print consumes memory and is not recommended during development and testing)
Functional simple ...
Posted by Skull on Tue, 27 Aug 2019 03:39:48 -0700
Yan Gang's fread and read, fwrite and write
Articles Catalogue
Resources
brief introduction
fread, fwrite Basic Knowledge
3.1 Nutx configuration options
3.2 Definition of Nutx File Handles and File Descriptors
3.2.1 file_struct file structure
3.2.2 file_opcreation framework
3.2.3 Standard ...
Posted by Stickdragon on Sat, 17 Aug 2019 05:57:20 -0700
net Package--Reading Abstracts
brief introduction
In the net package, there are many structures, various functions and methods. I decided to go through it on the whole and make a map.
Copy and paste source: https://studygolang.com/stati...
constant
const (
IPv4len = 4
IPv6len = 16
)
global variable
Commonly used IPv4 address.
var (
IPv4bcast = IPv4(255, 255, ...
Posted by notsleepy on Mon, 12 Aug 2019 05:30:27 -0700
Java can also be executed directly without compiling?
We all know that java is a static language, that is to say, if you want to execute a java program, you must compile it first and then execute it.
So why does this article say that java can be executed without compiling?
Actually, this is a new feature added in OpenJDK11 to enable the java source code of a single file to be executed directly wit ...
Posted by jcantrell on Sun, 11 Aug 2019 06:19:30 -0700
Signal-Learning Notes in Linux
I. Concept:
Signal is an event that UNIX system responds to certain conditions, and the process will take corresponding actions when it receives the signal.
Signals are generated by some error conditions, such as memory segment collisions, floating-point processor errors, or illegal instructions.
1. ...
Posted by ilovetoast on Sat, 10 Aug 2019 04:16:05 -0700