fix SailsJS 0.9.8 and Bootstrap 3.0.3 LESS While trying to setup a starter project I hit a bit of a snag. Turns out the latest less files don’t want to play nice with the grunt-contrib-less (0.5.2) that comes with SailsJS (0.9.8). parse error: failed at &
fix Wordpress Admin - Insufficient Permissions Run into a strange issue today. Was setting up a new blog using the cpanel worpress add-on and everything was fine until I tried to login as admin into the backed. Sure enough the details were accepted, but instead of the dashboard I was
code Text file busy - db/test.sqlite3 Sometimes things are just too obvious… When trying to setup the test database for my new rails app I kept getting stuck with this error message: <b>$ rake db:test:prepare</b> rake aborted! Text file busy - db/test.
fix Quick fix for the Social Counter Widget plugin I’ve been doing some charity work recently and as they will have a social presence the blog was in need of some social media buttons. I thought the Social Counter Widget plugin looked quite nice (after the slightly prettier Social Impact Widget decided
bios Edit BIOS in Lenovo ThinkPad x220t As it’s changed from the previous model it had me scratching my head for a few minutes. To enter the BIOS setup just use F1 during laptop startup.
fix Wordpress update permission issues WordPress can often be such a pain to deal with… Recently I was trying to get an installation updated as well as some of the plugins. What should have been a straightforward task, turned out to be several hours of messing around with permissions
code Top Level Cookies in Opera for Custom Domain Names For our local development at work we all use the same fake domain – helps with setting API keys and other things across the board and isn’t hard to setup whatever system any new developer might have. It also happens to be not a
code jQuery Multiple Events Without Default Behaviour Sometimes you trip over the little things. With several people working on the same page while we were recreating some JS functionality from scratch I’ve noticed one of my buttons suddenly stopped working. Scratched my head a bit, and for a minute thought
php Zend Application Resource Plugin Loading Issues Admittedly thinking while feeling feverish is slightly impaired, but it took me a little while to figure this one out… Trying to integrate ZF 1.11 with Doctrine2 to as per this article, I was trying to be a smart-ass and use TS_Resource_
fix Installing Windows 7 Guest on VMWare 7 on OpenSuse 11.3 Host Maybe this will help anyone else stuck on the installation. For a long while my Windows 7 install inside VMWare 7 would get stuck at “expanding files 0%”. I kept thinking it was my machine and setup that was causing issue, after all a
authentication PHP_AUTH_USER and PHP_AUTH_PW is null Ok, so you’re trying to setup password protection on your website using HTTP authentication. Unfortunately despite the request for password working your authentication keeps failing. If you check the output of your script and the password and username variables are not populated as
code Multiple changes and a delete on same object in doctrine If you want to make several different changes to a doctrine record object you might find yourself slightly puzzled when it comes to deleting related objects. $user['Address']->delete(); $user['Address']->state(Doctrine_Record::STATE_LOCKED); (...) $user->save();``` It
gmt Zend_Date time part and GMT If you live in the UK you might have a surprise waiting in store for you if you use Zend_Date for the time part only. For a while I even thought this was a bug, however digging deeper has shown that actually it’
lookaround Regex for Autolinking URLs For a recent project I was wanting to perform an exceptionally common task. Converting things that look like URLs in the text into clickable links. However wherever I’ve seen this implemented before I’ve always encountered the same annoying problem, namely the links