• I started work on implementing streams this morning. This is what it's looking like on the public side with the default streams. Feels nice to be working on user-facing features again.

    Tanzawa with streams


  • The Week #32


    • Last week I had forgotten an interesting tidbit about my self-introduction presentation at work. During my presentation I introduced some of the apps I'd built for the Mac – ImageXY and Jisho. ImageXY was popular in Japan for its first couple of years and one of my co-workers actually used to use it all the time! First time I’ve met a random user of ImageXY!

    • The covid vaccine was finally approved in Japan and they're starting to vaccinate doctors and nurses this week. Still no idea when I'll be able to get my prick, but I imagine it will be sometime this summer. Speaking of getting the shot, I found out my grandma got her second covid vaccine shot last Wednesday. Woohoo!

    • I had my annual health check this week. As nobody is going in to the office, we are free to do our health check anywhere. I went to a a clinic In Minatomirai, as it was the closest to my house. The clinic itself was the top two floors of a high rise. We carried a little rfid card at each station and see a nurse/tech for the test, and finally a doctor briefly at the end to cover the results. Hope I can use this place next year too.

    • There was a large earthquake off the cost of Fukushima. It was about a 4 where I live in Yokohama, certainly the strongest and longest quake I've felt in a while. It reminded me of 3/11 in someways as just when you think it was going to stop it just kept getting stronger. I was fast asleep when it started, but you can see my heart rate from my Apple Watch about when it hit.

    • This week Leo turned 3. He has his official "chocolate debut" as he picked out a chocolate cake decorated like a panda. He must not have been impressed with the hype around chocolate as he only ate 2 bites.

    • I watched this good documentary called Winter in Stockholm. I hadn't realized how much I miss watching documentaries like these randomly on TV.

  • No coding today. Planning and thinking about how to implement Streams, one of my core ideas behind Tanzawa.

    Streams will help you categorize and posts and blogs. You have a running stream, a status stream, a checkins steam. Each stream is independent of each other and each stream flows into the main Tanzawa stream.

    Posts of any kind can appear in any stream. Streams will be listed on the left and have their own feed.Β  In micropub parlance these would be tags or categories.Β 

    Some streams may be unlisted streams, entirely off the map, hiding all contents from anyone that isn’t logged in.Β 

    Once streams are working, I can start modeling checkin and address data requirements and add support to micropub.

    β€”β€”β€”

    The other thing I’m starting to think about is how other people could start using Tanzawa. Initial setup a little involvedΒ  as SQLite needs Geo extensions installed to work. A Docker container would be easiest to make it all work, but even that’s a hurdle to getting started.Β 

    I could provide hosting, but I’m not sure I want that kind of responsibility yet.Β  One step at a time.
  • Checkin to Soup Stock Tokyo

    in Yokohama, Kanagawa, Japan

    Post health check meal.



  • After confirming that the <html> tag inside the <figure> tag was causing the errors with Feedly I went and fixed all posts. Below is the script I ran in the django shell.
    Happy to report that Tanzawa is once again producing valid rss.

    from bs4 import BeautifulSoup
    from post.models import TPost
    
    for t_post in TPost.objects.all():
        entry = t_post.ref_t_entry.first()
        soup = BeautifulSoup(entry.e_content, 'html.parser')
        for html in soup.find_all('html'):
            try:
                pic = html.find('picture').extract()
            except AttributeError:
                # no pic
                continue
            html.replace_with(pic)
        entry.e_content = str(soup)
        entry.save()

    Also being able to back up and restore your site's database with a simple "cp db.sqlite3 db.sqlite3.bak" is soooooooo nice.
Previous 319 of 724 Next