Spring AOP-02 post enhanced AfterReturningAdvice

1. Classes to enhance package com.test.springadvicetype; import org.springframework.stereotype.Component; import java.text.SimpleDateFormat; import java.util.Date; /** * Attendants */ @Component public class Waiter { /** * service * @param name */ public String serve(String name) { System.ou ...

Posted on Tue, 28 Jan 2020 07:44:48 -0800 by skdzines

Rotating silly tortoise -- Practice of geometric transformation

These two days new pneumonia case is index rise! I have nothing to do at home. I just remember that an old brother made an image rotation work in the FPGA competition, and also sent a technical report in the group. I plan to learn it when I'm bored, and then I'll watch the geometric transformations of translation, rotation and scaling by the wa ...

Posted on Tue, 28 Jan 2020 07:23:19 -0800 by Yawa

jdbc message persistence in ActiveMQ learning

1. Copy the mysql driver package to the lib directory of activemq Copy the MySQL driver package (driver name: mysql-connector-java-5.1.46.jar) to the lib folder of activemq 2. Configuring jdbc for persistenceAdapter Enter the conf folder in the root directory of the installation directory, open activemq.xml, and modify it to jdbc persistenc ...

Posted on Tue, 28 Jan 2020 02:53:46 -0800 by edcellgavin

"Class - Basic Concept 3" Learned by Scala

Type judgment using pattern matching In practical development, such as spark's source code, a lot of places use pattern matching to make type judgment, which is more concise and clear, and the code is very maintainable and scalable With pattern matching, functionally, just like isInstanceOf, it is sufficient to judge objects that are predomina ...

Posted on Mon, 27 Jan 2020 19:59:45 -0800 by psyion

Java games - greedy snake

Greedy snake in Java games System goals Greedy snake is a puzzle game. Through the design and implementation of this game, you can improve your Java technology ability, enhance your independent development ability and master the development process of the project. development environment System en ...

Posted on Mon, 27 Jan 2020 00:02:59 -0800 by phpian

python_Object Oriented Advancement

Object-oriented Advancement 03 Metaclass A metaclass is a class of a class and a template for a class An instance of a metaclass is a class, just as an instance of a class is an object. Classes are objects in nature, so they can do the following: You can assign it to a variable You can copy it You ...

Posted on Sun, 26 Jan 2020 20:30:10 -0800 by xander85

ComblockEngine Source Analysis 2 - Object Pool and its BUG Existing

Article Directory Say something first What is an object pool Object pool in CBE Hidden BUG BUG Validation BUG Repair Say something first Writing the first CBE Source Blog: Role Account Login and Management When I noticed that the CBE was full of objects such as _g_objPool, it was obvious that it ...

Posted on Sun, 26 Jan 2020 19:48:32 -0800 by vickie

Conversion from Kelvin to RGB: Algorithms and examples

Conversion from Kelvin to RGB: Algorithms and examples As far as I know, it is unlikely to find a reliable formula for the conversion from color temperature to RGB. Although many algorithms implement similar functions, most of them are from color temperature to XYZ color space. After that, you can ...

Posted on Sun, 26 Jan 2020 02:19:08 -0800 by Dark[NSF]

Using DllPlugin to extract Public Libraries

When dll is not used, vue is packaged directly with the application. Every time the application is updated, the client needs to download all new js   After optimization, the size will be a little larger, but users do not need to download the js of vue again every time they update, only need to update the js related to app   Remove m ...

Posted on Sat, 25 Jan 2020 06:39:40 -0800 by AdamBrill

Simple implementation of reach fiber traversal

Tree traversal can adopt recursion or stack simulation recursion, or queue level traversal fiber uses the chain list to simulate the pre order traversal, and completes the traversal in a cycle. Compared with the previous stacks and recursion, when the tree level is higher, the call stack is longer, and the length of the traversal queue is also ...

Posted on Fri, 24 Jan 2020 06:23:11 -0800 by daucoin