Aidi's Tech Blog
  • Dec 3, 2024

    How to pin/import stimulus component controllers?

    It’s a great idea to puts component stimulus controlers alongside with component classes and tempaltes, which is the default of bin/rails generate stimulus:component.

  • Oct 9, 2022

    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.

  • Oct 8, 2022

    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.

  • Aug 30, 2022

    Module yaml error raised when running yum/dnf

    Recently, you may encounter this Module yaml error while running yum or dnf on CentOS and Fedora. It could be simply fixed by upgrading the libmodulemd lib.

  • Aug 25, 2022

    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.

  • Aug 24, 2022

    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.

  • Aug 23, 2022

    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.

Subscribe

  • Aidi Tan
  • aidistan@outlook.com

A journey of a thousand miles takes every step. 「不积跬步无以至千里」