Author Archives: Nick Holdren

About Nick Holdren

Nick Holdren is a fan of PHP and all things good. He is currently the Director of Product and Technology at Fanmail Marketing in Cincinnati, OH. He is also a guest blogger at Code@ExactTarget where you can find his musings and snippets of wisdom on the ExactTarget API.

Retrieving What A User Has Listened to on Facebook

By | February 14, 2012

One of the coolest things to hit Facebook in the past 6 months is the emergence of a user’s music listening habits being added to the news feed. If you haven’t noticed already whenever you or your friends listen to music on say Spotify or Rdio the listening history is sent to Facebook (if enabled). [...]

Read more »

Updates to Facebook Javascript SDK for OAuth 2.0

By | February 10, 2012

If you’ve recently realized that maybe your current Facebook application is no longer working I have a few areas of your code to check. Like me if you failed to realize that December 13th, 2011 was the deadline for Facebook supporting OAuth 1.0 in it’s Javascript SDK then the following are likely the root causes: [...]

Read more »

Updating An ADO.NET Entity Data Model After Changing Database

By | February 9, 2012

While using ADO.NET and the Entity Data Model in .NET many times there are changes to your database while in development. As we know it is hard to exactly get the data model exactly right on the first try so we tend to revise as we go along. The Entity Data Model (similar to other [...]

Read more »

Custom Yii Rule for Unique Attribute Validation

By | January 19, 2012

You’ve probably seen it or experienced at some point when registering for a site where you must pick a unique username or subdomain for account registration. However, this is can be tedious to implement in both frameworks and non-framework solutions. Luckily, Yii has validation rules that can be implemented easily and can be user-defined for [...]

Read more »

Tip of the Day

By | January 18, 2012

Plan your day before someone else does it for you. Your time is yours and you control it. Don’t let things you wish to accomplish get overlooked because you didn’t make time for them.

Read more »

Get Name of Current Controller and Action in Yii

By | December 5, 2011

This is a simple one line piece of code to retrieve the name of the current controller, which is great for making more generic and useful code. $controllerName = Yii::app()->controller->id;

Read more »

Try Catch vs If…Which to use?

By | December 1, 2011

When it comes to error handling while coding there are several options available. We have if statements, try and catch, throw exceptions or even handle the it silently by logging or just letting it go. So to make it simple I’ve come down to this simple question: Do you know the intended response and are [...]

Read more »

AMPScript Language Module For TextWrangler

By | August 17, 2011

I’ve created a language module for TextWrangler/BBedit which has been made available for public download on Github. Currently, it will highlight all AMPScript functions and reserved words. Future upgrades look to add complete function Intellisense and function documentation. Download it here! In case you don’t have TextWrangler you can download it here. And, for reference, [...]

Read more »

Using the Lookup Function In AMPScript

By | August 16, 2011

I would like to start by saying that AMPScript is a very powerful tool to use when creating dynamic emails within ExactTarget. It is well documented and has a diverse range of functionality to do the very simplest tasks to the most complex. One of the most common uses is to access data within Data [...]

Read more »

Facebook API Wrapper for PHP

By | August 13, 2011

I’ve created a simple API wrapper for the Facebook API written in PHP which has been made available for public download on Github. It is a simple class that will allow you to access all endpoints within the Facebook API. Download it here! For more info about Facebook (in case you live in a dark [...]

Read more »