Trying out NDepend
I have been using NDepend to analyze the latest version of my NExtra library. The code is spotless (this is where you should detect the irony), but the analysis is highlighting some interesting design flaws that I should fix in the next version.
Øredev 2011 in the rear-view mirror – Part 3
This is the third part of ny sum-up of Øredev 2011. I will label every talk with day:order to satisfy all structure freaks (myself included) that read this.
Øredev 2011 in the rear-view mirror – Part 2
This is the second part of ny sum-up of Øredev 2011. I will label each talk with day:order to satisfy all structure freaks (myself included) that read this.
Øredev 2011 in the rear-view mirror – Part 1
This is the first part of my Øredev 2011 summary. I will label each session with day:order to satisfy all structure freaks (myself included) that read this.
Where do I put the logic?
I could use some advice regarding a project I’m currently working on. It’s a web site where people can sign up and join various groups (did I hear a “Facebook is already doing that”?) and do stuff depending on what groups they belong to.
Am I writing bad tests?
To grow as a developer, there is nothing as good as inviting others to criticize your potential flaws…that as well as reading a book every now and then.
Tweaking the NDepend CQL rules to leverage awesome power
I have previously written about how to automate and schedule NDepend for several .NET solutions at once. After getting into the habit of using it more regurarly, the power of CQL has grown on me.
Scheduling NDepend for a set of solutions
In a project that I am currently working on, I use NDepend to continuously run a scheduled code analysis on a bunch of solutions that make up a large part of the software infrastructure of a major Swedish company.
Grabbing the latest version number from a GitHub repository
I currently have several repositories at GitHub. For some of these repositories,
I have also created a gh-pages
branch with a public web site for each project.
Getting PEAR and PHPUnit to work with MAMP
When I recently decided to start re-creating a PHP project of mine from scratch,
I decided to replace SimpleTest
with PHPUnit
and PHPCover
.
TeamCity 6.5.1 does not play well with NServiceBus
I am currently moving some projects from an old TeamCity 5.1.2 server to a brand new 6.5.1 server. Everything has been going great, until I tried moving a project that uses NServiceBus.
EditorBlockFor HTML helper
In ASP.NET MVC, Microsoft has done a nice job with creating various HTML helpers
that can be used in a form, e.g. LabelFor
, EditorFor
, ValidationMessageFor
and many others.
Clone a .NET solution in no time
When working with .NET, I sometimes find myself wanting to just clone a solution instead of setting everything up from scratch over and over again.
Print screen in BootCamp using an Apple keyboard
I have started to boot up Windows directly from my BootCamp partition on my iMac instead of running Windows under VMWare Fusion. This way, I do not have to share resources with the OS X partition, which is nice for gaming, programming etc.
Visual Studio and WPF force Windows 7 to apply basic theme
Each time I open up my WPF projects in Visual Studio (2010) and open a XAML file, my computer switches from the nice semi-transparent theme to Windows 7 Basic.
Open file with the keyboard in OS X
Although I love OS X, I am still new to it and a Windows user at heart. As such, the unintuitive and “secret club”-like keyboard shortcuts are not one of my most favorite parts with it.
NUnit BadImageFormatException
While developing a unit tested hobby project in .NET, everything has worked great until now. Suddenly, NUnit thinks that there is something wrong with an assembly:
How I solved my slow iMac with a constantly working hard-drive
A couple of days ago, I blogged about solving a frustrating problem that made my iMac dead slow. At the time of writing, I was not sure if I had actually solved the problem, but I can now say that I have.
Slow iMac about to be fixed?
I have been having big problems with my iMac 27″ (4GB RAM) that runs Windows 7 on a Boot Camp Partition (using VMWare Fusion). It is basically the same setup as I have on my MacBook Pro (which has 8GB RAM though), with the minor difference that the MBP is fast as lightning and the iMac is slow as HELL!
Localizing a WPF application with resource files
I am localizing a WPF application that consists of a main application project as well as several separate DLL projects that provides the application with general user controls, model classes etc.
Running Facebook authentication on localhost
It has taken some time, but I have finally started building an ASP.NET MVC3 site that will use the Facebook API to create and authorize users. It’s a really easy thing to accomplish, and I curse myself for not having a look at this earlier.
Embed Git Bash into Visual Studio
I have started using git with my private projects. It works really well, but I’m having problems with how it integrates with Visual Studio.
WPF WTF
My personal WPF WTF list has grown steadily since I started to work with WPF. In my opinion, WPF is filled with bad naming conventions and inconsistencies.
Custom ASP.NET validation attributes
After some discussions with my colleagues about my latest focus areas, I felt it could be nice to write a post about custom validation attributes in ASP.NET. It’s something I use to great extent.
Hide the close button of a WPF window
In a WPF application that I am currently working with, I have to be able to hide the close button of a progress window. Instead of being closed by the user (like an alert window or a message box), this progress window should instead be closed by its owner window once its related operation has finished.
Legacy code horror
When working in a legacy code base of someone else’s making, imagine to refactor code that is mainly built up on structures like this:
WampServer URL rewriting problem
I have a hobby project that works great on MAMP, but that doesn’t run so good on WampServer. It’s quite frustrating to have to test all new components in two PHP environments that should be more or less similar, so I decided to look into this.
Calculate distance and bearing between two positions in C#
I am currently working on a GPS-based web application, that lets a mobile device post its position to the app, which then replies with nearby items of interest.
Trying out Plupload
In a hobby project of mine, I had a really handy UI plugin called FileUploadForm, that could upload any number of files with AJAX. All you needed to do was to add such a form to the page to have it handle the entire upload process automatically.
Automatically convert HTML5 to HTML4
I love HTML5 and how easy things will become once it breaks through. However, it will take time for many browsers to support HTML5 and until they do, the code we write must be supported by older browsers as well.
Spotify background playback problem on iOS
This is not a development-related blog post, but well worth mentioning to all of you who have been experiencing playback problems when the Spotify app for iOS is sent to the background.
Flush the Visual Studio Template Cache
After my last blog post, where I wrote about adding the Spark template engine to an ASP.NET MVC 2 project, I decided to create a project template that uses Spark, instead of the default Web Forms view engine.
Adding Spark to ASP.NET MVC 2
After much curiosity, with other stuff stealing my time, I finally got some time to look at the Spark View Engine. Since Razor will be shipped with ASP.NET MVC 3, I decided to give Spark a try before trying Razor.