Five Capitals of Japan: V Tokyo

When Tokugawa Ieyasu took over and became Shogun, he centered his clan and government on a tiny backwater village called Edo in the Kanto plain. The era of near constant warfare was traded overnight for perpetual peace, and the country reacted to a 160 period of disorder, death and chaos with a total commitment to their opposites: caste, social station and duty all became rigidly fixed, determined by birth. The mass armies of Oda were banned, as non samurai were forbidden to own weapons at all, while samurai were required to. A daimyo lord could only serve as a close shogunal advisers if his clan had submitted to the Tokugawa before 1603, when one final battle made it obvious to everyone that the Tokugawa would prevail.

The armor and weapons of the period became ridiculously overdecorated and impractical. This period invented the myths of the legendary warriors of old, master of blade and halberd who feared only dishonor and never death. A ruling warrior caste that no longer had wars to fight had nothing better to do. The armor and weapons of the period became ridiculously overdecorated and impractical.

And the interfering Westerners, especially the Christian missionaries who meddled and messed around so much during the wars, were eventually booted out altogether, and Christianity became the only religion actively banned in Japan. Outside contact and trade was confined to a single annual ship the Dutch alone could send, along with the usual share of piracy and smuggling. But despite the lack of official outside trade, the era was one of creation, and prosperity. Edo grew almost overnight into the largest city of the world, stealing both Kyoto’s role as the center of culture and power, and Osaka’s as the center of trade and commerce.

The growth eventually would end the rigid social system that created it; by the time that American Commodore Perry sailed into Yokohama Harbor in the 1850s demanding access to trade, the warrior caste was no longer capable of resisting them. Their nominal position at the top of Japanese society was already seriously questionable, as they “ruled over” a far wealthier and more inherently powerful merchant class; samurai forbidden engaging in commerce often ended up in debt up to their eyeballs to those merchants. Some of the powerful clans kept out of high office started acting up again.

And in the mix of the crisis, the emperor was suddenly revived as a symbol of national unity and purity. Perhaps the Shogunate was incapable because they’d upset the ordained order of Japan. Japan was only weak in the face of the Westerners because they’d sidelined their true divine ruler. After some more drama, therefore, the Shogunate collapsed and surrendered authority “back” to the Emperor, in a period known as the Meiji Restoration. But at this point Edo became the official capital, as the Meiji Emperor abandoned that spare palace in Kyoto in favor of the lusher Tokugawa palace, now repurposed as the Imperial Palace. Edo therefore also now changed its name, to “Eastern Capital”, or Tokyo.

What did not happen is the Meiji emperor began issuing edicts and leading Japan directly into a new era of traditional culture and ancient spirit.  He was 16 years old, and had zero education in practical government. Instead another cast of characters took power around him as advisers, councilors, and the like. That grew into a not-quite-democracy, more or less around the Prussian lines where a representative Diet influenced but did not control an Imperially run civil and military government. If the Emperor did open his mouth now and rule on something, it was taken as divine word; but that encouraged them mostly to keep their mouths shut. It remains incredibly unclear just how much individual authority, and therefore blame, the emperors had for what followed.

But whoever was actually in charge, eventually the technical gap between the West became too obvious to deny and instead of embracing classic samurai culture, the Meiji government went whole hog for modernization and industrialization. That new power, combined with a belief that the restoration of the Emperor’s divine guidance meant that Japan was unlocking its superiority and potential once and for all, meant the dominant government figures felt now they could never lose. You know how that story ended.

Tokyo recovered in the aftermath. The emperors once again retreated into their old nerfed role as figureheads and ritual leaders. The emperor isn’t even allowed to quit — the Heisei Emperor, Akihito, grew too old for the job about a decade ago, but he had to obliquely hint that maybe someone of his age might like to step down and hope the Diet picked it up, because the emperor isn’t allowed to speak on political matters either. They did, and passed a law letting him retire, but only him — future emperors will have to hint again if they want to quit. So if you want to see the world’s fanciest prison, you can stroll the east gardens of the Imperial Palace, which lays alongside the Ginza neighborhood. They’re nice, but honestly the Meiji Jinju, the shrine to the Emperor during the change, was nicer, and doesn’t involve a security screening. We’ll return there.

I confess I don’t always do well with capital cities. Crowds are overwhelming, and the size and constant noise is draining for me. Any large city has those things, but a capital center is to some degree about being crowded and loud. It embraces the ethic proudly — New York is the “city that never sleeps”. And I wonder why the hell not — sleep is awesome. You feel more oafish if you don’t know the drill at a restaurant with a big line. Reservations and planning is hard on outsiders. I admit I retreated to Uber Eats in the hotel more often here, though I did get some very excellent sushi, and hit up a Ramen shop with a flying fish based broth after figuring out you order your food in advance from a machine, and then stand in line with your ticket for your turn to slurp away. But still, it’s tiring. And that’s why it’s important to me to go places I’m not supposed to go, when I travel. One of my favorite stops in Japan was the non-capital Kanazawa, which I’ll write about later. Never heard of it? That’s why I went. So I’m near guaranteed to hate a trip someplace where I limit myself to the capital city.

