Zero-base python brush leetcode -- 2. Add Two Numbers

Algorithms are very important, but you need to learn python every day, so you want to use python to brush the algorithmic problems of leetcode. Let's start the zero-base python brush leetcode tour with me. 2. Add Two Numbers image.png First, let's skip some of python's basics. If you're not a little white, please skip it directly. linke ...

Posted on Wed, 19 Dec 2018 01:33:04 -0800 by donald

17 - A Brief Analysis of Compoile Flow of Web Pack Source (1) - Entry Function run

The flow chart of this section is as follows: Now we formally enter the packaging process, starting with run: Compiler.prototype.run = (callback) => { const startTime = Date.now(); const onCompiled = (err, compilation) => { /**/ }; this.applyPluginsAsync("before-run", this, err => { if (err) return callback(err) ...

Posted on Tue, 18 Dec 2018 21:03:04 -0800 by SleepyP

2 - Analysis of the application CAITON module of express source code (2)-app.render

This module also omits a slightly more complex API, app.render. First, look at the definition of the official website:   app.render(view, [locals], callback) view is the corresponding file name, locals is a configuration object, and callback is the callback function of parsing. The global attributes involved are view: Default as a built-in mo ...

Posted on Tue, 18 Dec 2018 17:15:04 -0800 by FunkyELF

Differences in UI manipulation effects between Handler.Post(Runnable) and View.Post(Runnable) in Source Parsing Activity Lifecycle onResume

In general, there will be a need to get the size of Ui control in Activity startup or refresh data after the UI drawing is completed. We all know that after the UI drawing is completed, the timing is the best, and it will not block the main thread leading to the failure of Carton or UI control parameter acquisition. May ...

Posted on Tue, 18 Dec 2018 16:39:04 -0800 by billynastie

Java Foundation: java.util.concurrent.locks.Condition

Preface In the BlockingQueue queue, whenever we put and take elements, when the queue is full or empty, we block each other, and the blocker uses await() of the Condition interface; it is much the same as the await method and notify method that we usually use directly with Object. I will analyze the difference between the use of Condition and t ...

Posted on Tue, 18 Dec 2018 15:27:04 -0800 by mrblom

The four standard uses of @GeneratedValue are TABLE,SEQUENCE,IDENTITY,AUTO.

I. JPA General Policy Generator Hibernate entities are mapped by annotation. The annotation-based hibernate primary key is identified as @Id. Its generation rules are set by @GeneratedValue. Here @id and @GeneratedValue are standard uses of JPA. JPA provides four standard uses, as can be seen from the source code of @GeneratedValue. @Ta ...

Posted on Tue, 18 Dec 2018 13:54:04 -0800 by thinguy

Oracle Case 09 - ORA-12154: TNS: could not resolve the connection identifier specified

DG still handles a lot of problems, but this time encounter a more exotic thing, surface configuration, network is not a problem, but the synchronization of backup always has problems, after many adjustments of parameters, redeployment problems are still the same, and ultimately the mos problem was solved. Now the processing process is recorded ...

Posted on Tue, 18 Dec 2018 13:51:04 -0800 by StateGuy

Android Studio 3.0 Develops JNI Processes--native Method of Adding Your Classes to the Foundation of Android Original Programs

Create an Android program associated with C/C++ and create a process http://blog.csdn.net/cloverjf/article/details/78652245 The source program calls C++ code to change the text content of TextView. package fj.clover.testjni; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import andro ...

Posted on Tue, 18 Dec 2018 06:36:04 -0800 by bulldorc

Linux nginx+node+supervisor+mysql+redis environment deployment

Environmental deployment System Environment Centos 7.2 Architecture: nginx + node + supervisor + mysql + redis Add default environment configuration information yum -y install gcc gcc-c++ autoconf automake make yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel I. nginx deployment gcc installation Installing ng ...

Posted on Tue, 18 Dec 2018 02:27:04 -0800 by Magestic

No Transport Error Resolution Procedure for ajax Request in jquery in ie

First of all, the background is that the test students found that our web pages were not displayed correctly in ie9. In fact, all asynchronous interfaces were not executed. Then I started the forced investigation process. All of our asynchronous interfaces are generated using jQuery's ajax method, using version 1.11.0 of jquery. The first thing ...

Posted on Mon, 17 Dec 2018 18:03:04 -0800 by Christian B.