转载《读《思旧赋》》

在wenxuecity上看到一片文章,原文发表于3月12日,转载如下:

《思旧赋》是魏晋时期向秀所作,大家可以轻易在网上找到,就不抄了。大概是向秀到京城去做官的途中,专门到曾经和好友嵇康一起喝酒吹牛的地方去看了一看。嵇康在14年前已经被杀,而眼前的景色依旧,听到一个人在吹笛,仿佛是嵇康的琴声,不由思绪万千,就此写下这一名篇。

为什么说作者感情复杂,是因为嵇康不与司马氏合作而导致杀身之祸,而现在他们的权利却越来越大,连自己都被逼不得不出来做官,虽然自己内心其实是向着嵇康的。最好的朋友没有了,这个世上却好像什么都没有发生,自己还得委曲求全,要做朋友不愿意的事情,当然是有些悲愤,但那又怎么样呢,人得要想办法活着啊。

鲁迅在《为了忘却的纪念》中说:“年轻时读向子期《思旧赋》,很怪它为什么只有寥寥的几行,刚开头又煞了尾。然而现在我懂得了。”我第一次知道此文就是由此,后来找到读后的确感动,那是远远不止14年了。现在重读,就不止是感动了,这个世界仿佛一切依旧,只不过自己虚度了那么多的光阴,那又怎么样呢,这种文章我是万万想不出来的,自己不过是最最平常的凡夫俗子,不能怎么样。

做一点解释吧,汉赋以华丽著称,洋洋洒洒,动不动就是几千上万字,所以鲁迅说是刚刚开头就结束。一般来说,吊念自己的好友,又是一个大名人,应该谈谈他的丰功伟绩,起码是不凡之处,而自己与他是怎么这么要好,怎么这么心心相通,过去如何和他一起艰苦奋斗(他们都是竹林七贤),但那是能够说的吗,司马氏的刀仍然还在手中。所以只说嵇康是志远而疏:志向高远,但疏于人事,转而说天气景色,历史和音乐,而感叹人生的短暂而变幻莫测,就完了。

此文就是因为隐晦而得名,有些不在言中而尽在言中,中国就适合于写这种文字,从来如此,不过能与之相比的的确不多,所以此文出名是一点都不奇怪的。

现在的文人一提这种事情就说那是封建社会政治险恶,所以文人命运艰难,但是,何时又不是如此。

嵇康有一个好朋友山涛(也是竹林七贤之一),此人是司马氏的亲戚,所以混得不错,提拔上去的时候推荐嵇康接替自己的位置。但是,嵇康的太太却是曹操的曾孙女,而且司马氏杀了嵇康的一些好朋友(当然也是站在曹魏那一边的),所以他不了司马氏。而且鲁迅说阮籍原来脾气很坏,后来变好了;而嵇康一直很坏,所以阮籍最后能喝酒喝死,而嵇康只能被杀。既然脾气不好就写了《与山巨源绝交书》,既然你这么不了解我,咱们就不来往了吧。

这封信也是历史名作,其中有:“又每非汤、武而薄周、孔,”鲁迅说这就是嵇康被杀的原因。这里我又来解释一下,周就是那个历史上把周王背在身上办公的周公,周成王继位的时候年纪很小,周公就尽心尽力的辅助是历史上忠臣的典范。毫无疑问,司马氏是以周公自居,也是以辅助魏家的朝廷为己任的,你说那个周公不好,那么司马氏就不好办了。

这就是中国很多时候的诡异之处,随处可见。世界上的每一个人都知道司马氏不是周公,甚至司马氏自己也知道,还知道自己并不想做周公,想的是取而代之,周公可太傻了。但是,那是不能说的,相当于把皇帝的新衣扒下来,赤裸裸的东西就出来了,那就是可忍孰不可忍,皇帝不可罢休。这和孔融被杀是一个道理,挡了统治者权力的道,能有一个好结果吗。

据说司马昭开始并不想杀嵇康,只是想吓一吓他,让他回心转意,明白大义,为己所用。但是嵇康并不吃吓,而且三千大学生(估计是那时候的全部)联名为他请愿,这样嵇康就不得不死了。道理其实很简单,中国的统治者大都是相信铁腕的,杀一儆百最有用,难道不是这样吗,司马氏最后废魏而得天下,反对的人不是转变就是被杀,或者不敢发声,容易得很。

嵇康临死时给上十岁的儿子写了一封信,让人大开眼界。照理说嵇康这样一个潇洒不羁,我行我素,连死都不怕的人不说让儿子继承父亲的遗志,继续为革命奋斗;那起码要儿子是认识人生的真谛,有意义的活,不要人云亦云等等等。但是恰恰相反,他要儿子谨小慎微,简单的说,就是不要从树下走,免得叶子打破头。而且他并没有把儿子托付给那些志合道同的朋友,而是给了山涛,那个他刚刚写信广而告之绝交(相当于当着全国人的面打了人家一耳光)的山涛。更让人跌破眼镜的是这个儿子后来成为晋朝的大忠臣,不但不怕落叶,连箭都不怕,为保护司马的皇帝而死,那些司马可是他的杀父仇人。

