20230928
Played Civilization until midnight and then watched a football game. Fell asleep around 3:30 I guess. Woke up around 7 to have breakfast, then rested for a while. Started to work at 9, now I remember I was struggling with checking whether every name in the template is valid or not. After this part being done, I found a weird problem. As I said before, I would bind database to system after the application had started. Nevertheless, the binding function got called, but when some actions triggered a database query, the console told me that no database was bound to the system. I debugged for a long time, tried different ways to bind database and system, but the problem persisted. Finally, I noticed that the error log was in the browser's console, instead of terminal, so the problem was obvious: system was supposed to be used in main process, but I used it in the renderer process. I must be very tired so I couldn't figure it out quickly. Time passed so fast that I missed the timing of doing the running exercise in the morning. I could do it in the afternoon, but I had no motivation, especially considering my right knee problem happened yesterday. Completed thirteen pomodoroes for work today.
评论
发表评论