Saturday 31 December 2011

激情和爱情

今天在开心网上看到的帖子,觉得说的不错,记录下来。

有朋友问到区分激情和爱情,其实很好区分的,当你不见她时茶饭不思,是激情。老想见到她,想和她一起玩,一起上床,一起做白日梦,是激情。每天短信电话多的没完,是激情。为了生日节日费尽心思想浪漫的点子,是激情。当你和她在一起时脑子里不自觉的规划实实在在的将来,是爱情。当你们争吵到很凶,火很大时,也不忍心说一句伤害她的话,是爱情。当你们有分歧时,你总是能清楚的知道她是怎么想的,能理解她的初衷,是爱情。 

Thursday 29 December 2011

Java profiler

jvisualvm is a Java virtual machine monitoring, troubleshooting and profiling tool. It comes with Sun Java 6 JDK and works out of the box. It works pretty well on Ubuntu so far for me.

Tuesday 20 December 2011

Kinect statistics

Depth full resolution: 640 x 480 pixels
Device max depth: 10,000
Depth sensitivity: 11-bit, 2,048 levels
The depth sensor has a range limit of about 0.5m - 5m with a resolution of 1.5mm at 0.5m and 5cm at 5m.

Monday 19 December 2011

Eat your way to better skin

1. Avoid sugar

Sugar has been associated with increasing aging. In a process called glycation, sugar molecules bind to proteins, such as collagen, causing it to become less effective and show signs of aging more quickly.

2. Snack on anti-oxidant-rich fruits or vegetables instead of sugar treats. These include blueberries.

3. Take oil supplements, such as omega-3 (fish or flaxseed oil) supplements, to keep skin hydrated. Omega-3 rich foods include salmon, flax and linseed oil. Linoleic acid - an essential omega-6 fatty acid - in particular can help dry skin too. The body doesn't make linoleic acid (which is found in grape seed, sunflower and other oils), but can be obtained through diet or in skin products.

3. For anti-aging purpose, we should take supplements that have vitamin C and E, lycopene (found in tomatoes), and lutein (common in spinach and kale). The help prevent wrinkles. We should also seek foods that contain beta-carotene, along with vitamins A and B.

Friday 2 December 2011

偶然在网上看到的一段话,很有共鸣。

"我们都认为婚姻里的不忠,不仅仅是爱与不爱的区别,而是人品问题。你欺骗了这个世界上你最亲密的人,背叛了这个与你相互依偎,将走过一生的人。你还有什么值得信任呢?"

Ruby IO

Output
puts writes its arguments with a newline after each; print also writes its arguments but with no newline. printf works similar as C. The p method prints out an internal representation of an object.