音時雨 ~Regentropfen~

2023-Mar-26 (日) 12:07 -7:00

♤ 1/78 done

Site updates

Made quite many changes in the past week, and counting changes I've been planning since last October (maybe November), that added up to about 90 commits, either major or minor. First, I decided to use the traditional format of query strings. I'm using many htaccess rewrite rules for this currently, but it's not flexible and once I wanted to add new features, I have to deal with more rewrite rules. It's simply much more convenient to just redirect the desired link for each script, and thus multiple queries can then be linked by "&" without much headache. So why from the beginning I ever wanted to use so many redirect rules? It's not possible that I did it because I think the "?x=y" format isn't pretty, but I couldn't think of any other reasons. It might remain as a riddle, which isn't important anyway.
Updating php codes was straightforward enough. The only trouble I had with this was updating existing links I put in my journals. Not a hard task. But since the total number of them was not so large that I chose to do it manually, which saved the time of debugging but also reduced much of my patience.
Second and more importantly, I implemented the long-wanted CSS switcher. This idea came out last year when I was browsing Iroshizuku inks (but still just bought from another brand due to their price), so I wanted to make a set of themes and switch them periodically. Then the StackOverflow's once fun-to-try CSS switcher came into my mind again. This would be fun to change the CSS with one click. Although I've considered both the server side and client side, the former is easier to code since I don't have to worry about CSS file updates in situ (while I also considered using a query string, like theme=xxx, to call up for certain themes, which indirectly contributed my returning-to-traditional-query-format task), which is the most likely preferred to be done in javascript, the latter is more challenging but more flexible.
With the former as my backup plan, I luckily found some nice online snippets and eventually (don't want to spend more on this record) got the latter plan to work. My past experience with Perl/CGI cookies was bad, but this time, PHP handled most of it without any issues I could notice.
Finally, I just noticed using PHP's http response code function to call 404 and then die can't bring up the browser's built-in error message like how it used to. The reason was unknown. Maybe it means it's time to make my own error page, but I'm not motivated (yet).
☆゚・*:.。.☆゚・*:.。.☆☆.。.:*・゚☆.。.:*・゚☆☆.。.:*・゚☆.。.:*・゚☆

A tiny step, some progress

Another good thing, I made forward my CST -- which stands for Cute Souls Tarotkarten -- project and it's finally 1/78 done, including only the final works!
Maybe I should say 1/79 done, since I also need to work on a card back design, regardless of how simple it might be.

No. 9, the Hermit, the first card I got.
Just at the moment when I wrote its number in regular digits, I realised it's actually the mighty No.9, nice to have it as the very first card! (*´∀`)
☆゚・*:.。.☆゚・*:.。.☆☆.。.:*・゚☆.。.:*・゚☆☆.。.:*・゚☆.。.:*・゚☆
Time to add some tagging system to my site. (・д☆)キラッ