Origin link 2012-1-19
Today I need to use awk to add extra tabs and space to a long file. Then my first awk script begins.
awk is simple: /patter/'{action}'. You will see nearly every on-line introduction will tell you to add single quote to include actions. Sometimes single quote behavior is really strange in windows, but works well under Linux.
FinallyI realize single quote must be used to preserve bash to expand some special characters,like back-slash and stars, and pass them to awk. In Windows, dos/cmd has the different ways to do it, then you need different quote, see http://www.catonmat.net/blog/wp-content/uploads/2008/09/awk1line.txt for example.
Origin link 2012-1-19
I am holding a whole day meeting to discuss about innovation. People talked a lot about it, but I am still not satisfied about it and have questions:
For company, right product strategy is always more important than "innovation". What kind of product do you want to build? Then comes how to build this product with innovation idea.
Origin link 2012-1-10
Q: Why program is killed if I log out the bash and why it survive if using nohup?
A: When log out, the bash will generate the SIGHUP to progress attached to it. If there is no default routine in progress to handle this signal, kernel will use the default action (terminate for SIGHUP). More information see section 10.2 of "Advanced Programming in the UNIX Environment" or http://www.win.tue.nl/~aeb/linux/lk/lk-10.html .
Origin link 2012-1-4
Recently I just realize how good the RSS did. By using RSS, you have kind of information center to read all interesting information from different site and it is a good idea. It is similar with email but only with one direction.
But seems RSS is not popular any more, we talk with twitter, facebook, G+ and many others. But why not RSS.
This is a interesting thing and worth to think.
Origin link 2011-12-30
I am thinking about the difference between email, QQ/MSN, twitter,blog, Facebook/Google+, Yelp/Dianping, Douban, Google group, web forum and mail group. It is possible to merge them together? Actually it is all about how to distribute information.
The first step is to identify who you are. In email, we use email address; in QQ/MSN, we use QQ number/Windows live ID; in web forum, we use user name. One thing need to emphasize, email is wonderful. Since we could talk with other in different world. But for others, you could only talk with one in same world. I think we need to talk with other worlds since it is impossible and not safe to only have one identify system. But in QQ/MSN world, it seems we lost it. But web forum/web site, open ID is a good solution, but seems still long way to work.
Then you could decide who could read this information? Public or some groups or just one of your friends. Facebook did first step for this, and Google follow next with circle. But still, both Google and Facebook could only identify the guy in their world and there is no way to control access right based on email, QQ/MSN and mail group address. Maybe it is too complicated to implement and for user to decide. We need some break through on it, especially for email which nearly everyone have.
Third is to notification. How should you know which information need to read and which could ignore, especially the information is huge. We need some way to control the important level of information. Generally, we will read every email/QQ/MSN information and decide if to take action. But for web forum, it seems impossible, sometime we don't do that. This is also similar in Facebook. I think it is most important to develop some systems to solve this problem. WE COULD NOT READ EVERY INFORMATION!
Finally is how to find the information. There is so many information and how do you find them? Forum/group are a better way to organize information into different category. Facebook and Google+ is trying to give information weight based on how many people like it.
From this point of view, email,QQ/MSN is more similar which is distributed based on single one; twitter/blog is distributed to public by default; Facebook/Gooogle+ and mail group are distributed on groups; Forum/group is distributed not on identify, but on subject.
Origin link 2011-12-28
Since lots of Chinese website leak the private user information, like phone, password and address, I have to change lots of my password. I see one of my old password in Tianya's database. I really don't believe that so many website store the real password, not the hash value.It is so ridiculous.
When I change the password, I realized that I have registered so many mails box, so many communication account and so many SNS website. QQ, MSN, Yahoo message, Weibo, twitter, Facebook, Google +, flicker, box.net, drop-box. Do I need so many website? And you will find it is hard to delete account, especially for Chinese website. How many user name and passwd does I need to manage them?
We really need to think about do we really need so many website? For communication, long time before, people talk face-to-face or just write mail by hand. Now, we have email, QQ/MSN/gtalk, twitter/weibo, Facebook/orkut/Kaixin/renren/G+. Internet is changing very fast, but what do we need really?
Communication is the basic requirement for human being. Like the internet, we have two type of talk: real time talk and delay time talk.
All of core of talk is sharing and receiving. Different ways of communication has the different efficiency to distribute it to others.For real time talk, It all depends how easy you find others and how easy you send the information. And it is also related to how do you control the incoming information.
Origin link 2011-12-25
Basic knowledge of pass word
Consequence of pass word leakage.
What password protection could not do:
password strategy:
Origin link 2011-12-22
无论是阿拉伯之春,Russia发生的protest,还是Economist上的Kazakhstan的强权总统。都让我们思考这样一个问题:
从历史发展的角度来看,大多数国家在1900年前都选择的是极权统治方式,而不是民主。但在2011年的今天,越来越多的国家和人民选择走上街头,反抗独裁统治者。这是否和生产方式以及人民的收入水平有关?
也许随着经济的不断发展,每个人被迫和不自觉地卷进卷所谓的"现代化生活中"。这种生活方式的特点之一是不确定性。所以安全感的缺失让人更有动力去追求民主
但这涉及到另外一个问题,民主和极权体制的本质是什么?
Origin link 2011-11-22
人其实也可以抽象为复杂的物理模型: 分为接受信息和处理信息两个部分。
communication讲的是如何发射和接受信息。 在这个过程中你需要知道信息传递的channel,对方对不同frequency的接受能力,带内带外noise的处理。总而言之,communication讲的是如何减少噪声干扰,将信息完整的传递给对方。
信息的处理是对方接受到你的信息得出的结果。这个涉及到群体/个人对不同信息的不同处理和反映。心理学很大程度上就是研究这个的。
从某种意义上讲,人和电脑是有很大的共通性。唯一的区别就是情感。我还没有想清楚为什么人类需要进化出情感?
Origin link 2011-11-19
Damm, my kindle 2 is broken since I put it in my bag for several days. I guess the screen is broken since nothing could display. I have booked a kindle slim with price 596RMB in taobao. I think I could buy book from amazon now. From this point, it is a good choice.