collections of python standard library
Introductionpython provides us with five basic data structures: list, tuple, dict, set, string;Sometimes we need to maintain an orderly dict. So at this time, we will use the collection package provided by Python standard library. It provides many useful collection classes. Mastering these collection classes skillfully can not only make our cod ...
Added by Jaxeed on Fri, 05 Jul 2019 22:08:39 +0300
Grounddog Shopping Network, Web Location and Navigation Special Effects Enhanced Edition
I have made great improvements in the original Local Dog Shopping Network-Web Location Navigation:
Specific improvements include the following:
1. The original Ground Dog Shopping Network realized click navigation jump through anchor links. This jump is instantaneous without animation. I encapsulated menuClick(menus,items) click navigation fu ...
Added by Shock_CNOP on Fri, 05 Jul 2019 20:45:42 +0300
Explain the Worker of ThreadPool Executor
The Worker class not only implements Runnable, but also inherits AbstractQueued Synchronizer, so Worker itself is an executable task, and can also realize the function of locks. Worker is mainly used to manage the interruption status of threads and some indicators, such as the number of tasks completed; Worker simplifies the operation of acquir ...
Added by Idri on Fri, 05 Jul 2019 01:26:23 +0300
profile analysis of database from redo log
Label
PostgreSQL, pg_xlogdump, database profile
background
It is convenient to view TOP SQL in PostgreSQL, as follows:
PostgreSQL How to Find TOP SQL (e.g. IO-consumed SQL)
From another point of view, such as REDO files, we can also analyze the operation type of the database in each period, analyze the resource consumption of the database, a ...
Added by sagee on Wed, 03 Jul 2019 22:22:44 +0300
In a master-slave environment, if the master library hangs, how to elect a slave library as the master library?
In a master-slave environment, if the master library hangs, how to elect a slave library as the master library?As shown in the figure:If M hangs, how do I elect a slave library from S1 and S2 as the master library?Solutions to Traditional Reproduction(1) View the status of slave libraries:S1: show slave status;S2: show slave status;root@local ...
Added by shinagawa on Wed, 03 Jul 2019 22:07:38 +0300
Approximate multiple choice cards for previous exams
Problem Description
In their spare time, Holmes and Watson play a game: N integers are written on N cards.Two people take a card in turn.The number required of the next person must be the approximate or multiple of the number taken by the previous person.For example, one time Holmes took a card with the number "6", Watson could th ...
Added by darthmahon on Sun, 30 Jun 2019 20:34:33 +0300
SpringBoot__JSR303 Verifies the Input Parameters
Program Tool Class:
package com.liutao.utilitys;
import org.springframework.http.HttpStatus;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Parametric Verification Tool Class
*
* @author LIUTAO
* @version ...
Added by lip9000 on Sat, 29 Jun 2019 22:56:39 +0300
Function realization of android inquiry bus and several stations
Copyright Statement: This article is the original article of the blogger. It can not be reproduced without the permission of the blogger.
Android Baidu Map-based Enquiry of Peripheral Buses
The last article introduced how to use Baidu Map to locate on Android platform. Next, it introduced how to use Baidu Map to ob ...
Added by liljim on Sat, 29 Jun 2019 02:57:25 +0300
Full Arrangement of Arrays
Leetcode 46. Full permutations of arrays
· TotalAccepted: 160245
· TotalSubmissions: 378230
· Difficulty: Medium
· Contributor: LeetCode
Given a collection of distinct numbers,return all possible permutations.
For example,
[1,2,3] have the following permutations:
[
[1,2,3],
[1,3,2],
[2,1,3],
[2,3 ...
Added by hannnndy on Sat, 29 Jun 2019 00:18:43 +0300
Table space attributes in partitioned tables in Oracle
Partition table in Oracle is a good feature of Oracle. It can divide large tables into several small tables, so as to improve the efficiency of SQL execution for the large table, and each partition is transparent to the application.Each partition in the partition table has its own storage characteristics, including table space, PCT_FREE, etc. W ...
Added by JimChuD on Fri, 28 Jun 2019 01:56:59 +0300