Redis series - bloon filter

When we use Redis as cache, one of the problems we need to consider is cache penetration. There are many types of cache penetration, and different types have different solutions. As one of the solutions, the bloon filter is used. The bloom filter is mainly used to determine whether an element is contai ...

Posted on Sat, 27 Jun 2020 02:42:46 -0400 by methodlessman

The eval function of C language scientific calculator imitates JS to parse the string suffix expression

C language uses suffix expression to parse string Recently, I wrote a parsing string in C language of 98 Standard, which is similar to eval function in JavaScript. It feels very practical (transplanted to calculator, you can draw F(X,Y)==0). I'd like to share with you that you can use it. Thank you ...

Posted on Mon, 15 Jun 2020 02:44:10 -0400 by john_zakaria

springboot-redis spring cache mid-story

1.spring cache parsing 1.1.RedisCache and RedisCache Manager 1.1.1. Structure 1.1.2. Resolution RedisCache uses the RedisCacheWriter interface for reading and writing redis; RedisCacheWriter Differences between RedisCacheWriter and Cache interfaces: All methods need to specify a name, which ...

Posted on Thu, 11 Jun 2020 21:08:01 -0400 by mebar3

C + + on programming mode

Design pattern What is design pattern Why learn design patterns Where design patterns come from Principles of design pattern Object oriented design principles Principle of single responsibility Principle of opening and closing Richter's principle of substitution Dependence Inversion Principle In ...

Posted on Thu, 04 Jun 2020 09:37:54 -0400 by Joseph Sliker

Learn more about Android animation

1, PropertyValuesHolder Reading this article requires the foundation of Android attribute animation in the previous article, so that you can understand what to say next. 1. Understanding and use PropertyValuesHolder is a method similar to ObjectAnimation, but with one target missing, it is the control to be executed. Look at the normal usage: a ...

Posted on Thu, 07 May 2020 05:47:51 -0400 by Dan06

Java system class String common methods and method use details

character string String is a constant,String is also called constant string //All operations on strings return a new string (that is, the original string cannot be changed) // String exists in constant pool // The string itself does not change, but the reference address changes, which is equivalent t ...

Posted on Sat, 02 May 2020 10:39:15 -0400 by Charles Wong

Introduction to machine learning for programmers - linear model, activation function and multilayered linear model

Biological neuron and artificial neuron Before we understand the neural network, let's take a brief look at what biological neurons look like. The following figure is excerpted from Wikipedia: (because I'm not an expert, the explanation here is only used to understand where the artificial neuron simulates the biological neuron, which may not ...

Posted on Fri, 24 Apr 2020 01:09:40 -0400 by hackerkts

A new feature of Java 8: Lambda Expressions

Lambda expression The problem with anonymous classes is that if the implementation of an anonymous class is very simple, such as an interface with only one method, the syntax of an anonymous class may look clunky and unclear. In these cases, you usually pass an anonymous inner class object as a parameter to a method, such as what to do when som ...

Posted on Tue, 14 Apr 2020 08:00:09 -0400 by kamy99

Learning notes of PyQt5

Learning PyQt Because I love it. Content reference from ARCHi's blog 1, Object oriented creation GUI 1. Create a graphical interface according to the following format class Example(QWidget): # The above can be inherited from QWidget and QMainWindow, indicating that they are controls or main windows respectively ...

Posted on Fri, 03 Apr 2020 16:16:51 -0400 by kwilameiya

What can I do after learning the three structures of C language? (write a calculator and keep updating)

Name: Gong Zheng Place: Home Experiment time: March 25, 2020 Experimental items: Purpose and requirements of the experiment 1,...... 2,...... Experimental content Experiment exercise: 1. Simple description of the problem: simple description of the project 2 experiment code: it needs to use MARKDOWN to insert code. 3 problem analysis: (focus on ...

Posted on Tue, 24 Mar 2020 09:18:30 -0400 by shivers