🗻 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
  • How to Split Commits

    Dec 19, 2021
    by James
    Sometimes in a rush developing, I'll commit two distinct changes in a single commit. From a code perspective, this isn't an issue because the code works. But from a systems perspective you can no longer split changes from A and B. They're forever married. 

    Splitting those changes into two commits will allow us to keep a better history of the system and allow our pull request to "tell a better story".

    We can fix combined commits with an interactive rebase. I use PyCharm for part of this in my regular workflow at work, so rather than providing a concrete example, I'll instead summarize the procedure.

    • git rebase -i origin/main  (or whatever branch you rebase on to) to start an interactive rebase.
    • Find the commit you want to split and mark it as "edit"
    • git reset HEAD~1
    • Add the files / changes for change A, commit
    • Add the files / changes for change B, commit
    • git rebase --continue

    The "secret" is that when you edit stops the rebase after the combined commit. By resetting HEAD~1, we effectively undo that commit. But since it's a soft reset, the changes are not rolled back, just the commit. This allows us to tweak and commit individual parts separately as desired before continuing to the next commit in our branch.
    🔗permalink 3 interactions
  • Checkin to Enoshima Aquarium (新江ノ島水族館)

    Enoshima Aquarium (新江ノ島水族館) 35.30953082715011 139.4798469543457
    Dec 18, 2021
    by James
    in Fujisawa, Kanagawa, Japan
    Would’ve been nice to not have to protestors out front. I get it though. Nice view 😍
    🔗permalink 5 interactions
  • Response to Muffy Van Moof’s Maiden Voyage

    Dec 17, 2021
    by James
    I went to the dentist and when I returned to the bicycle rack I discovered my broken lock laying on the pavement. No bike. I looked at the security guard standing by the door, pointed, and gave him a look. He said, “Oh. That was your bike?”
    ...
    But San Francisco has lots of hills and the difference between a fast easy bike ride vs. an arduous uphill journey is rendered moot with just a teeny tiny bit of extra oomph.
    There's heaps of hills in Yokohama, too, and the extra oomph makes all the difference. It's so much easier to navigate and park our bikes than a car. And with the assist even with 15kg of kid on the back,  the steepest hills remain surmountable without breaking a sweat. This machine fights climate change 🚲.

    Also so nice to see the photos, of just how common e-bikes are becoming in US. And those bike lanes and some proper infrastructure. 😍
    🔗permalink 4 interactions
  • Checkin to 横浜市泉公会堂

    横浜市泉公会堂 35.41832830649549 139.4892236332842
    Dec 14, 2021
    by James
    in Yokohama, Kanagawa, Japan
    Waiting for a Christmas performance by Leo’s pre-school to start. He’s playing a sheep 🐑.
    🔗permalink 4 interactions
  • The Week #76

    Dec 14, 2021
    by James
    • For a while it's felt like we don't have enough hands at the house to both do the daily routine and do cleaning beyond the basics. There's always something that needs to be done (dishes, laundry, dog walking, teeth brushing...) and we're basically just treading water, or so it feels like.

      We've made an effort to automate where we can already. We installed a (tiny) dishwasher when we bought our house a few years back. We use the dryer built into our washing machine for ~half of the loads of laundry (the rest hang outside, as you do). They help a lot. But the one thing we haven't done is automate our vacuuming. I've probably ranted on this blog about our vacuum before, it sucks (🥁)1.

      We bought a Roomba i3+, named Wall-E, to see he can help us remove one task most of the time.  I'll still need to move him about sometimes (stairs), but we should be ok without vacuuming nearly as often. At least in theory.
    • Last week I said I'd try to get Leo to double or triple his time pedaling while riding his bike from 0.5 seconds. I vastly underestimated him as he can ride his bike! I'm amazed. He was so proud of himself he had to tell all the parents in his vicinity. Now the big kids rode bikes like him.

      Splitting learning a bike into two stages: learning balance, then learning pedaling is a much quicker way to learn to ride a bike.
    • We had a Christmas social at work. It was the first time to us (or at least me) to go out as an entire group and it was great fun. It was good to get to know my co-workers better and share some laughs.
    • I'm not usually a huge fan of listicles, but Jacob shared this 52 things I learned in 2021 list and there's a couple of gems. The most mind-blowing for me was:

      "Until 1873, Japanese hours varied by season. There were six hours between sunrise and sunset, so a daylight hour in summer was 1/3rd longer than an hour in winter. [Sara J. Schechner]"

      Completely 🤯.
    🔗permalink 4 interactions
  • Response to GNUstep: Open-source, Object-oriented, Cross-platform Development Environment

    Dec 13, 2021
    by James
    GNUstep is a mature Framework, suited both for advanced GUI desktop applications as well as server applications. The framework closely follows Apple's Cocoa APIs and is portable to a variety of platforms and architectures.
    Reading this comment really brought back memories of being an Objective-C developer in the early MacOS X days. One thing I lamented in those days was that whatever I wrote was stuck on the Mac and GNUstep gave me hope that it didn't need to be.

    High school me used to think how cool Objective-C and Cocoa was and how it was the future. And thanks to the iPhone, for a long time I was right.

    But the web won the war for Cross-platform development and most days I'm glad it did.
    🔗permalink 4 interactions
  • Checkin to TGオクトパスエナジー株式会社

    TGオクトパスエナジー株式会社 35.681335 139.787161
    Dec 10, 2021
    by James
    in Chuo, Tokyo, Japan
    Santa🐙!
    Santa!
    🔗permalink 10 interactions
  • Checkin to Tully's Coffee

    Tully's Coffee 35.67904593842302 139.7867173619426
    Dec 10, 2021
    by James
    in Tokyo, Tokyo, Japan
    Keema curry and veg pita looks nice. Been craving pita lately.
    🔗permalink 8 interactions
  • Dec 08, 2021
    by James
    I’ve been starting on a refactoring of Tanzawa to help improve maintainability.

    I’m taking a layered approach where each package is broken down into a data layer (models) at the bottom, queries (data access) above that,  application (business logic) above that and finally your views at the top.

    The idea being that the top layers can go down the stack, but upper layers can’t go up. I’m not sure if I’m going to enforce it via linting, but I probably will, eventually.

    We’ve been using a similar structure at work and once you get used to it, it’s quick to find the code you’re looking for and keeps things tidy. And linting helps enforce it when we forget or want to be lazy. 😀
    🔗permalink
  • The Week #75

    Dec 07, 2021
    by James
    • There must've been 3 or 4 earthquakes last week. I was jamming to The Beatles Magical Mystery Tour and, right as my train was about to pull up, I thought I felt something. Then a few seconds later the metal roof covering the platform started to creak and groan. Yikes. All was fine. Hope the big one doesn't hit anytime soon, but glad we anchored the fridge.
    • Speaking of the Beatles, Leo's really liking them. When I put on I'm Looking Through You on Rubber Soul reaction was immediate and he said "this song is good" (in Japanese).
    • Leo's begun to take more interest in the small bicycle he's borrowing from his cousin. He can keep his balance easily on his little pedal-less bike and this week we started practicing pedaling more. He's starting to get the hang of it and I was able to let go for about half a second. Going to see if I can double / triple that over the next week.
    • With super-low numbers of covid (average 101 nation wide / day and less than 1 death average) Japan feels like it's returning to the before times. This may be short lived with the new variant, but for now I'm trying to enjoy it.
    • Mentions from micro.blog seem to be working again (from other people). I didn't change anything, so it must've been a bug on their end not sending them. Either way, glad to see them going through again.
    • I think we've decided to hold off on getting a solar system on the roof for the time being. We'd be able to fit at most only 2.6Kwh on our roof, not the almost 4Kwh from our initial discussions. With a system that small we could augment our electricity usage, but there's no way we'd be able to generate what we use, let alone fill up a battery for nighttime usage. And with the FIT down to ¥17 /Kwh, the hope of making money on excess seems unlikely.

      Where it does makes sense to me still is that the cost of electricity is likely to continue going up. Having some panels would take the sting off during the day and having a battery would let me "fill up" when the electricity is cheap overnight.
    🔗permalink 3 interactions
Previous 116 of 357 Next
Reply by email
Powered by
🏔Tanzawa

← An IndieWeb Webring 🕸💍→
Photo of James Van Dyne James Van Dyne Japan

Web developer living in Japan.