cosine

余弦の博客

= WA 的一声就哭了 =

cos avatar

cos

FE / ACG / 手工 / 深色模式强迫症 / INFP / 兴趣广泛养两只猫的老宅女 / remote

Pinned Posts

post cover
Weekly

2026-03-15

2552 words

本期周刊聚焦前端工具链重大更新:Vite 8.0 采用 Rust 编写的 Rolldown 替代 esbuild,构建速度提升 10-30 倍;Astro 6.0 带来重构开发服务器与实时内容集合;尤雨溪官宣专为 Vite 打造的 Void 原生部署平台。文章精选涵盖 Popover API 实践、十亿行数据虚拟滚动技术、纯 CSS 里程表动画及 Sanitizer API 安全替代方案。CSS 新特性关注 border-shape 几何盒模型。个人动态分享了自制 AI Bot 的趣事与季度番剧推荐。

post cover
Life

2024-12-31

5075 words

本文作者以轻松幽默的笔触回顾了2024年的生活,强调这一年更注重生活体验与自我成长,减少了技术写作,转而专注于享受生活。文中通过详实的美食、旅行和生活用品分享,展现了其在工作与生活之间取得平衡,并表达了对自我、他人和世界的热爱,传递出温暖与治愈感。

Posts

post cover
Frontend

2026-01-23

2213 words

本文详细记录了将 Electron 桌面应用从直接下载 DMG 包迁移到通过 TestFlight 进行 beta 测试的完整流程,包括配置 GitHub Actions 实现自动化构建与上传。重点介绍了 macOS 应用在 App Store Connect 的发布流程,涉及证书(Mac App Distribution 和 Mac Installer Distribution)创建、配置 provisioning profile、生成 App Store Connect API Key 以及使用 xcrun altool 进行自动化上传的步骤,并提醒了常见坑点和注意事项,如 Bundle ID 一致性、证书下载限制等。

post cover
Tools

2026-01-12

5879 words

本文介绍了一种安全、透明且友好的交互式命令行工具,用于在fork开源项目后自动同步更新,避免手动操作带来的错误和配置丢失。工具通过Git命令链实现分支状态检查、远程管理、差异预览、合并操作及冲突检测,支持备份与恢复功能,并提供清晰的交互界面和预览模式,帮助用户在更新时安全决策。

post cover
Tools

2026-01-07

2434 words

文章介绍了在无GUI的堡垒机环境中,如何批量压缩大量历史图片以释放存储空间。作者对比了sharp-cli、ImageMagick和libvips工具,发现ImageMagick在处理大尺寸图片时易内存溢出,而libvips能高效处理超大图片(如100MB+全景图),最终采用ImageMagick与libvips结合的方式,通过mogrify命令实现批量压缩,并强调了备份和监控的重要性。

post cover
Tools

2026-01-03

2578 words

本文介绍了AntV团队推出的全新声明式可视化图表框架Infographic,支持通过简洁的语法在Markdown中生成多种类型的信息图表,如列表、流程、对比、层级和统计图表等。该工具提供丰富的内置模板、主题系统和在线编辑器,能大幅提升技术文档和博客内容的可视化表达效率和可读性。

post cover
Tools

2025-12-31

2588 words

本文介绍了 Worktrunk,一个简化 Git Worktree 操作的 CLI 工具,专为多任务并行开发(如同时运行多个 AI Agent)场景设计。通过用分支名直接管理工作区,自动创建路径并支持自动执行命令(如安装依赖、运行测试),Worktrunk 大幅提升了开发效率,减少了手动操作和记忆负担,同时提供丰富的功能如工作区查看、合并流程、交互式选择和可配置钩子等。

post cover
Tools

2025-12-29

3391 words

A complete usage guide for the astro-koharu blog, including quick start, configuration, article system, UI features, and more

post cover
Frontend

2025-12-25

3703 words

本文介绍了在博客中实现的可插拔圣诞主题效果模块,包含3D雪落(使用React Three Fiber与GLSL着色器)、悬挂圣诞灯(CSS动画)、头像圣诞帽(SVG)和圣诞配色(CSS变量)等功能。通过nanostores管理状态,实现效果的动态开关与本地持久化,并采用双层雪落与鼠标悬停的视差效果增强视觉深度,同时优化了圣诞灯的性能与动画节奏,整体兼顾了视觉表现与运行效率。

post cover
Frontend

2025-12-20

1687 words

本文介绍了一种轻量级的LQIP(低质量图像占位符)实现方案,通过在构建时使用Sharp库提取图像四个象限的主色调,生成仅18字符的紧凑CSS梯度字符串作为占位效果。该方案零运行时开销、数据量极小(每图仅18字符),适用于静态站点生成器如Astro和Next.js,并支持外部图片的CSS固色回退策略。

post cover
AI

2025-12-07

2603 words

作者分享了使用Claude Code的四个月体验,强调其在开发复杂Swift音频视频应用中的高效性与价值,尽管初期有账号被封的担忧,但实际使用中稳定可靠,且其辅助功能远超价格。通过自定义Skills和Plan模式,显著提升了前端设计、文档协作和项目规划效率,最终确认Claude Code是开发流程中不可或缺的工具。

post cover
Life

2025-09-04

927 words

