๐Ÿ—ป 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
  • Dec 04, 2021
    by James
    I had a really neat idea about Tanzawa ๐Ÿ’ก. I could use the django sites framework to allow one to manage multiple blogs from a single Tanzawa instance. My inspiration was how people used to have a photo blog separate from their main blog, you could do it with Tanzawa, too. I was also thinking about my not often used anymore Instagram account and how that's just a photoblog, really.

    It would still be a bit of work, but not too much. I think I'd just need a table to relate streams to sites and update the public views to take that into account.
    ๐Ÿ”—permalink 2 interactions
  • Checkin to Taniya (่ฎƒๅฒใ†ใฉใ‚“ ่ฐทใ‚„)

    Taniya (่ฎƒๅฒใ†ใฉใ‚“ ่ฐทใ‚„) 35.68450003968841 139.7858086323463
    Dec 03, 2021
    by James
    in Chuo, Tokyo, Japan
    Niku udon made fresh in the shop.

    Meaty udon noodles
    ๐Ÿ”—permalink 5 interactions
  • Checkin to TGใ‚ชใ‚ฏใƒˆใƒ‘ใ‚นใ‚จใƒŠใ‚ธใƒผๆ ชๅผไผš็คพ

    TGใ‚ชใ‚ฏใƒˆใƒ‘ใ‚นใ‚จใƒŠใ‚ธใƒผๆ ชๅผไผš็คพ 35.681335 139.787161
    Dec 03, 2021
    by James
    in Chuo, Tokyo, Japan
    Big Constantine ๐Ÿ™โค๏ธ
    ๐Ÿ”—permalink 4 interactions
  • Checkin to Tully's Coffee

    Tully's Coffee 35.67904593842302 139.7867173619426
    Dec 03, 2021
    by James
    in Tokyo, Tokyo, Japan
    Enjoying a nice cup before work. โ˜•๏ธ
    ๐Ÿ”—permalink 5 interactions
  • Response to Advent of Bloggers 2021

    Dec 02, 2021
    by James
    For the last week or two, I have been thinking whether there is a December blogging series I could take on, similar to how Advent of Code publishes a new coding challenge every day throughout Advent.
    โ€ฆ
    From now up until December 24th, I hope to write a blog post every day about a blog that I find interesting.
    Fantastic idea. Looking forward to the Advent James!
    ๐Ÿ”—permalink 3 interactions
  • Dec 01, 2021
    by James
    Plugins can now be enabled and disabled in production (when running in gunicorn/uWSGI) without bringing the server down ๐Ÿ˜€.

    The issue was that only a single process (the one that handled the request) got the plugin dynamically enabled. When the other processes tried to lookup urls/templates from the plugin, it didn't exist as it's not enabled and returned an error.
    ๐Ÿ”—permalink
  • How to Gracefully Restart A Parent Process

    Nov 30, 2021
    by James
    When enabling or disabling plugins in Tanzawa, for urls to register correctly across all sub-processes, you must restart all processes, not just fiddle with the process that made the request.

    The complete changes are in PR #121, but the line of interest is below.

    import os
    import signal
    
    os.kill(os.getppid(), signal.SIGHUP)

    Where getppid gets the process id of the parent process (gunicorn, uwsgi, etc...) and sends it a HUP signal.
    ๐Ÿ”—permalink 1 interaction
  • The Week #74

    Nov 30, 2021
    by James
    • This is really an update from last week, but I forgot to add it, so I'm putting it first week. After a bunch of small earthquakes we finally got around to anchoring our fridge to the wall so when the big one comes our fridge hopefully doesn't fall over and smash us.
    • I finished the first iteration of Tanzawa Plugins. But while it's merged, it's not quite ready for general usage, yet. Some of trickery I do to dynamically enable plugins works on the development server, but errors when run via gunicorn. I'm not sure if it's the fiddling with migrations, fiddling with INSTALLED_APPS,ย  fiddling with url routes, or a combination of all the above, but it causes internal server errors and doesn't recover until I restart the process. Such is life when you're playing with fire internals. Maybe my next plugin will be a Sentry plugin ๐Ÿ˜†.ย 
    • Plugins still aren't feature complete, though. I'd still like to be able to do things add cron jobs or have plugins schedule tasks, but that will require moving from gunicorn to uWSGI so I can keep inline with my "single process" goal. Oh, and I wrote some documentation about how to make custom plugins.
    • All of this to say my site now has a /now. It's still a rough draft of what I wrote during my lunch break, but really happy to see it live and working.
    • I've run habit and ran 3 times last week. Running 2 short runs during the week at lunch (when it's warmer outside) has made it easier to hit my goal. It takes a lot more gumption to go out and run when it's dark and 2c outside.
    • My Darn Tough warranty replacement socks came! Due to stock issues they're not the same ones I sent in, but they're close (my replacement is a full calf, instead of a half-calf). The process was smooth, no questions asked, no fiddling.
    • We were out at the park on the weekend and decided to take the train to the grandparents and pick something up. As the grandparents were on their way home from shopping right as we arrived at their station, so they offered to picked us up. And when we peered into the car we saw Leo's cousins in the car. We had no clue they were visiting (again). So naturally Leo decided he was staying at their house. Was nice to have another kid-free night โ˜บ๏ธ.
    ๐Ÿ”—permalink
  • Checkin to Starbucks

    Starbucks 35.42861 139.506997
    Nov 27, 2021
    by James
    in Kanagawa, Japan
    3ไบบใ‚นใ‚ฟใƒใงใŠๆ˜ผใ—ใฆใ‚‹ใ€‚ๅนธใ›ใ€‚Lunch at Starbucks just the 3 of us. Happy.
    ๐Ÿ”—permalink 3 interactions
  • Nov 27, 2021
    by James
    I think I'm happy with the Plugin List page in Tanzawa.

    Plugins List
    ๐Ÿ”—permalink 5 interactions
Previous 120 of 360 Next
Reply by email
Powered by
๐Ÿ”Tanzawa

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

Web developer living in Japan.