Sunday 19 October 2014

Declaring Seaside sub-components in the #children method

People often ask why they need to define the #children method on Seaside components. I wrote a long email today to the mailing list explaining how #children is currently used and why it's important and I thought it might be useful to post it here as well so it's easier to find and link to. 

When you render a child component you are implicitly defining a tree of components. #children simply allows the framework to walk the component tree explicitly. The reasons for needing to walk the tree explicitly have changed over time, which is part of the reason for the confusion.

At one point, for example, we used to walk the tree to give each component a chance to handle callbacks, so if your component wasn't in #children it would never even have seen its callbacks. That is no longer the case (which is actually a bit of a shame because decorations can no longer intercept them, but I digress).

If you look in the image for users of WAVisiblePresenterGuide and WAAllPresenterGuide, you will see the current cases where we need to traverse the tree:
  1. Calling #updateStates: for snapshotting/backtracking
  2. Calling #initialRequest: when a new session is started
  3. Executing tasks (they need to execute outside of the render phase to make sure the render phase does not have side effects)
  4. Calling #updateRoot:
  5. Calling #updateUrl:
  6. Displaying Halos for each component in development mode
  7. Generating the navigation path in WATree
  8. Detecting which components are visible/active to support delegation (#call:/#show:)
Keep in mind that basically all these things happen before rendering, so if you create new components inside #renderContentOn: they'll miss out: you should try to create your sub-components either when your component is initialized or during a callback. If your child component doesn't rely on any of the above (and doesn't use any child components itself that rely on any of these things) then technically everything will work fine without adding it to #children. But keep in mind that:
  • the framework may change in the future to traverse the tree for other reasons;
  • add-ons may depend on being able to walk the tree for other reasons; and
  • it's not great encapsulation to assume that, in the future, components you are rendering will never need any of the above nor start using sub-components that do. 
Finally, components are stateful by definition, so if you don't feel the need to persist your component between render phases, it probably shouldn't be a component. For stateless rendering you're better to subclass WAPainter directly or even WABrush: both of these are intended to be used and then thrown away and they will make it clearer in your mind whether or not you're using on things that depend on #children.

Wednesday 28 May 2014

Nine time zones, no jet lag!

Day 58 - London - 20,946 km traveled

We've crossed from the Pacific to the Atlantic by land and sea, covering nearly 21,000 km and 9 time zones! When we got home, what we really wanted was a proper cup of tea:

On the way back, we stopped off for the weekend to visit friends in Vilnius, Lithuania. This was a great way to mark the end the trip: it's a really picturesque, charming city with no shortage of great bars and restaurants. And with locals to show us around, we were able to sample some great ones (the cigarette lighter is for scale):

We broke up the final leg of the journey with a quick overnight stop in Warsaw and breakfast—good bread!—in Cologne before boarding the Eurostar back to St. Pancras International.

As usual, time is playing funny tricks: it feels like only a few weeks since we left but if we focus on all the places we've been, things we've done, and distance we've traveled, it's hard to believe it has only been two months. We're both amazed at how well the trip worked out and, given the constraints we had to work with, we're really happy with where and when we went, how long we spent in each place, where we stayed, and what we did; if we were doing the trip knowing what we know now, I don't think we'd change anything much. And we're already thinking about planning our next train trip: a December jaunt to the German Christmas markets.

Oh, and in all the time we were away, I think the trains ran on time almost to the minute. Until we hit Europe, that is!

Update (bonus): this thematically relevant xkcd comic coincidentally came out last week

Saturday 24 May 2014

60° North

Day 54 - Vilnius - 18,526 km travelled

Hot. That's the best word to describe our exit from St. Petersburg. We opted for 3rd class, where the train carriages didn't have air conditioning, and opening the tiny windows seemed to blow a lot of wind onto someone else's bunk without actually managing to circulate any air at all in the rest of the carriage. We lay on our beds wearing as little as possible, coated in films of sweat, trying to get some sleep before 2am when we knew we'd be woken up for the border crossing. We'd only worked out the uncivilized hour the day before—had we realized earlier we might have opted for a day train—but actually it was relatively painless compared to our earlier crossings: it took only an hour on the Russian side and 45 minutes on the Latvian and the whole process was pretty respectful of the fact that we were half asleep and sticking, half-undressed, to our bed sheets.

The train into St. Petersburg was air conditioned, which was great because St. Petersburg was hot too: highs of close to 30°C most days. Our beds—carriage 11, berths 18 and 20—would have been great too if it weren't for the conspicuous and total absence of a carriage 11 on the train. They sorted it out eventually with beds in another carriage.

St. Petersburg is an attractive city, spread out across several islands and sort of a cross between Amsterdam, Stockholm, Vienna, and Venice, which is not surprising given Peter's attraction to all things European. It's also much further north than I realized: we were still a month ahead of the solstice and the sun was already staying up until 10:40pm. One night we stayed out until 2am to watch the bridges over the river lift to allow ships to pass; this is a common activity and there were locals out socializing, running, roller blading, and so on well into the night. The bridges stay up for a few hours, so if you're caught on the wrong side of the river you basically just have to carry on partying until 5:00. The sky still wasn't pitch black when we went to bed. Next week is the start of the White Nights festival, which brings concerts and events all over the city to celebrate the season when darkness never falls.

One of the cultural highlights of St. Petersburg is the Hermitage, an art gallery housed in the old summer palace. I thought the combination of great art, fashion, and furniture shown off in magnificent, opulent architecture was wonderful. Wandering the palace rooms with their gilded ceilings, intricate floors, and amazingly fine mosaics was probably the best part, but you could absorb it passively without the feeling of dead, empty rooms that often comes with palace tours.

Another highlight for us was a trip to see the ballet La Bayadère at the Mariinsky Theatre. It was really impressive and quite beautiful. The first act had really great storytelling, though I was glad to have read a synopsis. The second act seemed to have been structured specifically to allow all the dancers to perform various solos and small group choreography; having only been to the ballet once in school I have no idea if this is common practice or not. Some of the routines were very impressive, though I did find the device wore a bit thin. The final act includes apparently one of the most famous scenes in the world of ballet, a dream scene with 32 ballerinas descending a ramp in single file. The whole act was wonderfully designed, lit, and choreographed for maximum visual effect. The whole experience was great.

We also really enjoyed our trip out to Peterhof, Russia's answer to the palace at Versailles. Tsar Peter filled the grounds with fountains, all running off gravity without a single pump. I actually found the fountains a bit underwhelming given how impressed everyone sounded in reviews and guidebooks, but the overall effect of the gardens was great and we spent longer than expected—most of the afternoon in the end—strolling around the grounds. Peter had a sense of humour too and there are a number of trick fountains that will soak unsuspecting visitors.

Monday 19 May 2014

Magnificent Moscow

Day 49 - Moscow - 17,160 km travelled

Moscow has been awesome.
I think we both expected to like it but were expecting it to be quite grey, bleak and dramatic more in a post-Soviet kind of way. In fact, it's a really beautiful city with a vibrant cafe culture, lots of lovely parks, and amazing architecture on top of the cathedrals and museums it's famous for. For me, our few days here have been one of the highlights of our trip.

We've spent a lot of time just wandering round, stopping for coffee and beers along the way.  There are a number of lovely parks that run along the river, that are really popular with tourists and locals alike. They're full of nice bars and cafes, lounge chairs and hammocks, bike paths, exhibitions, sports grounds etc. And at this time of year there were stages being set up everywhere for the festival of the white nights, which runs from the end of may to July.

One of my favourite spots was Vorobyevy Gory, a park near Moscow State university which is full of joggers, cyclists and picnickers in summer but turns into a ski park in the winter - with an enormous ski jump that looks like it lands in the river! From the top of the park you get an amazing panorama of the city, where you can spot the 'seven sisters' - seven sky scrapers designed in the Stalinist style (see photo).

We've really lucked out on three fronts in our four days here - we've had amazing sunshine, our visit has coincided with international museum day, which means all the museums were free, and we stumbled across a free concert by The Bolshoi theatre orchestra after enjoying an afternoon at the New Tretyakov gallery, which houses a brilliant collection of 20th century Soviet art. Julian and I usually have a two hour limit in museums and galleries but we happily spent most the day here as there was so much to see.

Yesterday we enjoyed an afternoon at the Pushkin gallery and then whiled away the rest of the day at a terrace cafe enjoying a bottle of wine and a couple of beers, indulging in some serious people watching. Muscovites are seriously well dressed - I've never seen such a concentration of stiletto heeled beautiful people. We both felt somewhat out of place in our quick dry t-shirts and hiking shoes. Slightly tipsy, we went back to our hostel just as six fire engines arrived to extinguish the kitchen fire on the third floor. Guess where our room was? Yes, next door!! Luckily, the fire didn't spread beyond the kitchen, which was completely gutted.

We were advised that no trip to Moscow is complete without a trip to the All Russia Exhibition Centre - a massive park with monuments to agriculture, industry, education, etc. and pavilions for each Soviet Republic. It was mostly built under Stalin to depict the achievements of the USSR and glorify the ideology of communism. All of the buildings were closed but the park was still full of tourists and locals alike, many of whom were roller blading.

In Moscow, it seems all the young beautiful people's preferred method of transport is roller blades and, since the exhibitions were closed, we (Julian) decided it was only right to rent some. I was pretty apprehensive - I've never never been rollerblading and wasn't sure that this was the time to find out how good/bad I am at it. I'm pleased to report that after a shaky start I actually wasn't too bad. I might even get a pair!!

Thursday 15 May 2014

The long train west, part 2

Day 45, 8:00 am local time - Train 81, 1,419 km from Moscow - 15,894 km traveled

I haven't a clue where we are. All seemed good at about 3:00 this morning when we stopped in what was presumably Yekaterinburg, though we were awoken there by someone trying to open our compartment door and thought our days of privacy might be over. They seemed to quickly move on to the next compartment, however, and the train carried on into the night.

Now that I'm awake, though, none of the kilometre posts line up with the descriptions in the guidebook anymore and I've realized that none of the remaining stations on the schedule posted in our carriage appear on the guidebook maps or vice versa. Either Russia, over the past few years, has systematically renamed all the towns within a day's travel of Moscow, or I guess we're taking a different route.
It seems a curious route though as we're currently crawling along a section of only single track that is crossing what seem like new bridges. We also keep passing little guard huts surrounded by barbed wire. Where are we I wonder? As long as the numbers on the posts keep going down, we at least know we're still heading for Moscow...

I took a walk to the back of the train yesterday—the second train I've tried this on—and got the same result in both cases: strange, almost intimidating looks from a few passengers in the open carriages and unfriendly glares from the carriage attendants at the back of the train, even when I made it clear I was just stretching my legs or taking a photograph. I guess Russians don't walk around trains, a fact confirmed by the almost deserted restaurant car last night.

They had an English menu, but it had only three choices on it so we decided instead to decipher the Russian menu with the help of Google Translate and our phrasebook. Identifying sections called Soups, Salads, Second Dishes, Sides, Sauces, and Desserts (how's that for sibilant alliteration?) we picked out two promising second dishes: one talking about pork tenderloin and onions, the other potatoes and mushrooms. Despite [thanks to?] the layer of oil, they tasted quite nice, but we may have misunderstood something and it's a good thing we don't mind sharing because, as you can hopefully tell from the photograph, neither was large enough to constitute a meal and a dish of potatoes can't really count as a more than a side dish, surely. At £18, we didn't feel we were getting great value. For now I think I'm just going to stay safely in my compartment.

I suppose we'll need to start adjusting to higher food prices though, as we should be officially back in Europe now: the obelisk marking the highest point in the Urals is at kilometre 1,777; we basically crossed the Urals in darkness but should have passed that point shortly after leaving Yekaterinburg. We're really looking forward to four days each in Moscow and St Petersburg and only a few meals of porridge and instant noodles stand between us!

[We are now running at a reasonable speed again and back on dual tracks... still a mystery where though :-)]

Wednesday 14 May 2014

The long train west

Day 44, 11:20 am local time - Train 81, 3,006 km from Moscow - 14,307 km traveled

We left Irkutsk at 1:17 am local time yesterday, though the clocks in the train station all said 20:17 because all trains in Russia run on Moscow time. This is particularly confusing when, as in our case, the time change spans midnight and you need to book the train for a different date than your actual departure.

In 36 hours, we've covered over 2000 km so far, crossed two timezones, and passed the halfway points of all the trans-Siberian routes from Beijing and Vladivostok. We're making good progress but certainly have a lot of kilometres still to go. The train trundles along at a pretty steady 60–70 km/h but makes quite a few stops: sometimes these are for just a minute or two to let people on or off, but we also make some 20–40 min stops in the tiniest places, presumably for some combination of providing a buffer to keep the train on time, allowing other trains to pass, topping up water, and emptying toilets. This train is the first since we left Japan to have toilets with holding tanks, which means they aren't closed in stations; they would have been more appreciated on the trains with 8-hour border crossings, but it's still one less thing to worry about.

I saw a couple with backpacks getting on the train in Irkutsk but pretty much everyone on the train seems Russian; certainly we're the only foreigners in our carriage. So far, we've been lucky enough to have a compartment to ourselves: this does mean we only have each other for company and haven't spent our nights drinking vodka, but it also means we've been pretty comfortable and have slept well. And after the woman who shared our compartment from Ulan Bator unpacked half a sheep from a cloth bag and laid it out on the bed to dry, we've really come to appreciate the benefits of having our own space.

So far we've been spending our time reading (sometimes out loud), playing cards, and looking out the window... not that there's a whole lot to see. The weather's lovely this morning though and the guide book gives us occasional kilometre markers to look out for. Our compartment hasn't turned into Lord of the Flies yet!

We're thinking we might go check out the dining car tonight but we've got a good supply of tea, instant noodles, and porridge which we can make with the free hot water in the samovar at the end of the carriage. And we've got fruit, bread, cheese, biscuits, and snacks to fill in the gaps. Plus a couple of bottles of wine of course. :-)

Monday 12 May 2014

Back in the saddle

Day 42 - 12,128 km travelled

We're just back from a fabulous few days on Olkhon island, the largest island on Lake Baikal. We stayed at Olga's guesthouse, where we enjoyed enormous portions of home cooked food.

The island is a tourist haven in the summer but at this time of year is fairly deserted. The main town felt a bit like a film set for a western, made up of ram shackled wooden huts and houses.

We were lucky enough to have two days of glorious sunshine although the lake was still partially frozen, which made for an impressive contrast with the golden sandy beach.

The island is a great place for hiking and cycling so we decided to get back in the saddle - this time mountain bikes rather than horses.

Now, before continuing, let me give you a bit of background to my cycling career: I was the last person is my class to learn to ride a bike, in fact it was such an event that the whole neighbourhood came out to watch when my stabilisers eventually came off. To cut a long story short, I'm not a natural cyclist.

We chose a 50km route across the island, over some rolling hills (which felt like mountains), through forest and alpine meadows. It was tough. I had to push my bike more than halfway up the first hill and it didn't get much easier. I'd like to blame it partly on the fact that I had a bike that was far too big - which made uphill particularly difficult and downhill particularly terrifying - but I'd just be making excuses. Julian didn't have to push once. It was only when I went over a steep summit and slammed on the back brake only to have my back wheel jump off the ground that I realised the brakes were the wrong way round - nobody told me that it's only in the UK that the back brake is on the left. Did I mention I'm not a natural cyclist!?

Physical challenges aside, it was a great day. The highlight was the halfway point, where the track meets the shore of the lake on the Bolshoi Sea side of the island. It was an eerily beautiful spot because the lake was perfectly calm and it was impossible to distinguish the water from the sky, meaning it looked a bit like the edge of the world.

On our second day we were reunited with the 'Soviet Jeep' for a tour of the northern cape. Our guide was an old Russian man who cooked us fish soup and served his wife's delicious fresh tomato salsa for lunch.

We finished off the trip with a banya - similar to a sauna - which is an important part of Russian life, particularly in winter when the temperature on the island hits -30 degrees.

Wednesday 7 May 2014


Day 37 - on a train at the Mongolian/Russian border - 10,840km traveled

The narrow bunks in our shared 4-berth train compartment feel like luxury after our week in Mongolia—cold nights sleeping on floors, rough roads, days in a saddle—but it's been a great week.

It started off with a surprise as our train from Beijing descended from the Gobi steppes through falling snow and into Ulan Bator: we were expecting normal seasonal temperatures closer to 15 or 20 degrees! As the sprawling shanty towns of the suburbs wound by, with their densely packed gers and endless brightly-coloured roofs in red, green, orange, and blue tin, we wished we hadn't so ruthlessly discarded our thermal underwear while packing.

We only budgeted about a week in Mongolia and wanted to do a five-day trip to the countryside, ideally riding horses and staying in a different spot each night. Arranging this proved harder than expected, though, because businesses in Ulan Bator often don't have signs, the buildings aren't always numbered, and about half the listings in our 2011 guidebook seemed to have closed down. I think we actually dodged a bullet because we were close to booking a trip with a company called Ger to Ger, whose goal of supporting local nomadic families through authentic home stays sounded perfect, when I decided to check first for reviews of their tours. I actually encourage you to click through and read some of the replies at the bottom of that page because they're truly impressive, but some of the highlights are the woman who said "it got to the point where I'd wake-up and lie in bed dreading the day" and the couple who, after doing their orientation session, walked away from a $750 deposit rather than complete the trip. Seriously, go read some; I'll still be here when you get back.

As we were starting to despair, we found this glowing review of a riding trip to Eight Lakes with Sunpath Mongolia. After circling the block for half an hour the next morning, we managed to find the place and Doljmaa, the hostel owner, worked with us to create an itinerary that was exactly what we wanted and fit our tight schedule. She also arranged our onward train tickets at no charge, offered us breakfast when we arrived in the morning to start our trip, and on our return anticipated every favour we were about to ask by lending us towels for much-needed showers, letting us use the hostel kitchen, and giving us a lift to the train station.

We set out early in our van, the soviet-era military's take on a 4-wheel-drive Volkswagen bus, with the goal of covering the 500km west to Orkhon park, home to volcanically formed valleys and the Eight Lakes, connected in a chain through underground channels. We were told a story of 7 oxen who drowned in the third lake one year and were found the next day in the second. The van's suspension was clearly designed more for maximum clearance than for comfort and the highways in Mongolia are so full of potholes that, in places, vehicles opt to leave the road entirely and drive instead along parallel dirt tracks. We averaged about 50km/h, bouncing our way across vast, beautiful landscapes with endless small peaks, expansive plains, and not a fence in sight.

We spent three days on horseback: about 5 hours each on the first two days to reach the lakes and 8 or so on the third day, some of it at a trot, to retrace our steps back. Afraid of the wind and cold, we borrowed some traditional Mongolian long winter coats, so really looked the part! Miraculously, though, the weather cleared up just as we arrived and we had warm lovely sunshine—though freezing cold nights—all three days until about three hours after we got back when the wind started howling again.

The horses in Mongolia are quite small and are semi-wild, trained to be ridden but kept in herds that are left free to roam and graze. Mine was a three-times racing champion and clearly knew more about riding than my limited experience had taught me, but three days gave me lots of time to experiment and refine my technique. By the end of our trip, my horse and I had settled on a sort of power sharing agreement we could both live with and we finished off the trip in style with a decent stretch at a gallop: such a thrilling experience!

Throughout our trip we stayed every night in traditional Mongolian gers, circular tents about 6m across with a central fire and insulated walls and ceilings. They can be dismantled and moved, though nomadic families do so only a few times a year, sometimes moving only a few kilometres between summer and winter sites. In a couple of cases we stayed by ourselves in extra gers set up for tourism, but while riding we simply knocked on the door of a convenient home and were invited in for dinner and to stay the night. And for tea. Lots and lots of tea.

Mongolian tea is basically hot yak's milk, which is intensely creamy, diluted with water and seasoned with salt and a small amount green tea. It's served piping hot in bowls and drunk in large quantities at every meal and any time a visitor stops by. I'm pretty sure there's no other week in my life when I've consumed as much milk, which makes a big change from the near total dearth of dairy in our diets over the past month.

Mongolians, particularly nomadic families outside the city, are very welcoming and generous. They share everything they have and total strangers are treated as honoured guests, served first and seemingly given larger portions. Sometimes families shared beds so we could have one; other times they were already sharing so we slept on the floor. But we were always made welcome and sent on our way with a hot lunch and all with nothing expected in return. With our western cultural upbringing we kind of felt guilty, but were constantly reassured by or guide that they love having visitors—presumably a rarish occurrence when you live so far from your neighbours—and when we set aside our apprehensions it really is a wonderful experience.

As we seem to have developed a food theme to this blog, it seems the Mongolian cuisine deserves a mention. We'd heard horror stories of being served nothing but grizzly pieces of greasy mutton, but our experience was much better. There isn't an awful lot of variety, with most meals consisting of noodles or soup with various subsets of beef or mutton, onion, potato, and turnip. They use a lot of dairy products, making ghee, butter, cheese, yoghurt, strong cheese-flavoured hard sweets (the one thing I couldn't stand), a sort of cream cheese, and so on as a way of using and preserving all the yak's milk without refrigeration. Unless an animal has been recently killed, the meat is mostly dried and rehydrated when cooked; it was a bit fatty at times but mostly alright. Overall, I wouldn't rank Mongolian food as a particular highlight of the trip, especially given its repetitive nature, but there were some notable exceptions, including fresh creamy yak's yoghurt mixed with sugar, tasty slightly sweet biscuits, and some simple and very morish hand-cut noodles that reminded me of German spätsle. The other impressive thing was watching the women—it's always women as gender roles still seem very defined here—doing everything over a single fire. The top lifts off leaving a circular hole that can hold a large wok or bowl and there's a constant process of pouring, rotating, cleaning, wiping, and stoking to fry, boil, wash dishes, keep the tea flask topped up, process dairy products, and so on. It was a bit mesmerizing, like watching a dealer or croupier at a casino.

We've now been stopped on one side of the border or the other for about 7 hours, a process made much less bearable by the toilets on the train being locked when we're not moving. We don't have a clear schedule but suspect it might be another 3 or 4 hours before we get rolling again. Still, both sides have checked our passports and the snow's falling again so I think we're officially in Russia!

Thursday 1 May 2014

Chinese banquet(s)

Day 31 - Ulan Bator - 9431 km travelled

We're now in Mongolia, about to embark on a 5 day trip to do some horse riding across the Steppe. I'm somewhat nervous having not ridden a horse for 7 years. The last time was in Bolivia - to cut a long story short it was a fairly traumatic experience. But I'm also pretty excited as we'll be riding from ger to ger staying with local families.

But the main purpose of this post is to provide a culinary update. Beijing was a bit of a holiday within a holiday; we enjoyed a week of - mostly - amazing food and quite a few happy hour cocktails for 15-20 rmb (less than £2) including the biggest caipirinha I've ever had (see photo).

The highlights were the pizza, followed by a feast at The Drum and Gong, which is a rooftop restaurant in the Nanluoguxiang hutong. In China it was far too tempting to order too much and our meal here was no exception. We had disanxian (aubergine, potatoes and peppers), spicy ginger dry fried beef with veg and green beans with pork, all washed down with a few Beijing beers. The Chinese also tend to order far too much - the difference being that they just try a bit of everything and leave lots. I think Julian and I are too much of the 'waste not want not' school of thought (in other words we're a bit greedy) so we ate everything.

The next highlight was hand pulled thick noodles with a tasty broth and tender beef, in a sunny hidden courtyard - noodle bar 1949. There's some serious skill involved in making the noodles - they are all perfectly uniform and really long. Best noodles to date and trust me we've eaten a lot!

The next experience worth mentioning was dumplings at a heaving local restaurant. Now, I'm not the biggest dumpling fan, but Julian is and these were pretty tasty. Good job too because we ordered 30 of them plus two veggie main courses...all for under £10. If I return a stone heavier you know why!! The dumpling feast was going well even for me until I bit into what should have been a cabbage and peanut dumpling only to discover it was fatty unidentified meat. I don't recommend this place for veggies!

Of course it wouldn't have been a trip to Beijing if we hadn't had Peking duck so on our last night we splashed out on a meal at Da Dong, one of the best duck restaurants in the city. In our fleeces and walking trousers we were seriously underdressed!

We opted for an aubergine dish and  half a duck roasted to perfection and carved in front of you. My initial thought was it was never going to be enough food - particularly given we were getting accustomed to ordering enough for 4! But in fact we both left really full and it was the best duck I've ever had.

We'll keep you posted on how Mongolian food compares!

Wednesday 30 April 2014

Half way home

Day 30 - Erlian - 8916km traveled

It's just after midnight and we're at the Chinese-Mongolian border. In fact we've been here for 3.5 hours already. We've been through Chinese immigration and customs procedures but will still need to go through the Mongolian equivalents once the train physically crosses the border.

In the meantime, aside from a lot of sitting around, we've been having our bogies changed: Chinese railways use a different gauge than those in Mongolia and Russia, so they have to split all the train carriages up at the border, jack them up, and change the wheels before reassembling the train with a new dining car in the middle. It's all pretty smooth—procedurally that is; the train has been jolting back and forth incessantly as they shunt the carriages around—and was quite interesting to watch through the window.

Apparently the whole border-crossing process can take up to 6 or 7 hours, but we're hoping it will be less tonight because the train is nearly empty. It must be 12 carriages long but I only saw about 60 people waiting to get on in Beijing and each carriage only seems to have about a half dozen people in it. It makes a nice change from our last overnight train.

This marks the half way point of our trip in terms of time, but we're also moving on to the third of four main countries we're visiting, which is pretty exciting. Time's whizzing by awfully quickly now but we've had a great time in Beijing—Ruth's working on another post—and are really looking forward to our adventures in Mongolia.

[Update: it's 1:54am now—five and a half hours—and we're officially in Mongolia and on the move again. It's an interesting anomaly to have entrance and exit stamps from the same border crossing with different dates! Now to get some sleep...]

Thursday 24 April 2014

Cheese craving... sorted!

Day 24 - Beijing - 8074km traveled

We've successfully addressed that cheese craving from last week. That is all.

Saturday 19 April 2014

I miss cheese too/two

Day 19 - Xi'an - 6862km travelled

We've cracked. We were trying to stay strong until Beijing, but the cravings for western food were too great. What I want most is beans on toast, with a little bit of cheddar cheese and a splash of Lea and Perrin's, but the chicken burger and fries we're currently munching are a good alternative.
Not that our culinary experiences haven't continued to be good, it's just there are only so many noodles you can eat in a week. On our last night in Jiuzhaigou we found real Gong Bao Ji Ding, and felt pretty smug because we both thought it needed to be a bit spicier. "What's all the fuss about Sichuan food being spicy?" was what I'd started to think to myself...
That was until last night when we tried 'hot pot'. We had the good sense to choose the medium spice level, and good job because it was very much like the name suggests - HOT!
It was basically a pan of chilli oil with extra chillies, a chicken (including the feet) and potatoes. It's served with a bowl of spring onions and you'll never guess, more chillies (see photo below - and don't be thinking we were drinking giant beers, they serve beers with the tiniest glasses/cups). It was only halfway through Julian pointed out it probably wasn't the smartest meal to eat before a 12-hour bus journey. But we made it to Xi'an without any mishaps, and now we've had a fix of western food are looking forward to sampling what culinary delights Shaanxi province has to offer.

On obstacles and their removal...

Day 19 - on a bus somewhere between Chengdu and Xi'an - approx.  6743km traveled

Well it had to happen... everything's been going smoothly but as we sat down a couple of days ago to figure out our journey onward to Xi'an and Beijing, we discovered all the trains—there are a dozen or more trains a day but they serve a population of 1.3 billion—were full for days! Since we couldn't get full details or make travel bookings without getting back to civilization, we also couldn't book accommodation and the hostel in Chengdu, which was nearly empty 5 days ago, was suddenly nearly full.
We arrived back late yesterday afternoon and, after whizzing around to train and bus stations and our first night in a shared dorm, we've managed to get things back on track. We're now whipping along a very good divided highway, past lovely scenery, on an 11-hour bus trip, actually shorter than the train would have been.
This is my first trip of this kind since backpacking around Australia/NZ in 2005 and it's amazing what a difference a smartphone and prevalent free WiFi make:
  • the first time my bank blocked my card I was able to unblock it simply by replying to an SMS;
  • the second time they blocked it I was able to use Skype to call them from our hotel;
  • Google maps with a GPS is a great help in navigation, particularly now that I've figured out the non-intuitive way of caching a map (that's assuming you can find the address in Japanese/Chinese characters in the first place, of course);
  • at least in Tokyo, being able to search for transit routes made a complex train system manageable;
  • having a translator with me is wonderful, particularly in China where I can sort of draw the characters (Google Translate has a mode where it scans an image for text to translate which is amazing but unfortunately requires an active Internet connection);
  • we have all our notes, documents, and bookings in Google Drive and TripIt, which means they're all to hand and backed up online;
  • we can write blog posts and keep up on email during long train/bus rides; and
  • every Starbucks suddenly becomes an Internet café, much much nicer than any of the dark, dingy places I frequented for an hour or so every few days last time I did this (and I don't need to worry about shared computers capturing my passwords).
So that's been amazing, and I didn't expect things to have changed so much: I nearly didn't bring my phone.

Thursday 17 April 2014

Jiuzhaigou National Park

Day 17 - Jiuzhai Valley, Sichuan - 5737 km travelled

We're just back from a 2 day hiking trip in Jiuzhaigou national park. The park is in northern Sichuan and ranges from 2100 to almost 3500 metres in altitude. It boasts an incredible landscape of glacial lakes and forests, surrounded by imposing mountains well over 5000 metres high. For hikers, the catch is that it attracts around 5000 visitors a day, the majority of whom spend the day squeezing on and off the packed buses that run through the park. With such a high number of visitors, you're only allowed to walk on the boardwalks.
On our first day here we went into the main park, and tried to avoid the crowds with limiter success (those interested in how to avoid the crowds or for some photos see here [ ]). The park is a photographer's paradise—weather permitting—and we (Julian) got some good shots in the morning. But we really wanted to get off the beaten track...
The only way to hike properly in the park is through an eco-tour company that offer hikes in the Zharu valley. They only take 300 people a year into the valley so it's unspoilt. Interestingly, none of the hikers are Chinese which we found surprising given that 99% of the visitors to the main park are Chinese.
The hike was pretty tame as it was mainly through forest but it was worth it to have a couple of days of tranquility - China is the noisiest place I've ever been. It also gave us the chance to try some Tibetan food as we stopped for lunch in a Tibetan village, and to learn a few more mandarin words as our guide didn't speak much English.
Next stop Xi'an

Monday 14 April 2014

I miss cheese...

Day 14 - on a bus from Chengdu to Jiuzhaigou - 5631km traveled

Continuing my food theme, cheese isn't popular over here and it's the thing I'm craving right now as we wind our way up this dusty valley in northern Sichuan. We've been in China for a few days now and we've had some delicious food. We started off in Shanghai by stuffing ourselves at Beyond the Clouds—thanks Steven!—a Yunnan restaurant. For less than 200元 (about £20) we had a couple of large bottles of beer and probably enough food for four: soft tofu in a spicy sauce, aubergine in a sticky delicious sauce, beef with wild mushrooms, some kind of green vegetable, black wood ear mushrooms, and rice. That's fairly upmarket though: yesterday for lunch we had bowls of spicy pork Dan Dan Noodles at a hole in the wall for 7元 (70p) each. We've had delicious Sichuan spiced aubergines and some tasty peanut-like and—see the photo—curiously-shaped bean sprouts.
All this to say that there's no shortage of amazing food but—and I've noticed this even when traveling for extended periods closer to home—I can eat a lot of dinners out but sometimes you just want a  yoghurt or a cheese sandwich for lunch. And I find breakfast the toughest: I don't really want raw fish or pickled vegetables for breakfast. I don't even really want an English breakfast after a few days. I really just want a slice or two of toast and maybe a cup of tea.
Yesterday we went to the panda breeding centre and successfully boosted our average daily photo count by a fair margin. Despite being millions of years old as a species, pandas don't seem to be particularly effective breeders, particularly in captivity, so the centre has been doing a lot of work to improve the breeding program to help boost their numbers. Survival of babies is now close to 100% and released pandas are apparently doing well. Bringing it back to food again, pandas are also not particularly effective at digesting their daily diet: they were originally carnivorous and their digestive systems have not really evolved. As a result, they can only process about 20% of the bamboo they eat. This means they need to spend a lot of time eating!
Last night, trying to be efficient myself, I used hand signals to indicate we wanted a table for two. In China, they have a series of signals to represent 0 through 10. As they led us to a surprisingly large table and began setting places for 8, I suddenly realized that I had forgotten the details and used the wrong sign. Trying to correct myself just resulted in the drinks menu being brought so we had to fall back on pointing at relevant lines in our phrasebook. This meal was actually or most difficult ordering experience to date and, though I ordered a particular Sichuan chicken dish I knew, we ended up with chicken and chestnuts. I like chestnuts but have only had them roasted in small bags; it turns out you can only eat so many... they're filling!
By the way, I apologize for the lack of formatting and links. We can't access Blogger through the Great Firewall so are having to submit by email. This also means I'm showing as the author of Ruth's posts. Hopefully you can work it out.

Thursday 10 April 2014

Tokyo's Golden Gai

23 hours into the ferry journey and I'm slightly bored so thought I'd write about one of our evenings in Tokyo at the Golden Gai. The Golden Gai is on the edge of Shinjuku, one of Tokyo's main nightlife areas - and home to the red light district. Tucked in behind the high rise buildings with their neon lights is a series of alley ways lined with ram shackled tiny wooden buildings, no more than two storeys high, each no wider than a caravan. These buildings are home to tiny bars and restaurants, most of which are exclusively for regulars and unwelcoming to foreigners: at one point we saw a Japanese guy knock on a door, give a password and the door momentarily open to let him in. 

But a few places do let foreigners in and we were in search of Albatross G (thanks for the recommendation Sara - it's still there). In the end we went to a ramen noodle place; you had to buy a ticket for your meal from a vending machine then queue outside down a dark alley, getting funny looks from people walking by (most of whom ending up joining us in the queue, probably because they assume if there's a queue it must be for something good). When there were spaces available the waiter ushered is up the stairs into the tiniest restaurant I've ever seen. There was "room" for about 8 people at once on stools crammed between the bar and back wall, with the kitchen on the other side of the bar. I'm not sure how Julian managed to fit... He looked a bit like Gandalf in Bilbo Baggins' house.

I'd like to say they were the best noodles I've ever had; all I'll say is they were the fishiest noodles I've ever had. But it was an experience to remember.

Wednesday 9 April 2014

Rise and shine

Day 9 - aboard the Xinjianzhen, approximately 33°N, 128°E, 2553km traveled (note the *correct* spelling - Julian)
I awoke this morning to an impressive roar. I guess more accurately I reawoke: I had first been roused at 6:30 by our cabin mates stirring and it took a while to get back to sleep while trying to block out the sounds of someone retching in another room. Whether it was brought on by seasickness or alcohol mixed with too much karaoke I'm not sure; we left the shelter of the Seto Inland Sea around midnight last night but the sea is still calm. We're still near the islands west of Nagasaki but the next land we see will be China.
So I awoke again to the sound of an angry mob, people having a shouting argument, a crowd cheering on a sporting match, and a rowdy game of charades all rolled into one. Or so I thought. What other explanation could there be for the level of noise being generated this morning by our fellow passengers? When I got up to have a look though, all I could see were people sitting round tables, chatting away, and waiting for breakfast.
Determined to get some more sleep--it was only 7:30 and there's no need to make a long day on a boat even longer--I stuck my earplugs back in (honestly, they barely helped) and... the public address system kicked in. Long message in Mandarin. Long message in Japanese. Finally, the message in English: "Ladies and Gentlemen, the Information Desk is open. You are welcome to use it." At 7:30 in the morning?
As my head hit the pillow again, the system crackled back to life and we were soothed awake by a 20 minute medley of elevator, classical, and music box music. Right, let's get this busy day started then, shall we? :-)
Ruth and I are working our way through our Japanese themed literature at the moment: Eric Lomax's The Railway Man, Ruth Ozeki's A Tale for the Time Being, and James Clavell's Shogun, all based on recommendations from friends. I have the advantage, having already finished Clavell's gripping 1000-page novel about Samurai culture last year. I think Ruth's currently trying to read two books at once. I think we've found all three have been interestingly informed by our week in Japan and vice versa, actually: Shogun added to our appreciation and understanding of Bunraku performance in Osaka.

Tuesday 8 April 2014

Bunraku theatre

Day 8 - aboard the Xinjianzhen, approximately 33.7° N, 131.5° E, 2153 kilometres travelled (note the English spelling - Ruth here)

We're currently on the ferry between Osaka and Shanghai; we're two of three westerners on board and get peculiar looks from most of the passengers. Why I'm not sure: they are the ones jogging round the canteen and singing karaoke in their pyjamas. It's going to be a long 48 hours.
Back to the food; we succeeded  in our Tenkatsu mission, joining 20 others waiting in line outside Katsakura Kyotoekibiru on the 11th floor above Kyoto station. It was worth the wait for a delicious feast of pork tenderloin, rice, finely-sliced cabbage and a sweet spicy sauce you make yourself by grinding sesame seeds with a pestle in a special rushed bowl and adding the various ingredients on the table to your taste. It made up for the trauma of offal stew - almost. [Almost? It definitely did - Julian]
Apart from the food, there have been a few other highlights of our week in Japan and our trip to the National Bunraku theatre in Osaka was definitely one. Bunraku is a form of puppet theatre with three-quarter scale puppets each controlled by three onstage puppeteers, and along with Noh and Kabuki is one of the main forms of theatre in Japan.
We just went to the second half of the performance, which was still 5 hours long! It was an enthralling story about Samurai, with love, betrayal, deception and sacrifice as the main themes. Within an hour the puppeteers had disappeared from our consciousness and all we paid attention to was the puppets who moved with such grace and precision that they seemed renal. The narrative is told through a mixture of singing and chanting by a musician who sits to the side of stage; for the first twenty minutes it was really grating and I thought it was going to be the longest 5 hours of my life, but the skill of the narrators in conveying the emotion of the puppets was incredible.
Highly recommended if you ever get the chance - it's as good as Avenue Q, but very different!!

Sunday 6 April 2014

Pig offal for dinner; Matcha green tea Kit Kat for dessert...

Day 6 - on a train from Hiroshima to Kyoto - 1305 km traveled

We've had some terrific food in Japan so far. One highlight was a bento box picnic enjoyed with thousands of tipsy locals under the cherry blossoms in Ueno Park, Tokyo. Hanami, or cherry blossom watching, is an important event during the few weeks in spring when the blossoms are in bloom. The national weather service provides bloom forecasts and junior employees are sent in the morning to lay out blue tarps and claim precious space in the parks before they fill with people walking, photographing, drinking, eating, and enjoying each other's company. The blossoms are a pretty powerful symbol for the fleeting beauty of life.
Another delicious meal was traditional Japanese tapas-style pub food shared in a small bar with a Japanese friend in Tokyo and some friends of a friend visiting from Norway. We munched on grilled skewers, a pork stew, and edamame beans and washed it all down with beer and huge glasses of plum wine and sake--they pour until it overflows into the saucer because if it's overfilled it can't be underfilled!
Also in Tokyo, we had Ten Don--massive fried prawns on rice--at a tempura restaurant, seated with our shoes off on tatami mats. And in Hiroshima we enjoyed Okonomiyaki, a local creation consisting of a savoury pancake piled with layers of noodles, cabbage, bacon, cheese, green onions, fried egg, sticky sauce, and unknown secret powders. You sit around the edge of a giant grill and the food is cooked in front of you and served on the grill just by sliding it towards you. Amazing! Don't knock it 'til you try it.
It was all going well until last night when we accidentally ordered the house special: offal stew. It wasn't as awful (ha!) as I expected--Ruth disagrees--but my imagination wasn't happy with it and after working my way through about half I was keen to settle it with something more normal... like matcha-flavoured Kit Kat of course; it seems there are all sorts of odd varieties here to try.
I still need to get a good sushi fix and we're on a Ten Katsu mission tonight.