标签归档:en

All English posts. Mainly about coding.

For all programming related posts (including Chinese), click here[zh].

Docker Container Restarting after SSH Login – Solution

As mentioned in a previous blog post, my current project is deployed using Docker. However, during a recent login to the server, a strange phenomenon occurred: all the containers in Docker would restart from time to time. Also, every time I logged in to check the Docker status, it would show that the containers had just started (Up 15 seconds). After several investigations, I finally identified that the restart issue was related to SSH login. Every time I logged in via SSH, the containers would restart.

继续阅读

Using Docker Compose to Self-host Project Deploy

After three months of hard work, the SSL certificate of my RSS aggregator finally expired. The auto-renew script failed to renew it — this happened a couple of times, I need to login into the web panel and renew it manually every three months. Unfortunately, the web panel malfunctioned this time either. After an epic battle with cert-bot, Nginx, and even the web panel I used, I finally gave up and decided to switch to another self-hosting solution.  

继续阅读

Use Roundcube on Lolipop.jp

Lolipop by GMO cloud is the hosting service I’m using. The hosting plan includes email hosting services, but the webmail interface is in Japanese with limited functions provided, so I installed my own Roundcube instance instead. Not like VPS, Installing a custom Webmail service needs to skim through the service provider’s documentation, undoubtedly it is all in Japanese. This takes me some time to search and validate all these endpoints. Anyway, the tutorial is as follows.

继续阅读

Automatically Backup Dokuwiki Data Using Shell Script

Dokuwiki is an elegant and concise wiki-site. Since it uses plain text files instead of a database to store pages, one offline copy could be useful for some situations, like read it on your Kindle when you go offline or publish your ebook. Thus, we want to back up our pages and media file daily and create a symbolic link to the latest copy for downloads.

继续阅读

Fix Charge HR Shows Battery Symbol with Exclamation Mark Problem

I went back home last month and put my Charge HR in a corner since then. But when I prepare to wear it these days, I found my Charge HR shows a battery symbol with an exclamation mark on the screen. It cannot display dashboard as usual, neither can I connect that device from my smartphone. My smart band was fully charged, so this issue was not caused by lack of power.

继续阅读

CryptoMeow

I’ve always had a shine to the blockchain applications, like steemit. And now, there’s a new game based on blockchain: cryptokitties. They claimed they’re the first blockchain game. It sounds cool, Even more, they have chosen to make kitty cultivate game. You know, kitties are always adorable.

继续阅读

Mount external disk at Linux startup

It is generally acknowledged that most Chromebook has only 16GB ROM, which means if you install Linux on your Chromebook, the remaining free space will be very small. Taking into account the current SSD price, using external SD card is a very wise choice: Most Chromebook has an SD card slot and SD card is cheap nowadays —— I bought a 32GB class 10 SD card on eBay with only $8. So we need to mount that SD card (external disk) at Linux startup. 继续阅读