Wow, amazing...
I saw the sky was flashing like 3 times a second but these images are amazing!
2011: Based cenrally in Asia (HK) I'll explore Asia and go to China and learn Mandarin, play some Tai Chi, and drink Tea! 2010: I'm travelling in the world. In June I gave notice to leave my job after a wonderful 5 years. 2008: I moved to Sydney from San Francisco at the end of September 2008. This picture blog is mostly published from my ozPhone as I go along in life. /jsk
Wow, amazing...
I saw the sky was flashing like 3 times a second but these images are amazing!
Notice the naked feet guides. This is a level of realism. I see it as the Chinese see people basically as being naked. Nothing to be ashamed of. Old ladies may lean on your shoulder in the subway...
Alright, either the miserably weather is over after 2 months rain bit arriving in chengdu warmed me a little. Will see if it's a bigger city than chonhqing in spite of it having fewer people, 10million instead of 32...
These is implements given when eating a sandwich. Chinese, especially more country side will not often eat food holding it directly in their hands. Especially for kfc and western style food places coffee shops where you eat finger food.
I remember when first visiting China and Thomas and Mareen in Beijing many years ago. I met a guy who just arrived in Beijing he was a chef, we ate in his hometown style cheap restaurant in a hutong which now is gone. One time I took him to MacDonalds. He never eaten there. I got some burgers. After we sat down to eat he just looked at me grabbing my burger with my hands and eating. He went and argued with the people behind the counter and came back with a plastic spoon which he used to eat his burger with. In one way I was thinking that, hmmm, the Chinese are rather civilized....
Taking taxi in China can be quite interesting, its also a good opportunity to practice your bad Chinese, in the end you'll leave and never meet again so it doesn't really become uncomfortable.
Ask where he's from, how old, have wife (taitai), how many taitai... The last question is usually appreciated!
I'm any case, one trick late night with little traffic is that a red light ahead but green light right turn can easily be used to go straight albeit a bit bent. Turn slightly right, veer through the intersection turn right again, which now actually is straightening out veering back, thus two right bridged by a didn't turn right becomes an almost green straight.
Also , they was a police block with alco test which he u-turned in front of because it saves time... The police it would seem doesn't mind these things. And somebody really really drunk wouldn't see them thus will get caught.
It's all in one harmonious day.
You might know that 3+2*2 is 7 and not 10. At least for mathematicians.
Now all people aren't mathematicians, and neither are computers as it turn out. Somebody painstakingly told the computer how to do this correctly.
OK
How does this work? Well for anything a computer reads there is a parser that transforms text to another text which is closer to what a computer understands.
Since I lately been telling my computer that it's a Panda I have to talk panda language to it.
In this case you can't say 3+2*2 but have to say
--- plus(3, times(2, 2))
You could say. 2.times(2).plus(3) buy that's another story.
From here on it gets technical, you can skip it if you want, most will. The ones who might understand it may say it's bullocks too! That's fine. Go watch star wars then instead!
- - -
So I was thinking that a parser essentially need backtracking for simplicity of implementation. It also needs a way to choose between alternatives.
Since my language Panda already does backtracking I only need a way to implement choice. In SQL is called OR. I don't have it. Then it struck me that OR is just a kind of enumeration and invocation of different code paths!
I just need a way of listing the appropriate functions that are the choices and then apply them to the given arguments. Turns out I already have this by reflection on functions. That is I can find all functions in my system matching a certain name or parameters, and then call each of those functions.
You can for example say:
func('number_number_number').call(4,3)
And it will give you 1.3333 4 3 1 7 12
Which are the results of divide, max, min, minus, plus, times.
It's not Beatiful, but it isn't too bad either.
I wrote a simple expression parser, handling priorities of operators correctly.
This is how its used.
'3+2*2'.syntax.expr.empty.gen.panda
This gives 7!
.syntax generates a syntax structure
.expr parses the expression
.empty requires that after parsing the expression the state is empty
.gen returns the generated code as of previously given
.panda takes that code and gives it to panda, that, hmmmm, will parse it, generate internal code, then JavaScript code which then will be run.
Time to sleep.
The shaolin is actually a university, many study marital arts but some don't. They have about 22000 students, this is one dormitory we peeked into.
Now doing kungfu they may sweat so one would think that with that many sneaked the stank would be overwhelming but I could not detect any. I asked if it was cold in winter but it isn't because so many in one room.
Turns into big spectacle many wants to see the laowei and take picture. The cost was 10rmb, my friend was translating. Since we sit down we had, in the end, to pay for two. Lol. Anyway, don't remember much then generic good fortune guesses. Live long and Prosper!