Category: Random Coding

  • XamarinForms – Overriding a ContentPage with a custom PageRenderer on Android

    The short version: If you want to have default behavior on all platforms except for Android. Do the following Create your content page with all of it’s goodies Create a custom PageRenderer In the OnElementChanged function Cast the Context property of the renderer to the Activity type associated Take that value and execute the SetContentView method while passing…

  • ** Update ** EntityFramework detecting complex type with database first

    Originally, I posted a question on StackOverflow http://stackoverflow.com/questions/21630431/entityframework-detecting-complex-type-with-database-first While we’re still not using complex types, we’ve worked out a mechanism to preventing our developers from breaking the autogenerated models when re-generating from the DB. We’ve altered the T4 template generated by EF. First we’ve created a method in the CodeStringGenerator class public string BaseClassAndInterfaces(EntityType entity)…

  • Gitmongous Distributed Repositories

    So it’s been a little while as I’ve been busy assisting my beautiful wife on some projects she’s had, I’ve been at the tail end of a working marathon and finally I was on vacation last week. However, I’ve got a bit of free time now and I wanted to share an interesting downside of distributed…

  • 100 YouTube Subscribers!

    Yay! So I’ve reach a small milestone of 100 YouTube subscribers! Besides the one or two friends that I have, most of them have discovered me either via the TopCoding video 1 or the RandomCoding Visual Studio snippets video. After creating another 4 TopCoding videos, neither seemed to have the reigning success of the first video.…

  • Facebook Unity – Keystore missing

    So I just recently noticed that the Facebook team wrote a unity plugin to make your games easily integrate with Facebook! I’m super excited to get Conflicademia connected so off I went. Apparently, a while ago, I attempted this before and found an old Facebook assembly that I couldn’t get working. It also conflicted with…

  • It’s soooooo obvious!

    While using the Newtonsoft Json.Net library I received the error “Explicitly define an Id for the type using a JsonObject/JsonArray attribute or automatically generate a type Id using the UndefinedSchemaIdHandling property.” When attempting to generate a schema for some types that were created that have circular references. My types were created in EntityFramework database first…

  • Javascript is Evil – Curly brace indentation

    So I’m building a little DurandalJS SPA (single page app) test site tonight and while building the view model I do what I’ve typically done in the past when I run into Java curly brace convention, which is to plop that sucker down to the next line a la default VS C# convention. Little did…

  • Wix Windows Service – Start on install

    So I was building a wix setup project for a windows service and kept running into a wall while getting the service to start after a successful install. It kept giving me an error “Verify that you have sufficient privileges to start system services”. I searched through nearly 50 articles that led me on a…

  • Random Coding 3 didn’t happen… yet!

    Well, I was diligently playing with Nuget packaging and hoping to make a video where I create a Nuget package that hosts the VSIX that I created in random coding two. However, it seems as though Nuget doesn’t support installing a VSIX, item templates or project templates. I then sat back and thought “Unpossibleh!!!” I’m…

  • Confuzzled…

    So I was preparing materials for my “Random Coding 3” video episode and this time the subject was relating to Conflicademia in regards to the loading performance of Android and how to optimize your build in Unity so that the game has reasonable loading performance. However, as I was prepping my material and generating the relevant…