Spencer WooSpencer's personal blog and websitehttps://spencerwoo.com/en Tue, 24 Feb 2026 09:29:45 -0000 Tue, 24 Feb 2026 09:29:45 -0000 1440 MkDocs RSS plugin - v1.17.1 None Spencer Woohttps://spencerwoo.com/ iMac M1 上的新 macOS 强调色(也不算新啦) <p><img alt="macOS Accent Colors" src="../images/macos-custom-accent-color/banner.png"></p><p>iMac M1 引入了多种机身配色,macOS 11.3.1+ 在系统中预留了对应的强调色选项,<strong>但默认隐藏。</strong>通过修改 macOS <code>defaults</code> 配置,可在任意 Mac 上启用这些强调色。</p><p>每次都需要去查一下具体配色的配置方法,今天这里简单记录一下。:smile:</p>https://spencerwoo.com/blog/macos-custom-accent-color/ Sat, 10 Jan 2026 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/macos-custom-accent-color/ Bag of Tricks for Claude Code:克劳德之踩坑记录 <p>年终这篇就用贯穿 2025 年的 Agentic Coding 工具收尾了 —— Claude Code 🦀</p><p><img alt="Claude Code Bag of Tricks Banner" src="../images/bag-of-tricks-for-claude-code/banner.png"></p><p>Claude Code 是 Anthropic 官方推出的命令行 AI 编程助手。在上下文理解涌现出重要价值的今天,Claude Code 让 AI 自主的进行编程实现逐渐成为可能。</p><p>不过,Anthropic 对 🇨🇳 地区的访问限制已是人尽皆知。在国内的互联网环境下,使用起来确实需要一些功夫来配置。本文总结了我这几天的实践经验,将配置第三方 API、切换其他 LLM 模型、设置代理和状态栏等方面的策略 dump 如下,希望对读者有所帮助。</p>https://spencerwoo.com/blog/bag-of-tricks-for-claude-code/ Tue, 30 Dec 2025 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/bag-of-tricks-for-claude-code/ Helpful matplotlib snippets 📈 <p><code>matplotlib</code> -- the de-facto library of plotting in Python.</p><p><code>seaborn</code> -- the golden tool for statistical data visualization. Also comes with <strong>nice style defaults</strong>.</p><p>I have found myself using both libraries frequently with some style preferences that I usually adopt when creating plots. For the sake of reproducibility and convenience, I have collected some of these snippets here.</p>https://spencerwoo.com/blog/matplotlib-snippets/ Tue, 09 Sep 2025 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/matplotlib-snippets/ Hooks in PyTorch 🪝 <p>To quote myself in a most recently yet-to-be-published paper:</p><blockquote><p>💪 The ability of deep neural networks (DNNs) come from extracting and interpreting features from the data provided.</p></blockquote><p>What we call, <em>deep features</em>, are the abstract, latent representations that are naturally derived from the training data fed into the DNN. They reflect a consistent activation or response of a layer/node within the model hierarchy to an input.</p><figure markdown> ![](../images/hooks-in-pytorch/feature-maps.png) <figcaption>The features from within a pretrained VGG-11 (top) and ResNet-18 (bottom) on layers of different depths visualized.</figcaption></figure>https://spencerwoo.com/blog/hooks-in-pytorch/ Mon, 30 Sep 2024 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/hooks-in-pytorch/ Spencer's Changelog for 2022 🥫 <p>It has been a while since my last update. And to be fair, 2022 was a very boring and event-less year for me. Strictlockdowns and quarantines in mainland China made it impossible to do anything and be anywhere. I spent maybe 6 to 8month of the 12 months in 2022 basically stuck at home. So, yeah, <strong>what a f*cked up year</strong>.</p>https://spencerwoo.com/blog/changelog-2023/ Sun, 08 Jan 2023 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/changelog-2023/ I got tired of open-source 🥲 <h2>Yep, that’s the title</h2><p>There’s no click-bait. Though I’m at home working remotely, meaning that I have a ton of time to spare, I - <em>at times</em> - <strong>feel extremely overwhelmed</strong> by the notifications on GitHub. I fear of opening up the notifications tab, and I cannot withstand reading all the issues and PRs that are just collecting dust.</p>https://spencerwoo.com/blog/tired-of-open-source/ Wed, 25 May 2022 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/tired-of-open-source/ Revisiting blogging with Notion in 2022 🛸 <p>Hey again. It has been a year since I last talked about <a href="https://spencerwoo.com/blog/nextjs-blog-notion">building a blog with Notion</a>. A lot has changed since my last update, both for me and for Notion. This article that you are reading, though, is still Notion-powered and Next.js rendered. However, I've changed quite a few things over this iteration of my blog update. Let's dive right in.</p>https://spencerwoo.com/blog/revisiting-blogging-with-notion-2022/ Sat, 08 Jan 2022 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/revisiting-blogging-with-notion-2022/ Last day of quarantine 💊 <p>!!! success "🛸 我免费啦" (^^ゞ 从 4 月 1 号开始的十天自我隔离终于结束啦!</p><p>不知道大家有没有发现,不过我确实 人在英国,刚下飞机。今天是我十天隔离的最后一天,明天我就正式可以出门耍咯。这毕竟是我第一次进入一个崭新的国家,所以来跟大家谈谈我这几天的感受。</p>https://spencerwoo.com/blog/last-day-of-quarantine/ Sun, 11 Apr 2021 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/last-day-of-quarantine/ Powering my blog with Notion 🎇 <p>!!! bug "🔥" An update in 2022: <strong><a href="./revisiting-blogging-with-notion-2022.md">Revisiting blogging with Notion in 2022</a>.</strong></p><p><img alt="" src="../images/nextjs-blog-notion/nextjs-blog-notion.png"></p><p>Yup, yup, yup! (Paimon noises 🥁) <strong>My blog, that you are currently reading, is now officially powered by the one and only — Notion!</strong> Not only is my site still <em>clean, uncluttered, and performative</em>, but I can now get rid of all the annoying stuff where I have to manually write and push Markdown in VS Code, upload my images to a CDN through some poorly managed script, and rebuild my blog each time I publish new content. Notion has that sweet sweet rich-content management experience, why not use Notion as my blog's CMS?</p>https://spencerwoo.com/blog/nextjs-blog-notion/ Thu, 25 Feb 2021 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/nextjs-blog-notion/ Recap 2020 ⚽ <p><img alt="Banner" src="../images/new-year-2021/new-year-2021.png"></p><p>Welcome 2021. 昨天(2020/1/1)我也才刚刚从北京回家的高铁上下来,现在我坐在刚搬来的新家里,用着陪伴了我快 3 年的机械键盘,写下这份迟到了一天的碎碎念。希望大家不要嫌弃。</p>https://spencerwoo.com/blog/new-year-2021/ Fri, 01 Jan 2021 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/new-year-2021/ 震惊!竟然有人在 GitHub 上冒充我的身份! 👨‍💻 <p><img alt="Banner" src="../images/wait-this-is-not-my-commit/wait-this-is-not-my-commit.png"></p><h2><strong>起因</strong></h2><p>这件事情还要从我校为毕业生收拾行李开始讲起。今年六月末北京疫情复发,这一波直接让我们北京高校毕业生无法返校,个人行李物品必须由学校老师代为整理快递回家。这件事情让同级的同学们非常不满,于是微博知乎节奏飞起。当然这件事情是北京统一的行为,其中不光有我校学生自己不满,其他北京的学校听说有些处理的比我校更要糟糕,所以这件事情我们暂且不做评价。但从事情开始,就有「好事」的同学除了在知乎等平台上进行回答评论、表达意见,还直接在 GitHub 上面直接整理记录时间线。</p>https://spencerwoo.com/blog/wait-this-is-not-my-commit/ Sun, 30 Aug 2020 00:00:00 +0000Spencer Woohttps://spencerwoo.com/blog/wait-this-is-not-my-commit/