Calendar

2010年三月
« 二    
1234567
891011121314
15161718192021
22232425262728
293031  

Translator

The Impossible Dream-追梦无悔

音频片段:需要 Adobe Flash Player(9 或以上版本)播放音频片段。 点击这里下载最新版本。您需要开启浏览器的 JavaScript 支持。

要做那不可能实现的梦。
对抗无法匹敌的对手。
承受难以承受的悲痛。
去往勇者以畏惧之地。
纠正那无法改正的错误。
成为远远超越自己的人。
即使双臂疲惫不堪,仍要尽力去尝试。
要摘下那遥不可及的星星。

这是我的追求,
去追随那颗星,
不管多么绝望,
不管多么遥远。

毫不犹豫的为梦想而战,
即使向地狱进发也毫不退缩。

而我明白只有坚守着这光荣的使命,
闭上双眼,内心必能得到安宁与平静。
世界也将因此而更加美好。
无所畏惧,带着伤疤的人,
将战斗到最后,
直到摘到梦想中的那颗星。

Click to continue reading

PHP-MVC-UML

http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/

是个很好的php mvc实现过程展示,已经说地很翔实了。我比较笨,为了更好的理解他的代码实现,用UML把它的设计思路画了一下。

class 

sequence

How online payment processing works

Online payment processing consists of two principal steps: authorization and settlement. The authorization process verifies that the customer’s credit card is active, and that there is sufficient credit to pay for the transaction. During the settlement process, the customer’s card account is charged and money from the customer’s account is transferred to the merchant’s account.

1. Payment processing authorization

During authorization, a bank verifies that holders of a payment instrument, such as a credit card, have sufficient credit or funds to make a purchase.

  1. Customer decides to purchase online and inputs credit card information.
  2. Merchant’s website receives customer information and sends it to payment processing service.
  3. Processing service routes information to processor.
  4. Processor routes information to bank that issued customer’s credit card.
  5. Issuing bank sends authorization (or declination) to processor.
  6. Processor routes transaction results to payment processing service.
  7. Processing service sends results to merchant.
  8. Merchant decides to accept or reject purchase. (Here, the merchant should take additional precautions to ensure the 8. credit card is not stolen and that the customer actually owns this card.)

image

Click to continue reading

FW: A Letter from Father

Dear son..孩子…..

The day that you see me old and I am already not, have patience and try to understand me …
哪天你看到我日渐老去,身体也渐渐不行,请耐着性子试着了解我……

If I get dirty when eating… if I can not dress… have patience.
Remember the hours I spent teaching it to you.
如果我吃的脏兮兮,如果我不会穿衣服……
有耐性一点……
你记得我曾花多久时间教你这些事吗?

If, when I speak to you, I repeat the same things thousand and one times… do not interrupt me… listen to me
如果,当我一再重复述说同样的事情…不要打断我,听我说….

When you were small, I had to read to you thousand and one times the same story until you get to sleep…
When I do not want to have a shower, neither shame me nor scold me…
你小时候,我必须一遍又一遍的读着同样的故事,直到你静静睡着……..
当我不想洗澡,不要羞辱我也不要责骂我……

Remember when I had to chase you with thousand excuses I invented, in order that you wanted to bath…
When you see my ignorance on new technologies… give me the necessary time and not look at me with your mocking smile…
你记得小时后我曾编出多少理由,只为了哄你洗澡…..
当你看到我对新科技的无知,给我一点时间,不要挂着嘲弄的微笑看着我

I taught you how to do so many things… to eat good, to dress well… to confront life…
我曾教了你多少事情啊….如何好好的吃,好好的穿…
如何面对你的生命……

When at some moment I lose the memory or the thread of our conversation… let me have the necessary time to remember… and if I cannot do it, do not become nervous… as the most important thing is not my conversation but surely to be with you and to have you listening to me…
如果交谈中我忽然失忆不知所云,给我一点时间回想…
如果我还是无能为力,
请不要紧张…..
对我而言重要的不是对话,而是能跟你在一起,和你的倾听…..

If ever I do not want to eat, do not force me. I know well when I need to and when not.
当我不想吃东西时,不要勉强我.
我清楚知道该什么时候进食

When my tired legs do not allow me walk…
当我的腿不听使唤….

… give me your hand… the same way I did when you gave your first steps.
扶我一把….
如同我曾扶着你踏出你人生的第一步….

And when someday I say to you that I do not want to live any more… that I want to die… do not get angry… some day you will understand…
当哪天我告诉你不想再活下去了….请不要生气….
总有一天你会了解…