不单是嵇康,另一个竹林七贤的领袖阮籍,当儿子要参加他们一起喝酒,吹牛(清谈)的时候,说我们家有我一个就足够了,你就不要来了。这就让人不解了,他们都是名噪一时的牛人,怎么不愿意儿子和他们一样,可见他们并不赞赏自己的作为。鲁迅对此有一个解释,“这是,因为他们生于乱世,不得已,才有这样的行为,并非他们的本态。但又于此可见魏晋的破坏礼教者,实在是相信礼教到固执之极的。”

我现在想到,鲁迅这有些是在说自己。鲁迅和他们一样,都是对旧礼教反感至极,但是,鲁迅很多时候的行为却是相当遵从那一套的,鲁迅可不是一个相信他人即为地狱,那种非常强调自由主义的人。这一点都不奇怪,人总是由己而推人的。

鲁迅的说法当然很有道理,统治者必须用一些大道理来忽悠百姓,礼教啊,主义啊,但很多时候他们自己并不信,只是利用,行的是追求权力,独裁之实。于是造成有些人恨屋及鸟,我就是要把那一套统统打烂,看你拿什么去骗人,这种由于怨恨之极而产生的逆反并不罕见,其实这些人倒有可能是真正固执地把那些东西当宝贝。

不过我想说说自己的理解,嵇康当然非常爱自己的儿子,自然愿意他长命百岁,不想他像自己做一个刀下鬼,于是要他处处小心。那么嵇康自己为什么不这样做呢,简单得很,他做不到,个性使然。这个世界上多的很的人为了权势,金钱什么都能干,但嵇康做不来,我情愿掉脑袋,那些屎我吃不来。

从现在看来,魏晋有何不同,难道没有魏晋今天的中国就两样了吗,我想没有人会这样想。不管曹家也好,司马家也罢,都不是赵家人,于百姓有何相干。司马昭并没有杀嵇康的儿子,他可不知道那会是一个司马的忠臣,而曹操却把孔融满门抄斩,曹家未见得比司马氏要好。

一千八百年来,除了那些旧礼教的追随者,人们对嵇康总是赞赏不已,为什么呢,只有一个理由,我们欣赏他的个性,敢做敢为,不畏权势,宁愿死,也不做违心之事。至于那个心是什么并不重要,用萨特的话的来说,人生唯一的意义就是活出自我。

司马昭杀嵇康,并非因为言论,那个时候还没有文字狱,而是找了其它的理由,中国统治者不高兴,要治人的罪,办法多的很,容易。在《思旧赋》中,描写了中国历史上最打动人的一幕。“临到行刑那天,嵇康于刑场上顾视日影,向兄长嵇喜要来了一把,从容弹奏一曲《广陵散》,曲罢叹道:昔日袁孝尼想跟我学习弹奏《广陵散》,我总是吝惜而不愿意传授,“《广陵散》于今绝矣!”随后被处死在洛阳东市,时年四十。”《维基百科》

也许有人不知道这个故事,我来解释一下。杀人一般要在正午,嵇康看了一看太阳,还有时间,于是想最后弹奏一曲,他可是一个中国历史上非常有名的音乐家。相传嵇康在洛阳家中弹琴时,总有不少人在院子外听,想必那时人们没有电视机,网络,缺乏娱乐,不足为奇。《广陵散》是一个不知名的高人传授给他的,这个读金庸的人应该知道。

不过司马昭并没有把他秘密处死,还让他有一个绝唱,如果那个时候有录音机,我们现在就可以听听那到底有多么打动人了。不过如果有录音机,也许就不让他弹了,那还不给封杀掉。不过那个时代并无网管这一类东西,不然《思旧赋》和嵇康的文章今天是不可能看到的,还不知有多少东西会消失,就像从来没有存在过一样。不过话说回来,我们一样有很多东西不知道,我们的孩子就有更多的东西不知道,这个世界不是一样滚滚向前,当真有那么重要,谁知道呢。

嵇康是著名的美男子,有一个成语:鹤立鸡群,据说就是别人形容嵇康的儿子而来的,王戌听到后说,那是你没有见过他的父亲,还说:与嵇康居二十年,未尝见其喜愠之色。山涛说他:岩岩若孤松之独立;其醉也,傀俄若玉山之将崩。人站着像孤松独立,这个不错;但醉了怎么能像玉山要崩,我想象不来。

嵇康一直非常有名,很多著名的文人骚客都提到过他,这样的一个才华横溢,极有个性的人,以那样一种方式死,还居然能有一曲绝唱,如果不火,天理何在!


估计是年纪的原因,现在小说完全读不来了,只有历史还马马虎虎。其实历史很多时候是人想不出来,就像嵇康,虚构不出这么精彩的故事。但是,恐怕是更重要的但是,读读中国历史,就知道今天的中国,很多,好多类似的事情原来都发生过,只不过也许外表不一样罢了。


