💾 Archived View for jsreed5.org › log › 2022 › 202207 › 20220702-cgi-updates.gmi captured on 2022-07-16 at 13:49:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

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]