Try to understand that my age is not lived but survived.
试着了解我已是风烛残年,来日可数.

Some day you will discover that, despite my mistakes, I always wanted the best thing for you and that I tried to prepare the way for you..
有一天你会发现,即使我有许多过错,我总是尽我所能要给你最好的…

You must not feel sad, angry or impotent for seeing me near you. You must be next to me, try to understand me and to help me as I did it when you started living.
Help me to walk… help me to end my way with love and patience. I will pay you by a smile and by the immense love I have had always for you.
当我靠近你时不要觉得感伤,生气或无奈
你要紧挨着我,如同我当初帮着你展开人生一样的了解我,帮我….
扶我一把,用爱跟耐心帮我走完人生…
我将用微笑和我始终不变无边无际的爱来回报你

I love you son…
我爱你孩子

Your father
你的父亲

PICOL-形象通讯语言(Pictorial Communication Language)

PICOL:形象通讯语言(Pictorial Communication Language)。PICOL的目标是创建一个“用于电子通信的标准和精简的符号系统”。PICOL可以免费使用,并允许用户自行修改。

人类一直都通过文字来阅读。这种方式有其弊端:

  • 字形表意晦涩,学习困难
  • 种类繁多
  • 同时表达方式单一,只能一行一行的序列陈述

PICOL设计观念为我们展示了一种新颖的沟通语言:就是用通用图标(精简会意符号)。这种语言,通过标准化的会意图标来表达思想,其思想正好解决传统文字的弊端。

  • 方便理解,学习简单:它表现象形,不管你是哪国人,不用学也能明白大概。
  • 表现方式多样:它也不一定像传统文字那样一行行的排列来陈述,完全可以一在个平面甚至是三维空间中随意组合、运动来表达含义。

有利必有弊,PICOL弊端也很明显。

  • 书写困难: 很难想象所有字都要一个个的画出来,不过计算机时代的到来让这种输入难度急速降低。
  • 表达有限:PICOL现在看来只适合陈述事件与逻辑关系, 要用它来写一篇诗歌或散文,还不如去拍个电影。

下面是一个实例,视频:Internet的历史

这个视频完全运用PICOL来表达。试试禁音“阅读”,在你还没有学过这种语言的情况,看看能理解多少。设想一下,如果还有一段表达同样意思的梵文,你又能理解多少。

如果你曾经对Internet是如何诞生的很好奇,但又没有时间来阅读相关主题的书籍,那一定不要错过Milah Bilgil制作的这段名为”Internet的历史”的简短视频。这段视频对分时(time-sharing),文件共享(file-sharing),arpanet以及internet的历史演进作了一个非常形象的介绍。

 


History of the Internet from PICOL

Reference: http://blog.picol.org/

用Google Trends来做决定

一堆东西放在你面前选,拿不定主意。人人都会碰到这样的难题,一个简单的方法就是找Google Trends。

我就是! 想研究一下cms,网上找了很多产品,各有千秋,不知怎么选, 就偷了个懒,让Google Trends 帮我选了。

google trends cms

由《If you want me》引发的

不经意间听到Gelen的《If you want me》,本来想当工作背景音乐来着,结果,听得发痴恍然忘了键盘上的思路。好吧,最近忙得东倒西歪,就让我伴随着这首曲子,放松片刻吧。想想最近有什么可以写写的。
 
有看到书上说,一个人随着年纪增长,对生命的体验的增多,越到后来,越有一种冲动想写出自己的体会,所谓回忆录之类的东西。我20多年,回想起来,自己小时候,到12岁之前,可谓是不识愁滋味,宠爱百般无忧无虑的童年;进入叛逆期或者称青春期后,家里变化很大,而我整个人也皆然相反,不开心的时候多;再往下来到现在这个阶段,成家稳定了,童年堤定的基础显现出来,越来越乐观,阳光向上。充实,美好,平常心,内心渐渐有了自己的力量。懒散的本性开始有力量拉着自己,踏步在往前走了。年少的忧郁和苦闷,年长后的开朗和阳光,让我想起那句词,为赋新词强说愁,古往今来的年轻人都是这样的吧。现在,我正在很开心的奔向30岁,女人不怕老也算是一种勇气吧,我甚至真心期待我的40岁,50岁,60岁……嗯,有时候偷偷想,那时我该是什么样的光景和沉淀呢?
 
