9 Days in Egypt
地铁女车厢进了2次,第一次抱头第二站冲出,第二次自投罗网用毛巾蒙头做了坏人,感觉比进女厕紧张;
“How old are you?”“Yes~~Yes”;
另友情TK链接同去两位女侠的picasa:
http://picasaweb.google.com/chensu0714
http://picasaweb.google.com/vickiwang810
Super Lazy Cat
Written by
Pan Yu
at
12:05 AM
2
comments
Labels: thoughts, travelling
看到同住的Kwoon lim正在为病怏怏Joshua煮晚餐,我称赞他说,不愧是哥们儿啊。他回答道:没什么嘛,顺手牵羊而已嘛。
Written by
Pan Yu
at
8:26 PM
2
comments
Written by
Pan Yu
at
5:05 PM
3
comments
Labels: cuda, gpgpu, programming
关上灯,耳机中响起《gone too soon》的旋律。歌声中夹杂的气息,呼吸声,点点的喉音,一切听起来都那么清晰,那么近,就像那个人还在耳边歌唱,还没有离去。
我们的这个时代,没有披头士,没有猫王,但是却很幸运的有MJ。他其实一直都是一个天真的孩子。只是,这个世界太复杂。May you rest in peace,默默的,祝福。
Written by
Pan Yu
at
8:33 PM
2
comments
Article is "statistical confidence levels for estimating error probability".
The first function calculates the confidence level (CL) given the number bit errors measured (n), the total number of bits tested (N), and the expected BER (ph).
// CL = 1 - (\Sigma^{0}_{N}(n * ph)^k/(k!)) * e^{-n * ph}
double solve_CL_from_N_n_ph(unsigned N, double n, double ph)
{
double emnp = exp(-n * ph);
double sum = 1;
double product = 1;
for(unsigned k = 1; k <= N; k++)
{
product *= (n * ph / k);
sum += product;
}
sum *= emnp;
return(1 - sum);
}
double solve_n_from_ph_CL_N(double ph, double CL, unsigned N)
{
if(N==0)
return(-log(1-CL)/ph);
else
{
// solve n using binary search, based on "solve_CL_from_N_n_ph"
double upper_n = N/ph * max(100, N), // enlarge at least 100 times
lower_n = 100000, // at least 100000 data
cur_n = upper_n, next_n;
double min_interval = 100; // minimum internal to break the search
while(1)
{
double cur_CL = solve_CL_from_N_n_ph(N, cur_n, ph);
if(cur_CL >= CL) // if calculated value is more confident, try to reduce n
{
upper_n = cur_n;
next_n = lower_n + (upper_n - lower_n)/2;
} else
{
lower_n = cur_n;
next_n = upper_n - (upper_n - lower_n)/2;
}
if(fabs(next_n - cur_n) < min_interval)
break;
cur_n = next_n;
}
return(cur_n);
}
}
Written by
Pan Yu
at
4:08 PM
3
comments
What's best of being an Christian?
You can do anything you want. In the end, you just confess and get forgiveness from the GOD.
Written by
Pan Yu
at
1:47 PM
1 comments
Ng不是not good,而是“黄”,新加坡人很多姓这个的。Ng是2个辅音字母,很多人读不出来,实际就读N。大街上老远看到一个熟人姓Ng的,大叫Mr N,喊破嗓子也听不见。哦,不对,不可能喊破嗓子。
Written by
Pan Yu
at
8:20 PM
1 comments
Labels: singapore
刚知道Jurong Point新开了家Fair Price,因为规模大,名字也不一样,叫X Fair Price。听起来觉得挺别扭,总觉得和ex-wife很像。遂感叹新加坡真是 昔非今比啊。
Written by
Pan Yu
at
2:01 PM
2
comments
Labels: singapore
Magi:想想怎么回答学生问题……
Ryler:恩……就说一般的文件都有文件头,meta data之类的,这个没有,而且Google不到;其实主要是Google不到。所以应该是用户自定义的文件。内容嘛,只有鬼知道。
Magi:D这个回答好啊,developer就是诡异啊。
Magi:今年Yang kanyan和Yu renjun也要结婚了。
Ryler:啊!他们是gay? 没看出来……现在中国gay可以结婚了?
Magi:晕,我说错了。各自跟各自老婆结。钻牛角尖你的脑筋很快的嘛……
Written by
Pan Yu
at
9:17 PM
3
comments
Written by
Pan Yu
at
2:06 AM
2
comments
Labels: music
有人说,Wall-E是2008年最浪漫的影片。小方块好奇却又胆怯,但怀着只想要牵手的单纯,勇敢得差点粉身碎骨;小蛋壳一开始很白很暴力,后来却为旦夕中的小方块放弃自己的使命(directive)。其实,“他”是“她”或者“她”是“他”也说不定;他们之间到底是友情,还是爱情也说不定。浪漫不一定在爱人之间,为了彼此而超越自我的勇敢,就是最终极的浪漫了。无论在天荒地老的地球垃圾场,还是梦幻的星空中。
Written by
Pan Yu
at
11:43 AM
2
comments
再多的话也表达不出心中的悲痛,5月19日2点28分,在新加坡低头为受难的和幸存的人们祈祷。在生命面前,什么都变得不重要了。活着的人们,更没有理由不珍惜自己身边的亲人和朋友了,更没有理由自暴自弃了。愿天国的天空同样的蓝,鲜花同样的鲜艳。
Written by
Pan Yu
at
3:58 PM
1 comments
Labels: china
If you ever used laptop build-in camera for video conferencing, you will probably notice that your face is a bit distorted and not as pretty as the one inside a mirror. Actually, the same distortion happens for almost any cameras when the subject -- your face positions too close to them. For web cameras, wide-angle lens is used to jam in more environment, your face turns out to be even more funny.
Now that not everyone likes this distortion, and maybe it's an interesting application to flatten it. Assuming computation complexity is not a problem, it is possible to adjust each frame of image to de-distort it according to camera model and parameters before generating the video stream. An even more interesting approach is to build an accurate 3D model of your face, and dynamically manipulate it according to your facial expressions (while leaving less distorted, less important back ground as is). You can ask the software to pre-build your face model (not including hair of course) from several pictures of different angle. Or using a multi camera system, i.g., 3, from the left, center, and right side, to build it dynamically. This link shows a similar application using a single face picture. It's for fun, but surely shows the possibilities.
Written by
Pan Yu
at
3:04 PM
1 comments
Finally got the thesis writing done. The same old results, yet the procedure was full of struggling.
There's the saying that in order to do great things, you must aim high; another saying that the thousand miles journey starts with a single step forward. I guess I didn't really achieve a balance between these two, aiming too high, without a plan, only to discourage myself from stepping forward step by step. After all, I'm a normal person. But still, many great things are done by the normals.
"Welcome to the real-world, lad, where anything that is unthinkable is possible."
Written by
Pan Yu
at
8:01 PM
1 comments
Labels: phd
I've been to America and got a rough idea about people's appetite there. For example, in McDonald's, a burger is about 1.5 times the size of a same one in Singapore. Yet I saw a guy swallowed two within 1 minute with one on each hand. A separate order of coke in another restaurant is 30cm tall. And I had to take away nearly the whole main course of a 20 dollar sea food order, just after finishing the soup and appetizer. This is no kidding. In doubt, try this one!
Cafe' Cartel, at Plaza Singapura. We went there for dinner on the way back from a Greek sculpture exhibition in the national museum. Five of us, two hadn't had lunch at all, another two had some light snack, in order to meet our meeting schedule. We walked in, already near half death out of starving and exhaustion.
HQ had been there before, he advocated the flagship "pork ribs", depicted in the picture below, without mentioning the doze. I ordered steak for a change of other 4 serves of pork ribs. The steak came first, normal sized 15x7 cm2 piece, plus some chips and vegetable, good for me. After another 10 minutes, the pork ribs finally showed up. Everyone's jaw dropped to the necks. They are not pork ribs, but piano boards (PB)! My steak was less than 1/5 of each PB, with the same price... To close, two of our usual big stomachs never felt full before, in a status without lunch, crashed upon this. One had to ask me to finish some leftovers, another one swept the whole, bearing the pain of standing up with a exploding belly for the rest of the day.
Written by
Pan Yu
at
9:25 PM
0
comments
Labels: singapore
Starting job hunting recently, I realize it's really important to know myself better and identify a suitable career path I'm comfortable and passionate about. The first step, analyzing my personality -- resulted in the most rare INFJ (Introverted iNtuitive Feeling Judging) type, which is codenamed "idealist". Some quotations of this type are pasted below. I've already chosen the most suitable cuts, but still it turns out to be long. I'll try to highlight the central phrases or sentences describing what I am :-)
INFJ is a perfectionist who doubts that they are living up to their full potential. INFJs are rarely at complete peace with themselves - there's always something else they should be doing to improve themselves and the world around them. They believe in constant growth, and don't often take time to revel in their accomplishments. They have strong value systems, and need to live their lives in accordance with what they feel is right. In deference to the Feeling aspect of their personalities, INFJs are usually gentle and easy going. Conversely, they have very high expectations of themselves, and they don't believe in compromising their ideals.
They are generally "doers" as well as dreamers. This rare combination of vision and practicality often results in INFJs taking a disproportionate amount of responsibility in the various causes to which so many of them seem to be drawn.
Most INFJs are protective of their inner selves, sharing only what they choose to share when they choose to share it. INFJs hold a special place in the heart of people who they are close to, who are able to see their special gifts and depth of caring. INFJs are sometimes mistaken for extroverts because they appear outgoing and genuinely interested in people. On the contrary, INFJs are true introverts, who can only be emotionally intimate and fulfilled with a chosen few from among their long-term friends, family, or obvious "soul mates."
They know things intuitively, without being able to pinpoint why, and without detailed knowledge of the subject at hand. They are usually right, and they usually know it (欣慰啊). Uncanny gifted, INFJs may well have the clearest insights of all the types into the motivations of others, for good and for evil.
They are very sensitive to conflict, and cannot tolerate it very well. Situations which are charged with conflict may drive the normally peaceful INFJ into a state of agitation or charged anger.
In the workplace, the INFJ usually shows up in areas where they can be creative and somewhat independent. They have a natural affinity for art, and many excel in the sciences, where they make use of their intuition. In their own way, INFJs are just as much "systems builders" as are INTJs; the difference lies in that most INFJ "systems" are founded on human beings and human values, rather than information and technology.
Life is not necessarily easy for the INFJ, but they are capable of great depth of feeling and personal achievement. (我最喜欢的句子,有前途啊,小伙 :-D)
INFJs generally have the following traits:
* Intuitively understand people and situations
* Idealistic
* Highly principled
* Complex and deep
* Natural leaders
* Sensitive and compassionate towards people
* Service-oriented
* Future-oriented
* Value deep, authentic relationships
* Reserved about expressing their true selves
* Dislike dealing with details unless they enhance or promote their vision
* Constantly seeking meaning and purpose in everything
* Creative and visionary
* Work logically and rationally
* Usually have good communication skills, especially written
* Take their commitments very seriously
* Have very high expectations for themselves and others (both a strength and weakness)
* Good listeners
Weakness:
* Tendency to hold back part of themselves
* Not good with money or practical day-to-day life necessities (怪不得INFJ薪资低,好在I don't really care...)
* Extreme dislike of conflict and criticism
Written by
Pan Yu
at
11:26 AM
2
comments
Labels: thoughts