Epic Blog of Awesome

code.tech.sci.math.art.write

Code First DataAnnotations

Entity Framework Code First modeling workflow allows you to use your own domain classes to represent the model which EF relies on to perform querying, change tracking and updating functions. Code first leverages a programming pattern referred to as convention over configuration. What this means is that code first will assume that your classes follow the conventions of the schema that EF uses for a conceptual model. In that case, EF will be able to work out the details it needs to do its job. However, if your classes do not follow those conventions, you have the ability to add configurations to your classes to provide EF with the information it needs.

via Code First DataAnnotations.

Gamasutra: Chris Hildenbrand’s Blog – 2D Game Art For Programmers – Part 1 [updated]

Creating your own art work is a necessity for most independent developers. Due to the budget restraints or in a lot of cases the complete lack of a budget a lot of young indie game developer can’t afford to hire an artist or buy art assets.

With the help of free software like gimp, inkscape, truespace, daz studio and vue pioneer (just to mention a few) combined with a basic understanding of art creation pretty much anyone can create impressive and professional looking results.

via Gamasutra: Chris Hildenbrand's Blog – 2D Game Art For Programmers – Part 1 [updated].

Testing web service remotely: The test form is only available for requests from the local machine

When testing a web service I often saw “The test form is only available for requests from the local machine.” There are very legitimate security reasons why this is by default the case. But when I want to be able to test my web service remotely and security isn’t an issue, I can work around this issue by modifying your web.config to include these nodes:

<configuration>
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet"/>
        <add name="HttpPost"/>
      </protocols>
    </webServices>
  </system.web>
</configuration>

via .net – “The test form is only available for requests from the local machine.” – Stack Overflow.