Geeks With Blogs

  • JReuben1 AngularJS Directive templateUrl --> halfway to W3C WebComponents ! about 659 days ago
  • JReuben1 Yeoman AngularJS generator - generate controllers, views, routes, services - NICE! about 660 days ago
  • JReuben1 A comparison of HTML5 Canvas 2D JS libs KineticJS , EaselJS, fabric.js, Paper.js, processing.js seen as the leaders about 661 days ago

Josh Reuben May 2011 Entries
Entity Framework 4.1 Code First – Mapping Enums to Lookup Tables
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 ......

Posted On Wednesday, May 18, 2011 3:57 PM

Maths and Markets
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. ......

Posted On Wednesday, May 11, 2011 5:24 AM

Copyright © JoshReuben | Powered by: | Join free