文章强调前端开发并非静态不变,而是不断演进的“表达艺术”。尽管技术工具和框架频繁更迭,真正恒久不变的是核心设计原则,如状态管理、组件解耦、性能优化和用户体验一致性。前端的本质是兼具工程深度与创意表达,其真正价值在于通过细节交互和个性化设计传递温度与个性,体现了一种接近“表达”的独特魅力。

Featured Categories

笔记

Notes

Frontend AI 后端 CS基础 青训营笔记 数据结构 算法 Automating Electron App Submission to MAS (Mac App Store) with GitHub Actions Adding a Pluggable Christmas Effects Module to an Astro Blog Implementing LQIP (Low Quality Image Placeholders) in an Astro Blog My Claude Code Usage Notes 2 My Claude Code Usage Notes From Pixels to Particles: Designing and Implementing Image-to-Dynamic-Particle Conversion with p5.js Tailwind CSS v4.0 Upgrade and Astro 5.2 Project Migration Notes The Joy and Benefits of Optimizing JavaScript [Translation] NestJS Study: Excellent Project Analysis and Best Practices React Native Learning Notes - Creating a Project with Expo Floating UI Practical Guide - Dialog Sharing My Experience with Floating UI - Popover What Surprises Does Tailwind CSS v3.3 Bring? Introduction to Information Security Review 4: Chapter 8, 9, 10 Introduction to Information Security Review 3: Chapter 5, 6, 7 Introduction to Information Security Review 2: Chapter 4 Symmetric Cipher Technology Introduction to Information Security Review 1 (Chapter 1, 2, 3) Getting Started with Go (Part 3) Coding Standards and Performance Optimization | Youth Training Camp Getting Started with Go (Part 2) Engineering Practices | Youth Training Camp Getting Started with Go (Part 1) Environment Setup and Basic Syntax | Youth Camp Compiler Principles Lab 4: LR(1) Parsing Program Compiler Principles Lab 2: LL(1) Parsing Program Compiler Principles Lab 1: Lexical Analyzer Design Frontend Interview: Detailed Comparison of onclick vs addEventListener Deep Dive into JavaScript (Part 2): Classes in JavaScript Deep Dive into JavaScript (Part 1): Objects, Classes, and Object-Oriented Programming Redux Learning Journey (Part 1): Redux Three Principles, createStore Internals and Implementation Youth Camp | "Front-end Design Patterns in Practice" Notes Brief Notes on Learning React Youth Training Camp | "Mini Program Technology Complete Guide" Notes Youth Training Camp | "Introduction to Web Multimedia" Notes Youth Training Camp | "Mini Game Development" Notes Youth Training Camp | "Introduction to TypeScript" Notes ByteDance Youth Camp | "WebGL Basics" ByteDance Youth Camp | "Building a Webpack Knowledge System" ByteDance Youth Camp | "The Security Journey of Web Development" Youth Training Camp | "Node.js and Front-End Development in Practice" Youth Training Camp | "HTTP Practical Guide" ByteDance Youth Camp | "Front-End Animation Implementation" Youth Training Camp | "Reactive Systems and React" Youth Camp | "Essential Development and Debugging Knowledge for Front-end" Notes ByteDance Youth Camp | "Web Standards and Front-End Development" Youth Training Camp | "Learning JavaScript with Yueying" Notes Youth Camp | "CSS Layout" Advanced Java Review Notes (Please Don't Fail the Final!) Advanced Java Assignment: Reflection, Collection, Regex, Factory Pattern, and Observer Pattern Advanced Java Quiz 2 — Threads Software Engineering Final Quiz Computer Organization Review Summary (7): Peripheral Devices Computer Organization Review Summary (5): Central Processing Unit Computer Organization Review Summary (6): Bus Systems Computer Organization Review Summary (4): Instruction Systems Computer Organization Review Summary (3): Multi-Level Memory Systems Computer Organization Review Summary (2): Arithmetic Methods and Arithmetic Units Computer Organization Review Summary (1): Introduction to Computer Systems OS Lab: Simulation of Dynamic Partition Allocation OS Programming Lab: Creating Processes Python Web Scraping Study Notes (1): Scraping Simple Static Web Pages Template Class Encapsulation (2) -- Sequential Stack and Linked Stack Chained Forward Star Graph Storage & Hungarian Algorithm for Bipartite Matching: Template & Analysis (Reference) Template Class Encapsulation (1) -- Singly Linked List Bitmask DP — Templates & Analysis & Examples (Reference) Data Structure Study Notes <9> Hash Search Iterative Implementation of Merge Sort (Reference) Data Structure Study Notes <8> Sorting Game Theory — Templates & Analysis (Reference) Dynamic Programming Study Notes (1) Data Structure Study Notes <7> Graphs Data Structure Study Notes <6> Heaps, Huffman Trees, and Union-Find RMQ Problem — Segment Tree Data Structure Study Notes <5> Binary Search Trees and AVL Trees RMQ Problem — Sparse Table Algorithm Data Structure Study Notes <4> Binary Trees Data Structure Study Notes <3> Queues Data Structure Study Notes <2> Stacks First Encounter with Generalized Lists and Multilinked Lists

7 subcategories, 77 posts

© 2020 - 2026 cos @cosine
Powered by theme astro-koharu · Inspired by Shoka