Based on the Open62541 OPC UA protocol, the Open62541 version is v1.3.6. Server entry header file OPCUA_Server.h: #pragma once #ifndef __AFXWIN_H__ #error “Include ‘pch.h’ before including this file to generate PCH” #endif #include “resource.h” // Main symbol #include <open62541.h> class COPCUAserverApp : public CWinApp { public: COPCUAserverApp(); virtual ~COPCUAserverApp(); // Rewrite public: virtual BOOL InitInstance(); […]
Tag: pen
lv4 embedded development-7 file IO (concept, open, close, read, write)
Table of Contents 1 Introduction to file I/O 2 File I/O – File Descriptor fd (File Descriptor) 3 File I/O – open 4 File I/O – close 5 File I/O – read 6 File I/O – write 7 File IO – lseek 8 Standard I/O – Thoughts and Practice Understand the meaning of file descriptors […]
Asymmetric encryption, decryption principles and RSA sample code in openssl
1. [Introduction to the principle] Asymmetric encryption Asymmetric encryption, also known as public key encryption, uses a pair of related keys: a public key and a private key. The public key is used to encrypt data and the private key is used to decrypt data. The public key can be shared publicly, while the private […]
Use openlayers to create travel maps in vue3
Since I often went out to play in the first half of the year, I suddenly wanted to start a travel map blog. I remembered that I had been exposed to openlayers projects before, and I was too lazy to investigate other libraries. I just started using openlayers. Since github often fails to build, I […]
Python builds an HTTP server and accesses it from the external network – Intranet penetration
1. Preface As a relatively popular programming language, Python has simple syntax and clear statements, and Python has good compatibility. It can be easily connected with modules established in other programming languages (such as C/C++), and Python is rich. A powerful library that can be easily called after encapsulation, so it is very popular. Today […]
OpenWrt kernel install analysis (1)
1. Foreword This article mainly introduces the compilation and installation process of the OpenWrt kernel. 2. Process analysis 1. Add the following statement to include/toplevel.mk include/toplevel.mk: kernel_install: prepare_kernel_conf $(_SINGLE)$(NO_TRACE_MAKE) -C target/linux install At this point, you can execute make kernel_install in the root directory of the OpenWrt source code to compile and install the kernel […]
The role of depends_on in docker-compose
Article directory depends_on introduction depends_on has a long definition pattern condition description required description Reference documentation depends_on introduction In Docker Compose, depends_on is a keyword used to define dependencies between services. It allows you to specify that one or more services depend on other services to ensure that when a container is started or recreated, […]
Accessing github has been unable to open. Use this small tool to help you solve the problem easily.
Recently, the github website has been unable to be opened. Using the github accelerator can only last 2 to 3 days at most, which is very unstable, so it is very necessary to write a small tool. So why can’t you access github? This is because the network dns accessed by your computer fails to […]
[Java +selenium +jsoup] Java opens Firefox and Google Chrome, and obtains content from the web page in the browser
Google package com.gxq.model.controller; import cn.hutool.core.thread.ThreadUtil; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeDriverService; import org.openqa.selenium.chrome.ChromeOptions; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.io.File; import java.io.IOException; /** * Get web image Controller * * @author Xiaoqiang * @date July 9, 2023 22:53:17 */ @RestController @Slf4j @AllArgsConstructor @RequestMapping(“/test”) public […]
Partial Dependence Plots and practical-explanation of causes of diseases
Continuing from the previous article, explanation of feature importance Feature importance shows the role of each feature, and partial dependence plots can show how a feature affects the prediction results. The premise is also that the application can be used after the model is established, as outlined below: First, select a sample data. At this […]