Read dubbo registration information on zookeeper

dubbo has its own service monitoring server, incubator dubbo OPS development, and github can be downloaded. There are also many local deployment examples on the Internet, so I wondered if I could monitor dubbo's service by myself, so I wrote the following code. In particular, zookeeper's watch mechanism is a one-time trigger. When it is heard t ...

Posted by don_s on Tue, 03 Dec 2019 09:03:03 +0100

14 star shifts of Nginx - (GeoIP)

What is GeoIP GeoIP refers to the location information such as longitude and latitude, national map, or province (state) by accessing IP. We can use this function to restrict access to a certain country or a certain region, or to realize customized personalized functions. How to enable GeoIP # Libmaxminddb (because you need to read the IP datab ...

Posted by Stingus on Tue, 03 Dec 2019 05:17:52 +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

asyncio+aiohttp+aiomysql asynchronously stored in the database

python chain home asynchronous IO crawler, using asyncio, aiohttp and aiomysql Many small partners will learn about crawlers when they start to learn python. When they start to learn python, they will use requests and urlib synchronous libraries for single thread crawlers, which is slow. Later, they will use the scratch framework for crawlers, ...

Posted by designationlocutus on Mon, 02 Dec 2019 19:42:55 +0100

Copying clipboard s on the mobile side and processing for iOS

If there is such a demand: click a button, copy the text of a certain text to the clipboard for use, we need to use some methods.On the pc, we can copy text using document.execCommand('copy'); But not on the mobile side. The project I chose is clipboard, and the actual measurement effect is perfect. On the official website of clipboard https:/ ...

Posted by berrberr on Mon, 02 Dec 2019 17:09:10 +0100

Crowperjs practice and Chinese documents (self translation)

Crowperjs is a very powerful but simple image cutting tool. It can be configured very flexibly, supports the use of mobile phones, and supports modern browsers including IE9 and above. (the key is that it's easy to use and can be done in a few lines of code.) Practice effect chart As shown in the figure, the specified picture can be cropped. Yo ...

Posted by kingdm on Mon, 02 Dec 2019 14:04:27 +0100

C Base with your handwriting redis sds

Preface - Simple Dynamic Strings antirez built this project because it wanted to unify SDS code in Redis, Disque, Hiredis projects https://github.com/antirez/sds For more background information, you can read README.md. The sds project is a trade-off implementation of the C-string data structure in the real world, and the library itself is no ...

Posted by Joshua F on Mon, 02 Dec 2019 00:52:32 +0100

Blackboard class reptile pass - fifth pass

This is the fifth level of reptile in blackboard class image.png Same need to log in image.png On the basis of the above, although it is not as complicated as the fourth pass, the verification code link is added here, which is very hard. At that time, it took a lot of effort to install the relevant python package confi ...

Posted by chefmars on Sun, 01 Dec 2019 23:54:47 +0100

How does Javascript share variables with sass, less, and CSS?

Original blog address, this blog was first published in csdn, original Some time ago, I met the need of website skin changing. I thought it would be very simple. Just use Sass or Less to set variables. The result is the style set in js It has to be set up separately. It's troublesome. This article code gitHub address https://github.com/l-x-f/va ...

Posted by clay1 on Sat, 30 Nov 2019 06:58:56 +0100

Drag and drop sorting of AngularJS (ngDraggable.js)

ngDraggable.js is a relatively simple and practical angularJS drag plug-in. With some encapsulated custom instructions, it can quickly carry out some drag application development. First, some basic concepts are introduced; Ng drop: whether drag elements are allowed Ng drop success ($data, $event): drag the callback put in by the element; $ ...

Posted by DJ_CARO on Sat, 30 Nov 2019 06:15:46 +0100