Latest Articles
SwiftUI State Management
Introduction:State management is a crucial aspect of building responsive user interfaces in SwiftUI. It allows us to track and handle changes in the application’s state while ensuring that views automatically update when the state changes. This article will introduce several commonly used state mana
...
More >>
LRU Cache
What is LRU Cache and How to Implement it1. What is LRU CacheLRU is the abbreviation of Least Recently Used, which means least recently used. It is a Cache replacement algorithm.
1.1 What is Cache?The Cache in the narrow sense refers to the fast RAM located between the CPU and the main memory. Usual
...
More >>
2024-01-29
Back End
/
LRU Cache
How to Quickly Create Interface Automation
How to Quickly Create Interface AutomationDuring the project development process, regression validation is always performed on the original functions to ensure that the original logic is normal, such as smoke testing, regression testing, and monitoring online business. When there is a lot of content
...
More >>
2024-01-19
QA
/
Interface Automation
How to Run Parallel Coroutines in Kotlin
OverviewWe can think about Kotlin coroutines as lightweight threads. They allow us to execute code concurrently and are less resource-consuming than threads. Using coroutines can improve the performance, responsiveness, and scalability of our applications.In this tutorial, we’ll explore different wa
...
More >>
2024-01-12
Kotlin
/
Lightweight Threads
Kubernetes Network
Kubernetes NetworkIn this article, we’ll give you an in-depth look at the networking and monitoring capabilities provided by Kubernetes to prepare you for rolling out your application into a production environment with open network services and good visibility.
Kubernetes networking featuresKubernet
...
More >>
2024-01-03
Kubernetes
/
Network
OPEN AI Learning
OPEN AIOfficial Site (Most Useful Tool)
https://openai.com/product#made-for-developersPricing
https://openai.com/pricingQuick Start
1234567891011Install$ pip install openaiAPI Keyimport osimport openai# Load your API key from an environment variable or secret management serviceopenai.api_key = os
...
More >>
Android YUV Frame Data Overlays Watermark
When we want to add a watermark to a video while recording it, there are two options:
A. The video frame data is converted to Bitmap, watermark is drawn on bitmap, and then the watermarked Bitmap is converted to frame dataThis scheme can achieve watermark addition, although the use of RenderScript i
...
More >>
MySQL Slow Query
What is SQL slow query?When we execute a sql, the database not only returns the execution result, but also returns the execution time of the sql. MySQL slow queries refer to queries whose execution time exceeds the threshold (the default value is 10 seconds). These slow queries will be recorded as s
...
More >>
2023-12-12
Back End
/
MySQL
Android Implements Screenshot Function
Background of the projectIn order to meet the needs of monitoring user screenshots and displaying the floating feedback portal, we conducted a simple survey on the user screenshot function on the Android side. Since the Android system does not provide APIs related to screen capture notifications, we
...
More >>
2023-12-04
Android
/
Screenshot
Android Activity Components
Android Activity Components
Introduction: One of the four major components of Android, the medium for interaction between App and users.
Activity Lifecycle
In general the movement through an activity’s lifecycle looks like this:1.onCreate()
Called when the activity is first created. This is where
...
More >>