mikeinmadison

Stories kicked by mikeinmadison

Saving time with Ctrl-W(tech.mikecomstock.com)

submitted by mikeinmadisonmikeinmadison(170) 1 year, 4 months ago

Describes how to map Ctrl-W to "Close File" in Visual Studio. read more...

add a comment |category: |Views: 16

tags: another

Getting started with NLog(mikecomstock.com)

submitted by mikeinmadisonmikeinmadison(170) 3 years, 4 months ago

Logging is one of those things that every web site an application needs. It’s also one of those things that is easy to code in a short time. Because of this, developers often just write their own rather than use one of the existing logging frameworks. However, code makes bugs, and bugs increase development time. The usual reinvent-the-wheel syndrome with its usual side-effects kicks in. Up until now I’ve always written my own logging classes (guilty). Usually they just send emails for exceptions and sometimes they write a row to a table. That’s about it – nothing fancy... read more...

add a comment |category: |Views: 203

tags: another

RPXNow MVC Project Template(mikecomstock.com)

submitted by mikeinmadisonmikeinmadison(170) 3 years, 4 months ago

RPXNow is a login solution that goes above and beyond just OpenID. It supports logging in via Google, Facebook, MySpace, AOL, Yahoo… the list goes on. And best of all, it has an extremely clean user interface – unlike most OpenID login forms. read more...

add a comment |category: |Views: 66

tags: another

ASP.NET MVC OpenID Project Template(mikecomstock.com)

submitted by mikeinmadisonmikeinmadison(170) 3 years, 4 months ago

A new Visual Studio template for using OpenID with ASP.NET MVC read more...

add a comment |category: |Views: 39

tags: another

if (IsPostBack) return;(mikeinmadison.wordpress.com)

submitted by mikeinmadisonmikeinmadison(170) 3 years, 11 months ago

I began using a single-line postback check a while ago, and I think it’s better than using the usual block multi-line style. There are probably quite a few varying opinions about this, but my reasons for using the single-line (top) version include: 1. It’s easier to type and more readable 2. There is no reverse logic 3. It saves a line or two of code 4. It’s easier to comment out for debugging 5. The “Bunch of code” isn’t needlessly tabbed in read more...

add a comment |category: |Views: 25

tags: another

DateTime.Round(mikeinmadison.wordpress.com)

submitted by mikeinmadisonmikeinmadison(170) 4 years, 2 months ago

I recently needed to group by minutes (or seconds, or hours, or days) in a LINQ to SQL expression, and I found that there isn’t a round function built into the C# DateTime object. The following will round to the nearest second, minute, hour, or day. I stopped there because different months have different numbers of days (and I don’t need to group by months…) but it is easy enough to add months and years to the code. read more...

add a comment |category: |Views: 586

tags: another

Creating a shared web site library in Visual Studio(mikeinmadison.wordpress.com)

submitted by mikeinmadisonmikeinmadison(170) 4 years, 4 months ago

There are many ways to create and consume code libraries for use in multiple web site projects within Visual Studio. One of the most popular options is to create a class library project and link to it from multiple web site solutions. A similar alternative is to place the binary dll files that are created when compiling a class library project into the bin directory of each web site solution you want to use it in, and reference it directly. While both of these methods work well (the first generally being the most practical) there are a few things that they cannot easily accomplish. read more...

add a comment |category: |Views: 1

tags: another

Getting started with VisualSVN(mikeinmadison.wordpress.com)

submitted by mikeinmadisonmikeinmadison(170) 4 years, 4 months ago

VisualSVN is simply a front-end for the command line Subversion functions, just like TortoiseSVN. The difference between the two is that TortoiseSVN is a “add-in” for Windows and VisualSVN is an add-in for Visual Studio. read more...

4 comments |category: |Views: 88

tags: another