One Approach to Complying with a "script-src 'self'" Content Security Policy

I recently encountered this error when working with plugin code on an application: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:". The cause of the e… more »

Presenting KnpMenus with Dojo

This Dojo module will traverse a menu delivered by the KnpMenuBundle and present it as a Dijitized menu bar. There may be a few extraneous modules included, but this code will likely be extended. Codedefine([    "dojo/_base/declare… more »

Symfony / Dojo - Prod and Dev environment management

Dojo has a great build process which allows you to create a optimized and minimized files for the client side (and more!). In a production environment, this greatly improves performance. However, building the code after every change will slow developm… more »

Ansible SSH issues under CentOS

I needed a CentOS 6.5 guest under a CentOS 6.6 host for development and to prepare for deployments. I could not get Ansible to SSH into the box. I took the provisioning out of the Vagrantfile and began running the playbook on the command line with: a… more »

A Very Simple Node/Express JSON Form Example

Server-side (file is named server) This code is invoked with: node server Once it is invokec, call the page with http://example.com:1337/form.html Code// Express is a framework used with node that provides many important constructsvar express = requi… more »