Sesame HTTP: setup of crawler Selenium+Chrome agent

Micro blog login limits the number of errors... In addition, a large number of Cookie accounts are blocked and need to be removed from the Cookie pool... Need to use a proxy... Rogue Baidu has been special for most of the day??? It turns out that Google can solve the problem in minutes? What else can baidu do besides sell fake medicine The Sele ...

Posted by Arbitus on Sat, 02 May 2020 01:10:23 -0700

Five ways to achieve CSS element horizontal center, practical and simple!

1. General method - fixed width element html part: <div class="container"> <div class="center"></div> </container> CSS part: /*public*/ body,div{ margin: 0; } .container{ background: beige; height: 1000px; } /*Centered*/ .center{ width:300px; height:300px; margin:auto; background: aqua; } Disadvantage of thi ...

Posted by Smasher on Fri, 01 May 2020 07:06:45 -0700

AAC trial packaging

The full name of aac is Android architecture components. Google recently released an official version and was immediately attracted by it. Isn't that the magic medicine to improve the traditional MVP? To add dependency, we will not repeat it. For many examples on the Internet, this article just encapsulates ViewModel and LiveData! 1. Creat ...

Posted by greepit on Sat, 25 Apr 2020 08:08:56 -0700

Java Foundation - Serializable Serialization Interface

Serializable serialization is a means of converting objects into a format that is easy to persist and transfer. It declares that the class is serializable by inheriting an object from the Serializable interface, and then stores and reads objects through ObjectOutputStream and ObjectInputStream stream s, which are briefly described in the commen ...

Posted by Vizor on Tue, 21 Apr 2020 10:16:42 -0700

Problems of brew installation in Mac os

It's finally done! HomeBrew homebrew is a good installation tool under OS X, similar to apt get under linux However, from last summer vacation, the installation of this software can not be installed, baidu several times can not.. Several more installations were attempted during.. Uninstall, re install several times, or not.. This is an e ...

Posted by kirk112 on Mon, 20 Apr 2020 09:49:43 -0700

Common application scenarios of front-end Promsie

This article will summarize the common application scenarios of Promise in our project development based on our own use of ES6 Promise. Of course, Promise may not be the only option, but as a qualified front-end developer, we need to understand it. Promsie.all Syntax: Promise.all (iterable) Parameter: an iterative object, such as Array. Re ...

Posted by akano on Sun, 19 Apr 2020 22:37:42 -0700

Interpretation of the working principle of Asp.Net Core EndPoint endpoint routing

1. Background When I was planning to write an article about Identityserver4, I found that I didn't know much about EndPoint-Endpoint Routing, so I temporarily gave up research and writing about IdentityServer4; that's why this article about EndPoint came out today. Turn on your computer and use the powerful Google and Baidu search engines to ...

Posted by edmore on Wed, 15 Apr 2020 20:08:09 -0700

About the input type="file" upload image, how to limit the resolution of the uploaded image

In the project, you need to limit the resolution of uploaded pictures and be compatible with all browsers (IE8 and above, Google, Firefox). After searching and thinking, we finally solve the bug, record it and hope to help others.HTML code: <input type="file" name="upload0" class="content" id="content" onChange="handleConFiles(this.files); ...

Posted by uatec on Wed, 15 Apr 2020 08:15:56 -0700

Don't copy code on the Internet! A piece of code looking for on the Internet suddenly exploded!

Meet a demand, to serve some of the requirements of the players to send props reward, reward the number of days according to offline calculation. This requirement is very simple to realize. It only needs to calculate the last offline time and the current time interval when the player is online, then calculate the type and quantity of props acco ...

Posted by calexa on Wed, 15 Apr 2020 00:15:32 -0700

@ Conditional and @ ConditionalXXX of spring boot

The most amazing feature of spring boot should be automatic configuration. Since the moment you introduced spring boot starter XX, spring boot has done a lot of work for us later. Let's talk about how the whole process is organized later. Today we'll take a look at @ Conditional, a key annotation in spring boot that determines whether a bean or ...

Posted by vcv on Tue, 14 Apr 2020 10:38:39 -0700