• Checkin to ヴィ・ド・フランス いずみ野店

    in Yokohama, Kanagawa, Japan
    Sharing some bread with Leo.
  • How to Split Commits

    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.
  • Checkin to Enoshima Aquarium (新江ノ島水族館)

    in Fujisawa, Kanagawa, Japan
    Would’ve been nice to not have to protestors out front. I get it though. Nice view 😍
  • Response to Muffy Van Moof’s Maiden Voyage

    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. 😍
  • Checkin to 横浜市泉公会堂

    in Yokohama, Kanagawa, Japan
    Waiting for a Christmas performance by Leo’s pre-school to start. He’s playing a sheep 🐑.
  • The Week #76

    • 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 🤯.
  • Response to GNUstep: Open-source, Object-oriented, Cross-platform Development Environment

    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.
  • Checkin to TGオクトパスエナジー株式会社

    in Chuo, Tokyo, Japan
    Santa🐙!
    Santa!
  • Checkin to Tully's Coffee

    in Tokyo, Tokyo, Japan
    Keema curry and veg pita looks nice. Been craving pita lately.
  • 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. 😀
Previous 112 of 353 Next