Message: [Syntax Error] Expected PlainValue, got ”’ at position x in property {model}
Was getting the above error in my Doctrine project, turned out I had used a single quote in the ORM Annotations: /** * @ORM\Column(type='integer', name='row_number') * @var int */ protected…
VPNetMon – close programs when VPN drops
If you are using a VPN to securely download files, whether it be for anomynous reasons or anything else, if the VPN connection gets dropped, your PC may revert to…
God, Windows is sloooooow
I am assisting a colleague today check out a rather large feature branch. I showed him the branch address and he started checking it out using Tortoise SVN on Windows…
HEX colour chart with RGB reference
I need this quite often so I thought I would put it on my site. Nothing more, nothing less. (Click it to make it bigger)
CSS properties direction (padding, margins, etc)
You’ll have no doubt seen: padding: 5px 10px 5px 10px; in a CSS file. Do you ever wonder which of the properties are which? Just start at the top and…
Ubuntu, Thunderbird always maximised
I recently switched from Linux Mint back to the old trusty Ubuntu (11.10) One major problem was Unity, but I got round this by installing Xfce and use that as…
A-Z list of CSS features
Found this great list of CSS features. https://developer.mozilla.org/en/CSS/CSS_Reference
Javascript Hoisting
When using JavaScript, you declare a variable using the var keyword. var myvariable = "a value"; These variables are globally accessible unless they are defined within a function. Javascript performs…
Accessing controller data from a partial viewscript
When using an inline partial viewscript in my form, I sometimes need access to data. I can accomplish this by using a setter and getter with a public function in…
Viewing events attached to elements via JavaScript
If like myself, you often attach functions to elements using jQuery, for example: $('.btnName').live('click', function() { //do something }); There is a nice little browser extension that will show all…