Recently, I worked on converting a .Net API from a 3rd party authentication mechanism to internal and we chose to use the Identity framework. By default, Identity uses a string as the primary key for the AspNetUsers table and that was an issue because our current users table used a long (and there were a lot of foreign key references to it).
What is it?
The Humanitarian Toolbox is an open source non-profit organization, that creates software for disaster response teams. To kick things off, Tony gave us an overview of the projects and we pulled the code from GitHub.
￼Since .Net 4.5, the async/await pattern has been a great tool to simplify asynchronous calls. However, in WPF I frequently need to make async calls from a non-async function or event. Often, this happens because I’m overriding a virtual function in an inherited class of a framework that I’m using and that function is synchronous. To help with this, I created an async helper class:
It’s not very often which you deal with spacial data in SQL. In fact, I find it to be a very rare occurrence, but when it does happen, it’s nice to know that there are two libraries for it: geometry (which is for Euclidean Geometry) and geography (which uses lat/long, and takes into account the curvature of the earth).
The idea behind these two methods is to allow op-out functionality of new features. If for example, you want to change the format of the logs your library creates. You can have a switch called “Switch.MyLibrary.UseOldLogStyle” that allows the user to keep using the old format. This is great if the end user has some automation parsing the existing logs, and don’t want their parser to break.
Working in Visual Studio, I came across this great list of tips for the Watch Window. There’s a lot of other great .NET tips over at Abhijit’s World of .NET!
It turns out that there is a hidden system list on SharePoint Foundation (actually all versions of SharePoint, but much more useful in SharePoint Foundation). To view this list, you simply visit http://<YourSharePointSite>/_catalogs/users/simple.aspx or details.aspx.