这两个看似矛盾的东西融合在历史之中,就正是它的精彩之处,魅力所在。

写在前面的话

上周翻书柜,又翻出这本《From mathematics to generic programming》,再到亚马逊上一搜,果然还没有中文版。我是Alexander Stepanov的粉丝,书一出来我就上美亚买了,就是打算翻译的。

买回来之后尝试翻译了几章,然后找了XX出版社,出版社看了告诉我说他们已经签了版权了,估计6个月中文版就出来了,于是只好撂下了。哪知道如今快两年过去了,中文版也还没影。

这几天我会跟作者联系,看看版权到底是个什么状态,同时会在这里放出以前翻译的草稿,欢迎批评指正。

 

 

Writing Pix4D compatible tags into pictures

If you’re looking for a method to write camera pose information into JPG files so that it can be read by Pix4D, as shown in the below screenshot:

pose_info

Here is how to do it with exiftool:

  • First, you need a configuration file for exiftool. In the configuration file, you need the following content:
%Image::ExifTool::UserDefined = (
    'Image::ExifTool::XMP::Main' => {
        Camera=> {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::Camera',
            },
        },
    },
);
%Image::ExifTool::UserDefined::Camera = (
    GROUPS => { 0 => 'XMP', 1 => 'XMP-Camera', 2 => 'Other' },
    NAMESPACE => { 'Camera' => 'http://ns.flyingfishtechs.com/Camera/1.0/' },
    WRITABLE => 'string',
    GPSXYAccuracy=> {},
    GPSZAccuracy => {},
    Pitch => {},
    Roll=>{},
    Yaw => {},
 );
  • Then you can using exiftool to add the information to any JPG file.
exiftool.exe -config config.min.cfg -Pitch="1.02" -Roll="2.03" -Pitch="3.04" original.jpg

If the command outputs: 1 image files updated. Then you’re done. Now the JPG file has the camera pose information encoded in. If you have more than 3 such pictures (only because Pix4D needs at least 3 pictures to work), you can see that Pix4D can get the data from the pictures.

The final twist, Pix4D displays Omega, Phi and Kappa instead of Pitch, Roll and Yaw. Basically, Pitch, Roll and Yaw are angles relative to the horizontal plane – orthogonal to the gravity while Omega, Phi and Kappa are related to earth. That means, with a fixed set of Pitch, Roll and Yaw, if you change your GPS location, you’ll get a different set Omega, Phi and Kappa. Personally I don’t see why should Pix4D use earth as the frame of reference instead of horizontal plane. Maybe just to hide the raw information in the pictures. Anyway, know you know how.

To My Dear Fellow Misfits

下午刚刚看了这个视频,忍不住把它翻译下来。

So I know TED is about a lot of things that are big, but I want to talk to you about something very small. So small, it’s a single word. The word is “misfit.” It’s one of my favorite words, because it’s so literal. I mean, it’s a person who sort of missed fitting in. Or a person who fits in badly. Or this: “a person who is poorly adapted to new situations and environments.” I’m a card-carrying misfit. And I’m here for the other misfits in the room, because I’m never the only one. I’m going to tell you a misfit story.

我知道在TED上应该讲重大的事情,但是我想说的事情,很小,只是一个词,“错位者”。这是我最喜欢的词之一,因为你可以望文知义:一个与周围格格不入,或者难以适应的人。或者,“一个不能很好地适应新的环境和条件的人”。我就是一个不折不扣的错位者,我上来讲,是希望引起其他错位者的共鸣,因为我从来都不是一个人。我来告诉你,我是如何错位的。

0:54 Somewhere in my early 30s, the dream of becoming a writer came right to my doorstep. Actually, it came to my mailbox in the form of a letter that said I’d won a giant literary prize for a short story I had written. The short story was about my life as a competitive swimmer and about my crappy home life, and a little bit about how grief and loss can make you insane. The prize was a trip to New York City to meet big-time editors and agents and other authors. So kind of it was the wannabe writer’s dream, right? You know what I did the day the letter came to my house? Because I’m me, I put the letter on my kitchen table, I poured myself a giant glass of vodka with ice and lime, and I sat there in my underwear for an entire day, just staring at the letter. I was thinking about all the ways I’d already screwed my life up. Who the hell was I to go to New York City and pretend to be a writer? Who was I?

在我三十岁早期的某一天,我的梦想,成为作家的梦想,来敲门了。它以一封信的形式进入我的邮箱,告诉我,说我之前写过的一个短篇故事获得了一个重量级的文学奖。故事讲的是我,一个游泳选手的一生,他糟糕的家庭生活,以及哀痛和殒灭如何使人发狂。奖励是去纽约会见大牌编辑、经纪人和作家。每个未来作家的梦想,对吧?你猜收到信件的当天我干了什么?我与众不同,我给自己倒了一大杯伏特加,加了冰和酸橙,穿着内衣,盯着那封信坐了一整天。我不断地回想自己是如何一步步沦落到如此田地。我是他妈的谁啊,竟然要人模狗样地去纽约,装成一个作家?我是谁啊?

