Enable SSL in PostgreSQL Docker

I'll keep this short. In official docker image, there's already built-in SSL keys ready. We just need to tell Postgres to use it by adding the following section into the docker-compose file: image: postgres:xxx ... command: > -c ssl=on -c ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem -c…

Start a GitHub pages repo on Mac

I really enjoy using GitHub pages as website hosting service. However, I don't have any experience in developing Jekyll projects, and it's quite painful to set up a working starting point on Mac OS X 11 (Big Sur). I'll share some important tips I think to save your time hopefully.…

Calculate tree node changes

Saw an interesting interview questions from DoorDash at Leetcode's forum: "At DoorDash, menus are updated daily even hourly to keep them up-to-date. Each menu can be regarded as a tree. A menu can have many categories; each category can have many menu_items; each menu_item can have many item_…

Start trying Ghost today

I have been using Wordpress for many years. It's probably the time to switch to some modern app such as Ghost to catch up with the world. Ghost(Pro) is really appealing. After several hours consideration, I still decide to build one by my own, to also train my docker…

Guess I'm gonna give up ui-kitten

Although ui-kitten has several recent releases, if you take a closer look at those, you will notice there are barely new features introduced. However, I am actually expecting more components or layouts coming out soon. Today I double checked my old friend NativeBase and surprisingly I notice it's been changing…