LeetCode 21. Merge two ordered linked lists (single linked lists)

Article directory 1. Topic information 2. solving problems 1. Topic information Merge the two ordered lists into a new ordered list and return. The new linked list is composed of all the nodes of a given two linked list. Example: Input: 1 - > 2 - > 4, 1 - > 3 - > 4 Output: 1 - > ...

Posted by FRSH on Sat, 05 Oct 2019 22:02:26 -0700

The era of source code JAVA dry goods sharing! Use NIO simulation to realize Tomcat container!

What is NIO?New IO, which started in Java 1.4, provides a new non-blocking Java IO operation API.Non-Blocking IOInstead of the old version of Blocking IO, it is mostly used for network-related API s. Why use NIO?After using NIO, the performance of WEB network program can be further improved.Simulate Tomcat 7, block IO to process Http requests: ...

Posted by spellbinder on Sat, 05 Oct 2019 20:20:43 -0700

Influences of Initialization of Pyrtorch Model (nn.Module)

When pytorch defines the model, it is inheritance (nn.Module) class. Generally, when we initialize, we define different modules and call them in forward function. Sometimes, when we initialize, we initialize some unused modules without deleting them or not using them in forward function, which will affe ...

Posted by starvator on Sat, 05 Oct 2019 15:36:54 -0700

DNS Information Collection of Information Collection--fierce

Links to the original text: https://blog.51cto.com/executer/2106151 Catalog Tool description Parameter interpretation Blasting subdomain name Custom dictionary exploding subdomain name Inverse the IP segment of the specified range Inversel ...

Posted by Kitkat on Sat, 05 Oct 2019 15:13:36 -0700

Automatically install CentOS 7.6 using PXE

I. demand Base new to 300 servers, need to install the operating system version 7.6 of CentOS, choose to use PXE for batch installation. II. Preparations Use the layer-2 switch to connect the server without the operating system installed, so as to avoid affecting the normal server of the current network. Upload the operating system image to ...

Posted by karenn1 on Sat, 05 Oct 2019 14:47:46 -0700

Loading different fonts in QML

Note by FontLoader FontLoader can load fonts by name, local path, and network url path. //Load fonts installed by the system by name FontLoader { id: fixedFont; name: "Courier" } //Load a local font file FontLoader { id: localFont; source: "content/fonts/tarzeau_ocr_a.ttf" } //Loading fonts on netw ...

Posted by leocon on Sat, 05 Oct 2019 00:29:36 -0700

Network Necessity-Dynamic Routing (Default Routing + Static + OSPF+RIP Comprehensive Experiment)

The purpose of this chapter is: network interworking, R2 setting static routing, R2 and R3 using OSPF protocol in AREA1 area, R3 setting default routing back, R4 and R5 using RIP protocol. This chapter environment: GNS3,5 routers, 4 hosts, 1 external network. Experiment chart: Router interface address R1: f0/0(192.168.10.1/24) f0/1(192. ...

Posted by coolpravin on Fri, 04 Oct 2019 21:40:53 -0700

Perimeter of island

Given a two-dimensional grid map containing 0 and 1, where 1 represents land and 0 represents waters. Lattices in the grid are connected horizontally and vertically (not diagonally). The whole grid is completely surrounded by water, but there happens to be an island (or one or more islands connected ...

Posted by Warptweet on Fri, 04 Oct 2019 21:12:29 -0700

Graceful implementation of REST API requests based on Moya, RxSwift and ObjectMapper

There are very powerful Retrofit requests in Android development, and it is very convenient to implement RESTful API network requests with RxJava. There are also very powerful network request libraries in iOS development Moya Moya is a lightweight Swift network layer based on Alamoire. Moya's scalability is very strong, and it can be easily com ...

Posted by kiwi_uk on Fri, 04 Oct 2019 16:22:46 -0700

Network Management

Network protocol OSI Seven-Layer Model and TCP/IP Four-Layer Model TCP Protocol and UDP Protocol TCP protocol: Transport control protocol. It is a connection-oriented protocol, which must establish a reliable connection with the other party before sending data. UDP protocol: User datagram protoco ...

Posted by kevin99 on Fri, 04 Oct 2019 12:05:10 -0700