Quantcast
Channel: WebNinjaTaylor » Debugging
Browsing latest articles
Browse All 5 View Live

WordPress White Screen of Death

The functions.php file cannot have any spaces at the end.

View Article



Count CSS Rules in Console

In your console, type… var sheets = document.styleSheets; var rules = 0; for(i=0; i < sheets.length; i++){ if(sheets[i].cssRules !== null){ rules = rules + sheets[i].cssRules.length; } }...

View Article

Viewing Object Events in Console

You can view an object’s bound events in the console with… $._data( $('.element')[0], 'events' );

View Article

Common IE Bugs

Use _.each(myArray,function) in place of .forEach() myRegex.test(myString) in place of .indexOf() var filter = /0{3}/; if(filter.test(orgInfo.get(‘payeeIdentifier’)) !== false){ ... } Use envt.target...

View Article

Create Multiple Localhosts

Change Default Listening Port Go to MAMP > Preferences > Ports and set Apache Port to be 80. Set up Localhosts in Hosts File Edit your hosts file so that you have some domains that will resolve...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images