Still, Tokyo offers a hell of a lot. I stayed in Ginza, which is the Fancy Shopping District, more or less — high end brands abound here, and since I was there in early December it was all dolled up for Christmas. The restaurants there were a little difficult for an outsider to manage — they tended to always be full up, with complicated systems for ordering and managing the wait. But one of the nice parts about being the Monstrous White Guy in Japan is nobody expects you to be polite or knowledgeable, and they’re even pleasantly surprised when you’re patient and reasonable with your own linguistic failings. Most Japanese folks I encountered in service roles and the like did have decent English, but not excellent. It was more than good enough to order dinner or ask where the restroom is, but not often good enough that they could carry a conversation. That’s no shame on them; almost all of the English I heard was better than the six phrases of Japanese I knew. But speaking slowly without sounding patronizing can be tough. And even after I got back home, I ended up ordering coffee in slow simple English out of habit a few times.

Speaking of, it’s nice to know a few. When you’re getting your food at a cafe, an arigato gozaimasu is traditional. As you’re leaving, it becomes arigato gozaimashita, which sort of combines a thank you and a goodbye. You will get welcomed when you walk into a store but a head nod is enough, there’s no polite reply. And finally a sumimasen will do if you want to ask for the check, or bump into someone in the subway by accident. Otherwise, there’s not much chitchat. Japan’s a place with a strong culture of internal privacy, like Paris and my native Boston. If you spend your time surrounded by crowds of strangers, you retreat inwards a little, I think. It was walled off enough that even I relished the few I did open up — a calm slow conversation with an older man from Saitama City as we walked to the Nikko mountain shrines; the explanation of the printmaker’s craft I got from a shop owner in Tokyo; or the outrageously funny dinnertime conversation I shoved through Google Translate with the young staffers at SUPER MEAT BROTHERS in Kanazawa.

Tokyo has lots of the iconic; the big Shibuya street crossing, which honestly I don’t get. It’s a big friggin crosswalk. That’s it. The Shinjuku area is where you’ll find enough loud blinking signs to turn anyone to a seizure. It’s worth going through the warren of the Yodobashi Camera Store for the sheer ridiculousness of it all — the signs, the colors and the loudspeakers will all constantly shout at you, and the store announcements have that shade of mis-translation that renders its pronouncements a touch sinister: “Yodobashi Camera’s products ARE the best ones for you!” Is that slogan, or command? I was a bit disappointed that I could not find a better case for my rare-in-America Sony brand cell phone; I figured there was a chance here in the land of Sony itself, but mostly they sell iPhone cases too. I also was wondering if I could get a tariff-free deal on lenses for my Canon camera, but that too proved untrue. The exchange rate was favorable, extremely so for hotel rates and foods, but the durable goods proved undiscounted.

Tokyo was full of small serene fountain pen stories. At one I found a steal of a gold nibbed pen in excellent condition used, and the staff member brought me through the same ritual of wrapping and sealing it with the care due a far more expensive item. The teamLab museum was a riot, something I did with some hesitance but enjoyed a lot. I walked through the Akihabara Electric City and saw shops selling gear and items related to hundreds of anime series I’ve never heard of. It’s also a center for French maid cafés, which, well, sell overpriced food and various shades of companionship from young female staffers to customers who are generally not young or female. I gather those are more rare post Covid anyway.

The Ema of Tokyo
And my last impression for this run through the capitals was of the Kanda Myojin, the main shrine in Akihabara, dedicated to Daikokuten, deity of trade, fortune and wealth, and Ebisu, god of fishermen, merchants and good luck. Those two mandates, together with the location, make it the ideal shrine for your tech bro worship needs. Tech company employees come here to pray for success in their next IPO, and that type of thing.

I’m making it sound horrible, and to some degree it probably is. But it’s also an attraction. At Japanese shrines, there’s always a few displays of ema. An ema is a small wooden board, you can buy for a little money at the shrine as an offering. You write an intention, prayer or hope on the ema, or maybe draw an image that means something to you or the purpose of the shrine. And then you hang it on a peg on these public boards, and leave it there as an intention. Eventually the priests will hold a ritual burning of the ema and clear space for the next batch. I’d seen hundreds of ema at this point, at temples in Kyoto or the Fushimi Inari or Nara.

