最新发布第18页
排序
模型上下文
ModelContext 是 SwiftData 中负责跟踪所有在内存中创建、修改和删除的对象的组件。它确保这些对象能够在稍后某个时刻保存到模型容器中。ModelContext 提供了一个便捷的方式来管理对象的状态,...
What calls the first async function? 什么调用第一个异步函数?
You can only call async functions from other async functions, because they might need to suspend themselves and everything that is waiting for them. This leads to a bit of a chicke...
What is actor reentrancy and how can it cause problems? 什么是 actor 重入性,它如何导致问题?
Actor-isolated functions are reentrant, which means it's possible for one piece of work to begin before a previous piece of work completes. This opens the possibility of subtle bug...
Release checklist 版本清单
Sure, all your tests pass, but how can you make sure your app functions properly? Most large projects have a solution called a release checklist, and here I want to share mine wit...
传统计算机视觉
基本处理流程 传统计算机视觉流程,如下图所示 传统计算机视觉流程 擅长 采集 图像 和 视频 对图像、视频进行预处理 灰度化、背景分离、去噪... 图像的旋转、缩放、裁剪⋯ 从图像、视频中提取特...
Plex 设置 HTTP 网络代理
文件的位置 /var/packages/PlexMediaServer/scripts/start-stop-status。 start-stop-status 文件 代码内容如下 # Set proxy export HTTP_PROXY='http://192.168.50.1:3333' export HTTPS_PROXY...
Android 组件
基本介绍 Android 有四种主要的组件。 Android 的四大组件 Activity 具有用户界面的单个屏幕。 用户交互的入口。 Services 在后台运行,用户执行无用户界面的长时间操作/任务。 Broadcast Recei...
Retrofit
Retrofit 是 Square 出品的一个 类型安全的 HTTP 客户端,用于 Android / Java / Kotlin 中进行网络请求。 基于 OkHttp 支持 协程(suspend) 支持 Gson / Moshi 解析 基本使用 1. 添加依赖 dep...
ROOM Database
Room Database 是 Android 官方提供的本地数据库框架,是 Jetpack 架构组件的一部分,用于在应用中以安全、简洁、高效的方式存储本地数据。它在 SQLite 之上提供了更高层的抽象,让开发者更容易...









