【新闻】还真有这事:副驾驶睡着,驾驶员被关在外面了orz

备份之用。

(CNN) — Dutch airline Transavia said it has launched an investigation after a Boeing 737 pilot was locked out of the cockpit and his first officer was later found asleep at the controls.
德国的Transavia 航空在一架737的驾驶员被睡着的副驾驶关在驾驶舱外之后,开展了调查。

The incident took place in September, when the airliner was en route from Greece to the Netherlands, a top Dutch safety investigation agency said. The 737 landed safely in Amsterdam as scheduled, the airline said Wednesday.
一名德国的高级飞安官员称,此事发生在9月,当时飞机正执行希腊到荷兰的定期航班。航空公司周三称,这架飞机在阿姆斯特丹准时着陆。

According to a Dutch Safety Board report released Wednesday, the pilot stepped out of the cockpit to take a bathroom break about 2½ hours into the flight.
据德国飞安部门周三披露的报告称,机长在飞行2.5小时时出去嘘嘘。

When he returned a short time later, the pilot used an intercom to ask his first officer to open the door. There was no answer, the report said.
当这货很快回来时,他用内话系统喊副机长开门。报告称,没人吱声。

Eventually, the pilot alerted the crew and was able to open the door himself. That’s when he found the first officer asleep, according to the report.
最后,机长警告了机组,自己把门打开了。报告称,当时他发现副机长睡着了囧rz。。。
(super批注:机长自己不知道密码么?)

“It’s a serious incident,” said Wim van der Weegen of the Dutch Safety Board, “What makes it serious is the combination of the pilot being unable to access the cockpit and the first officer being asleep.
飞安官员称“这事很严重,特别是副机长睡着了,机长又进不去驾驶舱。”

“By ‘serious incident,’ I mean the flight was in danger,” he said.
他说,“我的意思的,飞行曾经处于险境。”
(super批注:Silkair 185.。。。。)

The Dutch Safety Board will decide whether to open its own inquiry when the airline’s investigation is finished, van der Weegen said.
这人又表示,德国飞安部门将考虑航空公司内部调查完毕后,是否开展调查。

Laws regarding pilot breaks during flights vary from country to country. For U.S. carriers, sleeping while at the controls is a violation of FAA regulations. Flights longer than eight hours require a relief pilot on board to take over when pilots sleep.
这事在不同的国家,犯的法不同,至少在美国是犯法的。8小时以上的航班需要另一个机组轮换。

U.S. airlines also require a flight attendant to be in the cockpit when the pilot or first officer take bathroom breaks, in case the person flying the aircraft becomes incapacitated.
美国还要求机长或副机长如厕的时候,驾驶舱里面必须有空服员,以防剩余的飞行员突然失能。

 

就翻一个:(这个还是很有营养的,大家可以看看。。。。重要地方黑体标出,懒得看的直接看黑体)
GnatB Zephyr • 3 days ago
They weren’t on autopilot?。。。这人剩下的话不是重点。难道没有自动驾驶吗?
(以下不一定逐字翻译,但是重点肯定不会缺)Zephyr GnatB • 2 days ago
(前文:有人YY为什么不能取消飞行员,还有就是这货。)

Autolands do exist, and they are used in extreme weather on some aircraft. Let’s set aside the fact that they require some pretty involved programming before the approach begins and no airliner has an autoland programmed before they have a runway assignment from the destination ATC. We’ll also ignore the fact that autolands can land in zero visibility, but aren’t so good at strong crosswinds, tailwinds, or turbulence creating large pitch excursions. Both the runway (like you said) AND the airplane have to be equipped with the capability. The flight was going to Amsterdam, so at least one runway there would be so equipped. The airplane probably was not. Autoland technology can be installed on any airliner, but it’s expensive and you’ll primarily see it on the largest long-haul jets in a major airline’s fleet. It’s pretty uncommon at budget airlines and on smaller jets used for shorter over-land routes because the cost of an occasional fog-related diversion is generally less than the cost of installing and maintaining the system. I don’t know for sure, but I doubt an airline like Transvia would have sprung for that cost. Saying that airliners can land themselves is like saying cars can parallel park themselves. The technology exists, sure, but most of the cars driving around the city don’t have it.