But the ones at the Kanda were more a direct attraction than theoretical. For one, a lot of them here are art — folks do drawings of tech themes, or anime characters, that are frankly amazing. That was the prime reason I went over to see them up close, and it was fantastic. But then when I later walked in the Meiji Shrine, it made me pay more attention to them. The shrine sits at the center of a evergreen wood, and even in winter lays shaded and dark, with the soft cool smells of the forest. As much as I said most shrines here feel wrong, this one is closer to my Western grafted ideas of a holy place. And so I strolled over to see the ema.

In Kyoto and Nara, most of them were in Japanese, Chinese or Korean. I let their contents remain a mystery. Ema are supposed to be public, but holding the ol’ phone up to run them through Google Translate seemed disrespectful. But here, I could read about half of them. Maybe because Tokyo has more Westerners, or perhaps because they had signs explaining the purpose and practice of the ema. Most travelers confront situations where we don’t know how to do something Properly. The only way to participate is to dive in, and hope that good intentions overrule our ignorance of the rules. Doing that in a market or a game is great. But I don’t think it wise to wing it at a temple or place of worship. That’s how a Jewish friend ended up lined up for communion at a Catholic funeral mass.

But if they tell you how, go ahead!

In the west, our prayers aren’t logged like this; they’re thought silently at the heavens. My old Catholic church wants to hear your sins expressed out loud, but please keep your homes and dreams to yourself. But here, you can read through the bunch. Some were really pedestrian and materialistic, of course. A child’s handwriting asked in French for PSG to prevail in this year’s Champions League. A family asked that their child get into Brown. A new couple just wanted a lot of money.

Most hopes were for standard but hardly trivial things — good health, long life, and prosperity for their whole family. Those wishes are for content people — their lives are generally good, and so all they ask is that nothing come along to upset it. More of the same, please! It’s reassuring that so many of the prayers fell into this category. And others asked for access to that life — people without families wanted to find love to start one, or someone to share the hard times with.

And then, others bore the residue of heartache. One man asked for nothing, but expressed the hope that his granddaughter was looking down upon him from wherever she may be, and that she took pride in her sister’s success. Another asked “I need help finding direction and focus. I do not want to be lost.” These little balsa panels seemed too light to bear their words.

Every panel is the same cut, the same shape, the same wood. They each cost the same 500 yen, which is about four bucks at the moment. They will be treated with the same reverence by the shrine during the ritual, whether it’s French soccer matches or lost granddaughters. And who can know what becomes of them afterwards? I suspect that the Brown admissions office and Champions League results will be unmoved by the influence of Emperor Meiji’s spirit. But whatever comfort is brought to a grandfather who had to attend his granddaughter’s funeral is worth the ritual. And maybe putting the words down onto wood will spark the direction that the lost soul is seeking. A lot of life, like Kyoto, involves trying to fake it until we make it.

As I was leaving the shrine, the sunset hit just the right angle that it lit up the tall canopy of trees from below, painting the roof of the forest in bright gold. Crows were loud here, and another type of bird unfamiliar to me chirped higher and louder, but they softened a little in the dying day. And then loudspeakers hidden in the trees crackled on, shouting at me in four languages that the shrine was closing soon. And one final lesson: Japan is very good at casting spells, but just as good at shattering them.

Five Capitals of Japan: IV Kamakura

IV Kamakura

Kamakura is a real catch it if you can reference to history, but despite the fact that most haven’t heard of it, it has a much more secure position on the list of the capitals of Japan than Osaka does. It was the real center of Japan’s political administration for a period from the 1100s until the mid 1300s, a period which included the successful resistance to the Mongol invasions with the help of the kamikaze, the divine wind. In other words: hey Mongols, before sailing out, check the weather!

When Kamakura was founded, it was cheerfully located at the ass end of nowhere. It’s a port city on the Kanto plain, which at the time was like America moving its capital to the Colorado frontier during the 1850s. That happened for a couple of good reasons. The system of an emperor retiring his ritual throne duties but keeping power had broken down into control by the Fujiwara clan of court nobles. But a number of rising competing clans descended from the Imperial clans themselves had risen up.

One of the reasons the Imperial line has lasted is they never lacked for heirs. Emperors had multiple wives, dozens of kids, and their brothers would have dozens of kids of their own. The line was safe, but that created risks of its own: too many heirs can be dangerous. If some outsider clan wants to take power, they can find some unhappy prince, make him the nominal leader of their cause, and toss out the current emperor. They can crown their purchased prince, and now they’re set and perfectly legitimate. So the Imperial clan would sometimes prune its ranks. They’d take a bunch of spare sons of lower-ranked concubines every now and then, and the emperor would “grant” them clan names. They’d enjoy high rank, and the clans formed — the Taira, the Minamoto, the Tachibana — became the nucleus of the new samurai military caste. But they’d never be emperors — remember, the Imperial clan had no name, so these nephews and younger sons were now no longer princes, or Imperial at all.

