JavaScript appears to be disabled. We recommend you enable JavaScript while visiting this site.

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

Migration from CollabNet Subversion to VisualSVN Server

Since it doesn't seem CollabNet is really going to keep their non-Edge Subversion application, I've decided to migrate to VisualSVN Server. Roughly, here are the steps I went through to migrate, which also includes a 1.6.x upgrade.

VisualSVN migration

  1. Installed VisualSVN. Repositories saved to C:\Repositories
  2. Setup existing users.
  3. Import existing repositories.
  4. Should already be upgraded, but upgrade to 1.5, just in case.
  5. Upgrade TortoiseSVN.
  6. Upgrade working copies to 1.7.

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

mvc-mini-profiler for users in a particular role

When Jeff Atwood announced the release of the mvc-mini-profiler for ASP.NET MVC Web sites I was intrigued. Just the other day he wrote an article Performance is a Feature and I decided I could hold off no longer.

Tonight (for better or worse) I finally got this up and running on one of my sites, and fully intend on adding it to at least one more.

To install it I naturally used NuGet, but note that it's called MiniProfiler there.

Next, I had to add the necessary code to my _layout.cshtml, which also required that I move my jQuery include to the head element. Unfortunate, but ... that's how it is.

Finally, since I only wanted this to show for users in a particular role I added the below to the global.asax.cs:

protected void Application_BeginRequest()
{
	MiniProfiler.Start();
}

protected void Application_AuthorizeRequest(Object sender, EventArgs e)
{
	if (!User.IsInRole("Administrator"))
	{
		MvcMiniProfiler.MiniProfiler.Stop(discardResults: true);
	}
}

protected void Application_EndRequest()
{
	MiniProfiler.Stop();
}

And with that done, I can see that my pages load extremely quick (after the first time of course).

I definitely need to do some research to see if I can display the total time for all users, albeit in a slightly different position (footer of the page), as that's something I wouldn't mind showing to users.

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

How to easily clear the window.applicationCache on select browsers

While I was working on tweaking my video game listing, and creating my offline Web application manager, I kept running into issues with the cache manifest holding onto data much longer than I would have liked.

After some research I found that Chrome's interface can easily be found by going to chrome://appcache-internals/.

On Safari, on the iPod Touch and iPad, you can stop/close Safari (hold down the home button on the home screen, and close the application) and then start it back up to clear the data. This is slightly unfortunate, since it would be nice if this would stick around after the application is closed, but is sufficient. It also isn't very obvious, as I spent a good deal of time trying to figure this out before I tried this as a last-ditch effort.

Tags: , ,

Categories: software, tutorials/guides