Search This Blog

Wednesday, April 18, 2012

How to see the real error coming from Web API

link -> Custom errors and error detail policy in ASP.NET Web API | Jimmy Bogard's Blog:
Instead of relying on a lot of XML configuration, Web API uses a lot of programmatic configuration. This helps self hosting, but for changing policies like error detail, we have to change the code, re-compile and re-deploy. To set the error policy in our application, we need to modify our global Web API configuration
I was wondering the other day how to get the real error. I like the example he shows on how to read web.config and make it work like ASP.NET

Wednesday, March 28, 2012

Use ASP.NET Trace to figure out what went wrong

link -> How to: View ASP.NET Trace Information with the Trace Viewer:
I tried this on my local machine and it worked pretty well. Unfortunately I didn't have permissions to enable it on the machine that had the problem.

Web API is open source now

link -> ASP.NET MVC, Web API, Razor and Open Source - ScottGu's Blog:
I have run into some problems and couldn't figure out what to do. Hopefully having the ability to look at the code will help me be able to figure out what I am doing wrong.

Saturday, March 17, 2012

I love Atlassian's REST API Design Guidelines

link ->Atlassian REST API Design Guidelines version 1 - REST APIs:
If we go with creating a public API we should totally steal this as our coding standard. I really love their expand idea. I have been wondering how we should handle cross aggregate references. I think what they did makes total sense.

Monday, March 5, 2012

Saturday, March 3, 2012

Give it five minutes

link -> Give it five minutes - (37signals):
I think my friend Jerry may have shared this link for my benefit. I am going to give it a try.

Tuesday, February 21, 2012

Friday, February 17, 2012

12 part series on how to use NHibernate's new mapping by code feature

link -> NOtherDev: NHibernate's mapping-by-code - the summary:
Wow this seems like a really good way on how to learn the new mapping by code feature in NHibernate. Even shows the Fluent equivalent.

Wednesday, February 15, 2012

Models and Forms still separate in ExtJS 4

link -> [B3] MVC RestProxy and Form validation:
We built store bound data controls because Ext doesn't let you do a two way data bind between a control and a Record. Even in ExtJS4 they still haven't fixed this. You have to manually call updateRecord on your form to update your Model with whatever the user has entered. Even worse if you are trying to use the RestProxy then there is no way to bind the errors you get back automatically to your form. The guy in this article figured out a way to do it manually.

Edit:
Some guy figured out how fix this by overriding the Ext core code.
https://github.com/devilry/devilry-django/issues/112

Monday, February 13, 2012

Possible Phone Solution For My Extreme Cheapness

link -> T-Mobile Prepaid and an Unlocked iPhone 3GS:
I can keep my pay as you go plan. Plus you can sign up for a day pass for data connection on the fly if I really need it. I guess I need to setup a watch on ebay to find a cheap 3GS.

Monday, January 30, 2012

Thursday, January 26, 2012

How you know if you are doing REST right

JWTUMOIM: Act 3:
Here is page that is the opposite of you are doing it wrong. It explains the different levels of how you know if you are doing REST right and why each step is important.

Tuesday, January 24, 2012