Solution to the problem of secondary trigger of angular paging plug-in tm.paging

Today, I encountered a front-end problem while learning the paging plug-in of angularjs. During the debugging of Google browser developer mode, I found that each click of paging refresh button would trigger two background requests, and ajax sent two requests to the background. This is a disgusting and uncomfortable thing for obsessive-compulsiv ...

Posted by 2705ap on Sat, 15 Feb 2020 09:50:49 -0800

Spring boot integrates WEB Development -- processing JSON return data

1. Use the default json to convert HttpessageConverter At present, JSON is the mainstream front and back end data transmission mode. In spring MVC, HttpMessageConverter is used to support the conversion of JSON, and the relevant configuration is further simplified in spring boot. pom.xml <dependency> <groupId>org.springframework.b ...

Posted by fazlionline on Sat, 15 Feb 2020 02:14:09 -0800

How to use Google's cloud computing resources (Google Colab) to train their own neural network and the application of model preservation and transplantation

The rise of deep learning has brought us new efforts and trial directions, and also brought higher requirements for the computing power of machines. GPU acceleration is the key to improve computing speed, but for most people, buying a good video card is too expensive. If you are not a local tyrant, i ...

Posted by blurredvision on Fri, 14 Feb 2020 05:35:54 -0800

Qualcomm MSM8937 dual DSI notes

Sketch The dual dsi function is supported on MSM8937. I tune it in MSM8937-android 6.0. The following is a brief introduction of its implementation ideas and key code fragments. There are two ways of dual screens supported by Qualcomm: one is to divide a picture equally on the left and right, and then ...

Posted by Doom87 on Fri, 14 Feb 2020 01:13:22 -0800

What's the difference between the various ways to get context?

Among the various Android codes I've seen: public class MyActivity extends Activity { public void method() { mContext = this; // since Activity extends Context mContext = getApplicationContext(); mContext = getBaseContext(); } } However, I couldn't find any suitable explanation for what was better and in ...

Posted by Barkord on Tue, 11 Feb 2020 05:01:24 -0800

Leave back to hell and enter the Promise Era

brief introduction In the JavaScript world, all code is executed by a single thread. As a result of this "defect", all network operations and browser events of JavaScript must be executed asynchronously, so the expected results are often different. Because of JS flexibility, callback callbac ...

Posted by goatboy on Tue, 11 Feb 2020 00:36:09 -0800

Python full stack Web security attack and Defense 1. Information collection

Article directory 1, Kali virtual machine installation 2, Domain name introduction 1. Domain name introduction 2. Domain name query method whois web interface query Query through whois command line 3.ICP filing 3, Collect subdomain information 1. Domain name and subdomain name 2. Sub domain name ...

Posted by leony on Mon, 10 Feb 2020 04:16:21 -0800

docker runs Gerrit (code review tool)

What is gerrit? Gerrit, a free, open source code review software, uses a web interface. gerrit background Gerrit, a free, open source code Code review software, using web interface. utilize Web browser , software programmers of the same team can review each other's modified program codes and decide whether they can submit, return or continu ...

Posted by richarro1234 on Fri, 07 Feb 2020 05:51:21 -0800

Functions in Js

Function currification The concept of corrilization: only a part of parameters is passed to the function to call it, and it returns a function to process the remaining parameters Take an example: var add = function(x) { return function(y) { return x + y; }; }; var increment = add(1); var addT ...

Posted by Kaboom on Thu, 06 Feb 2020 00:59:39 -0800

Java only needs 150 lines of code to develop blockchain

The purpose of this paper is to understand what blockchain is through Java practical development tutorial. We will develop a very basic blockchain by self-study in Java through practical learning, and on this basis, we can expand such as web framework applications. This basic Java blockchain also implements a simple workload proving system. ...

Posted by Ixplodestuff8 on Mon, 03 Feb 2020 04:52:35 -0800