Category Archives: Software

Drawing curved text in canvas and svg

Understanding Canvas Transformations http://jsfiddle.net/LJLpZ/1/ Test your understanding. WAP (write a program) to display circular text: http://jsfiddle.net/Keuy6/ http://jsfiddle.net/3cKN3/ Draw text along a curved path: http://jsfiddle.net/ymrdb/ Problems: 1. The characters are not equidistant. This is because the points on the polyline are … Continue reading

Posted in Software | Leave a comment

Debugging BadImageFormatException

This is an exception that I dread and that has cost me countless hours of debugging. If this exception is happening in context of a web app, and your web app is 64 bit application, check that Enable 32 bit … Continue reading

Posted in Software | Leave a comment

EfGen.exe – a command line tool for automatic generation of Entity Framework DLL

Download EfGen.exe is a command line tool to automate the EDM Wizard in Visual Studio. While working with Entity Framework, I consider it a best practice to create a stand-alone dll that contains all the code Entity Framework (EF) generates … Continue reading

Posted in Software | 18 Comments

MSBuild Notes

Use .rsp file to pass command line arguments to msbuild from a file (similar to the way .config files work) PropertyGroup contains properties. A property is a key-value pair. The value is a scalar. Properties are referenced using the $(PropertyName) … Continue reading

Posted in Software | Leave a comment

Programming TFS

References: http://blogs.msdn.com/b/buckh/archive/2012/03/10/team-foundation-version-control-client-api-example-for-tfs-2010-and-newer.aspx http://msdn.microsoft.com/en-us/magazine/jj553516.aspx http://msdn.microsoft.com/en-us/magazine/jj883959.aspx Common Tasks: Download all files under a directory: Check if a file exists in TFS: Enumerate all the workspaces:

Posted in Software | Leave a comment

Understanding WCF Faults

Summary: FaultExceptions don’t fault the channel. All other unhandled exceptions fault the channel. It doesn’t matter what is there in the FaultContract, or if there is even one. When you are doing development, set includeExceptionDetailInFaults equal to true on server. … Continue reading

Posted in Software | Leave a comment

Calculating WCF message size

on service: service host: client: client: I have to say for a long time I couldn’t figure out how to tidy the formatting of my code. Finally I discovered how to do it: http://en.support.wordpress.com/code/posting-source-code/

Posted in Software | Leave a comment

Google App Engine Setup Revised

Installation: install python 2.7 Get it from here: https://code.google.com/p/pythonxy/wiki/Downloads?tm=2 install app engine sdk. get it from https://developers.google.com/appengine/downloads download gdata from https://code.google.com/p/gdata-python-client/downloads/list install git for windows from http://git-scm.com/download/win install unittest2 from https://pypi.python.org/pypi/unittest2 (to install: python.exe setup.py install) install python tools for … Continue reading

Posted in Software | Leave a comment

Debugging tips

Breaking into external code: http://www.aaronlerch.com/blog/2007/08/31/tip-set-breakpoints-without-source-code-in-visual-studio-2005/ except that I tried, and it didn’t work. If you don’t see the Unhandled column under Debug->Exceptions, its because Enable Just My Code is unchecked To debug .net code, see this link: http://weblogs.asp.net/rajbk/archive/2010/04/21/setting-up-visual-studio-2010-to-step-into-microsoft-net-source-code.aspx Check Debug->Options … Continue reading

Posted in Software | Leave a comment

Github Notes

To push to github once repository is setup: git push origin master

Posted in Software | Leave a comment