Things I Learned Today #2 – Like intellisense but for that other commonly used language…

There aren’t many things in software that scream UNPROFESSIONAL quite like spelling mistakes; it really irks me as a user, and I’m sure it makes our end-users uneasy too.

So let me introduce you to one of my recent favourite Visual Studio extension… Visual Studio Spell Checker.

It’s an extension that checks the spelling of comments, strings, and plain text as you type and is really handy and absolutely non-intrusive. Have a look at the real-world example below which was highlighted to me as I was navigating around some older sections of our codebase.

AutoCorrect

 

It might be something that many people may just shrug off but it’s something that I’m going to suggest that all of our developers have installed as it’s just another one of those little things that help ensure your software has that little bit more polish.

Getting a look into AngularJS, a link roundup – 1st September 2013

I recently had to do a technical evaluation of technology options for a new project/product that we’re embarking on. The project was to be a web application, and since we’re not really a ‘web’ shop our options were really open for what and how we were going to design and build this new system.

So with our options open we began to evaluate things like Backbone, knockout and Ember. However we wanted to try and stick with an MVVM-esk pattern… well this led me down a path of discovery with AngularJS. What we found was a really capable and fast moving world unlike anything I’ve seen for a long time!

Here are the most useful things on the inter-nerd, that will teach you the KEY concepts in a few days.

Continue reading…

Rebuilding custom Build activities for TFS 2012

At our company Fred I’ve sort of inherited the role of TFS administrator. So as part of this I get to deal with upgrading our TFS server to 2012; and as part of the upgrade we need to ensure that Builds continue to work, So since a 2010 Build machine will NOT work with a 2012 Team Foundation Server, we need to ensure our builds work on a 2012 build machine!

p.s. Jason Prickett has a few hints that help to get started if you’re thinking about going through a TFS upgrade – http://blogs.msdn.com/b/jpricket/archive/2012/10/24/upgrading-your-build-definitions-from-tfs2010-to-tfs2012.aspx

Continue reading…

Finding Illegal Cross Thread Calls

We recently had some customers reporting issues with our software, the reports were of the UI ‘locking up’, and never coming back.
This plays out as a weird scenario, where the UI would become totally unresponsive to any user interaction, however from Window’s (task manager’s) point of view, all seems peachy and the application is reported as ‘responsive’.
Continue reading…

Windows 7 System Optimisations

Today I was asked by a fellow developer colleague if I could give some them pointers in how to optimise their new machine; in particular if anything should be done to make their “SSD hum along”. So considering I’ve already done through this process a dozen time for others, I should probably just document it!

So I’m going to get all old and cranky here and tell you what’s what, and then I might yell at you to GET OF MY LAWN ! As I get a little venty on the basics of what to and not to do !

Continue reading…

Using DBCC SHRINKFILE to shrink the transaction log Errors with 'Cannot shrink log file 2 (LogFileName) because all logical log files are in use.'

I recently had a (relatively small, 4gb) database blow out with a transaction file of 160gb+. No matter what I tried I couldn’t truncate the logs and as a result I couldn’t shrink the file. Whenever I tried to run a DBCC SHRINKFILE to shrink the transaction log. SQL would error after a short time with ‘Cannot shrink log file 2 (LogFileName) because all logical log files are in use.’

I recently solved this issue and it was a doozy; I found that in sys.databases, log_reuse_wait_desc was equal to ‘replication’. Apparently this means something to the effect of SQL Server waiting for a replication task to finish before it can reuse the log space.

Continue reading…

Visual Studio 2008 – SignTool reported an error SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Windows 7 and regsvr32.

Today I ran into an interesting error while trying to deploy a new version of a ClickOnce application that I maintain. When publishing my solution from Visual Studio 2008 (9) the following error would occur:

SignTool reported an error SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the latest version of CAPICOM.dll into the directory that contains SignTool.exe. If CAPICOM.dll exists, you may not have proper permissions to install CAPICOM.
Follow these steps

Continue reading…