References in Java and JNI (strong, soft, weak, virtual)

1. Strong References (Objects) Features: Strong references provide direct access to the target object. Will not be recycled. Two, soft reference (SoftReference class) Features: When GC reclaims based on JVM memory, JVM reclaims when it finds it is out of memory Conditions for freeing up space: JVM found insufficient m ...

Added by trygve on Sun, 19 Jul 2020 18:32:41 +0300

Beego Learning Notes 6: Paging Implementation

Implement Paging 1> Business logic for paging implementation 1->N data are displayed on each page. For the total number of data records M, the number of pages M%N==0?M/N:M/N+1; 2->Page Rendering Paging html Part 3>Switch pages, input parameters, background processing, and retrieve new eligible data 4>Paging method, js paging, and ...

Added by whare on Sun, 19 Jul 2020 17:37:26 +0300

(React-Native Learning Sixth) react-native-router-flux component learning

It feels good to see a video of this component on youtube. This is a navigation component, navigation is an important part of the app github address The use of direct jump is very intuitive and simple.Look at the code and make a simple comment //index.js import React, { Component } from 'react'; import { Router, Scene } from 'react- ...

Added by GrecoClub on Thu, 16 Jul 2020 19:14:33 +0300

A logic problem: who is the killer

Previous articles in this series: Simple implementation of logical programming language (using C ා) - 1. Introduction of logical programming language This is a classic Prolog exercise. The Chinese translation is from Ruan Yifeng's article Introduction to Prolog language. problem Mr. Boddy died of murder. There are six suspects. Each of them ...

Added by ginga8 on Tue, 30 Jun 2020 11:18:10 +0300

One article completes Spring Security exception handling mechanism!

Today, let's talk about the exception handling mechanism in Spring Security. In Spring Security's filter chain, the ExceptionTranslationFilter filter is specially used to handle exceptions. In the ExceptionTranslationFilter, we can see that exceptions are divided into two categories: authentication exceptions and authorization exceptions. The t ...

Added by trazan on Tue, 30 Jun 2020 05:57:58 +0300

Notes on the development of peripheral driver library 9: SHT1x series temperature and humidity sensor driver

In our products, we often need to test the temperature and humidity data. There are many methods and modules to detect temperature and humidity, among which SHT1x series temperature and humidity sensor is a low cost and easy to use temperature and humidity detection module. Let's talk about how to re ...

Added by Rithiur on Sat, 27 Jun 2020 10:18:00 +0300

How to Design a Privilege Authorization Service in Microservices

Role-based access control (RBAC) One way to restrict system access to authorized users is to define policy-independent access control mechanisms around roles and privileges, and the components of RBAC make it easy to perform user assignments. Within the organization, various jobs will be created role .Permissions to perform certain actions ha ...

Added by fordyh on Fri, 26 Jun 2020 04:14:55 +0300

[Video and Audio Data Processing] H.264 video stream analysis

0. Basic concepts The location of the 0.1 video stream in the video player is as follows: H.264 original code stream (also known as "naked stream") is composed of one NALU. Their structure is shown in the figure below. 0.2 to be more accurate, the original NALU unit is composed of: [st ...

Added by Termina on Wed, 24 Jun 2020 10:42:32 +0300

Explosion series: in depth exploration of automatic construction technology of Gradle

0 preface   Obviously, Gradle is a powerful build tool, and many articles only treat it as a tool. However, Gradle is not only a powerful build tool, it looks more like a programming framework. The composition of Gradle can be divided into the following three aspects:   1) , groovy core syntax: including groovy basic syntax, closure, dat ...

Added by datoshway on Wed, 24 Jun 2020 04:54:07 +0300

Don't worry about picture processing, give you ten helpers

In this paper, Apollo will introduce ten "little helpers" for your little buddies, each with unique skills such as blurring, compressing, cropping, rotating, synthesizing, and comparing.I'm sure you'll be able to cope with most picture processing scenarios easily once you know them. But before ...

Added by tr0gd0rr on Tue, 23 Jun 2020 04:29:55 +0300