💾 Archived View for jsreed5.org › log › 2022 › 202207 › 20220702-cgi-updates.gmi captured on 2024-02-05 at 09:55:59. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

-=-=-=-=-=-=-

CGI Updates

2022-07-02

---

I am current rebuilding the chess section of my capsule. The new code will be written in Python, and for practice, I'm re-implementing the other CGI scripts on my capsule to use Python instead of Bash.

So far I've rewritten two scripts: my age in miles and the capsule guestbook. The age in miles script was extremely easy to rewrite, but I wanted the guestbook script to follow the same principles the chess site will. To that end, I write each entry in the guestbook to a SQLite database, then regenerate the guestbook gemtext page from the rows in the database.

I will work on rewriting my weather script this weekend, the only other CGI script I currently have besides chess. It will use the same principles, storing ZIP codes and grid data from the National Weather Service in a database. I am also changing the data stored in the backend to make the script run faster.

At the moment, I still aim to have the chess section of my capsule back online by 2022-08-01. Between moving, job training and time out of town, I may not reach that goal. However, the practice I'm getting by rewriting my other CGI scripts should help me get chess up and running faster.

---

Up One Level

Home

[Last updated: 2022-07-02]