Aug 22, 2014

AngularJS Resources

Excellent, Free AngularJS course available
http://www.codeschool.com

AngularJS Directive - Great Tutorial
http://youtu.be/0r5QvzjjKDc

AngularJS Custom Directives
https://www.youtube.com/watch?v=UMkd0nYmLzY

AngularJS Best Practices
https://www.youtube.com/watch?v=UlvCbnKAH3g&feature=youtu.be

Writing a Massive Angular App
https://www.youtube.com/watch?v=62RvRQuMVyg

AngularJS CRUD application demo
https://github.com/angular-app/angular-app

AngularJS Patterns and Clean Code Course by John Papa
http://www.pluralsight.com/courses/angularjs-patterns-clean-code

CSS Guidelines

High-level advice and guidelines for writing sane, manageable, scalable CSS

CSS Guidelines

Jul 8, 2013

Solved: Outlook keeps asking for credentials

Open the windows credential manager and delete the credentials for the user that is experiencing the issue.

Apr 4, 2013

Current most used JS pattern


var myObject = (function () {
    // private variables
    var ajaxUrl = '/path/to/ajax.html',
        selectorObj,
    // public variables
        obj = {};
    obj.publicVar = '';
    // private methods
    setupEventHandlers = function () {
    };
    // public methods
    obj.init = function () {
        setupEventHandlers();
    };
    return obj;
}());

$(function () {
    myObject.init();
});

Javascript AJAX Wrapper


AJAX Wrapper

var AJAXWrapper = {
    getData: function (ajaxObject) {
        var dfr = $.Deferred();
        ajaxObject.success = dfr.resolve;
        $.ajax(ajaxObject).error(function () {
            alert('Error with AJAX request');
        });
        return dfr.promise();
    }
};

Usage

var ajaxObject = {
    url: "/path/to/data.html",
    data: { email: "my@email.com" },
    dataType: 'html'
};

AJAXWrapper.getData(ajaxObject).then(function (data) {
    console.log(data);
});

Nov 19, 2012

WordPress: Update URL or Domain

Update (or add) the following lines to the code to the wp-config.php file:
  • define("WP_SITEURL","desired url address");
  • define("WP_HOME","desired url address");