Archive for the 'English' Category
December 21st, 2006 by 张磊
I finally got Zend 5.5.0, a version that can be well installed. I used to try to install the early version 5.2.0, yet unfortunately, I failed because I was using Ubuntu 6.10. When 5.5.0 downloaded, I still not sure whether it can be installed, rather than well used. But this time everything became normal and no error occurred. I’m downloading Zend Guard right now, with full of happiness.
Exactly there’s Eclipse when Zend can not be used. Still I prefer Zend Studio for its good support to PHP coding, although Zend is a little bit slower. Coding PHP with Zend is no less than a enjoyment.
I tried to concentrate on CET-4 but could stop my mind on my new project. I believe Zend Studio will help me a lot, and, maybe I’ll use Zend Framework also. Then, next time in our Tech-Sharon , I may talk about OO coding with PHP and introduce some excellent Frameworks to my friends.
December 20th, 2006 by 张磊
Zhiyong sent a long message to me yesterday afternoon, longer than any of his messages before. I knew I was completely parted from Buyren, besides, there’s no way to get back.
I bathed in the song named “Everybody” sung by BSB. Exactly, I did not suffer from sorrow, yet, only couldn’t I find anything that well fills my emptiness and loneliness. However, Zhiyong provided some great suggestions to me, as to make me determined to found a new site, in this crowd e-business field.
“As long as there’ll be music we’ll be coming back again”. Those experiences I got in Buyren will surely help me to get better. Away from BuyRen, I’ve got more time to work for myself, which maybe the only good news. I changed my introduction in the sidebar this morning, and a lot of name cards went of no use.
This is a site I made for a friend:http://www.chensupermarket.com , with some chem drugs listed for foreigners. I believe I have to found a site for my own, so at noon, I designed a PPT form my new composition. I’ll be back, and things are all better now.
December 14th, 2006 by 张磊
10000!?
When a day passed, we generally got one in 10000 of our life expired, said Livid. Tonight I was troubled by questions that how to get rid of this 10000 and that how to make me feel better than now.
This afternoon when I having a talk with a partner in BuyRen, we intended to make more products, but I was embarrassed to say, I was too busy to work together with them. I can hardly count how many things I have to do in the next two weeks. I deeply believe that I’ve got lost temporarily.
Too busy. I was accustomed to see a full task list for weekends, but I still have to refuse(or delay) those works for BuyRen. I don’t know why I decided give a title named “10000″ to this article, maybe just because, my days go too fast, and my life is too crowd, but not so meaningful. Then no words can describe my lonelyness, but 10000 does make sense. My 10000 days was surely shorter than others’.
This is completely the very first time that I feel some uncomfort about now being, in HDU. Friends, please feel free of worry about me, and please believe, I’ll be back.
December 11th, 2006 by 张磊
I’ve been away from Internet for more than 2 days. As this was not the very first time that I lost the connection, I was not so bored as in summer holiday.
But life became less interesting. I began to recall those times I passed through with Internet. Then I found it of little interest even with the net connected. The only difference is, net available, I’ll be able to open BuyRen or BlogKid or even BlogLines, then refresh and refresh. Refresh to see if someone had left a comment, or if Old Zhang had written a new article. I would open Bloglines more than 5 times a day, how bored i was.
I’m too busy these days, but CET-4 drew near. I think a have to write some article in English as to keep my sense.
December 2nd, 2006 by 张磊
I took part in the ACM competition this afternoon, only to get a unsatisfying result. We yellow members, on average, one boy aced once. I used to determine to get back, yet slowly but surely, we are further and further away from ACM.
However, turn around, I asked myself, is ACM really important? I know algorithm is important for me, who wanna get a job in Google. But until now, I haven’t used any senior algorithm in contests. Sounds funny, all I leaned on was some math knowledge I learned when I was younger than 12 in primary school.
October 26th, 2006 by 张磊
http://www.livid.cn/doc_view.php?doc_id=5479 In this article Livid talked about the main develop idea of project BaBel. A lot of classes were used in Babel. In ECshop, an open source web system, there’re over fifty classes, too.
Although I’ve only finished several projects, there is a lot of code to be repeated in different projects. Simply copy and paste are not so effective, for I have to modify some vars and expressions. I think in the 2 projects Macro and Babel, Livid must have saved a lot of time on dealing with the common parts, as OOP was fully used in both.
I’m not so intelligence as Livid, but trying to use OOP in my compsition is really important. Carefully designed structrue can be easily reused, thus, I believe my programming skill will be improved a lot.
October 26th, 2006 by 张磊
A recent project required confirm code to prevent spam. But I knew nothing about it when I got the design. After about a hour, I am able to write a short php script to finish this work now.
Firstly you have to install the GDlib of php–in linux, type “apt-get install php5gd” and it will be OK in few seconds. Then use “apache2 -k restart” to restart the web sevrice. With all above done, you can begin coding at once.
Here’s my code:
< ?
session_start();
session_register("str");
srand((double)microtime()*1000000);
$cur_code = rand(1000,9999);//get a random number
$im=imagecreate(56,18);
//get colors
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
$gray = ImageColorAllocate($im, 200,200,200);
imagefill($im,68,30,$gray);
imagestring($im, 5, 8, 3, $cur_code, $black);//write string to the picture
for($i=0;$i<50;$i++) //fill in some small pixes
{
imagesetpixel($im, rand()%70 , rand()%30 , $black);
}
$str=md5($cur_code); //store the hashed code in session var
Header("Content-type: image/PNG"); //send header type
ImagePNG($im); //output img
ImageDestroy($im);
?>
It is really easier when succeeded once. Thus, I can write some words beside the picture, like Livid :”Confirm code designed only for human beings”.
I made some progresses again. I’m happy for I’m learning more and more.
October 25th, 2006 by 张磊
I delivered a speech a moment ago, and they said it was absolutely an exciting one. Thus, I found I’ve made a little progress on overcome my shyness, though, to be honest, I took my breath when stepping onto the stage.
When I was a freshman, a advanced professor talked about his experiences in America. He said he joined a association where men came and trained their skills of giving speechs, at last, he became the chairman of the organization. He worked for IBM. So I was full of admire to him, yet I did not think I could be as great as him.
However, I do believe this speech will brought up some fans for me
. Despite I hardly lack fans, I’ll never mind if there’re more
. I shared the encouraging words to all my audience: “Be Your Personal Best”. Let’s try our best to approach our successes.
October 24th, 2006 by 张磊
I got the new book ‘A Walk Into The Future’ this afternoon. I was out of glad when my finger touching the book. Yes the book was published 3 days ago, but I have one now, with Kaifu’s signature on.
Thanks to MJ:). I like this book very much now,.
October 15th, 2006 by 张磊
Though I used to be a fanatical fan of Maxthon, a IE-kernel-based browser, I’m now prefer Firefox. Naturally I use Firefox to view web pages, debug my web applications, and write blogs. But once I want to insert a picture in my article, I have to be careful, for a IE-kernel-based browser isn’t able to resize the picture which is wider than the page. As a result, the page go ugly. Yet Firefox does this job better, and pictrues which are bigger or just wider can be adjusted well.
After all, this ploblem is easy to solve. All I have to do is to set the width attribute for every picture. Sounds funny, one day a friend told me that my blog pages looked quite strange, and maybe some layers are too wide. Of course, he was using IE. I was puzzled because I hadn’t showed any picture then. After a time I found a comment with a long link cause this problem, which is not a problem when in Firefox.
I hid the comment at once, then the paged returned normal. But comments are not written all by myself. If guests left long links again and again, should I delete or hide them all? Obviously I can’t.
That’s why I hate IE. Still, IE is the most popular browser now. Without IE I cannot manage my bank account online now
. But I appreciate if one day online bank can work in Firefox.