Forwarded1 min read

FW: 建国大业演员

原文:http://blog.renren.com/GetEntry.do?id=493233924&owner=325825779

陈凯歌 美国
陈红 美国
甄子丹 美国
刘亦菲 美国
陈冲 美国
邬君梅 美国
顾长卫 美国
蒋雯丽 美国
宁静 美国
王姬 美国
郎朗 中国香港
李云迪 中国香港
胡军 中国香港
汤唯 中国香港
刘璇 中国香港
童安格 加拿大
蒋大为 加拿大
徐帆 加拿大
陈明 加拿大
张铁林 英国
许晴 日本
韦唯 德国
沈小岑 澳大利亚
苏瑾 新西兰
李连杰 新加坡
斯琴高娃 瑞士
胡兵 泰国

一群外国友人,不远万里,来到中国,拍中国的历史大戏,这是一种怎样的精神?这是一种国际主义精神,是一种毫不利己,专门利人的奉献精神!这是一群高尚的人,一群纯粹的人,一群有道德的人,一群脱离了低级趣味的人;一群有益于人民币的人。让我们把这种道德继续发扬、继续宣传,我们要让更多的人认识这帮国际友人。

Gossip1 min read

超爛的TNT(香港),Apple要負責

概要:在八月初訂購的iPhone,過了一個月還是沒有收到,而且以後也不可能收到了。

我於8月8日在Apple Store (HK)訂購了一台iPhone 4,並要求將其運送至我在香港的朋友處,apple於8月27日將其交運給TNT,自此即開始了TNT恐怖的香港內部旅程。

對比運單

8月27日收到貨,進行同城運輸。

