๐Ÿ—ป 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
  • 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
  • Response to Riding a Solar-Powered Electric Bike 6,900 Miles Across America | Cascade Bicycle Club

    Nov 25, 2021
    by James
    Sushil Reddy, founder of the SunPedal project, is using his legs and the sun to prove that solar power and electric bikes are viable solutions for reducing fossil fuel use and helping to solve the climate crisis.
    What a cool bike and a cool project. Hopefully they finish it safely. ๐Ÿ™๐Ÿป

    Wonder what itโ€™s like with a powered front wheel too.
    ๐Ÿ”—permalink
  • ๐Ÿ”— Digital esthetics, environmental change and the subcultures of computer art

    Nov 25, 2021
    by James
    For decades, the development of information technology has been characterized by a very strong growth orientation, which is now coming to an end with the fading of Moore's Law and environmental change. Academic research in computing has only recently begun to wake up to the fact that there are limits to growth, and that a more fundamental paradigm shift is required to achieve sustainable computing; mere technical tinkering is not enough.

    Growth-centricity has also dictated the development of digital esthetics, which will thus need to change as well. I suggest that the guidelines for this change should be sought in subcultures of computer art whose esthetic ideals are very different from the mainstream Maximalism and Virtualism โ€“ the self-serving glorification of the big and plentiful and the hiding of the technical basis of things. I have chosen demo art, chip music, pixel graphics and glitch art as examples of these subcultures. The ideals of "digitality" are also being challenged by post-digitality, so I will also look at these subcultures through this concept.

    I will conclude with reflections on the possible impacts of environmental change on digital esthetics and computing more generally, and on the ways in which computer art subcultures could play a pioneering role in these developments.
    I haven't actually read all of this, but from what I have I'm completely on board. Mostly a reminder for myself to finish reading this.
    1. Tagged with
    2. computing
    3. climate change
    ๐Ÿ”—permalink
  • Nov 25, 2021
    by James
    Plugins providing custom pages in the Tanzawa admin. How the now page plugin is looking.
    Now admin
    ๐Ÿ”—permalink 1 interaction
  • Nov 23, 2021
    by James
    Bam! Tanzawa migrations for enabled plugins (loaded via the db) will automatically migrate on Django startup.Not sure how smart this is, but Iโ€™m gonna roll with it.
    ๐Ÿ”—permalink 5 interactions
  • Checkin to ไบŒไฟฃๅทไบŒไธ็›ฎๅ…ฌๅœ’

    ไบŒไฟฃๅทไบŒไธ็›ฎๅ…ฌๅœ’ 35.460278 139.53513
    Nov 23, 2021
    by James
    in Yokohama, Kanagawa, Japan
    Watching the bullet train do its thing at the park. Always impressive.
    ๐Ÿ”—permalink 4 interactions
Previous 128 of 367 Next
Reply by email
Powered by
๐Ÿ”Tanzawa

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

Web developer living in Japan.