最新发布第9页
Linux 安装 Dify-Stewed Noodles 资源

Linux 安装 Dify

在线安装安装 docker在终端执行如下命令bash <(curl -sSL https://linuxmirrors.cn/docker.sh) 选择 安装最新版本的 Docker Engine选择使用的 Docker CE 源选择 Docker Register 源是否关闭...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri2年前
0361
Docker 基础 - 镜像-Stewed Noodles 资源

Docker 基础 – 镜像

镜像的获取 镜像的获取 镜像的获取大致有三种方式: Registry 中拉取 Dockerfile 构建 文件导入 镜像基本操作 查看镜像 $ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE postgres 15-al...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri2年前
0360
类型(二) – 枚举-Stewed Noodles 资源

类型(二) – 枚举

enum Color { case unknown case blue case green case pink case purple case red } 枚举的基本使用 struct Toy { let name: String let color: Color } let barbie = Toy(name: 'Barbie', col...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri2年前
0357
类型(三) – 数组-Stewed Noodles 资源

类型(三) – 数组

排序 只要数组存储的元素类型采用了 Comparable 协议,就可以使用 sorted() 和sort() 方法,前者返回一个已排序的数组,后者修改数组。 var names = ['Taylor', 'Timothy', 'Tyler', 'Thomas', ...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri2年前
0355
MAMP Pro 7.x + PhpStorm 调试 PHP 代码-Stewed Noodles 资源

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

MAMP Pro 创建站点 按照下图的指示创建一个新的站点 创建新站点 在弹出的窗口中,输入站点Name以及项目的Site folder。 填写站点信息 空站点创建完成之后,配置站点的基本信息,比如 PHP 版本、...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri2年前
0350
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)...
Understanding how priority escalation works 了解优先级提升的工作原理-Stewed Noodles 资源

Understanding how priority escalation works 了解优先级提升的工作原理

Every task can be created with a specific priority level, or it can inherit a priority from somewhere else. But in two specific circumstances, Swift will raise the priori...
How to download JSON from the internet and decode it into any Codable type 如何从 Internet 下载 JSON 并将其解码为任何 Codable 类型-Stewed Noodles 资源

How to download JSON from the internet and decode it into any Codable type 如何从 Internet 下载 JSON 并将其解码为任何 Codable 类型

Fetching JSON from the network and using Codable to convert it into native Swift objects is probably the most common task for any Swift developer, usually followed by dis...
Activity 参数传递-Stewed Noodles 资源

Activity 参数传递

Activity 之间数据可以通过 Intent 进行传递。 MainActivity 进行数据传输。 // 创建Intent,进行数据传输 Intent intent = new Intent(getApplicationContext(), SecondActivity.class); // In...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri3个月前
0340
如何在 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 资源烩之面大会员jiulinxiri8个月前
0330