Introduction and use of Android architecture component lifecycle aware

About Lifecycle Lifecycle architecture component is a life cycle management component, which can separate the life cycle of Activity or Fragment, so as to realize monitoring externally, which can make us release resources in time, avoid memory leakage and program crash. Why use Lifecycle? Lifecycle can help us manage the l ...

Added by adguru on Wed, 01 Apr 2020 20:31:51 +0300

openGL learning notes - hybrid

Discard clip: for the rendering of transparent objects, you can discard the clip: void main() { vec4 texColor = texture(texture1, TexCoords); if(texColor.a < 0.1) discard; FragColor = texColor; } Blend: although it's good to discard the clip directly, it can't render a translucent image. We ei ...

Added by point86 on Mon, 30 Mar 2020 18:27:09 +0300

Unity Shader - simple water body - shallow to deep water color control

Simple simulation of water effect (3A game effect, please bypass) Effect: Production steps Prepare the water grid (generated by the grid script, refer to: Unity Shader - Noise noise map - simple mountain) Disturbed water grid vertex (Reference: Unity Shader - use Noise noise Noise map to generate sim ...

Added by djrichwz on Sun, 15 Mar 2020 09:42:48 +0200

Example of front and back communication between Alice and Spring Boot

Case summary This article provides a project instance that uses aliice front-end framework (encapsulating React) to communicate with Spring Boot project. For specific project environment, please refer to: Alibaba ICE front end project creation process . This example does not introduce the creation ...

Added by Louis11 on Wed, 04 Mar 2020 08:24:55 +0200

linux file system related commands (df/du/fsck/dumpe2fs)

1, File system view command df format df [options] [mount point] option Name Effect -a Display all file system information, including special file systems, such as / proc,/sysfs -h Display capacity in customary units, such as KB,MB or GB -T Show file system types -m Display capacity in MB -k Display capacity in kilobytes. The def ...

Added by seventheyejosh on Fri, 28 Feb 2020 09:52:15 +0200

linux entry series 13 RAID and LVM technology of disk management

The previous article learned about disk partition, format, mount and other related knowledge. This article will explain RAID and LVM technology. Disk management operation is mainly used by operation and maintenance personnel. If it's just a developer, you can skip this article first. But in many small companies, it is often one person for multi ...

Added by excessnet on Mon, 24 Feb 2020 09:40:36 +0200

tensorflow tutorial begins - dataset: get to know tf.data quickly

Reference article: datasets: quick learn Datasets: quick learn tf.data Read memory data from the numpy array. Read the csv file line by line. Basic input Learning how to get array fragments is the easiest way to start learning tf.data. Premade Estimators def train_input_fn(features, labels, batch_ ...

Added by herando on Tue, 11 Feb 2020 10:51:25 +0200

Understanding Impala query profile step by step

In the third part of this series, I used an example to detail the Impala query profile.In this section, I will use an Impala Profile file from a real production system to explain the steps I take to read the Profile file when I encounter a problem and gradually find the real cause of the problem.If you missed the first three parts of my article ...

Added by ioop on Wed, 05 Feb 2020 18:25:54 +0200

Android Studio error message summary

Today, I met a simple error message prompt, which is recorded as follows for future search: Error message 1: 2020-02-02 13:27:48.472 20534-20534/com.example.helloworld1 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.helloworld1, PID: 20534 android.content.ActivityNotFoundException: ...

Added by pythian on Sun, 02 Feb 2020 20:34:20 +0200

Computer graphics & the configuration of OpenGL environment

(from the original author) Source , reprint please keep the information) Preface                       OpenGL As a graphics rendering engine, and using freeglut Create window, handle keyboard, mous ...

Added by env-justin on Sun, 02 Feb 2020 14:40:03 +0200