Tag:case

  • 1 – why do you need message queues

    Time:2021-7-27

    Why message queuing Asynchronous processing: suppose an interface has three ABC operations, operation a can be completed quickly, but the BC operation is time-consuming. At this time, the BC operations can be put into the message queue and returned directly, so as to reduce the waiting time of the interface. flow control: suppose that our […]

  • Golang condition variable & send notification & accept notification & broadcast

    Time:2021-7-22

    Three pointer methods: Wait() for goroutine to accept notification, single() broadcast() to unblock If there are multiple goroutines, only one will be selected Broadcast () broadcast method to everyone The following is the underlying execution process of the wait method Try to unlock Wait attempts to unlock. After unlocking, it waits for other notifications, = […]

  • Comparison of outliers outlier detection methods in tecdat: R language

    Time:2021-7-13

    Link to the original text:http://tecdat.cn/?p=8502 There are many ways to identify outliers, and there are many different ways in R. The article on outlier method combines theory and practice. The theory is fine, but outliers are outliers because they don’t followtheory。 If a method finds outliers that we all agree with, then this method can […]

  • How to effectively generate dump in ten thousand dead methods of net program (Part one)

    Time:2021-7-7

    1: Background I believe many people know that through theTask ManagerGrabbing dump is simple and crude, but it can’t meet the numerous dead methods of the program Memory expansion, program explosion The CPU explodes high, the program is exhausted Application does not respond, users are angry Unexpected exit, just like life Since the manual is […]

  • Concurrency Series 5: understanding the reentrantlock source code unlocking process (fair lock) based on two cases

    Time:2021-7-7

    preface Last articleBased on two cases, we understand the locking process of reentrant lock. Next, let’s continue to understand its unlocking process based on the same case. Two cases 1. Thread a locks and unlocks separately2. When thread a is holding the lock, thread T1 will lock it. After thread T1 is blocked, thread a […]

  • Laravel custom command generates service and repository layer

    Time:2021-7-6

    brief introduction When you use laravel, you are shocked by the power of laravel. In developing laravel projects, you often use the artisan command. It’s very convenient to use the artisan command, especially when creating controller or model. However, in the company, you often encounter the problem that the project Abstracts Service and repository layers, […]

  • Mac install rabbitmq

    Time:2021-7-4

    A series of articles: Introduction to rabbitmq Mac install rabbitmq Install rabbitmq in Ubuntu Rabbitmq usage scenarios Rabbitmq components and architecture Rabbitmq code example Rabbitmq introduction case – fanout mode Rabbitmq introduction case – work mode – polling mode Rabbitmq – springboot case – fanout mode Rabbitmq – springboot case – direct mode Rabbitmq – […]

  • JDBC + MySQL

    Time:2021-7-4

    preface Hello, I’m bigsai. Today we’re doing the actual combat of JDBC + MYSQL, which is very suitable for beginners to open a new world. Implement an example of adding, deleting, modifying and checking (curd).First like and then watch, handsome boys and girls to develop a good habit! Before this case, you need to make […]

  • Install rabbitmq in Ubuntu

    Time:2021-7-3

    A series of articles: Introduction to rabbitmq Mac install rabbitmq Install rabbitmq in Ubuntu Rabbitmq usage scenarios Rabbitmq components and architecture Rabbitmq code example Rabbitmq introduction case – fanout mode Rabbitmq introduction case – work mode – polling mode Rabbitmq – springboot case – fanout mode Rabbitmq – springboot case – direct mode Rabbitmq – […]

  • Rabbitmq usage scenarios

    Time:2021-7-2

    A series of articles: Introduction to rabbitmq Mac install rabbitmq Install rabbitmq in Ubuntu Rabbitmq usage scenarios Rabbitmq components and architecture Rabbitmq code example Rabbitmq introduction case – fanout mode Rabbitmq introduction case – work mode – polling mode Rabbitmq – springboot case – fanout mode Rabbitmq – springboot case – direct mode Rabbitmq – […]

  • Canvas learning: share some cases that I use to practice when I study canvas

    Time:2021-7-1

    This article first appeared inArray_HuangOur technology blog——Practical firstPlease do not reprint without the author’s permission.Original address:https://segmentfault.com/a/1190000007522378 Project GitHub:https://github.com/Array-Huang/canvas-learning Case 1: tic tac toe Case 1-1 Some basic APIs of canvas are simply applied, such as drawing basic graphics and path. Case 1-2 Practice usingPath2DcoordinationtranslateTo reuse the path. Case 2: brick laying Practice a batch of […]