| Sammy's profile廖 显 Sammy.liaoPhotosBlogLists | Help |
|
30 May GMAIL:AJAX的应用以前不知道在哪里看到过关于提起Gmail 是用AJAX做的,其实还有Google map等等。不能说Gmail优秀,因为这几天我一直处于打不开Gmail的状况,有点抓狂了。所以大家一起来研究一下它怎么在几个不同的浏览器上可以一致的实现xml异步调用。 登录gmail:
要注意到的是google在这里耍了一个小花招,那个叫做main的框架页面里面看来没有多少东西,好东东都在那个叫js的框架里面呢。 我们接着把这个js框架拉出来看看:
其实其中大部分都是老生常谈的js代码了,不过我们可以一窥google的编码风格:尽可能压缩信息量,变量名能用一个字母的绝不用两个,函数名一概都是两个字母的,函数内的会车是没有的,缩进也是没有的。虽然代码没有特地加密,但是如此处理一番之后也就没什么可读性了。还好系统的关键字是不能缩水的,顺着xml控件的名字我们可以揪出来跟AJAX异步加载数据相关的几个关键函数:
21 May The truth about running your own show
Today, I read a article of Luke Johnson. And the advice about the running your own business is very good I think. And share for my friends who is fighting for on this road. There are a lot of misconceptions about those who build companies. The real lives of self-starters are quite different from the impression created in movies, novels or the news media. These fictions discourage some would-be entrepreneurs from giving it a go, and even influence policymakers. So let's debunk some of the most common falsehoods. Entrepreneurs are motivated by money. In reality they create firms by accident, or because they want to prove themselves, or because they are bored, or have a passion - rather than because they want to get rich. Studies have shown that the short phrase that best sums up the drive of those who create new enterprises is "I'll show them". Money is a way of keeping score and providing capital for the next project - not the prime objective. The idea is what matters. In fact, execution is everything. We all have brilliant concepts that never come to fruition because they are impractical, or because we are too lazy or distracted. Making it happen is what counts, and this is the difficult bit - which is why so many seemingly clever schemes fail.Entrepreneurs are born not made. Most successful business owners do not start out very young. They gain experience working for others, and learn how to run an enterprise before venturing out on their own. Just as no one is genetically programmed to be a doctor or an architect, so entrepreneurs tend to find their calling by nurture rather than nature. Start-ups are one-man bands. Most companies that do well are developed by teams. A prime mover often gets most of the attention - and possibly the rewards - but it is the winning combination of skills formed by a partnership of players that is the most likely formula for success.Entrepreneurs are inventive geniuses. Very few inventors make it big in business. Rather, those who tend to strike gold are commercially-minded individuals who replicate an originalproduct and make it cheaper, market it better or watch the costs properly. Entrepreneurs are mostly academic rejects with no qualifications. Today more and more business owners have university degrees or doctorates. Being an entrepreneur is now a respectable career choice, so more of the educated middle-class have taken the plunge.Most new businesses fail. Actually the survival rates for companies have been rising in recent years. Only a small proportion of operating enterprises go bust each year - as opposed to inactive limited companies being wound up or struck off, which distorts the statistics. And companies usually fail because of management shortcomings, rather than external forces. Entrepreneurs are loners. It takes people skills to build a company, and most entrepreneurs are extroverts who enjoy the company of others. They choose to work for themselves because they enjoy the independence, not because they want to hide away from colleagues.Entrepreneurs have chaotic personal lives. The popular image of an entrepreneur is of someone who has sacrificed everything to make a fortune - including his marriage and family. Elsewhere they are portrayed as playboys with no domestic ties. The truth is that most have a settled home life and stable relationships. The support of a steady partner is needed to help the entrepreneur through the tough times.Entrepreneurs are gamblers. Yes, they take financial risks, but most are good at judging the downside, and are more cautious in their ventures than it might appear to the uninformed. The vast majority of bankrupts are not entrepreneurs who failed: they are ordinary workers who borrowed too much. Entrepreneurs are workaholics. While a founder needs to be committed, most work no more hours than ambitious corporate managers. And at least the self-employed can choose their own work patterns. Moreover, surveys show the most stressful aspects of life for staff in big companies are office politics and commuting, things entrepreneurs can largely avoid.Entrepreneurship is neither as difficult nor as miserable as many people think. Bear this in mind next time you entertain the idea of running your own show.
13 May Indoor rock-climbing"Feel the intensity. Feel the burn. Don't look down. "
Today, I try to join the indoor rock-climbing with my friends and share the funny. That is long time for planning to, but I awalys have no time. At the beginning, I am successful for catching the top. But for the oblique wall, I fall. I try many times still I feel a bit of ache of my arm. I think I need more practise in next time. And then we share some interesting plan in our life and we promise to go to the another high mountian each other to see the stars and milk way(maybe we have opportunity to see it) at night. (The time maybe is the end of July or early) That's nice, I look forward to the arrival of this day.
PS: Today, I found the dogs (Golden Retriever) of the rock-climbing club boss is very beautiful, and irritated me to wanna have same one. That is very cool but maybe I still love the Siberian Husky more!
![]() 03 May Travel in the MountainCome back! Yesterday, I followed my travel with my friends, that was my part of life. ' You can live 100 years but if you don't travel, you only have a half life'- Meskines. World... here I came. YinChanggou, that was not very high mountain, but had beautiful foso which was the very green water and very long also. We went long the plank road which built along a cliff. Sometimes we played the water and relaxed the heart, sometimes we ran along the road like the running-competition. We shared the funny and easy in this time whatever who I was and what we did just follow the heart. What was real life in my thinking? I liked take my friends and enjoy the fresh air, green tree, beautiful view and even nice joking. Whatever the blue was.
Nice trip!
|
|
|