function logError(details) { $.ajax({ type: ‘POST’, url: ‘http://mydomain.com/api/1/errors’, data: JSON.stringify({context: navigator.userAgent, details: details}), contentType: ‘application/json; charset=utf-8’ }); } window.onerror = function(message, file, line) { logError(file + ‘:’ + line + ‘\n\n’ + message); }; Let’s keep this short. Too few websites log JavaScript errors. Let’s build a simple system to track client-side errors. Makes clever …
PHP 5.5.0 alpha 1
PHP 5.5.0 alpha 1 was released a few days ago. New features include: support for Generators, a new password hashing API, support for finally in try/catch blocks, support for list() in foreach, constant array/string dereferencing, ext/intl improvement More info on these features can be read in Test Drive PHP 5.5: A Sneak Peek and What …
2012 Logo Trends
RE: Missing the bloody point
RE: Missing the bloody point Embrace the new tools that are coming. Don’t be afraid of the Big Bad Command Line™. Don’t become optimized for the fading past. Don’t get stuck. Okay, it’s scary. It literally is a black box (although Apple made it white). There’s no “undo” on the CLI. Things might break. And …
Halloween
Pandora/Spotify Earnings
Ingress
Augmented Reality MMORPG by Google A mysterious energy has been unearthed by a team of scientists in Europe. The origin and purpose of this force is unknown, but some researchers believe it is influencing the way we think. We must control it or it will control us. “The Enlightened” seek to embrace the power that …