The implementation of several common sorting algorithms in java

Bubble sort Bubble sorting is a sort method that finds the most value every time. After finding the most value, put it on one end of the array through the comparison process. Next time you traverse, you will not see it. Just traverse the rest of the array, find the most value from the rest of the array, and put it on one end. ...

Posted by dr4296 on Wed, 04 Dec 2019 03:32:56 +0100

selenium skips webdriver detection and crawls the data of Taobao I have purchased

brief introduction The previous blog has described how to use selenium to skip webdriver detection and crawl tmall's product data, so we will not talk about it in detail here, and you can view another blog if you need some ideas. source code # -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.by import By ...

Posted by Jaehoon on Mon, 02 Dec 2019 22:38:37 +0100

C#Thread Learning Note 1: Thread Foundation

This note was taken from: https://www.cnblogs.com/zhili/archive/2012/07/18/Thread.html And record the learning process for future reference. Introduction to threads A process is a collection of resources to be used by instances of an application, each running in its own process to ensure that the application is not affected by other application ...

Posted by howard-moore on Wed, 27 Nov 2019 21:30:01 +0100

Goroutine synchronization / channel, mutex, read / write lock, deadlock / condition variable

1. Goroutine synchronization [data synchronization] Why goroutine synchronization is needed The concept of gorotine synchronization and several ways of synchronization 1.1 why goroutine synchronization is needed package main import ( "fmt" "sync" ) var A = 10 var wg = sync.WaitGroup{} func Add(){ defer wg.Don ...

Posted by stormcloud on Wed, 27 Nov 2019 10:48:41 +0100

RESTful Architecture and Practice Refinement Treasure

1. Introduction to concepts 1. REST concepts REST: (Representational State Transfer) Representational State Transfer, which defines a common access format for resources, is a style of design and development for network applications. Conceptually, you need to understand the following names: Resource s That is, anything you get on the server, a ...

Posted by cyronuts on Mon, 25 Nov 2019 22:57:48 +0100

[History of TypeScript Evolution--5] Compile async/await to ES3/ES5 (External Help Library)

Author: Marius SchulzTranslator: Front-end witSource: Marius Schulz Ali Yun has been doing activities recently, with a discount of as low as 2 percent. I really think it's a good deal. You can click on this item or link to participate.: https://promotion.aliyun.com/... Tencent Cloud is currently doing activities with 100 cloud products as low ...

Posted by kenslate on Mon, 25 Nov 2019 02:14:54 +0100

[Collection Series] - Deeply shallow analysis of HashMap

1. Summary In the first chapter of the collection series, we learned that the implementation classes of Map are HashMap, LinkedHashMap, TreeMap, IdentityHashMap, WeakHashMap, Hashtable, Properties, and so on. HashMap has always been a hot topic, and I promise you'll need it if you go out for an interview! This article mainly combines the diffe ...

Posted by r_honey on Mon, 18 Nov 2019 03:41:56 +0100

Shock!I unexpectedly found a problem with the JDK source

Thoughts on Source Reading Recently looking at the source of the thread pool under the concurrent package, I found a problem with the JDK source when I saw the ThreadPoolExecutor class.The following is the code snippet for the addWorker method of the ThreadPoolExecutor class: boolean workerStarted = false; boolean workerAdded = false; Worker w ...

Posted by cbrian on Wed, 13 Nov 2019 02:40:36 +0100

Why the sum sum of Specification in Jpa is not effective

In autumn, there is no sun in Beijing as always. It is not clear whether the sky is cloud or fog or what strange things are. Buildings are black and white to prove their own outlines. I can't see the edge in a foggy day, just like I need to use Spring Data Jpa to implement a very small SQL. I can't see the effect I want when I write it. The SQL ...

Posted by beselabios on Sat, 09 Nov 2019 12:03:44 +0100

Spring boot exception handling unified encapsulation

brief introduction I'll write the repetition function. In the spring boot project, there are global exception handling and return packaging. The return front end is to bring fields such as succ, code, msg and data. It's easy to solve in the case of a single project. When there are many micro service modules, in many cases, the development is to ...

Posted by neomhm on Sat, 02 Nov 2019 16:58:13 +0100