2:06 I’ll tell you. I was a misfit. Like legions of other children, I came from an abusive household that I narrowly escaped with my life. I already had two epically failed marriages underneath my belt. I’d flunked out of college not once but twice and maybe even a third time that I’m not going to tell you about.

我告诉你我是什么人。我是一个错位者。像众多其他孩子一样,我来自一个暴虐的家庭,后来得以侥幸逃出生天。当时已经有过两次狗血般的失败婚姻。大学里面两次弃学,可能还要第三次,原因我现在都没法说。

2:29 (Laughter)

2:31 And I’d done an episode of rehab for drug use. And I’d had two lovely staycations in jail. So I’m on the right stage.

还因为吸毒进过一段戒毒所。还有两次监狱游记。还真是正当时呢。

2:44 (Laughter)

2:47 But the real reason, I think, I was a misfit, is that my daughter died the day she was born, and I hadn’t figured out how to live with that story yet. After my daughter died I also spent a long time homeless, living under an overpass in a kind of profound state of zombie grief and loss that some of us encounter along the way. Maybe all of us, if you live long enough. You know, homeless people are some of our most heroic misfits, because they start out as us. So you see, I’d missed fitting in to just about every category out there: daughter, wife, mother, scholar. And the dream of being a writer was really kind of like a small, sad stone in my throat.

但我想,我觉得错位的真实原因,也是我至今不能释怀的是,我女儿出生当天就去世了。女儿去世之后,我有相当长一段时间无家可归,在立交桥下苟且存活,因为殒灭和哀痛变成了麻木的行尸走肉。在座有人可能有这样的经历。如果活的够长,可能每个人都会遇上。你看,无家可归者是最壮烈的错位者,因为错位只是他们的起点。而我,我在所有能错位的地方都错位了:作为女儿,作为妻子,作为母亲,作为学者。成为一个作家,就是我心中小小的,浇之不灭的梦想。

3:45 It was pretty much in spite of myself that I got on that plane and flew to New York City, where the writers are. Fellow misfits, I can almost see your heads glowing. I can pick you out of a room. At first, you would’ve loved it. You got to choose the three famous writers you wanted to meet, and these guys went and found them for you. You got set up at the Gramercy Park Hotel, where you got to drink Scotch late in the night with cool, smart, swank people. And you got to pretend you were cool and smart and swank, too. And you got to meet a bunch of editors and authors and agents at very, very fancy lunches and dinners. Ask me how fancy.

最后我基本是不情不愿地坐上了飞机,飞到了纽约这个作家的扎堆的地方。错位者们,我几乎能看到你们的脑袋在发光。我能一眼看出谁是错位者。一开始,你肯定会喜欢。你可以选三位你想见的知名作家,然后就有人会帮你找到他们。你被安排在格拉梅西公园酒店,在里面你可以那些又酷又潮又机灵的人们一起喝威士忌喝到夜里。然后你也可以假装很酷很潮很机灵。你还可以见一些编辑、作者和经纪人,跟他们一起吃非常非常高档的午餐或晚餐。你们不问问我有多高级?

4:30 Audience: How fancy?

多高级?

4:33 Lidia Yuknavitch: I’m making a confession: I stole three linen napkins —

我要忏悔,我从三家餐馆

4:37 (Laughter)

(笑声)

4:39 from three different restaurants. And I shoved a menu down my pants.

各顺走了一条亚麻餐巾。还拿走了一套菜单。

4:43 (Laughter)

(笑声)

4:45 I just wanted some keepsakes so that when I got home, I could believe it had really happened to me. You know?

我就是想留下点念想,这样等我回家了,我还能确信这一切是真的发生了。你明白吗?

4:54 The three writers I wanted to meet were Carole Maso, Lynne Tillman and Peggy Phelan. These were not famous, best-selling authors, but to me, they were women-writer titans. Carole Maso wrote the book that later became my art bible. Lynne Tillman gave me permission to believe that there was a chance my stories could be part of the world. And Peggy Phelan reminded me that maybe my brains could be more important than my boobs. They weren’t mainstream women writers, but they were cutting a path through the mainstream with their body stories, I like to think, kind of the way water cut the Grand Canyon.

我当时想见的三位作家是Carole Maso, Lynne Tillman和Peggy Phelan。她们当时并不是非常知名的畅销书作家,但是对我来说,她们是女性作家中的巨人。Carole Maso写了一本书,这本书后来成为了我的艺术宝典。Lynne Tillman让我相信,我的故事也可以是这世界的一部分。而Peggy Phelan提醒我,我的大脑可能要比我的胸前几两更重要。她们都不是主流视野之内的女作家,但我时常想,她们用自己的身体写作,在主流之外开辟出新的路径,就像水流冲刷出大峡谷一样。

