最新发布第9页
MAMP Pro 7.x + PhpStorm 调试 PHP 代码-Stewed Noodles 资源

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

MAMP Pro 创建站点 按照下图的指示创建一个新的站点 创建新站点 在弹出的窗口中,输入站点Name以及项目的Site folder。 填写站点信息 空站点创建完成之后,配置站点的基本信息,比如 PHP 版本、...
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...
布局(二) – 叶子视图-Stewed Noodles 资源

布局(二) – 叶子视图

叶子视图 这里是指没有子视图的视图。Text默认情况下,Text 视图会去适应任意的建议尺⼨,设法让⾃⼰适配 (不超过) 这个尺⼨。Text 使用的策略顺序如下:将⽂本分成多⾏ (英⽂内容按单词换⾏)单...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX2年前
0548
动画(一) - 属性动画-Stewed Noodles 资源

动画(一) – 属性动画

在 SwiftUI 中,修改状态是唯⼀能触发视图更新的⼿段。默认情况下,旧视图树与新视图树之间的更改不会进⾏动画处理。 对那些在视图树中已经存在,且在状态变化前后属性也相应改变的视图,属性动...
N-Gram 模型-Stewed Noodles 资源

N-Gram 模型

将文本分割成连续的 N 个词的组合(即 N-Gram),来近似描述词序列的联合概率。基于前 N-1 个词来预测序列的第 N个词。 以词为Gram(元素)的 N-Gram模型如下图所示,其中 Unigram 中 N 值为 1,...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX2年前
0540
PDF文件预览显示空白页面-Stewed Noodles 资源

PDF文件预览显示空白页面

问题 表单中添加了 PDF 附件,点击预览无法显示PDF文件内容。 表单示例 解决方案 系统中的 pdfjs 插件的版本太低,需要升级 pdfjs 插件。 1. 升级前请先备份 程序源码 以及 数据库 文件。2. 升...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX3个月前
0540
类型(三) – 数组-Stewed Noodles 资源

类型(三) – 数组

排序 只要数组存储的元素类型采用了 Comparable 协议,就可以使用 sorted() 和sort() 方法,前者返回一个已排序的数组,后者修改数组。 var names = ['Taylor', 'Timothy', 'Tyler', 'Thomas', ...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX2年前
0535
安装宝塔面板-Stewed Noodles 资源

安装宝塔面板

安装 安装宝塔面板的命令,如下所示 if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/instal...
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)...