Arduino + OLED screen display bitmap

original There are already many projects using Arduino to drive a 0.96-inch OLED screen to display various information. If we need to drive OLED to display images, logos, etc. whatever we want, here is a simple and general method. You need to use Image2Cp, a tool for converting images to CPP code. Component list Arduino×1 […]

SpringMVC–@RequestMapping annotation

@RequestMapping annotation The function of @RequestMapping annotation The location of the @RequestMapping annotation @RequestMapping annotated properties 1. value attribute 2. method attribute 3. params attribute (understand) Replenish @RequestParam @RequestHeader @RequestBody @RequestBody gets request parameters in json format @ResponseBody @RestController annotation Function of @RequestMapping annotation The function of the @RequestMapping annotation is to associate the request […]

Project practice: component scanning (5) – parse methods with GetMapping or PostMapping and finally encapsulate them into ControllerDefinition

1. ControllerDefinition package com.csdn.mymvc.core; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; //Suppose there is a uri:/fruit/index @Data @NoArgsConstructor @AllArgsConstructor public class ControllerDefinition { private String requestMapping; private Object controllerBean; private Map<String, Method> methodMappingMap = new HashMap<>(); } 2. ComponentScan package com.csdn.mymvc.core; import com.csdn.mymvc.annotation.*; import java.io.File; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import […]

Project practice: component scanning (4) – filtering bean instances with RequestMapping annotations

1. ControllerDefinition package com.csdn.mymvc.core; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; //Suppose there is a uri:/fruit/index @Data @NoArgsConstructor @AllArgsConstructor public class ControllerDefinition { private String requestMapping; private Object controllerBean; private Map<String, Method> methodMappingMap = new HashMap<>(); } 2. ComponentScan package com.csdn.mymvc.core; import com.csdn.mymvc.annotation.*; import java.io.File; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import […]

Implementing check-in through redis bitmap

Implementation ideas Our check-in function can be completely completed through mysql. CREATE TABLE `sign_record` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT ‘primary key’, `user_id` bigint NOT NULL COMMENT ‘userid’, `year` year NOT NULL COMMENT ‘Sign in year’, `month` tinyint NOT NULL COMMENT ‘Month of check-in’, `date` date NOT NULL COMMENT ‘check-in date’, `is_backup` bit(1) NOT […]

[[Hash Application] Bitmap/Bloom Filter]

Bitmap/Bloom filter bitmap bitmap concept Use of bitmaps Bitmap simulation implementation bloom filter Bloom filter concept Use of bloom filter Bloom filter simulation implementation Bitmap/Bloom Filter Application: Massive Data Processing Hash splitting Bitmap Bitmap concept Computers usually use bits as the smallest storage unit of data. There are only two binary states: 0 and 1. […]

[Tian Map] VUE3 encapsulates some function hooks of Tian Map useTdtMap.js

It is only packaged based on personal habits and is for reference only. Tianditu API address: http://lbs.tianditu.gov.cn/api/js4.0/class.html In addition to the sky map, this hook also needs to introduce the open source library Image Overlay! ! ! Open source library address: http://lbs.tianditu.gov.cn/api/js4.0/opensource/source.html The detailed description of each method is reflected in the code. First, create […]

Source code analysis SpringMVC’s RequestMapping annotation principle

1. Start initialization Core: After obtaining all the beans existing in the application context, traverse them in sequence, analyze the annotation @RequestMapping that exists in each target handler & target method, and encapsulate its related attributes into an instance RequestMappingInfo. Finally, the mapping relationship between uri & handler is maintained in the internal class RequestMappingInfo […]

[C++ and data structures] Bitmaps and Bloom filters

Table of Contents 1. Bitmap 1. The concept of bitmap 2. Implementation of bitmap ①.Basic structure ②、set ③、reset: ④、test ⑤. Question: ⑥. Advantages, disadvantages and applications of bitmaps: ⑦. Complete code and testing 2. Bloom filter 1. Proposal of Bloom filter 2. Implementation of Bloom filter ①.Basic structure ②. Implementation of three Hash functors ③、 […]