JavaScript Data Structure and Algorithms Set
Sets are composed of a set of disordered and unique (non-repeatable) items, which have the same limitation as our set of high school mathematics.Most of this data structure is used to store unique elements.
aggregate
Creating Collection Classes
class Set {
constructor() {
this.items = {};
}
Verify whether an element exists in a collecti ...
Posted on Fri, 04 Oct 2019 23:02:02 -0400 by burtybob
Mysql - Stored Procedures - Timed Delete Tables
In industrial monitoring, it is necessary to record daily data. After a long time, the database is easy to burst. At this time, if allowed, the previous data can be cleared once, recording only a few months of data.
delimiter $
DROP PROCEDURE if exists p_clearOldData;
/*
g_date_limit Time limits, such as 2019_08, delete tables before tha ...
Posted on Fri, 04 Oct 2019 19:06:38 -0400 by synical21
Oracle Fault Handling Archiving Log Increase Suddenly
Oracle can save Redo Log online log files to many different locations. The process of converting online log to archive log is called archiving, and the corresponding log is called archive log. The archive log can be used to restore the database, so it records various operations of the database.
If we ne ...
Posted on Fri, 04 Oct 2019 15:26:47 -0400 by ben14
springboot - Integrated druid
Configuration of pom.xml
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>s ...
Posted on Fri, 04 Oct 2019 11:21:52 -0400 by Ajdija
Practice of eudore-website authentication system
This article is roughly recorded. eudore-website acl, rbac, pbac authentication and ak, token, bear authentication are realized. Please see the complete details. Source code.
Online demo User passwords are guest.
Authentication design
eudore-website uses ak, token and bearer to authenticated three kinds of comprehensive authentication. The pri ...
Posted on Thu, 03 Oct 2019 23:43:04 -0400 by Dorky
Campus Activity Platform Project (swing+mysql)
Campus Activity Platform Project (swing+mysql)
After studying JAVASE in the school studio for some time, we completed the studio project.
Project requirements:
I. Blue Point Campus Activity Platform
Basic needs:
1. With login and registration function
2. Administrator
Audit activities (decid ...
Posted on Thu, 03 Oct 2019 21:50:58 -0400 by GoRide!
java code implements mysql table (user behavior record)
Setting up pneumatic execution times (checking table records once a day)
public class DayInterval implements ServletContextListener{
private static SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
public static void showDayTime() {
Timer dTimer = new Timer();
dTimer ...
Posted on Thu, 03 Oct 2019 16:10:05 -0400 by edzulis
The use of pymysql module
I. Connecting to MySQL Server
import pymysql
# Connect to the database and call the Connect function (the Connect function returns an object of Connection)
conn = pymysql.Connect(host='localhost', #Host ip
port=3306, #port
user='user', #User name
...
Posted on Thu, 03 Oct 2019 15:28:03 -0400 by phpdood
JpaDay3 (Mapping Relations)
One-way many-to-one
There are multiple configurations.
@Entity
@Table(name="t_product")
public class Product {
@Id
@GeneratedValue
private Long id;
private String name;
//To configure
@ManyToOne
@JoinColumn(name="dir_id")//Foreign key
private ProductDir dir ;
Note: ...
Posted on Thu, 03 Oct 2019 12:33:10 -0400 by ngolehung84
leetcode-database: 184. the highest-paid employees in the Department
The title is as follows:
The Employee table contains all employee information, and each employee has its corresponding Id, salary and departmental Id.
+----+-------+--------+--------------+
| Id | Name | Salary | DepartmentId |
+----+-------+--------+--------------+
| 1 | Joe | 70000 | 1 ...
Posted on Thu, 03 Oct 2019 07:52:51 -0400 by dacio