But they were still powerful, privileged and ambitious. And, as we’ve said, the retired emperor had proved that you didn’t need to be an emperor to exercise power. If a retired emperor could be the real power, why not an ex-prince? Or a powerful noble clan head? Or a military leader? Cue a war! In the aftermath, the Minamoto clan won out, winning the new title of Shogun, and seated their power around their own clan capital in the East. That proved useful to avoid and sideline the court intrigues and politics. The warrior caste was nominally subordinate to the throne, and kept up that pretense. If they were in Kyoto, they’d have to publicly defer to the higher rank of the emperor. So the Shogun just never went to Kyoto. But they too were not immune to power being flexible. The original Shogun’s grandson inherited young, which is always dangerous, and his rule was entrusted to a regent from the Hojo clan. The Hojo, somehow, never quite got around to restoring power to the main Minamoto line, and they were the real rulers of Japan for the Kamakura era.

So to recap, when the Mongols invaded, Japan was ruled by an Emperor (tenno), who exercised no political power. The emperor had a Fujiwara regent (sessho) a once powerful office that ruled “for” the tenno, but now was also sidelined. He also had a Minamoto clan shogun, who was titular head of the military caste. But the shogun had no more power either. The shogun now had a Hojo clan regent (shikken), and that guy was the one who actually called the shots against Genghis’s generals, despite being officially of mid-tier rank both on the Imperial court rank system and any org chart.

I know this is sounds insane on face — why keep so many high ranking nobodies around for funsies? A lot of it was about legitimacy; if you co-opt the power of the tenno but leave him in office, the country as a whole doesn’t notice or care like they would if you replaced him.  And Japan is not unique in this regard; ancient societies often constrained their divine rulers and their theoretically unlimited powers with ritual obligations.  If the sacred king can execute anyone or appropriate anything in sight, keep out of his sight. His Holy feet may not be polluted by touching the soil outside the sacred palace! If it helps, make sure he was always a governable child.  That way you can exercise the power of the emperor without losing the stored legitimacy of the traditional clan.

The label primitive may tempt you here.  But how are Charles III and his dukes and earls different?  Or the half dozen other remaining powerless monarchs in modern Europe?

Kamakura today is an appendage of the massive Tokyo metro. You take a train from there, past Haneda airport down to the southern coastline. Kamakura has none of that former-capital we’re-better-than-you feel you might pick up in Kyoto — it was last a capital in the 1300s. But that period coincides with the introduction of the Chan school of Buddhism from China, more famously rendered in Japanese as Zen. Zen temples ring the bowl of the city, providing stunning views of the town and the ocean beyond. It’s worth the shlep up to see the views. The town is much smaller than the other four; which makes it an easier place to wander around and find a cup of coffee or a lunch. The crowd does run to tourism, but not as heavily as you’ll find at the big sites in Kyoto.

Funnily enough, Zen is not the most prominent school of Buddhism in Japan — Jodo Shinshu is. Zen can’t claim even 10% of the whole. It did, however, market itself in the West better, stripping down its practice to a spare, meditation and insight oriented approach that was lighter on deities and potential blasphemies for a Christian audience. It’s a type of practice that feels compatible with monotheistic Western faiths. That’s no reason to skip Kamakura — just know that we may think of Zen as the “real Japanese Buddhism” at some level, but most Buddhists don’t.

I’m not much of a Christian, but I do admit there’s a funny disorientation for me when I go to shrines and temples here. There are temples as spare as a Calvinist stone chapel, and others as maximally decorated as the San Juan de Dios in Granada — where if it can be gold-leafed, it will be gold-leafed. All are unmistakably places for spiritual observation, but at the same time they’re so utterly different. The carved figures have facial expressions you’d never find in a Catholic church. Some are carved in repetitive rows that are unfamiliar, for purposes unknown to me. The colors run heavily to bright red. The layout feels wrong: many are built for continuous individual use, not oriented to mass collective ceremonies. Many rituals are conducted only by the priests or monks, or are held standing out in the courtyard; there’s no rows and rows of seats here for an obedient congregation to gather and be preached at.

So they’re beautiful, and fascinating, but it doesn’t feel right. We’re all subject to more influence of our own tradition than we realize. However, pursuing that feeling of wrongness is a good reason to travel. It helps you question things that deserve it. Its good for everyone, but especially the citizens of a giant country like America, to feel like a foreigner sometimes.

After seeing the temples and the town, there’s a ancient rickety little trolley like that you can pack yourself into and visit Enoshima Island. It’ll drop you on the mainland, and then you either bus or shlep along the long causeway out to the island. Be prepared to secure your hats, because the wind can whip right along the causeway with a fury. But the island itself is delightful; a forested over warren of hills, the whole island is a shrine to Benzaiten, the kami of music and entertainment. By day, the island has the closest sandy beaches to Tokyo — not normally much of a draw for me directly, since I never travel this far just to go to a beach when I’m ten miles from one at home. But it’s sometimes nice to get a walk in an open place like this if you’ve timed out on the crowds in Tokyo. However, if you’re not motivated by that, come towards the end of the day. You’ll find a shrine complex with buildings scattered everywhere, mildly overpriced restaurants with stunning views, and dozens of fantastic sunset angles on Mount Fuji across the bay.

