LINQ and Dynamic Query – Comparing DateTime value

By: lakswin In one of our development, we end up with the situation that needs to check the DateTime value in Dynamic LINQ query. Trying different ways out there and googling a bit, finally got some useful references that helped us to resolve the same Hope, you would love reading!   Example: TestEntities te = newContinue reading “LINQ and Dynamic Query – Comparing DateTime value”

Image Resizing and Cropping in C#

By: JasonJano’s Blog So the other day I put up a c# wrapper for ffmpeg. The wrapper I built is a part of my own asset storage system which I guess I will probably be putting up in chunks over the next few weeks. Today I have decided to put up my image resizing tools forContinue reading “Image Resizing and Cropping in C#”

Visual Studio 2012 / 2013 Update 1 2 3 4 Offline Installer

By: techtronic.us Visual Studio 2012 Update 2 was released about a week ago.  This update includes lots of fixes and some features – you can see the list here.  The only problem with the update is that Microsoft does not offer an offline installer.  If you are installing this on your own PC or for oneContinue reading “Visual Studio 2012 / 2013 Update 1 2 3 4 Offline Installer”

Points, inches and Emus: Measuring units in Office Open XML

By: Lars Corneliussen After I got confused with the Office Open XML (OOXML) measuring units for a couple of hours, I thought I’d share what I found on it. I order to avoid floating point calculations and still maintain high precision the format uses some odd measurement units. Don’t think you can get away with inches,Continue reading “Points, inches and Emus: Measuring units in Office Open XML”

Export data from a DataSet into a real Excel 2007 file

By Mike Gledhill Ever wanted to add an “Export to Excel” function to your ASP.Net, WinForms or WPF application ? This free C# and VB.Net library lets you export a DataTable or DataSet of data into a “real” Excel 2007 .xlsx file, using one line of code. CreateExcelFile.CreateExcelDocument(myDataSet, myExcelPathFilename); …or if you’re using ASP.Net… CreateExcelFile.CreateExcelDocument(myDataSet,Continue reading “Export data from a DataSet into a real Excel 2007 file”

Extending your ASP.NET Web API responses with useful metadata

By: filipw If you ever worked with any API, which, in this day of age, you must have, you surely noticed that in most situations the API response isn’t just the result (requested data), but also a set of helpful metadata, like “total Results”, “timestamp”, “status” and so on. In Web API, by default, you justContinue reading “Extending your ASP.NET Web API responses with useful metadata”

SelfCert: Create a Self-Signed Certificate Interactively (GUI) or Programmatically in .NET

By: Keith Sparkjoy While this isn’t new, I needed a new home for it since my old Pluralsight blog is gone now. Hopefully you’ll find it helpful! It’s a bit of a pain to create self-signed certs using MAKECERT. So here’s a GUI-based tool that uses a combination of the .NET Framework and the CryptoAPI toContinue reading “SelfCert: Create a Self-Signed Certificate Interactively (GUI) or Programmatically in .NET”

OWIN OAuth 2.0 Authorization Server

By Rick Anderson, Hongye Sun and Praburaj Thiagarajan|March 20, 2014 This tutorial will guide you on how to implement an OAuth 2.0 Authorization Server using OWIN OAuth middleware. This is an advanced tutorial that only outlines the steps to create an OWIN OAuth 2.0 Authorization Server. This is not a step by step tutorial. Download the sample code. Note: ThisContinue reading “OWIN OAuth 2.0 Authorization Server”

How to: Create Item Templates

The steps in the first procedure of this topic show you how to create an item template by using the Export Template wizard. If you plan to use the item in a Windows Store app project, you’ll have to perform a few extra steps. The second procedure in this topic helps you accomplish that task.  Note YouContinue reading “How to: Create Item Templates”