Time for the weekly diary
-= Personal Website =- ๐
Last week I moved my website to PostgreSQL, and this week I
found an interesting bug ๐. It turns out that the Go driver
for PostgreSQL doesn’t have a connection timeout. When
the program tries to open a new database connection and the
connection limit has already been reached, it starts waiting
forever. Only the author of the
library
knows whyโyou can’t just go ahead and specify a timeout.
You have to write some clever code using contexts, as shown in
the screenshot. I think context.Context is a
pretty annoying feature in the Go programming language ๐คโ๏ธ
Right now Iโm making various small UI updates and plan to continue them next week. I’m improving the Hamburger Menu and want to add a language switcher there so you can change the language without going into the settings.
I also noticed that the Parcel bundler I use in my project broke image compilation ๐คจ Man, is it just me, or do recent updates constantly break things and rarely improve anything?
-= Star Rail =- ๐
I finished the main story of the fourth planet in Star Rail and felt a bit sentimental. I think that my personal website, created from my smart-progress posts, will become my book of memories where my life is recorded. ๐โ๏ธ Smart-progress had some interruptions again (shown in the screenshot), so it’s useful to have your own archive.
In the book of the fourth planet, victories and defeats in the fight against evil are recorded, while on my personal website, the features I built and the bugs I fought are recorded ๐ชฒ๐ค Someday in 1000 years, someone will find my personal website and read my diary. But that’s not for sure.