Latest Articles

522 articles · Fresh posts aggregated from independent blogs across the directory.

梦的河流
HHelloFlask (李辉)HelloFlask (李辉)·Jul 5, 2025

梦的河流

家西边有一条小河。水源从山上来,经过幽深的地下,一路到这里,从一个废弃的水闸流出来。冬暖夏凉,清澈幽静。 对村 […]

greyli.comRead article
云服务器双网卡同时对外通信
袁袁与张袁与张·Jul 2, 2025

云服务器双网卡同时对外通信

需求:同一台ECS云服务器,2个公网IP同时对外服务;经常遇到的问题,废话不多说直接案例。环境说明:云主机: ECS(CentOS 7.9)网卡 1(主网卡):eth0,内网 IP 192.16...

ytyzhn.topRead article
王王明明的小站王明明的小站·Jun 28, 2025

linux环境下解决文本文件乱码问题

在中文环境下,有些文本文件以 gbk、gb2312 等编码保存,有些软件打开时会出现乱码的情况。 查看文件的编码 我们可以通过 file 命令查看文件的编码,确认是否需要转换文本的编码或使用指定格式打开文件。 1 file -i file.txt Vim中指定文件编码 在 Vim 中指定已打开文件的编码格式,可以使用 :e 命令,命令如下: 1 :e ++enc=gbk 在 Vim 打开文件之前指定编码,可以在 vim 命令后添加对应的参数指定编码,这里指定使用 GBK 编码打开文件,命令如下: 1 vim fi…

mingming.wangRead article
JJosh W. ComeauJosh W. Comeau·Jun 10, 2025

Partial Keyframes

CSS Keyframe animations are so much more powerful than most developers realize. In this tutorial, I’ll show you something that completely blew my mind, a technique that makes our keyframe animations so much more reusable and dynamic! 🤯

joshwcomeau.comRead article
JJosh W. ComeauJosh W. Comeau·May 12, 2025

The Height Enigma

One of the most perplexing and befuddling things in CSS for me, for many years, was the behaviour of percentage-based heights. Sometimes, seemingly at random, setting height: 100% would have no effect at all. When I finally figured out what was going on, it w…

joshwcomeau.comRead article
Iperf网络性能测试工具牛刀小试
袁袁与张袁与张·Apr 28, 2025

Iperf网络性能测试工具牛刀小试

1、简介Iperf是一款专业的开源网络性能测试工具,用于测量TCP/UDP带宽、延迟、抖动和丢包率等关键网络指标。它是网络管理员、系统工程师和开发人员诊断网络性能问题的利器。2、安装IperfW...

ytyzhn.topRead article
王王明明的小站王明明的小站·Apr 20, 2025

用于Golang项目的Makefile文件

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 .PHONY: todo analyse test coverage run build clean COVERAGE_DIR := ./coverage BUILD_DIR := ./build todo: @grep -r --include "*" --exclude="Makefile" --exclude-dir=".git" "TODO:" . || t…

mingming.wangRead article
JJosh W. ComeauJosh W. Comeau·Apr 14, 2025

The Post-Developer Era

When OpenAI released GPT-4 back in March 2023, they kickstarted the AI revolution. The consensus online was that front-end development jobs would be totally eliminated within a year or two.Well, it’s been more than two years since then, and I thought it was w…

joshwcomeau.comRead article
Rclone异网迁移600T对象存储数据
袁袁与张袁与张·Apr 9, 2025

Rclone异网迁移600T对象存储数据

需求:业务发展需求,从公有云(移动云)上把近600T数据(低频存储),迁移到线下私有对象存储(深信服厂商);迁移准备:迁移工具选择:考虑到费用问题,使用开源工具Rclone,在源端公有云上架设服...

ytyzhn.topRead article
雨雨浣潇湘雨浣潇湘·Apr 6, 2025

更优雅的让 AI 生成代码——从一个实战项目看提示词的一些心得

最近用 AI 实现了一个 Dota2 队长模式 BP 模拟器的前端项目。整个过程中,很明显能发现提示词的质量直接决定了生成代码的可用性,一个模糊的需求可能需要反复修改十几次,而一个精确的提示词往往能一次性生成 90% 可用的代码。结合这次实践,分享一些心得,抛砖引玉。 AI 生成代码的常见问题 在开始分享经验之前,先看看 AI 生成代码常见的几类问题: 1. 需求理解偏差 场景: “帮我实现一个倒计时功能” 问题: AI 可能实现一个简单的 setInterval 递减数字,但你实际需要的是: 倒计时归零后使用备…

thjiang.comRead article

Page 17 of 29 · 522 articles