πŸ—» 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
  • TIL: How to change the Docker ENTRYPOINT with Packer

    Feb 24, 2022
    by James
    I've been working on automating setup and deployment for Tanzawa. This necessitates setting up a python 3 with all of the requisite dependencies and then starting a webserver.

    Initially I tried to set the run_command, but that's executed when you build the image, not when you run the image. The command used when running the image is controlled by the ENTRYPOINT, which is Docker specific.

    You can change your ENTRYPOINT by adding it to the "changes" section of your Docker configuration in your packer .pkr.hcl configuration file.

    source "docker" "ubuntu" {
      image  = "python:3"
      commit = true
      changes = [
        "ENTRYPOINT [\"uwsgi --emperor /etc/uwsgi/vassals --uid www-data --gid www-data\"]"
      ]
    }
    πŸ”—permalink 1 interaction
  • πŸ”— How we changed our roof and cut 1.5 tons of CO2e.

    Feb 23, 2022
    by James
    Since Oct 01, 2021 we have saved 2,300 kwh, equivalent to 720 kg CO2e (assuming a 0.3g of CO2e per Kwh of heating gas). At current trend, we would save 5,200 kwh, equivalent to 1,600 kg CO2e until Apr 15, 2022. To put that number in perspective, a French emits about 9,000 kg of CO2e per year. Not bad for a roof.
    Fascinating how much easier we can cut with upgrades to the house that reduce carbon and improve comfort. Beautiful roof, too.
    1. Tagged with
    2. co2
    3. solar
    πŸ”—permalink
  • Checkin to δ»Šη”°ιŠζ°΄εœ°

    δ»Šη”°ιŠζ°΄εœ° 35.39647 139.47711
    Feb 23, 2022
    by James
    in Fujisawa, Kanagawa, Japan
    People playing violin, guitar, and mandolin, families playing. Beautiful day out. Perfect for celebrating the emperor’s birthday.
    πŸ”—permalink 4 interactions
  • The Week #86

    Feb 22, 2022
    by James
    • I watched Inside Out with Leo and it is a great movie. The main characters are the personified emotions inside people ( Joy, Sadness, Fear, Disgust, and Anger) inside Riley, an 11 year old girl. They look through her eyes and take turns directing her reactions. Lewis Black plays Anger, which it fits his schtick perfectly. I highly recommend it.
    • Leo's school was closed all last week except Friday due to Covid. With the wave seemingly peaked and heading downwards, let's hope we can make it through an entire week without closing and everyone stays healthy. That said Kanagawa stopped releasing data after hitting 100% positivity. Lest you worry, it is/was mostly a math issue of not being able to count all of the tests taken everywhere but getting all of the positive results.
    • My compost bag is officially full, so I've started on the 3 week process of watering it a couple times a week and giving it a stir. After that I should have some great compost to grow stuff with. I ordered a second bag so I'll still be able to compost while the other finishes processing. It won't come until my scheduled delivery ofΒ  the starter next month, so in the mean time I'm back to food trash in the bin. It's the worst.
    • I ran 7km, my longest run in a while. A couple of months ago, when I was just getting back into the habit of running again, I was thinking about how I just wanted to be able to run 5km a few times a week without it feeling so hard. Keeping up the runs at least twice a week has allowed me to build some base cardio and slowing way down has made it much more enjoyable. 5km seems like it's the "base" run now.
    πŸ”—permalink 2 interactions
  • Checkin to improve

    improve 35.39622182730093 139.4640970230102
    Feb 19, 2022
    by James
    in Fujisawa, Kanagawa, Japan
    Afternoon reading. My first Costa coffee. Between this and job, I think this means I’m British now?
    πŸ”—permalink 20 interactions
  • Feb 17, 2022
    by James
    Got my Tanzawa IndieAuth endpoint working for authorization only requests (as opposed to access)πŸŽ‰ Will clean it up and make a PR in the next few days.
    πŸ”—permalink 2 interactions
  • Feb 16, 2022
    by James
    indieweb-utils 0.2.0 was just released. I've been having fun collaborating with James on this project. Really looking forward to dogfooding it by integrating it into Tanzawa.

    Update: Read more about it in James' release blog post.
    πŸ”—permalink 6 interactions
  • πŸ”— A Recipe to Your Own Home-Coded Personal Website

    Feb 15, 2022
    by James
    The personal web, however, lets you authentically share the stuff you like, and customize your own page to your liking, from the usual header and icon to the background and layout and content!

    It's kind of like a home-made website, like a home-made meal instead of getting it store-bought and ready to consume. There's a sort of joy in getting to manually create the site of your own where you have the freedom to add anything you want onto it, much like a homemade meal has that special touch to it.
    Exactly. More like this please.
    1. Tagged with
    2. blogging
    3. computing
    πŸ”—permalink
  • Feb 15, 2022
    by James
    Playing an indie playlist in the Airpods with a cup of coffee and reading Curbing Traffic brings me Austin coffee shop vibes at home in Yokohama.
    πŸ”—permalink
  • The Week #85

    Feb 15, 2022
    by James
    • Last week's getting locked out of the house caused some hassle this week, not with the locks or door, but with the car. We were waiting in the car while the locksmith did his work and as it was dark out, we turned on the interior lights (you can see guess this is going).Β  In the rush of finally being able to get inside / on with our evening, we forgot to turn them off.

      The next time we went to use the car (Friday?) the automatic sliding doors didn't work...immediately I figured the battery was dead. Thankfully I carry a pair of jumper cables in my car (though usually I'm the one giving the jump).Β 

      Thankfully my neighbor across the road was home and let me connect my my cables and give me a jump.
    • I fiddled around with Minecraft on my switch for a few minutes to figure out how it works. I can see how people sink hours and hours into this game building cool stuff. Leo also wanted to play. The controls are pretty complex, with one control stick being movement and the other being looking around,Β  so I have to help him frequently while he masters it.
    • Leo turned 4. For his birthday he got two small Lego sets: a 4+ helicopter and since he's taken to Minecraft, a little Minecraft set. We went and picked out a cake together. He picked a simple cream / strawberry cake (though he skips the strawberries).

      We shared cake and pizza at the grandparent's house. While I enjoy celebrating with the family, I am looking forward for Leo having a proper birthday party with friends someday.
    • As I mentioned, Tanzawa got it's first non-me user! Exciting and illuminating of all of the little issues that exist in the back of my head as a "someday" or have just learned to work around. πŸ˜…
    • The covid numbers seem to be starting a downwards trend. Most recently we've had 3 days with fewer cases (by the hundreds or thousands) of the same day the previous week. With this trend and constant public pressure, it seems like Japan will finally start letting non-tourists into Japan again. I don't want to count my chickens before they hatch, but hopefully we'll stay open "for good" or at least long enough for the rest of our team to move to Japan. They've been waiting for over a year now.
    • I ordered two books that I'm really looking forward to reading: Curbing Traffic: The Human Case for Fewer Cars in our Lives and Saving Us: A Climate Scientist's Case for Hope and Healing in a Divided World. The first I suspect may just be preaching to the choir for me, but I know I'll learn something from it. The second, I read the sample chapters a month or two ago and I really enjoyed it. I got both of them in print, rather than e-books, as per usual. (I was quite tempted for the Kindle versions, and they're easy to read that way, but I want to spend less time looking at my phone).
      Love the covers!
    • I discovered The Linda Lindas, an all girl punk band from L.A. (the YouTube offers a good suggestion for a change). Really good music. My favorite so far is Missing You, about being stuck in the house during the pandemic. And the line about wanting to eat at grandma's place is punk as f.
    • As part of my reconsidering solar / batteries for the house, I did some searching. And in that search I discovered that a) I can get a Tesla Powerwall in Japan and b) Despite being double the capacity (13.5 kWh), they seem to be cheaper than domestic counterparts (6.5 kWh).

      I've asked a local installer for a quote for a system and I'm patiently awaiting it. My theory is that it will cost a bit more than the all Sharp system I was quoted before, but who knows.
    πŸ”—permalink
Previous 114 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.