I was supposed to write a journal entry last night after getting back, but then a message came in asking for help tweaking a few things in Typecho. The main tasks were changing the avatar URL used in the theme’s comments and adjusting where the reply box appears.

Since accessing Gravatar has been a pain for a long time, a reverse proxy for gravatar.com had already been set up, and all that was really needed was to replace the original avatar address with the proxied one. I didn’t fully follow every detail in the earlier explanation, but the last part was clear enough: swap out the avatar URL. Easy.

The first step was to define a custom comment style in the theme’s function.php with threadComment(), so the comment section could be customized directly. After that, instead of using the default official function for fetching avatars, it was just a matter of writing a replacement and pointing it to the new address. I had planned to post the code too, but when I went looking for it, I realized I’d apparently deleted it yesterday. What a shame.

The other change was moving the comment reply box. That turned out to be pretty simple as well. Looking through the code, it was obvious that each comment element carries a key ID, with a value in the form of comment-id. Without that, some of the built-in JavaScript interactions wouldn’t work properly. Also, when you click reply, the reply box always gets inserted after the parent DOM node of the comment-id element. So if you want to change where the reply box appears, all you really have to do is move the comment-id attribute to a different spot.

After wrapping that up in no time, I unexpectedly got a new SSH account out of it, which honestly felt like a pretty good deal. I don’t actually need to get around network restrictions all that often, but it’s still nice to have it ready just in case.

Today in general has felt unusually smooth.

First, the New Year gathering for the research group got changed into a direct holiday allowance of 100 yuan per person, which made everyone pretty happy. Money is still better than almost anything else, after all.

Then there was SegmentFault, where several of my answers got upvoted one after another, and my reputation kept climbing. It really gave me the feeling that my skills are finally improving, which was genuinely satisfying.

The equal-area stereographic projection work is also basically finished entering now, so I can move on to the next step of the plan. That felt great too.

And after a failed GitLab upgrade a few days ago left the site down for days, I tried upgrading again today and, unexpectedly, it worked this time. That was a huge relief.

There was actually one more good thing, but I suddenly can’t remember what it was. Kind of embarrassing.

Anyway, it’s been a pretty smooth day overall. Everything feels OK, and that alone is enough to put me in a good mood.