Browse by Tags

All Tags » powershell (RSS)

Reduce website download time by heavily compressing PNG and JPEG

PNG and JPEG are two most popular formats for web graphics. JPEG is used for photographs, screenshots and backgrounds where PNG is used for all other graphics need including cliparts, buttons, headers, footers, borders and so on. As a result, these two...

Automate website deployment using Powershell

I published an article which automates website deployment. http://www.codeproject.com/dotnet/DeploySite.asp The Powershell script does the following for you: · Maintains different configuration information for different deployments. For example...
Posted by omar | 4 comment(s)
Filed under:

Generate Javascript string from HTML using Power Shell script

Say you want to generate a javascript representation of HTML fragment so that you can use document.write(‘’) or use element.innerHTML to inject it in the document dynamically. You need to do the following steps in order to convert HTML to BLOCKED SCRIPT...
Posted by omar | with no comments
Filed under:

Using Power Shell to automate incremental updates to websites

Here’s something we used to do manually every time we had to deploy a patch to production server: Get all the files changed since last deployment date & time from latest code base that has been tested well enough Copy them to a folder which...
Posted by omar | with no comments
Filed under: