Android common memory leaks

Memory leak: In Android program development, if an object is no longer needed to be used and should be recycled, but another object is still holding a reference to the object, which will cause it to fail to be recycled by GC. There will be a memory leak. One of the main reasons for OOM issues in Android programs when memory leaks. So when we wr ...

Posted by cityguru on Wed, 07 Sep 2022 12:08:39 +0300

SPark study notes: 14 Window operations of Spark Stream

window overview of Spark Dstream Spark DStream provides Window operations, and we can use Window operators to perform a series of operator operations on the data. Unlike Flink, the window operations provided by Spark DStream are relatively simple. Operations can only be performed based on the processing time of the data. Spark's wind ...

Posted by zrosen88 on Wed, 07 Sep 2022 08:42:23 +0300

Analysis of LinkedList source code of List sub-interface of java collection framework

LinkedList LinkendList is a two-way linked list and implements the Deque ue interface, which can be used as a queue. Although LinkendList is a linear structure, the data is not stored as a linear interface, but as data and address of the next node in each node, Cloneable interface, copy support, and java.io.Serializable support serialization a ...

Posted by bugcoder on Tue, 06 Sep 2022 20:59:47 +0300

FPGA reading DHT11 digital temperature and humidity sensor

Recently, I was doing something related to DHT11 and wrote a DHT11 control module. After referring to the documentation of on-time atoms and wildfire electrons, I always felt that it was messy and complicated, so I wrote it along with the data manual. Of course, I am also grateful for the help of on-time atoms and wildfire documents. DHT11 is ...

Posted by jjjamie on Mon, 05 Sep 2022 21:56:29 +0300

Java Web Basics - HTML and css

catalogue Edit HTML basic tag Entity symbol form Cell merge, th label Background color and picture picture Hyperlinks list Forms (relatively important to Java programmers User registration form and drop-down list file control and hidden control readonly and disable maxlength attribute id attribute div and span editing Three way ...

Posted by karq on Mon, 05 Sep 2022 21:22:32 +0300

Pytorch Essay (Introduction to the Speed ​​of Light)

This article is only for novices like me, please detour! When I was flipping through my notes, I found this blog post: Aha~ Take a day to quickly get started with Pytorch (probably the most complete process in the entire network from 0 to deployment) But I found that there is a part about the gradient that is not clear, because I disagree ...

Posted by paulspoon on Mon, 05 Sep 2022 20:59:18 +0300

Let you quickly understand the factory pattern

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right foreword ` The factory pattern is divided into simple factory (not included in the 23 design patterns), factory method, and abstract method; here I will summarize and explain t ...

Posted by brad.techguy on Mon, 05 Sep 2022 04:46:57 +0300

ReentrantLock lock related methods

catalogue Implementation class of Lock interface ReentrantLock method ReentrantLockTest test Thread for testing t1 test Release the reentry lock correctly Get the current number of reentries t1t2 test Use the islocked() method to detect the lock state t1t3 test Use the trylock method to attempt to acquire a lock U ...

Posted by wxflint on Sun, 04 Sep 2022 22:34:19 +0300

J015 intersection traffic light based on AT89C51 (emergency + night)

Intersection traffic light emergency + night based on AT89C51 Simulation diagram proteus 7.8 Program compiler: keil 4/keil 5 Programming language: C No.: J015 Functional requirements 1) There are red, yellow and green signal lights in the east-west direction and the north-south direction; 2) Equipped with emergency braking button. Wh ...

Posted by bigmichael on Sun, 04 Sep 2022 22:29:40 +0300

[Java]Basic knowledge of interview

#[Java]Basic knowledge of interview review it yourself foreword Looking for a job recently, discipline the basics of Java 1. Basic data types 1. Difference and conversion between int and Interger the difference 1. Integer is a wrapper class for int, which is a basic data type of java 2. Integer variables must be instantiated ...

Posted by tengkie on Sun, 04 Sep 2022 12:38:21 +0300