新闻,没授权。
本翻译作品采用知识共享署名-非商业性使用-相同方式共享 3.0 未本地化版本许可协议进行许可。
转载请注明作者和本帖地址。
WANT to own a piece of Manitoba history, albeit a very large piece of history?
想弄块曼省的“巨大历史残片”么?
If so, you're in luck: The infamous Air Canada Boeing 767 that made history as the Gimli Glider is up for auction in April.
机会来了:加航著名的“基米尼滑翔机”将在4月拍卖。
But you'll need to have a bit of money in your bank account.
但是这东西可不便宜。
Terry Lobzun, of Collector Car Productions, the company holding the auction via avideo presentation at the Toronto Classic Car Auction on April 14, said the aircraft's owners are expecting to get from $2.75 million to $3 million for it.
Collector Car Productions 的Terry Lobzun 称现拥有者的目标价格是275~300万加币。
(super注释:1800万RMB,不知是不是还得交HST?)
"It can be flyable and it can be delivered," Lobzun said on Thursday from the company's offices in Blenheim, Ont.
周四,Lobzun 在位于安省Blenheim 的办公室称该飞机仍可飞行,可以交付。
"To get it back into service, they'd have to jump through some hoops and it probably wouldn't be economically feasible, but it can be flyable to deliver it to be put on display. It would be nice to see it at the Western Canada Aviation Museum or Gimli.
“要让这架飞机重新服役,还需要跨过几道门槛,可能经济上并不划算,但是它还是可以飞到展览的地方的。如果这架飞机能在西加拿大飞行博物馆或基米尼 展出,就再好不过了。
(super注释:西加拿大飞行博物馆 位于温尼伯,同基米尼一样位于曼省 )
"But if it went to Gimli, you'd just have to let the motorsport people know it's coming this time," he said laughing.
“但是,如果要在基米尼展出,你得提前打个招呼了。”
The plane is currently housed at a facility in California.
目前该飞机位于加州。
The aircraft gained fame when, because of a fuel conversion error between metric and imperial units, not enough fuel was taken on before it was bound for Edmontonon July 23, 1983.
该飞机因公制和英制差异导致的油料计算错误,于抵达埃德蒙顿前耗尽油料。
The plane's engines ran out of fuel at 41,000 feet and the powerless plane was glided to the former air force base in Gimli, forcing spectators at a drag strip to get out of the way. Nobody was injured.
飞机在41000英尺耗尽燃油,于位于基米尼的废弃空军基地迫降.无人受伤。
The aircraft flew regularly until it was retired from service in 2008.
飞机在此之后仍然服役,直到2008年。
If the plane returns to Manitoba, it probably won't be parked at the aviation museum.
如果飞机回到曼省,很可能不会停放在飞行博物馆。
Shirley Render, the museum's executive director, said while the plane landed in Gimli with empty fuel tanks almost 30 years ago, it is still too new for their collection.
Shirley Render ,博物馆的执行董事,表示虽然迫降时间发生在30年之前,作为展品来讲,这架飞机仍然太新。
"It's too much on what people fly today," Render said.
他说,“这架飞机是还在执飞的机型。”
"Our focus is on the old planes which people don't know too much about... it would be lovely but it wouldn't be on our dream list."
“我们的目标是人们不了解的老飞机。。。东西不错,但是我们不会要。”
(super吐槽:想要。。。)
原文:Original 'Gimli Glider' can be yours for a few million
来自Winnipeg Free Press,作者Kevin Rollason。
延伸阅读:
空中浩劫S05E02 “基米尼滑翔机”
@valencia7cn
http://tieba.baidu.com/p/1998696940
http://tieba.baidu.com/p/2037449456
(坟贴,勿顶)
那个767才200WRMB。。。
你是否遇到过如下几种状况:
- 博客更换域名,博客文章的内容也要跟着换
- 使用的图片地址更换了
- 写了很多文章,回过头来想切换作者
- 想删除某个可恶留言者的所有留言
- 想更改某个留言者所有留言的网站URL
- 想要禁用所有文章的pingback
- 想要禁用所有文章的评论功能
所有的这些,都涉及到一个关键词:批量修改。如果在WordPress后台,手动地去一个一个修改文章内容,相信会让你很抓狂,对一些拥有上千篇文章的博客来说,几乎是不可能完成任务。本文将教你如何使用SQL语句来操作你的数据库,实现数据的批量修改。
如果你没学过数据库的相关知识,肯定不知道SQL是什么,但是本文所涉及到的内容不需要你了解数据库的知识,也不需要你精通SQL语句的编写,你完全可以直接使用本文提到的SQL,下面我们将分条介绍各个SQL语句的功能,所有语句都使用默认的 wp_ 表前缀,如果你的不是,请自行更改。
开始之前,先介绍以下如何执行SQL语句,进行批量操作。现在一般的空间都是用phpmyadmin来管理数据库,这里将以phpmyadmin为例来介绍如何执行SQL语句:
进入你的phpmyadmin管理页面,然后进入你的博客对应的数据库
菜单栏有个 SQL 选项,点击进去
出现一个SQL语句的输入框,现在你就可以在里面输入SQL语句了
输入完毕,点击 执行 ,将执行你刚才输入的SQL语句
SQL语句执行完毕,你的文章也被批量修改了,现在去看看你的文章是否都被更改了
最后提个醒:以下介绍的SQL语句都在我的博客上做过测试,但是尽管如此,操作数据库之前都要先备份一下你的数据库;定期备份你的数据库是好习惯
1、批量修改文章内容:
如果你想替换之前写过的所有文章中的某些内容,如更换博客的名称,更换博客的网址,更换文章配图的链接等等,你可以使用以下SQL语句:
UPDATE wp_posts SET post_content = REPLACE( post_content, 以前的', '现在的' );
该语句的功能是将所有文章中的 以前的 字眼,全部替换成 现在的,你可以根据需要做一些更改。因为文章内容在数据库中是以HTML代码形式存储的,所以以上SQL语句同样可以替换HTML代码。
如果你只是想更改文章插图的链接,而不想影响其他的链接,可以使用以下SQL语句,所有src="oldurl.com被替换成了src="newurl.com
UPDATE wp_posts SET post_content = REPLACE (post_content, 'src="oldurl.com', 'src="newurl.com');
[important]super注释:我没成功。。。[/important]
如果你是以图片附件形式上传的话,需要更改图片附件的GUID
UPDATE wp_posts SET guid = REPLACE (guid, 'oldsiteurl.com', 'newsiteurl.com') WHERE post_type = 'attachment';
2、批量修改文章摘要:
文章摘要就是你在WordPress后台编辑文章时,"摘要"框中输入的内容,如果你想批量更改文章摘要,可以使用以下语句:
UPDATE wp_posts SET post_excerpt = REPLACE( post_excerpt, 'AA', 'BB' );
该语句的功能是将所有文章摘要中的 AA 字眼,全部替换成 BB。
3、批量修改文章的作者:
假设你的博客有两名注册用户,张三和李四,你想将张三的所有文章划归到李四名下,这时候该怎么办呢?你可以执行以下语句:
UPDATE wp_posts SET post_author = 李四用户id WHERE post_author = 张三用户id;
那如何获得 李四的用户id 和 张三的用户id 呢?你可以执行以下SQL语句:
SELECT ID, user_nicename, display_name FROM wp_users;
这时将列出你博客上所有的注册用户的ID,昵称和公开显示的名称,你现在就可以找到对应用户的ID了,如zhangsan的ID为2,lisi的ID为5
你的SQL就可以这样写了:
UPDATE wp_posts SET post_author = 5 WHERE post_author = 2;
4、批量修改文章评论者的网站URL:
假设,你的博客有个非常忠实的读者,给你的博客文章留下很多有用的评论,同时他的评论都填写了留言者的网站URL,但是有一天他的博客域名换了,并请求你更新他留言中的网站URL,那你怎么办?手动一个一个帮他改,这不太现实。你可以使用以下SQL语句:
UPDATE wp_comments SET comment_author_url = REPLACE( comment_author_url, 'oldurl.com', 'newurl.com' )
以上语句,将留言者所有旧的网站链接oldurl.com,更改为新的网址newurl.com
5、禁用所有文章的pingback功能:
开启pingback功能,可以在别人引用你的文章链接的情况下,给你发送通知,但是该功能似乎对我们的文章没多大帮助,那为何不把pingback给禁止了呢?在WordPress后台 – 设置 – 讨论,取消勾选"接收来自外部博客的引用通告(pingbacks 和 trackbacks)",这样以后的文章都不开启pingback,但是该选项不会对之前的已发布的文章起作用,还是要用到SQL:
UPDATE wp_posts SET ping_status = 'closed';
6、删除所有文章的修订版:
在通常情况下,文章的修订版对大多数人来说没多大意义,而且修订版的数量会随着你修改文章的次数不断增长,这会增加数据库的查询速度,这并不是什么好事。互联网上有很多教你如何禁止修订版的文章,还有很多插件可以删除文章修订版,你可以自己搜索看看。这里教你如何使用SQL语句,删除所有已产生的文章修订版数据:
DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'revision';
7、删除某个评论者的所有评论:
如果你的博客想要封杀某人,并删除其在你博客的所有留言,可以使用以下SQL语句。
(1)根据留言者的博客URL进行删除,以下SQL语句将删除所有URL为 www.example.com 的评论
DELETE FROM wp_comments WHERE comment_author_url LIKE '%www.example.com%';
(2)根据留言者的昵称进行删除,以下语句将删除所有昵称为 example 的评论
DELETE FROM wp_comments WHERE comment_author = 'example';
(3)根据留言者的Email进行删除,以下语句将删除所有Email为 example@example.com 的评论
DELETE FROM wp_comments WHERE comment_author_email = 'example@example.com';
8、替换所有评论中的敏感词汇:
国内的互联网监控力度表现出了不断加强的趋势,如果你的博客评论中出现了大量的敏感词汇,很可能离被墙也不远了。最好的做法是,替换相关的敏感词汇,以保证你的博客安全,以下SQL语句将所有评论中的 fuck,替换成 **,替换内容根据你的需要来。
UPDATE wp_comments SET comment_content = REPLACE( comment_content, 'fuck', '**' );
9、关闭文章评论功能
有时候你的博客可能会因为某种原因,需要关闭文章的评论。在WordPress后台 – 设置 – 讨论,那里取消勾选"允许人们发表新文章的评论",以后发表的文章默认是关闭评论的。但是之前已经发表的文章,若想关闭评论需要你一篇一篇地去修改评论设置,这是一件比较痛苦的事情。以下SQL语句可以帮助你轻松地批量关闭文章评论:
(1) 关闭所有旧文章的评论:
通常情况下,一篇旧文章就很少会有人发表评论了,一般访问旧文章的访客大都来自搜索引擎,这是好事,但是这部分访客还会提出一些新问题,尤其是技术问题,但是可能文章中提到的技术细节你已经淡忘,这时候会让你很难办。最好的做法还是还是禁用旧文章的评论,以下SQL将禁止2009-01-01之前发表的所有文章的评论,你可以根据需要修改日期:
UPDATE wp_posts SET comment_status = 'closed' WHERE post_date < '2009-01-01' AND post_status = 'publish';
(2) 关闭所有文章的评论:
有时候很不幸,在不可抗力的威胁下,你不得不关闭所有文章的评论,可以使用以下SQL语句:
UPDATE wp_posts SET comment_status = 'closed' WHERE post_status = 'publish';
原文:http://www.ludou.org/batch-modify-wordpress-posts.html
A fix of GFW'blocking WordPress under complex environment
一个复杂环境下WP的解决被墙的实践
Maybe it 's for I am outside the GFW, I do not really know that Openshift had been banned by GFW- or least partly.
To fix this, one of the easiest ways is to use a CDN to "boost" a alias binded to your gear, and change your setting of website.
But, this has a little problem for me.
Firstly, I just moved to this blog, and links of pictures and CSSes are big problems, for they are pointing to my real URL, which is blocked.
Secondly, to access this blog quickly, I made a little change to wp-config.php.(http://www.superwbd3.tk/2013/02/diary-wordpresss-multi-domains/) to add another alias, superwbd3.tk, in order to visit it directly.
My original idea is not to let CDN impair my visit, but if I enable this, I cannot change the website of WordPress.
Catch 22.
So, here 's my way so fix this:
This is based on Openshift, but should work everywhere.
1. Use CDN on your alias.
2.You can keep the change in wp-config.php. Won't hurt you.
3.Add phpmyadmin on your blog.
[important]4.Make a backup of your database. Operations next cannot been reverse, and may cause permanent amage.[/important]
4.Replace your old domain to a new CDN-accelerated one:
To replace post_content:
UPDATE wp_posts SET post_content = REPLACE (post_content, '@@@-###.rhcloud.com', 'www.superwbd3.tk');
If pictures are attachments, change GUID:
UPDATE wp_posts SET guid = REPLACE (guid,'@@@-###.rhcloud.com', 'www.superwbd3.tk') WHERE post_type = 'attachment';
And update all CSSes' URL:
UPDATE wp_options SET option_value = REPLACE (option_value,'@@@-###.rhcloud.com', 'www.superwbd3.tk')
Now have a try.
If failed, check:
Is your CDN 's IP address also banned?
Did you change everything? Are your CSSes' URL new ones?
Simple.
1.Save all your imformation with a XML file. Backup everything.
2.Install a new blog.
3. Throw the XML file in.
4.Change all the settings.
Reasons that the old one was soooo slow:
1.Old server.
2.Had down serveral times.
3.A lot of conflicts.
Hope this time will help.
P.S:
Openshift Bind alias:
rhc alias add (name) www.superwbd3.tk
Remove alias:
rhc alias add (name) www.superwbd3.tk
Cloudflare has serveral options.
CDN only;
CDN + Small
CDN + Full
The last one, which I used to use, have speed limit.
Just shut it down.
Sometimes you need to use more domains for your blog.
Like, www.superwbd3.tk & superwbd3.tk.
If you set one, even if you point your DNS to its ip address, it won't make any difference.
So........
Just add these to your blog's wp-config.php:
$wphome = 'http://'.$_SERVER['HTTP_HOST']; $wpsiteurl = 'http://'.$_SERVER['HTTP_HOST']; define('WP_HOME', $wphome); define('WP_SITEURL', $wpsiteurl);
That 's it.
If you refer to my record, you will know that this blog is on Openshift 's Amazon US EC2.
So, in order to "boost" a little bit, I used a CDN- just like everyone does.
Why?
1. I do not want to push Openshift too hard- since AWS 's fee is calculated by traffic, I like to save a little bit to help Redhat to make it free.
2.Cloudflare is free- and no traffic or speed limit.
Well, what we think is that since CDN have servers all over the world, your user's traffic would be routed to the nearest server to make it quick.
BUT, I am wrong this time.
With any remote Ping tool on the Internet, you will find out that all your traffic are routed to the US West servers. Ah, forgot to mention, you have to set your DNS to Cloudflare's DNS.
So, it means that ALL your traffic would go through US West.
BUT, hell, AWS is in US East, and I am in Canada East! The speed is driving me crazy.
So you know what to do: Think twice before you "take advantage" of the free CDN.
Happy new year!
I changed the theme to make it looks better.
Twenty Eleven looks nice, but...is so common.
Let us make some change.
And, I reduced my Ad. Hope they will look good~
备份之用。
(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.好吧,写的太长了。。。(好吧,你累死我了。。。)
下面还有一些外行在争论,不搬了。
大家可以开始吐槽了。。。