Set System Environment Variables in macOS

Set System Environment Variables in macOS

一种可靠的 macOS 全局环境变量设置方法。介绍如何通过创建一个简单的启动代理(Launch Agent)和 Shell 脚本,实现真正意义上的系统级环境变量配置。
Read
学习HTTPS协议:加密、证书与TLS

学习HTTPS协议:加密、证书与TLS

本文旨在解释HTTPS如何保障网络通信安全。介绍了对称加密与非对称加密的基本概念、工作流程及其优缺点,并解释了两者结合的最佳实践。为了解决公钥分发和信任问题,文章进一步阐述了数字签名和数字证书(CA)机制
Read
理解响应式图片:从像素到DPR

理解响应式图片:从像素到DPR

🤖 本文介绍了像素概念及其在网页设计中的应用。首先区分了物理像素和CSS像素,解释了像素密度(PPI)和设备像素比(DPR)的概念,随后探讨了响应式图片的实现方法,包括图片的渲染尺寸与固有尺寸的关系,以及使用srcset属性根据设备DPR或视口宽度提供合适图片资源的技术
Read
IO Multiplexing
Making Web Fast —— LCP Optimization

Making Web Fast —— LCP Optimization

🤖 Learn to optimize LCP performance using preload、fetchpriority、responsive images and srcset attributes. Master Sharp image processing, CI/CD automation, and preload hints to dramatically improve Core Web Vitals scores.
Read
Clean Disk Space in Ubuntu

Clean Disk Space in Ubuntu

运行apt install报错You don't have enough free space in /var/cache/apt/archives/,本文记录解决方法
Read
Network IO Models
Keycloak UserInfo 端点403 Forbidden 错误解决

Keycloak UserInfo 端点403 Forbidden 错误解决

🤖 This post explains how to resolve a 403 Forbidden error from Keycloak's UserInfo endpoint. It details the necessity of the `openid` scope in Access Tokens for OpenID Connect authentication. Readers will learn to debug and fix this common issue by correctly requesting tokens with the required scope, ensuring successful user information retrieval.
Read
Linux File System Architecture Introduction

Linux File System Architecture Introduction

🤖 Explores Linux file system architecture built on Unix's "everything is a file" philosophy, covering VFS layer, popular file systems (ext2/3/4, XFS), and how files exist differently in disk vs kernel through superblocks, inodes, and file descriptors. Learn practical file descriptor usage with hands-on examples.
Read
Use Medium-Zoom in Hexo Blog

Use Medium-Zoom in Hexo Blog

在 Hexo Blog中,为了增强用户点击图片后的交互体验,我们可以使用medium-zoom这一轻量级库实现图片放大效果。本文记录如何在 Hexo 博客中成功集成 medium-zoom,并讨论使用 PJAX 以及非标准 CSS zoom 属性可能引发的问题及解决方法。
Read