πŸ—» James Van Dyne

✈️Trips πŸ—ΊοΈMaps ✏️️Blog πŸ”—οΈοΈLinks πŸƒRuns πŸ‘‰Now
  • 🏑Home
  • ✈️Trips
  • πŸ—ΊοΈMaps
  • ✏️Blog
  • πŸ”—οΈLinks
  • πŸƒRuns
  • πŸ‘‰Now
  • ✏️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
  • Jan 31, 2021
    by James
    Slept on the bug and yes appears that django-webmention is not decoding the response body before saving it to the database. I opened issue #23 to fix the issue.
    πŸ”—permalink
  • Jan 30, 2021
    by James
    I'm on a roll with webmentions today. While I initially planned to hold off on displaying them publicly until a while later, since I figured out a good design, I decided to ship them in detail pages as well. They're hidden by default with a badge indicating the number of interactions.Β  All mentions must be πŸ‘ed before they appear. Pages without interactions do not show anything.

    Webmentions show inline with their content.


    One thing I'm not entirely happy about is that by using the object tag to allow me to detect broken images is I lose the ability to lazy load them. i.e. img supports loading="lazy" and object does not. A waste of bandwidth and resources.

    It's not a huge issue as icons are small. Once I start integrating turbo I plan to to lazy load the webmentions as a whole, so no content is event sent until requested.

    I've also found a bug (or what I consider a bug) somewhere in the webmention stack (either in mf2py or in the webmention test tool, I think). The basic issue is emoji and other unicode characters come across as escaped unicode like \xf0\x9f\x98\xa2, Cleaning it the response body with the excellent ftfy (fixes text for you) takes care of the issue for now, but it feels like that should be unnecessary.Β 
    πŸ”—permalink 2 interactions
  • Jan 30, 2021
    by James

    Leo’s taken to my old dslr. We took photos for a couple minutes of his favorite subject: trains. πŸš…



    πŸ”—permalink
  • Jan 30, 2021
    by James
    Figured it out. My handler wasn't running because I forgot to set the default app config in my __init__.py. One hotfix later and now we're cookin' with gas.

    Webmentions working in prod!
    πŸ”—permalink
  • Jan 30, 2021
    by James
    Shipped the new webmention display in Tanzawa πŸŽ‰. There is one bug. When django-webmention registers a model, I have a signal listening to register my own TWebmention record to store parsed data, moderation data and so forth.

    Testing locally it worked fine, but my test webmention didn't seem to register it. Here's what it's looking like in prod:
    Real life webmentions in Tanzawa!
    πŸ”—permalink 2 interactions
  • Jan 30, 2021
    by James

    Shipped my new webmentions dashboard in Tanzawa. You can see a preview of them on this post on the Tanzawa development blog.

    And we're live on prod!

    πŸ”—permalink
  • Jan 29, 2021
    by James
    Refactored the design of the webmentions this morning. I added the number of un-reviewed webmentions at the top and put them in a details/summary tag. The author name links to their homepage. Below that is a link to the webmention source displaying only the domain.

    Reviews are handled via a big thumbs up or thumbs down on the far right. This bit isn't hooked up yet, but it will be soon enough. I also added a button to quickly take you to the new status page.

    Webmentions refactored


    Next I need to add an api / view to handling the approval / disapproval click. And a menu item on the left to view all webmentions would be handy as well.
    πŸ”—permalink 7 interactions
  • Jan 28, 2021
    by James

    With /r/wallstreetbets going private because the people are taking a bail out from the hedge funds, I can't help but think that we're on the first steps of a swing away from a centralized web. Finally. βœŠπŸš€

    πŸ”—permalink
  • Jan 28, 2021
    by James
    I started working on webmention displays for the dashboard in Tanzawa. Preview πŸ‘‡:

    The base webmention layout


    Content is plain text and limited to 140 characters (after which it will truncate nicely). There's a link to review it on the left and the source of the webmention is also linked. The webmention kind is displayed on the bottom right if it can be determined.

    Using the html5 <object> tag I can handle broken images or no author photo quite easily.Β 

    A broken author photo example


    Come to think of it...these could be used as the base for displaying the interactions in a post as well...
    πŸ”—permalink 1 interaction
  • Jan 27, 2021
    by James
    Thank you to Colin for replying and sending Tanzawa its first non-test webmention.Β 

    Today I fixed some layout bugs and started working on a home / dashboard screen for the publishing side of Tanzawa. For starters it's going to display just the last 5 posts / webmentions and a button to write a new status.

    Currently each wbmention shows it's review status (πŸ‘ or πŸ‘‰), source url, and a link to the django admin to review (or delete) it.Β  Instead of the source url (as that's not super helpful) I plan to show who it's from, the kind of webmention, and a link to view it. Eventually I'd like to normalize this data into the database, so I don't need to parse html on each page load, but I'm still working on the table schema in my head.

    Once I get the dashboard "working", I think it's time to expand to other post types. Articles would be easiest - as it's just a status with a title. It will also force me to normalize sidemenus and post listing logic. After that I'd like to support checkins via a micropub endpoint so I can get my swarm checkins from OwnYourSwarm.
    πŸ”—permalink
Previous 170 of 369 Next
Reply by email
Powered by
πŸ”Tanzawa

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

Web developer living in Japan.