Android media decoding MediaCodec MediaExtractor learning

AndroidMediaPlayer Player Player Player is provided to play media files, but MediaPlyer only packages MediaCodec and MediaExtractor under Android Media for easy use. But it’s best to understand An.Droid media file decoding, encoding and rendering process. Useandroid.mediaThe MediaCodec and MediaExtractor under the package implement a simple video decoding rendering. It has been used to: MediaCodec:Responsible for coding and decoding media files. Internal methods are native methods. MediaExtractor:Is responsible for finding the track from the file of the specified type of media file...

Hook function of Vue [route navigation guard, keep-alive, life cycle hook]

> some knowledge about hooks: Using keep-alive, beforeDestroy is not called.Component hooks before destruction) and destroyed (component destruction), because components are not destroyed and cached. This hook can be seen as an alternative to beforeDestroy, and if you cache a component, you can do something when the component is destroyed, you can put it in this hook. If you leave the route, it will trigger in turn. Inside the component, leave the current routing hook beforeRouteLeave => route front guard beforeEach =>Global post hook afterEach => deactivated leaveCache compone...

Shell script to find invalid URLs

#!/bin/bashif [ $# -ne 1 ];then      echo -e “$Usage: $0 URL\n”      exit 1;fi echo Broken links: mkdir /tmp/$$.lynxcd /tmp/$$.lynx # Visit web pages recursively and create lists of all hyperlinks in the website.lynx -traversal $1 > /dev/nullcount=0; #reject.datThe file contains all links.sort -u reject.dat > links.txt while read link;do  output=`curl -I $link -s | grep “HTTP/.*OK”`;      if [[ -z $output ]];      then          echo $link;          let count++      fidone < links.txt  [ $count -eq 0 ]  && ...

11.linux DNS server builds and installs Apache

dnsServer establishment 1.Install bind to build DNS server     yum install bind -y 2.Install and modify the configuration file: VIM /etc/named.conf   Modification:        listen-on port 53 { 192.168.1.145; }; Here IP is the server host IP.        #allow-query     { localhost; };   Specify DNS parsing:       vim /etc/named.conf Add new analytic domain         zone “simplexue.com” IN {       type master;                                      Main resolution: Master       file “simplexue.com.z...

[vlan-trunk and 802.1Q sub interface configuration]

          According to project requirements, a good topology map is as follows:           Configure SW1’s g1/0/3’s /trunk, add g1/0/1 and g1/0/2 to VLAN 10 and VLAN 20 respectively.               Configure SW1’s g1/0/3’s /trunk, add g1/0/1 and g1/0/2 to VLAN 10 and VLAN 20 respectively.                 Configuring the 802,1q sub interface of VLAN    

IDEA shortcut keys

This article will tell you about IDEA related shortcuts to location / handover / lookup. Learn to use these shortcuts, you can leave as many fingers on the keyboard as possible, to avoid fingers between the mouse and keyboard to switch back and forth, to improve development efficiency.     1、Enter / return method shortcut key     Ctrl+B   Enter where the cursor is defined or return where the method is used (instead of Ctrl + mouse click entry, it avoids finger switching between the keyboard and the mouse, a very useful shortcut key) Ctrl+Alt+B   Enter the place defined by a subcla...

Research on server anomalies caused by SElinux of Linux

Let’s start with the phenomenon today. A server started SELinux due to misoperation, resulting in the server can not login, all the original username passwords are invalid. After closing SElinux, it returned to normal. My curiosity now is how SElinux prevents the execution of passwd commands in single-user mode. SELiunxPrinciple: Through a module LSM (Linux Security Modules) plugged into the Linux kernel, a hook is added after the privilege management of the native linux. After the privilege check, the policy of SELinux is added through this hook.A little check. This mechanism, known as...