May 2011 Entries
Getting Started System Requirements · Install the following prerequisites: o VS2010 sp1 - Microsoft Visual Studio 2010 Service Pack 1. o Multi-Targeting Pack for Microsoft .NET Framework 4 Platform Update 1 (KB2495638) http://support.microsoft.co... o runtime update (KB2478063) http://www.microsoft.com/do... · Set the Target Framework - project > Properties > Application tab – set the project's target framework is .NET...
This afternoon I Built a mechanism for mapping Enums to Lookup Tables in EF Code First - using complex types and implicit operators. The steps are as follows: Step 1 – the Enum // Avoid 0 values – SQL INT default value public enum JobInstanceStateEnum : int { Ok = 1, MissingResources = 2, DataFailure = 3, Aborted = 4 } Step 2 – the POCO for generating the Lookup Table // As we are using id as FK, and it must match the enum, overide convention of identity keygen public class JobInstanceStateLookup...
I recently read an informative and succint book - A mathematician Plays the Market, by John Allen Paulos. Heres my summary of key points: Behavioral finance · Anticipating other's anticipations · A trading strategy can yield the illusion of effectiveness, when only chance is at work. · Keynes - short-term investors anticipate what average opinion expects the average opinion to be. · Distinction between being smart & rich, and distinction between being right & being right about the market....