Posts

Showing posts from July, 2012

github–Clone in Windows button not working???

Make sure you’re logged into github in your web browser prior to clicking the clone for windows button . Silly as it sounds, this just cost me 20 minutes of my life. On the one hand, the webpage should tell you to log in (if you haven’t already done so) upon clicking the button. On the other hand, you can’t fix stupid :o)

ASP.NET MVC–Model Error Visualizer

Image
To scratch my own itch (so to speak), I created a Visual Studio visualizer for ASP.NET MVC, allowing ModelState errors to be seen at a glance. This is particularly useful when debugging async requests when and modelstate are not displayed on screen. The visualizer works on the ModelStateDictionary type, iterating through the dictionary and presenting any errors and the associated property name in a datagridview (see the below screenshots). I built this with VS2012 RC, but the code is simple enough that it should be trivial to modify it to work with older version of VS. The code and download are up on github. Just drop it into your Visual Studio 2012 Visualizers folder and you should be good to go. Feel free to use and abuse (and fork) it in whatever way your heart desires.   Links https://github.com/irwinj/ModelErrorVisualizer https://github.com/irwinj/ModelErrorVisualizer/downloads Visualizer in debug mode     Example For example, when I turn client-side validation off on t

Book Review–The Tangled Web

Image
Disclosure: I received a review copy of this title from O’Reilly   Oh, Cheryl, what a tangled web we weave when we something-something on Christmas Eve - According to Jim For obvious reasons the above quote came into my head every time I picked up The Tangled Web by Michal Zalewski . It always makes me smile… In The Tangled Web Mr. Zalewski paints a grim picture of web security, explaining in some detail the confluence of conflicting standards, incomplete RFCs, inconsistent browser behaviors and other anomolies that lead to today's current (spoiler alert: not good) state of web security. This title is different than any other I've read on web security. It isn't a web security handbook by any means - it is more a descriptive history of the evolution of web standards and languages, focusing on decisions made that impact web security to this day. The author delves into every aspect of the web - HTML, HTTP, CSS, scripting languages, browers, plugins, etc. in a