-
byIโ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. ๐ -
The Week #75
by- 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.
-
Picking Your Mode of Transport
byI can get from my house to the in-laws three different ways: by car, by subway, and by bike.
The drive from my house to the in-laws, according to the Honda app linked to my car, emits about 200g of carbon into the air. That's not including the other externalities such as local air pollution, noise, and just being traffic. It costs about ยฅ100 in fuel and maintenance. This is only economicaly because a neighbor lets us park on some of their land for free. Otherwise we'd need to add ยฅ400 - ยฅ600 for temporary car storage. There is no view, just narrow roads. Depending on traffic, it takes about 20 - 30 minutes and I arrive feeling stressed.
Going by the subway costs ยฅ252 one way and there's a 10 minute walk on either side. This is more efficient than the car because a) there's many more people riding the same vehicle, b) it's electric (though that power may be coming from coal). The view is nothing, because it's mostly underground. Total trip time is about 30 - 35 minutes.
Lastly, I can go by bicycle. It costs me nothing. It's powered by peanut butter and bananas. The view is rice fields and a river. I arrive feeling happy and calm, because I was looking at nice scenery and getting some exercise.
While the concept of a personal carbon footprint was invented by big oil,ย each trip we can take that doesn't emit carbon emissions does make difference. Each trip is an opportunity. An opportunity to pick the means of less impact. Less noise. Less pollution. Less traffic. Less carbon.
But it's also an opportunity to inspire your community. It's an opportunity to be the change you want to see. At first it might just be you. But someone might see you and think "I can do that." and take their bike next time. And someone seems them riding their bike and has the same thought. It an opportunity to normalize riding a bike as transport in your community.
More people ride bikes when they see people riding bikes. More people riding bikes means more demand for proper infrastructure. More people riding bikes means less local air pollution and a happy, healthier, calmer community.
When you have the choice, take your bike. -
byI had a really neat idea about Tanzawa ๐ก. I could use the django sites framework to allow one to manage multiple blogs from a single Tanzawa instance. My inspiration was how people used to have a photo blog separate from their main blog, you could do it with Tanzawa, too. I was also thinking about my not often used anymore Instagram account and how that's just a photoblog, really.
It would still be a bit of work, but not too much. I think I'd just need a table to relate streams to sites and update the public views to take that into account. -
Checkin to Taniya (่ฎๅฒใใฉใ ่ฐทใ)
by in Chuo, Tokyo, Japan