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


云服务器双网卡同时对外通信
需求:同一台ECS云服务器,2个公网IP同时对外服务;经常遇到的问题,废话不多说直接案例。环境说明:云主机: ECS(CentOS 7.9)网卡 1(主网卡):eth0,内网 IP 192.16...
linux环境下解决文本文件乱码问题
在中文环境下,有些文本文件以 gbk、gb2312 等编码保存,有些软件打开时会出现乱码的情况。 查看文件的编码 我们可以通过 file 命令查看文件的编码,确认是否需要转换文本的编码或使用指定格式打开文件。 1 file -i file.txt Vim中指定文件编码 在 Vim 中指定已打开文件的编码格式,可以使用 :e 命令,命令如下: 1 :e ++enc=gbk 在 Vim 打开文件之前指定编码,可以在 vim 命令后添加对应的参数指定编码,这里指定使用 GBK 编码打开文件,命令如下: 1 vim fi…

西雅图和微软 MVP 峰会游记
每一次的游记都拖到放弃。从 19 年第一次去台湾,到上次去日本,每次都想着记录一下,最后都不了了之。我想这一次 […]
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! 🤯
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…

Iperf网络性能测试工具牛刀小试
1、简介Iperf是一款专业的开源网络性能测试工具,用于测量TCP/UDP带宽、延迟、抖动和丢包率等关键网络指标。它是网络管理员、系统工程师和开发人员诊断网络性能问题的利器。2、安装IperfW...
Fixing OneDrive not expanding in Explorer sidebar on Windows 10 LTSC
I’ve recently re-installed Windows 10 LTSC for both of my computers, and after setting up OneDrive (from Office 365 suite), I noticed that the OneDrive folder in the Explorer sidebar was not expanding when clicked, showing a static gray arrow. This could be a…
用于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…
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…

Rclone异网迁移600T对象存储数据
需求:业务发展需求,从公有云(移动云)上把近600T数据(低频存储),迁移到线下私有对象存储(深信服厂商);迁移准备:迁移工具选择:考虑到费用问题,使用开源工具Rclone,在源端公有云上架设服...
更优雅的让 AI 生成代码——从一个实战项目看提示词的一些心得
最近用 AI 实现了一个 Dota2 队长模式 BP 模拟器的前端项目。整个过程中,很明显能发现提示词的质量直接决定了生成代码的可用性,一个模糊的需求可能需要反复修改十几次,而一个精确的提示词往往能一次性生成 90% 可用的代码。结合这次实践,分享一些心得,抛砖引玉。 AI 生成代码的常见问题 在开始分享经验之前,先看看 AI 生成代码常见的几类问题: 1. 需求理解偏差 场景: “帮我实现一个倒计时功能” 问题: AI 可能实现一个简单的 setInterval 递减数字,但你实际需要的是: 倒计时归零后使用备…
