Android custom camera and preview deformation after customization

Today, I found that the preview interface will be deformed when I customize the camera on the handheld terminal First look for the problem: When I adjust the direction of the preview interface, I find that 90 ° rotation can change this problem, but the preview interface as a whole will also cross over. It will be difficul ...

Posted by mindspin311 on Mon, 06 Jan 2020 02:36:35 -0800

WebView dynamic injection JavaScript script

Demo address: https://gitee.com/chenyangqi/YouMeDai Background introduction stay Android interacts with JavaScript In this paper, we learned about the interaction between native and JS, but if we want to develop a good web page interaction with others, it is obvious that this web side does not define a jsBridge for us, which is a rogue who grab ...

Posted by fox_m on Sun, 05 Jan 2020 13:53:09 -0800

Nginx Core Configuration Details

1 Global Configuration user nginx nginx; # Users and groups that initiate the nginx worker process, defaulting to nobody worker_processes auto; # Number of nginx worker processes started, default 1 worker_cpu_affinity 0001 0010 0100 1000; #Binding Nginx_as a process to the specified CPU core, the default Nginx is not to bind to the process. Bi ...

Posted by soldbychris on Sun, 05 Jan 2020 05:47:49 -0800

Call wechat sdk interface to share page in wechat

Effect: Wechat interface address: Click to view wechat api Call code: I only wrote share to wechat, share to wechat circle of friends, and the background syntax is jsp <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script> wx.config({ debug: false, ...

Posted by jake8 on Sun, 05 Jan 2020 04:08:03 -0800

Wechat third party login redirect uuri parameter error

Wechat third party login First of all, the solution: wrong redirect uuri parameter Set the callback address in the open platform, for example, the address is www.niezhiliang.com. When generating the QR code, the callback can only write the address under the domain name You must add http or https to the callback address (yo ...

Posted by cnagra on Sat, 04 Jan 2020 23:01:04 -0800

IOS iframe height adapts to content

Problem: on iOS, a page is nested by iframe. An element displayed at the bottom of the page in the content page cannot be displayed. The position of this element is fixed. Reason: because the height of Safari's iframe under iOS will adapt to the content of the page, resulting in the height of iframe is too high (that is, the h ...

Posted by mrhalloran on Sat, 04 Jan 2020 18:37:17 -0800

android hot update (no framework)

I. Preface Recently, I saw the andix hot fix framework of Alibaba, but it seems that it can't support all devices. So, I need to manually implement Android hot fix once, and find out how to achieve it. Two, principle When Java's virtual machine JVM runs the code, it loads the. Class bytecode file, while Android's Dalvik/ART ...

Posted by baselineace on Sat, 04 Jan 2020 11:58:13 -0800

PHP+MYSQL transaction processing

For PHP + MYSQL transaction processing, first of all, transactions must be supported during database design, so when designing data tables, InnoDB is selected as the database engine. If the database engine selected does not support transactions, such as MyISAM, it can be locked through tables Here is a simple example of a tran ...

Posted by ceci on Sat, 04 Jan 2020 10:47:28 -0800

20180828 mobile assistant background wake-up and WiFi intensive wake-up in Doze mode

1. Wake up phenomenon of mobile assistant in the background com.qihoo.appstore and com.tencent.android mainly wake up in the background through JobScheduler and SyncManager events. Because most of the previous broadcast events, such as network static broadcast and application installation static broadcast, have been canceled b ...

Posted by lukegw on Sat, 04 Jan 2020 01:22:06 -0800

jquery imitation mobile Alipay keyboard

Recently, I met a demand when I was making a project, that is to click the payment button on the mobile terminal payment page to pop up a payment keyboard, similar to that of Alipay. Because the project is just a mobile website, not an app, this function has to be implemented by the front end. If you don't say much, first look at the effect abo ...

Posted by Arenium on Fri, 03 Jan 2020 14:37:20 -0800