27
2008
Playing Videos on the Web
 
27 July 2008 | 03:53pm by James

image Well, needed to find out how this video streaming actually works…  so had to do some research.  Well, as usual, I consulted one of my favorite weskits, How Stuff Works.  Yeap.. it is one of my favorite as it explains to you things in lay man terms… and we all know how difficult it is… to explain geeky stuff in non-geeky language.

Anyway, for those of you who are wondering, here is the link:

http://electronics.howstuffworks.com/streaming-video-and-audio5.htm

(more…)

   16
2008
Flash image gallery always display old image
 
16 July 2008 | 05:56pm by EdwardRF

James faced a problem when he was using a flash gallery component in one of our Joomla Project. The problem is, after we change the image to be displayed in the gallery, via changing a .xml file. However the change is never reflected on the browser.

After some close examination on the browser cache, it is actually due to the cache of the control .xml file. To solve the problem I decide to use the .htaccess file to control the header of the returned files from apache server. After some googling, I found the following .htaccess file should be working:


Header set Cache-Control “max-age=0, no-cache, no-store, mush-revalidate”
Header set Pragma “no-cache”
Header set Expires “0″

However, it didn’t work no matter how I change the parameters. Upon some examination, the file is still being cached! what happened is the apache configuration didn’t enable the use of .htaccess file. To enable that, need to change the AllowOverride derivative to “All“.

But still didn’t work!!!!!! i am so pissed, but just realized I didn’t restart apache after changing the configuration file. After the restart of apache, every thing worked like a charm.

 
Enter your e-mail address to receive notifications when there are new posts



 
Design & Copyrights 2008 All Rights Reserved By 199Web Design Studio