About a week ago, I received an email from a visitor about my QR code post which I blogged about back in 2010. I have been told that the most important reference was down. It was the reference to the DLL for generating the QR codes. So I uploaded the DLL as mirror

Apparently the twitt88.com website is back online at http://platform.twit88.com/projects/mt-qrcode/files It also seems that there has been some new releases for the DLL.

Since 2011 you only use NuGet to keep your packages up to date, I thought that adding it through NuGet would be the best option.

Searching for ‘QR’ did not return any good packages. Searching for ‘QRcode’ did. It returned one package for MVC https://nuget.org/packages?q=qrcode

But I still have WebForms in this solution… Investigating the source of that package, pointed me to this open source QR project from codeproject. But that is an article from twitt88 from 2007! So the only QR code package in NuGet references (really) old material from the exact same user!

That’s when I decided to help out the community by adding this awesome DLL from twitt88 to the NuGet Package List!

Add a new package to NuGet

I am a great fan of NuGet, but until today only as user, not as contributor. So let’s start. I have already NuGet extension installed and have the DLL I would like to add on my hard drive in a new folder.


This is the latest (at the moment)

1. Get the NuGet.exe Command Line bootstrapper

Download the utility from CodePlex:


2. Add NuGet.exe as path variable (optional)

Right click ‘my computer’, hit properties and go to the advance settings. If you don’t remember how, you can visit this website for a small Path variable tutorial http://www.computerhope.com/issues/ch000549.htm

3. Open up a command prompt

(Windows key + R) cmd <enter>

  • Navigate to your package folder
  • Move the DLL to a new subfolder called lib
  • Make sure that you are in the root package folder
  • Run `NuGet Update –self`or if you have skipped step 2 (path var) Then run: `path/to/your/nugetDownloadLocation/nuget.exe update –self`
  • Run `NuGet SetApiKey yourApiKey` You can find your API key on the NuGet account page
  • Run `NuGet spec MessagingToolkit.QRCode.dll`that will create a nuspec file.
  • Run `notepad MessagingToolkit.QRCode.dll.nuspec`and change the title, summary, URI’s to licenses etc. Use this nuspec reference and save the file and exit notepad.
  • Run `NuGet Pack MessagingToolkit.QRCode.dll.nuspec` this will create a nupkg file
  • Run `NuGet Push MessagingToolkit.QRCode.1.3.0.nupkg` And that is it!

You have just published your DLL as a NuGet package!


Good luck expanding the package list of NuGet!


Edit 2nd of May 2012: The QR code package that I submitted to NuGet has over 50 downloads at the moment!


kick it on DotNetKicks.com Shout it

Pin on pinterest Plus on Googleplus Post on LinkedIn

Windows 8 consumer preview release

A consumer preview of Windows 8 has been released. I really recommend checking it out. I have seen it run on several ultra books (from about 700 euro’s each) and it ran great! So you don’t need a 2000 euro machine to run it and play around with the new metro interface.

I have written earlier about the developer preview, but this release contains over 100.000 changes and a newer version of internet explorer. As web developer it’s always nice to test web applications with the latest browsers.

Visual Studio 11

I am currently installing Visual Studio 11 (thank god semantic versioning, otherwise it would have been vs2012) even the installer is great! The animations are even smooth on my machine. Thanks WPF!

You can install vs11 side by side with vs2010. It does not affect .Net 4 framework or anything else. With vs11 you can checkout .Net 4.5 with MVC4 and the new WebAPI. Also the new VS11 look with the new shortcuts.

This video shows a lot of tips and tricks which you can do already in vs2010 and some new once introduced in 11.

Also check out the video about all the new features that come along with vs11 and asp.net 4.5. That saves me a lot of typing.

Visual Studio 11 Team Foundation Server Express Beta

A lot of people do not mention this release from yesterday. I think it is great, because I work in a small team (less then 5 members) and I love to have source code in a source control system. (in case hard drive fails etc.) Of course it has a lot of advantages, but I am not going to mention them.

Please checkout this free express TFS version. My main reason is: it’s free and for small devgroups.

So now you have enough releases to download, install and explore!


Good luck coding!


kick it on DotNetKicks.com Shout it

Pin on pinterest Plus on Googleplus Post on LinkedIn