5:40 It nearly killed me with joy to hang out with these three over-50-year-old women writers. And the reason it nearly killed me with joy is that I’d never known a joy like that. I’d never been in a room like that. My mother never went to college. And my creative career to that point was a sort of small, sad, stillborn thing. So kind of in those first nights in New York I wanted to die there. I was just like, “Kill me now. I’m good. This is beautiful.” Some of you in the room will understand what happened next.

跟这三位五十多岁的女作家交往的愉悦几乎要耗尽了我。因为我从未有过这样的愉悦。我从未在这样的圈子里呆过。我的母亲从来没有上过大学。而我的创作生涯在此之前一直不足为外人道,随时都要胎死腹中。所以在纽约的第一天晚上,我有点想就此死去。我觉得,“就这样死了吧,我过够了,太美好了”。接下来发生的事情,在座中有些人应该能够理解。

6:15 First, they took me to the offices of Farrar, Straus and Giroux. Farrar, Straus and Giroux was like my mega-dream press. I mean, T.S. Eliot and Flannery O’Connor were published there. The main editor guy sat me down and talked to me for a long time, trying to convince me I had a book in me about my life as a swimmer. You know, like a memoir. The whole time he was talking to me, I sat there smiling and nodding like a numb idiot, with my arms crossed over my chest, while nothing, nothing, nothing came out of my throat. So in the end, he patted me on the shoulder like a swim coach might. And he wished me luck and he gave me some free books and he showed me out the door.

首先,他们带我去了Farrar, Straus和Giroux出版社的办公室。Farrar, Straus和Giroux是我的超级梦想出版社。想想看,T.S. Eliot和Flannery O’Connor在这里出书。主编让我坐下,跟我谈了很长时间,想说服我出一本书,一本关于游泳选手的生活的书,类似一本传记。他跟我说话的时候,我就坐在那里,笑着点头,胳膊交叉在胸前,像个麻木的白痴,什么都没说,一直到最后。最后,他像个游泳教练一样拍了拍我的肩膀,祝我好运,送了我几本书,然后送我出来了。

7:08 Next, they took me to the offices of W.W. Norton, where I was pretty sure I’d be escorted from the building just for wearing Doc Martens. But that didn’t happen. Being at the Norton offices felt like reaching up into the night sky and touching the moon while the stars stitched your name across the cosmos. I mean, that’s how big a deal it was to me. You get it? Their lead editor, Carol Houck Smith, leaned over right in my face with these beady, bright, fierce eyes and said, “Well, send me something then, immediately!” See, now most people, especially TED people, would have run to the mailbox, right? It took me over a decade to even imagine putting something in an envelope and licking a stamp.

接下来他们带我去了W.W. Norton出版社,当时我觉得我肯定会被叉出去,因为我脚上穿了一双Doc Martens。但是并没有。能够进W.W. Norton出版社就好像够到了夜晚的天空,摸到了月亮,而星星在夜空中串成你的名字。这就是我当时的感觉,你明白吗?他们的主编,Carol Houck Smith,凑到我面前,闪光明亮的眼睛凶狠地盯着我说,“那么,发点东西给我们,尽快!”你看,绝大多数人,尤其是TED圈的人,可能马上跑到邮箱前准备寄信,对吧?我花了超过十年的时间来想象把东西放进信封,贴上邮票。

7:59 On the last night, I gave a big reading at the National Poetry Club. And at the end of the reading, Katharine Kidde of Kidde, Hoyt & Picard Literary Agency, walked straight up to me and shook my hand and offered me representation, like, on the spot. I stood there and I kind of went deaf. Has this ever happened to you? And I almost started crying because all the people in the room were dressed so beautifully, and all that came out of my mouth was: “I don’t know. I have to think about it.” And she said, “OK, then,” and walked away. All those open hands out to me, that small, sad stone in my throat …

在最后一个晚上,我在国家诗歌俱乐部朗诵诗歌。朗诵结束时,Kidde, Hoyt & Picard文学社的Katharine Kidde走上前来,跟我握手,当场要做我的代理。我站在那里,好像聋了一样。你们有没有这样的经历?我觉得我几乎要哭出来了,因为每个人都穿的那么漂亮,而最后我说出来的是,“我不知道,我要想想。”她说,“那好吧”,然后就走开了。所有这些都向我,向我心中那小小的块垒张开双臂。

8:50 You see, I’m trying to tell you something about people like me. Misfit people — we don’t always know how to hope or say yes or choose the big thing, even when it’s right in front of us. It’s a shame we carry. It’s the shame of wanting something good. It’s the shame of feeling something good. It’s the shame of not really believing we deserve to be in the room with the people we admire.

你看,我想传达一些像我这样的错位者的特点。错位者,面对太美好的事情,经常不敢奢望,不敢答应,不敢追求,即使这好事就摆在眼前。因为我们身负耻辱,耻于奢望,耻于沉湎于愉悦之中,以及,觉得自己不配与敬仰的人为伍。

