Queue-based Scheduler Implementation

In software development, the following situations are often encountered; some tasks are processed in the interrupt, and subsequent time-consuming operations need to be transferred to execute outside the interrupt, otherwise the interrupt cannot respond to the subsequent tasks in a timely manner; some tasks are processed in the callback function ...

Posted by ozone1 on Tue, 26 Nov 2019 19:49:39 -0800

addEventListener custom event in JavaScript

addEventListener custom event in JavaScript In js events, we first think of the common events such as click, dblclick, mouseover, mouseout, mouseenter, mouseleave, mousedown, mouseup, mousemove, wheel, context menu (when we click the right mouse button). Sometimes these predefined events can not meet our needs when we provide sdk for the third ...

Posted by jack5100nv on Sun, 24 Nov 2019 07:56:54 -0800

Microsoft Dynamics CRM bulk upload web resources (Unofficial WebResourceUtility) and replace entity icons

Background: Before last year, we could upload web resources in batches according to the directory WebResourceUtility. Yesterday, we found that it was useless. It was not very convenient to get the source code of WebResourceUtility and change it. I felt that the official code was too redundant and too long, which was not in line with my simple ...

Posted by thefury on Sun, 24 Nov 2019 06:17:38 -0800

Spring boot introduces external jar s and packages the project through maven, unable to start

Road to crater Preface Introducing jar Preface First of all, you must print the error log in your project (I use log4j), so that you can see what causes the startup error. Introducing jar How to import local jar package 1. Create a new lib folder under resources and put the jar package file in this directory 2. In the ...

Posted by pumaf1 on Thu, 21 Nov 2019 11:14:30 -0800

SecurityException: Unable to start service Intent

If you encounter the following error:java.lang.SecurityException: Unable to start service Intent { flg=0x20 cmp=com.ucar.app/cn.jpush.android.service.DaemonService }: Unable to launch app com.ucar.app/10101 for service Intent { cmp=com.ucar.app/cn.jpush.android.service.DaemonService }: user 0 is restrictedat android.app.ContextImpl.startServic ...

Posted by TimR on Tue, 19 Nov 2019 12:45:50 -0800

Applet deployment

First of all, wechat users need to log in automatically to check the session. If the session expires, log in again wx.checkSession({ success: function (res) { }, fail: function (res) { console.log("Need to sign in again"); wx.login({ success(res) { if (res.code) { ...

Posted by longhorn14 on Mon, 18 Nov 2019 08:38:32 -0800

ThinkPHP5.0+APP+ Alipay payment server development

Working environment, Alipay account is company, app application and secret key configuration are my own application, and the process is temporarily skipped. I. preparations appid, application private key, application public key, Alipay public key II. Configuration file 'alipay'=>[ 'appId' => '20180 ...

Posted by penguin_powered on Thu, 14 Nov 2019 12:02:56 -0800

The method of modifying the length of article title by Zhimeng dedecms

The length of the default dedecms article title is 60 characters, but now the 20 Chinese characters of the article title are far from enough to meet the needs, so what we have to do is to modify the default word limit of the system. The method is as follows:1. Modify the "system - > basic system parameters - > other options - > A ...

Posted by sambo80 on Thu, 14 Nov 2019 06:22:02 -0800

Wechat applet + php authorized login, complete code

First map          Implementation process: 1. The authorized login button and the body information are placed on the same page. The login button is displayed when the user is not authorized, the login button is hidden when the user is authorized, and the body information is displayed. Of course, the authorization and the body can be separat ...

Posted by Dixen on Tue, 12 Nov 2019 23:52:35 -0800

[Android] Macbook Pro 10.14 (MacOS mobile) compiling Android 9.0 (aosp master) process record

Remember the process of compiling Android source code Experimental environment MacOS Mojave 10.14; RAM 16G SSD hard disk 960G Access to google's Network Environment Step 1: prepare the environment Please refer to the official website: https://source.android.com/setup/build/initializing Prepare disk Disk image mode (25 ...

Posted by saurabhdutta on Tue, 12 Nov 2019 08:48:13 -0800