| JP's profileWireless Earth, wireless...PhotosBlogLists | Help |
|
April 29 LAMP package installationAlthough I am focusing on Java and JavaEE, have not toughed PHP for 6 years. But I got some interesting in several excellent PHP based open source applications, such as SugarCRM, PhpMyAdmin and CATS. So I decide to install LAMP on my desktop with RedHat Fedora core 4 as the operating system.
Before, I tried to install Apache, MySQL and PHP5 one by one. Apache HTTP server and MySQL were OK, but I encountered some problem with PHP5. So this time I decide to find a LAMP integrated package. Google and pick one named "Bitrock", the website looks good, start downloading...
Since I already have Apache HTTP server and MySQL installed. So I have to turn them off to release the port for the new comers. I decide to remove them:
yum remove httpd
yum remove mysql
done. It is easy, isn't it :-)
Then run the installer of LAMP, lampstack-5.0-linux-installer.bin. Wow, it is GUI, amazing :-)
Accept, fill some password, next, next... finish.
Go to the installation folder, try to start apache:
./lampctl.sh start apache
Syntax erro on line 261 of httpd.conf: Cannot load /opt/lampstack-5.0/apache2/modules/libphp5.so into server: /opt/lampstack-5.0/apache2/modules/libphp5.so: connot restore segment prot after reloc: Permission denied
Omg, shit happens again...
Forturnately, this time some nice guy put his solution on Internet:
chcon libphp5.so -t shlib_t
Do not know why, but it works. Try to figure out later.
The same thing happened on python too, and was fixed in the same way. Pretty lucky.
Finally, start apache, mysql, everything looks good... I mean till now :-) April 24 Play background music for PPTA friend asked me this question, how to play background music in a presentation, accross multiple slides?
To be honest, I am not really good at MS Office. But it sounds interesting, so tried to find the answer.
There are several ways to achieve the goal. One is to use WAV file as background music. Unfortunately I do not have any good wav file at hand. So I choose the second one :-)
- Insert a MP3 file to the slide where I would like to start the music playback, and select "play automatically";
- Right click on the speaker icon, and select "custom animation";
- On the dialog on the right side, right click on the MP3 file name;
- Select "effect option" from the context menu
- Choose the third option of the radio box "Stop Playing", that is "after x slides"
- Set the x as the slide number to stop the background music
It works. April 05 Team and Chemical ReactionThinking... on the way to office.
When doing interview, everybody talks about good teamwork.
But what is a team? What is a GOOD team? What kind of people can we say he/she has good teamwork?
1+1 > 2 should be one of the basic qualifications of a good team, I guess.
Which means team is not only a few of people together, but also a group of people. It shows some specicial properties that cannot be seen on any individual member of the group. That is something new, suddenly shows up, or emerges little by little as time goes by.
Remember a word from NBA news, Chemical Reation. It said "But when that chemical reaction starts happening...". It is about Yao and T-Mac, the team of Rockets. Sounds a good word. It is the chemical reaction, generate a new COMPOUND, but not a MIXTURE.
So to create a good team, is not find good people with different characteristics, and put them together. One should make the chemical reaction we want happen.
Just like chemical elements, some people are more active, some are inactive. Put active elements together, a chemical reaction may happens automatically. But to involve some inactive elements, one should bring pressure in them, heat them, electrify them, light them up... Sometimes, one also need to put some activator into the group, to make the chemical reaction happen.
That's it, a perfect metaphor, chemical reaction makes a team :-) |
|
|