Category: Random Coding
-
Server upgrade!
I upgraded my server after 5 of so years and it is still as fun as ever to see the performance gains! I’ve seen this site load as fast as 300ms now and everything seems so silky! I’ve been on a weird productivity funk ever since my vacation two months ago and I can’t seem…
-
Blackjack – Card Counting trainer
The first release is finally complete! Download for Android on Google Play now! If you have an Android device, please feel free to download, learn and win at Blackjack! If you want offer me any feedback to make it better, I also super welcome the feedback. There is a bug that causes the game to…
-
Does Card Counting work in Black Jack?
I’ve heard a few times in passing that you can count cards and beat the casino in Black Jack. Over the years I spent a little time understanding the basic premise, but only got a shallow idea and never knew if it actually worked. I don’t often go to the casino and I have a…
-
EntityFramework – Migrations Gotchas
Wanting to be a little more thrifty on a side project, I decided to roll with MySQL and EntityFramework. There were a few gotchas, outside of the normal tutorial and I’m just putting this out here to save time for anyone else who may have had to deal with the issues I ran across. Data…
-
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…