• The Week #59

    • Leo went for a haircut this week at a different place than usual. Usually he goes to this hairdresser that we've known a long time, but she has some equipment just for kids setup. Like instead of a regular chair, it's a chair with a car shell on it with a steering wheel. But getting there is a pain (you have to drive) and their parking sucks (the lowered bit of the curb isn't aligned with their 3 parking spots and not 3 spots wide / they're on a corner which gets constant traffic, so timing of when to back in or back out is no fun), but I digress.

      This time he went to another hairdresser we've known for ages as well. He's really into his craft, does contests and such, but he doesn't have anything special for kids. But it's so much easier to access (next to a train station) and there's a mall nearby for afterwards we decided to give it go.

      Turns out, Leo did great. He didn't care about the car-shell chair. He didn't care that he couldn't watch Anpanman while getting his haircut (which I was apprehensive about anyways). Instead he was chatting up the stylist that was doing his hair. Saying things like, "I have off today, but tomorrow I go to work (kindergarten)", or telling about himself "I speak can English.", and "Densha" is "Train" in English.", or pointing to his Dr. Yellow shoes "Yellow Train".Β 

      Way to go Leo. πŸ™ŒπŸ»
      Β 
    • I managed to spend time on Tanzawa this week and I launched a minimal viable version of Trips.Β  It's not finished (the views still need to be optimized for mobile), but it's good enough.
      Blog collections as Trips
    • I imported all of my Swarm checkins into my blog (via micropub) using Swarm-Checkins-Import. There's still some data in there that Tanzawa can't import (at all? yet?) that I'd like to add, namely the venue type (restaurant, park etc...). Why import all of your checkins as blog posts?

      Having my checkin data as blog posts allows me to go back and collect them into trips, which I'm really looking forward to doing. It also allows me to start building fun maps (though it isn't a cluster map, despite the url).
      My checkins on my site!

    • Yokohama had mayoral election and it turned out how I hoped: the center-left (opposition) party took the reins. I'm excited about it not only because the new mayor, Takeharu Yamanaka, is (literally) 30 years younger than the current mayor, but also as he's opposed to turning Yokohama into a casino, he wants extend city covered child-healthcare benefits until middle school and other parent friendly policies, and most of all, he takes climate change seriously. A new leaf for Yokohama, I hope it's a trend for the upcoming general elections this fall. ( Sidebar: I really like his .yokohama domain. I totally want one, but have no idea what I'd do with it...maybe I can find some open-data to map?
  • Response to A DIY E-bike Conversion on the Cheap

    Electrifying a bike can be electrifyingly easy
    Coolest thing I've seen all day (granted it's still 6:30am).
  • Still a bit of a work in progress, but I think I've got the Trip list page sorted. Clicking on the title or the map takes you to trip detail page. Also introducing my first top nav link 😱
    Trips list page
  • Checkin to DEAN & DELUCA

    in Fujisawa, Kanagawa, Japan
  • Checkin to PRONTO

    in Fujisawa, Kanagawa, Japan
    Ice coffee while Leo gets his haircut.
    Iced coffee
  • Checkin to SOTETSU GOODS STORE 二俣川

    in Yokohama, Kanagawa, Japan
    Finally got the yellow train!
  • A bit more progress. Reworked the data model as I've figured out how I want the feature to work. Can also update existing trips, too.

    Almost finished Trip Form
  • Response to Three Years After Greta Thunberg’s Strike, Adults Are Failing Children on a Global Scale

    The fundamental goal of the adults in any society is to protect their young and do everything they can to leave a better world than the one they inherited. The current generation of adults, and those that came before, are failing at a global scale.
    I agree with that and I can't understand why the older generation doesn't seem to care. Is it really just "change is hard" and "not gonna effect me"?

    Using my talents to make a direct impact to allow for systemic change is my major motivator for changing jobs.
  • How to Handle Pluralization and Internationalization in Django Templates

    This is written in the docs, but it was a first time for me to handle. Your templates can start to get very verbose when you really start supporting i18n support.Β 

    For strings directly in your templates you can use the blocktrans plural tag. ( Note this changes a bit with Django 3.2, blocktrans becomes blocktranslate ).

    {% load i18n %}
    {% blocktrans count counter=object_list|length %}
    {{ object_list }}δ»Ά
    {% plural %}
    {{ object_list }}δ»Ά
    {% endblocktrans %}

    For master data that has a dedicated DB column, you can use the get_language_code from the i18n package.

    {% get_current_language as LANGUAGE_CODE %}
    {% if LANGUAGE_CODE != "en" %}
        {{ my_model.foo }}
    {% else %}
        {{ my_model.foo_en }}
    {% endif %}
  • Making a bit of progress on the create trip form.

    A bit of progress
Previous 133 of 359 Next