Day 11 closure functions. Decorators

1. Closure function: Define a function inside the function, and the internal function refers to the variable of the external function def outer(x,y): def my_max(): if x > y: # Referenced outer Parameters,Quite like a reference outer The variable of is a closure function return x return y return ...

Posted by toyartist on Thu, 11 Jul 2019 18:48:39 +0200

One Linux command per day (38):ps

ps is the abbreviation of Process Status, which lists snapshots of processes running in the current system. The use of ps can determine which processes are running, the state of the process running, whether the process is over, whether the process is dead, which processes occupy too much resources, and so on. ps provides a one-time process vi ...

Posted by FinalMjolnir on Wed, 10 Jul 2019 00:11:13 +0200

Interprocess Communication -- Pipeline, Message Queue

We learn advanced process communication, which means that users can efficiently transmit large amounts of data using a set of communication commands provided by the operating system. Several main means of interprocess communication: pipeline, message queue, shared memory, socket The Conduit Pipeline, a shared file used to connect a read p ...

Posted by MarkR on Tue, 09 Jul 2019 01:58:52 +0200

Learning Summary of Android Plug-ins (Continuous Updates)

Android Plug-in Learning Android Plug-in Benefits Implementing Hot Update Operation Business Hot Plug-in Increasing Start-up Speed Basic Realization Using a host APK, i.e. shell program, dynamic loading function and plug-in package call are implemented to realize dynamic update function. Opening chapter For this block of content learnin ...

Posted by aissa on Sun, 07 Jul 2019 23:59:08 +0200

Creating an efficient front-end working environment-tmuxinator

Preface _Although tmux makes it easy for us to organize our working environment, every time we reopen a session we need to manually re-create windows, panes and execute various programs. Can we save windows, panes and program information in project units like VS?tmuxinator is just the answer to our need! Installation and Configuration _Install ...

Posted by dsoftnet on Wed, 03 Jul 2019 18:42:24 +0200

User and Group Management

User and Group ManagementEach user has a UID, the administrator root is 0, and the average user is 1-65535.System users: 1-499 (centos6), 1-999 (centos7)Login users: 500 + (centos6), 1000 + (centos7) / etc/passwd User and Its Attribute Information/ etc/group and its attribute information/ etc/shadow User Password and Related Properties/ et ...

Posted by rdimaggio on Tue, 25 Jun 2019 20:27:08 +0200

Four startup modes for Android Activity

Recently, several friends have left me a message to talk about my understanding of the Activity startup mode.I think the understanding of a certain point of knowledge must be handled in order to be impressed, so I wrote a blog post today to understand the Activity startup mode with a case.Because a blog post (with a link at the end of the art ...

Posted by dai.hop on Fri, 21 Jun 2019 22:08:26 +0200

Android Process Survival Series: (1) Use Activity to Promote Privileges

http://www.jianshu.com/p/4ff700faab78 The secret of QQ's long-term survival was to monitor the user's unlock screen operation, activate a transparent window of a pixel when the screen was locked, and destroy the Activity when it was unlocked. I have to admire the programmed ape of goose factory. He can come up with such a wonderful plan! Reg ...

Posted by Tuck on Tue, 18 Jun 2019 00:30:02 +0200

Linux - Some Skills for Writing Shell

1. Add comments to scripts Annotations in scripts can help you or others understand what different parts of the script do when they look through your script. Annotations are defined with #. 2. Exit the script when it fails to run Sometimes even if some commands fail, bash may continue to execute the script, affecting the rest of the scrip ...

Posted by ryanb on Mon, 17 Jun 2019 02:12:21 +0200

Power optimization of Android performance optimization series

The calculation and statistics of power consumption is a troublesome and contradictory thing. Recording power consumption itself is also a matter of power consumption. With the increasing performance requirements of Android, the optimization of power consumption is particularly important. For a power-consuming application, users will undoubted ...

Posted by TNIDBMNG on Sun, 16 Jun 2019 01:32:52 +0200