TONYHEAD 通利堂

2015 opening

Tony 提交于

常人在踏上社会后,如果遇到挫折,往往会改变自己顺应社会,以求生活舒适。执着的人却是百折不挠,哪怕隐隐感觉自己做错了,也不会改变自己的方向和目标。结果往往很极端,要么一步登天成为人上人,要不就跌下深渊,粉骨碎身。

某人叫我记下2014年发生的大事。 =v=

2014大事记

  1. 和詹小姐结婚。
  2. 第一次出国旅游
  3. 第一次在外国骗退税。 =。=
  4. 在广州飞往伊斯坦布尔的途中对全机展开广播,为一个团友找到医生并登记A380的飞行日志。
  5. 第一次上知乎日报 《集装箱也是必须上锁的,只不过这个锁不叫锁》 也上了第二次 《没事别乱进集装箱,被关在里面基本是必死无疑的》
  6. MSC擦身而过(以后还怎么做朋友!)。
  7. 本来还有很多的,不过都没坚持啦,希望2015可以坚持下来。

文章标签

一大波FEALOC在逼近

Tony 提交于

如果广州也有LOC就好了……
以下是马士基远东控船(FEALOC - Far East Asia Liner Operations Cluster)的近期招聘职位,带端口的链接(mlrepa10.crb.apmoller.net:8030)为内部招聘地址,不带端口的(jobsearch.maersk.com)为外部招聘地址。

Vessel Operations:
Intranet ref number - ML-059546
http://mlrepa10.crb.apmoller.net:8030/vacancies/publication?PINST=005056...
Internet ref number - ML-059547
https://jobsearch.maersk.com/vacancies/publication?PINST=005056A569991ED499AEE02F349183E7&APPLY=X
Berth Planner:
Intranet ref number - ML-059551
http://mlrepa10.crb.apmoller.net:8030/vacancies/publication?PINST=005056...
Internet ref number:ML-059552
https://jobsearch.maersk.com/vacancies/publication?PINST=005056A569991ED499AEFFE7BD7E83F3&APPLY=X
Capacity Coordinator:
Intranet ref number - ML-059134
http://mlrepa10.crb.apmoller.net:8030/vacancies/publication?PINST=005056...
Internet ref number:ML-059135
https://jobsearch.maersk.com/vacancies/publication?PINST=005056A52F591EE4989C133164E54ACC&APPLY=X
Cargo Controller:
Intranet ref number - ML-059685
http://mlrepa10.crb.apmoller.net:8030/vacancies/publication?PINST=005056...
FEALOC intern (to be the FTE after the graduation):
Internet ref number - ML-056318
https://jobsearch.maersk.com/vacancies/publication?PINST=005056A52F591ED490DF8686D2BEEBBC&APPLY=X

文章标签

[已退役]💻 HP 2540P

Tony 提交于

这台机子的继任者是 🖥️ HP Chromebox

目前通过DP转HDMI线接入电视,作为MAME模拟器的CONSOLE,通过蓝牙键盘连接,可以坐在沙发上玩雷电2000

同时作为小米盒子不能解码杜比音效的一个补充,直接用笔记本的播放器播放视频文件。

HP2540P Windows体验指数

HP2540P

HP2540P

HP2540P

 

 

----------------------------------
以下信息由电脑管家提供
导出时间:2016-5-1 22:32:56
----------------------------------
电脑概览

电脑型号 惠普 HP EliteBook 2540p
操作系统 Microsoft Windows 7 专业版 (64位/Service Pack 1)
CPU (英特尔)Intel(R) Core(TM) i7 CPU L 640 @ 2.13GHz(2133 Mhz)
主板 惠普 7008
内存 4.00 GB ( 1333 MHz)
主硬盘 130 GB ( S0NANEAB8006 已使用时间: 115小时)
显卡 Intel(R) HD Graphics (1719 MB)
显示器 戴尔 DELL E2213 32位真彩色 59Hz
声卡 IDT High Definition Audio CODEC
网卡 Intel(R) 82577LM Gigabit Network Connection
----------------------------------------------------------------------------------------------------------------------------
CPU详情

CPU厂商 英特尔
CPU (英特尔)Intel(R) Core(TM) i7 CPU L 640 @ 2.13GHz
CPU核心数 2
CPU默认频率 2133 Mhz
CPU外频 133 MHz
CPU当前频率 2134 MHz
一级缓存数据 32 KB
一级缓存数据 32 KB
二级缓存 1024 KB
三级缓存 4096 KB
CPU电压 1.200 V
CPU序列号 BFEBFBFF00020655
数据宽度 64bit
技术参数 32 纳米
插座/插槽 BGA1288
指令集 MMX,SSE,SSE2,SSE3,SSSE3,SSE4.1,SSE4.2,EM64T
扩展版本 Ext.Family 0 Ext.Model 2

