2008-01-18

Sick

Tired
Exhausted

Whom can I talk to?

What's wrong with my life?

It's already several days that I can't have good sleep. Feel tired even I when wake up in the morning.

Is what I'm chasing really what I need???

2008-01-15

Switching from ubuntu to Arch linux

Because compared to ubuntu, arch linux is :

- lightweight.
- optimized for i686
- more faster to connect to its mirrors.

2008-01-09

Some misused terminologies

// This post will be kept up to day
Resolution
is now misused to count the number of pixels of the vertical and the horizontal sizes of a screen. But in fact, this just word, "resolution", means the ratio between the actual number of dots in one dimension and the physical size(measured in inches) of of the screen. Dot comes from the typesetting area.

When talking about DPI of screens, we can take one dot = one pixel. When the screen dimensions are 1280x1024(that is, 1280 pixels wide and 1024 pixels height) and the physical diagonal size of the screen is 17", the size of one pixel is about 0.26mm. Thus the pixel size is fixed. So when the DPI is increased, more pixels are used to represent one (in fact virtual) inch, so the font(measured in points, 1 point = 1/72 inch) will become larger...

2008-01-08

Finally the annoying "elseif" indentation bug is solve in php-mode

I browsed emacswiki this morning and found that there is another new version of php-mode. With the hope that this version will solve the annoying and ugly "elseif" indentation bug in my emacs, which is like("_" stands for One SPACE here)


if($true)
__{
__}
elseif($false)
{
}
else
___{
___}


I immediately downloaded that new mode file and installed it, later added several tunings:


(add-hook 'php-mode-hook
'(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))


Now, time to try it!! Very lucky, that bug has now disappeared! See this screnshot:




// also, I add "print_r"to the constant php-keywords in php-mode.el to make it appears just the same as "echo":


(defconst php-keywords
(eval-when-compile
(regexp-opt
;; "class", "new" and "extends" get special treatment
;; "case" and "default" get special treatment elsewhere
'("and" "as" "break" "continue" "declare" "do" "echo" "else" "elseif"
"endfor" "endforeach" "endif" "endswitch" "endwhile" "exit"
"extends" "for" "foreach" "global" "if" "include" "include_once"
"next" "or" "print_r" "require" "require_once" "return" "static" "switch"
"then" "var" "while" "xor" "private" "throw" "catch" "try"
"instanceof" "catch all" "finally")))
"PHP keywords.")

2007-12-18

不行了

万恶的实验室空调,太热了。每天下午就热得要崩溃。

2007-12-02

规划

这个规划应该打印出来,贴在桌子上

1、在未来的一年内,刻意训练自己去全面地思考问题
2、有条理地叙述事情。基本方法已经掌握,剩下的需要更多的知识来支撑。
3、要有一把用得很熟练的刀,哪怕只是用来xiao铅笔。

2007-11-22

Another Level - From The Heart

I know you've heard these words
A hundred other times before
And you've been hurt and so
Your heart has chose to close the door
Love broke your heart
And brought you lies

Look in my eyes
You'll see a love that's deep and true
Tender and strong
And all for you
You can trust this love
Honest that's the honest truth

Chorus:
From my heart
I'm giving you everything(everything)
From my heart
I promise you that I'll be there(I'll be there to love you)
From the soul
I'm showing you all I feel(all I feel is..)
From my heart
From the heart...

I will protect you
And respect you
And be all you need
And when you reach for love
You only need to reach for me
These arms will never let you down

They're staying around
I'll help you through every storm
I'll keep you safe
I'll keep you warm
And you'll have no doubt
You're the one I'm living for

Chorus:
From my heart
I'm giving you everything(everything)
From my heart
I promise you that I'll be there(I'll be there to love you)
From the soul
I'm showing you all I feel(all I feel is..)
From my heart
From the heart...

I'll provide the love you need
Just trust my touch
Believe in me
I'll never make you cry
Giving all I got with..all I've got is...

Chorus:
From my heart
I'm giving you everything(everything)
From my heart
I promise you that I'll be there(I'll be there to love you)
From the soul
I'm showing you all I feel(all I feel is..)
From my heart
From the heart...