Time runs really very fast… There has several months I haven’t been here. Because I don’t have Internet connection in my apartment now and every day, I have so much work to do, I really don’t have enough time to write…
Fortunately, the Christmas comes ! I have two weeks to respire. I’ll come back and write some resume of interesting course of university. Cause this year, I moved into Management and Ingenierie of Information System ! I think it will do help someone !
Salut ! Tout le monde, je vous représente d’ici un jeu de programmation intéressant que nous avons réalisé en utilisant VB pendant ce semestre à l’université. Pour qu’on peut partager les expériences et se progresser.
Sujet : Le jeu de l’ultimatum se présente de la façon suivante :
2 individus (A et B) se partagent une somme S = 100 ;
A (le proposant) offre à B (le répondant) une part X de cette somme, c’est à dire,
A reçoit une somme (S-X) ; B reçoit une somme X ;
Si répondant B accepte la proposition, les 2 gagent la somme indiquée au-dessus;
Si répondant B n’accepte pas, les 2 n’obtiennent rien du tout;
(Au sens de la théorie des jeux, s’ils sont rationnels, la proposition (X=1 ; S-X=99) est un équilibre parfait). On suppose que l’on a 49 individus qui répètent ce jeu un certain nombre de fois :
A chaque fois, chaque individu joue le rôle de proposant avec un répondant choisi au hasard.
La stratégie de chaque individu est la suivante :
Choisir 2 nombres entiers au hasard mais entre 0 et 100, prop et accept ; Quand il est proposant il offre toujours prop à l’autre; Quand il est répondant il accepte si et seulement si la répartition offerte est supérieure ou égale à accept.
- * 0 Comments *
- Tags: Jeu, Programmation, Ultimatum, VB
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.
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?
- * 0 Comments *
- Tags: Feeling, Heart, Hurt, Leave
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!



