Tochigi – A Little Piece of Heaven

This past weekend I had the opportunity to visit Tochigi for some much needed rest and relaxation. While it was just a weekend trip, I think I’ve fallen in the area.

The pace of life and the treatment of fellow humans was the most welcome change. In Japan, there’s this concept of “Slow Life”. Slow Life is the simple idea of living life simpler and slower. The ideals of organics and local food are part of Slow Life as is the idea of natural goods. So, you will often see a lot of earthen colors, natural woods, and the like. Slow down. Enjoy your coffee. Notice your surroundings.

I strive for Slow Life, but as I live in the Yokohama/Tokyo area, where the pace of life is decidedly Fast Life, can make this difficult. Experiencing Slow Life, if even for the weekend, has given me enough of a taste that I think I know how to get there from here.

The first place we went to was a cafe for lunch called Cafe Shozo. Approaching the cafe from the dirt parking lot the first thing we see is the following sign.

Sign

It says “Please don’t be a nuisance to the people around you.”

We sat outside in perfect autumn weather, sunny with a slight chill in the air. I ordered an egg sandwich with some french roast coffee.

Sandwich

After lunch, the next stop was to go visit some Llamas on a Llama farm. We couldn’t really pet them, they were cute. Minus the spitting. Thankfully they didn’t spit too much.

The short hike up the mountain to the farm was enough to make you feel like you were a million miles away from the city and all of the stress it brings with it. IMG_1678

Alas, it was getting late, so we decided to head into town to a group of shops where our friend works. Walking

We first stopped at a used book store. The atmosphere at the store was really great. They played classical music and they had a room where you could sit, drink tea, and write letters or read. IMG_1748

Walking to some of the other shops in the area, we saw the owner of Cafe Shozo roasting some coffee at his shop in town. We talked about coffee and how fresh roasted coffee is catching on in America and Japan. IMG_1754

Staff waving goodbye at the cafe upstairs. IMG_1759

Posted in Cafe, Food, Japan, Travel | Leave a comment

Fireworks in Futagotamagawa

After almost 3 years in Japan, I finally went to my second Hanabi (fireworks). However, this is my first real time attending. That is, arriving early, finding a good place, putting out a tarp, and having a few beers and relaxing. Summer entertainment is top notch in Japan.

I should have read a bit more about taking photos of fireworks before going as I could not figure out the proper settings to really make them come alive. Hence no photos. However, there is a video at the end of the post that turned out pretty well. All photos shot with a Canon Kiss X3/500D.

IMG_1489

IMG_1468

IMG_1435

Posted in Japan, Travel | Leave a comment

Detect Language in WordPress in Multi-installs

Problem

When using wordpress our theme (or some other component) might want to check a wordpress defined variable. In a regular install of WordPress (single site), you can access them directly because they are defined in wp-config.php.

//wp-config.php define(‘WPLANG’,'ja’); //somewhere in my theme echo WPLANG;

We can access this on only the base site of our multi-site install. However, if we use it, we would have to litter our theme with inconsistent access methods, or worse, duplicate code depending on our site.

How can we access this in our multi-site install?

Solution

You can define variables in wordpress via the web interface. Strangely, these aren’t run through define(), hence the above doesn’t work. I end up with something like the following:

//base site echo “Language: ” .WPLANG; // Language: en-US // secondary site defined as ja in the settings.. echo “Language: ” .WPLANG // Language:

If you’re checking the language, nothing appears. As luck would have it, you can simple use the get_bloginfo() method to pull this same information.

if(strcmp(get_bloginfo(‘language’),’ja’) == 0) echo “日本語”;

Conclusion

This might not map for all variables that you can define for wordpress in wp-config.php. Moreover, the inconsistency of naming is rather frustrating. What is defined as WPLANG is accessed via get_bloginfo(‘language’); Sometimes words are abbreviated and other times they aren’t.

Posted in PHP, Wordpress | Leave a comment

Freelance Switch

After just over a year, my career as a teacher has come to an end. By my own choosing, no less.

The year I spent teaching English was not something that I had planned at all. In fact, it was something I was desperately trying to avoid because I didn’t want to become “just another English teacher” i.e. The stereotype.

Looking back on it, I know it was good for me. I was able to see another level of Japan I hadn’t seen before. I became very comfortable speaking and presenting in front of largish groups (40 or so people). I grew.

I learned to not take myself so seriously and discovered what I was looking for in terms of working. Starting last week, I’ve started working for myself. I am now a full-time freelance programmer.

And I couldn’t be happier.

Posted in Japan | Leave a comment

Matsuri in Chikura – Day 2

Waking up at 8am on Day 2, I had no idea how difficult the day was to be. I had heard that I was going to be carrying the children’s mikoshi. I had seen it, it looked much smaller than the regular mikoshi that I had carried the day before.

Continue reading

Posted in Japan, Travel | Leave a comment