πŸ—» 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
  • Response to A DIY E-bike Conversion on the Cheap

    Aug 23, 2021
    by James
    Electrifying a bike can be electrifyingly easy
    Coolest thing I've seen all day (granted it's still 6:30am).
    πŸ”—permalink
  • Aug 22, 2021
    by James
    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
    πŸ”—permalink 2 interactions
  • Checkin to DEAN & DELUCA

    DEAN & DELUCA 35.33859806415866 139.4471050805835
    Aug 22, 2021
    by James
    in Fujisawa, Kanagawa, Japan
    Avocado toast.
    Millennial as charged.
    πŸ”—permalink 7 interactions
  • Checkin to PRONTO

    PRONTO 35.3375995837076 139.4469413765614
    Aug 22, 2021
    by James
    in Fujisawa, Kanagawa, Japan
    Ice coffee while Leo gets his haircut.
    Iced coffee
    πŸ”—permalink 11 interactions
  • Checkin to SOTETSU GOODS STORE 二俣川

    SOTETSU GOODS STORE 二俣川 35.46294384340541 139.5316490290749
    Aug 21, 2021
    by James
    in Yokohama, Kanagawa, Japan
    Finally got the yellow train!
    πŸ”—permalink 2 interactions
  • Aug 21, 2021
    by James
    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
    πŸ”—permalink 1 interaction
  • Response to Three Years After Greta Thunberg’s Strike, Adults Are Failing Children on a Global Scale

    Aug 20, 2021
    by James
    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.
    πŸ”—permalink
  • How to Handle Pluralization and Internationalization in Django Templates

    Aug 20, 2021
    by James
    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 %}
    πŸ”—permalink
  • Aug 20, 2021
    by James
    Making a bit of progress on the create trip form.

    A bit of progress
    πŸ”—permalink 1 interaction
  • πŸ”— Treat yourself to the 90s club aesthetics of the Wipeout games

    Aug 18, 2021
    by James
    Virtual clubbing, you say? It’s tough to top Psygnosis’ Wipeout series and its legacy, starting with composer Tim Wright aka CoLD SToRAGE. So let’s queue up a mix.
    Great mix.
    1. Tagged with
    2. video
    3. nostalgia
    4. music
    πŸ”—permalink
Previous 138 of 364 Next
Reply by email
Powered by
πŸ”Tanzawa

← An IndieWeb Webring πŸ•ΈπŸ’β†’
Photo of James Van Dyne James Van Dyne Japan

Web developer living in Japan.