Five Capitals of Japan: III Osaka

III Osaka ??

I stretch the definition of “capital” here, I confess. Osaka’s current boundaries does contain the sites of several of those early palaces built by the nomadic imperial court. Back then the town was known as Naniwa. But those aren’t why I think it’s fair to number it as a capital. During that 160 year long civil war, Kyoto was the symbol of power. It played home to the symbol of the Emperor and also the faltering Ashikaga shoguns. So it became a target, and was sacked and ravaged by a line of warlords. But Osaka avoided that war until the very end. It was New York to the Washington DC of Kyoto: the financial center, the trade hub, and the place where you could convert rice into gold — which was the underpinning of the entire samurai class’s power. To some degree the ancient dictate that *you don’t fuck with the money* protected it.

And so for a major part of Japan’s history it was the largest and richest city anywhere in the islands, too important even to allow a single lord to control it. It was the port city that lead to Kyoto and the entire Kansai; and the maritime roots run into the very ground here, as Osaka is criss-crossed by canals, such as the famous Dotonburi which is a fantastic Times-Squarish place to stroll along and much on a takoyaki or twelve. Times Square drives me crazy, but places like don’t. Perhaps it helps that I can’t understand what anyone is saying, and despite the noise and crowds I can just observe and think. But whatever it is, it’s touristy as hell, but for a reason, and worth a visit.

When I planned this trip I debated between staying in Kyoto and visiting Osaka, or vice-versa. The hotels in Osaka were cheaper, but history pointed me to Kyoto. I suspected the price difference meant Kyoto hotels were more convenient for what I’d want to see, so I went that way. But, I was wrong. It’s hard to point to why some places *feel right* while others don’t, but the energy on Osaka’s streets, the greetings when you walk into a store or restaurant, the looks people give you when you wave them ahead of you onto the subway escalator — it all made for a warmer, more welcoming time. It’s a little precious to over-generalize based on history, but it felt true that Kyoto was a city founded to keep the unworthy out, while Osaka’s history was based on welcoming in outsiders and finding them a place. At any rate, I don’t feel a burning urge to return to Kyoto, but I definitely spent too little time in Osaka.

The Big Draw in Osaka is of course the monstrous castle grounds in the middle of the city, whose existence is a hint that Osaka didn’t *entirely* avoid that great war. Oda’s betrayer, Akechi Mitsuhide, did not succeed in his coup — another Oda’s generals, Toyotomi Hideyoshi, executed him in the name of Oda’s heirs.

But we have to have a brief diversion here where I rant a little about the *Shogun* miniseries. This historical period is endlessly fascinating, full of living legends that later eras would use to invent the myth of the Great Samurai Warrior. But that picture: a stalwart swordsman heedless of his own death, obsessed with honor and duty, and unbeatable in a battle of the blade by today’s lackluster nitwits, is mostly nonsense. It’s the product of later, Boomer-style whining in the 1700s about how kids today have to so easy.

A 160 civil war is a crucible. Figures of great ability and ambition are no longer restrained by social bounds and station. These warlords were headstrong, legendary figures, but they dealt in betrayal and dishonor as well as anyone else, when it suited their ambitions. Hell, the sword wasn’t even their proper symbol. One of the real secrets of Oda’s success was that he quickly realized the potential of vast peasant armies armed with spears and muskets. A musket itself is expensive, but compared to the cost of a lifetime’s training for swordsman or archers, the total solider was very cheap, and a lifetime of training with a *katana* cannot stop a bullet. Oda’s style of warfare was about 50 years ahead of the Europeans who’d brought Japan those gun designs in the first place. The English sailor of the story is based on a historical figure, but his real value was in advising on *ship design.* The samurai by the era could have taught him musketry tactics.

So I say this in way of explaining the natural outcome of Toyotomi’s next moves. Oda’s designated heir died with him in the Honno-ji, and it was *completely unsurprising* that Toyotomi, a figure who had risen from the ranks of ordinary peasant soldiery to become one of the top warriors in all Japan, did not just calmly step aside for the next in line, but sidelined the whole clan and took power himself. Somehow he managed this without letting the *stain of great dishonor* force him to ritual suicide. Instead he finished the job of unifying Japan, and then shipped a vast army to conquer Korea with the eventual goal of overthrowing the faltering Ming Dynasty and becoming the emperor of China.

