Reading Notes for Linux Device Driver

Chapter 3 Character Drivers The book example scull does not depend on any hardware device, but only operates some memory allocated from the kernel, anyone can compile and run scull; note that the source code of this chapter is extracted from the nanoPi-linux 3.4.y kernel, which is slightly different from the source code of thi ...

Posted on Wed, 08 May 2019 15:33:39 -0700 by markbm

Netty Implements Custom Protocols

The most widely used protocol is the HTTP protocol, but in some areas of service interaction, it is relatively less used for three main reasons: The HTTP protocol carries information such as header s and cookie s, and its byte utilization is low, which makes the HTTP protocol bloated and requires more packets to be sent when the same informati ...

Posted on Wed, 08 May 2019 12:24:38 -0700 by dukeu03

python network-multiprocess (21)

1. What is a process A Process is a running activity of a program on a data collection in a computer. It is the basic unit for resource allocation and scheduling of the system. operating system The basis of the structure.In the early process-oriented computer architecture, processes were the basic executing entities of programs; in the current ...

Posted on Wed, 08 May 2019 09:24:38 -0700 by eriksmoen

RabbitMQ Message Queue Learning Notes

Summary In the process of using AMQP for the first time, it is always easy to be confused by AMQP-supported message models. Here, combined with the official tutorials, a brief summary of AMQP message models is given for reference.There are currently six official types of message sending/receiving Model Here, the first five message models are in ...

Posted on Wed, 08 May 2019 08:00:40 -0700 by vig0

LeetCode Verifies IP Address

Title Requirements: Write a function to verify whether the input string is a valid IPv4 or IPv6 address. IPv4 addresses are represented by decimal numbers and points. Each address contains four decimal numbers, ranging from 0 to 255, and is divided by ("..."). For example, 172.16.254.1; At the same time, the number of ...

Posted on Tue, 07 May 2019 22:00:39 -0700 by netrepsa

java sort source code parsing

All types of sorting are provided in Java Arrays. Primitive(8 basic types) and Object are two main categories. Basic Types: Quick Sorting with Tuning; Object type: An improved merge sort is adopted. First, for the basic types of source code analysis as follows (in the case of int []): Java uses fast sorting for Primitive ( ...

Posted on Mon, 06 May 2019 13:15:38 -0700 by russellpehrson

HashMap in-depth parsing: A paper to give you a thorough understanding of HashMap

Write before HashMap is the most commonly used of the Map family and an important member of the Java Collection Framework.This paper first gives the essence of HashMap and its relationship with Map and HashSet, then gives the definition of HashMap in JDK, and analyses its four construction methods with source code.Finally, by analyzing the dat ...

Posted on Mon, 06 May 2019 08:15:38 -0700 by jbingman

A Summary of Five Weak Chicken Questions in 2050 Programming Competition (1001, 1002, 1003, 1004, 1006)

If you have any questions, just leave a message directly below. ~ Weak chicken, I will try my best to reply.~   Opening remarks Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 12147    Accepted Submission(s): 3502   Problem Description Young people from all over the ...

Posted on Mon, 06 May 2019 06:30:38 -0700 by chrispols

Write down a WeChat page to add voice order and play

Background: The mall's project requires an additional feature.A voice recognition is added to an input text order so that users can spend less time shopping and have a word recognition to make it easier. Process:I. After my boss said that I would like to add this requirement, I first went to the "WeChat JS-SDK documentation ...

Posted on Mon, 06 May 2019 01:00:38 -0700 by daniel_lee_hill

Machine Learning-Regression of Random Forests

I. Regression of Random Forests RandomForestRegressor class sklearn.ensemble.RandomForestRegressor (n_estimators='warn', criterion='mse', max_depth=None,min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features='auto',max_leaf_nodes=None, min_impurity_decrease=0.0, min_impurity_split=None, bootstrap=T ...

Posted on Sat, 04 May 2019 10:10:38 -0700 by Threepwood