Skip to content

Share

Share some tips and tricks.

  • Multilingual Hugo Blog

    In Share 330 words 2 min

    I recently came across a classmate’s sharing, mentioning that after making their blog multilingual, they saw a significant increase in traffic. So, I decided to give it a try as well. With the help of OpenAI, translating articles is not a difficult …

    I recently came across a classmate’s sharing, mentioning that after making their blog multilingual, they saw a significant increase in traffic. So, I decided to give it a try as well. With the help of OpenAI, translating articles is not a difficult …

  • Simulating Wait Times at the Gym

    In Share 388 words 2 min

    In mid-July, I visited the hospital and started exercising regularly upon the doctor’s advice. After considering my work schedule and my physical condition, I decided to go to the gym for a workout during lunchtime. Currently, my daily exercise …

    In mid-July, I visited the hospital and started exercising regularly upon the doctor’s advice. After considering my work schedule and my physical condition, I decided to go to the gym for a workout during lunchtime. Currently, my daily exercise …

  • Migrating from Disqus to Giscus for the Comment System

    In Share 376 words 2 min

    I used to use Disqus for the comment system, but there were occasional issues with accessing it from within China, and new users had to register again. Considering that most of the readers of this site are likely GitHub users, migrating to Giscus (a …

    I used to use Disqus for the comment system, but there were occasional issues with accessing it from within China, and new users had to register again. Considering that most of the readers of this site are likely GitHub users, migrating to Giscus (a …

  • Implementing a Simple Dark Mode with CSS Filter

    In Share 426 words 2 min

    Frontend

    The Manis theme used on this blog does not provide native support for dark mode, so I decided to add it myself. Initially, I thought about customizing the CSS with media queries, but it seemed like a bigger change. I did a quick search and found that …

    The Manis theme used on this blog does not provide native support for dark mode, so I decided to add it myself. Initially, I thought about customizing the CSS with media queries, but it seemed like a bigger change. I did a quick search and found that …

  • Constructing a RegEx that matches all emojis

    In Share 310 words 2 min

    Hack

    While researching a CSS custom emoji font issue, I came across a RegEx that can match all emojis (up to the 2018 version) and it also provides corresponding test examples. You can find it here: Regex to match all emoji - Regex Tester/Debugger …

    While researching a CSS custom emoji font issue, I came across a RegEx that can match all emojis (up to the 2018 version) and it also provides corresponding test examples. You can find it here: Regex to match all emoji - Regex Tester/Debugger …

  • Connecting to Physical Screen with VNC

    In Share 285 words 2 min

    Pitfalls

    When searching for “Linux remote desktop,” most tutorials suggest using the combination of “xrdp + xfce4.” In general, this combination works well, but it may not be as effective for certain special requirements. In my use case, there are times when …

    When searching for “Linux remote desktop,” most tutorials suggest using the combination of “xrdp + xfce4.” In general, this combination works well, but it may not be as effective for certain special requirements. In my use case, there are times when …

  • Monitor the number of goroutines

    In Share 215 words 2 min

    Go

    Continuing to complete the previous debug process of writing Raft. After solving the Timer issue, it was discovered that even with repeated testing (using --count 10), the CPU usage continued to increase, although the rate of increase was reduced, it …

    Continuing to complete the previous debug process of writing Raft. After solving the Timer issue, it was discovered that even with repeated testing (using --count 10), the CPU usage continued to increase, although the rate of increase was reduced, it …

  • Code blocks within Markdown tables

    In Share 217 words 2 min

    PitfallPython

    Markdown provides support for tables, but only basic text formatting (such as bold, italics, inline code, etc.) is supported within table cells. More complex text formatting, such as code blocks and horizontal lines, is not supported. If you need to …

    Markdown provides support for tables, but only basic text formatting (such as bold, italics, inline code, etc.) is supported within table cells. More complex text formatting, such as code blocks and horizontal lines, is not supported. If you need to …

  • Integrating Disqus with Hugo

    In Share 157 words 1 min

    Pitfall

    Hugo has built-in support for Disqus. In theory, you only need to set the disqusShortname attribute at the top level of your site’s config.toml file. However, there are some pitfalls when actually using it. Here are the specific steps. Register your …

    Hugo has built-in support for Disqus. In theory, you only need to set the disqusShortname attribute at the top level of your site’s config.toml file. However, there are some pitfalls when actually using it. Here are the specific steps. Register your …