有“自动着陆”,在极端天气下,某些飞机会使用。先不谈这个需要特殊的进场程序,这些东西航空公司在得到空管的跑道许可之前根本没法写。也不谈这东西在0能见度下好用,但是在强侧风,顺风,乱流等恶劣天气下不好用。自动着陆需要跑道和飞机共同达到要求。飞机是去阿姆斯特丹,所以至少一条跑道会有这套设备,但是飞机就不一定了。有安这东西的公司,但那都是有钱的主,廉价航空一般不安,因为投入产出不成比例。文中的这个公司可能就没有。总之,这就像可以自动进车位的技术一样:有倒是有,但是基本上路上跑的车都没有安。

(super注释:这就是所谓的ILS,必须有ILS3类才能使用自动着陆。目前中国没有这样的机场,而且公司也不允许使用这东西。ILS的细节可以wiki,也可以到模拟飞行那边问。貌似fs9有一课就是ILS盲降?)

 

Autolands aside, people misunderstand autopilots themselves. Modern airliners do have the autopilot on for the majority of the flight, but that autopilot requires constant inputs. Even the most advanced airliners out there don’t start their descent without pilot input. The technology might technically exist, but jets fly in complicated, congested airspace and you don’t start a descent until have clearance from ATC, which means that you don’t have the descent programmed until you actually hear ATC clear you to start down. When the autopilot is on, pilots are constantly manually programming it to turn to headings, intercept new courses, start climbs, start descents, slow down, speed up, etc. The pilot’s hands might not be on the yoke and thrust levers, but they’re still telling the airplane to do every step along the way.

