Wednesday, February 11, 2015

ReSharper 9.1 EAP - EAP02 is out!

ReSharper 9.1 EAP02 is available for download here: https://confluence.jetbrains.com/display/ReSharper/ReSharper+9.1+EAP



I know because after the VS2015 update - I couldn't run any of my tests anymore through the ReSharper test runner:



However - this is fixed in the EAP2, so go and get it if you're like me and want to work in VS2015 with ReSharper and like the ReSharper test runner.

Thanks ReSharper:


Friday, February 6, 2015

Cool new Sublime Text theme: Seti_UI

I like dark themes for my IDE's, therefore I have been using the Brogrammer theme for Sublime thusfa :https://github.com/kenwheeler/brogrammer-theme


But today I switched to Seti_UI. Even darker but also very nice. Ghttps://packagecontrol.io/packages/Seti_UI


Thursday, February 5, 2015

Easy TeamCity Installation with Docker - by Ariya Hidayat

A colleague is working on a Ruby project mostly by himself and doesn't have a CI environment. So I decided to install TeamCity for him to play around with.

Since I've got my own projects to finish, I needed this to take the least amount of time, so I decided to see whether it's possible to use Docker, and obviously it is.

After setting up a fresh Ubuntu 14.10 server, installing docker ( apt-get install docker.io ) you're just 2 commands away from having TeamCity up-and-running:

docker run -dt -name teamcity_server -p 8111:8111 ariya/centos6-teamcity-server
and
docker run -e TEAMCITY_SERVER=http://buildserver:8111 -dt -p 9090:9090 ariya/centos6-teamcity-agent

Oh yes! Ariya Hidayat explains in his blogpost how it's done.





Sunday, February 1, 2015

Using Angular $resource against Web API 2 backend

This week I tried answering a question on StackOverflow about using Angular's $resource against a .NET WebAPI v2 backend:



To me it seemed like the poster of this question was not using WebAPI in a RESTful way which caused the trouble with WebAPI. I've seen this before where colleagues are using one WebAPI controller to server different types of objects and then need to do custom routing and what not in order to make it work.
My recommendation would be to not do that. Have 1 controller for 1 type of object and map the HTTP verbs on it.

Having said that, I wanted play around with $resource and did that in a proof-of-concept application that I put on GitHub: https://github.com/jochenvanwylick/SODemoAngularResourceWebAPI

I'm using LightInject for dependency injection ( since that was on my list to try ) and OWIN selfhost to host the WebAPI v2 backend.

Here's the Angular application that uses the ngResource module:


I added the listAll method in order to talk to the Get() method in the backend. You need to specify that the result is an array as opposed to an object. Once you get an item from resource, you can just save it with $save().

Here's the C# controller that handles all the methods that are being called by AngularJS.

So yeah, it's nice - $resource. I've used an injecteable service thusfar, but will consider using $resource in the future.

Tuesday, January 20, 2015

Using a on-premises / Azure VM server for Visual Studio Online builds

We're running low on CI build minutes, actually, I spent the 60 minutes in 1 day. So I'm setting up a build controller on an on-prem VM. Turns out it's a breeze to hook the build controller up to the Visual Studio Online account. Check out this post by Anthony Borton on how it's done.




HP DL380 G5 with ESXI 5.1 - processor options

So I took my 5th generation HP DL380 to my new job and because of the static IPs I had assigned to the ILO interface and ESXI, I couldn't get anything done anymore. So I removed the battery from the main board which did a nice reset of the ilo inerface but also reset the BIOS processor options. Thanks to the VMWare forum I found the options I had to configure to run ESXI on the box:

https://communities.vmware.com/message/2388160



If you forget the no-execute memory protection, you'll get purple error message. Below is how to solve these BIOS issues.

http://blog.vmpros.nl/2012/09/17/vmware-esxi-requires-the-execute-disableno-execute-cpu-feature-to-be-enabled/