Law and the internet
There are a few things I enjoy other than web development. I love SEO, and Law also; having never found enough time to tackle either, I like to keep my Read More »
There are a few things I enjoy other than web development. I love SEO, and Law also; having never found enough time to tackle either, I like to keep my Read More »
I have Plesk installed on my web server. 1and1 helpfully redirect all subdomains (wildcard) at a the server when you register the domain. This means that you can add subdomains Read More »
What is the Open Graph protocol The Open Graph protocol enables integrations of your web pages into the social graph. It is promenantly used by the Facebook Platform. Whilst the Read More »
Every now and then, I need a Google API Key for use with the Maps service. Looking at the page, it’s recently changed to some fancy AJAX, and makes a Read More »
Having a dedicated Linux box without any form of control panel on it is becoming the norm for me. To help me out, I created a small shell script to Read More »
Quite often, especially when working with WordPress sites, I need to update content with a new web address. This happens when a site has been on a preview domain whilst Read More »
Usually, all data should be ready for display by the time it hits a smarty template, as it’s a presentation layer. However, from time to time, there is a need Read More »
I did some work with the Yahoo! API recently to process CSV files of addresses to find longitude and latitude. The final code takes a CSV file, processes it, and Read More »
Using custom taxonomy in custom post types means that you can add categories, or tags to your custom posts. This can be achieved with code like the following – added Read More »
I’ve been working recently on the portfolio section of this blog. It uses a custom post type I created that I’ve got installed as a plugin. One thing that always Read More »
Quite often recently when building WordPress themes for smaller sites (ones that have a brochure feel, but have a blog section), the design has included an area on the frontpage, Read More »
You can exclude directories when tar/gzipping folders in the following way:
|
1 2 3 |
tar -cvf httpdocs_bk.tar.gz /var/www/vhosts/domain.com/site --exclude "/var/www/vhosts/domain.com/site/excludeddir1" --exclude "/var/www/vhosts/domain.com/site/excludeddir2" |