而且,大家对自动驾驶有误解。大多数时间都是自动驾驶仪操作,但是自动驾驶仪需要一直有人工输入数据。最先进的飞机也得人工输入才能下降。技术存在,但是没ATC指令,飞机不能开始下降程序。飞行员还是要控制航向,路径点,爬升,下降,加速,减速。等等。虽然手不用放在方向舵和油门杆上,但是飞行员还是要给飞机下指令。(super注释:“等等”包括监控飞机,联系ATC。手册写明,公司推荐使用自动驾驶;但是要了解自动驾驶的局限性,而且,恶劣天气必须人工。

 

That’s why those flights with pilots asleep and/or distracted overflew their destinations. Without input to start down, the airplane would laterally track the last course programmed into the flight management system at the last altitude it was flying at. When it reached the end of its programmed route it would default into just flying straight ahead. This also happened to the private jet carrying golfer Payne Stewart after it suffered a decompression that rendered the pilots unconscious but the airplane physically unharmed. The flight was supposed to be from Florida to Dallas, but without pilot inputs it ended up flying a constant heading until it ran out of fuel and crashed…in South Dakota.

所以,如果飞行员睡着了,有可能飞过头。现在的自动驾驶仪是,按设定飞向最终的路径点。到达之后,就直线飞行。Payne Stewart这人的飞机就是这样,飞行员睡着了,结果飞机一飞行,最终坠毁。应该是从弗罗里达到达拉斯,结果飞机竟然飞到了南达科他州。

 

As for aircraft taxiing themselves, that technology is being looked into by Honeywell and a few other companies but it is years away from actual real world testing. Despite advances in technology, airliners still require a (conscious) pilot at the controls. You will get into a city bus without a driver before you board an airliner without a pilot.
无人驾驶的科技正在研发,但是还远得很。。。现在,飞行员是必不可少的。估计,公共汽车会先实现无人化吧。。。
(super注释:至少某些地铁貌似无人化了。。。)

(edited) Wow, I get long-winded. Apologies for the length.好吧,写的太长了。。。(好吧,你累死我了。。。)

下面还有一些外行在争论,不搬了。

大家可以开始吐槽了。。。

Adsense,Ads,Ad….

      1 Comment on Adsense,Ads,Ad….

All right…

 

For a green hand, it is hard to know how to put Adsense on a blog…..

So I refered to a tool to help me.

However, even I do not like a blog with 3 ads on it….

So, I changed it:

It will only appear on the sidebar, to make sure it won’t trouble you.

Hope it will help….

折腾:WP挂Adsense

      No Comments on 折腾:WP挂Adsense

在@sundaymouse 童鞋的大力推荐下,我决定在这个blog上面挂广告。

 

用了一个插件,这样省心一点。

这个插件有限制,只能放3个:最开始大家都想着怎么bypass,实际上google只允许每页3个,多了。。。会被K。

P.S:看见恶心广告了,请通知我,我去后台把它们举报了。。。

首发:基于Openshift的StartBBS安装

      No Comments on 首发:基于Openshift的StartBBS安装

YouBBS,一个极其简单的BBS。

类似V2EX的风格。

这东西的脾气很有意思,当然,我的windows比这个东西脾气还大。。。给我造成了无尽的苦难。

我git使用的版本是最新的V1.04,以后会和作者同步更新。

YouBBS, a simple BBS programme with a style like V2EX(a famous BBS).

It keeps giving me trouble, well…………much less than troubles that my Windows gives me.

Anyway, I will keep updating this with the author.

在Openshift上部署过程:

1.建立一个程序

rhc app create -a (名字) -t php-5.3

2.建立数据库

rhc app cartridge add -a (名) -c mysql-5.1

把数据抄下来。

3.配置git,加入一个源

cd (名字)
git remote add upstream -m master git://github.com/superwbd/startbbs-openshift.git
git pull -s recursive -X theirs upstream master
(新版也是这么更新的)

4.push上去-

git push

点击主页,输入信息,完成安装。

1.create a application

rhc app create -a {name you want} -t php-5.3

2.create a database

rhc app cartridge add -a {name you want} -c mysql-5.1

!!!Write down all the information!!!!!

3.add a source of git

cd {name you want}
git remote add upstream -m master git://github.com/superwbd/startbbs-openshift.git
git pull -s recursive -X theirs upstream master
(same way if there exists any update…)

4.push it

git push

Click your address, enter the Mysql information to finish it.

 

可能的问题:(与软件实际无关)

执行 git push ,直接提示everything-up-to-date。

这时,本地执行:

git add .

git commit -m “随便敲点什么”

这样就可以git push 了。

Problem solving:

When you “git push”, it says “everything-up-to-date”.

You should:

git add .

git commit -m “Anything you like….”

Now you should be able to “git push”.

首发:基于Openshift的YouBBS安装

      No Comments on 首发:基于Openshift的YouBBS安装

//Update Apr142013:  update console.

 

感谢@sundaymouse的工作,他在排错的时候对我帮助很大。

Many thanks to @sundaymouse, for his help while debugging.

 

YouBBS,一个极其简单的BBS。

类似V2EX的风格。

这东西的脾气很有意思,当然,我的windows比这个东西脾气还大。。。给我造成了无尽的苦难。

我git使用的版本是最新的V1.04,以后会和作者同步更新。

YouBBS, a simple BBS programme with a style like V2EX(a famous BBS).

It keeps giving me trouble, well…………much less than troubles that my Windows gives me.

Anyway, I will keep updating this with the author.

在Openshift上部署过程:

1.建立一个程序

rhc app create -a (名字) -t php-5.3

2.建立数据库

rhc cartridge add -a (名) -c mysql-5.1

3.配置git,加入一个源

cd (名字)
git remote add upstream -m master git://github.com/superwbd/YouBBS-Openshift.git
git pull -s recursive -X theirs upstream master
(新版也是这么更新的)

4.push上去-

git push

然后运行一下http://(你的地址)/install.php(这一步不能省略!)

请注意:第一个注册用户是管理员。。。所以赶快注册!

1.create a application

rhc app create -a {name you want} -t php-5.3

2.create a database

rhc cartridge add -a {name you want} -c mysql-5.1

3.add a source of git

cd {name you want}
git remote add upstream -m master git://github.com/superwbd/YouBBS-Openshift.git
git pull -s recursive -X theirs upstream master
(same way if there exists any update…)

4.push it

git push

To finish, run http://(Your Address)/install.php

Warning: The 1st person that register would be made Admin…..So do it quick!

 

可能的问题:(与软件实际无关)

执行 git push ,直接提示everything-up-to-date。

这时,本地执行:

git add .

git commit -m “随便敲点什么”

这样就可以git push 了。

Problem solving:

When you “git push”, it says “everything-up-to-date”.

You should:

git add .

git commit -m “Anything you like….”

Now you should be able to “git push”.

 

有问题请在下面反馈。

软件相关,由于没有看代码,而且自己没有用这个东西,所以可能不能给你好的建议。。。请去http://youbbs.sinaapp.com/  和作者联系。我这里暂时只能解答和部署相关的问题。

有更新了,请在下面留言,我会抽时间把这边的东西更新的。

For problems related deploying, please leave me messages here.

For problems related to daily using, please go to http://youbbs.sinaapp.com/   , which is its official BBS……(Hope you can type Chinese…)

 

 

最后一点怨念的吐槽:

这些东西在大庭广众下不敢说,自己的地界就可以说了。。。

砸场子向:

AppFog的问题在于,每次推送,改属性的时候,之前的东西全消失。。。
而且,虽然机房支持多,RAM大一些,但是权限太小,总感觉不过瘾。。。
BAE,SAE吧,要花钱,肉疼。
Openshift就解决了这些问题。

折腾再来:Openshift搭建etherpad,基于Mysql

      1 Comment on 折腾再来:Openshift搭建etherpad,基于Mysql

此文联动:(极其建议阅读)

http://ssunday.info/?p=109    全面配置教程: CentOS配置Etherpad-lite在线文稿编辑服务

http://www.superwbd3.tk/2013/01/openshift-etherpad/  详细教程:Openshift 搭建etherpad在线文档协同编辑服务(基于MongoDB)

(感谢@sundaymouse 的工作,他的工作在这个程序的设置部分启发我很多。)

 

刚才的文章写得很好了。

但是,MongoDB很难备份,这是个大问题。

所以,我fork了一下,把这个东西挪到Mysql上面,这样备份就方便很多了。

 

大体和前文相同。

1.建立一个程序

rhc app create -a (名字) -t php-5.3

2.建立数据库

rhc app cartridge add -a (名) -c mysql-5.1

3.配置git,加入一个源

cd (名字)
git remote add upstream -m master
git pull -s recursive -X theirs upstream master
(新版也是这么更新的)

4.push上去-

git push

 

这样就好了。全自动。使用时没有发现问题。

I forked a version of etherpad to run with mysql, for mongodb is not easy to backup.

1.create a application

rhc app create -a {name you want} -t php-5.3

2.create a database

rhc app cartridge add -a {name you want} -c mysql-5.1

3.add a source of git

cd {name you want}
git remote add upstream -m master
git pull -s recursive -X theirs upstream master
(same way if there exists any update…)

4.push it

git push

Now it should be running properly.

详细教程:Openshift 搭建etherpad在线文档协同编辑服务

(更新:Mysql版本,请移步http://www.superwbd3.tk/2013/01/openshift-etherpad-mysql/  ,那个备份更加方便,不知性能方面会不会有缺失?)

 

此文联动:(极其建议阅读)

http://ssunday.info/?p=109    全面配置教程: CentOS配置Etherpad-lite在线文稿编辑服务

super的怨念吐槽:(技术无关)
这个是ACI字幕组的在线翻译项目,因为GD这个东西在墙内实在无力。
讨论了很长时间,尝试了很多方案,这个是我提出的一种尝试,但在自己的VPS上面搭建失败(囧啊。。。)。
sunday接手了这个项目,经过各种折腾之后,取得了极大的成功,并支持了SSL。sunday整理了详细步骤,供未来可能尝试的人参考(中文圈第一个~~)。
在我发现了Openshift之后,我们的欲火又一次升起(特别是发现Openshift支持Node.js后)。。。可惜,按照原来的方法,在Openshift上搭建失败。
于是,这个项目又一次落到了我的手上,经过又一次折腾,这个项目又获得了新生。

 

本文主要步骤来源自https://github.com/openshift/etherpad-example。

 

我们认为你已经安装了openshift需要的程序,建立了自己的空间名。

1.建立一个程序

rhc app create -a (名字) -t nodejs-0.6

(能否scale?待考)

2.建立数据库(坑爹的一步)

rhc app cartridge add -a (名) -c mongodb-2.2

3.配置git,加入一个源

cd (名字)
git remote add upstream -m master
git pull -s recursive -X theirs upstream master
(新版也是这么更新的)

4.push上去-

git push

 

好了,应该就成功了。。。

1G的空间,放纯文本,还是相当能装的。。。

 

绑定域名:

rhc alias add (名字) www.######.###

 

(未来折腾计划:加入https支持(累了暂时不折腾) 支持密码(完成,但是受众小,不准备在公开版本做) 换用mysql(完成))

CDN折腾的一点小事

      No Comments on CDN折腾的一点小事

更新:

cloudflare通过设置,可以让直接连接走CDN,但是ssh有可能受影响。。。

现在CDN正常。。。

。。。
cloudflare的域名直连是默认不走CDN的。。。
所以。。。WP里面的域名要设成www开头的绑定的地址。。。

看看这次CDN是否有效吧。。。

悲惨的继续的继续

      2 Comments on 悲惨的继续的继续

好吧。。。WP终于恢复正常了。。。

然后。。。设置固定链接。

然后。。。WP又一次华丽丽地挂了。。。

 

解决:

把.htaccess文件里面的东西重写一下。。。

 

CDN开启,不知效果如何,期待~~~

P.S:Openshift修改.htaccess可以直接开启gzip。估计上次是插件闹的。。。

P.S2:CDN是有用的。。。至少能让你网站彻底挂了的时候不至于彻底无法访问。。。