NGINX
Website

Searching Principle of Nginx Location Block

Nginx uses location block to set configuration on different request URI. With prefix and regular method. From priority high to low is =, ^~, ~ and ~*, none. Nginx first checks locations defined by the prefix strings. Then checks the regular expression in the order of their appearance. There is a mechanism to determine which location block is used.

Matlab
Matlab

Matlab filter2 的用法

Y=filter2(h,x,’shape’) h为滤波器,x为要滤波的数据,将h放在x上移动进行模板滤波。shape可取 full, same, valid (不写默认是same)。本篇文章采用滑动平均fspecial(‘average’)创建一个均值滤波器,举例说明filter2的用法。

Digital Controller

让单片机(如STM32)在编译时自动嵌入固件CRC32,以实现Bootloader对固件的完整性检查

Let the microcontroller (such as STM32 MCU) compiler automatically embed the CRC32 value for firmware integrity check in bootloader. 通过在FLASH存储空间的最末尾设置两个int32大小的crc32Value和crc32Value2来实现嵌入式程序Bootloader自检。检查过程可以统一为,检查crc32Value的值是否正确,若不正确,检查crc32Value2的值是否正确。若都不正确,则程序错误,进行bootloader错误处理阶段。