Windows: principles of window development

Window development principle 1: Some concepts API: Application Programming Interface, just like the library function of C language, there are packaged functions and interfaces in windows for operating windows applications and operating systems, namely Windows API. The header file is: windows. H (t ...

Posted by dzekic on Sat, 08 Feb 2020 07:26:20 -0800

The third day of learning Vue.js -- dynamic binding style and calculation properties

The third day of learning Vue.js -- dynamic binding style and calculation properties Today is the Lantern Festival. First of all, I wish everyone a happy Lantern Festival. I also wish the medical staff on the front line a happy festival. I hope the epidemic will pass soon. Come on Following the dynami ...

Posted by eelmitchell on Sat, 08 Feb 2020 03:54:08 -0800

Understanding the inheritance of Java's three features

Understanding the inheritance of Java's three features Review previous blog examples( Understanding the encapsulation of Java's three features): public class Husband { private String name; private String sex; private int age; private Wife wife; /*Omit getter(), setter()*/ } public c ...

Posted by ozman26 on Sat, 08 Feb 2020 00:34:29 -0800

Multithreaded Concurrent Programming for C++11

Multithreaded concurrent programming for C++11 (2) The epidemic has reached 3w+, and we hope to end it soon. Based on the threading concepts learned in the previous section, I started to learn more about multi-threaded programming in the new standard of C++11. C++11 introduced five header files: atomi ...

Posted by dt_gry on Fri, 07 Feb 2020 22:36:05 -0800

[Python] 25 useful Python snippets to help you with your daily work

Introduction Python is a general advanced programming language.There are many things you can do with it, such as developing desktop GUI applications, Web sites, Web applications, and so on. Python also allows developers to focus on the core functionality of the application by handling common programm ...

Posted by Goafer on Fri, 07 Feb 2020 22:20:58 -0800

# Essential C++ Reading Notes #Chapter IV Object-based Programming Style

Fundamentals The definition of a Class consists of two parts: the declaration of the class and the body immediately following the declaration.The main part is enclosed by a pair of braces and ends with a semicolon.Two keywords within the principal, public and private, are used to denote "member access" for each block.Public member s c ...

Posted by Neoraven456 on Fri, 07 Feb 2020 19:44:53 -0800

Download files in Python

Prerequisite The requests module needs to be installed in advance: pip install requests Put it in code. import requests url = 'XXX' #File download source URL filename = '' #New file name after downloading to local r = requests.get(url) with open(filename, "wb") as code: code.write(r.content) combat exercise with ammunition From target URL ...

Posted by realnsleo on Fri, 07 Feb 2020 08:06:43 -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

kubernetes User-State TCP Proxy Implementation

Access to service s in k8s is usually based on kube proxy for load balancing. Today we will explore the core design of industrial implementation of user-based TCP proxy components, including the core implementation of random port generator, TCP stream replication and other technologies. 1. Foundation Today we are mainly talking about user-state ...

Posted by daveyc on Thu, 06 Feb 2020 19:55:12 -0800

C_Linux programming_process getenv(), execlp(), WIFEXITED

/* char *getenv(const char *name) Searches for the environment string pointed to by name and returns the associated value to the string */ /* getppid() is used to get the parent process identifier of the current process. */ /* int execlp(const char * file,const char * arg,....); execlp() fin ...

Posted by the mysox1 on Thu, 06 Feb 2020 18:59:55 -0800