-
Checkin to SOTETSU GOODS STORE δΊδΏ£ε·
Finally got the yellow train! -
byA 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
byThe 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
byThis 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 %} -
by
-
π Treat yourself to the 90s club aesthetics of the Wipeout games
byVirtual 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. -
The Week #58
by- Delta continues its rise in Japan. I don't have much to add beyond "wow, politicians are daft". Ignoring citizens when they overwhelmingly didn't support the Olympics continuing, holding the Olympics, then telling citizens to just forget about traveling home for the holidays...I understand the request (and agree with it), but people aren't going to listen. It's like throwing a giant house party, then the next day, hungover, telling the rest of the neighborhood they can't throw parties β you've lost moral authority to make such requests.
- It's been raining non-stop for what feels like a week. Areas in Kyushu have gotten a meter of rain in a couple of days. The constant rain has saturated the ground and there's mudslide warnings in much in the mountains. How saturated you ask? Water is coming up from the ground where it shouldn't.Β While the 19 - 22 degree days have been a break from the usual 33 degree summer days, I think I'm ready for some blue skies.
- Last week was Leo's "summer vacation" from school. We didn't go much of anywhere, but Leo got to play with his cousins almost everyday as they were at the grandparent's house nearby. I know he's growing up because he declared that he's not going to school and his still on vacation. π€£
- I started working on Tanzawa again for the first time in what feels like ages. Which is funny as just a couple of weeks ago I said I wasn't going to work on it for a month. Tanzawa Trips is one of the "tent pole" features I had in my mind when I first decided to build a blogging system and I'm happy to finally be starting it.
-
π koaning.io: My New Home Setup
byBetter Patterns for Development Work.
Despite my undying love for my mid-2014, I've been itching for a new computer for the better part of a year. I really like this idea that Vincent has setup working: a beefy Intel NUC PC running Linux to handle Docker etc.. and uses VSCode to develop on it from his Mac.
I've heard of people doing this before, but they're usually using a terminal for all of their development on a server in the cloud.
While I'm reluctant to use VSCode (because I'm still not sure I trust Microsoft yet), it appears a similar can also be done with PyCharm. Maybe this is the solution to my building a PC/getting a PC itch.- Tagged with
- computing
-
byFinally started working on Tanzawa trips. The idea is to let you link your status, photos, blogs, and checkins from a trip together in a nice package soΒ you can share your journey.
Tanzawa Trips -
Checkin to IKEA Restaurant & Cafe (IKEAγ¬γΉγγ©γ³&γ«γγ§)
Plant balls