๐Ÿ—ป 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
  • Feb 08, 2021
    by James
    I got the IndieAuth authorization api working. Initially I had built it out using the rest_framework.authtoken. However I realized their models only allow one token per user.ย  This would make integrating with multiple clients impossible, so I'm opting to generate / manage tokens myself.

    I can almost complete a sign in with OwnYourSwarm. I think my token endpoint response is wrong, which is preventing it from completing. Hopefully tomorrow I can get the complete signin working so I can move on to the micropub endpoint.

    I feel like I'm starting to break small bits here and there inadvertently . So perhaps before building out the micropub endpoint and potentially breaking more things, I should take a step back and start adding some unit tests for my apis. It'll cost me a day today, but save me days of headaches over the course of the project.
    ๐Ÿ”—permalink
  • Feb 07, 2021
    by James
    Got the start of the indieauth authorization flow working and the base models setup.

    Indieauth auth screen


    ๐Ÿ”—permalink 1 interaction
  • UX Design Textbook

    Feb 07, 2021
    by James

    As part of of the "team UX" at work we're doing a bookclub to make sure we all have good foundations in UX before making it a company offering. We're starting with two books: The Design of Everyday Things by Don Norman, and UXใƒ‡ใ‚ถใ‚คใƒณใฎๆ•™็ง‘ๆ›ธ (The UX Design Textbook) by Masaya Andou.

    While I work reading and writing Japanese all day (when I'm not slinging code), I haven't read a book in Japanese in ages. This is mostly because what I'm interested in ( technology, the web etc...) is usually written about in English well before Japanese. And since I can read English natively, it's natural for me to pick those books.

    Starting to read UXใƒ‡ใ‚ถใ‚คใƒณใฎๆ•™็ง‘ๆ›ธ yesterday and the first thing that hit me is how much my Japanese has improved in the last 4 years. I used to struggle reading texts written for native-speakers as I had large gaps in my kanji recognition abilities. Gaps still exist. But now they're small enough that reading a single page doesn't take 20 minutes as I look up every 5th word. Only taken me...20 years(!) to come the far.

    ๐Ÿ”—permalink
  • Feb 06, 2021
    by James
    Just a small update today. I shipped the login screen I shared yesterday and planned out what I need to build to support IndieAuth. I think I can use DRF to help handle token generation and authentication using the token.
    ๐Ÿ”—permalink
  • Feb 05, 2021
    by James
    With webmentions working, next up I want to tackle support for check-ins. Currently I'm using OwnYourSwarm to backfeed my checkins to my main site and I'd like to continue doing so with Tanzawa.

    Doing so requires that I add support for IndieAuth (so I can login using just my domain) and Micropub. I'm starting on the IndieAuth implementation, which means I need to actually start with a login page for users to authenticate (thus far I've been using the django admin).

    This is what it's looking like so far. Something feels off in the design of it, but I can't quite place my finger on what it is.

    The base login form
    ๐Ÿ”—permalink
  • A short list of things cooler than Clubhouse

    Feb 04, 2021
    by James

    Inspired by Seth's Chasing the cool kids, I've made a short list of things that are cooler than Clubhouse.


    • Not caring what the "cool" kids are doing and doing your own thing.

    • Building and learning about the systems that make the world go around.

    • Not uploading your entire contact list to some random company so you can eavesdrop on the "cool" kids.

    • Fighting for an open web so that you and future generations can access the world without gatekeepers.

    • Owning your content.



    The urgent advice usually ends with โ€œblogs are dead"

    If you always have to mention that "blogs are dead", perhaps they aren't actually dead. They never were dead. They're just not "cool" anymore. The people who made blogging cool and fun? They're mostly still blogging.


    Publish. Consistently. With patience. Own your assets. Donโ€™t let a middleman be your landlord. Yell at Google for blocking your emails and hope itโ€™ll work eventually. Continually push for RSS and an open web. With patience.

    Yes.

    ๐Ÿ”—permalink
  • Feb 04, 2021
    by James
    Yesterday when I shipped sending webmentions I ran into an error that didn't occur in development. Posting the webmention would work, but my response would timeout when trying to save content.

    When updating a post you're supposed to send webmentions, update your content, then send webmentions again. As I'm trying to keep server requirements as simple as possible I'm doing all of the sending inline.

    Looking at my logs what appeared to be happening was everything would just lock, then once my timeout occurred, I'd see my initial post request to Tanzawa come through, the timeout, and then Wordpress making a request to Tanzawa to retrieve it's mention.

    This was happening because gunicorn only has 2 workers by default, which wasn't enough to handle processing a long request simultaneously with an incoming request. Increasing the workers from 2 to 4 solved the issue.
    ๐Ÿ”—permalink
  • Feb 03, 2021
    by James
    Today marks 1 month since I got the first instance of Tanzawa live. ๐ŸŽ‰

    Today I shipped support for sending webmentions. So now when I link to a post, Tanzawa will send webmentions. It's all done inline, so there's now a slow-down when saving. I should do it in the background, but I'm not sure I want to introduce redis/celery and all that complexity quite yet (or ever?).

    A webmention from Tanzawa


    I have a table you can view in the admin where you can see which posts sent which webmentions and if they were successful or not.

    I also shipped a small update to webmention receiving. When an existing webmention is updated, I now also update how the webmention is displayed. In the case of an update, the comment must be re-moderated.

    The final small "quality-of-life" update is when I save a post I now show a link in the success message to view the post.
    Small quality of life update
    ๐Ÿ”—permalink
  • Feb 02, 2021
    by James
    I fixed my webmention receive implementation - I forgot to include the <link> tag in the head of my base template. With this fix in place comments on my Tanzawa micro.blog posts should be start to be sent here as well.

    I also started on the other half of the webmentions: sending. Thus far I'm just trying to keep it simple and am using webmention-tools. I may switch over toย  ronkyuu as it seems better maintained, but it's good enough for now.

    I successfully sent my first webmention from my local environment to my blog. Yay! I think I still need another day or so before I can call it ready for the web.

    Incoming webmention sent from Tanzawa to my blog


    ๐Ÿ”—permalink 1 interaction
  • The Week #30

    Feb 02, 2021
    by James


    • Despite people are moving around more than the state of emergency last year, it appears to be working. Covid numbers continue to drop in Japan. It seems like they're going to extend it until March 7th. They can always decide to end it early, but I hope they don't.

    • Tanzawa has been online for almost a month. And looking back at that month it's really improved. Automatic efficient image loading, RSS, and webmentions... and my computer was even out for repair for one of those weeks. There's still a lot yet on the road map, so I need to just take it a day at a time.

    • Leo's taken to my old dslr and we went out of shot photos of the Odakyu line for a bit over the weekend. I always forget how much fun it is to shoot with my dslr. The images are so crisp and the depth of field. Portrait mode on my phone is good - but the real deal is soo much better and soo much more satisfying.

    • We started a new experiment at work. One day a month we stop client work and fully focus on things that are "important but not an emergency" โ€“ as those things tend to never become priority and hence never get done. We're split into different teams. Some are re-working our company Slackbot, others are getting better with frontend tech and so forth. I picked team UX, where we're trying to figure out how, as a company, we can also "do UX". This is perfect for me. I've been wanting to spread the passion for well designed software and forms within the company for years now, but I've never had the time to dedicate to it. This collaboration day finally gives me the opportunity.

    ๐Ÿ”—permalink
Previous 170 of 370 Next
Reply by email
Powered by
๐Ÿ”Tanzawa

โ† An IndieWeb Webring ๐Ÿ•ธ๐Ÿ’โ†’
Photo of James Van Dyne James Van Dyne Japan

Web developer living in Japan.