Java Code Skills to Improve Performance

Preface Program performance is directly affected by code quality. This time, I will introduce some tips and practices in coding. Although some seemingly insignificant programming skills can bring about multiple improvements in system performance, it is worth noting. Use caution exceptions In Java development, try-catch is often used for erro ...

Posted by shahab03 on Thu, 30 May 2019 19:56:13 +0200

Android Audio (10) - Implementation of Multi-App Simultaneous Recording

1. Writing Recording Program with c++. 1. PCM audio data is the original audio data, which can not be played by the player. It needs to be added a header to indicate how many channels the sound has, how many sampling rates are, and so on. takePCM audio data is converted to WAV format so that other players can play it. 2. Three parameters shou ...

Posted by mania on Wed, 29 May 2019 20:12:32 +0200

python crawler - Selenium library from scratch

What is the Selenium library? Automated testing tools, support a variety of browsers. Support browsers include IE (7, 8, 9, 10, 11), Mozilla Firefox, Safari, Google Chrome, Opera, etc. The crawler is mainly used to solve the problem of JavaScript rendering. Used to drive the browser and give the browser action. Install the Selenium library: ...

Posted by zippers24 on Wed, 29 May 2019 19:48:38 +0200

PHP Reflection Mechanism

PHP Reflection Mechanism PHP reflection mechanism is supported from PHP5, and it should be less exposed to reflection when doing business development. In fact, I do not have much contact with it. Recently, I have been learning about the "elegance" of laravel, and I have come into contact with its reflective usage. I have my own views ...

Posted by jason_kraft on Wed, 29 May 2019 13:44:14 +0200

2019-05-27 Java Learning Diary day17

Hashset set Store strings and traverse them import java.util.HashSet; public class dmo1_hashset { //set Collection, no index, no repetition, no order(Access inconsistency) public static void main(String[] args) { HashSet<String> hSet=new HashSet<>(); //Establish hashset object boolean b1=hSet ...

Posted by ruuyx on Mon, 27 May 2019 22:55:12 +0200

Common Manual Commands of [svc]linux - md Edition

Related code env configuration file /.bash_profile: User executes each login /.bashrc: Executed every time you enter a new Bash environment /.bash_logout: executed every time the user logs out Seymail Mail Configuration yum install sendmail -y cat >>/etc/mail.rc<<EOF set from=xxx@tt.com set smtp=smtp.exmail.qq.com se ...

Posted by php_jord on Mon, 27 May 2019 22:22:27 +0200

Process Dynamic Interception Injection API HOOK

Recently, I met a problem in my work. I need to judge the running state of the program through the program interface. At first, I thought it was very simple. It was not just a form control to get Button's status and Text. It happened that I did it last year. As the project delivery time approached, I was ready to start solving the problem. Sudd ...

Posted by ac1dsp3ctrum on Sat, 25 May 2019 23:55:16 +0200

2019-05-25 Java Learning Diary day15

aggregate Overview of object arrays, using import java.security.acl.Permission; import tan.jung.bean.Student; public class demo1_Array { public static void main(String[] args) { //int arr=new int[5]; //Create basic data type numbers Student [] arr=new Student[5]; //Create reference data type numbers ...

Posted by tc48 on Sat, 25 May 2019 21:50:36 +0200

Solving Ajax Cross-domain Problem-JSONP Principle Analysis

Solving Ajax Cross-domain Problem-JSONP Principle Analysis Why are there cross-domain problems? - Because there are homologous strategies Homology is a security policy for browsers. Homology refers to the protocol in the request URL address. Domain names and ports are the same, as long as one of them is different, it is cros ...

Posted by shimano55 on Sat, 25 May 2019 01:19:08 +0200

Java Collection Knowledge Points Overview and Code Interpretation

Collection (List And Set) 1. In practical development, it is necessary to store the objects used in specific data structure containers. JDK provides such a container-collection. 2.Collection is an interface whose sub-interfaces are List and Set 3. The difference between List and Set: List is an ordered repeatable set (which ca ...

Posted by a2bardeals on Sat, 18 May 2019 23:17:39 +0200