----------------------------------------------------------------------------------------------------------------------------
主板详情

制造商 惠普
主板型号 7008
制造日期 2014/07/08
主板序列号 CND050218Q
BIOS厂商 Hewlett-Packard
BIOS版本 HPQOEM - f jИ
BIOS大小 0 Bytes
芯片组 英特尔 Core Processor DRAM Controller
电脑厂商 惠普
电脑型号 HP EliteBook 2540p
系统安装日期 2016/04/21
最近启动时间 2016/05/01

----------------------------------------------------------------------------------------------------------------------------
内存1详情

内存名称 1333 MHz
内存大小 2 GB
内存频率 1333 MHz
插槽 Bottom-Slot 1(left)
数据宽度 64bit

内存2详情

内存名称 1333 MHz
内存大小 2 GB
内存频率 1333 MHz
插槽 Bottom-Slot 2(right)
数据宽度 64bit

----------------------------------------------------------------------------------------------------------------------------
显卡详情

显卡名称 Intel(R) HD Graphics
显卡厂商 英特尔
显存大小 1719 MB
内核名称 Intel(R) HD Graphics (Core i7)

文章标签

Naval exercise on Mary Maersk

Tony 提交于

Naval exercise on Mary Maersk

今年9月28号,Mary Maersk和丹麦皇家海军进行了一次反海盗演习。

Naval exercise on Mary Maersk

Naval exercise on Mary Maersk from Maersk Line on Vimeo. On 28 September, Mary Maersk provided the backdrop for the Royal Danish Navy in an anti-piracy training mission. Video credit: Royal Danish Navy It was a dramatic evening for Mary Maersk last Sunday. Sailing through the Fehmarn Belt dividing Denmark and Germany, 30 soldiers were suddenly lowered from helicopters to board the vessel. Members of the Frogman Corps – an elite commando unit of the Royal Danish Navy – their mission was to defeat the pirates who had taken control of the large container vessel. It was all an exercise, of course, and piracy in the Baltic Sea has been non-existent for centuries. For the Royal Danish Navy, however, the rescue operation was designed to be as realistic as possible in preparing them for anti-piracy missions in the Gulf of Aden, where Danish troops are regularly posted as part of an international force. Role-playing to secure maritime interests The operation included a wide number of actors in a role-playing setting, including paramedics, military police and the pirates themselves. The frigate Niels Juel was close at hand throughout. After having successfully freed the crew, the elite unit proceeded to search the ship for any remaining threats before they could the mission a success. Night Hawk is a multinational exercise for elite units, held every other year in Denmark since 2000. More than 1,300 soldiers from seven different countries take part in the exercise with support from helicopters, aircraft and ships. Chief of the Frogman Corps Stefan Neubauer Andersen says: “The mission is absolutely serious in terms of what we have seen happen in the area off of Somalia. And it is an important part of securing Denmark’s maritime interests globally.” Maersk Line contributed by offering access to the vessel, but makes it clear that the participation does not indicate any changes to the current threat assessment.

Naval exercise on Mary Maersk

Naval exercise on Mary Maersk

Naval exercise on Mary Maersk

Naval exercise on Mary Maersk

邮政保护费

Tony 提交于

今天收了一件快递,典型的中国邮政保护费包裹。

不知道快递业每天要进贡多少货给中国邮政,中国邮政财(0成本的生意)色(邮政自助信包箱推广)兼收。

亮点在快递2014-10-12的两次分包,第一次发往快递自己的【广州天河珠江新城点】,另一次发往【广东同行一】,一个柜LOAD了以后怎么可能没DISCHARGE/SHIFT MOVE就再LOAD呢?

邮政保护费

快递也有航运界共舱的即视感(【同行温】,【广东同行一】),我也是醉了。

中国邮政2014-10-12号收到进贡,安排包裹进自家的邮政自助信包箱,2014-10-14通知我去拿。

另:绿豆饼好好吃。

文章标签

TONYHEAD.COM切换到HTTPS上

Tony 提交于

TONYHEAD.COM切换到HTTPS上

响应Google号召,使用 HTTPS 为TONYHEAD 通利堂全站护持。

SSL证书是msg7086友情帮忙签的Comodo Positive SSL,再次感谢。

回到顶部

2014-09-14更新

出于速度考量(又拍云的二级域名需要花费5秒在SSL Negotiation上),只对后台启用HTTPS加密,前台使用HTTP。

回到顶部

MovableType配置

