-
Use SimSun as default for Ubuntu running in WSL
Recently, I’ve started building automated workflows for daily works. One of those is to convert PDF-format invoices into JPEG images. It’s easy to achieve with an image library such as ImageMagick, except that a few characters look strange.
-
Use Browser-sync for Rails 7 with Hotwire Turbo
Rails 7 with Hotwire Turbo is awesome. However, when it comes to fine-tune layouts and views, especially with Tailwind CSS, live-reload becomes a must-have feature.
-
Module yaml error raised when running yum/dnf
Recently, you may encounter this
Module yaml error
while runningyum
ordnf
on CentOS and Fedora. It could be simply fixed by upgrading thelibmodulemd
lib. -
Convert Notion pages to markdown using Ruby
Wanna export your articles to local markdown files but found the built-in export function hard to use? Use Ruby with the
notoin-sdk-ruby
gem and scripts below to achieve that easily. -
Learn graceful Chinese from ancient poems
Finding advanced ways to practice your Mandarin Chinese? Experience the gracefulness of Chinese and recite ancient Chinese poems using these Anki flashcards for free.
-
How to fix Gem::Source NameError during Rails initialization
Recent ruby versions raise NameError: uninitialized constant Gem::Source when initializing a new Rails application by
rails new
, which could be fixed by updating the bundler gem.