前几天中午被老板拉着和技术团队的一位team manager吃饭,让我自己再次告诉自己看人看事不要想当然。席间,我们聊得最深入的居然是国学,历史,哲学,中文。这个manager,让我吃惊的是他知识阅历很广,看问题入木三分,文学修养和对中国古代哲学国学的都很有见地,也被复旦一位我很尊敬的名教授视为忘年之交。感叹之余,我身边的2个intern告诉我,她们的一些称得上精英的男同学都是学理工科的,但是对历史国学的认识见解比她们这些名牌大学文科研究生都厉害。这让我想起来,看过的一本书,大意是说,要有全面的判断分析能力,不仅仅是训练什么skill的或仅仅独独接受某一方面的知识,而是要全面地吸收过往的精神沉淀,这些综合的东西才是塑造一个全面人格的。我想这包括人文的,也包括自然科学的。看来优秀的人,不仅仅是专才,也不是说要全才,但我想,至少他看世界的角度,他的眼界,他的人文修养,是应该不拉他后腿的。也可以换个角度,年轻人不要太着急走极端,我从小其实性子是很急很急的,本性也是很容易走极端的,但是随着年龄增长,越来越多的事实,不得不教会我,什么叫笃定,什么叫平常心,而我最缺少的就是这2点。
 
再说说前天看到一句话。很让我深省。It is not having what you want, it is wanting what you’ve have.现在主流年轻人都是在说,要追求自己真正想要的东西,这是对的。但是我个人的感受是,在20多岁甚至30多岁的时候,很多很多的人,其实不知道自己真正是想要什么的,过往短短20、30多年中我们其实独立思考的也就是10多年了不得了,就这么长时间还不知道真正面对自己内心直面了解自己的时间和机会有多少。我是一直觉得我现在还不完全了解自己的。就我自己而言,越小的时候觉得自己很了解自己,越大了反而发现这个课题复杂,不敢年少轻狂。所以,在不了解自己的时候,你追求你以为自己最想要的东西,容易盲目。
而对我们自己拥有的一些东西不够重视和珍惜,这也是大多数人的状态……嗯呐,对我们来说,这句话很值得我们想想的。
 

PCI Data Security Standards (PCI DSS)

写paypal程序有一段时间了。关于电子支付,安全问题非同小可,总是要反复留心。但不管怎么谨慎,按照个人主观标准做的东西总不能保证质量。近日开始系统阅读paypal开发文档,没想到第一课就是PCI DSS(Payment Card Industry Data Security Standards支付卡数据安全工业标准)。有了标准就有质量保证的依据,应该是做电子支付的必修课了。

什么是PCI DSS?

  • PCI DSS是:支付卡数据安全工业标准
    • 按照支付卡行业安全标准委员会(PCI SSC)需求设计
    • 保护持卡人在支付卡欺诈、遗失、偷盗情况下的数据安全规范
  • PCI SSC 管理此标准
  • 支付卡公司执行此标准(如:Visa, MasterCard, DiscoverCard and American Express)
  • PCI DSS适用于持卡人数据存储、处理与传输的全过程 

PCI DSS 目标概略

  • 建设与维护安全网络
  • 保护持卡人数据
  • 维护系统弱点
  • 实行健壮的访问控制
  • 监控与测试网络
  • 维护一个安全策略

遵守PCI DSS

遵守PCI DSS不是一次性目标,它是不断评估与执行的过程。

  • 评估:确定持卡人数据与相关IT设施清单,分析弱点
  • 纠正:修正弱点并保持只对指定数据进行处理
  • 报告:记录所有的行动日志,并通知收单行与有关经营体

PCI DSS 12 Core Requirements

Build and Maintain a Secure Network
Requirement 1 Install and maintain a firewall configuration to protect cardholder data
Requirement 2 Do not use vendor-supplied defaults for system passwords and other security parameters

Protect Cardholder Data
Requirement 3 Protect stored cardholder data
Requirement 4 Encrypt transmission of cardholder data across open, public networks

Maintain a Vulnerability Management Program
Requirement 5 Use and regularly update anti-virus software
Requirement 6 Develop and maintain secure systems and applications

Implement Strong Access Control Measures
Requirement 7 Restrict access to cardholder data by business need-to-know
Requirement 8 Assign a unique ID to each person with computer access
Requirement 9 Restrict physical access to cardholder data

Regularly Monitor and Test Networks
Requirement 10 Track and monitor all access to network resources and cardholder data
Requirement 11 Regularly test security systems and processes

Click to continue reading

Page 1 of 32123456789101112...Last »