[C++] 63_C language exception handling

exception handling The concept of anomaly Exceptions may occur during the execution of a program The difference between Exception and Bug Exceptions are the predictable branch of execution when a program runs Bug is a bug in the program, an unexpected way to run Comparison of Exception and Bug abnormal Runtime divides by zero External ...

Posted by cx323 on Wed, 08 May 2019 17:57:03 +0200

pygame Learning Notes Add a Wizard: Tank Moving and Rotating

Content of this article Use of Elves Use of Rect Class Realize the movement and rotation of a tank Effect demonstration Add a static tank We already know how to create a game window, set up background pictures, and let the game program respond to keyboards and mice. Then we need to add an elf to the game. Elves are a co ...

Posted by darkfreaks on Wed, 08 May 2019 13:15:03 +0200

js review: prototype chain

Prototype chain The prototype chain is actually a mechanism of inheritance in JavaScript. Before we understand the prototype chain, we should first understand several concepts: this, ordinary object and function object, constructor, new. this This is a confusing concept for many people, but to understand the prototype chain we have to understan ...

Posted by billspeg on Wed, 08 May 2019 06:15:04 +0200

Creative Patterns: Factory Approach

Article firstCreative Patterns: Factory Approach brief introduction Name: Factory Method English name: Factory method Pattern Values: Expansion is my monopoly Personal introduction: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Methods lets a class defer instantiation to subclasses. ...

Posted by FFEMTcJ on Tue, 07 May 2019 18:45:04 +0200

Infinite Pole Classification (Recursive)

Infinite polar classification simply means that a class can be divided into several subclasses, and then one subclass can be divided into other subclasses indefinitely, as if windows could create a new folder, then create some folders in this folder, and some folders under the folder. So how does PHP achieve its infinite classif ...

Posted by igul222 on Tue, 07 May 2019 03:05:03 +0200

Clever positioning of ANR issues

It must be that children's shoes that have been developed with Android have met anr (Application Not Responding).The general practice is to go to/data/anr/trace.txt and fetch the corresponding file.Then, find the result you want from this huge stack of information.But it's crazy to get a bunch of arn stack information. How can I find my problem ...

Posted by jplock on Sun, 05 May 2019 23:00:02 +0200

SpringMVC Tutorial 2 [Processing Response Requests]

1. Basic operations 1. How to respond to requests Not responding | void+@ResponseBody comment | ModelAndView | via setViewName method | Specify Response Page Directly| Return value is of type String, Return result specifies jump address| Redirect|prefix the jump address with redirect:prefix is sufficient| Both variables are declared in the Http ...

Posted by redhair on Sun, 05 May 2019 18:32:04 +0200

Use server to train and test YOLOv3

Server usage Remote Connection Use XShell to establish SSH connection with server, configure username and password Environment Configuration Create your own python environment and clone the base environment directly for convenience conda create --name yzh-env --clone base Switch to your environment and install jupyter n ...

Posted by EricC on Sun, 05 May 2019 10:40:03 +0200

nginx solves session consistency

session viscosity Each request is allocated according to the hash result of accessing ip, so that each visitor can access a back-end server regularly, which can solve the session problem.   upstream backserver { ip_hash; server 192.168.0.14:88; server 192.168.0.15:80; } However, there is a single risk. If I have logged in at ...

Posted by ckjian on Sun, 05 May 2019 09:00:05 +0200

Principle Analysis of Distributed Message Communication ActiveMQ II

This chapter focuses on: 1. unconsumed Message source code analysis 2. PrefetchSize on the consumer side 3. Message confirmation process 4. Message Retransmitting Mechanism 5. ActiveMQ multi-node high performance scheme Message Consumption Flow Chart Acquisition process of unconsumed Messages data Let's see what's going on in Acti ...

Posted by techker on Sun, 05 May 2019 08:42:22 +0200