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.

  • With all that focus on Tanzawa, I didnโ€™t run once in the mornings. Running in winter is hard.

  • 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.


  • One of my goals as if late is to reduce meat consumption and increase veggie intake. Weโ€™ve been doing well, in most dishes using half the meat weโ€™d normally use and adding veg in its place. As we canโ€™t really go out and eat, ^1 I bought a book that had vegan recipes from around the world. A lot of the recipes are curries and sorts from India, Vietnam, Thailand or already vegetarian dishes from the Middle East and such โ€” foods with flavors we would normally only get by eating out. Iโ€™m excited to try it out.

  • I found and binge watched Pretend itโ€™s a City, a documentary about Fran Lebowitz. Sheโ€™s hilarious and thereโ€™s a lot of lovely shots of New York.


  • ^1 despite a state of emergency, nothing technically stopping us from eating out, except for a fear of getting a virus and death.