Getting Around “Strong name validation failed” During Development Cheatsheet

Is this DLL a strong named assembly?

sn.exe –v someAssembly.dll

 

To find out for all dlls in the current directory

del sn-output.txt for %i in (*.dll) DO sn -v %i >> sn-output.txt findstr /c:"is a delay-signed or test-signed assembly" sn-output.txt

How do I turn off strong name validation for someAssembly.dll?

sn -Vr someAssembly.dll

How do I turn of strong name validation for several assemblies at once?

Use command prompt FOR loop. for /F "skip=6 usebackq delims=," %i IN (`sn -Vl`) DO @sn -Vu %i.dll

What's currently excluded from strong name validation on my machine?

sn –Vl







Why Go Go War On Magic Numbers?

Magic numbers and, more generally, magic literals have been verboten in software development for decades. Just ran across a few more reasons why this advice is still sound.

By changing from “ThisMagicLiteral” to SomeClass.ThisMagicLiteral you not only get all the benefits of compile time checking you also make it easier to remove code that depends on the magic literal.

This might not seem like much of a benefit – especially since it can often take more time to type SomeClass.ThisMagicLiteral than “ThisMagicLiteral”. But given that the original authors may well be long gone by the time a given piece of functionality needs to be removed anything that makes removal less brittle is a big plus.

I’m also finding that the process of naming the literal itself aids in discoverability. Maybe it shouldn’t be SomeClass.ThisMagicLiteral. Maybe it should be SomeClass.TheFileThatThisMagicLiteralPointsTo. Or SomeClass.TheRegistryKeyThatThisMagicLiteralPointsTo. That extra bit of context might be enough to trigger an association in the mind of the developer maintaining the code (without access to the original developers).

It’s a big deal but is an often forgotten part of the software development lifecycle – disposal/decommissioning. Decommissioning is a lot easier if magic literals are replaced with constants. Lots of dependencies may have crept into the source. Often these dependencies aren’t even known to whoever happens to be maintaining the main block of code.

A Strikethrough Button in OneNote 2013

Where, oh where, is the Strikethrough button in OneNote 2013? How am I supposed to tell at a glance which tasks are complete on a page full of tasks?

The bad news: It’s not in the “basic text” tab of the Ribbon.

The good news: You can customize the Ribbon! In the screenshot below I’ve added a “MyGroup” group to the Basic Text tab of the Ribbon.

To open this editor click the “Customize Quick Access Toolbar” button (by default it’s at the top of the screen in the left corner next to the OneNote icon) then choose “More Commands”

strikethrough in onenote

Return to digital music making

Getting back into digital music making. Picked up an m-audio keystation 88 from Guitar Center. Very compact board – great feel for a semi-weighted controller keyboard.

Anywho, last I did this I used Sonar. So I grabbed Cakewalk Music Creator Touch 6 (that’s a mouthful of a title isn’t it?). Sonar is still very band/rock oriented – the default project is 8 audio tracks. I don’t plan on recording anything live. So after fiddling around for a while with the soundcard/devices tab I finally stumble upon the “insert synth track” command.

Insert Synth Track did the trick. Nice to see MC6 (touch) shipping with more than one synth!

New google maps is delicious!

Love the simplified ui. LOVE the contacts integration - finally searching for mom returns my mother's address! Kinda the whole reason I bothered entering it...

The half-hambuger bars on the lower left are unobtrusive but possibly too much for my tastes though as an engineering call I can see that there's enough subjectivity about it that either size is fine.

The layers are much simpler to select - LOVE IT! Wasn't obvious to me what the public transit layer does though. It doesn't have any stops listed as far as I can tell. It draws blue lines presumably along routes but I don't see any indication of meaning or use. Will check the docs but I like trying consumer apps out without reading the docs just to get a feel for the UX.

I never used latitude and honestly wish they'd just integrate fb location data but its removal seems to have decluttered the UI. Imho that's good :)