SSL basics

A brief introcution to SSL. SSL/TLS Key word : Encription,SSl,TSL,TLS certificate,HTTPS,keys, How to install a certificate on a website A little history Netscape originally invented SSL in the mid-90s Google began marking unencrypted sites Not Secure Problem When sending a message between two parties you have two problems that you need to address How do you know that no one has read the message HOw do you know that no one has changed the message Answer Encrypt it.

A simple thread pool in C++

A simple thread pool based on, highly inspired by Easy3D Implement a simple thread pool This thread pool is a consumer/producer queue without the consume API. Users produce task with Push API, which will be consumed by the threads(workers) of the pool. The code is as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 #include <atomic>#include <cassert>#include <chrono>#include <functional>#include <future>#include <iostream>#include <memory>#include <mutex>#include <queue>#include <string>#include <thread>#include <type_traits>#include <utility>#include <vector> class ThreadPool { using task_type = std::function<void()>; public: ThreadPool(size_t num = std:🧵:hardware_concurrency()) { for (size_t i = 0; i < num; ++i) { workers_.

Profling windows application

Introduce tools for profiling msvc application. Profiling Windows App Vsperf TODO Where is vsperf* tools for vs2019.These tools are not available form vs2019 page in the online documentation VSDiagnostics? [RAD] (http://www.radgametools.com/telemetry.htm) Tracy Reference Measure app performance in Visual Studio Understand performance collection methods Measure application performance from the command line Command-line profiling tools reference

Font basics

Basics about fonts. Basics about fonts Font vs typeface Typeface: Helvetica Font: Helvetica Regular 9 point. Font vs Font family Font family is like typeface, it is a colletion. Font encoding Freetype library Reference The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) How are character encodings related to fonts? FontForge Where can I get information on the mechanics of fonts?

Video basics

Introduce some basics about video. Video basic concepts Each video file contains two elements: Codecs, or “compression-decompression” algorithms which compress the video Formats, the type of file the data is compressed to. Format/Container The entire set of storage rules that package a video file’s container, codecs, and metadata.Formats are developed to improve image quality, decrease file sizes, allow for universal playback on a variety of devices, and provide special features such as subtitles.