Doubleclick tags – how it works

May 18, 2012 admin Web Design

Quite note, more to myself really, about how Doubleclick ad tagging works. – ad set up in DFP – targetingcriteria set using various key-value pairs – server side calls marketing service provider web service to get data about customer, passing in user ID from cookie – server side component written to dynamically generate javascript code; [...]

More

0

HTTP Slow Vulnerability

April 19, 2012 admin Security

A relatively new vulnerability is the appropriately named HTTP slow attack that exploits how HTTP works. HTTP slow vulnerability is a DDos attack based on the way HTTP works. HTTP will only process requests once it has received a full header. If an attacker sends this in chunks over a large period of time then [...]

More

0

Multiple submit buttons in a single ASP.NET MVC Form

April 16, 2012 admin ASP.NET

Thanks to Andrey Shchekin for this, copied below in case his blog disappears. public class HttpParamActionAttribute : ActionNameSelectorAttribute { public override bool IsValidName(ControllerContext controllerContext, string actionName, MethodInfo methodInfo) { if (actionName.Equals(methodInfo.Name, StringComparison.InvariantCultureIgnoreCase)) return true; if (!actionName.Equals(“Action”, StringComparison.InvariantCultureIgnoreCase)) return false; var request = controllerContext.RequestContext.HttpContext.Request; return request[methodInfo.Name] != null; } } How to use it? Just have [...]

More

0

MVC Mailer and Specified Pickup Directory

April 16, 2012 admin ASP.NET

MVC Mailer will complain about SMTP settings, even when using SpecifiedPickupDirectory settings that appear that they should work. The following code snippet will work with MVC Mailer: <smtp from="some-email@gmail.com" deliveryMethod="SpecifiedPickupDirectory"> <network host="localhost" /> <specifiedPickupDirectory pickupDirectoryLocation="c:\temp\"/> </smtp>

More

0

mySQL Entity Framework driver and LazyLoading problem

April 14, 2012 admin Uncategorized

Just experienced an issue with the Entity Framework driver for mySQL – it appears that simple operations such as iterating over a lazy loaded list will result in a “There is already an open DataReader associated with this Connection which must be closed first” error. The reason for this is that the mySQL driver does [...]

More

0

jsTestDriver & WebStorm

April 13, 2012 admin Javascript

Following up on the previous post, I was trying to test my new prototype.js based classes without any success. The error I kept getting was “TypeError: myClass is not a constructor”. Thanks to the JetBrains community, a fix was at hand quickly. I had to make sure that a test-config.jstd config file was in the [...]

More

0

JS Unit Testing

April 13, 2012 admin Javascript

I’ve been using the superb WebStorm 4.0 EAP recently, and started to dabble in some JS unit testing, using the jsTestDriver that is integrated with the IDE. On looking at some of the tutorials I found this article. Have copied some of it here for future reference. Automate, automate, automate! By moving from a logging [...]

More

0

MVC and TempData

March 29, 2012 admin ASP.NET

Couple of gotchas/HOWTOs with TempData: Use TempData when you want to display a notification to a user. When MVC accesses the TempData dictionary, it will delete the corresponding key-value pair. In order to determine if a TempData value has been set, don’t check for null (!) but use ContainsKey. You can’t pass TempData values to [...]

More

0

N-tier Entity Framework and debugging WCF problems

January 29, 2012 admin c#

Our latest project involves a number of different app clients, for example Web, Phone, Tablet, Facebook app etc. This calls for an n-tier architecture, where we split the code base into logical modules. We can then swap in a different application client and re-use all of the same business and data access code. The architecture [...]

More

0

Entity Framework 4.1, Repository and Specification patterns

December 21, 2011 admin c#

Working on a new long-term project, and we need a data access layer that will be extensible over a number of years. There are plenty of resources available for the Repository and Specification patterns, although each one seems to be slightly different. So keeping with tradition I’ll take you through my version! I want two [...]

More

0

« Previous Posts

Powered by WordPress. Designed by elogi.