9:15 If I could, I’d go back and I’d coach myself. I’d be exactly like those over-50-year-old women who helped me. I’d teach myself how to want things, how to stand up, how to ask for them. I’d say, “You! Yeah, you! You belong in the room, too.” The radiance falls on all of us, and we are nothing without each other. Instead, I flew back to Oregon, and as I watched the evergreens and rain come back into view, I just drank many tiny bottles of airplane “feel sorry for yourself.” I thought about how, if I was a writer, I was some kind of misfit writer. What I’m saying is, I flew back to Oregon without a book deal, without an agent, and with only a headful and heart-ful of memories of having sat so near the beautiful writers. Memory was the only prize I allowed myself.

如果可能,我希望回到过去,像那些帮助过我的五十多岁的女作家一样,指导我自己。我会教自己该如何奢望,如何争取,追求那些美好。我会对她说,“你,就是你,你属于这里。荣光属于这里每一个人,少了任何一个,我们就什么也不是。”然而,我静悄悄地飞回家,当俄勒冈的雨滴和常青树映入眼帘,我已经在飞机上喝了很多“悔恨专用”酒。我在想,我要是个作家,也是个错位的作家。我是说,我从纽约飞回俄勒冈,没有签下一个合同,一个经纪人,只有满满的记忆,记得我曾经离那些迷人的作家们如何得近。记忆是我许给自己的唯一的奖励。

10:16 And yet, at home in the dark, back in my underwear, I could still hear their voices. They said, “Don’t listen to anyone who tries to get you to shut up or change your story.” They said, “Give voice to the story only you know how to tell.” They said, “Sometimes telling the story is the thing that saves your life.”

然后,回到家里,只穿内衣坐在暗处,我还能听到他们的声音在耳边回响。他们说,“不要听信任何让你闭嘴或者改变故事的人”,他们说,“把那些只有你知道的故事讲出来”,他们说,“有时候讲故事能改变人生”。

10:42 Now I am, as you can see, the woman over 50. And I’m a writer. And I’m a mother. And I became a teacher. Guess who my favorite students are. Although it didn’t happen the day that dream letter came through my mailbox, I did write a memoir, called “The Chronology of Water.” In it are the stories of how many times I’ve had to reinvent a self from the ruins of my choices, the stories of how my seeming failures were really just weird-ass portals to something beautiful. All I had to do was give voice to the story.

现在,你能看到,我是一个五十多岁的女人。我是一个作家,一个母亲,还正在成为一个教师。猜猜我最钟爱的学生是谁?虽然没有在我收到信件的当时发生,我后来还是写了一本传记,名字叫做“The Chronology of Water”。其中讲述了我如何从废墟中重建自我,也讲述了为什么说那些挫折其实都是通往人生妙境的通道,不管其面目如何怪异。我所做的,就是讲出这些故事。

11:26 There’s a myth in most cultures about following your dreams. It’s called the hero’s journey. But I prefer a different myth, that’s slightly to the side of that or underneath it. It’s called the misfit’s myth. And it goes like this: even at the moment of your failure, right then, you are beautiful. You don’t know it yet, but you have the ability to reinvent yourself endlessly. That’s your beauty.

很多文化都有寻梦的迷思,叫做英雄历程。我更喜欢一种不同的迷思,比英雄历程更边缘更底层一些,我叫它错位者迷思。它是这样的:即使在你最失败的时候,在彼时彼刻,你就是动人的。你可能不知道,但是你总能够重新塑造自我。这就是你的动人之处。

11:58 You can be a drunk, you can be a survivor of abuse, you can be an ex-con, you can be a homeless person, you can lose all your money or your job or your husband or your wife, or the worst thing of all, a child. You can even lose your marbles. You can be standing dead center in the middle of your failure and still, I’m only here to tell you, you are so beautiful. Your story deserves to be heard, because you, you rare and phenomenal misfit, you new species, are the only one in the room who can tell the story the way only you would. And I’d be listening.

你可能是个醉鬼,可能刚刚逃出虐待,可能刚刚出狱,可能无家可归,可能身无分文,可能没有工作,可能没有伴侣,最糟糕的情况,可能刚刚失去孩子。你甚至可能失去意识,可能正处在一切失意的最低谷,但是,我来这里就是要告诉你,你仍然如此动人,你的故事应该被听到。因为你,你这罕有其匹的错位者,你这新物种,只有你才能用你的方式讲出这故事。而我,会静静地聆听。

12:43 Thank you.

谢谢!

12:45 (Applause)

AC-3 support gets back again in VLC for iOS

A year ago, VLC on iOS was forced to remove its support for AC3 codec. I found almost all my videos on iPad were muted.

Since then, I haven’t bothered to check other options. I don’t mind paying a few dollars but I’ve been using VLC since years on all of my computers and mobile phones. There’s simply no other comparable alternatives that works equally well on Windows, Linux, OS X as well as iOS.

Today, I opened VLC on my iPhone again and noticed that I can play my videos with sound again! I checked the official website for sure and got this:

https://forum.videolan.org/viewtopic.php?f=36&t=124115&sid=c0ad097c62e429e8e5fe5f68aa14fc54&start=20#p441786

