Sunday, March 6, 2011

Installing Zend server CE on Fedora 14 and fix YUM update

Install Zend Server CE on Fedora 14 (SElinux diabled) is pretty easy. Here are key steps,

1) With root account privilege, go to directory /etc/yum.repos.d and create a file named as anyName.repo. The content of file is as below,


[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/rpm/$basearch
enabled=1
gpgcheck=0

[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/rpm/noarch
enabled=1
gpgcheck=0


2) With root privilege, running below command,
yum install zend-server-php-5.3

3) After running step 2, Zend server is installed. However, you may run into error when you run yum update. The error message is as below,

Fatal Python error: pycurl: libcurl link-time version is older than compile-time version.

To solve this, we need to do two more things to correct the system.

  1. modify file /etc/ld.so.conf.d/zend_server.conf to have below content,

    cat /etc/ld.so.conf.d/zend_server.conf
    /usr/lib64
    /usr/local/zend/lib


  2. run linux command ldconfig to build correct symbolic links.

Tuesday, March 1, 2011

A war to occupy Internet user's Web browser

Do you see the strange characters "%20" in below HTML fragment? It represents white space. I have to put white space there. why? Because google uses iframe to redirect my browser to its igoogle application portal if I happen to have an alive log on session with google. So, google definitely does not want to live as part of other web application. It wants to be always on the top. This is an evidence to determine this. I am not saying I do not like google. I like google. I just speak out one thing I observed.


So above HTML snippet is a popular way for Web developer to include eternal web site into a Div area. This redirecting can be prevent if I add iFrame redirect event listener and block the redirect. However, this way has to popup a dialogue and ask user to choose "cancel" button to stay in current page. However, it is ugly to ask user to do this!

I have not found a way to silently block this kind actions from google web site. I do not know how many portal web site do this. But, I am really aware that a war about occupying Web browser screen is quietly going on! Probably, Web community need to define new rule to prevent this from happening? Then, developers can have more freedom to build their creative work.