-
Today I extended one of our classes to use inheritance via Typescript (love that). When I refreshed the page I received an error here When I dropped to the Chrome debugger and outputted both the values for both ‘d’ and ‘b’ I was a bit shocked. ‘d’ was valid, but ‘b’...
-
If you have been using TypeScript you should be aware the definition file repository maintained by Boris Yankov called DefinitelyTyped . This repository is awesome because it saves so much time and effort when working with 3rd party libraries with Typescript. However, as great as this repository...
-
I was doing some profiling of our Entity Framework stuff via EFProfiler the other day and noticed something really odd. When I was watching the profiler I noticed that I had a query returning back over 1300 results and that was NOT right, I had expected only 1 result. I looked the resulting...
-
Recently I mentioned this.Log . Given the amount of folks that were interested in this.Log, I decided to pull this source out and make a NuGet package (well, several packages). Source The source is now located at https://github.com/ferventcoder/this.log . Please feel free to send pull requests (with...
-
One of my favorite creations over the past year has been this.Log(). It works everywhere including static methods and in razor views. Everything about how to create it and set it up is in this gist . How it looks public class SomeClass { public void SomeMethod() { this.Log().Info(() => "Here...
-
Refresh database is an workflow that allows you to develop with a migrations framework, but deploy with SQL files. It’s more than that, it allows you to rapidly make changes to your environment and sync up with other teammates. When I am talking about environment, I mean your local development environment...
-
I have a need to update our build version number in our various *AssemblyInfo.cs files each and every time we do a release build of our products. I wanted to do this as a build step on our build server and I thought that Powershell would be the best way to do this given the fact we are use pSake as our...
-
Today begins the exercise of setting up an Octopus Deploy server with the goal of using this for our deployments. Of course to get started I headed out and started reading the various documentation. When I got the part about creating the nuget packes via OctoPack I quickly ran into the following...
-
When building a Windows RT application (based on C#) it is pretty common that you will want to notify your user of an event. It is more common that you are going to want to do this in a way which is not intrusive, aka does not get in the way of the user. Luckily for you the WinRT team has...
-
In a previous post I talked about how to use git tfs to extract your source out of a TFS repository, format it for git and finally push that source to Github. This post is a follow up to that prior post and will go a bit further in explaining the exact steps, i took, to do a full end to end migration...
-
Today I had yet another need that I never recall having in the past. I needed to take an list/array of items and split it into chunks, effectively creating a multiple dimensional list. For Example, if I had the list of items below, I wanted to split it into chunks of 2 items each. var items = new...
-
Today I ‘fun need’ which I don’t ever recall coming across before and I thought I would share my results. I needed to find both the number of Wednesdays (or any day for instance) and the date for each instance for a given date range. What I came up w/ was as follows (the code below is LINQPad C#...
-
Recently while trying to deploy a service to a clean VM (moving this off our main production server onto its own server) I ran into the error below” Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e...
-
About conventions I’m a big fan of using conventions when developing applications. I blogged about it in the past ( here , here and later here ). I also gave a talk about my experience with this approach and how I currently use it at NDC last week (slides are available here , video should be posted...
-
Recently when I needed to parse the twitter datetime format into a .Net DateTime I found this post on the web showing how to do it. However, the format string in the post is setup for non-us format so I thought I would share how to do it for US formatted datetime. const string format = "ddd...