FIX: Unable to cast object of type ‘Microsoft.Xrm.Sdk.Entity’ to type “Your Entity Class”

Posted by | c# | One Comment

If you ever come accross this while using the Microsoft Dynamics SDK Proxy

Unable to cast object of type 'Microsoft.Xrm.Sdk.Entity' to type "Your Entity Class"

The solution

Where you create your service proxy instance, make sure you ‘Enable Proxy Types’ (see line 2)

example


OrganizationServiceProxy orgProxy = new OrganizationServiceProxy(organizationUri, null, credentials, null);
orgProxy.EnableProxyTypes();

IOrganizationService service = (IOrganizationService)orgProxy;

How to: Turn off or Disable Ember.js Router

Posted by | javascript | No Comments

Ember really strongly pushes you to use Ember only for pure Ember web applications. Though there are a few of us that like to nest Ember just for a single component on a webpage. While it can be debated that Backbone or Angular is better suited to this situation I personally still really like to use Ember.

Read More

Using the pseudo ::before and ::after elements

Posted by | CSS | No Comments

CSS ::before and ::after pseudo elements having been gathering quite a bit of attention lately in the front end developer scene. They have actually been around since CSS 2.1, you might have even seen them used in a utility clearfix class that has been around for years. However more recently we are starting to see some pretty cool stuff done with them for instance pure css GUI icons.

Read More

How to: Fix “assertion failed: Ember.Object.create no longer supports defining methods that call _super.”

Posted by | javascript | No Comments

In previous versions of Ember the Ember.Object.create and Ember.Object.extend would behave very similar. You could pass in your overrides/mixins and methods that call _super. However supporting this is very expensive and usually an unnecessary overhead. During normal run-time we need very few extends, actually mostly only during set up, but we do lots of creates which must incur the penalty of supporting these unnecessary features. Read More

objective-c singleton macro that supports both ARC enabled and disabled projects

Posted by | objective-c | 3 Comments

Im a big fan of Matt Gallagher’s singleton macro and have been using a slightly modified version of it by Oliver Jones.

Lately however I’ve been enabling ARC in my projects and came across the problem of including the macro only to have xcode whinge to me about all the release methods. I’m using a library so I wanted my macro to support both environments. I initially went back to Matt’s macro to see if he perhaps updated for this situation but it seems not so. I was also surprised to see that i couldn’t really find any thing else useful on the subject.

Read More

How to create a Tweet Sheet the correct way in iOS 5

Posted by | objective-c | One Comment

With the many new features introduced in iOS 5 I was particularly excited about the new Twitter.framework. Apple customers can now enjoy the pleasures of having their Twitter accounts baked right into the OS granting access to the twitter-verse from every nook and cranny in the device. While developers can now integrate twitter into their apps much faster and more easily than it has ever been before.

Read More