Salient Solutions

wrasslin ones and nones for fun and profit - Sky Sanders' Blog
posts - 96, comments - 70, trackbacks - 0

May 2010 Entries

SharpZipLib: recursively zip/unzip directory structure

// Project: Salient // http://salient.codeplex.com // // Copyright 2010, Sky Sanders <sky at skysanders.net> // Dual licensed under the MIT or GPL Version 2 licenses. // http://salient.codeplex.com/license // // Date: May 24 2010 #region using System; using System.Collections.Generic; using System.IO; using System.Linq; using ICSharpCode.SharpZipLib.Zip; #endregion namespace Salient.IO.Compression { public static class DirectoryCompression { public static void CompressDirectory(this Stream target, string sourcePath, ...

posted @ Sunday, May 23, 2010 7:10 PM | Feedback (1) |

Release: CassiniDev for Visual Studio 2008 - a drop in replacement for WebDev.WebServer

  I have just released the beta build of CassiniDev.VisualStudio, a fully compatibly drop in replacement for the Visual Studio Development Server (WebDev.WebServer.exe) Why? Myself and others have found over the years that while WebDev is a reliable  development and debugging companion is falls a bit short in some areas including serving the correct content-type for many file types and the lack of discoverable logging. These issues and more are now covered in CassiniDev, including the Visual Studio builds. But the most attractive reason to replace WebDev.WebHost with CassiniDev is the ability to further customize the behavior and functionality of your development environment with...

posted @ Saturday, May 22, 2010 5:58 AM | Feedback (1) |

XMLHttpRequest factory method

function createXHR() { var xmlhttp, XMLHttpFactories = [ function() { return new XMLHttpRequest(); }, function() { return new ActiveXObject("Msxml2.XMLHTTP"); }, function() { return new ActiveXObject("Msxml3.XMLHTTP"); }, function() { ...

posted @ Saturday, May 15, 2010 11:28 AM | Feedback (0) |

ASP.Net ViewState Parser (__ViewState)

// Project: Salient // http://salient.codeplex.com // // Copyright 2010, Sky Sanders <sky at skysanders.net> // Dual licensed under the MIT or GPL Version 2 licenses. // http://salient.codeplex.com/license // // Date: May 5 2010 #region using System; using System.Collections; using System.Collections.Specialized; using System.Web.UI; using System.Xml; #endregion namespace Salient.Web { ///<summary> /// A helper class that decodes, deserializes the '__ViewState' hidden field /// of an ASP.Net in to an object and then XML serializes the object to provide /// a navigable map of the view state and control state. ///</summary> public class ViewStateParser { ...

posted @ Wednesday, May 05, 2010 8:55 PM | Feedback (2) |

Powered by: