How to Use Notepad to Create a Log File. Three Hidden Extensibility Gems in ASP.NET 4. ASP.NET 4 introduces a few new extensibility APIs that live the hermit lifestyle away from the public eye.
They’re not exactly hidden - they are well documented on MSDN - but they aren’t well publicized. It’s about time we shine a spotlight on them. PreApplicationStartMethodAttribute This new attribute allows you to have code run way early in the ASP.NET pipeline as an application starts up. I mean way early, even before Application_Start. This happens to also be before code in your App_code folder (assuming you have any code in there) has been compiled. To use this attribute, create a class library and add this attribute as an assembly level attribute. Here’s an example: [assembly: PreApplicationStartMethod( typeof(SomeClassLib.Initializer), "Initialize")] Note that I specified a type and a method. Public static class Initializer{ public static void Initialize() { // Whatever can we do here?
Which leads us to… BuildProvider.RegisterBuildProvider I think I speak for us all when I say “Yay! 039;s SharePoint Blog: A new approach to solve SharePoint’s painfully slow spin-up / start-up time for first request. Posted at: 9:55 AM on 03 April 2009 by Muhimbi This article was originally posted on our CTO’s personal blog.
Due to the tremendous amount of positive feedback we have decided to update the post and move it to the Muhimbi blog, which has more of a SharePoint focused audience. Please check out our PDF Converter for SharePoint, Audit Suite, URL Shortener and other SharePoint products if your find this article helpful. Ever since SharePoint 2007 was introduced I have been really disappointed with the 2 minute spin-up time of the sites and the 30 second wait when launching STSADM. How could Microsoft have released this? The SharePoint community quickly came up with workarounds such as the SPWakeUp tool on Codeplex, but these tools don’t actually fix the underlying problem and are of no help at all when you are developing a project that requires a SharePoint restart between compilations.
Symptoms for STSADM: Symptoms for SharePoint sites: So, what is going on here? Relevant links: Labels: Articles. Fix Virtual PC 2007 Shared Networking (NAT) Internet Not Working in Windows Server 2003, 2008 and Vista Guest OS » Tip and Trick. An 18-Minute Plan for Managing Your Day - Peter Bregman - HarvardBusiness.org. By Peter Bregman | 2:27 PM July 20, 2009 Yesterday started with the best of intentions.
I walked into my office in the morning with a vague sense of what I wanted to accomplish. Then I sat down, turned on my computer, and checked my email. Two hours later, after fighting several fires, solving other people’s problems, and dealing with whatever happened to be thrown at me through my computer and phone, I could hardly remember what I had set out to accomplish when I first turned on my computer.
I’d been ambushed. When I teach time management, I always start with the same question: How many of you have too much time and not enough to do in it? That means we start every day knowing we’re not going to get it all done. But even with those lists, the challenge, as always, is execution. We need a trick. Jack LaLanne, the fitness guru, knows all about tricks; he’s famous for handcuffing himself and then swimming a mile or more while towing large boats filled with people. Ritual.