Qt document reading notes - QHostInfo official resolution and instance (get IP according to Host)
Official analysis
QHostInfo provides a static method to get the host name;
There is a search mechanism in QHostInfo. You can find the host name according to the IP or the tool host name. You can operate by calling the static function QHostInfo::lookupHost. Note that this is sent asynchronously, which will be explained later!
...
Posted on Thu, 28 Nov 2019 17:34:42 -0500 by konsu
Using PyTorch to realize multilayer network
Using PyTorch to realize multilayer network
The steps are as follows:
Import module, read data
Building a computing diagram (building a network model)
Loss function and optimizer
Start training model
Evaluate the prediction results of the training model
import torch.nn.functional as F
import torch.nn.init as init
import torc ...
Posted on Thu, 28 Nov 2019 17:09:51 -0500 by vang
Http related knowledge points -- post and get request sample codes
I am used to the network request framework, sometimes I have to write one myself, sometimes it is very difficult, and then I will summarize and record it.
Java get request
/**
* get The request can be sent to the full url or map
* Setting the request header setting is not related to get post. You can set the disti ...
Posted on Thu, 28 Nov 2019 16:35:37 -0500 by adrianpeyton
How to access the common mainstream 100 express logistics query api interfaces
Express Logistics query API interface
Express query interface refers to the open application program interface of Express query network. Developers can interact with Express query network by calling the interface, and develop their own Express query application program based on the interface.
Application scenario
① buyer's logistics query: ...
Posted on Thu, 28 Nov 2019 15:46:38 -0500 by Phate
Network programming socket
To learn this chapter, you need to understand the network protocol. For details, please refer to: Network communication protocol
Directory of this chapter
What is socket
Why socket is needed
3. The development of socket
socket in python
V. socket based on TCP
6. UDP based socket
Vi. detailed explanation of sticking
VII. Solution of sticking pac ...
Posted on Thu, 28 Nov 2019 07:55:48 -0500 by sigmon
Qt Write Gas Safety Management System 20-Controller Management
1. Preface
Controller management is to add, delete and modify controllers, including fields such as number, port name, controller name, controller address, controller model, number of detectors. Port name indicates which port the current controller belongs to. There can be many ports in a system. A port can correspond to multiple controllers an ...
Posted on Wed, 27 Nov 2019 22:03:15 -0500 by jokeruk
Machine learning for web Security: 3.2 decision tree and random forest
Catalog
brief introduction
Simple use of decision tree
Decision tree detection P0P3 burst
Decision tree detection FTP blasting
Random forest detection FTP blasting
brief introduction
Decision tree and random forest algorithm are the most common classification algorithms;
Decision tree, the logic of judgment is very close to people's ...
Posted on Wed, 27 Nov 2019 16:02:19 -0500 by MattG
Release and display of applet circle of friends with cloud development
With the maturity of applet cloud development, there are more and more things you can do with cloud development. Today, we will take you to realize the function of applet circle of friends.
Knowledge Skill Points
1. Applet Cloud Development
2, Applet Cloud Storage
3, Applet Cloud Database
4, picture preview
5, Picture selection and deletion ...
Posted on Wed, 27 Nov 2019 14:05:54 -0500 by psunshine
promise deals with asynchronous problems
What is promise
The solution of asynchronous programming is a constructor, new promise();
What's the use of promise
promise object is used to store data and data status
Callback to hell, hard to maintain code
Callback to hell: (often the output of the first function is what the second function needs)
async function () {aw ...
Posted on Wed, 27 Nov 2019 12:03:14 -0500 by ChetUbetcha
Using the Axios interceptor in Vue
The requirement is to intercept the front-end network requests and corresponding.
Don't talk too much nonsense, go straight to dry goods.
I use vue-cli3, so this config file is created by myself.
Introduce env.js first
//Change different baseUrl according to different environment
let baseUrl = '';
//Under development envi ...
Posted on Wed, 27 Nov 2019 11:42:33 -0500 by LankyMac