How fast are we today? More and more web applications are using JavaScript to improve the UX (User eXperience) Almost all websites use frameworks like jQuery and mooTools, extJs etc. for this. So it is important that our browsers are fast with JavaScript!

Browsers are updated more often because they are more important every day. Since I have several extensions for Chrome and Firefox, it’s not fair to compare RAM usage. So I only looked at JavaScript performance. A way to compare it, is to run SunSpider http://www.webkit.org/perf/sunspider/sunspider.html

So I run all my installed browsers with my Centrino 2 cpu, win7sp1x64 and here are my results, run with my hardware.


Internet Explorer 9.0.8112.16421 220ms
Internet Explorer 10 platform preview 2.10.1008.16421) 234ms
Firefox 11 beta 250ms
Opera 11.61 (build 1250) 255ms
Safari 5.1 (7534.50) 257ms
Chrome 17.0.963.46 beta-m 277ms

As you can see, the results are very similar these days. So if you have an up-to-date browser, your fine.

Also check out this blog from 2 years ago:

And if someone is still using IE6 or 7, please upgrade a.s.a.p. check out the kill bill’s browser website if you are not convinced.

Enjoy your browser!

Pin on pinterest Plus on Googleplus Post on LinkedIn


Today I have installed NDepend for the first time! I was really convinced because of this short video and the 7 minute version. Too bad that it isn’t really a human voice, but the feature set of NDepend will make up for that. I followed these instructions for the installation and installed the Visual Studio Add-In.

All I had to do was select NDepend –> attach new NDepend project to current VS Solution. NDepend immediately showed that two critical rules are violated!

  1. Method too complex (well some programmers might see this one as a compliment, but this does affect maintainability and scalability of your code)
  2. Methods with two many parameters

so just two issues, I am flattered!

When you click on the ‘Show CQL Explorer’ You will see the Code Query Language which is required to select the critical rules. So you can simply navigate to the issues.

FXCop vs. NDepend

As you all know, you can also choose to use FxCop to check your source code against a coding standard. Here is a link where you can see how you can check your code for the use of the object ‘Arraylist’ instead of the generic ‘List<obj>’ http://www.binarycoder.net/fxcop/html/ex_usegenericlist.html

With NDepend this can be done with CQL like this:

SELECT TYPES WHERE IsDirectlyUsing "System.Collections.ArrayList" [more]


CQL (Code Query Language) is great. You can read more about it here: http://www.ndepend.com/CQL.htm Like SQL is for relational databases, is CQL for selecting source code. The default rules that NDepend uses to validate your source code are divided in several categories. You can enable rules (CQL) disable the rules that are less important according to you. You can add your own rules or edit the default rule set. Here is the rule for one of my two violations:


The CQL even has syntax highlighting!


I recommend that everybody checks out the NDepend trial and go see it for yourself. You can check out the license costs of NDepend here. For developers who work with continuous integration like Cruisecontrol.net, Teamcity or Microsoft Team Foundation Server, it is really recommended to check your code against a code standard.

Let me know if you have NDepend best practices in the comments! Looking forward to it. NDepend is together with Resharper my favorite Visual Studio add-in.

kick it on DotNetKicks.com Shout it

Pin on pinterest Plus on Googleplus Post on LinkedIn

So we have all used FxCop before haven’t we? Well I found out, that my version was 9.x and it prompted with an available update! So Microsoft’s download page opened. http://www.microsoft.com/download/en/details.aspx?id=6544 

It only displays a small 1 kb file! a “readme.txt” file. That’s strange. So I checked again for an available download link, but ended up with the same readme file.

This is the content of the text file:

FxCop Installation Instructions 1. Download the Microsoft Windows SDK for Windows 7 and .NET Framework 4 version 7.1. 2. Run %ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop\FxCopSetup.exe to install FxCop.



Ok, so you need the Windows 7 Software Development Kit. That download can be found on http://www.microsoft.com/download/en/details.aspx?id=8279 and contains a web installer. So more bytes to download.

Make sure that you check the box next to the Tools under .Net Development when you are going to install the SDK.


After the installation you can navigate to:

C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\FXCop

And there you will find the FxCop 10 installer: FxCopSetup.exe ! Or you can save yourself a lot of time and download it zipped here:


Good luck!

kick it on DotNetKicks.com Shout it

Pin on pinterest Plus on Googleplus Post on LinkedIn