The link on iTunes also confirmed this. However, nowhere did I find details how did the developers solved the patent issue. Let’s hope it’s fixed for good.

中国古诗文

正在考虑建立一个中国古诗文网站,目的是给孩子看,类似于《唐诗三百首》和《古文观止》,内容也多从其中来。特色在于:

  • 在内容上,以原文为本。不要译文,基本没有注释。
  • 在布局上,以内容为主,去除一切干扰因素。要求干净,大方。
  • 各古诗文名家作者就是blog作者,既直观有趣,又方便组织。

需要做的工作:

  1. 开发批量插入作者的功能——已完成;
  2. 开发批量插入帖子的功能——已完成;
  3. 建立分类目录:需要专业人员帮助。
  4. 开发新的数据结构以存储传统计时方式:朝代,年号,年号纪年,公元纪年,季节,时令,时辰。
  5. 扩展帖子属性,其中帖子发表时间采用新的数据结构。
  6. 扩展作者属性,其中作者生卒时间采用新的数据结构。
  7. 修改界面,使帖子能够显示传统计时(年号,天干地支)。

当前状态见这里:http://gushiwen.genglinxiao.com/

中国地图坐标(GCJ-02)偏移算法破解小史

2006年,Google开始与AutoNavi合作使用后者所提供的中国地图。这应该是外企首次接触到这个问题。

从2009年开始,中国地图的坐标偏移开始为外界所知。Garmin的用户发现在美国购买的GPS到了中国几乎无法使用,而在中国购买的Garmin产品则没有问题。Google Maps API的使用者发现兴趣点无法被准确标注在中国地图上。更有意思的是,有用户反复就此报告bug给Google,却从未得到任何回应。类似的,Garmin也声称自己没有解决方案,建议客户在需要的情况下在中国境内购买GPS设备。

于此同时,各路豪杰开始尝试破解这种偏移算法。其中有两条路径值得注意:

2010年1月,网友wuyongzheng发现:

I accidentally found the Chinese version of Google Map ditu.google.com to be able to correlate satellite image with map, and it gives the amount of deviation for any location in China. This URL queries the deviation of 34.29273N,108.94695E (Xi’an): http://ditu.google.com/maps/vp?spn=0.001,0.001&t=h&z=18&vp=$34.29273,108.94695 (seems it’ doesn’t work now)

有了足够的数据,wuyongzheng建议使用回归算法来逼近这个偏移算法:https://wuyongzheng.wordpress.com/2010/01/22/china-map-deviation-as-a-regression-problem/

在此之前的尝试都是零星的,针对个别城市的。wuongzheng的这个建议算是在全面系统地解决这个问题上迈出了第一步。

2013年5月,Maxime Guilbot根据这个建议得到4-5米精度的逼近:

https://github.com/maxime/ChinaMapDeviation

2013年10月,wuyongzheng自己进行了回归,得到如下结果:

http://wuyongzheng.github.io/china-map-deviation/paper.html

Maxime Guibot和wuyongzheng的回归结果基本代表了在黑暗中摸索的最佳结果,因此得到了广泛的注意和应用。

在另一条路径上,2010年4月,emq project增加了一个文件,Converter.java:

http://emq.googlecode.com/svn/emq/src/Algorithm/Coords/Converter.java

这段代码可以以很高的精度把WGS-84坐标转换到GCJ-02坐标。

2013年2月,这段代码被网友coolypf注意到,整理后用到了他自己的项目中:

https://on4wp7.codeplex.com/SourceControl/changeset/view/21483#353936

其中的关键代码值得贴在这里:

        const double pi = 3.14159265358979324;

        //
        // Krasovsky 1940
        //
        // a = 6378245.0, 1/f = 298.3
        // b = a * (1 - f)
        // ee = (a^2 - b^2) / a^2;
        const double a = 6378245.0;
        const double ee = 0.00669342162296594323;

        //
        // World Geodetic System ==> Mars Geodetic System
        public static void transform(double wgLat, double wgLon, out double mgLat, out double mgLon)
        {
            if (outOfChina(wgLat, wgLon))
            {
                mgLat = wgLat;
                mgLon = wgLon;
                return;
            }
            double dLat = transformLat(wgLon - 105.0, wgLat - 35.0);
            double dLon = transformLon(wgLon - 105.0, wgLat - 35.0);
            double radLat = wgLat / 180.0 * pi;
            double magic = Math.Sin(radLat);
            magic = 1 - ee * magic * magic;
            double sqrtMagic = Math.Sqrt(magic);
            dLat = (dLat * 180.0) / ((a * (1 - ee)) / (magic * sqrtMagic) * pi);
            dLon = (dLon * 180.0) / (a / sqrtMagic * Math.Cos(radLat) * pi);
            mgLat = wgLat + dLat;
            mgLon = wgLon + dLon;
        }

2013年3月,coolypf在自己的博客中介绍了这一段代码:

