Use hexo+coding to build a free personal blog

1. Detection of node and npm Check for node.js and npm first $ node -v //If so, the installation of node.js is successful! $ node -v v8.4.0 //If yes, the installation of npm is successful! $npm -v $ npm -v 5.3.0 2. install hexo Run the following command in git-bash to install hexo Install hexo Global $ npm install -g hexo-cli Create folders he ...

Posted by gabeanderson on Fri, 25 Jan 2019 00:57:15 -0800

Using selenium to crawl dynamically rendered pages

Explain For some websites, their pages are not loaded with HTML tags, but rendered with javascript. For such webpages, it is not feasible to parse only by regular expressions and XPath. For such web pages, we can analyze the ajax requests, analyze the ajax parameters to find its rules, and simulate the ajax requests by ourse ...

Posted by slug58 on Wed, 23 Jan 2019 06:18:13 -0800

Processing of es-sql ES Error Result window is too large

In the process of using Elastic search for search queries, I encountered the problem of Result window is too big. Here's a simple revenge: In [1]: import requests In [2]: requests.get('http://127.0.0.1:9200/cmdb-now/_search?page=1&size=10000000').json() Out[2]: { u'error': { u'failed_shards': [ { ...

Posted by greenberry on Tue, 22 Jan 2019 22:33:13 -0800

Android AsyncTask

Android AsyncTask Content partition Introduction to AsyncTask Simple use Analysis of Complex Parts and Source Codes Some pits Introduction to AsyncTask AsyncTask enables proper and easy use of the UI thread. This class allows you to perform background operations and publish results on the UI thread without having to man ...

Posted by etoast on Mon, 21 Jan 2019 13:12:12 -0800

settings Fast Search Logic Carding (Part I)

Beginning with Android 5.1, google has provided users with a very convenient search function. Users can easily search settings in settings or other configurations of settings for applications specified to inherit from Search Indexables Provider, which greatly improves the search efficiency. Based on Android 8.1, this paper com ...

Posted by bachx on Sun, 20 Jan 2019 09:03:12 -0800

AccountManager getAccount is acquired as null in Android O 8.0?

problem AccountManager accountManager = AccountManager.get(this); Account[] accounts = accountManager.getAccounts(); The above code works well before Android 8.0 (API 26) and can get account information. However, it is not available on the latest version 8.0, returning accounts as null. In addition, Why do I ge ...

Posted by adguru on Fri, 11 Jan 2019 23:33:10 -0800

RPC Framework Based on DotNet Core (I) Quick Start of DotBPE.RPC

0x00 introduction DotBPE. RPC is an RPC framework based on dotnet core. Its father, DotBPE, aims to achieve an out-of-the-box micro-service framework, but it is almost meaningful, only in the stage of conception and attempt. But anyway, RPC is the foundation of micro-service, let's talk about the implementation of RPC first. The default impleme ...

Posted by gofeddy on Fri, 11 Jan 2019 13:15:11 -0800

how to learn unit test mock framework

refer to http://www.strolling.cn/2017/01/how_to_learn_unit_test_mock_framework/ Every time we use various kinds of Mock framework for unit testing, we feel dizzy because we don't write enough. When we learn it, a new framework is popular. We think about why we can't always remember it and why we can't always say that we have mastered it. We t ...

Posted by neroag on Thu, 10 Jan 2019 22:06:10 -0800

The application of GMS packages such as Chrome Gmail has flipped.

Recently, a project testing department tested very carefully, including the application of the Google GMS package. They mentioned case, saying that Chrome applications occasionally flip back in the process of use, which was not too ambitious, because Chrome is an application in the Google GMS package, we have no source code, an ...

Posted by coder9 on Thu, 10 Jan 2019 19:48:10 -0800

Android Application Development - How to Solve handler's Warning: Handler Class Should be Static or Leaks Occur

Turn from android handler warning Handler Class Should be Static or Leaks Occur When updating the UI with Handler, I wrote as follows: public class SampleActivity extends Activity { private final Handler mLeakyHandler = new Handler() { @Override public void handleMessage(Message msg) { // TODO } ...

Posted by SCRUBBIE1 on Thu, 10 Jan 2019 15:18:10 -0800