understanding node process(1)

And Lost be the day to us in Which a measure hath not been danced.

And false be every truth which hath not had laughter along with it.

— Niezsche

As we know, javascript is running on a single process, which brings a question, how can we get the multi-core CPU fully work?

Read more »

浅谈javascript执行作用域

An old Cherokee told his grandson “my son, there is a battle between 2 wolves inside us all. One is Evil. It is anger, jealousy, greed, resentment, inferiority, lies and ego. The other is Good. It’s joy, kindness, empathy and truth”. The boy thought about it and asked “Gran, which wolf wins?”. The old man quietly replied “The one you feed”.


最近看看javascript基础知识,今天来粗浅的谈谈javascript里函数作用域。

说到函数作用域,就不得不提到闭包。子函数任意访问父函数的变量,并对其长期持有。父函数外部不能访问内部变量。这就是闭包。

Read more »

What we lost?

In the age of acceleration, nothing can be more exhilarating than going slow. And in the age of distraction, nothing is so luxurious as paying attention. And in the age of constant movement, nothing is so urgent as sitting still.

Technologe brings our life into a new stage of century. Everything is rising faster and faster. And it means to be used by saving time. But why we still feel lack of time, even more than before? What we lost when we are all rushing into the entire new age?

Read more »

gulp学习初体验

花了一天的时间,把gulp的一些基本用法过了一遍。总算对其有了些了解。记录下学习中的不解,也算对这次的学习一个总结。

首先介绍一下gulp,gulp是一个前端构建工具,利用它可以在项目开发过程中自动化执行任务。有赖于其强大的插件系统,我们可以利用gulp完成很多任务,例如执行JSHint,编译stylus,更新版本号等。

Read more »

双线部署遇到的问题

本来博客是放在github上面,但是由于国内网络环境(大家懂的),github访问不是很稳定,随时被查水表。所以采取网友的建议,在gitcafe也部署一个。gifcafe是国内的,速度杠杠的~

Read more »

setup Macbook

工欲善其事,必先利其器

折腾了两天,终于把新到手的Macbook 各种配置好! 中间遇到的问题不是一般两般的多,谁叫我是新手呢!!!

Read more »