Archive for May, 2011

Live Fortune (Node.js) that do not crash

Do you enjoy reading interesting or funny sentences like below?

A nuclear war can ruin your whole day.

He who knows, does not speak. He who speaks, does not know.
— Lao Tsu

If you do, check out:
http://fortune.crash4.us/ i

For the record, this is a project built with Node.js, Express and Faye. One fortune will be pushed from server to each client every 2 mins thanks to the html5 WebSocket. Client can trigger a server push/broadcast as well ii. All the source code is available at github.

Next step is to convert this project to CoffeeScript.

[Footnotes]
  1. Trust me, it won’t crash… []
  2. open multiple browser windows or tabs to test []

Never hate your enemies

godfather told us:

Never hate your enemies. It affects your judgment.

so instead, kill them by impression

(via i)

[Footnotes]
  1. not sure where it originally comes from. All right belong to their respective owner. []

Vim-Task overhauled with native vim script support

Thanks to anfernee, vim-task now supports vim native script, which means +ruby compile option is not required any more in your vim instance.

This is great because the default vim package some Linux distributions (debian, ubuntu etc) distribute do NOT build with +ruby feature by default, which makes very frustrated experiences for these users. This commit simplifies the process and will eventually provide benefit in the long run.

If you’re a user of vim-task and not so into ruby, upgrade is highly recommended.

Update 58: 其实我不喜欢皱眉

1. 周末理发,顺便想换换心情,洗头的mm貌似发现了什么,委屈的问我为啥老是皱着眉头,一时语塞,半响折腾出一句,“没有啦,估计我天生这表情……”,mm将信将疑地告诉我老是皱眉怎么怎么不好,怎么怎么不利于健康,我很defensive的一一小心附和着,防范着接下来随时可能出现的推销行为,后来不知道是我defend的好还是mm根本没这心,一切的谈话最后都只限于闲谈的范畴,mm也许真的只是在没话找话吧,事实证明所有的阴暗面全部来自于我这个阴谋论深度患者,只是我没有说出来而已;最后为了表示歉意,我假装随意的道出了我本来一直在avoid而mm也许早就猜到的事实:“其实我不喜欢皱眉的啦,只是最近祸不单行,心情不好,不好意思了”;

2. 当然,不喜欢皱眉只是个心理状态,也许我真的天生皱着眉也说不定 i,这则不以我的意志为转移了;

3. 最近不知道为啥,开始喜欢刷新浪微博(很多事情真的很难解释),如果各位碰巧也用新浪微博的话,可以加我,当然就如各种国外流行serives的clone一样,sina的微博还是更偏重于娱乐,这不是judgement,只是我的opinion而已;

4. 在sina微博关联了blog,顺便测试下,不在话下;

5. btw,时间过的好快,一晃就好几年,再晃一下又是好几年,上上周看到一篇文章说人生只有大概900个月,震撼之于便只剩唏嘘,置此与大家共勉。

[Footnotes]
  1. 我觉得很cool啊,呵呵… []

What’s your color?

摘录一段最新一集i the big bang theory ii 里面的某段对话:

Raj: I need a hug.
Sheldon: Sorry, I have company.

Raj: Come on, Sheldon, open the door.
Sheldon: I don’t want to hug you.

Raj: I don’t want to hug you either. I was just feeling blue.
Sheldon: Blue, as in depressed.

Raj: Well, not so much depressed as lonely.
Sheldon: I don’t know what color lonely is.

Raj: What?
Sheldon: Red is angry; yellow is frightened; green is jealous; and blue is depressed. Perhaps we can assign a color to lonely.

Raj: Nothing rhymes with orange. It’s probably lonely.
Sheldon: All right. Come in. You look positively orange with loneliness. No, I don’t see that catching on at all.
Continue reading →

[Footnotes]
  1. 第四季第22集 []
  2. 最近开始并且现在已经完全catch up,之前基本上属于两天一季的速度,汗… []

Hey Jude

media downloaded from google.cn music

Hey Jude – 孙燕姿

Hey Jude, don’t make it bad.
Take a sad song and make it better.
Remember to let her into your heart,
Then you can start to make it better.

Hey Jude, don’t be afraid.
You were made to go out and get her.
The minute you let her under your skin,
Then you begin to make it better.

And anytime you feel the pain, hey Jude, refrain,
Don’t carry the world upon your shoulders.
For well you know that it’s a fool who plays it cool
By making his world a little colder.
Continue reading →

Update 57: Keep Silence

again, this update is intentionally left blank. i

[Footnotes]
  1. no reason, no clue, no comment. []

Grid Archives 1.0.1 & 1.0.2

2 minor issues found after 1.0.0 released. If you’ve already upgraded to 1.0.0, upgrade to 1.0.2 is highly recommended.

[ChangeLog]

  • fixed a month date format display issue
  • made the plugin compatible with wordpress 3.1

Please visit this archives page to see a live demo.

Grid Archives 1.0.0

While post date format customization feature was added in 0.7.0, it now feels inconsistent and very annoying if month date format can not be customized. This release covered this issue.

Although 1.0.0 sounds like a major release, it actually adds only one feature as mentioned above If you have other feature requests, please feel free to leave comments.

[ChangeLog]

  • added an option to customize the date display format for months

As always, please visit this archives page to see a live demo.

[Screenshots]