I use PHP CodeIgniter support for GZIP compression but I had to do some changes in a CI library for to compress javascript libraries but thanks to Joan Piedra and his post in jQuery Mail list I see this solution better:
in the .htaccess:<ifmodule mod_headers.c>
<ifmodule mod_deflate.c># Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
NOTE: It doesn't work with Apache version < 2 web servers. You need deflate and headers module.
Labels: programming, web
The last week, my free antivirus thanks to AOL for Active Virus Shield, warning me because, there is a fault when the program download the daily updates. Looking in the net, I found that AOL just firm a new contract with McAfee and the old (Karpersky) Active Virus Shield is not supported now :-(.
Luckily Active Virus Shield try to download the updates, first from AOL servers, and second in the Karpersky servers (AVP and AVS share the same signatures), so this simple tweak makes work newly the updates.
Open with notepad the file c:\windows\system32\drivers\etc\hosts and add this line:
127.0.0.1 download.newaol.com
Try again the updates :-D.
Another solution posted by anonymous:
1. shutdown Kaspersky ActiveVirusShield. Closing the main window is not enough, please click on the systray icon and exit.
2. locate the XML file listing the update servers. It's usually located in directory C:\Documents and Settings\All Users\Application Data\AOL\AVP6\Data and the name of the file is aol-updcfg.xml
3. edit that file and remove the two following lines
<site2 url="ftp://download.newaol.com/avs/update/mirror/" diff_url="diffs" weight="10000001" region="*" />
<site2 url="http://download.newaol.com/avs/update/mirror/" diff_url="diffs" weight="10000000" region="*" />
4. save the file
5. restart ActiveVirusShield and launch an update from the systray icon's contextual menu.
Labels: web