πŸ—» James Van Dyne

✈️Trips πŸ—ΊοΈMaps ✏️️Blog πŸ”—οΈοΈLinks πŸ‘‰Now πŸƒRuns
  • 🏑Home
  • ✈️Trips
  • πŸ—ΊοΈMaps
  • ✏️Blog
  • πŸ”—οΈLinks
  • πŸ‘‰Now
  • πŸƒRuns
  • ✏️Articles
  • πŸ“€οΈReplies
  • πŸ’¬Status
  • πŸ”–οΈοΈBookmarks
  • πŸ—ΊCheckins
  • πŸ“…The Week
  • πŸ–₯Tech
  • 🌲Sustainability
  • πŸƒRunning
  • 🧠Thoughts
  • πŸ‡―πŸ‡΅Japan
  • πŸ’‘TIL
  • β›°Tanzawa
  • 🏑Home
  • ✏️Articles
  • πŸ“€οΈReplies
  • πŸ’¬Status
  • πŸ”–οΈοΈBookmarks
  • πŸ—ΊCheckins
  • πŸ“…The Week
  • πŸ–₯Tech
  • 🌲Sustainability
  • πŸƒRunning
  • 🧠Thoughts
  • πŸ‡―πŸ‡΅Japan
  • πŸ’‘TIL
  • β›°Tanzawa
  • Response to Facebook Blocks News in Australia, Diverging With Google on Proposed Law

    Feb 19, 2021
    by James
    With Australia moving to make the tech companies pay for news, Facebook took a hard line, while Google has struck deals to pay publishers.

    Government services and NGOs and more getting blocked on Facebook so they don't need to pay journalists for the work. Another example of why shouldn't rely on free platforms. You need a site that you own and to encourage people to use it else your work just becomes "collateral damage".

    The sooner the world stops using Mark's site as an internet portal the better.

    πŸ”—permalink
  • Feb 19, 2021
    by James
    Another week another feature coded and launched. This week I managed to get streams built and launched. You can see them on the right. Clicking each stream will filter the posts by the streams you selected when writing your post.

    Steams can also be set via micropub if the client just sends a matching slug in the "category" property. Streams have feeds accessible at /<slug>/feed. You can subscribe to just Tanzawa status updates with status feed. As I can only author statuses on the backend right now this feed will match the main feed.

    The other visual change you'll notice on the site is more navigation items on the left. Clicking on them allows you to navigateΒ  between streams.

    Tanzawa Streams Navigation


    With Streams finished, the next step for Tanzawa is going to be to allow me to author the various kinds of posts that would appear in these streams.

    For articles I need to add posts with titles (technically supported via micropub, but titles aren't visible anywhere). Replies are more complex as I need to capture the url we're replying to, grab / parse the page for author / summary data and let the user customize it. It's a big task, but it will also finally let me start integrating Turbo in the admin.
    πŸ”—permalink
  • Feb 18, 2021
    by James
    Feeling a bit tired today but not wanting to break the chain of progress, I managed to get just a little bit done today.

    I implemented Stream RSS feeds. This allows readers to subscribe to just a specific stream, rather than the entire river. You could also use the stream feeds to selectively syndicate content elsewhere e.g. I want all my status and article posts to syndicate to micro.blog, but not my checkins.
    πŸ”—permalink
  • Feb 17, 2021
    by James
    When authoring a post you can now select which streams you'd like for them to appear in.Β  As each stream can have different visibility settings we show them along with the stream in understandable terms.

    Selecting streams with Tanzawa


    Next up is adding feeds for each stream type and setting the stream on micropub requests.
    πŸ”—permalink
  • Feb 16, 2021
    by James
    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


    πŸ”—permalink 1 interaction
  • The Week #32

    Feb 16, 2021
    by James


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

    πŸ”—permalink
  • Feb 15, 2021
    by James
    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.
    πŸ”—permalink
  • Checkin to Soup Stock Tokyo

    Soup Stock Tokyo 35.45531762084871 139.6317960779227
    Feb 15, 2021
    by James
    in Yokohama, Kanagawa, Japan

    Post health check meal.



    πŸ”—permalink
  • Feb 14, 2021
    by James
    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.
    πŸ”—permalink
  • Feb 14, 2021
    by James
    As of today, Tanzawa officially supports IndieAuth and Micropub. Micropub is still a work-in-progress, but it works for basic note and articles with photos. I also pushed the RSS fix so _new_ posts with images should display properly for Feedly users. By the way - this post was made with Quill.
    πŸ”—permalink 1 interaction
Previous 155 of 358 Next
Reply by email
Powered by
πŸ”Tanzawa

← An IndieWeb Webring πŸ•ΈπŸ’β†’
Photo of James Van Dyne James Van Dyne Japan

Web developer living in Japan.