background preloader
Related:  Nieuwe werken

Exception Handling in ASP.NET MVC Index Introduction Exception handling is a serious matter in any application, whether it's web or desktop. In ASP.NET applications, error handling is done mostly in two ways: at local level using try-catch blocks and at global level using application events. In this article, we will learn about the HandleError filter and discuss about the different exception handling mechanisms that will fit to an MVC application. HandleError Attribute Exception filters The exception filters are attributes that can be applied over an action or a controller or even at a global level. All the exception filters implements the IExceptionFilter interface. Listing 1. The HandleErrorAttribute is the default implementation of the IExceptionFilter. Listing 2. What the HandleError filter does? The HandleError filter handles the exceptions that are raised by the controller actions, filters and views, it returns a custom view named Error which is placed in the Shared folder. Error View Listing 3. Listing 4. Listing 5.

Welcome to the Bossless Company How to Use 43 Folders A very simple guide to leaving here quickly so you can get back to making something awesome. Ask yourself… Why am I here right now instead of making something cool on my own? What’s the barrier to me starting that right now? This is not an insult or put-down. What Sucks? Looking for specific answers to what sucks for you today? More ideas Still sucking? Still Lost? Try a mental sweep, do a shitty first draft, or consider a modest change. Maybe just get away from the computer for a while by taking a nice walk. How to Know When You’re Done Here You’re done here whenever you’ve found just enough information to get you back on track for today. We love having you visit with us here, and we hope you’ll return many times — whenever you think we might have something that might help you get over the hump. The Only “Productivity” That Matters The best advice we can offer is to just put your head down, push yourself harder, and try to figure out what you need to change today to get a little better.

Valve: How I Got Here, What It’s Like, and What I’m Doing It all started with Snow Crash. If I hadn’t read it and fallen in love with the idea of the Metaverse, if it hadn’t made me realize how close networked 3D was to being a reality, if I hadn’t thought I can do that, and more importantly I want to do that, I’d never have embarked on the path that eventually wound up at Valve. By 1994, I had been working at Microsoft for a couple of years. One evening that year, while my daughter was looking at books in the Little Professor bookstore on the Sammamish Plateau, I happened to notice Snow Crash on a shelf. About the same time that it became clear I wasn’t going to be allowed to start that project, John Carmack, fresh from writing Doom at Id Software, came to Seattle to visit his mother, and we went to dinner at Thai Chef. Working with John was like the sequence in “The Matrix” where Neo has one martial art after another pumped into his brain. Going back to Microsoft was arguably not the best decision I ever made, but neither was it final.

How to: Deploy a Database With a Web Application Project The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location. When you prepare to deploy a Web application project that uses one or more SQL Server databases, you can enter settings that specify database scripts that must run during deployment. These settings apply whether you deploy by using one-click publish or by using a Web deployment package. The first two procedures in this topic provide instructions for specifying database information to deploy when the database does not already exist in the destination environment. You use the Package/Publish SQL tab of the project Properties page to configure settings that determine which scripts will run during deployment. To specify databases to deploy After you have specified the databases to deploy, you can enter settings for each database. To enter settings for a database To redeploy without database changes

Maak spelers van je werknemers: gamification bij het contact center van Knab - Frankwatching Er is al aanzienlijk geblogd over gamification, maar het volledig plaatje blijft vaak hangen op losse aanbevelingen. De essentiële bouwstenen zijn voor de meesten wel duidelijk, maar dan komt de vraag: ‘how to make it happen’. Om meer duidelijkheid te scheppen zal ik jullie, aan de hand van een recente invoering van een business game, meenemen in het hele proces. Deze case study betreft het contact center van de bank Knab. De mix aan verschillende aspecten als fun, spel, player journey en experience én de ontwikkeling van meetbare en vooral duurzame systemen om zakelijke doelstellingen te dienen zal ik hier structureren in een stappenplan. Gamification, wat is het ook alweer? Maar voordat we de stappen van het proces doorlopen, nog even een keer de definitie van gamification. Games zijn gewild en succesvol. Stap 1: Definieer de doelen Start met het boven water halen van de strategische doelstellingen. Tip: Stel een lijst op met potentiële doelstellingen. Meet het beoogde gedrag Look & Feel

Geolocation API Specification Abstract This specification defines an API that provides scripted access to geographical location information associated with the hosting device. Status of This Document This section describes the status of this document at the time of its publication. This document was published by the Geolocation Working Group as a Last Call Working Draft on @@ May 2014. it merged errata into the Geolocation API v1 Recommendation, which was published on October 24, 2013.This document is intended to become a W3C Recommendation. Publication as a Last Call Working Draft does not imply endorsement by the W3C Membership. Comments on the document should be sent to the Working Group's public mailing list (subscribe, archives). This document has been produced by the W3C Geolocation Working Group, following the procedures set out for the W3C Process, with the intention of advancing it along the W3C Recommendation track. Table of Contents 1 Conformance requirements 2 Introduction 3 Scope The

How To Survive A Death March I suspect that everyone reading this has worked truly insane hours at one time or another. And you've probably suffered the consequences. So as my first post for Charlie's blog, here's something slightly different: a survival guide to working insane hours, based on many years in the film industry watching dawn break from my chair in the edit suite. Whilst I've been thinking about topics for guest-posting, I've spent some time considering what writers like Charlie and moviemakers like me have in common. I'd say I recall staying up for more than 72 hours to finish the trailer for my first film. The trailer was bloody terrible, too. Since then, I've ended up in the hundred-hour work week club at least once a year for various things. And right at the moment, I personally know at least three readers of this blog who are doing massive death marches on individual projects. So I thought I'd share some tips I've picked up over the years of injudicious working hours... That's half the equation.

How to: Protect Against Script Exploits in a Web Application by Applying HTML Encoding to Strings Most scripting exploits occur when users can get executable code (or script) into your application. By default, ASP.NET provides request validation, which raises an error if a form post contains any HTML. You can help protect against script exploits in the following ways: Perform parameter validation on form variables, query-string variables, and cookie values. This validation should include two types of verification: verification that the variables can be converted to the expected type (for example, convert to an integer, convert to date-time, and so on), and verification of expected ranges or formatting. HTML encoding converts HTML elements using HTML–reserved characters so that they are displayed rather than executed. To apply HTML encoding to a string