I found myself needing to switch between PHP versions on the command line running under the Plesk environment on a CentOS server. Some apps ran under PHP 5.6, some under 7.0 and others being pushed towards 7.1. This script allows me to be quickly switch between them. It looks for the current PHP version in […]
OmniPay/Authorize.Net DPM Sequence Chart
In part 1 I introduced some of the Authorize.Net gateways, in particular the Direct Post Method (DPM) gateway. I also introduced the OmniPay package that handles the DPM gateway. The code samples that follow will focus on DPM. To provide some context, I’ll bring in a sequence chart for this gateway used through OmniPay. What […]
Laravel 5 – Naming Logfiles According to OS User
Apologies in advance for the formatting of the code. WordPress is, basically, shit at handling any kind of formatting that is not its own flavour of HTML, so it plays all sorts of games reformatting and “improving” the layout. One day I’ll find a way through this mess. I asked the question here on how […]
OmniPay Authorize.Net DPM Gateway
In this short series I hope to provide some practical worked examples showing how to use the DPM extension of the OmniPay Authorize.Net gateway. I’ll run through what all those terms mean first. Authorize.Net Authorize.Net is a payment processor that can be used to take payments on websites. It does a lot more than simply […]
SugarCRM Vector Logo
I needed this for a talk, and could not find a vector logo anywhere. So I knocked one up and it would be rude not to share. All the workings are in the SVG (the traced bitmap and layers that may be useful) as well as the final vectors. Update August 2015 The logo I […]
Great Sources of Free Stock Photos
First, this one seems to aggregate a tonne of free stock sources: http://allthefreestock.com/ A list I will add to over time, in nothing more than alphabetical order: Canva – Post listing 74 free stock photo sites https://designschool.canva.com/blog/free-stock-photos/ Death to the Stock Photo http://join.deathtothestockphoto.com/ Foodiesfeed http://foodiesfeed.com Getrefe http://getrefe.tumblr.com/ GoodFreePhotos https://www.goodfreephotos.com Open source, collected from a variety […]
Watching things move around the world
I have a few favourite sites that provide the ability to watch things moving or happening around the world, in real time. Here they are as a simple list, that I’m sure will grow (GPS satellites and the International Space Station – ISS – come to mind): Lightning Watch lightning strike as it happens. You […]
Error 500 on password protecting a directory
I was recently using cPanel to password protect a directory on a website. It was all point-click, so should haveĀ been simple and just work, except it didn’t. After entering your login credentials, the server would return an error instead of giving you access to the directory contents: Error 500: Internal Server Error By password […]
WooThemes’ Canvas – Main Responsive Menu in Side Bar
I really like the WooThemes Canvas theme, and use it a lot. It is a plain, but sophisticated WordPress theme on which to build a more specific child theme. The theme uses a horizontal menu at the top of the page for the primary menu. When the view port is narrow, such as when displayed […]
Removing Author Details from Posts in WooThemes
Under each post in a WooThemes theme, is a box that provides details of the author. Some sites, especially business sites that just want to publish their own news items from time to time, do not want the author details appearing. So how do you remove it from a WooTheme? One method would be to […]