Yeah, he thought big. And he built the monstrous castle in Osaka as a center of his family and his rule, another reason why Osaka counts as a capital. But his wars in Korea ended up in disaster. And when he died, he’d recently killed off his adoptive heir because his first natural born son was recently born, and so he left a child in nominal control of Japan, and so his clan was ended the same way that he ended the Oda: his vassal Tokugawa Ieyasu isolated his heir in the castle, and eventually would besiege and destroy it, killing off the Toyotomi line. The Osaka castle that stands now, therefore, is a replica. So if you want to see the grounds and the gardens, go nuts. I’d skip the castle keep itself.

If you want history, take the train 90 minutes south and check out Himeji Castle instead. It too will be crowded, most of the year; but it’s worth it. If you time it right, you can go to Himeji during one of their nighttime illumination events, which can be pretty special. Japan is big on nighttime light festivals — there’s the great Kobe Luminarie in December, which I sadly missed, but I did catch the Chichibu Night Festival in Saitama near Tokyo, which was an absolute riot of hand-carried torchlit floats, the longest fireworks display I’ve ever seen, and enough street food and wine vendors that the line “beer me!” practically works just like that.

October 2024

TRAVEL

I had a fantastic time in Taiwan. First I got to see the country solo, though not so much of it as I had planned. I landed on the northern end of the island at the same time a typhoon was busy pummeling the southern. My side trip to see the old city of Tainan was therefore canceled; instead I stuck to the northern third, where the storm turned out to be a nothingburger despite two canceled schooldays.  But a train ride down to Hualien and a car tour of Jiufen and Shifen on the eastern coasts satisfied my standing urge to escape the city.  And Taipei is marvelously comfortable for an American.

After the solo portion, I was wrapped in the over the top hospitality of the parents of the Taipei American School debate program, where I was wined, dined and regaled with about 81,102 toasts, though I confess I didn’t count. I confess that for whatever reason Taiwan has never been on my priority list of places to visit. But now it’s on my list of places to return to.

One of the things I did manage while there is to spend a whole day writing travel blog posts from earlier trips, so my sequence about last year’s Japan adventure will be posting once a week until done. Let’s see if I can get more written between the end of that and now.

No more big journeys for me until Thanksgiving, when I launch on a European Gallavant.

TABROOM

We had a brief downtime on Saturday, which thankfully happened just as I was waking up anyway in Taipei. The downtime has apparently caused a fair fury of speculative debugging around the socials, because the error messages indicated that a disk was out of space. But the lesson of this speculation is that errors can be misleading if you don’t have the full picture.

Some myths, debunked: Tabroom does indeed run in the cloud, not on a server we run ourselves. That fact isn’t so magic as you might expect: all “the cloud” means is someone else’s server. Cloud services are still subject to the resource limits any other server has. In particular, database servers are tricky to parallelize, or run on multiple machines, so we are not vulnerable to a single instance’s downtime. So while our web servers run 2 instances during the week and anywhere from 4-16 instances during the weekend, our primary database server remains singular. That limitation is from the core tech, and is not specific to Tabroom. So, we are stuck with it.

The root cause of this downtime was not insufficient disk space. Tabroom’s database takes up 36gb of space; that’s all your registered entries, ballot comments, and event descriptions rolled up into one mess of data. The database has its own dedicated disk, separate from the operating system and general server it runs on. That disk currently has 128gb of space; not the largest, but we pay for fast instead of big here, and it’s still 4x as large as Tabroom’s data needs. It’ll do fine for a decade, and we can expand it at will when and if we need to.

That was not the full disk you were seeing errors about.

Instead, a badly written query created years ago for a rarely used results page that experienced a sudden surge in popularity this weekend. That query failed to limit its scope: in order to calculate its output, it was pulling every ballot and ballot score in Tabroom. In 2016 when it was written, that made it slow but not particularly noteworthy. In 2024, every time someone went to that page, a 23 gigabyte temporary file was created on the server disk to run this one query.

At that point, it was only a matter of time: no server can indefinitely handle several hundred 23 GB files being dumped on it. At 4:30 PM CST, the disk hit its limit. Kaboom.

Fortunately, it was a simple matter, once I woke up, to clear the disk, fix the query, and kick the server. That’s life when you’re the sole maintainer of a project sometimes. I simply cannot go back and test and check every one of the thousands of queries that Tabroom regularly runs. When I do confront something like this, I do a review and put up guardrails around this exact thing happening again, but that only solves for the problems I’m aware of. Are there other ticking time bombs in the code?  Probably! Is this true of every other online service on earth?  Definitely!

But I promise you the issue is not that we haven’t found a good enough deal on enterprise disks, or the NSDA is being cheap on the hosting provider. We’ve been pretty lavish this year in terms of server resources, actually. But this particular problem would have blown up no matter how much overkill we’d built into our hosting setup; it was simple the result of the terribly common human errors. That’s what my job is. Consider that your typos at worst can insult someone, or temporarily hurt a student’s grade. Mine can bring down most of speech & debate. No amount of paranoid care can entirely prevent that, even though I do take quite a bit of it.

