Microsoft C#, LINQ, XML, WPF and the Lack of Good Examples

by Patrick 1. November 2008 19:11

Ok,

My rant for the day is about trying to use Microsoft C# and LINQ and XML and WPF. I spend more time trying to figure out simple stuff, because nothing exists as solid examples of how to do what I need to do.
I spend so much of my time trying to find decent examples of how to do stuff on the net, and find nearly nothing.
Why?
I know people are doing this stuff, is it because its a closed source system and sharing the code just isn't "cool" by the users?
I am sick of it, and I am going to try to lead by example and post my minor victories in trying to do things using this great platform.

Why?
Well, couple of reasons...
1. Code should be free. Not as in not get paid for it, but how to do something should be shared, knowledge isn't worth anything unless you share it.
2. Selfish reasons, I can find different things I find much easier and watch my progression through the products
3. Cause I haven't really found a good reason to keep posting regularly on my blog, and this just might be a good excuse.

So, there you have it, my rant for the day and my promise to share my code examples of what I am trying to do.

Tags:

Coding | ASP.NET | C# | LINQ | WPF | XML | Rants | Software

Personalized Urls - PURLS

by Patrick 26. March 2007 18:03

A big buzz word in the printing industry now is PURLS or personalized urls and their impact in direct response advertising. Many companies are offering PURLS as a service now and exposing printers to a tough choice, to implement PURLS or not.

What are PURLS? The idea is simple, too simple in fact. Create a way to handle a personalized domain so to track the response of the direct form of advertising, print / email / telemarketing, etc.

Here is an example of a non-working PURL:

www.domain.com/JohnDoe

and another

www.domain.com/JaneDoe

Each returns the same page, but personalized for John Doe or Jane Doe and when John or Jane types it in, a response is tracked as well. Usually the personalized page asks you to update your contact information, possibly disquised as an offer or coupon, etc.
This is supposed to create the illusion that the company (ie, advertiser) actually created a customize page just for you. This form of cross media advertising is creating new opportunities for digital print variable data printing and "should" be good for the industry.

But what are the downsides to PURLS?

First, and foremost is security of data. How is your customer data being protected? What stops anyone (including that 13 year old script kiddie) from typing in any name and getting YOUR personal information? Worst yet, what is stopping someone from farming the PURLS site for all the possible names and selling that to some neferious list broker?

Easy fix, don't put more information up there then required by the application...

Or don't pre-populate those form fields and force them to fill out the fields...

Or, don't do the typical first/last combo most PURLS do, but instead do some sort of code, alphanumeric and of some length, 5+ characters...

Also, make sure you lock out codes so you don't track duplicates, or filter duplicates

Most importantly, is the tracking information. Make sure you are tracking Source IP, Browser string, Referer string, and create a Unique ID for each visitor to track returns.

Another downside is tracking response rate... What happens if you have 2 duplicate first/last names, or what happens if someone else puts in your PURL? You didn't respond, but someone else did. Is this a problem? In some cases, yes, especially if there is a special offer or coupon, and now you are locked out because of that dreaded script kiddie...

Personalized URLS are nothing new, they have been around since the early inception of the web. The idea was simple, create a method to permanently create a URL to a file or site that even if the file name or site changed, the URL could remain the same. With data driven content, PURLS are just a simple extension of this, creating virtual pages that resemble a dedicated page for YOU, the consumer.

At the end of the day, don't forget about security of your data, PURLs are great, and can be a great way to drive responses to your website, but if some 13 year old can steal all your customer data, is it really worth it? Take some precautions, ask the tough questions of the vendor supplying you the PURLS solution and how they protect your data. Just because we CAN do something, doesn't always mean we SHOULD do something.

By the way, every link on this site is an example of personalized URLs, except in the blogging world these are referred to as permalinks. Take a look at the URL above and believe me, no actual HTML page exists on my server, this entire article was returned from the URL and pulled from a database, just like PURLS :)

(in case you are reading this on the front page, http://www.patrickstuart.com/archives/2007/03/26/personalized-urls-purls/ is the actual URL to this article)

Tags:

Coding | Tech

Web Design - Development Cheat Sheets

by Patrick 19. September 2005 20:09

All the cheat sheets you'll ever need as a web designer, graphic designer, web developer, or anything related to it. Including a new Adobe Illustrator Cheat Sheet.

read more | digg story

Beginner's guide to developing web apps in AJAX

by Patrick 5. August 2005 10:08

AJAX is the new (next?) hot thing in web programming at the moment. For example, it's what enables Gmail's interface to feel so slick, and for Flickr to deliver dynamic content. If you have no idea where to start, this article will get you going.

read more | digg story

Tags:

Coding

Powered by BlogEngine.NET 1.6.0.0

 

Call Me

RecentComments

Comment RSS