Google PlusFacebookTwitter

Trying out NDepend

By on Sep 2, 2016 in Development, Statistics, Tooling, Tools | 0 comments

What is this? I got the chance to try out NDepend, although with everything else, it took me quite some time until I finally got around to picking it up. Now NDepend is a tool, both command line, stand alone and as an addin to Visual Studio which allows you to do static analysis and reporting on your .Net projects. It uses a Linq based paradigm to build rules around the code metadata it reads from the solution making it incredibly versatile in terms of extending and customizing. In this blog post I’ll take you through my initial 2-3h user journey in trying out the tool. Installation After writing a few installers myself using both the old fashion visual studio included tools and lately using Wix I can appreciate that the NDepend team didn’t waste time trying to do this. NDepend simply comes as a zip file which contents you drop in a folder, completely fine and it’s a...

Jenkins with Visual Studio Online

By on Nov 30, 2015 in Development, Environment, Tooling, Tools | 0 comments

On my current project we’re using Jenkins as a CI platform and Visual Studio Online with TFS for source control. I’ve been wanting to setup the builds on our intranet again to run the integration tests relying on intranet access each check-in. I had an issue with this, as I did last time I tried it and figured I need to retain this information somewhere. If you are doing this with using Git you’ve come to the wrong place though, Microsoft has a great article about that themselves. This is the error I ended up getting: FATAL: com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint https://infuse.visualstudio.com/Services/v1.0/Registration.asmx could not be contacted. HTTP status: 404 java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint https://infuse.visualstudio.com/Services/v1.0/Registration.asmx could not be...

Ruby and DRb

By on Sep 2, 2015 in Debugging, Development, Tooling | 0 comments

I’ve been getting into Ruby last week whilst playing with Selenium at work. We’re trying to get around quite a big and well known limitation of Selenium, that you cannot reuse a driver already created within another process. Since we’re executing our in steps, each step running in it’s own script host, this gives us a fair headache. Somehow we need to keep the driver instance alive and controllable between script instance. Enter: DRb, Distributed Ruby The DRb framework is ridicously easy to work with and compared to my previous encounters with network based RPC quite reliant even when doing complex stuff and using real objects. However, it’s not flawless and you can shoot yourself in the foot. Basically, everything was going fine up until I started using blocks. The issue is that when using a Ruby block on a DRb proxy object the scope of what’s being...

Event store growing but no data added?

By on Jun 16, 2015 in Database, Deployment, Environment, Tooling | 2 comments

We had the opportunity of trying out some new tech a while back when building a licence system and going through the options for persisting data we ended up choosing Event Store (not just for the cute mascot). It’s not really intuitive to get up and running but works well once there. However, now about three months in production with only about a few thousand events stored the server went down. A quick look in told me space was out (we’re running on a free AWS instance) and I had my suspicouns. First, check the log files, no problem there but then looking at the chunk files for Event Store we found our offender, with only a few thousand events of our own the Event Store flat files was taking up 4.5gb, whaat? This shouldn’t frighten anyone really, it’s not  a lot of data and really not affecting the performance of the Event Store I think but for our tiny instance...

Alias for windows command line

By on Sep 7, 2014 in Automation, Development, Environment, Tooling, Tools | 0 comments

When working with git and node js you end up using the command line quite a lot. As a Windows grown developer this is kind of a strange sensation really, you quickly start to appreciate why those Linux guys constantly advocated the bash and you also understand why they didn’t move over to windows. The windows command line leaves a lot to wish for and if you try to do the simplest things you’ll have to fight long and hard to get there. Anyway, I wanted to open some files for editing from the command line and I want to open them using Sublime. I could add the Sublime directory to my path variable and open it using sublime_text, this feels quite naff to be honest and I came across some posts saying ”just alias it”. What’s that I wonder, hmm.. okay only available for OS X/Linux, darn. I’ll just have to create an alias for Windows then. This here batch...

My path registered EXE where art thou?

By on Aug 10, 2014 in Deployment, Development, General, Tooling, Tools | 0 comments

There’s always that time when you set up a new environment and want to get to that file registered in %PATH%, like msbuild in the developers console or something. You Google or dir /s and eventually find that files but always wonder, is there not an easier way? ‘course there is: Shell C:where cmd C:WindowsSystem32cmd.exe 12 C:where cmdC:WindowsSystem32cmd.exe Splendid, isn’t it, no more hunting for those nicely registered...