Posts

npm outdated + npm update is your friend

In the last year or two I've been getting my head around the whole world of front-end web development with AngularJS and its associated infrastructure ( nodejs , npm , bower , gulp , etc).  A lot of that has to do with the fact that with my current client, I've been working on projects that use all that technology (where they have Microsoft's  ASP.NET WebApi on the back-end, and all this other stuff on the front-end). It seems to me a lot of .Net developers shy away from really learning all that stuff, or they just learn what they need to know to get the job done, but I think all this stuff is pretty cool and I've been trying to learn it all on a slightly deeper level. So when you get into the whole  npm  thing you quickly learn that development tools, libraries, packages, plug-ins etc. that are required by your project are stored in a file called package.json .  And that the versions of those packages are managed with symbols using a syntax called semver...

Recover Azure VM password (Reset Azure VM password)

If you find you've changed your password on your Azure Virtual Machine, but then subsequently forgotten it (and I swear I was entering the correct password, but apparently not), then you google phrases like "recover azure vm password" etc, you may run across blog posts from Microsoft like the one found here . There are two things to note which are not entirely obvious from the steps listed there.  One is, if you don't use PowerShell every day you may launch the PowerShell command prompt and not the ISE as they suggest.  You do in fact want the ISE, not the command prompt.  For example on a Windows 2008 server machine the ISE is under Accessories... Windows PowerShell... Windows PowerShell ISE. The other thing is, if you're trying to reset the password of your VM, the VM actually has to be powered up.  (Duh!)  In retrospect this is obvious; how can you reset the password of your VM if the VM is not actually powered up?  You can't. But if it is powered...

Elmah + ASP.NET WebAPI tip...

I had one of those situations today where you're looking at various blog posts and stack overflow posts and everybody's essentially saying, "it's easy, you just add the NuGet package, issue a couple lines of configuration code, and it works."  But I was scratching my head for awhile until I connected the dots.  So I thought I'd post a small tip here in hopes of saving somebody a minute or two. So, if you want to add ELMAH to your ASP.NET WebAPI project to log unhandled exceptions, a bit of googling will quickly lead you to the elmah-contrib-webapi project, and helpful posts such as this one and this one , as well as various stack overflow posts .  I tried the stuff recommended there but for some reason couldn't get it working.  Having used ELMAH previously on an MVC project, I knew that the basic steps are: Install a NuGet package Tweak your web.config Point to where you want to log to (on my previous project it was logging to SQL Server, but ...

JavaScript libraries on my current project

I've finally got my foot in the door of the AngularJS world and I'm pretty happy to have this opportunity.  The project I'm on uses an ASP.NET WebAPI back-end, and the development environment is Visual Studio with Resharper, but otherwise it's pretty much a front-end JavaScript based project whose architecture was designed by some pretty smart guys.  They're using AngularJS but also making use of the Flux architectural pattern .  If you're coming from a .Net development background this is a completely different way of thinking and it's quite an eye-opener.  But what I like about it is that it has a very good separation of concerns, it's very modular and decoupled, makes good use of the CQRS pattern, and (if we adhere to the patterns these guys have established, which I hope to write about in a future post), seems to lend itself to best practices in software architecture. I've been reading a few books on it as mentioned in a previous post .  But...

Where is Chutzpah installed?

Image
I've been going through Shawn Wildermuth 's Pluralsight course on Bootstrap, AngularJS, ASP.NET, EF and Azure.  There's a point toward the end of module 9, "unit testing", where he installs the Chutzpah test runner .  At the time the videos for the course were recorded, Chutzpah lived on Codeplex , but now it lives on Github . In the video, Shawn installs Chutzpah, then goes into a bit about running Chutzpah from the command prompt.  That all seemed like a bit of magic to me, sort of like when the cooking shows just suddenly show you the cake that's already been baked, and it was not obvious to me where the .exe for Chutzpah actually got installed.  So for what it's worth, although I installed the Visual Studio extension as described in the video (using the Tools... Extensions and Updates... menu option in VS2013), I subsequently installed Chutzpah as shown here , then after some head-scratching, simply did a search of my local drive in Windows and fou...

A few AngularJS resources

In the past year or so I've been taking quite an interest in AngularJS .  I've read the O'Reilly book by Brad Green and Shyam Seshadri; the Apress book by Adam Freeman; I'm doing a Pluralsight course by Shawn Wildermuth; there's a good set of blog posts by a guy called Nils Naegele.  Tons of stuff also on Stack Overflow also.  And there are many other Pluralsight courses . The Pluralsight course is particularly interesting in that it seems the way forward for developers who work with the Microsoft technology stack such as myself.  Using Azure, EF and ASP.NET / MVC WebAPI on the back-end, and Angular on the front-end appears to be the state of the art at the moment.  I'm also quite impressed with the ease with which I was able to set up a development VM in Azure , and I'm using that VM to follow along with the Wildermuth course. It's all good stuff.  And I'm working on an app on which to apply all this newfound knowledge. Happy Holidays! ...

Taking a look at the new NDepend version 5

Image
Hello and Happy New Year 2014.   It’s been an eventful year for me; I became an independent contractor in central London and it’s been going well.   I’ve been acting as solution architect and lead developer on a greenfield project for a financial services client, building an application with a variety of technologies including MVC 4 / JavaScript / jQuery with a bit of Knockout, SQL Server 2012, and an ETL solution using SSIS 2012.   It’s coming along nicely, and I’ve really been enjoying this challenge and opportunity. Incidentally toward the end of 2013 I was contacted by C# MVP Patrick Smacchia; I had previously blogged about his product NDepend , and he’s now asked me to take a look at the new version 5 .   Full disclosure:   I have not received any compensation for this, but he did send me a professional licence for evaluation.   I agreed to take a look at it for a number of reasons of my own.   Having looked at it previously, I thin...