Lance Larsen - .NET Architect Madison Wisconsin

All posts in Visual Studio

imageMicrosoft is creating some very cool “Cognitive Services” that we as developers can easily utilize in our applications to accomplish some amazing results with a few simple calls to these Azure service.

If you haven’t setup the Cognitive Services – take a look at Setting up Azure Cognitive Services.

We’ll start with the “Face [Detection] API

“Detect one or more human faces in an image and get back face rectangles for where in the image the faces are, along with face attributes which contain machine learning-based predictions of facial features. … The face attribute features available are: Age, Gender, Pose, Smile, and Facial Hair…” 

As my eventual goal is to integrate these into Hololens for you guys – we’ll be doing this integration into UWP (Universal Windows Platform) – but starting with desktop apps.

Completed project is up on GitHub @ FaceApiUwp

Ok, let’s dive right into code!  Fire up Visual Studio…

Read more


Facebook2Greetings fellow Holonauts!  In the continuing saga of Holographic awesomeness – here are updated Step-by-Step visual instructions for setting up your Unity 3D application to run on your HoloLens with the all new version of Unity 5.5.1!

Been very busy working on Hololens applications for clients and potential clients – and I’m now working on new presentations and blog posts for some very exciting Hololens / AR / VR topics!  Strap-in and follow along.

Always refer back to “A Holonaut’s Guide: HoloLens Development Resources” for everything you need and links to all things HoloLens!

Don’t forget to join myself and others in keeping up with everything new for HoloLens / AR / VR news – follow HoloSoft on Facebook – and visit our HoloSoft site!

So – start by downloading the newest version of Unity – at this time 5.5.1 – the free version is excellent and does everything we need.

imageimage

Now my Holonaut, let’s dive into creating your first Hololens Holograms!

Read more


( Download Code )

Was looking for a simple and elegant way to log some metric for methods (mainly method name, start time, stop time and elapsed time) – I’ve done this in PostSharp in my article “Holy Grail of Application Profiling with AOP” – but client wasn’t using them.

I’ve used reflection with success in the past, but was having some issues with Async methods not giving their real method names, was getting “MoveNext” instead — so sleuthed around for an alternative and found some awesome C# attributes that I’d never seen…

[CallerMemeberName] – gets the method name calling the attribute
[CallerFilePathAttribute] – gets the path to the C# file
[CallerLineNumberAttribute] – gets the line of the method in code

Combining those with the C# Stopwatch Class – and using the Dispose patter that I love because you can easily code the “using” statement around what you’re looking at ( see below ) – came up with the following cool code that – as always – I love to share.

Emphasis on elegant, to call this code – you can easily do the following…

using (StopwatchLog.Track())
{
   // Your code here...
}

It collects the information about executing method and logs metrics when the stopwatch log is disposed.

Read more


Surface Pro 3

Firstly, love my new Surface Pro 3 – finally the tablet PC I’ve been waiting for!  Have all of my development tools; Visual Studio 2013, SQL 2014, etc loaded up and running very quickly.

As a developer in Visual Studio however I need to use the function keys more than using the shortcuts across the top of the keyboard – and didn’t want to always have to press “Fn” + “F5” – so looked for a solution and found one and wanted to share…

Function Key Lock Tip: Press “Fn” + “Caps” and now all the Fn keys work without having to hold down the “Fn” key! w00t


imageAt the February 2014 MADdotNET (@maddotnet) meeting – had David Manske (@davidemanske) from Centare out to talk on what’s new in Visual Studio 2013!  Couple absolute gems of knowledge were passed on – one of them was “SideWaffle Templates for Visual Studio” – I had never seen this – so figure some others may not have seen this either!

Specifically liked seeing the AngularJS templates… Check them out!