Go to home page mail me! RSS Feed
FoxMetrics Web Analytics

July 2009 Entries

A simple way to resize an image

Here is a very simple way to resize an image using a bitmap as a canvas and the graphics object as a the resizing tool. Don’t forget to reference System.Drawing. /// <summary> /// Resizes an image from a source file to a destination file /// the destination file will contain the exact image at the size specified /// </summary> /// <param name="sourceImagePath">the source image file that needs to be resized</param> /// <param name="destinationImagePath">the destination path that the source /// image file needs to be resized to</param> /// <param name="width">the new width</param> /// <param name="height">the new height</param> static void ResizeImage(string sourceImagePath, ...

posted @ Tuesday, July 28, 2009 10:13 AM | Feedback (20)

Write out page load times using an HttpModule and the stopwatch class

One of the most efficient and non-intrusive ways you can implement an intercepting procedure is via an HttpModule. An HttpModule simply receives every request going to or coming from IIS and it allows you to manipulate the content as you see fit and pass it along. I wanted to spit out the time it takes from receiving a request to writing the response on one or more web pages and there was no other better way of doing it except writing an HttpModule, it toke me all but 10mins. Here is the code, feel free to blow it up. ...

posted @ Friday, July 24, 2009 1:40 PM | Feedback (0)

MySpace’s Performance Tracker

It seems the MySpace gurus are giving back to the community, they are now providing there IE performance tracker for free to the public. MySpace’s Performance Tracker is a browser plug-in that help developers to improve their code performance by capturing and measuring possible bottlenecks on their web pages. Measure the CPU hit and memory footprint of your pages as they render on the client’s browser Review screen shots of the page while it renders Review the rendered HTML on each point of...

posted @ Wednesday, July 01, 2009 7:23 PM | Feedback (0)

Next entries »