Migrate From Bash to Zsh

The story of bash and my taste on command line I’ve been using bash as the development environment for a long time. The reason for choosing bash is its ubiquity. Most desktop & server Linux distributions and Docker images will ship with bash, which makes it a great fit for a configure-once-use-everywhere development environment. So you write it once and copy it to every host you’ll write code on. But since ~2014 my bash configuration has degraded several times, for two major reasons: ...

November 28, 2021

Hugo on Github Pages Returns 404

Although followed the official documentation and got it built correctly, the GitHub page still returns 404. After some investigation with Branches and Pages settings of my GitHub repository, I realize that built means a different thing for GitHub. Since the pages are built by Hugo, GitHub doesn’t build the page anymore (unlike the Jekyll I used before). So the source branch shouldn’t be master, but gh-pages, after switching Source to the correct branch, it works now. ...

November 22, 2021

Hugo Extended Mode on Github Pages

When I was trying to push this repository to GitHub, by following the Quick Start and Host on GitHub, GitHub actions failed to build with this error message: Error: Error building site: TOCSS: failed to transform "ananke/css/main.css" (text/css). Check your Hugo installation; you need the extended version to build SCSS/SASS.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information So the answer is simple, comment the #extended: true in .github/workflows/gh-pages.yml, the extended version of Hugo will support building scss/sass. The official documentation didn’t mention any on this configuration, so I guess this is a too simple question to mention on the document, just a commented line of correct configuration should be good enough to let people know this. ...

November 22, 2021

Hello Word

Yes, this is my first post. Recently I’m reading <Own Your Tech Career>, the idea of the book is great. Although I don’t know the author personally, we share many same thoughts on technology, career, and life. The most important thing I learned is how to get engaged in communities & build a personal brand. One thing is writing personal blogs, so here it is. To be honest, I didn’t create this website by blindly following another guy’s idea. Since 2019, I’ve been busy writing a lot of notes & diaries on OneNote. The goal of OneNote is to build a personal knowledge network, so it will be easier for me to handle the flood of information and make better decisions. The OneNote focuses on “core” technologies and interesting “residuals”, then the first issue arises: what about those not-that-interesting stuff? How to tune a specific Nginx configuration, how to write a correct layout in CSS, and some trivial issues while learning some new technologies (Jetpack Compose, SwiftUI, Rust, Erlang, Haskell, etc.). ...

November 22, 2021