The Week #28
- I made good progress on Tanzawa this week. Last week I got image uploads working. This week I got the base of what is required for image uploads to preserve privacy and reduce energy consumption.
To preserve privacy, Tanzawa is automatically stripping all exif data. But rather than just throwing it away, Iโm archiving it in json in database. Why?
Two reasons: 1) I canโt quite articulate the sales pitch well yet, but I want Tanzawa to become your home on the internet, exif data is your data, and Tanzawa should facilitate you accessing / using your data as much as possible. 2) You could totally build a photoblog or Flickr-like gallery very easily with Tanzawa if only you could access exif data...and you can.
The other goal is to be as โlow-energyโ as possible. Do as little computation as possible and send as little data across the wire as possible. To that end images are now automatically converted to webp the first time a user visits the page with a browser that supports it. Subsequent visits will get the pre-converted image. No need to introduce background tasks (two extra processes, redis and celery) to reformat pictures that may never be used. ๐๐ป
Once Pillow supports avif (seems soon), it will offer that as well, for even more savings.
My mid-2014 MacBook Proโs battery finally bit the dust becoming quite unreliable. I took it in to the local authorized repair shop to get it replaced and since itโs โvintageโ they have to order parts from Apple, and thankfully they still have some in their warehouse.
Upon the initial inspection the battery had started to bulge as well, but I hadnโt noticed. Theyโre replacing the battery and the top case for about ยฅ30,000 (300 usd). Much cheaper than a new machine, especially as it meets my needs perfectly.
No computer for a week means no code progress on Tanzawa, but it does give me time to plan and run again.
^1 despite a state of emergency, nothing technically stopping us from eating out, except for a fear of getting a virus and death.