I have been using Mercurial as my version control system for a while now. Here are some pointers I picked up along the way. Mercurial won’t forget files! ‘hg forget <filename>’ returns ‘No such file or directory’ Although Mercurial can perform commits, adds etc. from any location in the folder structure it seems like forget … Continue reading »
How to deploy an iOS application using an ad hoc distribution
Go into www.developer.apple.com > Login > iOS dev centre > Provisioning portal In Provision > Distribution generate a new profile using "ad hoc" distribution Download the provisioning profile. Add it to iTunes using drag and drop or File > Add to Library In Xcode create a new archive by right click on the project > … Continue reading »
Test Driving TDD
I have become inspired and convinced by the idea of test driven development. Kent Beck said it best when he said – We write code because that is our work and we write tests so that we know when we are done. – Beck, K. Extreme Programming Explained: Embrace Change Or something like that. So … Continue reading »
Forbidden words in JavaScript
JavaScript has 3 forbidden words – With In Eval Eval is generally understood to perform poorly and to be unsafe. But what’s so bad about ‘with’ and ‘in’? With It is sort of a quirk with JavaScript where the scope of an operation changes when you use “with”. As with a few things in programming … Continue reading »
Internet World – Earls Court, London
It has a cheesy name but there is a trade show event in London next week called – Internet World. The site doesn’t use comic sans anywhere and the speakers include Google, eBay, Microsoft and other trend setters. I won’t be attending but I’ll be checking the site and signing-up to the mailing list. Linkage … Continue reading »
Synchronize vim using Dropbox
If you don’t know what Dropbox is, where have you been? Here’s how I use Dropbox to synchronize my vim installation on Windows XP at work and Windows 7 at home. If you don’t know what vim is, don’t worry about it. Maybe this tip will help you install something cool and keep your settings … Continue reading »
Wrangling with SQL regular expressions
I have been doing some data wrangling recently. One problem I worked through was how to find all the instances of a new line character that had made it’s way into our database. After some researching the query looked like this Then I asked myself if I could strip out this character. Hmm.. So I … Continue reading »
404 Errors on your WordPress blog posts
If you start getting 404 errors when you click your posts in your WordPress blog try this Log into the dashboard Go to settings Change the permalink structure. Try those links. They should be working now. Change the permalink structure back to what it was. They should still be working. I am not entirely sure why this … Continue reading »
AJAX cross-domain request using iframes
I had a situation where I had to send a form to a 3rd party email subscription management thingy. But every time I posted the form using jQuery the browser was killing it because of cross-domain restrictions. I asked around the web dev team and came up with this solution. Simply create a URL fragment from … Continue reading »
Google Chrome Extensions–short development primer
I think a browser extension is the best place to get started because it’s easier to see immediately how an extension ties together. To create a “hello world” browser extension we’ll need – manifest.json The properties of our extension are described in a JavaScript object (JSON). This tells Chrome what kind of extension we are … Continue reading »