Overview of snowflake algorithm

background Of course, the background of snowflake algorithm is the demand for unique ID generation in the high concurrency environment of twitter. Thanks to the awesome technology inside twitter, snowflake algorithm has been spread and widely used. It has at least the following characteristics: It can meet the requirement of no duplicate ID i ...

Added by smashita on Fri, 03 Sep 2021 03:33:36 +0300

RHCE 12th day tuned

Tuning system System administrators can adjust various device settings based on a variety of use case workloads to optimize system performance. The tuned daemon uses a tuning profile that reflects the requirements of a specific workload to apply tuning in both static and dynamic ways. Configuring the static tuning tuned daemon applies the ...

Added by lulon83 on Thu, 02 Sep 2021 20:31:54 +0300

Learning log day40 (2021-09-02) (1, database connection pool 2, java sends e-mail using CommonsEmail)

Learning content: Learn Java Web (Day40) 1. Database Connection Pool 2. java uses CommonsEmail to send e-mail 1. Database Connection Pool (1) Download dependency packages for DBCP, C3P0, DRUID, Hikaricp connection pools DBCP: http://commons.apache.org/dbcp/ C3P0: http://sourceforge.net/projects/c3p0/ DRUID: https://druid.apache.org (2) DB ...

Added by andreas on Thu, 02 Sep 2021 19:32:27 +0300

MySQL basic review

6. Services Transaction is to execute a group of SQL statements in the same batch. ACID principle: Atomicity All operations in the whole transaction are either completed or not completed. It is impossible to stagnate in an intermediate link. If an error occurs during the execution of a transaction, it will be rolled back to the state before ...

Added by walexman on Wed, 01 Sep 2021 21:12:27 +0300

Summarize django knowledge points

1. View functions: Request Object------------- request: 1,HttpRequest.body:) Request original data 2,HttpRequest.path:) A string representing the requested path component (without domain name)           3,HttpRequest.method             4,HttpRequest.GET           5,HttpRequest.POST           6,HttpRequest.FILES 7,HttpResquest.user:) An AUTH_U ...

Added by simon71 on Sun, 19 Jul 2020 17:54:28 +0300

Physical Reserve ORA 01274 Problem Handling

My physical standby failed to start and terminate MRP due to ora 01274 problem.This problem is very simple to handle, but Baidu almost took me to the pit after searching an article, so I wrote down the standard steps of MOS for your friends to refer to. This DG environment was built two weeks ago and needs to be officially switched today.Befor ...

Added by chiefmonkey on Sat, 18 Jul 2020 18:39:03 +0300

Picture deletion for laravel-admin

There is a deep doubt about laravel-admin's picture upload mechanism. Deleting avatar pictures on the user information page will cause an error. It was 1.4 at that time, and later updated 1.5 found that the delete button disappeared directly. If you use image normally in the form during the process of use, the slight ...

Added by sansoo on Sat, 18 Jul 2020 17:36:44 +0300

Picture deletion for laravel-admin

There is a deep doubt about laravel-admin's picture upload mechanism. Deleting avatar pictures on the user information page will cause an error. It was 1.4 at that time, and later updated 1.5 found that the delete button disappeared directly. If you use image normally in the form during the process of use, the slight ...

Added by Joan Collins on Sat, 18 Jul 2020 17:37:13 +0300

[Spring] Pure java for Spring-hibernate integration

First import the corresponding jar package for Spring-hibernate Then prepare the file for the database connectionHibernate.propertiesAlsoJdbc.properties Hibernate.propertiesFile: Configure the hibernate dialect and automatic table building hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.hbm2ddl.auto=create Jdbc.propertiesFi ...

Added by Master_Phantom on Wed, 08 Jul 2020 17:41:09 +0300

The back-end data loaded by the select component of jqWEUI is items

jqweui I don't know how many people have used it. I often use it to develop webapps Its select component is more often used, but this time I need to get the selected items data from the database instead of writing the page dead After thinking about it for a while, I finally came up with a method, which is also effecti ...

Added by EZbb on Tue, 07 Jul 2020 19:01:00 +0300