Simple realization of C++11 thread pool
Simple implementation and test of C++11 thread pool
Don't talk much, code first
//threadpool.h
#pragma once
#include<vector>
#include<queue>
#include<thread>
#include<iostream>
#include<stdexcept>
#include<condition_variable>
#include<memory>
#include<fu ...
Posted by mjm7867 on Wed, 04 Mar 2020 02:14:29 -0800
Portable file operations - Files
Portable file operations - Files
Separator
In Windows system, backslash '' or slash '/' is used as the separator of the path. However, when using backslash, it needs to be noted that a single backslash represents the escape character, so when using backslash as the separator of the path, it needs ...
Posted by lettie_dude on Wed, 04 Mar 2020 00:13:12 -0800
Non blocking connect
In the socket blocking mode, the connect function will not return until there is a clear result (or the connection succeeds or the connection fails). If the server address is "far away" and the connection speed is slow, the connect function may cause the program to block in the connect process ...
Posted by romic on Tue, 03 Mar 2020 23:43:35 -0800
The request was aborted: unable to create SSL / TLS secure channel
We were unable to connect to the HTTPS server using WebRequest due to the following error message:
The request was aborted: Could not create SSL/TLS secure channel.
We know that the server does not have a valid HTTPS Certificate in the path used, but in order to bypass this problem, we used the following code obtained from another StackO ...
Posted by Phsycoslaya on Tue, 03 Mar 2020 20:40:06 -0800
TensorFlow2 learning -- Image Classification
Article directory
TensorFlow2 learning -- Image Classification
Guide bag
Raw data
Data mapping
Data division and standardization
Model and train
Model evaluation and prediction
Other: use of Callback
TensorFlow2 learning -- Image Classification
Guide bag
import matplotlib.pyplot as plt
impor ...
Posted by fizix on Tue, 03 Mar 2020 01:51:59 -0800
C + + get WiFi list (Native WiFi API)
C + + get WiFi list (Native WiFi API)
Official Demo
Process of obtaining WiFi: open Wlan Handle → enumerate network card information → obtain WiFi list, official Demo, Here
Required interfaces:
WlanOpenHandle entry: Here
WlanEnumInterfaces entrance: Here
WlanGetAvailableNetworkList entry: ...
Posted by nadeem14375 on Mon, 02 Mar 2020 21:51:53 -0800
C summary part 6 file management
10_ file
Text files: Based on character encoding, such as ASCII, UNICODE
Binary
file open
FILE *fopen(filename, mode);
// The system itself defines a structure called FILE
// Mode indicates the mode of opening the file
/*
mode The value of
r rb Open as read-only
w wb Open as write
a ab Open as append, add content at the ...
Posted by hillbilly928 on Sun, 01 Mar 2020 00:21:59 -0800
Android learning note 5, introduction to some Android methods
1, layout in Android
1. Linear Layout: it is divided into vertical Linear Layout (android:orientation = "vertical") and horizontal Linear Layout (android:orientation = "horizontal" / / horizontal Linear Layout) according to the arrangement direction.
When a linear layout defines an a ...
Posted by bruceleejr on Sat, 29 Feb 2020 23:52:43 -0800
ASP.NET watermark image upload file
In the previous article, we introduced the specified image file and added watermark to the specified file
In this paper, watermark is applied to the project. When the user uploads the picture file, the corresponding watermark is added to the picture
Still using a generic handler (. ashx)
Users add pi ...
Posted by bradmasterx on Sat, 29 Feb 2020 23:26:40 -0800
C#Develop windows services
Introduction to Windows Service Application
Microsoft Windows Services (formerly known as NT Services) allow users to create executable applications that can run for a long time in their own Windows sessions.These services start automatically when the computer starts, can be paused and restarted, an ...
Posted by jrbilodeau on Sat, 29 Feb 2020 19:48:13 -0800