The worst part of it?  That results page with the query doesn’t actually work properly anyway; its formatting is broken. And since people are for some reason now fascinated by this page, they won’t stop emailing us. I’m going to put up a notice about that, but perhaps will just take it down. There’s little value in spending a week trying to fix this bad spaghetti code when I’m just going to have to rewrite it soon anyway; instead I’ll just move it up the list of things to be rewritten early.

The rewrite goes apace. Right now I’m working on standing up a testing framework which should very much help in finding bad queries before they go bad in production. Having a proper testing framework from the beginning of the rewrite reduces the chances that future changes will go back and hurt existing code without me knowing about it. But it also means I have to slim down that 36GB of data y’all have created over the years, to a set of data that is complete enough that I can test every scenario but doesn’t take 2 hours to load on the testing database. This work is drudgery, but invaluable, which is the worst kind of drudgery. But given the jetlag, it’s probably about what my brain is up for right now.

OTHERWISE

Fall is here!  It’s the best time of the year in New England, except that I’m allergic to it, and still jet lagged from Taiwan. But the days are also growing sadly shorter, which isn’t helping with the lag. I’m hoping to get up into the north country this weekend and spend some time in the outdoors crispness; I’m hoping it won’t be a total tourist mob scene in the White Mountains, but likely we’re past foliage peak up there anyhow.

This blog is and has long been hosted on WordPress. But recently, the WordPress project has decided to set itself on fire, thanks to an apparent hissy fit by the founder. He runs both the nonprofit that owns the open source code and update servers, and a for-profit hosting company, Automattic, built on the same software. He claims that a competing hosting company, WPEngine, isn’t giving enough back to the community and somehow abusing trademarks in a nebulous way. But WPEngine isn’t required to give anything back at all, and the trademark claims seem spurious to me; that was enough to raise my antenna. And then the founder leveraged control over the nonprofit to cut off WPEngine from the open source code and security updates. They took over a plugin created and maintained by WPEngine, and pushed out their own changes to it, as well as renaming it, under the guise of “security.”  This update would have auto-installed on thousands of blogs without the administrators thereof consenting to the change or even being aware of it.

That final bit crossed the Rubicon in my book; I no longer trust WordPress, and will therefore soon transition this site to another platform. Honestly, WordPress was never a perfect fit for me anyway, and because it is so common on the web it also requires a lot of security filtering; even my little blog suffers near constant hacking attempts. The most obvious alternative appears to be Ghost, which has the virtue of integrating in email subscriptions, so if you are one of the three people who regularly like to keep updated on my blather, you’ll have that as an option soon.

I don’t really want or need an additional side project, but so it goes sometimes in the world of open source.

Five Capitals of Japan: II Kyoto

Building Nara worked: no local lord grew powerful enough to challenge the throne. But Nara also failed, because soon the temples started interfering. Emperor Kanmu came along and decided it was time to end this bullshit. He moved out of Nara, leaving it to become the smaller sleepy city of temples it is today. He picked a spot of land on what was then the ass end of nowhere, and snapped up control of it himself, attaching it to the throne directly, so lords and temples were frozen out. And there he built Heian-kyo [Peaceful Capital], again a harmonious grid like Chang’an. Kanmu’s reign was an all-time high point for Imperial prestige and direct power. His city, later called Kyoto [Capital City] would remain the capital of Japan for the next thousand years.

On paper.

The emperor was both a governing ruler and the focus of an intense cycle of ritual and obligations to maintain spiritual purity. The combination made for a heavy schedule. After a while, emperors started splitting the duties; they’d retire and shunt the ritual schedule off on one of their young princes, but keep running the government from ‘retirement.’ This precedent proved dangerous: if a retired emperor could call the shots, why not someone else altogether? Great lords and clan leaders didn’t have to risk divine wrath or popular rebellion by usurping thrones. Instead, just sideline the emperor, let burn incense and hit gongs, and exercise power “in his name.” Marry him to one of your own clan’s daughters, and make sure the grandsons depend on you, and repeat the cycle. This method let first the Soga clan, and then the Fujiwara, rule Japan for centuries. These Fujiwara were the builders of the Kasuga Grand Shrine.

Between Fujiwaras and nobles and shoguns, Kyoto most often played host to an emperor who did not rule. Sometimes the actual ruler lived there, but often they did not. So the city basically spent a thousand years trying desperately to keep up appearances, spending their years conducting ceremonies and handing out grand titles and honors to their court of nobles. Sometimes the real government paid them a stipend to support the show; in other eras, they had to trade in on snob appeal to survive. Court nobles would give lessons in poetry, ceremony and painting to uncouth samurai warriors looking to rent a little polish. In some desperate times, the emperors themselves sold calligraphy to pay the bills.

