Multithread Network in IOS (2) - Inter-thread Communication and Thread Safety
1. Inter-thread communication
In a process, threads often do not exist in isolation, and multiple threads need to communicate frequently.
1.1 Embodiment of Interthreaded Communication
(1) One thread transfers data to another thread;
(2) After a specific task is executed in one thread, it is transferred to another thread to continue ...
Posted by squizz on Sun, 07 Apr 2019 09:51:32 -0700
Fireworks produced by canvas
Recently, I feel that canvas is very interesting. In my spare time, I have studied it. I have consulted some ideas on the internet. I don't say much. I'm going to start.
github address: https://github.com/aWhiteBear/fireworks
Demonstration address: https://awhitebear.github.io/fireworks/
The effect of the picture is as follows: (FPS can be d ...
Posted by pcoder on Sun, 07 Apr 2019 07:06:31 -0700
Wechat Embedded Video 2 (Material from Tencent Sun Shangxiang Doomsday Machine Skin Promotion H5)
Combining the previous two analyses
Wechat Embedded Video 1 (Case Analysis)https://segmentfault.com/a/11...From AnimateCC to CreateJShttps://segmentfault.com/a/11...
This time it's a demo that createjs completes UI with inline video
Because we forgot the original address, we can only demo for ourselves to run a simple effect.
You need to simpl ...
Posted by I Am Chris on Sat, 06 Apr 2019 18:18:30 -0700
App Development Screen Adaptation
Support different screen sizes
Different screen sizes are supported by the following methods:
- Make sure that your layout is resized appropriately according to the screen
- Provide appropriate UI layout based on screen configuration
- Ensure that the right layout is applied to the right screen
- Provide bitmaps that can be scaled nor ...
Posted by scvinodkumar on Fri, 05 Apr 2019 23:45:31 -0700
Extracting Kernels from Android Devices
This article blog link: http://blog.csdn.net/qq1084283172/article/details/57074695
I. Mobile Equipment Environment
Model number: Nexus 5
OS Version: Android 4.4.4 KTU84P
Kernel Version: 3.4.0-gd59db4e
2. Android Kernel Extraction
adb shell
su
cd /dev/block/platform/msm_sdcc.1/by-name
ls -l boot
Boot is a system symbol soft link, / ...
Posted by ankhmor on Fri, 05 Apr 2019 17:15:30 -0700
Introduction to Thread Pool Use
Reasons for introducing thread pools
Usually when we need to use threads to accomplish a task, we create a thread, which is usually written as follows:
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
// TODO
}
});
thread.start();
This operation is direct and simple, of course, there is no mistake, b ...
Posted by pagod on Fri, 05 Apr 2019 14:51:30 -0700
Chapter 8 Notes on Line 2
I haven't updated my blog for a long time, but I've written it, but I haven't published it all the time. I hope I can get more comments from God.
Enriching Your Programs - Using Mobile Multimedia
Running the program on the mobile phone
First connect the phone to the computer through the data line. Then go to the Settings -> Developer O ...
Posted by fnairb on Thu, 04 Apr 2019 15:57:31 -0700
Oracle Composite Types: Nested Tables, Variable Arrays and Index Tables
1. Using nested tables and variable arrays in pl/sql
1. Using nested tables in pl/sql
Nested tables are used in PL/SQL, where they are equivalent to arrays in other languages.
(1) Examples:
set SERVEROUTPUT ON
DECLARE
--The following sentence is nested table declaration
TYPE ename_array_type is table of emp.ename%TYPE ;
--Define ...
Posted by Fahid on Thu, 04 Apr 2019 10:33:31 -0700
Detection of Xposed Framework
Reference article: http://d3adend.org/blog/?p=589
Xposed and Cydia Substrate are two commonly used hook frameworks. Xposed can hook the java layer, CydiaSubstrate can hook the java layer and the native layer. How do we detect that the current mobile phone has installed the corresponding framework and determine whether the current process is h ...
Posted by Aethaellyn on Wed, 03 Apr 2019 17:48:29 -0700
Introduction to RxJava
When I encounter new knowledge, I usually learn quickly from three aspects (what-why-why-why-why, what problems it solves and how-how-how). Then I will analyze from these three aspects.
1.what?
What exactly is RxJava? Let's skip the official obscure pursuit of precise definitions. In fact, RxJava beginners only need to grasp two poin ...
Posted by bokehman on Wed, 03 Apr 2019 13:30:30 -0700