修改 mt-config.cgi 里 CGIPath ,如果只是需求单纯Admin后台部分(mt.cgi)启用HTTPS那么就改成 AdminCGIPath ,因为我的计划是前后台(mt-comment.cgi+mt.cgi)都启用HTTPS,所以我设置的是 CGIPath 。

CGIPath https://www.tonyhead.com/cgi-bin/mt/

回到顶部

Nginx配置

在server括号中加入下列,把所有走80端口的流量都重定向到HTTPS下。

if ($server_port ~ "^80$"){ set $rule_0 1$rule_0; } if ($rule_0 = "1"){ rewrite /(.*) https://www.tonyhead.com/ $1 permanent; break; }

页面元素路径配置

把页面元素的引用路径都改成"//domain/flower.jpg"是一个好习惯,浏览器会根据当前页面是HTTP或是HTTPS来自动适配。

回到顶部

其他发现

  1. 在清理页面混合内容的过程中发现新浪云的 .sinaapp.com 和又拍云的 .upaiyun.com 都能支持HTTPS访问,在此大力推荐。
  2. AdminCGIPath 和 CGIPath 的区别
  3. 为了让手机上的浏览器(包括QQ浏览器和Chrome)完美支持加密访问TONYHEAD(不需要在客户端加入额外证书,避免了感叹号提示),需要在服务器端上做好足够的证书链,为什么需要完整的证书链可以参考这里
  4. TONYHEAD.COM的证书链截图。

回到顶部

文章标签

如何通过 Nginx+PSGI 运行 MovableType

Tony 提交于

一个游戏在通关前我都说不上喜爱,随后所有的精诚法门敏捷操控总在我知道我能通关为前提下一一展现。例如贪吃蛇,全屏首尾相接是没有悬念的,区别只在后期食物和加分水果距离蛇头的位置,来决定通关后能够获得的差异的分数。这也是我喜欢网页设计的原因,反正最终是可以实(chao)现(xi)这个效果的,只是看要花多少时间走怎(pian)样(men)的路线罢了。

于是我又来折腾了,把TONYHEAD 通利堂从传统的Apache-cgi_module-CGI切换到Nginx-PSGI-CGI上。

先说说为什么要用PSGI来跑MovableType这个Perl应用,用过MT的都知道MT后台的反应是多么的龟速(短板不在硬件上),想达到WordPress后台那种按按按就出结果的节奏是不可能的,但亲测转到PSGI后效果有明显改善。根据测评,PSGI模式的效率是CGI模式的1.9倍,是FastCGI的1.4倍,在另一个测评中,PSGI的效率都在CGI的2倍以上,如图:

CGI vs PSGI

图片来源

总之切换到PSGI后效能的提升是显而易见的,下面开始介绍做法。

系统环境

Starman是一个PSGI网关,在MovableType 5.2开始支持Nginx+PSGI时进入视野,mt-starman-daemon作为守护进程会把 /cgi-bin/mt/ 目录先预读进内存,把该目录下的所有cgi/pl脚本交给Starman处理,Nginx则负责处理前端静态文件和转发Starman。在AWS市场里Nginx+MySQL+Starman是作为MovableType 6的标准配置,可见这一组合和思路是被推崇的。

回到顶部

步骤

OS部分

先安装cpanminus。

curl -L http://cpanmin.us/ | perl - App::cpanminus

安装Plack,XMLRPC和Starman,这一步需时较长,请耐心等待。

cpanm Task::Plack XMLRPC::Transport::HTTP::Plack Starman

下载mt-starman。

wget -P /etc/init.d --no-check-certificate http://raw.github.com/saahov/mt-starman-daemon/master/debian/mt-starman

把mt-starman设置为可执行。

chmod +x /etc/init.d/mt-starman

Bandwagonhost Sample IP

Tony 提交于

Bandwagonhost Sample IP

搬瓦工测试IP

Bandwagon Host test downloads:

USA West coast (Phoenix Arizona)
Test IP: 198.35.46.10
http://198.35.46.10/100mb.bin
http://198.35.46.10/500mb.bin
http://198.35.46.10/1000mb.bin

USA West coast (California)
Test IP: 104.194.76.20
http://104.194.76.20/100mb.bin
http://104.194.76.20/500mb.bin
http://104.194.76.20/1000mb.bin

USA East coast (Florida)
Test IP: 23.252.104.22
http://23.252.104.22/100mb.bin
http://23.252.104.22/500mb.bin
http://23.252.104.22/1000mb.bin

EU (Netherlands)
Test IP: 45.62.120.202
http://45.62.120.202/100mb.bin
http://45.62.120.202/500mb.bin
http://45.62.120.202/1000mb.bin

文章标签

📚 页面/专题/手册

🏷️ 标签云