* Category for English *

15
May
2008

Today, I found a very interesting problem : one of my email accounts on my site can not recive the mails from Yahoo China. the failure email is noticed that : they wasn’t able to establish an SMTP connection.

I talked this to the support center of my web hosting, they told me that, maybe it’s the government who block it or the problem of yahoo……

So what i can do for this? Maybe, i should add an information in the email’s signed, just like: ” if you want to contact me by email, please do not use Yahoo China Email Account.” or ” No Yahoo China Email Please ! “…..

Whatever, the life is not stop, the problem will go on.

Maybe I should talk to the Yahoo support center.

01
May
2008

To leave alone is always better than to see another who leave

But everyone hesitate to make a choice

Why?

Maybe that’s because the heart can be hurt

We are afraid to hurt but also to be hurt

Feelings in this time become a knife

Cutting the heart and the life

How can be survival?

01
Apr
2008

Finally, I’ve fixed the problem of language recognition.

Before, my site can not filter the posts very well in a language which is determined by the browser’s language setting to show on the homepage.
When I use the code :
<?php if ($_SERVER["HTTP_ACCEPT_LANGUAGE"] != “zh-CN”) {query_posts(’cat=57,16′);} ?>
in homepage, the posts can be filtered correctly in IE7: If your browser’s language setting is zh-CN, the homepage will show all the posts, else, the homepage will show all the posts in category ID 57/16.
But in IE6 or FireFox, it doesn’t work. Because the browser’s language setting is “zh-cn”, it’s not “zh-CN”.

So I added a condition :
<?php
            $lan=&$_SERVER["HTTP_ACCEPT_LANGUAGE"];
            if (($lan != “zh-CN”)&&($lan != “zh-cn”)) {query_posts(’cat=57,16′);}
?>

Maybe it is not very “beautiful”, but it works very well for me! So hope it can help you! Maybe one day, I can make it smarter!

Ps: The codition part is a general format in PHP code, but the execute part is only for Wordpress!

19
Mar
2008

Tibet WAS,IS,and ALWAYS WILL BE a part of China

Download:
http://www.megaupload.com/?d=P6O51L23
http://rapidshare.com/files/1001…

Read the rest of this entry »

27
Feb
2008

See this post in: Chinese Version or French Version

Private Sub Command1_Click()
 r = InputBox(”Enter a number please”) ‘ Enter a number to verify
 For i = 2 To r
   If Val(r) Mod i = 0 And i <> Val(r) Then ‘ this phase give a condition which is not a prime number
    MsgBox (”The numbered you entered is not a prime number”)
    Exit Sub
   End If
 Next i
 MsgBox (”The numbered you entered is not a prime number”)
End Sub

Read the rest of this entry »