Archive for March 2005

 
 

A plugin that lets you read blogs inside the Visual Studio IDE

This open source plugin ships as part of SharpTools 2.0 and is a full-featured RSS / Blog aggregator which integrates into the familiar dockable panes of the Visual Studio.NET IDE.

Features include:

  • Support for folders or individual feeds
  • Drag-and-drop support for feeds and folders
  • Preview a new feed as you add it
  • Easy control of all feed properties
  • Automatic and on-demand refresh of feeds
  • Automatic feed search based on a site URL
  • Keyword searching for published feedsusing Synic8
  • Keyword search within all subscribed feeds
  • Import of feed subscriptions from an OPML file

[Via Powertoys WebLog]

Tutorials on using the application blocks in the Enterprise Library

There are interesting tutorials by David Hayden

Comments on the Enterprise Library Logging Block/Log4Net feature and performance comparison

A lot of people have heard about the discussion between log4net and the Enterprise Library Logging Block.

The Enterprise Library Product Manager, Tom Hollander, has posted a write-up .

Go take a look.

Invoking the Microsoft Log Parser COM Interface from managed code ( C# )

This will create an XML file that has your url’s that are refered to, hit count, and the referrer.

try
{
    Type comLogQueryType = 
        Type.GetTypeFromProgID("MSUtil.LogQuery", true);
    object comLogQueryObject = 
        Activator.CreateInstance(comLogQueryType);
 
    // Get the IIS Input and XML output filters
    Type ws3LogType = 
        Type.GetTypeFromProgID("MSUtil.LogQuery.IISW3CInputFormat", true);
    object ws3LogObject = 
        Activator.CreateInstance(ws3LogType);
    Type xmlLogType = 
        Type.GetTypeFromProgID("MSUtil.LogQuery.XMLOutputFormat", true);
    object xmlLogObject = 
        Activator.CreateInstance(xmlLogType);
 
    // Setup input and output files
    string inPath = "someIISlog.log";
    string outpath = "temp.xml";
 
    // Create a SQL query to get the referers, count and uri-to. Order by total hits
    string query = 
        "SELECT cs(Referer) as Referer,cs-uri-stem as To,COUNT(*) as Total from " +
        inPath + " TO " + outpath +
        " WHERE (sc-status=200) AND (Referer LIKE 'http:%') GROUP BY Referer,To ORDER BY Total DESC";
 
    // Invoke the ExcuteBatch method
    object[] inputArgs = {query, ws3LogObject, xmlLogObject};
    comLogQueryType.InvokeMember("ExecuteBatch", BindingFlags.InvokeMethod, 
        null, comLogQueryObject, inputArgs);
}
catch (Exception e)
{
    string errorString = "An exception has occurred: " + e.Message;
    Console.WriteLine(errorString);
}
 
[Via Steve Makofsky ]
 

Freeware Disk Defragmenter

It works with any OS-supported file system* on any OS-supported writable media. It will only work on Windows XP and Windows Server 2003. This program will not work on any other line of Windows (9x, Win 3.1, etc).

Features:

  • Can be run by any user (service needs to be installed by an administrator).
  • Complete whole-disk defragging, including private operating system files.
  • Multiple instances can be run simultaneously (if you have multiple disks).
  • Individual file defragging, with wildcards and recursion. This mode is an opportunistic defragger, marginally better than Diskeeper in that it will at least defrag the file as best it can rather than not at all.
  • Defrags NTFS, FAT** and FAT32** filesystems on any media (HD, ZipTM/JazTM, Floppy, etc).
  • A "shotgun" mode, where it severely fragments files. Useful for testing or really annoying someone.
  • Individual file fragmentation analysis. Find out where on disk a file resides, and how many fragments it’s in.
  • 100% safe and interruptable. This program doesn’t actually move the files - the OS does it. Even if you suffer a power failure while it’s working, you run no higher risk of file system corruption than you would if you had happened to be saving a file from any application.
  • Boot-time defragmentation.

Download Disk Defragmenter


Page 2 of 3123