Today Kyoto retains that creative focus. It’s no longer the official capital, despite its name. It hosts a lot of Japan’s modern creative institutions, such as as the anime industry and Nintendo. There are some lovely districts with sprawling piles of classic old Japanese houses, complete with low wooden gates and secret gardens. The Fushimi Inari stands above the city, a huge sprawling complex of red torii gates that seem to stretch to infinity. You’ve definitely seen photos of it whether or not you recognize the name. At the other edge is the famous Arashiyama Bamboo Grove, a towering collection of green bamboo that you’ve also seen. In between is the city, with its own impressive collection of shrines and temples, some more known for their beauty, some more for their historic fame. There’s also, of course, a large rectangle containing the old Imperial Palace where those often-impoverished emperors performed.

But honestly I didn’t find Kyoto as resonant as I might have. You’ll find little peace at the bamboo forest, even as photos of it are a very symbol of tranquility, mostly because of the thousands of people avidly snapping those photos at all hours. The Fushimi Inari is one of the last places you’ll find religious reverence; but you’ll certainly find wannabe influencers using the rows of torii as backdrops for selfies. Some of the historic neighborhoods have signs with rules about noise and photos that everyone disobeys. Even the palace served an emperor without actual power, or money — so the gardens are perfunctory, and the plain buildings mostly closed to the public. As soon as the emperor regained a nominal spot at the center of government in the 1860s, he immediately decamped, and you can empathize with him. As centers of powers go, Kyoto’s history largely consists of faking it without quite making it.

That undercurrent of pretense without power made me less beguiled by Kyoto than I might be. But there are still moments to be found. The Fushimi Inari never closes, and neither does the remarkable train system, so I went there at 10 PM and saw it in the moonlight. There were a few influencers still there, setting up their phone on tripods and looking ridiculous posing “sexily” in front of the torii. But the complex is so vast you can just keep walking and avoid them, and see the stone foxes and red gates in the dim light. The bamboo forest is likewise open around the clock, though here you do want daylight, so make jetlag work for you and head there just before dawn. I confess I did not take my advice here; instead I plugged in headphones, leaned into my height, and just looked up.

In town, the little alleyway called Pantocho, a narrow strip of restaurants and shops that follows the shallow river, has definite tourist trap vibes, but it’s still a twisting warren of fascinating old buildings letting you forget what century it is. It’s a nice antidote to the aggressive openness of its modern equivalent, the strip mall. Pantocho is for walkers and humans, not cars and parking, and we have few enough of those left. And you can trip on history anywhere. My hotel was two blocks from the Honno-ji temple, where the great warlord Oda Nobunaga was betrayed and killed by one of his retainers in the 1500s, just short of ending a 160 year civil war. Americans know Oda now primarily through a line of video games, but here’s a good a place as any to read more about the real stories.

And you do find things there. I stumbled into a print shop, and found names of artists I’d never heard, whose prints now hang on my wall. I found pen and paper shops enough to gladden the heart of anyone who’s long ago abandoned the humble Bic. There was a random wine tasting of California wines, which I crashed. The labels were all top-shelf and famous; luxury good seekers here look for Names, and have little interest in ‘this cute find in Sonoma I’d argue is better than the top names.’ But I still snagged a free taste of Opus One.

And best of all, Kyoto is at the heart of the sprawling Kansai region, the older sibling to Tokyo’s Kanto plain; some huge chunk of Japan’s population lives in these two areas. Kansai has multiple centers where the Kanto is pretty much all-Tokyo, and here is where Japan itself began. The whole plain is nicely meshed with a complicated train network. But don’t fear the trains. Hit the ATM at the airport, and use the cash to buy an IC card from the machines by the train station. Don’t skip steps: when I was there, the phone app would not work for phones sold outside of Japan, you can’t use a Western credit card to load a card, and there was a chip shortage meaning you could only buy a physical IC card at the airport. But it’s worth it: the thing is magic. You load it up with money, and tap to pay for fares on virtually any transit service in the entire country. Imagine if your Boston Charlie Card could pay for a bus in San Diego. IC cards will also buy you a bottle of water out of most vending machines, or a onigiri at 7-11. Some trains have a system where you must buy a fare ticket separately from a seat reservation — but that’s because nobody buys a fare ticket. Tap the IC card and move on.

Planning it out is also worthless, unless it’s a Shinkansen covering a long distance. If you’re in Kyoto and you want to go to Nara, you don’t read six timetables in other alphabets and writing systems. You just punch in “Nara” in Google maps or something, and it will tell you what to do. “Walk three blocks east, go into this station, stand on platform 3, and board the 773 train at 11:14 am.” It will supply you with exact directions for transfers. And then an hour later you’re in Nara. Or Osaka. Or Kobe. Then use your IC card again to take the local train, if you want.