Category Archive for "Real Geeky Stuff"

Pages with Facebook Comments Are Very Slow

I recently moved a website and found that even though everything appeared to be set up exactly the same on the new server as it was on the old one, some pages were extremely slow to load. The only difference

Read More

Meet Your Stafford Jelly Organiser

I can’t remember where I first heard of Jelly, it was most likely Twitter – that’s where I hear about most things. Once I learnt exactly what it was, I loved the idea. It originated in New York and groups

Read More

Local Delivery Postcodes in WooCommerce

I’ve been trying to set up a website for somebody who wants to offer free delivery in Derbyshire and Nottinghamshire. They have provided a list of postcodes that they want to offer free delivery to. WooCommerce currently has support for

Read More

Why Have My Tweets Stopped Showing On My Website?

This is a question I’m getting asked a lot at the minute. On the 11th of June Twitter turned off their version 1.0 of their API. This older version of the API has been used to create a lot of

Read More

Cron Wrapper Script Added To Github

I often need to run PHP scripts from a crontab. Sometimes these scripts need to run very frequently, whilst ensuring that only one instance of the script runs at once. It is possible to program these checks within the PHP

Read More

A Shared Git Server

If you work on a team project using git version control, you might want a centralised place from which to push and pull commits from while you collaborate. You can use Github, but if your project is not open source,

Read More

FTP Restricted to a Directory

Users on modern Debian systems can be restricted to a particular part of the filesystem by setting a chroot directory. It’s quite simple, once you know how. To make use of this, you need to use SFTP rather than standard

Read More

Blocking Git Repository Access Through The Browser

When initialising a git repository, the default behaviour is for the .git directories to be within the working tree. When you use git for web development, these .git files can be browsed to in the web browser. For example, http://www.your-site-name.com/.git/config

Read More

Two Git Files To Make Your Life A Little Easier

Whenever you create a new git repository with git init, create these files too. It only takes a few seconds and makes your life much easier later on. Git Ignores Ignore files tell git which files you do not want

Read More