9月1日嘗試送貨,但是由於送錯了轉運站,送貨失敗(搞笑?

9月3日到達正確轉運站開始送貨,但說收貨人不在家。此狀態一直持續……

實際上,由於收貨地址的鐵門必須從內部打開,如果送貨人不電話通知收件人,是一定進不去的。而全程過程,我朋友及我均未收到任何一條短訊、未接到任何一個電話。

當我朋友週六在網站查詢到這個情況後,主動致電,聽了30分鐘廣告後終於接入。

朋友要求自己取貨,TNT告知已經沒有門店(難道快倒閉?);

朋友要求第二天送貨,TNT告知週日不送貨;

朋友要求一定要在送達的時候打電話,TNT表示絕對不會打電話;

當我朋友明確說明“如果不打電話就一定進不了門”後,TNT才表示願意電話聯繫。

第二週,繼續第一周的送貨方式,繼續不打電話,繼續罔稱收貨人不在家。再次致電TNT及Apple HK,電話持續無人接聽。

由於我朋友即將離港去歐洲一段時間,這部手機大概是無法送達了。

Apple果然是有實力,居然在HK能找到這種神奇的物流公司。既然作為客戶我們從來沒有與TNT簽訂任何合同或協議,這種事情的發生必然是Apple要負責。

另,這不是個案:

http://www.designerhk.com/forum/post/4025

http://chinese.winandmac.com/news/tnt-kwuntong-office-iphone/

http://digital.discuss.com.hk/viewthread.php?tid=12903722&page=1

http://bbs.weiphone.com/read-htm-tid-1057000.html

http://yuuji.wordpress.com/2010/08/05/tnt/

http://forum5.hkgolden.com/view.aspx?message=2502662

http://www.mobile01.com/topicdetail.php?f=563&t=1733612&p=1

敬請各位香港朋友注意,購買Apple Store的產品時,請確保可以承受此類風險。

Gossip1 min read

程序員發展通道

當你每天上班,都要打開VisualStudio或Eclipse,盡情的對鍵盤進行連串敲打的時候,你是一級程序員;

當你每天雖然還是要打開這些工具,但是鼠標和鍵盤的操作比例已經逐漸向鼠標傾斜時,恭喜,你升級到LV2;

當你每天都需要打開Word、Excel來理解艱澀難嚥的設計文檔時,三級程序員才是你的位置;

當你也開始編寫這些讓人詬病的文檔時,你已經深陷LV4的深坑;

什麼才是LV5的程序員呢?那是這樣一群人:每天只用Outlook、穿梭於各個會議室之間且已經不再會寫程序的人。

Windows1 min read

Windows Live Messenger Error 8100030d

When you get this error, you may need to delete your cache of WLM.

For XP users,?delete these folders:

  • C:\Documents and Settings\Your Windows logon name\Contacts\Your Messenger e-mail address
  • C:\Documents and Settings\Your Windows logon name\Local Settings\Application Data\Microsoft\Windows Live Contacts\Your Messenger email address

For Vista/Win7 users, delete these folders:

  • C:\Users\Your Windows logon name\Contacts\Your Messenger e-mail address
  • C:\Users\Your Windows logon name\AppData\Local\Microsoft\Windows Live Contacts\Your Messenger e-mail address

You may need to shutdown your WLM completely and some services like wlcomm.exe by Task Manager.

Forwarded4 min read

[FW]你只有一个面孔

英国《金融时报》中文网专栏作家?程苓峰

Facebook已经在这个星球上存在了7年,并且超过Google成为最大的网站。我问过几十个中国互联网的中高层,Facebook是否会取代Google主宰互联网。有40%的人说“会”。不过,最近才发现自己对这个网站知之甚少。了解它的历史、功能和市场地位,却不一定了解它的信仰、宗教和文化象征。

换句话说,一个改变了人们生活的东西,基本也会改变他们的想法。而更恰当的说法可能是:只有更符合人们的本性的东西,才会赢得人们的喜爱。

好吧,来说一说Facebook的信仰。大部分线索来自David Kirkpatrick的新书The Facebook Effect:The Inside Story Of The Company That Is Connecting The World。

在Google的核心价值中,坚信在全球化浪潮的最后,世界会以电子计算机为中心,并且电子计算机会完成所有事情。这也是Google错过这一波社交网络潮流的原因。Google的模型认为,信息和整合来自全世界的信息是最重要的事情。而Facebook的模型从根本上是不同的:人掌握科技,而不是倒过来。Facebook公司的经济、政治、和文化价值以及其他方面的价值的根源思想是:人才是最重要的东西。让这个世界上的人们自己组织起来,才是最重要的事情。

顺便说一句,Google的创始人是斯坦福的博士,而Facebook的创始人是哈佛大学的本科生。在我印象中,斯坦福和哈佛,博士和本科生,是有很大区别的。

Facebook的俄罗斯大股东Yuri Milner如此评价Facebook Connect的价值:Facebook帐号基本上就是你的护照——线上护照。理论上只有政府才能签发护照,但突然间,有人在世界范围内给所有人签发护照,毫无疑问,这是很有竞争力的。但谁说护照只能由政府来颁发?这也许只是一定历史时期的产物,而Facebook将成为一种全球公民身份。

在其19岁时一手缔造Facebook的现年25岁的CEO扎克伯格说:你必须善良,才能得到人们的信任。

Facebook正在改变我们对社区,邻里之间和整个星球社区的概念。在这个步伐不断加快的现代生活中,个体之间的距离不断拉远,而Facebook帮助我们重拾人与人之间的亲密感。Facebook的目标是做出一个整个人类的索引,创造出任何两个个体之间直接的联系途径。

Facebook的整个贡献是其所有用户构成一个想法和感受的全球组合体。许多人预言者可能会朝着一个原始的全球性大脑的方向进化。当所有的个人信息聚集一处,这些信息就可以被复杂的软件分析,并且了解这感情与想法的聚合体中的新东西。2009年一个叫国民幸福指数的项目,分析和计算Facebook上能够反映幸福或是不幸福的词汇短语的出现次数。

Facebook将会从根本上改变市场营销,它会变成一个大公司。你可以把现在是5亿将来会是10亿用户的资料整合在一起,你不仅了解他们住哪儿、朋友是谁、对什么感兴趣、在线上做什么——它简直就是互联网的基因工程。

Facebook雇佣Google前高管桑德伯格出任COO的原因之一,是因为39岁的她有相当的从政经验。Facebook从许多方面来看更像是一个政府,而非一家传统意义上的公司。“我们拥有庞大的用户社区,远远超过其他任何一家高科技公司,我们其实是在制定政策。”

由于鼓励外部的第三方的开发者来开放应用和Facebook自有的应用竞争,扎克伯格受到相当的来自其他高管的压力。但他拥护企业进化论,他期望外部的应用程序能够帮助Facebook保持诚信,并迫使它不断的改善自身的应用来成功的与之相竞争。扎克伯格拥有谷歌所宣称的一样信仰:不做恶。

Facebook鼓励用户袒露而不是隐藏自己,鼓励分享而不是孤僻。扎克伯格相信:更彻底的透明度能成就更美好的人生。比方说,一些人声称,由于Facebook的存在,今天的年轻一代更难以欺骗他们的情侣了,他们还声称更彻底的透明度也塑造了一个更加宽容的社会,在这里人们最终接受了每个人都偶尔会做出错事和傻事的现实。

扎卡伯格认为:Facebook最好不要徒劳地抵制世界发展的潮流,否则它就会被市场所淘汰。这个“潮流”就是透明和分享。桑德伯格也说:你不能在Facebook上却不表现出你真实的自我。

“你只有一个身份,双重身份是不诚实的表现”。这是扎克伯格设计Facebook的方式,“你有不同面孔的日子——对工作上的同事表现出一副面孔而对生活上的朋友表现出另一幅面孔的日子——就要结束了”。公开承认自己和在所有朋友面前表里如一,会有助于创造一个更健康的社会。在一个越发公开透明的社会里,人们将会为他们的行动后果负责,于是就更有可能会表现的更为负责。

(注:本文作者为腾讯网科技中心总监。本文仅代表作者本人观点。作者电子邮箱:james.l.cheng@gmail.com)

Gossip1 min read

Cold…

Q: Why the Pc-Cillin is not good for against computer virus?

A: Every doctor knows that antibiotic is useless for virus infection.

NetworkingCentOS5 min read

Install OpenVPN Server on CentOS 5.4

There are many guys asking me how to install OpenVPN on CentOS 5.2/5.4. I have a server with that system (minimal installation) exactly and I cannot find an all correct guide for this setup step. So I decide to write this post.

You cannot count on the post to explain what OpenVPN is. But if you just require a simple guide for installation, you’ve got it.

Preparation:

1 A server running with CentOS 5.2/5.4. I don’t know which services you’ve installed, so I have to install all necessary components by bash command. You can skip that command if you know that is installed.
2 A KVM, an SSH client or another way to connect to your server.
3 You must know how to use tool vi to edit file.

Setup guide:

All blue texts should be typed into bash command line, and press Enter after each command. All black texts are just commit. Read them as you wish.

Install some tools.

yum install -y wget Install a tool for downloading packages.
yum install -y iptables Install the controller for inputting firewall rules.

Configure yum to install OpenVPN

yum install -y yum-priorities Let your yum to install more packages.
cd /tmp
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm for x86 (32bit) only
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm for x64 (64bit) only
rpm -i rpmforge-release-0.5.1-1.el5.rf.*.rpm
yum check-update

Install OpenVPN

yum install -y openvpn

Configure OpenVPN Server

cd /etc/openvpn/
cp -R /usr/share/doc/openvpn-2.0.9/easy-rsa/ /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0/
. ../vars There is a space between the 1st and 2nd dot.
chmod +rwx *
source ./vars
vi ../vars Modify the last several lines of this file to match your location and org name.
vi vars Modify the last several lines of this file to match your location and org name.
./build-ca Input your location and org name.
source ./vars
./clean-all
./build-ca Always press enter directly. You can verify your infomation in this step.
./build-key-server server Answer y twice for the 2 questions in the end, press enter directly for others.

Configure OpenVPN Setting. Following this post, you will get a server running at port 1194 with UDP protocol, and the sub network for VPN clients is 10.0.0.0/24. You can modify this document with the rest commands synchronously.

vi /etc/openvpn/openvpn.conf Create setting file.

Type all green text below to the edit form of vi.

port 1194 Use port 1194.
proto udp Use udp protocol. You can change this into tcp as you wish. It seems that udp is faster. Tcp can be used when you are using a udp banned network.
dev tun Mode. You can choose tun or tap. I don’t wanna explain this.
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.0.0.0 255.255.255.0 Sub network for VPN clients
push "dhcp-option DNS 208.67.222.222" Use DNS of OpenDNS.
push "dhcp-option DNS 208.67.220.220" Use DNS of OpenDNS.
push "redirect-gateway" Let all traffic from client to go though with this VPN server. Remove this line if you don’t want it.
ifconfig-pool-persist ipp.txt Let OpenVPN server to record the last used IP for each client, which allows client to use the same IP when reconnected.
keepalive 10 120
comp-lzo Enable compression for saving bandwidth.
user nobody
group users
persist-key
persist-tun
status openvpn-status.log
verb 3
client-to-client Allow clients to communicate with each others. Remove this line if you dont’t want it.

Save this file.

cp keys/{ca.crt,ca.key,server.crt,server.key} /etc/openvpn/
./build-dh This may take a while.
cp keys/dh1024.pem /etc/openvpn/
/etc/init.d/openvpn start Service starts!
chkconfig --list | grep vpn

Create key for each client.

The working folder is /etc/openvpn/easy-rsa/2.0 and you can verify it by typing pwd if you like. If it’s not, type cd /etc/openvpn/easy-rsa/2.0 to change it. Run source ./vars if needed.

Run this command for each client.
./build-key <client name> Answer y twice for the 2 questions in the end, press enter directly for others. Change <client name> to client name.

Final steps and add some firewall rules

service iptables start Start the iptables service.
iptables -A INPUT -i eth0 -p udp --dport 1194 -j ACCEPT Allow udp datagrams to be received from port 1194 of your nic eth0. Notice that there are 2 hyphens before dport.
iptables -A OUTPUT -o eth0 -p udp --dport 1194 -j ACCEPT Allow udp datagrams to be sent from port 1194 of your nic eth0. Notice that there are 2 hyphens before dport.
iptables -A INPUT -i tun0 -j ACCEPT Allow traffic from OpenVPN nic tun0. Change it to tap0 if you use tap mode in server configuration.
iptables -A OUTPUT -o tun0 -j ACCEPT Allow traffic from OpenVPN nic tun0. Change it to tap0 if you use tap mode in server configuration.
iptables -A FORWARD -o tun0 -j ACCEPT Allow traffic from OpenVPN nic tun0. Change it to tap0 if you use tap mode in server configuration.
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE Enable NAT.
/etc/init.d/iptables save Save iptables’ rules.
/etc/init.d/iptables restart Restart iptables service.
chkconfig iptables on Let iptables be started automatically.
chkconfig openvpn on So is openvpn.
vi /etc/sysctl.conf

Find a line with text net.ipv4.ip_forward = 0, change it into net.ipv4.ip_forward = 1, and save this file.

You’ve finished the configuration of server. Please restart it.

shutdown -r now

All certifications and key files can be found at /etc/openvpn/easy-rsa/2.0/keys. You should download ca.crt, <client name>.key and <client name>.crt to each client computer.

I’ll go on to create an OpenVPN client in Windows for example.

Download and install OpenVPN Windows Version.

Copy ca.crt, <client name>.key and <client name>.crt to its config folder (c:\Program Files (x86)\OpenVPN\config\ or c:\Program Files\OpenVPN\config\ by default). You can create a sub folder for each server to make it possible to connect to many servers, not at the same time.

Create a text file with extension “ovpn” in the folder which contains these 3 files with all green text below.

client
dev tun
proto udp
remote
<your server name or ip address> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert
<client name>.crt
key
<client name>.key
ns-cert-type server
comp-lzo
verb 3

Save this file.

Start OpenVPN Client, right click the icon in the system tray and connect the server. If you are running Windows Vista / 7 or Windows Server 2008 / 2008 R2, you have to run this program as administrator coz Route.exe which will be run by OpenVPN need this.

I hope you get it though.
BTW, if you are using fedora, you may wanna check this post, which contains more commands to adjust firewall.

For CentOS 6.0: iptables' commands need to be adjust. See your iptables configuration file for detail information.