最新发布第9页
Docker 基础 - 镜像-Stewed Noodles 资源

Docker 基础 – 镜像

镜像的获取 镜像的获取 镜像的获取大致有三种方式: Registry 中拉取 Dockerfile 构建 文件导入 镜像基本操作 查看镜像 $ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE postgres 15-al...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri12个月前
0270
What is an asynchronous function?什么是异步函数?-Stewed Noodles 资源

What is an asynchronous function?什么是异步函数?

Although Swift functions are synchronous by default, we can make them asynchronous by adding one keyword: async. Inside asynchronous functions, we can call other asy...
How to use @MainActor to run code on the main queue 如何使用 @MainActor 在主队列上运行代码-Stewed Noodles 资源

How to use @MainActor to run code on the main queue 如何使用 @MainActor 在主队列上运行代码

@MainActor is a global actor that uses the main queue for executing its work. In practice, this means methods or types marked with @MainActor can (for the most part)...
MAMP Pro 7.x + PhpStorm 调试 PHP 代码-Stewed Noodles 资源

MAMP Pro 7.x + PhpStorm 调试 PHP 代码

MAMP Pro 创建站点 按照下图的指示创建一个新的站点 创建新站点 在弹出的窗口中,输入站点Name以及项目的Site folder。 填写站点信息 空站点创建完成之后,配置站点的基本信息,比如 PHP 版本、...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri11个月前
0260
如何使用 matchedGeometryEffect() 将一个视图的动画同步到另一个视图-Stewed Noodles 资源

如何使用 matchedGeometryEffect() 将一个视图的动画同步到另一个视图

如果你在视图层次结构的两个不同部分中有相同的视图,并且希望在这两者之间进行动画过渡——例如,从列表视图切换到放大的详细视图——那么你应该使用 SwiftUI 的 matchedGeometryEffect() 修饰...
如何在 SwiftUI 预览中使用 SwiftData-Stewed Noodles 资源

如何在 SwiftUI 预览中使用 SwiftData

基于模型扩展在模型的基础上进行扩展,这里以 movie 模型为例import Foundation import SwiftData @Model final class Movie { var title: String var year: Int @Relationship(deleteRule: .ca...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri4个月前
0260
How to create and use an actor in Swift 如何在 Swift 中创建和使用 actor-Stewed Noodles 资源

How to create and use an actor in Swift 如何在 Swift 中创建和使用 actor

Creating and using an actor in Swift takes two steps: create the type using actor rather than class or struct, then use await when accessing its ...
OpenCV 介绍及安装-Stewed Noodles 资源

OpenCV 介绍及安装

OpenCV 全称 Open Compute Vision(开源 计算机视觉 1)。 用途 OpenCV 用途 macOS 环境搭建 # 安装 python 可以指定不同版本 brew install python@3.9 # 安装相关依赖 # numpy 处理矩阵 # matp...
OpenCV 二值化原理-Stewed Noodles 资源

OpenCV 二值化原理

基本流程 通常使用的 JPG、PNG 文件,都是压缩后的格式。这些格式解码之后,可以还原为 RGB 文件。RGB 文件中的每一个像素点都是由 红、绿、蓝三种颜色构成。 RGB 将 RGB 文件中的红色、绿色以...
How to create and run a task 如何创建和运行任务-Stewed Noodles 资源

How to create and run a task 如何创建和运行任务

Swift’s Task struct lets us start running some work immediately, and optionally wait for the result to be returned. And it is optional: sometimes you don’t ca...