Posted by craig
Monday, May 04, 2009 11:46:52 AM
For my blog I really wanted to have 2 right hand columns. 1st the one with the calendar, categories, and other usual stuff supplied with the blog, and then a second column which will be used for arbitrary content, in my case I use the generic mojoportal html content. Getting the spacing right can be a bit tricky, but following the steps below should do the trick: 1). Make a Copy your skin to a new skin (just to be sure we don’t mess things up) note that the skins are under Data/skins (for the global reference skins) and Data/Sites/#/ for the skins currently in use for a given...
read more
Posted by craig
Monday, May 04, 2009 11:46:40 AM
Profiling a method in C# is a bit tricky because we need to take into account the precompilation overhead the first time the method is executed. For performance sensitive applications it can be useful to have a simple helper class /method to do the repeated work of executing the method once and then averaging the times. The simple helper method GetMilliSecsTime should be enough to do the trick. It takes the number of repetitions and an Action delegate which encapsulates the method being profiled. /// <summary> /// helper class for profiling /// ...
read more
Posted by craig
Monday, May 04, 2009 11:46:05 AM
When hosting applications in subfolders in ASP.NET a problem which can arise is conflicts between the web.config in the root and the web.config in the subfolder. Conflict can mean any number of things, in my case, this sub-application was trying to load DLLs which had nothing to do with the sub-application, but were referenced in the root application. The Dlls were not in the bin folder of the sub-application which led to errors. Solution: inheritInChildApplications="false" The solution to the problem is a little known attribute...
read more