I've applied gzip compression on IIS 6.0!
It's very simple.
1 step: Enable Compression in IIS
- From the IIS snap-in, right-click on the Web Sites node and click on Properties
- Select the Service tab - Enable Compress application files
- Enable Compress static files
- Save and close the Web Site Properties dialog
2 step:
- Stop "World Wide Web Publishing Service" in System Settings -> Services.
- Open the metabase located at C:\Windows\system32\inetsrv\metabase.xml
- Search for <IIsCompressionScheme
- There should be two of them, one for deflate and one for gzip. Basically they are two means of compression that IIS supports.
- First thing to do is add aspx, asmx, php and any other extension that you need to the list extensions in HcScriptFileExtensions. Make sure to follow the existing format carefully, an extra space will keep this from working correctly. Do this for both deflate and gzip.
- Set option HcDynamicCompressionLevel to 9. Do this for both deflate and gzip.
- Start "World Wide Web Publishing Service".
Thanks Scott Forsyth for the post: http://weblogs.asp.net/owscott/archive/2004/01/12/57916.aspx
p.s.: yes, i'm sorry to say that our customer still use IIS 6.0 in 2010 and he didn't apply compression earlier.
Блог о жизни в програмировании и о программировании в жизни от веб-девелопера. В основном платформа ASP.NET и все что с ней связано.
вторник, 14 декабря 2010 г.
понедельник, 8 ноября 2010 г.
MIME Types
MIME Types
MIME (Multipurpose Internet Mail Extensions) is an Internet standard for describes message content types.There most popular Mime Types By File Extension:
acx | application/internet-property-stream |
asf | video/x-ms-asf |
asx | video/x-ms-asf |
au | audio/basic |
avi | video/x-msvideo |
bin | application/octet-stream |
bmp | image/bmp |
c | text/plain |
css | text/css |
dll | application/x-msdownload |
doc | application/msword |
dot | application/msword |
exe | application/octet-stream |
gif | image/gif |
gtar | application/x-gtar |
gz | application/x-gzip |
h | text/plain |
hdf | application/x-hdf |
hlp | application/winhlp |
hta | application/hta |
htc | text/x-component |
htm | text/html |
html | text/html |
ico | image/x-icon |
ief | image/ief |
iii | application/x-iphone |
ins | application/x-internet-signup |
isp | application/x-internet-signup |
jfif | image/pipeg |
jpe | image/jpeg |
jpeg | image/jpeg |
jpg | image/jpeg |
js | application/x-javascript |
lsx | video/x-la-asf |
m3u | audio/x-mpegurl |
mov | video/quicktime |
movie | video/x-sgi-movie |
mp2 | video/mpeg |
mp3 | audio/mpeg |
mpa | video/mpeg |
mpe | video/mpeg |
mpeg | video/mpeg |
mpg | video/mpeg |
application/pdf | |
pps | application/vnd.ms-powerpoint |
ppt | application/vnd.ms-powerpoint |
rtf | application/rtf |
tgz | application/x-compressed |
txt | text/plain |
wav | audio/x-wav |
xls | application/vnd.ms-excel |
zip | application/zip |
Source: http://www.w3schools.com/media/media_mimeref.asp
четверг, 21 октября 2010 г.
So you want a day off?
So you want a day off?
So you want a day off. Let's take a look at what you are asking for.
There are 365 days per year available for work.
There are 52 weeks per year in which you already have 2 days off per week, leaving 261 days available for work.
Since you spend 16 hours each day away fron work, you have used up 170 days, leaving only 91 days available.
You spend 30 minutes each day on coffee break which counts for 23 days each year, leaving only 68 days available.
With a 1 hour lunch each day, you used up another 46 days, leaving only 22 days available for work.
You normally spend 2 days per year on sick leave.
This leaves you only 20 days per year available for work.
We are off 5 holidays per year, so your available working time is down to 15 days.
We generously give 14 days vacation per year which leaves only 1 day available for work.
There's no way I'll let you take that day off!
Source: http://www.4hb.com/0730soyouwantadayoff.html
So you want a day off. Let's take a look at what you are asking for.
There are 365 days per year available for work.
There are 52 weeks per year in which you already have 2 days off per week, leaving 261 days available for work.
Since you spend 16 hours each day away fron work, you have used up 170 days, leaving only 91 days available.
You spend 30 minutes each day on coffee break which counts for 23 days each year, leaving only 68 days available.
With a 1 hour lunch each day, you used up another 46 days, leaving only 22 days available for work.
You normally spend 2 days per year on sick leave.
This leaves you only 20 days per year available for work.
We are off 5 holidays per year, so your available working time is down to 15 days.
We generously give 14 days vacation per year which leaves only 1 day available for work.
There's no way I'll let you take that day off!
Source: http://www.4hb.com/0730soyouwantadayoff.html
среда, 20 октября 2010 г.
Classic ASP - ADO constants include file
Somtimes I need to come back to the very old code. So, just to have it there:
sources:
http://www.asp101.com/articles/john/adovbs/
http://www.asp101.com/articles/john/adovbs/adovbs.inc.txt
http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=122
'---- ParameterDirectionEnum Values ----
adParamUnknown = &H0000
adParamInput = &H0001
adParamOutput = &H0002
adParamInputOutput = &H0003
adParamReturnValue = &H0004
'---- CommandTypeEnum Values ----
adCmdUnknown = 0
adCmdText = &H0001
adCmdTable = &H0002
adCmdStoredProc = &H0004
'---- CursorTypeEnum Values ----
adOpenForwardOnly = 0
adOpenKeyset = 1
adOpenDynamic = 2
adOpenStatic = 3
'---- LockTypeEnum Values ----
adLockReadOnly = 1
adLockPessimistic = 2
adLockOptimistic = 3
adLockBatchOptimistic = 4
'---- DataTypeEnum Values ----
adEmpty = 0
adTinyInt = 16
adSmallInt = 2
adInteger = 3
adBigInt = 20
adUnsignedTinyInt = 17
adUnsignedSmallInt = 18
adUnsignedInt = 19
adUnsignedBigInt = 21
adSingle = 4
adDouble = 5
adCurrency = 6
adDecimal = 14
adNumeric = 131
adBoolean = 11
adError = 10
adUserDefined = 132
adVariant = 12
adIDispatch = 9
adIUnknown = 13
adGUID = 72
adDate = 7
adDBDate = 133
adDBTime = 134
adDBTimeStamp = 135
adBSTR = 8
adChar = 129
adVarChar = 200
adLongVarChar = 201
adWChar = 130
adVarWChar = 202
adLongVarWChar = 203
adBinary = 128
adVarBinary = 204
adLongVarBinary = 205
'---------------------end of file
* This source code was highlighted with Source Code Highlighter.
sources:
http://www.asp101.com/articles/john/adovbs/
http://www.asp101.com/articles/john/adovbs/adovbs.inc.txt
http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=122
Ярлыки:
ADO constatnts,
Classic ASP,
Javascript,
VBScript
четверг, 1 июля 2010 г.
(Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Server Error in '...' Application.
Could not load file or assembly '...' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
В один прекрасный момент одно из приложений перестало работать выдавая вот такую ошибку, якобы ругаясь на стороннюю библиотеку в Reference-ах, дак вот как оказалось библиотека тут не причем, все в дело в конфликте между новой версией скомпилированного кода и его временной копией в папке C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\Все что нужно - это вручную почистить временную папку "Temporary ASP.NET Files" и все.
линки:
http://social.msdn.microsoft.com/forums/en/csharpide/thread/352c58ec-65d8-4d77-ac7b-d2338c621ef3/
http://www.solutioncottage.com/ShowSolution.aspx?solID=59
среда, 30 июня 2010 г.
0wnZ youuuuuuuuuuuu !
Сегодня хакнули часть сайтов нашего заказчика (к которым, мы не имеем отношения, заказчик как-то сам их клепает)!
корень сатов забили файлами типа:
index.htm
index.html
index.asp
index.php
default.asp
...
и в каждом из них был следующий текст:
0wnZ youuuuuuuuuuuu !
что же это такое...
(картинка для привлечения внимания взята отсюда: http://img217.imageshack.us/i/tik.png/)
корень сатов забили файлами типа:
index.htm
index.html
index.asp
index.php
default.asp
...
и в каждом из них был следующий текст:
0wnZ youuuuuuuuuuuu !
что же это такое...
(картинка для привлечения внимания взята отсюда: http://img217.imageshack.us/i/tik.png/)
пятница, 25 июня 2010 г.
ASP.NET MVC Framework
Сегодня получил по почте книгу Гайдара Магданурова и Владимира Юнева "ASP.NET MVC Framework", заказанную на сайте books.ru.
Давно у меня текли слюнки на MVC Framework, но все то-ли времени не хватало, то-ли просто руки не доходили, а теперь у меня есть живая бумажная книжка :) и я буду читать ее в свободное время, перед сном, в туалете, на даче, в дороге - жаль за рулем не смогу читать :)
Главное, что необходимо извлеч из прочтения - обоснование выбора MVC Framework на замену стандартному WebForms.
Давно у меня текли слюнки на MVC Framework, но все то-ли времени не хватало, то-ли просто руки не доходили, а теперь у меня есть живая бумажная книжка :) и я буду читать ее в свободное время, перед сном, в туалете, на даче, в дороге - жаль за рулем не смогу читать :)
Главное, что необходимо извлеч из прочтения - обоснование выбора MVC Framework на замену стандартному WebForms.
Ярлыки:
asp.net,
asp.net mvc,
asp.net mvc framework,
asp.net web forms
Подписаться на:
Сообщения (Atom)