16 Apr 2008
Before writing anything about this, I would like to apologize Odin Chen because I did not fulfill my exaggeration that I will make my web app run 500 times faster than before. After the most recent benchmark, it probably runs only 10 times faster :P
Here is the list I have applied to my app, hope it helps someone
- Add an expires header to web files and images, it is only necessary when those files are not changed before they expire (I am still finding the best way to do it)
- Choose a small footprint server, I know Ubuntu 7.10 is great but you do not need the latest PHP 5.2.5, why dont you consider Debian?
- Compile your own package with your own configuration, or at least install only the essential packages from the repos, not all of them :P
- Use a caching engine such as APC, eAccelerator, Zend Optimizer, or memcached ...
- Use your skill in programming, yes by that I mean code efficiency : do not forget to join foreign table, that saves many time in database querying, and unset the variables or objects that used in actions file that are no longer needed in template file
In the future, if I read or think of some other tips I will blog about it, if you have any advice, do not hesitate do leave a comment here. :D
16 Apr 2008
PS: I made a quick look at browser statistics table and in this month, IE5-6 browser users are continuously decreasing.
29 Mar 2008
First, I am very grateful to those who bear the beta stage with me. I know there are such annoying bugs and inconvenience while using MahShelf.com but please do not worry, I am still eating my own dog food every day. Yes, I have made it my habit of reading funny comics and jokes there and it is real fun. Any inconvenience in usability you currently face is probably the one I hate the most while reading there. I try to improve the site considering myself as normal as any one else.
There will be many differences in the next release of MahShelf.com. The speed of uploading and reading has been improved a lot, the page is load faster thanks to the new server and new caching method. And there should be slight changes in UI such as users are allowed to post links in the comment, a better upload button is now located on the left, the page displays correctly in most browser ...
Although I think the site has achieved the stable stage in functionality, there are much more things to do to make it eye-candy to the user and yet fully accessible. :D
24 Mar 2008
After installing a LAMP server on an old P3 800MHz machine - yes it is so old that it was picked up from my apartment storage room, I typed "php -v" and it says in the first line :
PHP Warning: Module 'json' already loaded in Unknown on line 0
It seems to be the modules json is loaded twice, I looked into the php.ini files and there it is:
Simply commenting out that line solves the problem and yet leaves me the doubt where is it first loaded besides the time php.ini calls it. I guess there is something with the php5-json package I installed, it may already be included in php5 library and automatically loaded. That is not bad at all since the Debian team will maintain that package and give me the latest one. :D
24 Mar 2008
"PHP Warning: Module *** already loaded" seems to be a very common warning for freshly installed PHP. If you happen to see the example below here then this post may help you
[code]PHP Warning: Module 'json' already loaded in Unknown on line 0[/code]
In this case, the reason may be that the modules json is loaded twice, look into the php.ini files and find this line and comment it out with a comma
Don't forget to look into both /etc/php5/cli and /etc/php5/apache2 if the warning appears both in your command line and web server.
There is a chance that you have installed the php5-json package in your Linux system and it also enable the extension somewhere in a config file therefore the duplication occurs. I would recommend to use the package from your distro repositories to make sure that everything is up to date.
17 Mar 2008
Today morning, I wrote an entry about how difficult it is to have Firefox, IE7, IE6 and Safari running on a single machine. Now it is not really a matter anymore, thanks to someone has made a portable IE6, I can have an old friend back. There is also a Windows version of Safari 3, but it is still at beta stage and for some unknown reasons it crashed on my XP. (I will figure it out later.)
There are couples of tweaks need to be done before having IE6 operate properly. You can follow it here to enable cookies, append a "IE 6" title to the browser and fix the conditional comments feature in CSS. Life is just half beautiful again.
16 Mar 2008
Hi friends and folks,
For those who keep up with what I am currently doing, you may notice that our website is at pre-beta testing stage and I am very excited every time I think about it. But now there is one difficulty that I admit that I do not know how to solve, hope you guys can help.
Well, meanwhile, I am downloading Safari on Windows and IE6 standalone to try out; fixing some PHP bugs with Eclipse and eh oh it's Sunday, may be going to the pool will refresh my mind a little bit.
09 Oct 2006
Chiều nay đi qua Sở Thương Mại chợt thấyngười bán vé số cụt hai chân đi bằng cái ghế gỗ, mời từng người mua vé số bên ngoài quán cafe sang trọng với bãi giữ xe toàn là Delan, Spacy. Hôm nay cũng là ngày bác Bill đến Việt Nam chơi, không biết nguồn quỹ từ thiện hàng tỷ đô la của ông có giúp gì được cho những người ấy chăng. Mà có giúp chắc cũng vào tay các quan lớn hết thôi, còn đâu đến những người "cù bất cù bơ".
Nếu một ngày tôi giàu có tôi sẽ tìm hết người già về lại một vùng quê, ở đó sẽ có một viện trẻ mồ côi để các ông bà già chăm sóc chúng. Ước mơ vẫn là mơ ước. Muốn vậy mình phải chăm chỉ làm việc kiếm tiền thôi.
- Rùa lật ngửa
27 Mar 2006
"Das Schönste, was wir erleben können, ist das Geheimnisvolle. Es ist das Grundgefühl, das an der Wiege von wahrer Kunst und Wissenschaft steht. Wer es nicht kennt und sich nicht mehr wundern, nicht mehr staunen kann, der ist sozusagen tot und sein Auge erloschen."
“Cái đẹp đẽ nhất mà chúng ta có thể trải nghiệm được là cái bí ẩn. Đó là cảm thức nền tảng trong cái nôi của nghệ thuật và khoa học chân chính. Kẻ nào không biết đến nó, không còn khả năng ngạc nhiên hay kinh ngạc, kẻ đó coi như đã chết, đã tắt rụi lửa sống trong mắt mình”
"The fairest thing we can experience is the mysterious. It is the fundamental emotion which stands at the cradle of true art and true science. He who knows it not and can no longer wonder, no longer feel amazement, is as good as dead, his eyelight has been extinct."
15 Jan 2006
These are my 3 skull-pals . Haha , give my thankfulness to them . I have had a good time with them in such a frozen place .
PS : Who i am, the left-most guy.