• Dynamic image format conversion is working nicely. I added a new feature to the image processing this morning as well.ย  Rather than just strip geo data, I'm removing all exif data.

    However, it also occurred to me that you may want to display a subset of that data on your website e.g. which camera the photo was taken with etc... So I'm saving all exif data to json before stripping it from the file itself. This should allow you to expose only the data you want explicitly in your templates. ๐Ÿ™Œ๐Ÿป

  • Adopting new image formats (webp/avif/apng) in place for legacy formats (jpeg/png/gif) is an area where websites simultaneously increase quality and reduce transfer size.ย  I've got dynamic file format conversion working locally so browsers that support the new formats will automatically get the smallest file possible and older clients fallback to legacy formats. Just needs a bit more massaging before I merge it.
  • The Week #27


    • This week marked my 10 year wedding anniversary. We got married in typical Japanese fashion, a trip to city hall to fill out the paperwork. For some reason we didnโ€™t think to take a photo when we got married, which I regret. I think it was a combination of everyone looking far too busy to ask and that, at least at that time, you donโ€™t really take photos inside city hall.

    I remember the couple after us was what appeared to be a a Russian? woman and this old guy with one of those furry hats with the flaps on all sides. It may or may not have been a marriage for love, but I hope theyโ€™re doing well.

  • Sophie went to the vet and got her numbers done again. Theyโ€™re now perfectly in the normal range! The doctor is decreasing her medication and weโ€™ll check again in a couple of months to see how she responds if we can keep the lowered amount. My wallet hopes we can.

  • The battery officially died on my laptop this week, which has slowed progress on Tanzawa. Itโ€™s a mid-2014 MacBook Pro, so almost 7(!) years old. Usually Iโ€™d think about replacing it and recycling this one by now, but it works fine. And when I consider the ecological cost of manufacturing a new laptop, I want to use my current machine for as long as possible. A new battery should extend the life so I can use it for a full decade.


  • Speaking of Tanzawa, despite battery woes, I still made a bunch of progress. I got image support working, so you can add / remove images from posts.

    Iโ€™ve started working on image processing and optimization. I strip all gps exif data from photos when theyโ€™re uploaded, but before I do, Iโ€™m storing the gps coordinates in the database. Why? By default I want to preserve privacy, you donโ€™t necessarily want to share your exact location when youโ€™re sharing a photo of the garden.

    But I have this idea of letting you group entries (checkin, status, photos, blog posts) together as a trip and display it on a map. And in those cases we may want to use the coordinates, so having them available but not public by default is a good compromise.

    Another goal is Tanzawa is to use as little energy as possible, which means images must be small so we transmit as little data as possible. I figured out how I can do that, without generating a zillion thumbnails and sized photos (though resizing is part of the solution).


  • Checkin to ไบŒไฟฃๅทไบŒไธ็›ฎๅ…ฌๅœ’

    in Yokohama, Kanagawa, Japan

    Can play and watch the bullet train.






  • Start a blog

    You should start a blog today by Juhis struck a cord with me and I thought I'd pile on. You should start a blog today.

    Like many I blogged a lot in the early 2000's. Those early blogs captured my frame of mind for that period, but they're long gone. Also like many, I stopped blogging sometime after Twitter and Facebook became popular.

    Over the years I tried to start back up again. "I should blog more", I'd tell myself. I'd always try to focus on writing "evergreen" content or writing "professional" content and after a short burst, stop.

    Discovering the IndieWeb helped remind me that I'm writing for me on my blog. It doesn't have to always be professional all the time. This past year or two regularly blogging again has helped me remember just how magical the internet is. That I can write something in Japan and people find it and respond to it from all over the world โ€“ all using open-standards โ€“ brings a smile to my face.

    Why should you start a blog today?


    • Develop better ideas. Many people develop their ideas by writing. They sit down with idea A and as the write about it, they gain some further insight and get idea B, which leads to idea C and so on. None of this would have been possible without sitting down to write. And you're not going to write unless you have a place to do so.

    • Be your own reference. When you're debugging a problem at work, chances are you're not the first person to run into that issue. Writing it down on your blog will not only help you gain a better understanding of the problem and help others solve the issue, but also in a year when you run into the same issue, you've got a refresher waiting for you on your blog.

    • Honest record of the past. Our memories aren't the best. Having a blog will help you remember just what you thought and felt, for better or for worse, when those events weren't so near.

    • Own your data. Twitter is a micro blog. Instagram is a photoblog. But these blogs aren't yours. Yes, you provide the photos. And yes, you provide the witty content. But all of it disappear in an instant at some company's discretion. Putting your data on your own blog protects you and your memories.

    It doesn't matter where you start your blog, or how cool your domain is, or how many people read it, or what programming language it's written in. What matters is that you start.

  • Merged in support for images! I'm rewriting the html provided by trix to make all images automatically load lazily without Javascript. It's also marking which files are associated with which posts so we can monitor for unused files.

    Lazy loading images to save unnecessary image downloads.
  • Serving media is working. Initially wanted to use X-Accel-Redirect to serve media, but that's an nginx-only feature and would add complexity to deploy. Decided to serve using a django FileResponse instead.
  • Upload to working. Basic micropub media endpoint working.
  • File models and geospactial settings finished. upload handler coded but not tested yet.
  • Starting to implement file upload support after planning yesterday. SpatiaLite looks super cool, totally going to use it.
Previous 162 of 359 Next