This is another straight forward "lessons learned" kind of post. The last week I've been working on a side project at work for the "Innovation" team. We're tasked with creating a paperless timecard system for the agency, and I've taken on the piece that interfaces with the Google APIs to save the timecards.
Friday, March 6, 2015
Monday, February 16, 2015
Microsoft 70-486: Compose the UI layout of an application
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 2.3
Programming ASP.NET MVC 4 (OReilly) - Chapter 1 (§ on Views), 6 (§ on partial rendering)
Professional ASP.NET MVC 5 (WROX) - Chapter 3 (Views)
Pluralsight Building Applications with ASP.NET MVC 4 (Module 3)
What is difference between @Html.Partial and @Html.RenderPartial ?
Text templating using Razor the easy wayProgramming ASP.NET MVC 4 (OReilly) - Chapter 1 (§ on Views), 6 (§ on partial rendering)
Professional ASP.NET MVC 5 (WROX) - Chapter 3 (Views)
Pluralsight Building Applications with ASP.NET MVC 4 (Module 3)
What is difference between @Html.Partial and @Html.RenderPartial ?
How to create custom HTML Helpers for ASP.NET MVC 3
Tuesday, February 3, 2015
Microsoft 70-486: Design HTTP modules and handlers
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 1.7
ASP.NET HTTP Modules and HTTP Handlers Overview
How To Create an ASP.NET HTTP Handler by Using Visual C# .NETASP.NET HTTP Modules and HTTP Handlers Overview
Wednesday, January 28, 2015
Microsoft 70-486: Plan an adaptive UI layout
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 2.5
Programming ASP.NET MVC 4 (OReilly) - Chapter 10 (Mobile Web Development)
Professional ASP.NET MVC 5 (WROX) - Chapter 16 (Advanced Topics - Mobile Support)
MSDN - Creating Mobile-Optimized Views in ASP.NET MVC 4
jQuery Mobile Official Site
YouTube: jQuery Mobile 101, Intro to jQuery Mobile
ASP.NET MVC 4 Mobile Features
Programming ASP.NET MVC 4 (OReilly) - Chapter 10 (Mobile Web Development)
Professional ASP.NET MVC 5 (WROX) - Chapter 16 (Advanced Topics - Mobile Support)
MSDN - Creating Mobile-Optimized Views in ASP.NET MVC 4
jQuery Mobile Official Site
YouTube: jQuery Mobile 101, Intro to jQuery Mobile
ASP.NET MVC 4 Mobile Features
Sunday, January 18, 2015
Microsoft 70-486: Enhance application based on browser feature detection
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 2.4
Programming ASP.NET MVC 4 (OReilly) - Chapter 10 (Mobile Web Development)
Professional ASP.NET MVC 5 (WROX) - Chapter 16 (Advanced Topics - Mobile Support)
MSDN - Detecting devices and their features
MozDN - Browser detection using the user agent
Browser detection versus feature detection
Programming ASP.NET MVC 4 (OReilly) - Chapter 10 (Mobile Web Development)
Professional ASP.NET MVC 5 (WROX) - Chapter 16 (Advanced Topics - Mobile Support)
MSDN - Detecting devices and their features
MozDN - Browser detection using the user agent
Browser detection versus feature detection
Thursday, January 15, 2015
Fun with Coordinates: A story about using JavaScript to do things the hard way.
Went to a training class this morning on using Google's MyMaps. Interesting enough, though I don't see myself ever really using it. For the uninitiated, this application lets you upload a spreadsheet of locations with a bunch of metadata, and you can manipulate the visualization. Well, the map pointers are placed based on either an address or a lat and long. The presenter noted that she wasn't sure if you could use UTM or State Planar Coordinate System coordinates. Because I had pretty much exhausted my interest in playing with the MyMaps interface in about 10 minutes, I took it as a challenge to obtain and test a UTM data set. I did a search for an available dataset but didn't find anything useful, however I had at my disposal a Google Sheets spreadsheet that had the Wyoming zip codes with latitudes and longitudes (basically a truncated version of this file). "So I'll just convert the ones I have, easy..." BWAHAHAHA ok, we'll get to what that was about.
Wednesday, January 14, 2015
Microsoft 70-486: Design and implement UI behavior
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 2.2
Programming ASP.NET MVC 4 (OReilly) - Chapters 3 (Data Annotation, 4 (Client Programming) and 6 (AJAX)
Professional ASP.NET MVC 5 (WROX) - Chapters 6 (Data Annotation) and 8 (AJAX)
Programming ASP.NET MVC 4 (OReilly) - Chapters 3 (Data Annotation, 4 (Client Programming) and 6 (AJAX)
Professional ASP.NET MVC 5 (WROX) - Chapters 6 (Data Annotation) and 8 (AJAX)
MSDN - Models and Validation in ASP.NET MVC
JQuery UI documentation
Model binding, Data Annotation, and Custom HTML Helpers
JQuery UI documentation
Model binding, Data Annotation, and Custom HTML Helpers
Previous blogs relevant to objective:
JavaScript: client side validation, handle events, interact with DOM, apply styling programmatically,
objects and methods, scope, AJAX and JQuery
objects and methods, scope, AJAX and JQuery
Thursday, January 8, 2015
Microsoft 70-486: Apply the user interface design for a web application
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 2.1
Static vs. Dynamic Content
MSDN - HtmlHelper, HtmlHelperExtensions
Previous blogs relevant to objective:
HTML: Basic HTML, HTML Forms
CSS: Style Layout, Style Text, Selectors, Animation, Cascading
Static vs. Dynamic Content
MSDN - HtmlHelper, HtmlHelperExtensions
Previous blogs relevant to objective:
HTML: Basic HTML, HTML Forms
CSS: Style Layout, Style Text, Selectors, Animation, Cascading
Friday, January 2, 2015
Microsoft 70-486: Implement a secure site with ASP.NET
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 5.5
Programming ASP.NET MVC 4 (OReilly) - Chapter 9
How does HTTPS actually work?
MSDN - TLS Handshake Protocol
DigiCert - SSL Certificate Installation in Microsoft IIS 8 and IIS 8.5
Microsoft - Enable HTTPS for an Azure website
Asp.net Identity password hashing - MSDN PasswordHasher Class
Hashing Passwords using ASP.NET's Crypto Class - MSDN Crypto Class Programming ASP.NET MVC 4 (OReilly) - Chapter 9
How does HTTPS actually work?
MSDN - TLS Handshake Protocol
DigiCert - SSL Certificate Installation in Microsoft IIS 8 and IIS 8.5
Microsoft - Enable HTTPS for an Azure website
Asp.net Identity password hashing - MSDN PasswordHasher Class
Password management made easy in ASP.NET with the Crypto API
XSS Cross Site Scripting Demonstration - Short Video
Introduction to XSS Cross Site Scripting Injection Vulnerabilities - Short Video
MSDN - Differences Between AntiXss.HtmlEncode and HttpUtility.HtmlEncodeIntroduction to XSS Cross Site Scripting Injection Vulnerabilities - Short Video
owasp.org - ASP.NET Request Validation
Prevent CSRF and Deferred Validation
owasp.org - Cross-Site Request Forgery (CSRF) Prevention Cheat Sheet
Asp.net - XSRF/CSRF Prevention in ASP.NET MVC and Web Pages
owasp.org - Cross-Site Request Forgery (CSRF) Prevention Cheat Sheet
Asp.net - XSRF/CSRF Prevention in ASP.NET MVC and Web Pages
Friday, December 5, 2014
BoxBlaster: Real time gaming demo with Signalr and Azure
I wanted to do something more interesting than a chat room using Signalr, so in the long standing tradition of going way over the top and biting off more than I can chew, I decided I would build a multiplayer shooter game using Signalr. Over the long Thanksgiving holiday, much to my wife's chagrin, I stole every free moment to build this demo. I gotta say I'm pretty happy with the results.
You can check out the latest version of the code on GitHub: github.com/sabotuer99/BoxBlaster.

Wednesday, November 26, 2014
Microsoft 70-486: Design and implement a WebSocket strategy
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 1.6
Programming ASP.NET MVC 4 (OReilly) - Chapter 11
OReilly - Websockets
Programming ASP.NET MVC 4 (OReilly) - Chapter 11
OReilly - Websockets
Channel 9 - Building real-time web apps with HTML5 WebSockets - 1 hour video, Client side
MSDN - WebSockets: Stable and Ready for Developers
Channel 9 - Building apps with WebSockets using IIS, ASP.NET and WCF - 1 hour video, Server side
Channel 9 - Web Dev Futures Day Session 5: Building real-time apps with WebSockets
Channel 9 - Building Real-Time Applications with ASP.NET SignalR
Channel 9 - Damian Edwards and David Fowler Demonstrate SignalR
Microsoft Virtual Academy - Lighting Up Real-Time Web Communications with SignalR
Simple server implemtation in C# EchoHandler.ashx.cs
MSDN - WebSockets: Stable and Ready for Developers
Channel 9 - Building apps with WebSockets using IIS, ASP.NET and WCF - 1 hour video, Server side
Channel 9 - Web Dev Futures Day Session 5: Building real-time apps with WebSockets
Channel 9 - Building Real-Time Applications with ASP.NET SignalR
Channel 9 - Damian Edwards and David Fowler Demonstrate SignalR
Microsoft Virtual Academy - Lighting Up Real-Time Web Communications with SignalR
Simple server implemtation in C# EchoHandler.ashx.cs
Tutorial: Getting Started with SignalR 2
Introduction to Scaleout in SignalR
My Post - Microsoft 70-480: Implement a callback (WebSockets)
Introduction to Scaleout in SignalR
My Post - Microsoft 70-480: Implement a callback (WebSockets)
Tuesday, October 21, 2014
Microsoft 70-486: Design a caching strategy
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 1.5
Programming ASP.NET MVC 4 (OReilly) - Chapter 12
Understanding Caching in Asp.Net MVC with example
Using VaryByCustom With OutputCache in ASP.NET MVC
MSDN - Caching Multiple Versions of a Page (How tos)
Output Caching in MVC 4 Explained
MSDN - OutputCacheAttribute Class, OutputCacheParameter Class
Output Caching Actions Gotcha in ASP.NET MVC 3
Donut Output Caching in ASP.NET MVC 3
Asp.net MVC4 – Donut Caching & Donut Hole Caching
Donut Hole Caching In ASP.NET MVC
Cache Exploration in ASP.NET MVC 3
Programming ASP.NET MVC 4 (OReilly) - Chapter 12
Understanding Caching in Asp.Net MVC with example
Using VaryByCustom With OutputCache in ASP.NET MVC
MSDN - Caching Multiple Versions of a Page (How tos)
Output Caching in MVC 4 Explained
MSDN - OutputCacheAttribute Class, OutputCacheParameter Class
Output Caching Actions Gotcha in ASP.NET MVC 3
Donut Output Caching in ASP.NET MVC 3
Asp.net MVC4 – Donut Caching & Donut Hole Caching
Donut Hole Caching In ASP.NET MVC
Cache Exploration in ASP.NET MVC 3
MSDN - Walkthrough: Using ASP.NET Output Caching with SQL Server
A Beginner's Tutorial for Understanding and Implementing Caching in ASP.NET MVC
MSDN - Walkthrough: Caching Application Data in ASP.NET
Buffering Exploration in ASP.NET MVC 3 - Data Caching
A Beginner's Tutorial for Understanding and Implementing Caching in ASP.NET MVC
MSDN - Walkthrough: Caching Application Data in ASP.NET
Buffering Exploration in ASP.NET MVC 3 - Data Caching
Asp.net - Data caching in ASP.Net applications
Tutorial - ASP.NET Data Caching (Object Caching)
How to use the System.Web.Caching.Cache Object – ASP.NET Data Caching
How to use the System.Web.Caching.Cache Object – ASP.NET Data Caching
How do I add site-wide no-cache headers to an MVC 3 app
A Beginner's Guide to HTTP Cache Headers, W3 Header Spec
Google Developers - HTTP caching
A Beginner's Guide to HTTP Cache Headers, W3 Header Spec
Google Developers - HTTP caching
MSDN - Introducing the Microsoft Azure Caching Service
MSDN - Azure Managed Cache Service
Lap around Azure Redis Cache (video) (MSDN Azure Redis Cache)
MSDN - Which Azure Cache offering is right for me?
How to Use Azure Managed Cache ServiceAzure Documentation - Cache
MSDN - Azure Managed Cache Service
Lap around Azure Redis Cache (video) (MSDN Azure Redis Cache)
MSDN - Which Azure Cache offering is right for me?
How to Use Azure Managed Cache ServiceAzure Documentation - Cache
MVC and the HTML5 Application Cache
MSDN - Application Cache API ("AppCache")
Html5 Offline Cache Integration with ASP.NET MVC Bundle
Application Cache is a douchebag
MSDN - Application Cache API ("AppCache")
Html5 Offline Cache Integration with ASP.NET MVC Bundle
Application Cache is a douchebag
Monday, September 8, 2014
Microsoft 70-486: Configure state management
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 1.4
Programming ASP.NET MVC 4 (OReilly) - Chapters 2, 12
Pro C# 5.0 and the .NET 4.5 Framework - Chapter 34
MSDN - <sessionState> Element
Session-less Controllers in ASP.NET MVC 3 RC
MSDN - How to: Add Items to the Cache
MSDN - Caching in .NET Framework Applications
Programming ASP.NET MVC 4 (OReilly) - Chapters 2, 12
Pro C# 5.0 and the .NET 4.5 Framework - Chapter 34
MSDN - <sessionState> Element
Session-less Controllers in ASP.NET MVC 3 RC
MSDN - How to: Add Items to the Cache
MSDN - Caching in .NET Framework Applications
MSDN - ASP.NET Caching: Techniques and Best Practices
MSDN - Cache Class
MSDN - ASP.NET Application State Overview
MSDN - ASP.NET State Management Overview and RecommendationsMSDN - Cache Class
MSDN - ASP.NET Application State Overview
MSDN - HttpRequest.QueryString Property
State Management and Scalability
State Management and Scalability
Fast, Scalable, and Secure Session State Management for Your Web Applications
Web Development Best Practices (Building Real-World Cloud Apps with Azure)
Two Ways of Passing HTML5 Web Storage Data to ASP.NETWeb Development Best Practices (Building Real-World Cloud Apps with Azure)
Friday, September 5, 2014
ASP.NET MVC Unit Testing Part 4: The Tests and What Was Learned
So, now that the project is refactored with interfaces, I have fake data, and a fake environment, it's time to run some unit tests! Whoohoo! I'll go over some of the basic tests and also cover what I learned over all throughout the unit testing process.
Thursday, September 4, 2014
ASP.NET MVC Unit Testing Part 3: Faking the Environment (HttpContext)
So I have my fake data, but I also need to address additional dependencies that are not as obvious. These dependencies arise from the use of User and Request, which are properties of the HttpContext. Because you apparently can't assign HttpContext directily, you have to create a fake ControllerContext.
ASP.NET MVC Unit Testing Part 2: Faking the Database
Now that the production code is all set up, it's time to create the fakes that I'll inject for my unit tests. Rather than connecting to the production database, I want my unit tests to use an in memory dataset so they will run lightning fast. There are limitations to using in memory data (in effect substituting LINQ to Object for LINQ to Entities) which I will address in another post.
ASP.NET MVC Unit Testing Part 1: Set up
So, a little background here first. I'm pretty new to .NET programming, having only started my first developer job just this past March. My one and only performance management goal was to implement some unit testing. Simple right? Well my first feeble attempts involved trying to add unit tests to a traditional ASP.NET program... come to find out unit testing code behind files is a fools errand. Did manage to test come CRUD on a service class, but all in all it wasn't that useful. I was also attached to a new development project called Education Assistance (EA around the water cooler) that was using MVC. I'd read that MVC was much easier to unit test so I figured that would be a possibility at some point. Of course, first I had to learn a little about MVC. I worked through a few tutorials, a couple of which actually covered unit testing. So now I knew just enough to get myself in trouble.
Tuesday, June 17, 2014
Microsoft 70-486: Design and implement the Azure role life cycle
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 1.3
MSDN - Channel 9 Cloud Services Tutorial
MSDN - Channel 9 Windows Azure Jump Start (03): Windows Azure Lifecycle, Part 1, Part 2
MSDN - Channel 9 Cloud Services Tutorial
MSDN - Channel 9 Windows Azure Jump Start (03): Windows Azure Lifecycle, Part 1, Part 2
MSDN - Use AppCmd.exe to Configure IIS at Startup
MSDN - Windows Azure Start-up Tasks Part 1, Part 2
MSDN - Run Startup Tasks in Azure, Best Practices
MSDN - RoleEntryPoint Methods
MSDN - The Right Way to Handle Azure OnStop Events
MSDN - Azure Cloud Service Tutorial
MSDN - Windows Azure Start-up Tasks Part 1, Part 2
MSDN - Run Startup Tasks in Azure, Best Practices
MSDN - RoleEntryPoint Methods
MSDN - The Right Way to Handle Azure OnStop Events
MSDN - Azure Cloud Service Tutorial
Saturday, June 7, 2014
Microsoft 70-486: Design a distributed application
Exam Objectives
Quick Overview of Training Materials
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications - Objective 1.2
Programming ASP.NET MVC 4 (OReilly) - Chapters 7 (Web API), 2 (State mgmt)
How to add Web API to existing MVC 4 project
MSDN - WCF Services and ASP.NET
Programming ASP.NET MVC 4 (OReilly) - Chapters 7 (Web API), 2 (State mgmt)
How to add Web API to existing MVC 4 project
MSDN - WCF Services and ASP.NET
Web API Study: The Benefits of APIs in the App Economy
Web API Design : Crafting Interfaces that Developers Love
MSDN - .NET On-Premises/Cloud Hybrid Application Using Service Bus Relay
MSDN - ASP.NET Session State Overview, Session-State ModesWeb API Design : Crafting Interfaces that Developers Love
MSDN - .NET On-Premises/Cloud Hybrid Application Using Service Bus Relay
MSDN - Technet - About Server Farms, Server Affinity Page
Make an ASP.NET MVC application Web Farm Ready
Out-of-Process Caching in ASP.NET
Tuesday, June 3, 2014
Comparing ASP.NET MVC tutorials: OdeToFood, Nerddinner, and MVC Music Store
I worked through three ASP.NET MVC tutorials: NerdDinner, OdeToFood, and MVC Music Store. All had their pro's and con's, and I definitely learned much from them. The pluralsight tutorial OdeToFood was, far and away, the best put together tutorial of the bunch, and if you had to pick one, that would be the one to do. NerdDinner wasn't bad but is showing it's age as it was developed using MVC2 (though I thought I saw something about updates...). The MVC Music Store tutorial also had a lot of interesting stuff but I would have to consider it the weakest of these three tutorials.
Subscribe to:
Posts (Atom)