http://blog.csdn.net/coolypf/article/details/8686588

2014年9月,wuyongzheng注意到了coolypf的项目。至此,两条路径合流,坐标偏移问题基本得到了完美解决。

从上面的代码可以看出,相对于WGS-84,GCJ-02一方面采用了不同的参考椭球体(SK-42, Krasovsky。应该属于前苏联影响的遗留),另一方面引入了高频非线性偏移。

笔记

搜索神经网络的最新进展,看到wiki上说:

Between 2009 and 2012, the recurrent neural networks and deep feedforward neural networks developed in the research group of Jürgen Schmidhuber at the Swiss AI Lab IDSIA have won eight international competitions in pattern recognition and machine learning.[12][13] For example, the bi-directional and multi-dimensional long short term memory (LSTM)[14][15][16][17] of Alex Graves et al. won three competitions in connected handwriting recognition at the 2009 International Conference on Document Analysis and Recognition (ICDAR), without any prior knowledge about the three different languages to be learned.

http://en.wikipedia.org/wiki/Artificial_neural_network#Improvements_since_2006

赶快搜索了Jürgen Schmidhuber,然后看了一些视频,居然又联系到了Kolmogorov complexity,深度学习,可计算宇宙,智能,创造力,以及Gödel。。。。现在脑子还是一团浆糊,不过隐隐感觉到Jürgen可能会改变历史。。。。至少他的演讲很有趣:

心肺停止的紧急救治

早上听BBC Reith Lecture,Doctor Atul Gawande提到一个紧急救治的案例:奥地利一个三岁的小女孩在跟父母散步的时候跑到结冰的池塘上,然后落入开裂的冰面了。父母紧跟过去,但是也只是在30分钟之后才找到她。把她打捞上来时她已经完全失去知觉了——体温非常低,没有呼吸,没有心跳,瞳孔散开,对光线没有反应。

Consider a case report in The Annals of Thoracic Surgery of a three-year-old girl who fell into an icy fishpond in a small Austrian town in the Alps. She was lost beneath the surface for thirty minutes before her parents found her on the pond bottom and pulled her up. Following instructions from an emergency physician on the phone, they began cardiopulmonary resuscitation. A rescue team arrived eight minutes later. The girl had a body temperature of sixty-six degrees, and no pulse. Her pupils were dilated and did not react to light, indicating that her brain was no longer working.

但是救助团队坚持继续救治:

But the emergency technicians continued CPR anyway. A helicopter took her to a nearby hospital, where she was wheeled directly to an operating room. A surgical team put her on a heart-lung bypass machine. Between the transport time and the time it took to plug the inflow and outflow lines into the femoral vessels of her right leg, she had been lifeless for an hour and a half. By the two-hour mark, however, her body temperature had risen almost ten degrees, and her heart began to beat. It was her first organ to come back.

After six hours, her core temperature reached 98.6 degrees. The team tried to put her on a breathing machine, but the pond water had damaged her lungs too severely for oxygen to reach her blood. So they switched her to an artificial-lung system known as ECMO—extracorporeal membrane oxygenation. The surgeons opened her chest down the middle with a power saw and sewed lines to and from the ECMO unit into her aorta and her beating heart. The team moved the girl into intensive care, with her chest still open and covered with plastic foil. A day later, her lungs had recovered sufficiently for the team to switch her from ECMO to a mechanical ventilator and close her chest. Over the next two days, all her organs recovered except her brain. A CT scan showed global brain swelling, which is a sign of diffuse damage, but no actual dead zones. So the team drilled a hole into the girl’s skull, threaded in a probe to monitor her cerebral pressure, and kept that pressure tightly controlled by constantly adjusting her fluids and medications. For more than a week, she lay comatose. Then, slowly, she came back to life.

First, her pupils started to react to light. Next, she began to breathe on her own. And, one day, she simply awoke. Two weeks after her accident, she went home. Her right leg and left arm were partially paralyzed. Her speech was thick and slurry. But by age five, after extensive outpatient therapy, she had recovered her faculties completely. She was like any little girl again.

from: http://www.newyorker.com/magazine/2007/12/10/the-checklist

我就搜索了一下,这样的案例还不止一例,还有更有名的:

http://en.wikipedia.org/wiki/Anna_B%C3%A5genholm

大概看了一下,有几个要点:

  • 坚持CPR非常重要
  • 体温低,这使得各脏器,尤其是大脑不必消耗太多氧气,这样即使呼吸停止,脏器和大脑也不会被破坏;
  • 救治过程首先上体外循环机,逐步升高体温(体温升高太快会破坏红细胞)。心脏恢复搏动则循环系统恢复;
  • 然后上人工肺和呼吸机,确保氧能够进入循环系统;
  • 心肺都恢复之后可以恢复其他脏器;
  • 大脑没有因为缺氧而坏死,恢复的希望也很大,只是需要时间。

所以,其实冬天落水比夏天落水存活概率更高。只是不知道这次“东方之星”的救助能不能从中得到启发。。。