Build your own PHP Framework with Symfony Components

switch($_SERVER[‘PATH_INFO’]) {     case ‘/’:         echo ‘This is the home page’;         break;     case ‘/about’:         echo ‘This is the about page’;         break;       default:         echo ‘Not found!’; } Good introduction on the Sitepoint website to getting started with a few of the Symfony Components. Starts with the example code above and – one by one – introduces the …

Monit – Easy, proactive monitoring

check host localhost with address 127.0.0.1 if failed ping then alert if failed port 3306 protocol mysql then alert check process apache with pidfile /var/run/httpd.pid start program = “/etc/init.d/apache2 start” stop program = “/etc/init.d/apache2 stop” Monit is a small Open Source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance and repair and …

Building OS X Apps with JavaScript

OS X Yosemite introduced JavaScript for Automation. This makes it possible to access native OS X frameworks with JavaScript. The result above can be built using this code: ObjC.import(“Cocoa”); var styleMask = $.NSTitledWindowMask | $.NSClosableWindowMask | $.NSMiniaturizableWindowMask; var windowHeight = 85; var windowWidth = 600; var ctrlsHeight = 80; var minWidth = 400; var minHeight …

Modern.ie Vagrant Boxes

The Modern.ie Virtual Machine Images – VMs used for testing several versions of IE – are now also available as vagrant boxes. Here’s the list: XP with IE6: http://aka.ms/vagrant-xp-ie6 XP with IE8: http://aka.ms/vagrant-xp-ie8 Vista with IE7: http://aka.ms/vagrant-vista-ie7 Windows 7 with IE8: http://aka.ms/vagrant-win7-ie8 Windows 7 with IE9: http://aka.ms/vagrant-win7-ie9 Windows 7 with IE10: http://aka.ms/vagrant-win7-ie10 Windows 7 with …