Quantcast
Channel: Ian Mercer » Programming
Browsing all 10 articles
Browse latest View live

SQL Server – error: 18456, severity: 14, state: 38 – Incorrect Login

Despite the error message this problem can be caused by something other than an Authorization failure.  In fact, simply misspelling the Initial Catalog can cause this message to appear.  I wish...

View Article



Tip: getting the index in a foreeach statement

Using LINQ you can easily get at the index in a foreach statement. List x = new List() {"a", "b", "c"}; var augmented = x.Select((item, index) => new { item = s, index = index }); foreach (var d in...

View Article

Image may be NSFW.
Clik here to view.

The Blog of Ian Mercer: Home Automation++

This is the blog of Ian Mercer, Serial entrepreneur, Digital Mapping Pioneer, Inventor of Windows Movie Maker, Microsoft Producer, HighMat, SnapTune, … Patent holder, Guinness world record holder and...

View Article

If it walks like a class, talks like a class, it probably is a class

I occasionally come across attempts to extend Enums to include additional fields.  These attempts typically use Attributes and reflection to get at the extra values.  I have to say I don’t like them....

View Article

Issues combining ASP.NET MVC and ASP.NET Web Forms in the same application

Recently I started migrating an ASP.NET WebForms project to ASP.NET MVC.  Hoping to do this in phases I created a combined project that is both a webforms project and an MVC project. Routing allows...

View Article


ASP.NET MVC 2 and the Ambiguous Match Exception for Action methods with...

Although you can use this technique to allow POST requests to a page avoiding a redirect this is now considered a bad practice from a usability perspective because if the user hits refresh they get...

View Article

Image may be NSFW.
Clik here to view.

DateTime values should always be stored in UTC

Developers are sometimes confused about this issue but the fact of the matter is that you should always store Datetime values in your database in UTC and almost never in a local time zone. Canyon De...

View Article

Image may be NSFW.
Clik here to view.

Cloud computing – where’s the silver lining?

Cloud Computing - where's the silver lining? I’ve seen several people propounding the cost savings of cloud computing as being of great benefit to startups. Most recently someone wrote “… cloud offers...

View Article


Image may be NSFW.
Clik here to view.

Email opt-out: Here’s a great example of how to do it right

I came across this opt-out screen today.  It’s one of the best examples I’ve seen recently of an opt-out screen done right. First, they try to fix one of the key reasons people opt out of email: they...

View Article


Singleton tasks: A TaskFactory for the Task Parallel Library with...

When developing .NET applications there is often the need to execute some slow background process repeatedly. For example, fetching a feed from a remote site, updating a user’s last logged in time, …...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images